1919import android .content .ComponentName ;
2020import android .content .Intent ;
2121import android .content .pm .ActivityInfo ;
22- import android .content .pm .PackageManager ;
23- import android .graphics .Bitmap ;
2422import android .os .UserId ;
23+ import android .util .Slog ;
2524
2625import java .io .PrintWriter ;
2726
@@ -69,6 +68,8 @@ void setIntent(Intent _intent, ActivityInfo info) {
6968 _intent .setSourceBounds (null );
7069 }
7170 }
71+ if (ActivityManagerService .DEBUG_TASKS ) Slog .v (ActivityManagerService .TAG ,
72+ "Setting Intent of " + this + " to " + _intent );
7273 intent = _intent ;
7374 realActivity = _intent != null ? _intent .getComponent () : null ;
7475 origActivity = null ;
@@ -80,6 +81,8 @@ void setIntent(Intent _intent, ActivityInfo info) {
8081 targetIntent .setComponent (targetComponent );
8182 targetIntent .setSelector (null );
8283 targetIntent .setSourceBounds (null );
84+ if (ActivityManagerService .DEBUG_TASKS ) Slog .v (ActivityManagerService .TAG ,
85+ "Setting Intent of " + this + " to target " + targetIntent );
8386 intent = targetIntent ;
8487 realActivity = targetComponent ;
8588 origActivity = _intent .getComponent ();
@@ -103,9 +106,10 @@ void setIntent(Intent _intent, ActivityInfo info) {
103106 }
104107
105108 void dump (PrintWriter pw , String prefix ) {
106- if (numActivities != 0 || rootWasReset ) {
109+ if (numActivities != 0 || rootWasReset || userId != 0 ) {
107110 pw .print (prefix ); pw .print ("numActivities=" ); pw .print (numActivities );
108- pw .print (" rootWasReset=" ); pw .println (rootWasReset );
111+ pw .print (" rootWasReset=" ); pw .print (rootWasReset );
112+ pw .print (" userId=" ); pw .println (userId );
109113 }
110114 if (affinity != null ) {
111115 pw .print (prefix ); pw .print ("affinity=" ); pw .println (affinity );
0 commit comments