Track multi-user change.
Change-Id: I0b45ec880f6149fba5d2d83c014e1e71a6524b99
This commit is contained in:
@@ -25,6 +25,7 @@ import android.content.pm.InstrumentationInfo;
|
|||||||
import android.content.pm.PackageManager;
|
import android.content.pm.PackageManager;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.RemoteException;
|
import android.os.RemoteException;
|
||||||
|
import android.os.UserHandle;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.Menu;
|
import android.view.Menu;
|
||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
@@ -154,7 +155,7 @@ public class InstrumentationList extends ListActivity
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
ActivityManagerNative.getDefault().
|
ActivityManagerNative.getDefault().
|
||||||
startInstrumentation(className, profilingFile, 0, null, mWatcher);
|
startInstrumentation(className, profilingFile, 0, null, mWatcher, UserHandle.myUserId());
|
||||||
} catch (RemoteException ex) {
|
} catch (RemoteException ex) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ public class MonkeyInstrumentationEvent extends MonkeyEvent {
|
|||||||
Bundle args = new Bundle();
|
Bundle args = new Bundle();
|
||||||
args.putString("class", mTestCaseName);
|
args.putString("class", mTestCaseName);
|
||||||
try {
|
try {
|
||||||
iam.startInstrumentation(cn, null, 0, args, null);
|
iam.startInstrumentation(cn, null, 0, args, null, 0);
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
System.err.println("** Failed talking with activity manager!");
|
System.err.println("** Failed talking with activity manager!");
|
||||||
return MonkeyEvent.INJECT_ERROR_REMOTE_EXCEPTION;
|
return MonkeyEvent.INJECT_ERROR_REMOTE_EXCEPTION;
|
||||||
|
|||||||
Reference in New Issue
Block a user