Home
last modified time | relevance | path

Searched refs:um (Results 1 – 12 of 12) sorted by relevance

/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DResetPasswordWithTokenTest.java57 UserManager um = mContext.getSystemService(UserManager.class); in testResetPasswordBeforeUnlock() local
58 assertFalse(um.isUserUnlocked()); in testResetPasswordBeforeUnlock()
73 UserManager um = mContext.getSystemService(UserManager.class); in testClearPasswordBeforeUnlock() local
74 assertFalse(um.isUserUnlocked()); in testClearPasswordBeforeUnlock()
89 assertTrue(um.isUserUnlocked()); in testClearPasswordBeforeUnlock()
/cts/tests/tests/multiuser/src/android/multiuser/cts/
DUserVisibilityTest.java67 UserManager um = context.getSystemService(UserManager.class); in testIsUserVisible_differentContext_noPermission() local
69 assertThrows(SecurityException.class, () -> um.isUserVisible()); in testIsUserVisible_differentContext_noPermission()
77 UserManager um = context.getSystemService(UserManager.class); in testIsUserVisible_differentContext_withPermission() local
79 assertWithMessage("isUserVisible() for unknown user").that(um.isUserVisible()).isFalse(); in testIsUserVisible_differentContext_withPermission()
120 UserManager um = context.getSystemService(UserManager.class); in testIsUserVisible_stoppedProfileOfCurrentUser() local
123 profile.id()).that(um.isUserVisible()).isFalse(); in testIsUserVisible_stoppedProfileOfCurrentUser()
131 UserManager um = context.getSystemService(UserManager.class); in testGetVisibleUsers_noPermission() local
133 assertThrows(SecurityException.class, () -> um.getVisibleUsers()); in testGetVisibleUsers_noPermission()
184 UserManager um = context.getSystemService(UserManager.class); in testGetVisibleUsers_stoppedProfileOfCurrentUser() local
DUserManagerTest.java183 UserManager um = userContext.getSystemService(UserManager.class); in testIsAdminUserForOtherUserContextFailsWithoutPermission() local
185 um.isAdminUser(); in testIsAdminUserForOtherUserContextFailsWithoutPermission()
209 UserManager um = userContext.getSystemService(UserManager.class); in testIsAdminUserForOtherUserContextWithPermission() local
210 assertFalse(um.isAdminUser()); in testIsAdminUserForOtherUserContextWithPermission()
252 UserManager um = context.getSystemService(UserManager.class); in testIsUserForeground_differentContext_noPermission() local
255 um.isUserForeground(); in testIsUserForeground_differentContext_noPermission()
271 UserManager um = userContext.getSystemService(UserManager.class); in testIsUserForeground_differentContext_withPermission() local
273 assertWithMessage("isUserForeground() for unknown user").that(um.isUserForeground()) in testIsUserForeground_differentContext_withPermission()
358 UserManager um = context.getSystemService(UserManager.class); in testIsUserRunning_stoppedProfileOfCurrentUser() local
361 profile.id()).that(um.isUserRunning(profile.userHandle())) in testIsUserRunning_stoppedProfileOfCurrentUser()
[all …]
/cts/tests/tests/mediacujtest/common/src/android/media/cujcommon/cts/
DCujTestBase.java127 UserManager um = activity.getSystemService(UserManager.class); in isVisibleBackgroundNonProfileUser() local
128 if (!um.isVisibleBackgroundUsersSupported()) { in isVisibleBackgroundNonProfileUser()
132 return um.isUserVisible() && !um.isUserForeground() && !um.isProfile(); in isVisibleBackgroundNonProfileUser()
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/user/
DCarUserManagerPermissionTest.java119 (um) -> um.createUser("Thanos", UserInfo.FLAG_ADMIN))); in testCannotCreateAdminUserWithoutManageUsersPermission()
128 (um) -> um.createUser("Thanos", UserInfo.FLAG_ADMIN))); in testCannotCreateAdminUserWithTypeWithoutManageUsersPermission()
166 (um) -> um.addListener(Runnable::run, listener)); in testRemoveListenerPermission()
/cts/tests/app/src/android/app/cts/
DKeyguardManagerStatusTest.java54 final UserManager um = instContext.getSystemService(UserManager.class); in testCommunalProfileIsConsideredUnlocked() local
55 final UserHandle communalUser = um.getCommunalProfile(); in testCommunalProfileIsConsideredUnlocked()
/cts/hostsidetests/devicepolicy/app/WidgetProvider/src/com/android/cts/widgetprovider/
DSimpleAppWidgetHostService.java175 UserManager um = (UserManager) getSystemService(Context.USER_SERVICE); in getUserHandleArgument() local
178 return um.getUserForSerialNumber(serial); in getUserHandleArgument()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/
DBaseUserRestrictionsTest.java135 (um) -> um.hasBaseUserRestriction(restriction, userHandle)); in hasBaseUserRestriction()
/cts/apps/VpnApp/src/com/android/cts/vpnfirewall/
DReflectorVpnService.java110 final UserManager um = (UserManager) getSystemService(Context.USER_SERVICE); in start() local
111 final Bundle restrictions = um.getApplicationRestrictions(getPackageName()); in start()
/cts/tests/tests/security/res/raw/
Dcve_2019_2245.ts3019 dcd�tv�T��+��Jh"A����$�i�.�Jʮj&���#�В I��$6�um�PXȒ�.���t���6�c��'�E�3.�>��/������e)Rq��…
6639 E㪴� Q D�g�5 �Lum��A���BFA����P���Rt�i��*��'c�� ����Z�BEP �,�i3i�0i3�h�I��
10641 ��C���bi]��4U��t/���umP�A�U
Dcve_2018_13925.ts3020 dcd�tv�T��+��Jh"A����$�i�.�Jʮj&���#�В I��$6�um�PXȒ�.���t���6�c��'�E�3.�>��/������e)Rq��…
10741 ��C���bi]��4U��t/���umP�A�U
Dcve_2019_2244.ts3021 dcd�tv�T��+��Jh"A����$�i�.�Jʮj&���#�В I��$6�um�PXȒ�.���t���6�c��'�E�3.�>��/������e)Rq��…
10747 ��C���bi]��4U��t/���umP�A�U