Home
last modified time | relevance | path

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

12345

/frameworks/base/core/java/android/nfc/cardemulation/
DCardEmulation.java204 return sService.isDefaultServiceForCategory(UserHandle.myUserId(), service, category); in isDefaultServiceForCategory()
213 return sService.isDefaultServiceForCategory(UserHandle.myUserId(), service, in isDefaultServiceForCategory()
235 return sService.isDefaultServiceForAid(UserHandle.myUserId(), service, aid); in isDefaultServiceForAid()
244 return sService.isDefaultServiceForAid(UserHandle.myUserId(), service, aid); in isDefaultServiceForAid()
329 return sService.registerAidGroupForService(UserHandle.myUserId(), service, aidGroup); in registerAidsForService()
338 return sService.registerAidGroupForService(UserHandle.myUserId(), service, in registerAidsForService()
363 AidGroup group = sService.getAidGroupForService(UserHandle.myUserId(), service, in getAidsForService()
373 AidGroup group = sService.getAidGroupForService(UserHandle.myUserId(), service, in getAidsForService()
400 return sService.removeAidGroupForService(UserHandle.myUserId(), service, category); in removeAidsForService()
409 return sService.removeAidGroupForService(UserHandle.myUserId(), service, category); in removeAidsForService()
[all …]
DNfcFCardEmulation.java121 return sService.getSystemCodeForService(UserHandle.myUserId(), service); in getSystemCodeForService()
130 return sService.getSystemCodeForService(UserHandle.myUserId(), service); in getSystemCodeForService()
167 return sService.registerSystemCodeForService(UserHandle.myUserId(), in registerSystemCodeForService()
177 return sService.registerSystemCodeForService(UserHandle.myUserId(), in registerSystemCodeForService()
198 return sService.removeSystemCodeForService(UserHandle.myUserId(), service); in unregisterSystemCodeForService()
207 return sService.removeSystemCodeForService(UserHandle.myUserId(), service); in unregisterSystemCodeForService()
233 return sService.getNfcid2ForService(UserHandle.myUserId(), service); in getNfcid2ForService()
242 return sService.getNfcid2ForService(UserHandle.myUserId(), service); in getNfcid2ForService()
276 return sService.setNfcid2ForService(UserHandle.myUserId(), in setNfcid2ForService()
286 return sService.setNfcid2ForService(UserHandle.myUserId(), in setNfcid2ForService()
[all …]
/frameworks/base/services/tests/notification/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/VpnDialogs/src/com/android/vpndialogs/
DConfirmDialog.java87 return mService.getAlwaysOnVpnPackage(UserHandle.myUserId()); in getAlwaysOnVpnPackage()
97 return mService.prepareVpn(mPackage, null, UserHandle.myUserId()); in prepareVpn()
126 if (mService.prepareVpn(null, mPackage, UserHandle.myUserId())) { in onClick()
129 mService.setVpnPackageAuthorization(mPackage, UserHandle.myUserId(), true); in onClick()
DManageDialog.java68 mConfig = mService.getVpnConfig(UserHandle.myUserId()); in onCreate()
125 final int myUserId = UserHandle.myUserId(); in onClick() local
127 mService.prepareVpn(VpnConfig.LEGACY_VPN, VpnConfig.LEGACY_VPN, myUserId); in onClick()
129 mService.prepareVpn(mConfig.user, VpnConfig.LEGACY_VPN, myUserId); 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/core/java/android/app/admin/
DDevicePolicyManager.java128 protected int myUserId() { in myUserId() method in DevicePolicyManager
129 return UserHandle.myUserId(); in myUserId()
1543 return isAdminActiveAsUser(admin, myUserId()); in isAdminActive()
1584 return getActiveAdminsAsUser(myUserId()); in getActiveAdmins()
1610 return packageHasActiveAdmins(packageName, myUserId()); in packageHasActiveAdmins()
1645 mService.removeActiveAdmin(admin, myUserId()); in removeActiveAdmin()
1666 return mService.hasGrantedPolicy(admin, usesPolicy, myUserId()); in hasGrantedPolicy()
1849 return getPasswordQuality(admin, myUserId()); in getPasswordQuality()
1914 return getPasswordMinimumLength(admin, myUserId()); in getPasswordMinimumLength()
1983 return getPasswordMinimumUpperCase(admin, myUserId()); in getPasswordMinimumUpperCase()
[all …]
/frameworks/base/core/java/android/os/
DUserManager.java894 return UserHandle.myUserId(); in getUserHandle()
947 UserInfo user = getUserInfo(UserHandle.myUserId()); in isPrimaryUser()
959 return UserHandle.myUserId() == UserHandle.USER_SYSTEM; in isSystemUser()
968 return isUserAdmin(UserHandle.myUserId()); in isAdminUser()
1023 UserInfo user = getUserInfo(UserHandle.myUserId()); in isGuestUser()
1035 return mService.isDemoUser(UserHandle.myUserId()); in isDemoUser()
1056 mIsManagedProfileCached = mService.isManagedProfile(UserHandle.myUserId()); in isManagedProfile()
1074 if (userId == UserHandle.myUserId()) { in isManagedProfile()
1108 return isUserEphemeral(UserHandle.myUserId()); in isEphemeralUser()
1943 int[] userIds = getProfileIds(UserHandle.myUserId(), true /* enabledOnly */); in getUserProfiles()
DEnvironment.java74 final int userId = UserHandle.myUserId(); in initForCurrentUser()
822 final StorageVolume volume = StorageManager.getStorageVolume(path, UserHandle.myUserId()); in getExternalStorageState()
855 final StorageVolume volume = StorageManager.getStorageVolume(path, UserHandle.myUserId()); in isExternalStorageRemovable()
899 final StorageVolume volume = StorageManager.getStorageVolume(path, UserHandle.myUserId()); in isExternalStorageEmulated()
/frameworks/base/services/tests/servicestests/src/com/android/server/content/
DObserverNodeTest.java38 final int myUserHandle = UserHandle.myUserId(); in testUri()
72 final int myUserHandle = UserHandle.myUserId(); in testUriNotNotify()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DAppUtils.java51 int status = pm.getIntentVerificationStatusAsUser(packageName, UserHandle.myUserId()); in getLaunchByDefaultSummary()
63 return usbManager.hasDefaults(packageName, UserHandle.myUserId()); in hasUsbDefaults()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DRestrictedPreferenceHelper.java67 UserHandle.myUserId())) { in RestrictedPreferenceHelper()
126 checkRestrictionAndSetDisabled(mAttrUserRestriction, UserHandle.myUserId()); in onAttachedToHierarchy()
/frameworks/base/core/java/android/provider/
DSettings.java1838 final boolean isSelf = (userHandle == UserHandle.myUserId()); in getStringForUser()
1856 + " by user " + UserHandle.myUserId() + " so skipping cache"); in getStringForUser()
1946 + " by " + UserHandle.myUserId() in getStringForUser()
2192 return getStringForUser(resolver, name, UserHandle.myUserId()); in getString()
2219 return putStringForUser(resolver, name, value, UserHandle.myUserId()); in putString()
2273 return getIntForUser(cr, name, def, UserHandle.myUserId()); in getInt()
2306 return getIntForUser(cr, name, UserHandle.myUserId()); in getInt()
2334 return putIntForUser(cr, name, value, UserHandle.myUserId()); in putInt()
2358 return getLongForUser(cr, name, def, UserHandle.myUserId()); in getLong()
2393 return getLongForUser(cr, name, UserHandle.myUserId()); in getLong()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/
DManagedUserContentResolverTest.java42 UserInfo.FLAG_MANAGED_PROFILE, UserHandle.myUserId()); in createUser()
/frameworks/base/core/java/android/appwidget/
DAppWidgetManager.java917 return bindAppWidgetIdIfAllowed(appWidgetId, UserHandle.myUserId(), provider, null); in bindAppWidgetIdIfAllowed()
941 return bindAppWidgetIdIfAllowed(appWidgetId, UserHandle.myUserId(), provider, options); in bindAppWidgetIdIfAllowed()
1003 return mService.hasBindAppWidgetPermission(packageName, UserHandle.myUserId()); in hasBindAppWidgetPermission()
1023 setBindAppWidgetPermission(packageName, UserHandle.myUserId(), permission); in setBindAppWidgetPermission()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTestable.java34 public int myUserId() { in myUserId() method in DevicePolicyManagerTestable
/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/core/java/android/app/usage/
DUsageStatsManager.java235 return mService.isAppInactive(packageName, UserHandle.myUserId()); in isAppInactive()
247 mService.setAppInactive(packageName, inactive, UserHandle.myUserId()); in setAppInactive()
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
DSingleUserReceiver.java30 res.putInt("user", UserHandle.myUserId()); in onReceive()
DServiceUserTarget.java33 "Service created as user " + UserHandle.myUserId(), in onCreate()
DSingleUserService.java33 "Service created as user " + UserHandle.myUserId(), in onCreate()
DUserTarget.java32 res.putInt("user", UserHandle.myUserId()); in onReceive()
/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/keystore/java/android/security/
DGateKeeper.java47 return getService().getSecureUserId(UserHandle.myUserId()); in getSecureUserId()

12345