Home
last modified time | relevance | path

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

/cts/hostsidetests/devicepolicy/app/CrossProfileAppsTest/src/com/android/cts/crossprofileappstest/
DNonMainActivity.java46 UserManager userManager = getSystemService(UserManager.class); in getCurrentUserSerialNumber() local
47 return userManager.getSerialNumberForUser(Process.myUserHandle()); in getCurrentUserSerialNumber()
DMainActivity.java53 UserManager userManager = getSystemService(UserManager.class); in getCurrentUserSerialNumber() local
54 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()
DCrossProfileAppsStartActivityTest.java82 UserManager userManager = context.getSystemService(UserManager.class); in readTargetUser() local
84 mTargetUser = userManager.getUserForSerialNumber(mUserSerialNumber); in readTargetUser()
DCrossProfileAppsTargetUserTest.java80 UserManager userManager = context.getSystemService(UserManager.class); in readTargetUser() local
82 mTargetUser = userManager.getUserForSerialNumber(mUserSerialNumber); in readTargetUser()
/cts/hostsidetests/devicepolicy/app/LauncherTestsSupport/src/com/android/cts/launchertests/support/
DQuietModeCommandReceiver.java40 final UserManager userManager = context.getSystemService(UserManager.class); in onReceive() local
46 userManager.requestQuietModeEnabled(enableQuietMode, targetUser); in onReceive()
/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/LauncherTests/src/com/android/cts/launchertests/
DLauncherAppsTests.java94 UserManager userManager = (UserManager) mInstrumentation.getContext().getSystemService( in setUp() local
96 mUser = getUserHandleArgument(userManager, "testUser", arguments); in setUp()
359 private UserHandle getUserHandleArgument(UserManager userManager, String key, in getUserHandleArgument() argument
366 return userManager.getUserForSerialNumber(serialNo); in getUserHandleArgument()
DQuietModeTest.java83 UserManager userManager = context.getSystemService(UserManager.class); in readParams() local
85 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/tests/tests/telecom/src/android/telecom/cts/
DTestUtils.java600 UserManager userManager = in getCurrentUserSerialNumber() local
602 return userManager.getSerialNumberForUser(Process.myUserHandle()); in getCurrentUserSerialNumber()
/cts/tests/tests/location/src/android/location/cts/
DLocationManagerTest.java1371 UserManager userManager = mContext.getSystemService(UserManager.class); in isSystemUser() local
1372 return userManager.isSystemUser(); in isSystemUser()
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DAppWidgetTest.java136 UserManager userManager = (UserManager) getInstrumentation() in testGetAppInstalledProvidersForCurrentUserNewAllProfiles() local
141 List<UserHandle> profiles = userManager.getUserProfiles(); in testGetAppInstalledProvidersForCurrentUserNewAllProfiles()