Logging to track #36406078

Bug: 36406078
Test: N/A
Change-Id: I9724fa8511686a342bf25d1979c17c0a4700e292
(cherry picked from commit 9afb1fc495aa132c4a5e3a5beca408597ab1bb09)
diff --git a/core/java/android/app/ActivityThread.java b/core/java/android/app/ActivityThread.java
index e89dc0b..b4e6bd5 100644
--- a/core/java/android/app/ActivityThread.java
+++ b/core/java/android/app/ActivityThread.java
@@ -808,6 +808,11 @@
         public final void scheduleReceiver(Intent intent, ActivityInfo info,
                 CompatibilityInfo compatInfo, int resultCode, String data, Bundle extras,
                 boolean sync, int sendingUser, int processState) {
+            // TODO: Debugging added for bug:36406078 . Remove when done
+            if (Log.isLoggable("36406078", Log.DEBUG)) {
+                Log.d(TAG, "scheduleReceiver");
+            }
+
             updateProcessState(processState, false);
             ReceiverData r = new ReceiverData(intent, resultCode, data, extras,
                     sync, false, mAppThread.asBinder(), sendingUser);
@@ -894,6 +899,11 @@
                 CompatibilityInfo compatInfo, Map services, Bundle coreSettings,
                 String buildSerial) {
 
+            // TODO: Debugging added for bug:36406078 . Remove when done
+            if (Log.isLoggable("36406078", Log.DEBUG)) {
+                Log.d(TAG, "bindApplication: " + processName);
+            }
+
             if (services != null) {
                 // Setup the service cache in the ServiceManager
                 ServiceManager.initServiceCache(services);
@@ -3229,6 +3239,10 @@
         if (receiver.getPendingResult() != null) {
             data.finish();
         }
+        // TODO: Debugging added for bug:36406078 . Remove when done
+        if (Log.isLoggable("36406078", Log.DEBUG)) {
+            Log.d(TAG, "handleReceiver done");
+        }
     }
 
     // Instantiate a BackupAgent and tell it that it's alive
@@ -5764,6 +5778,10 @@
         } catch (RemoteException e) {
             throw e.rethrowFromSystemServer();
         }
+        // TODO: Debugging added for bug:36406078 . Remove when done
+        if (Log.isLoggable("36406078", Log.DEBUG)) {
+            Log.d(TAG, "handleBindApplication done");
+        }
     }
 
     /*package*/ final void finishInstrumentation(int resultCode, Bundle results) {