Home
last modified time | relevance | path

Searched refs:mSecondaryUserId (Results 1 – 4 of 4) sorted by relevance

/cts/hostsidetests/blobstore/src/com/android/cts/host/blob/
DBlobStoreMultiUserTest.java42 private static int mSecondaryUserId; field in BlobStoreMultiUserTest
50 mSecondaryUserId = testInfo.getDevice().createUser("Test_User"); in setUpClass()
51 assertThat(testInfo.getDevice().startUser(mSecondaryUserId)).isTrue(); in setUpClass()
58 installPackageAsUser(apk, true /* grantPermissions */, mSecondaryUserId, "-t"); in setUp()
63 installPackageAsUser(TARGET_APK_ASSIST, false /* grantPermissions */, mSecondaryUserId); in setUp()
67 revokePermission(TARGET_PKG_ASSIST, PERM_ACCESS_BLOBS_ACROSS_USERS, mSecondaryUserId); in setUp()
72 if (mSecondaryUserId > 0) { in tearDownClass()
73 testInfo.getDevice().removeUser(mSecondaryUserId); in tearDownClass()
88 mSecondaryUserId); in testCreateAndOpenSession()
103 mSecondaryUserId); in testCommitAndOpenBlob()
[all …]
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DInstantAppUserTest.java66 private int mSecondaryUserId; field in InstantAppUserTest
79 mSecondaryUserId = users[1]; in setUp()
80 getDevice().switchUser(mSecondaryUserId); in setUp()
102 runDeviceTestsAsUser(EPHEMERAL_1_PKG, TEST_CLASS, "testStartExposed01", mSecondaryUserId); in testStartExposed01()
109 runDeviceTestsAsUser(EPHEMERAL_1_PKG, TEST_CLASS, "testStartExposed02", mSecondaryUserId); in testStartExposed02()
116 runDeviceTestsAsUser(EPHEMERAL_1_PKG, TEST_CLASS, "testStartExposed03", mSecondaryUserId); in testStartExposed03()
123 runDeviceTestsAsUser(EPHEMERAL_1_PKG, TEST_CLASS, "testStartExposed04", mSecondaryUserId); in testStartExposed04()
130 runDeviceTestsAsUser(EPHEMERAL_1_PKG, TEST_CLASS, "testStartExposed05", mSecondaryUserId); in testStartExposed05()
137 runDeviceTestsAsUser(EPHEMERAL_1_PKG, TEST_CLASS, "testStartExposed06", mSecondaryUserId); in testStartExposed06()
144 runDeviceTestsAsUser(EPHEMERAL_1_PKG, TEST_CLASS, "testStartExposed07", mSecondaryUserId); in testStartExposed07()
[all …]
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DLauncherAppsMultiUserTest.java29 private int mSecondaryUserId; field in LauncherAppsMultiUserTest
48 mSecondaryUserId = createUser(); in setUp()
49 mSecondaryUserSerialNumber = Integer.toString(getUserSerialNumber(mSecondaryUserId)); in setUp()
50 startUser(mSecondaryUserId); in setUp()
55 removeUser(mSecondaryUserId); in tearDown()
/cts/hostsidetests/numberblocking/src/com/android/cts/numberblocking/hostside/
DNumberBlockingTest.java55 private int mSecondaryUserId; field in NumberBlockingTest
76 installTestAppForUser(mSecondaryUserId); in setUp()
79 mSecondaryUserSerialNumber = getUserSerialNumber(mSecondaryUserId); in setUp()
85 getDevice().removeUser(mSecondaryUserId); in tearDown()
126 startUserAndWait(mSecondaryUserId); in testNumberBlocking()
130 setTestAppAsDefaultSmsAppForUser(true /* setToSmsApp */, mSecondaryUserId); in testNumberBlocking()
133 setTestAppAsDefaultSmsAppForUser(false /* setToSmsApp */, mSecondaryUserId); in testNumberBlocking()
169 mSecondaryUserId = getDevice().createUser(SECONDARY_USER_NAME); in createSecondaryUser()
197 runTestAsUser(className, methodName, mSecondaryUserId); in runTestAsSecondaryUser()