Home
last modified time | relevance | path

Searched refs:myUserId (Results 1 – 25 of 112) sorted by relevance

12345

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DGlobalSortKeyComparatorTest.java53 new UserHandle(UserHandle.myUserId()), in testComparator()
60 new UserHandle(UserHandle.myUserId()), in testComparator()
67 new UserHandle(UserHandle.myUserId()), in testComparator()
92 new UserHandle(UserHandle.myUserId()), in testNoCrash_leftNull()
98 new UserHandle(UserHandle.myUserId()), in testNoCrash_leftNull()
122 new UserHandle(UserHandle.myUserId()), in testNoCrash_rightNull()
129 new UserHandle(UserHandle.myUserId()), in testNoCrash_rightNull()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/accessibility/
DAccessibilityUtilsTest.java52 UserHandle.myUserId()); in getEnabledServicesFromSettings_badFormat_emptyResult()
63 UserHandle.myUserId()); in getEnabledServicesFromSettings_1Service_1result()
76 UserHandle.myUserId()); in getEnabledServicesFromSettings_2Services_2results()
/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/
DManageDialog.java62 mConfig = mService.getVpnConfig(UserHandle.myUserId()); in onCreate()
119 final int myUserId = UserHandle.myUserId(); in onClick() local
121 mService.prepareVpn(VpnConfig.LEGACY_VPN, VpnConfig.LEGACY_VPN, myUserId); in onClick()
123 mService.prepareVpn(mConfig.user, VpnConfig.LEGACY_VPN, myUserId); in onClick()
DConfirmDialog.java102 return mService.getAlwaysOnVpnPackage(UserHandle.myUserId()); in getAlwaysOnVpnPackage()
112 return mService.prepareVpn(mPackage, null, UserHandle.myUserId()); in prepareVpn()
149 if (mService.prepareVpn(null, mPackage, UserHandle.myUserId())) { in onClick()
152 mService.setVpnPackageAuthorization(mPackage, UserHandle.myUserId(), mVpnType); in onClick()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DBroadcastTest.java308 UserHandle.myUserId()); in testSetSticky()
310 ActivityManager.broadcastStickyIntent(intent, UserHandle.myUserId()); in testSetSticky()
322 ActivityManager.broadcastStickyIntent(intent, UserHandle.myUserId()); in testClearSticky()
326 UserHandle.myUserId()); in testClearSticky()
337 ActivityManager.broadcastStickyIntent(intent, UserHandle.myUserId()); in testReplaceSticky()
340 ActivityManager.broadcastStickyIntent(intent, UserHandle.myUserId()); in testReplaceSticky()
354 ActivityManager.broadcastStickyIntent(intent, UserHandle.myUserId()); in testReceiveSticky()
364 ActivityManager.broadcastStickyIntent(intent, UserHandle.myUserId()); in testReceive2Sticky()
367 ActivityManager.broadcastStickyIntent(intent, UserHandle.myUserId()); in testReceive2Sticky()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DUninstallFinish.java100 int myUserId = UserHandle.myUserId(); in onReceive() local
105 if (isProfileOfOrSame(userManager, myUserId, user.id)) { in onReceive()
155 int myUserId = UserHandle.myUserId(); in onReceive() local
156 if (isProfileOfOrSame(userManager, myUserId, blockingUserId)) { in onReceive()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DTetherUtil.java29 UserHandle.myUserId()) != null; in isTetherAvailable()
31 context, DISALLOW_CONFIG_TETHERING, UserHandle.myUserId()); in isTetherAvailable()
DRestrictedPreferenceHelper.java66 UserHandle.myUserId())) { in RestrictedPreferenceHelper()
125 checkRestrictionAndSetDisabled(mAttrUserRestriction, UserHandle.myUserId()); in onAttachedToHierarchy()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/television/
DUninstallAppProgress.java156 int myUserId = UserHandle.myUserId(); in handleMessage() local
161 if (isProfileOfOrSame(userManager, myUserId, user.id)) continue; in handleMessage()
208 int myUserId = UserHandle.myUserId(); in handleMessage() local
209 if (isProfileOfOrSame(userManager, myUserId, blockingUserId)) { in handleMessage()
/frameworks/base/core/tests/coretests/src/android/app/compat/
DCompatChangesTest.java70 UserHandle.of(UserHandle.myUserId()))).isTrue(); in testEnabledChange()
79 UserHandle.of(UserHandle.myUserId()))).isFalse(); in testDisabledChange()
/frameworks/base/core/java/android/app/admin/
DDevicePolicyManager.java165 protected int myUserId() { in myUserId() method in DevicePolicyManager
2332 return isAdminActiveAsUser(admin, myUserId()); in isAdminActive()
2373 return getActiveAdminsAsUser(myUserId()); in getActiveAdmins()
2400 return packageHasActiveAdmins(packageName, myUserId()); in packageHasActiveAdmins()
2436 mService.removeActiveAdmin(admin, myUserId()); in removeActiveAdmin()
2457 return mService.hasGrantedPolicy(admin, usesPolicy, myUserId()); in hasGrantedPolicy()
2647 return getPasswordQuality(admin, myUserId()); in getPasswordQuality()
2718 return getPasswordMinimumLength(admin, myUserId()); in getPasswordMinimumLength()
2794 return getPasswordMinimumUpperCase(admin, myUserId()); in getPasswordMinimumUpperCase()
2870 return getPasswordMinimumLowerCase(admin, myUserId()); in getPasswordMinimumLowerCase()
[all …]
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
DWindowManagerPermissionTests.java100 mWm.disableKeyguard(token, "foo", UserHandle.myUserId()); in testDISABLE_KEYGUARD()
110 mWm.reenableKeyguard(token, UserHandle.myUserId()); in testDISABLE_KEYGUARD()
/frameworks/base/services/tests/servicestests/src/com/android/server/content/
DObserverNodeTest.java44 final int myUserHandle = UserHandle.myUserId(); in testUri()
78 final int myUserHandle = UserHandle.myUserId(); in testUriNotNotify()
/frameworks/base/tests/testables/src/android/testing/
DTestableSettingsProvider.java52 int userId = UserHandle.myUserId(); in clearValuesAndCheck()
74 final int userId = extras.getInt(Settings.CALL_METHOD_USER_KEY, UserHandle.myUserId()); in call()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DAppUtils.java52 int status = pm.getIntentVerificationStatusAsUser(packageName, UserHandle.myUserId()); in getLaunchByDefaultSummary()
64 return usbManager.hasDefaults(packageName, UserHandle.myUserId()); in hasUsbDefaults()
/frameworks/base/core/java/android/os/
DUserManager.java1363 return UserHandle.myUserId(); in getUserHandle()
1419 UserInfo user = getUserInfo(UserHandle.myUserId()); in isPrimaryUser()
1431 return UserHandle.myUserId() == UserHandle.USER_SYSTEM; in isSystemUser()
1445 return isUserAdmin(UserHandle.myUserId()); in isAdminUser()
1550 UserInfo user = getUserInfo(UserHandle.myUserId()); in isGuestUser()
1563 return mService.isDemoUser(UserHandle.myUserId()); in isDemoUser()
1584 mIsManagedProfileCached = mService.isManagedProfile(UserHandle.myUserId()); in isManagedProfile()
1602 if (userId == UserHandle.myUserId()) { in isManagedProfile()
1636 return isUserEphemeral(UserHandle.myUserId()); in isEphemeralUser()
2593 int[] userIds = getProfileIds(UserHandle.myUserId(), true /* enabledOnly */); in getUserProfiles()
/frameworks/base/media/java/android/media/session/
DMediaSessionManager.java132 UserHandle.myUserId()); in createSession()
183 return getActiveSessionsForUser(notificationListener, UserHandle.myUserId()); in getActiveSessions()
232 return getSession2Tokens(UserHandle.myUserId()); in getSession2Tokens()
296 UserHandle.myUserId(), handler); in addOnActiveSessionsChangedListener()
376 addOnSession2TokensChangedListener(UserHandle.myUserId(), listener, new Handler()); in addOnSession2TokensChangedListener()
392 addOnSession2TokensChangedListener(UserHandle.myUserId(), listener, handler); in addOnSession2TokensChangedListener()
/frameworks/base/core/tests/coretests/src/android/content/
DManagedUserContentResolverTest.java43 UserInfo.FLAG_MANAGED_PROFILE, UserHandle.myUserId()); in createUser()
/frameworks/base/core/java/android/view/inputmethod/
DInputContentInfo.java96 ContentProvider.getUserIdFromUri(mContentUri, UserHandle.myUserId()); in InputContentInfo()
166 if (mContentUriOwnerUserId != UserHandle.myUserId()) { in getContentUri()
/frameworks/base/core/java/android/security/net/config/
DUserCertificateSource.java34 Environment.getUserConfigDirectory(UserHandle.myUserId()), "cacerts-added")); in UserCertificateSource()
DSystemCertificateSource.java36 File configDir = Environment.getUserConfigDirectory(UserHandle.myUserId()); in SystemCertificateSource()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTestable.java39 public int myUserId() { in myUserId() method in DevicePolicyManagerTestable
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
DSingleUserReceiver.java30 res.putInt("user", UserHandle.myUserId()); in onReceive()
DSingleUserService.java33 "Service created as user " + UserHandle.myUserId(), in onCreate()
DServiceUserTarget.java33 "Service created as user " + UserHandle.myUserId(), in onCreate()

12345