APISonar


app.intra.sys.firebase.LogWrapper.log

> app > intra > sys > firebase > LogWrapper > log
app APIs intra APIs sys APIs firebase APIs LogWrapper APIs log APIs

Example 1
private static String extractHost(String url) {
    try {
      URL parsed = new URL(url);
      return parsed.getHost();
    } catch (MalformedURLException e) {
      LogWrapper.log(Log.WARN, LOG_TAG, "URL is corrupted");
      return null;
    }
  }
Example 2
private void maybeAutostart() {
    VpnController controller = VpnController.getInstance();
    VpnState state = controller.getState(this);
    if (state.activationRequested && !state.on) {
      LogWrapper.log(Log.INFO, LOG_TAG, "Autostart enabled");
      prepareAndStartDnsVpn();
    }
  }
Example 3
public void onNetworkConnected(NetworkInfo networkInfo) {
    LogWrapper.log(Log.INFO, LOG_TAG, "Connected event.");
    setNetworkConnected(true);
    // This code is used to start the VPN for the first time, but startVpn is idempotent, so we can
    // call it every time. startVpn performs network activity so it has to run on a separate thread.
    new Thread(
        new Runnable() {
          public void run() {
            updateServerConnection();
            startVpn();
          }
        }, "startVpn-onNetworkConnected")
        .start();
  }