/cts/hostsidetests/devicepolicy/app/LauncherTestsSupport/src/com/android/cts/launchertests/support/ |
D | QuietModeCommandReceiver.java | 41 final UserManager userManager = context.getSystemService(UserManager.class); in onReceive() local 49 hasFlags ? userManager.requestQuietModeEnabled(enableQuietMode, targetUser, in onReceive() 51 : userManager.requestQuietModeEnabled(enableQuietMode, targetUser); in onReceive()
|
/cts/hostsidetests/devicepolicy/app/CrossProfileTestApps/CrossProfileAppsTest/src/com/android/cts/crossprofileappstest/ |
D | NonExportedActivity.java | 46 UserManager userManager = getSystemService(UserManager.class); in getCurrentUserSerialNumber() local 47 return userManager.getSerialNumberForUser(Process.myUserHandle()); in getCurrentUserSerialNumber()
|
D | MainActivity.java | 52 UserManager userManager = getSystemService(UserManager.class); in getCurrentUserSerialNumber() local 53 return userManager.getSerialNumberForUser(Process.myUserHandle()); in getCurrentUserSerialNumber()
|
D | NonMainActivity.java | 55 UserManager userManager = getSystemService(UserManager.class); in getCurrentUserSerialNumber() local 56 return userManager.getSerialNumberForUser(Process.myUserHandle()); in getCurrentUserSerialNumber()
|
D | CrossProfileAppsNonTargetUserTest.java | 56 UserManager userManager = context.getSystemService(UserManager.class); in readTargetUser() local 58 mTargetUser = userManager.getUserForSerialNumber(userSn); in readTargetUser()
|
D | CrossProfileAppsTargetUserTest.java | 80 UserManager userManager = context.getSystemService(UserManager.class); in readTargetUser() local 82 mTargetUser = userManager.getUserForSerialNumber(mUserSerialNumber); in readTargetUser()
|
D | CrossProfileAppsStartActivityTest.java | 93 UserManager userManager = context.getSystemService(UserManager.class); in readTargetUser() local 95 mTargetUser = userManager.getUserForSerialNumber(mUserSerialNumber); in readTargetUser()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | MainActivity.java | 43 UserManager userManager = getSystemService(UserManager.class); in onCreate() local 44 mSerialNumber = userManager.getSerialNumberForUser(Process.myUserHandle()); in onCreate()
|
D | ApplicationRestrictionsTest.java | 122 testApp.userManager().getApplicationRestrictions(sTestApp.packageName())); in setApplicationRestrictions_applicationRestrictionsAreSet() 151 testApp.userManager().getApplicationRestrictions(sTestApp.packageName())); in setApplicationRestrictions_applicationRestrictionsAlreadySet_setsNewRestrictions() 202 () -> differentTestApp.userManager().getApplicationRestrictions( in getApplicationRestrictions_differentPackage_throwsException() 228 differentTestApp.userManager().getApplicationRestrictions( in getApplicationRestrictions_setForOtherPackage_returnsNull() 253 testApp.userManager().getApplicationRestrictions(sTestApp.packageName())); in setApplicationRestrictions_policyDoesNotApply_applicationRestrictionsAreNotSet()
|
/cts/hostsidetests/devicepolicy/app/CustomizationApp/src/com/android/cts/customizationapp/ |
D | CustomizationTest.java | 41 final UserManager userManager = in testSetWallpaper_disallowed() local 43 assertTrue(userManager.hasUserRestriction(UserManager.DISALLOW_SET_WALLPAPER)); in testSetWallpaper_disallowed()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | PersonalAppsSuspensionTest.java | 86 final UserManager userManager = UserManager.get(mContext); in requestQuietModeEnabledForProfile() local 87 final List<UserHandle> users = userManager.getUserProfiles(); in requestQuietModeEnabledForProfile() 94 userManager.requestQuietModeEnabled(enabled, profileHandle); in requestQuietModeEnabledForProfile()
|
/cts/hostsidetests/devicepolicy/app/LauncherTests/src/com/android/cts/launchertests/ |
D | QuietModeTest.java | 92 UserManager userManager = context.getSystemService(UserManager.class); in readParams() local 94 mTargetUser = userManager.getUserForSerialNumber(userSn); in readParams()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | PhoneAccountTest.java | 304 final UserManager userManager = (UserManager) mContext.getSystemService( in enablePhoneAccount() local 308 + handle.getId() + " " + userManager in enablePhoneAccount()
|
/cts/common/device-side/bedstead/testapp/src/library/main/java/com/android/bedstead/testapp/ |
D | TestAppInstance.java | 301 public RemoteUserManager userManager() { in userManager() method in TestAppInstance
|
/cts/tests/providerui/src/android/providerui/cts/ |
D | MediaStoreUiTest.java | 430 UserManager userManager = context.getSystemService(UserManager.class); in stageFile() local 431 if (userManager.isSystemUser() && in stageFile()
|
/cts/common/device-side/bedstead/testapp/src/test/java/com/android/bedstead/testapp/ |
D | TestAppInstanceTest.java | 322 testAppInstance.userManager().getUserProfiles(); in userManager_returnsUsableInstance()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | TestUtils.java | 765 UserManager userManager = in getCurrentUserSerialNumber() local 767 return userManager.getSerialNumberForUser(Process.myUserHandle()); in getCurrentUserSerialNumber()
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
D | AppWidgetTest.java | 139 UserManager userManager = (UserManager) getInstrumentation() in testGetAppInstalledProvidersForCurrentUserNewAllProfiles() local 144 List<UserHandle> profiles = userManager.getUserProfiles(); in testGetAppInstalledProvidersForCurrentUserNewAllProfiles()
|
/cts/common/device-side/bedstead/remotedpc/src/test/java/com/android/bedstead/remotedpc/ |
D | RemoteDpcTest.java | 595 assertThat(profileOwner.userManager() in setAsProfileOwner_disallowInstallUnknownSourcesIsDisabled()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | TelephonyManagerTest.java | 1326 UserManager userManager = getContext().getSystemService(UserManager.class); in testResetSettings() local 1328 boolean canChangeMobileNetworkSettings = userManager != null in testResetSettings() 1329 && !userManager.hasUserRestriction(UserManager.DISALLOW_CONFIG_MOBILE_NETWORKS); in testResetSettings()
|