Home
last modified time | relevance | path

Searched refs:mProfileUserId (Results 1 – 14 of 14) sorted by relevance

/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DManagedProfileTest.java57 mProfileUserId); in testManagedProfileSetup()
95 MANAGED_PROFILE_PKG, ".WifiTest", "testAddWifiNetwork", mProfileUserId); in testProfileWifiCleanup()
98 removeUser(mProfileUserId); in testProfileWifiCleanup()
108 mProfileUserId); in testSettingsIntents()
115 mProfileUserId); in testCurrentApiHelper()
122 "testParentProfileApiDisabled", mProfileUserId); in testParentProfileApiDisabled()
128 "testCannotWipeParentProfile", mProfileUserId); in testCannotCallMethodsOnParentProfile()
131 "testCannotCallAutoTimeMethodsOnParentProfile", mProfileUserId); in testCannotCallMethodsOnParentProfile()
134 "testCannotCallSetDefaultSmsApplicationOnParentProfile", mProfileUserId); in testCannotCallMethodsOnParentProfile()
153 changeUserRestrictionOrFail(restriction, true, mProfileUserId); in testNoDebuggingFeaturesRestriction()
[all …]
DLauncherAppsProfileTest.java43 private int mProfileUserId; field in LauncherAppsProfileTest
55 mProfileUserId = createManagedProfile(mParentUserId); in setUp()
56 installAppAsUser(MANAGED_PROFILE_APK, mProfileUserId); in setUp()
58 mProfileUserId); in setUp()
59 mProfileSerialNumber = Integer.toString(getUserSerialNumber(mProfileUserId)); in setUp()
61 startUserAndWait(mProfileUserId); in setUp()
69 removeUser(mProfileUserId); in tearDown()
80 installAppAsUser(SIMPLE_APP_APK, mProfileUserId); in testGetActivitiesWithProfile()
93 mProfileUserId, Collections.singletonMap(PARAM_TEST_USER, mProfileSerialNumber)); in testGetActivitiesWithProfile()
98 mProfileUserId, Collections.singletonMap(PARAM_TEST_USER, mMainUserSerialNumber)); in testGetActivitiesWithProfile()
[all …]
DManagedProfileCrossProfileTest.java92 disableActivityForUser("PrimaryUserActivity", mProfileUserId); in testCrossProfileIntentFilters()
95 MANAGED_PROFILE_PKG + ".CrossProfileIntentFilterTest", mProfileUserId); in testCrossProfileIntentFilters()
100 "testAddCrossProfileIntentFilter_all", mProfileUserId); in testCrossProfileIntentFilters()
108 String command = "am start -W --user " + mProfileUserId + " " + MANAGED_PROFILE_PKG in testCrossProfileIntentFilters()
128 "testRemoveAllFilters", mProfileUserId); in testCrossProfileContent()
130 "testAddManagedCanAccessParentFilters", mProfileUserId); in testCrossProfileContent()
135 "testRemoveAllFilters", mProfileUserId); in testCrossProfileContent()
137 "testAddParentCanAccessManagedFilters", mProfileUserId); in testCrossProfileContent()
138 runDeviceTestsAsUser(INTENT_SENDER_PKG, ".ContentTest", mProfileUserId); in testCrossProfileContent()
150 "testSetEmptyAllowlist", mProfileUserId, in testCrossProfileNotificationListeners_EmptyAllowlist()
[all …]
DManagedProfileContactsTest.java48 MANAGED_PROFILE_PKG, mParentUserId, mProfileUserId); in testManagedContactsUris()
74 MANAGED_PROFILE_PKG, mParentUserId, mProfileUserId); in testManagedContactsPolicies()
142 "settings put --user " + mProfileUserId in runManagedContactsTest()
152 "testAddTestAccount", mProfileUserId); in runManagedContactsTest()
157 setDirectoryPrefix(MANAGED_DIRECTORY_PREFIX, mProfileUserId); in runManagedContactsTest()
168 "testManagedProfilePhoneAndEmailLookup_insertedAndfound", mProfileUserId); in runManagedContactsTest()
178 mProfileUserId); in runManagedContactsTest()
185 "testCurrentProfileContacts_removeContacts", mProfileUserId); in runManagedContactsTest()
200 private int mProfileUserId; field in ManagedProfileContactsTest.ContactsTestSet
207 mProfileUserId = profileUserId; in ContactsTestSet()
[all …]
DManagedProfileWipeTest.java43 mTestArgs.put(KEY_PROFILE_ID, Integer.toString(mProfileUserId)); in setUp()
56 assertTrue(listUsers().contains(mProfileUserId)); in testWipeDataWithReason()
72 waitUntilUserRemoved(mProfileUserId); in testWipeDataWithReason()
78 assertTrue(listUsers().contains(mProfileUserId)); in testWipeDataLogged()
94 waitUntilUserRemoved(mProfileUserId); in testWipeDataLogged()
100 assertTrue(listUsers().contains(mProfileUserId)); in testWipeDataWithoutReason()
117 waitUntilUserRemoved(mProfileUserId); in testWipeDataWithoutReason()
125 assertTrue(listUsers().contains(mProfileUserId)); in testWipeData()
136 waitUntilUserRemoved(mProfileUserId); in testWipeData()
DManagedProfileProvisioningSingleAdminTest.java39 private int mProfileUserId; field in ManagedProfileProvisioningSingleAdminTest
48 mProfileUserId = 0; in setUp()
53 if (mProfileUserId != 0) { in tearDown()
54 removeUser(mProfileUserId); in tearDown()
68 mProfileUserId = getFirstManagedProfileUserId(); in testEXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME()
DBaseManagedProfileTest.java51 protected int mProfileUserId; field in BaseManagedProfileTest
61 mProfileUserId = createManagedProfile(mParentUserId); in setUp()
62 startUserAndWait(mProfileUserId); in setUp()
69 mProfileUserId); in setUp()
70 waitForUserUnlock(mProfileUserId); in setUp()
76 removeUser(mProfileUserId); in tearDown()
/cts/hostsidetests/backup/src/android/cts/backup/
DProfileFullBackupRestoreHostSideTest.java39 private Optional<Integer> mProfileUserId = Optional.empty(); field in ProfileFullBackupRestoreHostSideTest
52 mProfileUserId = Optional.of(profileUserId); in setUp()
67 if (mProfileUserId.isPresent()) { in tearDown()
68 int profileUserId = mProfileUserId.get(); in tearDown()
75 mProfileUserId = Optional.empty(); in tearDown()
93 int profileUserId = mProfileUserId.get(); in testFullBackupAndSystemRestore()
120 int profileUserId = mProfileUserId.get(); in testFullBackupAndRestoreAtInstall()
140 mProfileUserId.get()); in checkDeviceTest()
DMultiUserBackupStateTest.java43 private Optional<Integer> mProfileUserId = Optional.empty(); field in MultiUserBackupStateTest
58 mProfileUserId = Optional.of(profileUserId); in setUp()
66 if (mProfileUserId.isPresent()) { in tearDown()
67 assertTrue(getDevice().removeUser(mProfileUserId.get())); in tearDown()
68 mProfileUserId = Optional.empty(); in tearDown()
85 int profileUserId = mProfileUserId.get(); in testBackupDeactivatedWhenUserIsRemoved()
91 mProfileUserId = Optional.empty(); in testBackupDeactivatedWhenUserIsRemoved()
DProfileKeyValueBackupRestoreHostSideTest.java47 private Optional<Integer> mProfileUserId = Optional.empty(); field in ProfileKeyValueBackupRestoreHostSideTest
60 mProfileUserId = Optional.of(profileUserId); in setUp()
75 if (mProfileUserId.isPresent()) { in tearDown()
76 int profileUserId = mProfileUserId.get(); in tearDown()
83 mProfileUserId = Optional.empty(); in tearDown()
101 int profileUserId = mProfileUserId.get(); in testKeyValueBackupAndRestore()
133 int profileUserId = mProfileUserId.get(); in testKeyValueBackupAndRestoreForInstallExistingPackage()
176 int profileUserId = mProfileUserId.get(); in testKeyValueBackupAndRestoreForInstallExistingPackageWaitTillComplete()
196 mProfileUserId.get()); in checkDeviceTest()
DProfileSerialNumberHostSideTest.java45 private Optional<Integer> mProfileUserId = Optional.empty(); field in ProfileSerialNumberHostSideTest
55 mProfileUserId = Optional.of(profileUserId); in setUp()
63 if (mProfileUserId.isPresent()) { in tearDown()
64 int profileUserId = mProfileUserId.get(); in tearDown()
67 mProfileUserId = Optional.empty(); in tearDown()
103 checkDeviceTestAsUser(TEST_PACKAGE, TEST_CLASS, methodName, mProfileUserId.get()); in checkDeviceTest()
DProfileScheduledJobHostSideTest.java67 private Optional<Integer> mProfileUserId = Optional.empty(); field in ProfileScheduledJobHostSideTest
78 mProfileUserId = Optional.of(profileUserId); in setUp()
88 if (mProfileUserId.isPresent()) { in tearDown()
89 mDevice.removeUser(mProfileUserId.get()); in tearDown()
90 mProfileUserId = Optional.empty(); in tearDown()
98 int jobId = getJobIdForUser(KEY_VALUE_MIN_JOB_ID, mProfileUserId.get()); in testKeyValueBackupJobScheduled()
114 int profileUserId = mProfileUserId.get(); in testKeyValueBackupJobRunsSuccessfully()
134 int profileUserId = mProfileUserId.get(); in testKeyValueBackupJobCancelled()
146 int jobId = getJobIdForUser(FULL_BACKUP_MIN_JOB_ID, mProfileUserId.get()); in testFullBackupJobScheduled()
162 int profileUserId = mProfileUserId.get(); in testFullBackupJobRunsSuccessfully()
[all …]
DParallelUserBackupRestoreHostSideTest.java58 private Optional<Integer> mProfileUserId = Optional.empty(); field in ParallelUserBackupRestoreHostSideTest
72 mProfileUserId = Optional.of(profileUserId); in setUp()
86 if (mProfileUserId.isPresent()) { in tearDown()
87 mDevice.removeUser(mProfileUserId.get()); in tearDown()
88 mProfileUserId = Optional.empty(); in tearDown()
113 int profileUserId = mProfileUserId.get(); in testParallelBackupAndRestore()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DNotificationListenerTest.java63 private int mProfileUserId; field in NotificationListenerTest
70 mProfileUserId = getParam(InstrumentationRegistry.getArguments(), PARAM_PROFILE_ID); in setUp()
154 "am start --user " + mProfileUserId + " -a CANCEL_NOTIFICATION -n " in cancelProfileNotification()
166 "am start --user " + mProfileUserId + " -a POST_NOTIFICATION -n " in sendProfileNotification()