Home
last modified time | relevance | path

Searched refs:userManager (Results 1 – 20 of 20) sorted by relevance

/cts/hostsidetests/devicepolicy/app/LauncherTestsSupport/src/com/android/cts/launchertests/support/
DQuietModeCommandReceiver.java41 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/
DNonExportedActivity.java46 UserManager userManager = getSystemService(UserManager.class); in getCurrentUserSerialNumber() local
47 return userManager.getSerialNumberForUser(Process.myUserHandle()); in getCurrentUserSerialNumber()
DMainActivity.java52 UserManager userManager = getSystemService(UserManager.class); in getCurrentUserSerialNumber() local
53 return userManager.getSerialNumberForUser(Process.myUserHandle()); in getCurrentUserSerialNumber()
DNonMainActivity.java55 UserManager userManager = getSystemService(UserManager.class); in getCurrentUserSerialNumber() local
56 return userManager.getSerialNumberForUser(Process.myUserHandle()); in getCurrentUserSerialNumber()
DCrossProfileAppsNonTargetUserTest.java56 UserManager userManager = context.getSystemService(UserManager.class); in readTargetUser() local
58 mTargetUser = userManager.getUserForSerialNumber(userSn); in readTargetUser()
DCrossProfileAppsTargetUserTest.java80 UserManager userManager = context.getSystemService(UserManager.class); in readTargetUser() local
82 mTargetUser = userManager.getUserForSerialNumber(mUserSerialNumber); in readTargetUser()
DCrossProfileAppsStartActivityTest.java93 UserManager userManager = context.getSystemService(UserManager.class); in readTargetUser() local
95 mTargetUser = userManager.getUserForSerialNumber(mUserSerialNumber); in readTargetUser()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DMainActivity.java43 UserManager userManager = getSystemService(UserManager.class); in onCreate() local
44 mSerialNumber = userManager.getSerialNumberForUser(Process.myUserHandle()); in onCreate()
DApplicationRestrictionsTest.java122 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/
DCustomizationTest.java41 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/
DPersonalAppsSuspensionTest.java86 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/
DQuietModeTest.java92 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/
DPhoneAccountTest.java304 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/
DTestAppInstance.java301 public RemoteUserManager userManager() { in userManager() method in TestAppInstance
/cts/tests/providerui/src/android/providerui/cts/
DMediaStoreUiTest.java430 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/
DTestAppInstanceTest.java322 testAppInstance.userManager().getUserProfiles(); in userManager_returnsUsableInstance()
/cts/tests/tests/telecom/src/android/telecom/cts/
DTestUtils.java765 UserManager userManager = in getCurrentUserSerialNumber() local
767 return userManager.getSerialNumberForUser(Process.myUserHandle()); in getCurrentUserSerialNumber()
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DAppWidgetTest.java139 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/
DRemoteDpcTest.java595 assertThat(profileOwner.userManager() in setAsProfileOwner_disallowInstallUnknownSourcesIsDisabled()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyManagerTest.java1326 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()