/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | LauncherAppsSingleUserTest.java | 38 private int mCurrentUserId; field in LauncherAppsSingleUserTest 46 mCurrentUserId = getDevice().getCurrentUser(); in setUp() 47 mSerialNumber = Integer.toString(getUserSerialNumber(mCurrentUserId)); in setUp() 49 installTestApps(mCurrentUserId); in setUp() 66 installAppAsUser(SIMPLE_APP_APK, mCurrentUserId); in testInstallAppMainUser() 69 mCurrentUserId, Collections.singletonMap(PARAM_TEST_USER, mSerialNumber)); in testInstallAppMainUser() 83 mCurrentUserId, Collections.singletonMap(PARAM_TEST_USER, mSerialNumber)); in testInstallAppMainUserIncremental() 92 startCallbackService(mCurrentUserId); in testLauncherCallbackPackageAddedMainUser() 93 installAppAsUser(SIMPLE_APP_APK, mCurrentUserId); in testLauncherCallbackPackageAddedMainUser() 98 mCurrentUserId, Collections.singletonMap(PARAM_TEST_USER, mSerialNumber)); in testLauncherCallbackPackageAddedMainUser() [all …]
|
D | LimitAppIconHidingTest.java | 36 private int mCurrentUserId; field in LimitAppIconHidingTest 47 mCurrentUserId = getDevice().getCurrentUser(); in setUp() 48 mSerialNumber = Integer.toString(getUserSerialNumber(mCurrentUserId)); in setUp() 50 installTestApps(mCurrentUserId); in setUp() 62 super.installTestApps(mCurrentUserId); in installTestApps() 63 installAppAsUser(LAUNCHER_TESTS_HAS_LAUNCHER_ACTIVITY_APK, mCurrentUserId); in installTestApps() 64 installAppAsUser(LAUNCHER_TESTS_NO_LAUNCHER_ACTIVITY_APK, mCurrentUserId); in installTestApps() 65 installAppAsUser(LAUNCHER_TESTS_NO_PERMISSION_APK, mCurrentUserId); in installTestApps() 80 mCurrentUserId, Collections.singletonMap(PARAM_TEST_USER, mSerialNumber)); in testNoSystemAppHasSyntheticAppDetailsActivityInjected() 87 mCurrentUserId, Collections.singletonMap(PARAM_TEST_USER, mSerialNumber)); in testNoLauncherActivityAppNotInjected() [all …]
|
/cts/hostsidetests/appbinding/hostside/src/com/android/cts/appbinding/ |
D | AppBindingHostTest.java | 66 private int mCurrentUserId; field in AppBindingHostTest 232 mCurrentUserId = getDevice().getCurrentUser(); in setUp() 365 installAndCheckBound(APK_1, PACKAGE_A, SERVICE_1, mCurrentUserId); in testSimpleBind1() 378 installAndCheckBound(APK_2, PACKAGE_A, SERVICE_2, mCurrentUserId); in testSimpleBind2() 391 installAndCheckBound(APK_B, PACKAGE_B, SERVICE_1, mCurrentUserId); in testSimpleBindB() 404 installAndCheckNotBound(APK_3, PACKAGE_A, mCurrentUserId, in testSimpleNotBound3() 418 installAndCheckNotBound(APK_4, PACKAGE_A, mCurrentUserId, "More than one"); in testSimpleNotBound4() 431 installAndCheckNotBound(APK_5, PACKAGE_A, mCurrentUserId, in testSimpleNotBound5() 445 installAndCheckNotBound(APK_6, PACKAGE_A, mCurrentUserId, in testSimpleNotBound6() 460 installAndCheckBound(APK_1, PACKAGE_A, SERVICE_1, mCurrentUserId); in testUpgrade() [all …]
|
/cts/hostsidetests/scopedstorage/host/src/android/scopedstorage/cts/host/ |
D | BaseHostTestCase.java | 33 private int mCurrentUserId = NativeDevice.INVALID_USER_ID; field in BaseHostTestCase 85 return mCurrentUserId; in getCurrentUserId() 118 if (mCurrentUserId != NativeDevice.INVALID_USER_ID) return; in setCurrentUserId() 121 mCurrentUserId = device.getCurrentUser(); in setCurrentUserId()
|
/cts/hostsidetests/appcloning/hostside/src/com/android/cts/appcloning/ |
D | BaseHostTestCase.java | 41 private int mCurrentUserId = NativeDevice.INVALID_USER_ID; field in BaseHostTestCase 134 return mCurrentUserId; in getCurrentUserId() 150 if (mCurrentUserId != NativeDevice.INVALID_USER_ID) return; in setCurrentUserId() 152 mCurrentUserId = sDevice.getCurrentUser(); in setCurrentUserId()
|
/cts/tests/bugreport/src/android/bugreport/cts/ |
D | BugreportManagerTest.java | 84 private int mCurrentUserId; field in BugreportManagerTest 91 mCurrentUserId = ActivityManager.getCurrentUser(); in setup() 235 int expectedUserId = mCurrentUserId; in assertBugreportFileNameCorrect() 254 mCurrentUserId)); in assertScreenshotFileNameCorrect() 324 if (type == BugreportParams.BUGREPORT_MODE_REMOTE && mCurrentUserId != 0) { in triggerBugreport()
|
/cts/tests/app/AppExitTest/src/android/app/cts/ |
D | ActivityManagerAppExitInfoTest.java | 180 private int mCurrentUserId; field in ActivityManagerAppExitInfoTest 200 mCurrentUserId = UserHandle.getUserId(Process.myUid()); in setUp() 498 mStubPackagePid, 1, mCurrentUserId); in testExitCode() 505 STUB_PACKAGE_NAME, mStubPackagePid, 1, mCurrentUserId, in testExitCode() 1301 STUB_PACKAGE_NAME, 0, 0, mCurrentUserId, in testSecondaryUser() 1397 STUB_PACKAGE_NAME, 0, 0, mCurrentUserId, in testSecondaryUser() 1530 HEARTBEAT_PACKAGE, mStubPackagePid, 1, mCurrentUserId, in runFreezerTest()
|
/cts/tests/app/AppStartTest/src/android/app/cts/ |
D | ActivityManagerAppStartInfoTest.java | 112 private int mCurrentUserId; field in ActivityManagerAppStartInfoTest 120 mCurrentUserId = UserHandle.getUserId(Process.myUid()); in setUp()
|