Home
last modified time | relevance | path

Searched refs:mCurrentUserId (Results 1 – 6 of 6) sorted by relevance

/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DLauncherAppsSingleUserTest.java36 private int mCurrentUserId; field in LauncherAppsSingleUserTest
44 mCurrentUserId = getDevice().getCurrentUser(); in setUp()
45 mSerialNumber = Integer.toString(getUserSerialNumber(mCurrentUserId)); in setUp()
47 installTestApps(mCurrentUserId); in setUp()
64 installAppAsUser(SIMPLE_APP_APK, mCurrentUserId); in testInstallAppMainUser()
67 mCurrentUserId, Collections.singletonMap(PARAM_TEST_USER, mSerialNumber)); in testInstallAppMainUser()
81 mCurrentUserId, Collections.singletonMap(PARAM_TEST_USER, mSerialNumber)); in testInstallAppMainUserIncremental()
90 startCallbackService(mCurrentUserId); in testLauncherCallbackPackageAddedMainUser()
91 installAppAsUser(SIMPLE_APP_APK, mCurrentUserId); in testLauncherCallbackPackageAddedMainUser()
96 mCurrentUserId, Collections.singletonMap(PARAM_TEST_USER, mSerialNumber)); in testLauncherCallbackPackageAddedMainUser()
[all …]
DLimitAppIconHidingTest.java36 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 testHasLauncherActivityAppHasAppDetailsActivityInjected()
87 mCurrentUserId, Collections.singletonMap(PARAM_TEST_USER, mSerialNumber)); in testNoSystemAppHasSyntheticAppDetailsActivityInjected()
[all …]
DPasswordComplexityTest.java20 private int mCurrentUserId; field in PasswordComplexityTest
36 mCurrentUserId = getDevice().getCurrentUser(); in setUp()
37 installAppAsUser(APP, mCurrentUserId); in setUp()
51 () -> runDeviceTestsAsUser(PKG, CLS, mCurrentUserId), in testGetPasswordComplexity()
/cts/hostsidetests/appbinding/hostside/src/com/android/cts/appbinding/
DAppBindingHostTest.java65 private int mCurrentUserId; field in AppBindingHostTest
217 mCurrentUserId = getDevice().getCurrentUser(); in setUp()
350 installAndCheckBound(APK_1, PACKAGE_A, SERVICE_1, mCurrentUserId); in testSimpleBind1()
363 installAndCheckBound(APK_2, PACKAGE_A, SERVICE_2, mCurrentUserId); in testSimpleBind2()
376 installAndCheckBound(APK_B, PACKAGE_B, SERVICE_1, mCurrentUserId); in testSimpleBindB()
389 installAndCheckNotBound(APK_3, PACKAGE_A, mCurrentUserId, in testSimpleNotBound3()
403 installAndCheckNotBound(APK_4, PACKAGE_A, mCurrentUserId, "More than one"); in testSimpleNotBound4()
416 installAndCheckNotBound(APK_5, PACKAGE_A, mCurrentUserId, in testSimpleNotBound5()
430 installAndCheckNotBound(APK_6, PACKAGE_A, mCurrentUserId, in testSimpleNotBound6()
445 installAndCheckBound(APK_1, PACKAGE_A, SERVICE_1, mCurrentUserId); in testUpgrade()
[all …]
/cts/hostsidetests/scopedstorage/host/src/android/scopedstorage/cts/host/
DBaseHostTestCase.java29 private int mCurrentUserId = NativeDevice.INVALID_USER_ID; field in BaseHostTestCase
79 return mCurrentUserId; in getCurrentUserId()
95 if (mCurrentUserId != NativeDevice.INVALID_USER_ID) return; in setCurrentUserId()
98 mCurrentUserId = device.getCurrentUser(); in setCurrentUserId()
/cts/tests/app/AppExitTest/src/android/app/cts/
DActivityManagerAppExitInfoTest.java131 private int mCurrentUserId; field in ActivityManagerAppExitInfoTest
149 mCurrentUserId = UserHandle.getUserId(Process.myUid()); in setUp()
391 mStubPackagePid, 1, mCurrentUserId); in testExitCode()
398 STUB_PACKAGE_NAME, mStubPackagePid, 1, mCurrentUserId, in testExitCode()
1109 STUB_PACKAGE_NAME, 0, 0, mCurrentUserId, in testSecondaryUser()
1205 STUB_PACKAGE_NAME, 0, 0, mCurrentUserId, in testSecondaryUser()