Home
last modified time | relevance | path

Searched refs:userHandle (Results 1 – 25 of 161) sorted by relevance

1234567

/frameworks/base/core/java/android/os/
DIUserManager.aidl37 int getCredentialOwnerProfile(int userHandle); in getCredentialOwnerProfile() argument
38 int getProfileParentId(int userHandle); in getProfileParentId() argument
45 UserInfo createProfileForUser(in String name, int flags, int userHandle, in createProfileForUser() argument
48 void setUserEnabled(int userHandle); in setUserEnabled() argument
50 void evictCredentialEncryptionKey(int userHandle); in evictCredentialEncryptionKey() argument
51 boolean removeUser(int userHandle); in removeUser() argument
52 boolean removeUserEvenWhenDisallowed(int userHandle); in removeUserEvenWhenDisallowed() argument
53 void setUserName(int userHandle, String name); in setUserName() argument
54 void setUserIcon(int userHandle, in Bitmap icon); in setUserIcon() argument
55 ParcelFileDescriptor getUserIcon(int userHandle); in getUserIcon() argument
[all …]
DUserManager.java1806 public UserInfo getUserInfo(@UserIdInt int userHandle) { in getUserInfo() argument
1808 return mService.getUserInfo(userHandle); in getUserInfo()
1829 public int getUserRestrictionSource(String restrictionKey, UserHandle userHandle) { in getUserRestrictionSource() argument
1831 return mService.getUserRestrictionSource(restrictionKey, userHandle.getIdentifier()); in getUserRestrictionSource()
1848 String restrictionKey, UserHandle userHandle) { in getUserRestrictionSources() argument
1850 return mService.getUserRestrictionSources(restrictionKey, userHandle.getIdentifier()); in getUserRestrictionSources()
1869 public Bundle getUserRestrictions(UserHandle userHandle) { in getUserRestrictions() argument
1871 return mService.getUserRestrictions(userHandle.getIdentifier()); in getUserRestrictions()
1887 public boolean hasBaseUserRestriction(String restrictionKey, UserHandle userHandle) { in hasBaseUserRestriction() argument
1889 return mService.hasBaseUserRestriction(restrictionKey, userHandle.getIdentifier()); in hasBaseUserRestriction()
[all …]
/frameworks/base/core/java/android/nfc/
DINfcCardEmulation.aidl29 boolean isDefaultServiceForCategory(int userHandle, in ComponentName service, String category); in isDefaultServiceForCategory() argument
30 boolean isDefaultServiceForAid(int userHandle, in ComponentName service, String aid); in isDefaultServiceForAid() argument
31 boolean setDefaultServiceForCategory(int userHandle, in ComponentName service, String category); in setDefaultServiceForCategory() argument
32 boolean setDefaultForNextTap(int userHandle, in ComponentName service); in setDefaultForNextTap() argument
33 …boolean registerAidGroupForService(int userHandle, in ComponentName service, in AidGroup aidGroup); in registerAidGroupForService() argument
34 …boolean setOffHostForService(int userHandle, in ComponentName service, in String offHostSecureElem… in setOffHostForService() argument
35 boolean unsetOffHostForService(int userHandle, in ComponentName service); in unsetOffHostForService() argument
36 AidGroup getAidGroupForService(int userHandle, in ComponentName service, String category); in getAidGroupForService() argument
37 boolean removeAidGroupForService(int userHandle, in ComponentName service, String category); in removeAidGroupForService() argument
38 List<ApduServiceInfo> getServices(int userHandle, in String category); in getServices() argument
[all …]
DINfcFCardEmulation.aidl27 String getSystemCodeForService(int userHandle, in ComponentName service); in getSystemCodeForService() argument
28 … boolean registerSystemCodeForService(int userHandle, in ComponentName service, String systemCode); in registerSystemCodeForService() argument
29 boolean removeSystemCodeForService(int userHandle, in ComponentName service); in removeSystemCodeForService() argument
30 String getNfcid2ForService(int userHandle, in ComponentName service); in getNfcid2ForService() argument
31 boolean setNfcid2ForService(int userHandle, in ComponentName service, String nfcid2); in setNfcid2ForService() argument
34 List<NfcFServiceInfo> getNfcFServices(int userHandle); in getNfcFServices() argument
DBeamShareData.java18 public final UserHandle userHandle; field in BeamShareData
21 public BeamShareData(NdefMessage msg, Uri[] uris, UserHandle userHandle, int flags) { in BeamShareData() argument
24 this.userHandle = userHandle; in BeamShareData()
41 dest.writeParcelable(userHandle, 0); in writeToParcel()
56 UserHandle userHandle = source.readParcelable(UserHandle.class.getClassLoader());
59 return new BeamShareData(msg, uris, userHandle, flags);
/frameworks/base/services/core/java/com/android/server/
DSystemServiceManager.java181 public void startUser(final int userHandle) { in startUser() argument
183 t.traceBegin("ssm.startUser-" + userHandle); in startUser()
184 Slog.i(TAG, "Calling onStartUser u" + userHandle); in startUser()
188 t.traceBegin("onStartUser-" + userHandle + " " + service.getClass().getName()); in startUser()
191 service.onStartUser(userHandle); in startUser()
193 Slog.wtf(TAG, "Failure reporting start of user " + userHandle in startUser()
202 public void unlockUser(final int userHandle) { in unlockUser() argument
204 t.traceBegin("ssm.unlockUser-" + userHandle); in unlockUser()
205 Slog.i(TAG, "Calling onUnlockUser u" + userHandle); in unlockUser()
209 t.traceBegin("onUnlockUser-" + userHandle + " " + service.getClass().getName()); in unlockUser()
[all …]
DPinnerService.java205 public void onSwitchUser(int userHandle) { in onSwitchUser() argument
206 if (!mUserManager.isManagedProfile(userHandle)) { in onSwitchUser()
207 sendPinAppsMessage(userHandle); in onSwitchUser()
212 public void onUnlockUser(int userHandle) { in onUnlockUser() argument
213 if (!mUserManager.isManagedProfile(userHandle)) { in onUnlockUser()
214 sendPinAppsMessage(userHandle); in onUnlockUser()
369 private ApplicationInfo getCameraInfo(int userHandle) { in getCameraInfo() argument
371 ApplicationInfo info = getApplicationInfoForIntent(cameraIntent, userHandle, in getCameraInfo()
381 info = getApplicationInfoForIntent(cameraIntent, userHandle, in getCameraInfo()
389 info = getApplicationInfoForIntent(cameraIntent, userHandle, in getCameraInfo()
[all …]
DSystemService.java152 public void onStartUser(int userHandle) {} in onStartUser() argument
168 public void onUnlockUser(int userHandle) {} in onUnlockUser() argument
176 public void onSwitchUser(int userHandle) {} in onSwitchUser() argument
188 public void onStopUser(int userHandle) {} in onStopUser() argument
200 public void onCleanupUser(int userHandle) {} in onCleanupUser() argument
DBluetoothService.java56 public void onSwitchUser(int userHandle) { in onSwitchUser() argument
60 mBluetoothManagerService.handleOnSwitchUser(userHandle); in onSwitchUser()
65 public void onUnlockUser(int userHandle) { in onUnlockUser() argument
66 mBluetoothManagerService.handleOnUnlockUser(userHandle); in onUnlockUser()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyCacheImpl.java47 public void onUserRemoved(int userHandle) { in onUserRemoved() argument
49 mScreenCaptureDisabled.delete(userHandle); in onUserRemoved()
50 mPasswordQuality.delete(userHandle); in onUserRemoved()
55 public boolean getScreenCaptureDisabled(int userHandle) { in getScreenCaptureDisabled() argument
57 return mScreenCaptureDisabled.get(userHandle); in getScreenCaptureDisabled()
61 public void setScreenCaptureDisabled(int userHandle, boolean disabled) { in setScreenCaptureDisabled() argument
63 mScreenCaptureDisabled.put(userHandle, disabled); in setScreenCaptureDisabled()
68 public int getPasswordQuality(@UserIdInt int userHandle) { in getPasswordQuality() argument
70 return mPasswordQuality.get(userHandle, in getPasswordQuality()
76 public void setPasswordQuality(int userHandle, int quality) { in setPasswordQuality() argument
[all …]
DCertificateMonitor.java79 public String installCaCert(final UserHandle userHandle, byte[] certBuffer) { in installCaCert() argument
90 try (KeyChainConnection keyChainConnection = mInjector.keyChainBindAsUser(userHandle)) { in installCaCert()
101 public void uninstallCaCerts(final UserHandle userHandle, final String[] aliases) { in uninstallCaCerts() argument
102 try (KeyChainConnection keyChainConnection = mInjector.keyChainBindAsUser(userHandle)) { in uninstallCaCerts()
114 public List<String> getInstalledCaCertificates(UserHandle userHandle) in getInstalledCaCertificates() argument
116 try (KeyChainConnection conn = mInjector.keyChainBindAsUser(userHandle)) { in getInstalledCaCertificates()
144 private void updateInstalledCertificates(final UserHandle userHandle) { in updateInstalledCertificates() argument
145 if (!mInjector.getUserManager().isUserUnlocked(userHandle.getIdentifier())) { in updateInstalledCertificates()
151 installedCerts = getInstalledCaCertificates(userHandle); in updateInstalledCertificates()
156 mService.onInstalledCertificatesChanged(userHandle, installedCerts); in updateInstalledCertificates()
[all …]
DDevicePolicyManagerService.java664 public void onStartUser(int userHandle) { in onStartUser() argument
665 mService.handleStartUser(userHandle); in onStartUser()
669 public void onUnlockUser(int userHandle) { in onUnlockUser() argument
670 mService.handleUnlockUser(userHandle); in onUnlockUser()
674 public void onStopUser(int userHandle) { in onStopUser() argument
675 mService.handleStopUser(userHandle); in onStopUser()
735 public DevicePolicyData(int userHandle) { in DevicePolicyData() argument
736 mUserHandle = userHandle; in DevicePolicyData()
754 final int userHandle = intent.getIntExtra(Intent.EXTRA_USER_HANDLE,
763 && userHandle == mOwners.getDeviceOwnerUserId()) {
[all …]
/frameworks/base/core/java/android/app/admin/
DIDevicePolicyManager.aidl52 int getPasswordQuality(in ComponentName who, int userHandle, boolean parent); in getPasswordQuality() argument
55 int getPasswordMinimumLength(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumLength() argument
58 int getPasswordMinimumUpperCase(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumUpperCase() argument
61 int getPasswordMinimumLowerCase(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumLowerCase() argument
64 int getPasswordMinimumLetters(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumLetters() argument
67 int getPasswordMinimumNumeric(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumNumeric() argument
70 int getPasswordMinimumSymbols(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumSymbols() argument
73 int getPasswordMinimumNonLetter(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumNonLetter() argument
76 int getPasswordHistoryLength(in ComponentName who, int userHandle, boolean parent); in getPasswordHistoryLength() argument
79 long getPasswordExpirationTimeout(in ComponentName who, int userHandle, boolean parent); in getPasswordExpirationTimeout() argument
[all …]
DDevicePolicyCache.java44 public abstract boolean getScreenCaptureDisabled(@UserIdInt int userHandle); in getScreenCaptureDisabled() argument
50 public abstract int getPasswordQuality(@UserIdInt int userHandle); in getPasswordQuality() argument
59 public boolean getScreenCaptureDisabled(int userHandle) { in getScreenCaptureDisabled() argument
64 public int getPasswordQuality(int userHandle) { in getPasswordQuality() argument
/frameworks/base/startop/iorap/src/com/google/android/startop/iorap/
DSystemServiceUserEvent.java63 public final int userHandle; field in SystemServiceUserEvent
65 public SystemServiceUserEvent(@Type int type, int userHandle) { in SystemServiceUserEvent() argument
67 this.userHandle = userHandle; in SystemServiceUserEvent()
73 if (userHandle < 0) { in checkConstructorArguments()
80 return String.format("{type: %d, userHandle: %d}", type, userHandle); in toString()
95 userHandle == other.userHandle; in equals()
102 out.writeInt(userHandle); in writeToParcel()
107 this.userHandle = in.readInt(); in SystemServiceUserEvent()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DVoiceInteractionManagerService.java160 public void onStartUser(int userHandle) { in onStartUser() argument
161 mServiceStub.initForUser(userHandle); in onStartUser()
165 public void onUnlockUser(int userHandle) { in onUnlockUser() argument
166 mServiceStub.initForUser(userHandle); in onUnlockUser()
171 public void onSwitchUser(int userHandle) { in onSwitchUser() argument
172 mServiceStub.switchUser(userHandle); in onSwitchUser()
275 public void initForUser(@UserIdInt int userHandle) { in initForUser() argument
277 t.traceBegin("initForUser(" + userHandle + ")"); in initForUser()
279 initForUserNoTracing(userHandle); in initForUser()
285 private void initForUserNoTracing(@UserIdInt int userHandle) { in initForUserNoTracing() argument
[all …]
/frameworks/base/core/java/android/content/pm/
DPackageStats.java43 public int userHandle; field in PackageStats
136 userHandle = UserHandle.myUserId(); in PackageStats()
140 public PackageStats(String pkgName, int userHandle) { in PackageStats() argument
142 this.userHandle = userHandle; in PackageStats()
147 userHandle = source.readInt(); in PackageStats()
160 userHandle = pStats.userHandle; in PackageStats()
177 dest.writeInt(userHandle); in writeToParcel()
196 && userHandle == otherStats.userHandle in equals()
209 return Objects.hash(packageName, userHandle, codeSize, dataSize, in hashCode()
DCrossProfileApps.java137 public @NonNull CharSequence getProfileSwitchingLabel(@NonNull UserHandle userHandle) { in getProfileSwitchingLabel() argument
138 verifyCanAccessUser(userHandle); in getProfileSwitchingLabel()
140 final int stringRes = mUserManager.isManagedProfile(userHandle.getIdentifier()) in getProfileSwitchingLabel()
159 public @NonNull Drawable getProfileSwitchingIconDrawable(@NonNull UserHandle userHandle) { in getProfileSwitchingIconDrawable() argument
160 verifyCanAccessUser(userHandle); in getProfileSwitchingIconDrawable()
163 mUserManager.isManagedProfile(userHandle.getIdentifier()); in getProfileSwitchingIconDrawable()
172 private void verifyCanAccessUser(UserHandle userHandle) { in verifyCanAccessUser() argument
173 if (!getTargetUserProfiles().contains(userHandle)) { in verifyCanAccessUser()
174 throw new SecurityException("Not allowed to access " + userHandle); in verifyCanAccessUser()
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternUtils.java684 public boolean clearLock(byte[] savedCredential, int userHandle) { in clearLock() argument
685 return clearLock(savedCredential, userHandle, false); in clearLock()
691 public boolean clearLock(byte[] savedCredential, int userHandle, boolean allowUntrustedChange) { in clearLock() argument
692 final int currentQuality = getKeyguardStoredPasswordQuality(userHandle); in clearLock()
693 setKeyguardStoredPasswordQuality(PASSWORD_QUALITY_UNSPECIFIED, userHandle); in clearLock()
697 savedCredential, PASSWORD_QUALITY_UNSPECIFIED, userHandle, in clearLock()
701 setKeyguardStoredPasswordQuality(currentQuality, userHandle); in clearLock()
705 if (userHandle == UserHandle.USER_SYSTEM) { in clearLock()
711 onAfterChangingPassword(userHandle); in clearLock()
921 int userHandle) { in saveLockPassword() argument
[all …]
/frameworks/base/services/restrictions/java/com/android/server/restrictions/
DRestrictionsManagerService.java77 int userHandle = UserHandle.getCallingUserId(); in hasRestrictionsProvider() local
81 return mDpm.getRestrictionsProvider(userHandle) != null; in hasRestrictionsProvider()
98 int userHandle = UserHandle.getUserId(callingUid); in requestPermission() local
103 mDpm.getRestrictionsProvider(userHandle); in requestPermission()
119 mContext.sendBroadcastAsUser(intent, new UserHandle(userHandle)); in requestPermission()
131 final int userHandle = UserHandle.getCallingUserId(); in createLocalApprovalIntent() local
136 mDpm.getRestrictionsProvider(userHandle); in createLocalApprovalIntent()
146 null /* resolvedType */, 0 /* flags */, userHandle); in createLocalApprovalIntent()
164 int userHandle = UserHandle.getUserId(callingUid); in notifyPermissionResponse() local
168 ComponentName permProvider = mDpm.getRestrictionsProvider(userHandle); in notifyPermissionResponse()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerServiceTestable.java104 public void notifyChangeToContentObserver(Uri uri, int userHandle) { in notifyChangeToContentObserver() argument
105 ContentObserver co = mMockInjector.mContentObservers.get(new Pair<>(uri, userHandle)); in notifyChangeToContentObserver()
107 co.onChange(false, uri, userHandle); // notify synchronously in notifyChangeToContentObserver()
113 co.onChange(false, uri, userHandle); // notify synchronously in notifyChangeToContentObserver()
343 ContentObserver observer, int userHandle) { in registerContentObserver() argument
344 mContentObservers.put(new Pair<Uri, Integer>(uri, userHandle), observer); in registerContentObserver()
348 int settingsSecureGetIntForUser(String name, int def, int userHandle) { in settingsSecureGetIntForUser() argument
349 return services.settings.settingsSecureGetIntForUser(name, def, userHandle); in settingsSecureGetIntForUser()
353 String settingsSecureGetStringForUser(String name, int userHandle) { in settingsSecureGetStringForUser() argument
354 return services.settings.settingsSecureGetStringForUser(name, userHandle); in settingsSecureGetStringForUser()
[all …]
/frameworks/opt/car/services/src/com/android/internal/car/
DCarServiceHelperService.java168 public void onUnlockUser(int userHandle) { in onUnlockUser() argument
169 handleUserLockStatusChange(userHandle, true); in onUnlockUser()
171 Slog.d(TAG, "User" + userHandle + " unlocked"); in onUnlockUser()
176 public void onStopUser(int userHandle) { in onStopUser() argument
177 handleUserLockStatusChange(userHandle, false); in onStopUser()
181 public void onCleanupUser(int userHandle) { in onCleanupUser() argument
182 handleUserLockStatusChange(userHandle, false); in onCleanupUser()
186 public void onSwitchUser(int userHandle) { in onSwitchUser() argument
188 mLastSwitchedUser = userHandle; in onSwitchUser()
193 sendSwitchUserBindercall(userHandle); in onSwitchUser()
[all …]
/frameworks/base/services/appwidget/java/com/android/server/appwidget/
DAppWidgetService.java51 public void onStopUser(int userHandle) { in onStopUser() argument
52 mImpl.onUserStopped(userHandle); in onStopUser()
56 public void onSwitchUser(int userHandle) { in onSwitchUser() argument
57 mImpl.reloadWidgetsMaskedStateForGroup(userHandle); in onSwitchUser()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationLockscreenUserManagerImpl.java368 public boolean userAllowsPrivateNotificationsInPublic(int userHandle) { in userAllowsPrivateNotificationsInPublic() argument
369 if (userHandle == UserHandle.USER_ALL) { in userAllowsPrivateNotificationsInPublic()
373 if (mUsersAllowingPrivateNotifications.indexOfKey(userHandle) < 0) { in userAllowsPrivateNotificationsInPublic()
376 Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS, 0, userHandle); in userAllowsPrivateNotificationsInPublic()
377 final boolean allowedByDpm = adminAllowsKeyguardFeature(userHandle, in userAllowsPrivateNotificationsInPublic()
380 mUsersAllowingPrivateNotifications.append(userHandle, allowed); in userAllowsPrivateNotificationsInPublic()
384 return mUsersAllowingPrivateNotifications.get(userHandle); in userAllowsPrivateNotificationsInPublic()
387 private boolean adminAllowsKeyguardFeature(int userHandle, int feature) { in adminAllowsKeyguardFeature() argument
388 if (userHandle == UserHandle.USER_ALL) { in adminAllowsKeyguardFeature()
392 mDevicePolicyManager.getKeyguardDisabledFeatures(null /* admin */, userHandle); in adminAllowsKeyguardFeature()
[all …]
/frameworks/base/services/core/java/com/android/server/content/
DContentService.java114 public void onStartUser(int userHandle) { in onStartUser() argument
115 mService.onStartUser(userHandle); in onStartUser()
119 public void onUnlockUser(int userHandle) { in onUnlockUser() argument
120 mService.onUnlockUser(userHandle); in onUnlockUser()
124 public void onStopUser(int userHandle) { in onStopUser() argument
125 mService.onStopUser(userHandle); in onStopUser()
129 public void onCleanupUser(int userHandle) { in onCleanupUser() argument
131 mService.mCache.remove(userHandle); in onCleanupUser()
190 void onStartUser(int userHandle) { in onStartUser() argument
191 if (mSyncManager != null) mSyncManager.onStartUser(userHandle); in onStartUser()
[all …]

1234567