Loading tests/ActivityTests/src/com/google/android/test/activity/ActivityTestMain.java +3 −2 Original line number Diff line number Diff line Loading @@ -237,7 +237,7 @@ public class ActivityTestMain extends Activity { Log.i(TAG, "Service disconnected " + name); } }; if (bindService(intent, conn, Context.BIND_AUTO_CREATE, 0)) { if (bindServiceAsUser(intent, conn, Context.BIND_AUTO_CREATE, UserHandle.OWNER)) { mConnections.add(conn); } else { Toast.makeText(ActivityTestMain.this, "Failed to bind", Loading @@ -260,7 +260,8 @@ public class ActivityTestMain extends Activity { Log.i(TAG, "Service disconnected " + name); } }; if (bindService(intent, conn, Context.BIND_AUTO_CREATE, mSecondUser)) { if (bindServiceAsUser(intent, conn, Context.BIND_AUTO_CREATE, new UserHandle(mSecondUser))) { mConnections.add(conn); } else { Toast.makeText(ActivityTestMain.this, "Failed to bind", Loading Loading
tests/ActivityTests/src/com/google/android/test/activity/ActivityTestMain.java +3 −2 Original line number Diff line number Diff line Loading @@ -237,7 +237,7 @@ public class ActivityTestMain extends Activity { Log.i(TAG, "Service disconnected " + name); } }; if (bindService(intent, conn, Context.BIND_AUTO_CREATE, 0)) { if (bindServiceAsUser(intent, conn, Context.BIND_AUTO_CREATE, UserHandle.OWNER)) { mConnections.add(conn); } else { Toast.makeText(ActivityTestMain.this, "Failed to bind", Loading @@ -260,7 +260,8 @@ public class ActivityTestMain extends Activity { Log.i(TAG, "Service disconnected " + name); } }; if (bindService(intent, conn, Context.BIND_AUTO_CREATE, mSecondUser)) { if (bindServiceAsUser(intent, conn, Context.BIND_AUTO_CREATE, new UserHandle(mSecondUser))) { mConnections.add(conn); } else { Toast.makeText(ActivityTestMain.this, "Failed to bind", Loading