protected void a(Bundle paramBundle) {
   BLog.b(n, "onActivityCreate " + paramBundle);
   super.a(paramBundle);
   if (paramBundle != null) {
     this.o = paramBundle.getString("calling_package");
     FbInjector localFbInjector = FbInjector.a(this);
     this.q =
         ((AuthDialogActionExecutorFactory)
             localFbInjector.a(AuthDialogActionExecutorFactory.class));
     this.r =
         ((ShareDialogActionExecutorFactory)
             localFbInjector.a(ShareDialogActionExecutorFactory.class));
     this.s =
         ((ComposeDialogActionExecutorFactory)
             localFbInjector.a(ComposeDialogActionExecutorFactory.class));
     if (this.o != null) break label125;
     ErrorReporting.a("sso", "getCallingPackage==null; finish() called. see t1118578", true);
     b("The calling package was null");
   }
   while (true) {
     return;
     this.o = i();
     break;
     label125:
     this.p = a(getIntent());
     if (this.p == null) continue;
     BLog.b(n, "Starting UI or Login screen");
     if (!j()) {
       LoginActivity.c(this);
       continue;
     }
     this.p.a(paramBundle);
   }
 }
 public void a(List<PackageInfo> paramList) {
   JSONArray localJSONArray1;
   try {
     localJSONArray1 = new JSONArray();
     Iterator localIterator = paramList.iterator();
     while (localIterator.hasNext()) {
       PackageInfo localPackageInfo = (PackageInfo) localIterator.next();
       JSONObject localJSONObject = new JSONObject();
       localJSONObject.put("name", localPackageInfo.packageName);
       JSONArray localJSONArray2 = new JSONArray();
       PermissionInfo[] arrayOfPermissionInfo = localPackageInfo.permissions;
       int i = arrayOfPermissionInfo.length;
       for (int j = 0; j < i; j++) localJSONArray2.put(arrayOfPermissionInfo[j].name);
       localJSONObject.put("permissions", localJSONArray2);
       localJSONArray1.put(localJSONObject);
     }
   } catch (JSONException localJSONException) {
     BLog.e("MalwareDetector", localJSONException.getMessage());
   }
   while (true) {
     return;
     HoneyClientEvent localHoneyClientEvent =
         new HoneyClientEvent("android_malware_detected_event");
     localHoneyClientEvent.d("malware_detector");
     localHoneyClientEvent.b("description", localJSONArray1.toString());
     this.b.b(localHoneyClientEvent);
   }
 }
 public ImmutableList<Message> a(
     MessagesCollection paramMessagesCollection, List<Message> paramList) {
   if (paramList.isEmpty()) ;
   ImmutableList.Builder localBuilder;
   for (ImmutableList localImmutableList = ImmutableList.d();
       ;
       localImmutableList = localBuilder.b()) {
     return localImmutableList;
     HashSet localHashSet = Sets.a();
     Iterator localIterator1 = paramList.iterator();
     while (localIterator1.hasNext()) localHashSet.add(((Message) localIterator1.next()).t());
     Iterator localIterator2 = paramMessagesCollection.b().iterator();
     while (localIterator2.hasNext()) {
       Message localMessage2 = (Message) localIterator2.next();
       if ((!localMessage2.u()) || (!localHashSet.contains(localMessage2.t()))) continue;
       BLog.a(a, "Deduped message %s", new Object[] {localMessage2});
       localHashSet.remove(localMessage2.t());
     }
     localBuilder = ImmutableList.e();
     Iterator localIterator3 = paramList.iterator();
     while (localIterator3.hasNext()) {
       Message localMessage1 = (Message) localIterator3.next();
       if (!localHashSet.contains(localMessage1.t())) continue;
       localBuilder.b(localMessage1);
     }
   }
 }
 public ListenableFuture<Location> a(GetDeviceLocationParams paramGetDeviceLocationParams, OrcaServiceProgressCallback paramOrcaServiceProgressCallback)
 {
   Class localClass = a;
   Object[] arrayOfObject = new Object[3];
   arrayOfObject[0] = Long.valueOf(paramGetDeviceLocationParams.f);
   arrayOfObject[1] = Float.valueOf(paramGetDeviceLocationParams.g);
   arrayOfObject[2] = Long.valueOf(paramGetDeviceLocationParams.a);
   BLog.b(localClass, "Getting location. Target age: %d ms, Target accuracy: %f m, Timeout: %d ms", arrayOfObject);
   return new GetDeviceLocationExecutor.LocateUserOperation(this, paramGetDeviceLocationParams, paramOrcaServiceProgressCallback);
 }
 public void a(
     Context paramContext, Intent paramIntent, BroadcastReceiverLike paramBroadcastReceiverLike) {
   BLog.b(a, "answering device id query");
   String str2;
   long l2;
   if (paramBroadcastReceiverLike.getResultCode() == -1) {
     str2 = paramBroadcastReceiverLike.getResultData();
     l2 =
         paramBroadcastReceiverLike
             .getResultExtras(true)
             .getLong("device_id_generated_timestamp_ms", 9223372036854775807L);
     if ((str2 != null) && (System.currentTimeMillis() - l2 > 172800000L)) {
       BLog.b(a, "stable device id already found skipping");
       return;
     }
   }
   for (UniqueDeviceId localUniqueDeviceId = new UniqueDeviceId(str2, l2);
       ;
       localUniqueDeviceId = null) {
     a(paramContext);
     String str1 = this.b.a(SharedPrefKeys.e, null);
     long l1 = this.b.a(SharedPrefKeys.f, 9223372036854775807L);
     if ((str1 == null) || (l1 == 9223372036854775807L)) {
       BLog.b(a, "no id found");
       break;
     }
     if ((localUniqueDeviceId != null) && (l1 > localUniqueDeviceId.b())) {
       BLog.b(a, "previously broadcasted device id is older. skipping");
       break;
     }
     paramBroadcastReceiverLike.setResultCode(-1);
     paramBroadcastReceiverLike.setResultData(str1);
     Bundle localBundle = new Bundle();
     localBundle.putLong("device_id_generated_timestamp_ms", l1);
     paramBroadcastReceiverLike.setResultExtras(localBundle);
     BLog.b(a, "device id found: " + str1);
     break;
   }
 }
 public void a(long paramLong)
 {
   this.b.b();
   Semaphore localSemaphore = new Semaphore(0);
   UserInteractionController.2 local2 = new UserInteractionController.2(this, localSemaphore);
   try
   {
     long l1 = System.currentTimeMillis();
     a(local2);
     if (!localSemaphore.tryAcquire(paramLong, TimeUnit.MILLISECONDS))
       BLog.b(a, "User is interacting with UI. Unblock data processing anyway.");
     long l2 = System.currentTimeMillis() - l1;
     if (l2 > 10L)
       BLog.b(a, "User interaction blocked data processing for " + l2 + " ms.");
     b(local2);
     return;
   }
   catch (InterruptedException localInterruptedException)
   {
     while (true)
       BLog.e(a, "Exception when the user interaction to be finished.", localInterruptedException);
   }
 }
 protected void onActivityResult(int paramInt1, int paramInt2, Intent paramIntent) {
   BLog.b(n, "onActivityResult");
   switch (paramInt1) {
     default:
       this.p.a(paramInt1, paramInt2, paramIntent);
     case 2210:
   }
   while (true) {
     return;
     if (paramInt2 == 0) {
       e(AuthorizeAppResults.a("User canceled login"));
       continue;
     }
     this.p.a(null);
   }
 }
 private void a()
 {
   try
   {
     ArrayList localArrayList = Lists.a(this.c);
     this.c.clear();
     Class localClass = a;
     Object[] arrayOfObject = new Object[1];
     arrayOfObject[0] = Integer.valueOf(localArrayList.size());
     BLog.a(localClass, "Running %d runnables", arrayOfObject);
     Iterator localIterator = localArrayList.iterator();
     while (localIterator.hasNext())
       ((Runnable)localIterator.next()).run();
   }
   finally
   {
   }
 }
 protected void onSaveInstanceState(Bundle paramBundle) {
   BLog.b(n, "onSaveInstanceState");
   super.onSaveInstanceState(paramBundle);
   paramBundle.putString("calling_package", this.o);
   if (this.p != null) this.p.e(paramBundle);
 }
 protected void onDestroy() {
   BLog.b(n, "onDestroy");
   super.onDestroy();
   if (this.p != null) this.p.D();
 }
 public void i_() {
   BLog.b(a, "PushInitializer.init");
   d();
 }
 public void b() {
   BLog.b(a, "PushInitializer.onLogin");
   Iterator localIterator = this.e.iterator();
   while (localIterator.hasNext()) ((PushManager) localIterator.next()).a();
 }