Home
last modified time | relevance | path

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

1234

/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/core/java/android/app/admin/
DDevicePolicyManager.java125 protected int myUserId() { in myUserId() method in DevicePolicyManager
126 return UserHandle.myUserId(); in myUserId()
1056 return isAdminActiveAsUser(admin, myUserId()); in isAdminActive()
1097 return getActiveAdminsAsUser(myUserId()); in getActiveAdmins()
1121 return packageHasActiveAdmins(packageName, myUserId()); in packageHasActiveAdmins()
1156 mService.removeActiveAdmin(admin, myUserId()); in removeActiveAdmin()
1177 return mService.hasGrantedPolicy(admin, usesPolicy, myUserId()); in hasGrantedPolicy()
1329 return getPasswordQuality(admin, myUserId()); in getPasswordQuality()
1394 return getPasswordMinimumLength(admin, myUserId()); in getPasswordMinimumLength()
1463 return getPasswordMinimumUpperCase(admin, myUserId()); in getPasswordMinimumUpperCase()
[all …]
/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/
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()
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()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DBroadcastTest.java308 UserHandle.myUserId()); in testSetSticky()
310 ActivityManagerNative.broadcastStickyIntent(intent, null, UserHandle.myUserId()); in testSetSticky()
322 ActivityManagerNative.broadcastStickyIntent(intent, null, UserHandle.myUserId()); in testClearSticky()
326 UserHandle.myUserId()); in testClearSticky()
337 ActivityManagerNative.broadcastStickyIntent(intent, null, UserHandle.myUserId()); in testReplaceSticky()
340 ActivityManagerNative.broadcastStickyIntent(intent, null, UserHandle.myUserId()); in testReplaceSticky()
354 ActivityManagerNative.broadcastStickyIntent(intent, null, UserHandle.myUserId()); in testReceiveSticky()
364 ActivityManagerNative.broadcastStickyIntent(intent, null, UserHandle.myUserId()); in testReceive2Sticky()
367 ActivityManagerNative.broadcastStickyIntent(intent, null, UserHandle.myUserId()); in testReceive2Sticky()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DAppUtils.java41 int status = pm.getIntentVerificationStatusAsUser(packageName, UserHandle.myUserId()); in getLaunchByDefaultSummary()
53 return usbManager.hasDefaults(packageName, UserHandle.myUserId()); in hasUsbDefaults()
/frameworks/base/core/java/android/appwidget/
DAppWidgetManager.java847 return bindAppWidgetIdIfAllowed(appWidgetId, UserHandle.myUserId(), provider, null); in bindAppWidgetIdIfAllowed()
871 return bindAppWidgetIdIfAllowed(appWidgetId, UserHandle.myUserId(), provider, options); in bindAppWidgetIdIfAllowed()
933 return mService.hasBindAppWidgetPermission(packageName, UserHandle.myUserId()); in hasBindAppWidgetPermission()
953 setBindAppWidgetPermission(packageName, UserHandle.myUserId(), permission); in setBindAppWidgetPermission()
/frameworks/base/core/java/android/os/
DUserManager.java752 return UserHandle.myUserId(); in getUserHandle()
791 UserInfo user = getUserInfo(UserHandle.myUserId()); in isPrimaryUser()
803 return UserHandle.myUserId() == UserHandle.USER_SYSTEM; in isSystemUser()
812 return isUserAdmin(UserHandle.myUserId()); in isAdminUser()
857 UserInfo user = getUserInfo(UserHandle.myUserId()); in isGuestUser()
871 return mService.isManagedProfile(UserHandle.myUserId()); in isManagedProfile()
901 return isUserEphemeral(UserHandle.myUserId()); in isEphemeralUser()
1679 int[] userIds = getProfileIds(UserHandle.myUserId(), true /* enabledOnly */); in getUserProfiles()
DEnvironment.java74 final int userId = UserHandle.myUserId(); in initForCurrentUser()
769 final StorageVolume volume = StorageManager.getStorageVolume(path, UserHandle.myUserId()); in getExternalStorageState()
802 final StorageVolume volume = StorageManager.getStorageVolume(path, UserHandle.myUserId()); in isExternalStorageRemovable()
846 final StorageVolume volume = StorageManager.getStorageVolume(path, UserHandle.myUserId()); in isExternalStorageEmulated()
/frameworks/base/core/java/android/provider/
DSettings.java1576 final boolean isSelf = (userHandle == UserHandle.myUserId()); in getStringForUser()
1594 + " by user " + UserHandle.myUserId() + " so skipping cache"); in getStringForUser()
1665 + " by " + UserHandle.myUserId() in getStringForUser()
1895 return getStringForUser(resolver, name, UserHandle.myUserId()); in getString()
1922 return putStringForUser(resolver, name, value, UserHandle.myUserId()); in putString()
1976 return getIntForUser(cr, name, def, UserHandle.myUserId()); in getInt()
2009 return getIntForUser(cr, name, UserHandle.myUserId()); in getInt()
2037 return putIntForUser(cr, name, value, UserHandle.myUserId()); in putInt()
2061 return getLongForUser(cr, name, def, UserHandle.myUserId()); in getLong()
2096 return getLongForUser(cr, name, UserHandle.myUserId()); in getLong()
[all …]
/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/core/java/android/app/usage/
DUsageStatsManager.java232 return mService.isAppInactive(packageName, UserHandle.myUserId()); in isAppInactive()
244 mService.setAppInactive(packageName, inactive, UserHandle.myUserId()); in setAppInactive()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DRestrictedPreferenceHelper.java66 UserHandle.myUserId())) { in RestrictedPreferenceHelper()
123 checkRestrictionAndSetDisabled(mAttrUserRestriction, UserHandle.myUserId()); in onAttachedToHierarchy()
DRestrictedLockUtils.java373 return new EnforcedAdmin(adminComponent, UserHandle.myUserId()); in checkIfAutoTimeRequired()
472 final int userId = UserHandle.myUserId(); in checkIfMaximumTimeToLockIsSet()
619 int targetUserId = UserHandle.myUserId(); in sendShowAdminSupportDetailsIntent()
633 int adminUserId = UserHandle.myUserId(); in getShowAdminSupportDetailsIntent()
644 for (UserInfo userInfo : um.getProfiles(UserHandle.myUserId())) { in isCurrentUserOrProfile()
656 for (UserInfo userInfo : um.getProfiles(UserHandle.myUserId())) { in isAdminInCurrentUserOrProfile()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accessibility/
DAccessibilityUtils.java48 return getEnabledServicesFromSettings(context, UserHandle.myUserId()); in getEnabledServicesFromSettings()
95 setAccessibilityServiceState(context, toggledService, enabled, UserHandle.myUserId()); in setAccessibilityServiceState()
/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/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()
DUserTarget.java32 res.putInt("user", UserHandle.myUserId()); in onReceive()
/frameworks/base/keystore/java/android/security/
DGateKeeper.java45 return getService().getSecureUserId(UserHandle.myUserId()); in getSecureUserId()
/frameworks/base/core/java/com/android/internal/app/
DIntentForwarderActivity.java178 List<UserInfo> relatedUsers = userManager.getProfiles(UserHandle.myUserId()); in getManagedProfile()
193 UserInfo parent = userManager.getProfileParent(UserHandle.myUserId()); in getProfileParent()

1234