Home
last modified time | relevance | path

Searched refs:mUserId (Results 1 – 25 of 195) sorted by relevance

12345678

/frameworks/base/core/tests/coretests/src/android/print/
DIPrintManagerParametersTest.java66 private final int mUserId; field in IPrintManagerParametersTest
86 mUserId = UserHandle.myUserId(); in IPrintManagerParametersTest()
252 mAppId, mUserId).getId());
253 assertEquals(null, mIPrintManager.getPrintJobInfo(mBadPrintJobId, mAppId, mUserId));
254 assertEquals(null, mIPrintManager.getPrintJobInfo(null, mAppId, mUserId));
257 () -> mIPrintManager.getPrintJobInfo(mGoodPrintJob.getId(), BAD_APP_ID, mUserId),
273 List<PrintJobInfo> infos = mIPrintManager.getPrintJobInfos(mAppId, mUserId);
284 assertException(() -> mIPrintManager.getPrintJobInfos(BAD_APP_ID, mUserId),
306 getActivity().getPackageName(), mAppId, mUserId),
310 getActivity().getPackageName(), mAppId, mUserId),
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsShellCommandTest.java78 private int mUserId; field in LockSettingsShellCommandTest
88 mUserId = ActivityManager.getCurrentUser(); in setUp()
95 when(mLockPatternUtils.isSecure(mUserId)).thenReturn(true); in testWrongPassword()
96 when(mLockPatternUtils.isLockPatternEnabled(mUserId)).thenReturn(false); in testWrongPassword()
97 when(mLockPatternUtils.isLockPasswordEnabled(mUserId)).thenReturn(true); in testWrongPassword()
99 LockscreenCredential.createPassword("1234"), mUserId, null)).thenReturn(false); in testWrongPassword()
108 when(mLockPatternUtils.isSecure(mUserId)).thenReturn(true); in testChangePin()
109 when(mLockPatternUtils.isLockPatternEnabled(mUserId)).thenReturn(false); in testChangePin()
110 when(mLockPatternUtils.isLockPasswordEnabled(mUserId)).thenReturn(true); in testChangePin()
111 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(mUserId)).thenReturn( in testChangePin()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DRestrictedLockUtilsTest.java70 private final int mUserId = 194; field in RestrictedLockUtilsTest
91 UserManager.EnforcingUser enforcingUser = new UserManager.EnforcingUser(mUserId, in checkIfRestrictionEnforced_deviceOwner()
95 UserHandle.of(mUserId))). in checkIfRestrictionEnforced_deviceOwner()
100 .checkIfRestrictionEnforced(mContext, userRestriction, mUserId); in checkIfRestrictionEnforced_deviceOwner()
109 UserManager.EnforcingUser enforcingUser = new UserManager.EnforcingUser(mUserId, in checkIfRestrictionEnforced_profileOwner()
113 UserHandle.of(mUserId))). in checkIfRestrictionEnforced_profileOwner()
115 setUpProfileOwner(mAdmin1, mUserId); in checkIfRestrictionEnforced_profileOwner()
118 .checkIfRestrictionEnforced(mContext, userRestriction, mUserId); in checkIfRestrictionEnforced_profileOwner()
129 .checkIfAccountManagementDisabled(mContext, "account_type", mUserId); in checkIfDevicePolicyServiceDisabled_noEnforceAdminForManagedProfile()
139 .checkIfAccountManagementDisabled(mContext, "account_type", mUserId); in checkIfDeviceAdminFeatureDisabled_noEnforceAdminForManagedProfile()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/
DUserBackupManagerService.java176 private int mUserId; field in UserBackupManagerService.BackupWakeLock
180 mUserId = userId; in BackupWakeLock()
189 mUserId, in acquire()
198 mUserId, "Acquired wakelock:" + mPowerManagerWakeLock.getTag())); in acquire()
207 mUserId, in release()
216 mUserId, "Released wakelock:" + mPowerManagerWakeLock.getTag())); in release()
232 mUserId, "Releasing wakelock: " + mPowerManagerWakeLock.getTag())); in quit()
324 private final @UserIdInt int mUserId; field in UserBackupManagerService
546 mUserId = userId; in UserBackupManagerService()
578 mUserId); in UserBackupManagerService() local
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/display/color/
DAppSaturationControllerTest.java50 private int mUserId; field in AppSaturationControllerTest
60 mUserId = ActivityManager.getCurrentUser(); in setUp()
68 mUserId = UserHandle.USER_NULL; in tearDown()
76 .setSaturationLevel(TEST_CALLER_PACKAGE_NAME, TEST_AFFECTED_PACKAGE_NAME, mUserId, in addColorTransformController_appliesExistingSaturation()
79 .addColorTransformController(TEST_AFFECTED_PACKAGE_NAME, mUserId, ref); in addColorTransformController_appliesExistingSaturation()
89 .addColorTransformController(TEST_AFFECTED_PACKAGE_NAME, mUserId, ref); in setSaturationLevel_resetToDefault()
93 .setSaturationLevel(TEST_CALLER_PACKAGE_NAME, TEST_AFFECTED_PACKAGE_NAME, mUserId, in setSaturationLevel_resetToDefault()
99 .setSaturationLevel(TEST_CALLER_PACKAGE_NAME, TEST_AFFECTED_PACKAGE_NAME, mUserId, in setSaturationLevel_resetToDefault()
111 .addColorTransformController(TEST_AFFECTED_PACKAGE_NAME, mUserId, ref); in setSaturationLevel_updateLevel()
115 .setSaturationLevel(TEST_CALLER_PACKAGE_NAME, TEST_AFFECTED_PACKAGE_NAME, mUserId, in setSaturationLevel_updateLevel()
[all …]
/frameworks/base/cmds/dpm/src/com/android/commands/dpm/
DDpm.java55 private int mUserId = UserHandle.USER_SYSTEM; field in Dpm
170 mUserId = UserHandle.USER_CURRENT; in parseArgs()
172 mUserId = parseInt(arg); in parseArgs()
174 if (mUserId == UserHandle.USER_CURRENT) { in parseArgs()
177 mUserId = activityManager.getCurrentUser().id; in parseArgs()
193 mDevicePolicyManager.setActiveAdmin(mComponent, true /*refreshing*/, mUserId); in runSetActiveAdmin()
200 mDevicePolicyManager.setActiveAdmin(mComponent, true /*refreshing*/, mUserId); in runSetDeviceOwner()
203 if (!mDevicePolicyManager.setDeviceOwner(mComponent, mName, mUserId)) { in runSetDeviceOwner()
214 DevicePolicyManager.STATE_USER_SETUP_FINALIZED, mUserId); in runSetDeviceOwner()
222 mDevicePolicyManager.forceRemoveActiveAdmin(mComponent, mUserId); in runRemoveActiveAdmin()
[all …]
/frameworks/base/core/java/android/app/prediction/
DAppPredictionSessionId.java37 private final int mUserId; field in AppPredictionSessionId
46 mUserId = userId; in AppPredictionSessionId()
51 mUserId = p.readInt(); in AppPredictionSessionId()
58 return mUserId; in getUserId()
66 return mId.equals(other.mId) && mUserId == other.mUserId; in equals()
71 return mId + "," + mUserId; in toString()
76 return Objects.hash(mId, mUserId); in hashCode()
87 dest.writeInt(mUserId); in writeToParcel()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DKeySyncTask.java86 private final int mUserId; field in KeySyncTask
144 mUserId = userId; in KeySyncTask()
167 int generation = mPlatformKeyManager.getGenerationId(mUserId); in syncKeys()
170 Log.w(TAG, "Credentials are not set for user " + mUserId); in syncKeys()
172 || mUserId != UserHandle.USER_SYSTEM) { in syncKeys()
174 mPlatformKeyManager.invalidatePlatformKey(mUserId, generation); in syncKeys()
179 Log.w(TAG, "Unsupported credential type " + mCredentialType + " for user " + mUserId); in syncKeys()
182 || mUserId != UserHandle.USER_SYSTEM) { in syncKeys()
183 mRecoverableKeyStoreDb.invalidateKeysForUserIdOnCustomScreenLock(mUserId); in syncKeys()
187 if (mPlatformKeyManager.isDeviceLocked(mUserId) && mUserId == UserHandle.USER_SYSTEM) { in syncKeys()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DAutoAddTracker.java54 private int mUserId; field in AutoAddTracker
58 mUserId = userId; in AutoAddTracker()
61 if (mUserId == UserHandle.USER_SYSTEM) { in AutoAddTracker()
76 if (newUser.getIdentifier() == mUserId) { in changeUser()
79 mUserId = newUser.getIdentifier(); in changeUser()
86 return mUserId; in getCurrentUserId()
111 TextUtils.join(",", mAutoAdded), mUserId); in saveTiles()
116 Secure.QS_AUTO_ADDED_TILES, mUserId); in getAdded()
134 private int mUserId; field in AutoAddTracker.Builder
142 mUserId = userId; in setUserId()
[all …]
/frameworks/base/services/core/java/com/android/server/storage/
DStorageUserConnection.java71 private final int mUserId; field in StorageUserConnection
80 mUserId = Preconditions.checkArgumentNonnegative(userId); in StorageUserConnection()
85 mHandlerThread = new HandlerThread("StorageUserConnectionThread-" + mUserId); in StorageUserConnection()
175 sm.resetUser(mUserId); in resetUserSessions()
183 Slog.i(TAG, "Removing " + mSessions.size() + " sessions for user: " + mUserId + "..."); in removeAllSessions()
208 waitForLatch(mActiveConnection.bind(), "remote_prepare_user " + mUserId); in prepareRemote() local
218 Slog.wtf(TAG, "Failed to bind to the ExternalStorageService for user " + mUserId); in waitForLatch()
251 Slog.i(TAG, "Closing connection for user " + mUserId); in close()
365 "Not ready to bind to the ExternalStorageService for user " + mUserId); in bind()
381 Slog.i(TAG, "Service: [" + name + "] connected. User [" + mUserId + "]"); in bind()
[all …]
/frameworks/base/core/java/android/service/notification/
DNotifyingApp.java29 private int mUserId; field in NotifyingApp
36 mUserId = in.readInt(); in NotifyingApp()
42 return mUserId; in getUserId()
48 public NotifyingApp setUserId(int mUserId) { in setUserId() argument
49 this.mUserId = mUserId; in setUserId()
96 dest.writeInt(mUserId); in writeToParcel()
134 + "mUserId=" + mUserId in toString()
/frameworks/base/services/core/java/com/android/server/infra/
DAbstractPerUserSystemService.java52 protected final @UserIdInt int mUserId; field in AbstractPerUserSystemService
77 mUserId = userId; in AbstractPerUserSystemService()
149 Slog.v(mTag, "updateLocked(u=" + mUserId + "): wasEnabled=" + wasEnabled in updateLocked()
154 updateIsSetupComplete(mUserId); in updateLocked()
173 0, mUserId); in updateServiceInfoLocked()
186 Slog.d(mTag, "Set component for user " + mUserId + " as " in updateServiceInfoLocked()
192 Slog.d(mTag, "Reset component for user " + mUserId + ":" + componentName); in updateServiceInfoLocked()
207 return mUserId; in getUserId()
235 return mMaster.mServiceNameResolver.getServiceName(mUserId); in getComponentNameLocked()
242 return mMaster.mServiceNameResolver.isTemporary(mUserId); in isTemporaryServiceSetLocked()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DActivityStartInterceptor.java86 private int mUserId; field in ActivityStartInterceptor
128 mUserId = userId; in setStates()
137 INTENT_SENDER_ACTIVITY, mCallingPackage, mCallingFeatureId, callingUid, mUserId, in createIntentSenderForOriginalIntent()
205 if (!mUserManager.isQuietModeEnabled(UserHandle.of(mUserId))) { in interceptQuietProfileIfNeeded()
212 mIntent = UnlaunchableAppActivity.createInQuietModeDialogIntent(mUserId, target); in interceptQuietProfileIfNeeded()
217 final UserInfo parent = mUserManager.getProfileParent(mUserId); in interceptQuietProfileIfNeeded()
229 mIntent = devicePolicyManager.createShowAdminSupportIntent(mUserId, true); in interceptSuspendedByAdminPackage()
236 final UserInfo parent = mUserManager.getProfileParent(mUserId); in interceptSuspendedByAdminPackage()
241 mRInfo = mSupervisor.resolveIntent(mIntent, mResolvedType, mUserId, 0, in interceptSuspendedByAdminPackage()
259 final String suspendingPackage = pmi.getSuspendingPackage(suspendedPackage, mUserId); in interceptSuspendedPackageIfNeeded()
[all …]
/frameworks/opt/tv/tvsystem/java/com/android/libraries/tv/tvsystem/user/
DTvUserManager.java37 private final int mUserId; field in TvUserManager
43 mUserId = context.getUserId(); in TvUserManager()
64 UserManager.USER_TYPE_PROFILE_MANAGED, 0 /* flags */, mUserId, in createManagedProfile()
90 int[] userIds = mUserManager.getProfileIds(mUserId, enabledOnly); in getUserProfiles()
101 return mUserManager.getUserInfo(mUserId).name; in getUserName()
106 mUserManager.setUserName(mUserId, name); in setUserName()
112 return mUserManager.getUserIcon(mUserId); in getUserIcon()
117 mUserManager.setUserIcon(mUserId, icon); in setUserIcon()
122 return mUserManager.isManagedProfile(mUserId); in isManagedProfile()
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/
DAppBackupUtilsTest.java59 private int mUserId; field in AppBackupUtilsTest
65 mUserId = UserHandle.USER_SYSTEM; in setUp()
77 mMockPackageManagerInternal, mUserId); in appIsEligibleForBackup_backupNotAllowed_returnsFalse()
92 mMockPackageManagerInternal, mUserId); in appIsEligibleForBackup_systemAppWithoutCustomBackupAgent_returnsFalse()
106 mMockPackageManagerInternal, mUserId); in appIsEligibleForBackup_sharedStorageBackupPackage_returnsFalse()
119 when(mMockPackageManagerInternal.getApplicationEnabledState(TEST_PACKAGE_NAME, mUserId)) in appIsEligibleForBackup_systemAppWithCustomBackupAgentAndEnabled_returnsTrue()
123 mMockPackageManagerInternal, mUserId); in appIsEligibleForBackup_systemAppWithCustomBackupAgentAndEnabled_returnsTrue()
136 when(mMockPackageManagerInternal.getApplicationEnabledState(TEST_PACKAGE_NAME, mUserId)) in appIsEligibleForBackup_nonSystemAppWithoutCustomBackupAgentAndEnabled_returnsTrue()
140 mMockPackageManagerInternal, mUserId); in appIsEligibleForBackup_nonSystemAppWithoutCustomBackupAgentAndEnabled_returnsTrue()
153 when(mMockPackageManagerInternal.getApplicationEnabledState(TEST_PACKAGE_NAME, mUserId)) in appIsEligibleForBackup_nonSystemAppWithCustomBackupAgentAndEnabled_returnsTrue()
[all …]
/frameworks/base/core/java/android/view/textservice/
DTextServicesManager.java84 private final int mUserId; field in TextServicesManager
89 mUserId = userId; in TextServicesManager()
167 sci = mService.getCurrentSpellChecker(mUserId, null); in newSpellCheckerSession()
207 mService.getSpellCheckerService(mUserId, sci.getId(), subtypeInUse.getLocale(), in newSpellCheckerSession()
222 final SpellCheckerInfo[] retval = mService.getEnabledSpellCheckers(mUserId); in getEnabledSpellCheckers()
239 return mService.getCurrentSpellChecker(mUserId, null); in getCurrentSpellChecker()
252 return mService.getCurrentSpellCheckerSubtype(mUserId, allowImplicitlySelectedSubtype); in getCurrentSpellCheckerSubtype()
264 return mService.isSpellCheckerEnabled(mUserId); in isSpellCheckerEnabled()
272 mService.finishSpellCheckerService(mUserId, listener); in finishSpellCheckerService()
/frameworks/base/services/core/java/com/android/server/am/
DPersistentConnection.java73 private final int mUserId; field in PersistentConnection
127 + " u" + mUserId + " but not bound, ignore.");
131 + " u" + mUserId);
147 + " u" + mUserId);
165 + " u" + mUserId + " but not bound, ignore.");
170 + " u" + mUserId);
188 mUserId = userId; in PersistentConnection()
204 return mUserId; in getUserId()
318 mHandler, UserHandle.of(mUserId)); in bindInnerLocked()
321 Log.e(mTag, "Binding: " + service.getComponent() + " u" + mUserId in bindInnerLocked()
[all …]
DPreBootBroadcaster.java55 private final int mUserId; field in PreBootBroadcaster
67 mUserId = userId; in PreBootBroadcaster()
85 if (!mService.isUserRunning(mUserId, 0)) { in sendNext()
86 Slog.i(TAG, "User " + mUserId + " is no longer running; skipping remaining receivers"); in sendNext()
106 Slog.i(TAG, "Pre-boot of " + componentName.toShortString() + " for user " + mUserId); in sendNext()
107 EventLogTags.writeAmPreBoot(mUserId, componentName.getPackageName()); in sendNext()
113 Process.SYSTEM_UID, Binder.getCallingUid(), Binder.getCallingPid(), mUserId); in sendNext()
167 UserHandle.of(mUserId));
172 UserHandle.of(mUserId));
/frameworks/base/core/java/android/hardware/display/
DNightDisplayListener.java41 private final int mUserId; field in NightDisplayListener
57 mUserId = userId; in NightDisplayListener()
110 false /* notifyForDescendants */, mContentObserver, mUserId); in setCallbackInternal() local
112 false /* notifyForDescendants */, mContentObserver, mUserId); in setCallbackInternal() local
115 false /* notifyForDescendants */, mContentObserver, mUserId); in setCallbackInternal() local
118 false /* notifyForDescendants */, mContentObserver, mUserId); in setCallbackInternal() local
121 false /* notifyForDescendants */, mContentObserver, mUserId); in setCallbackInternal() local
/frameworks/base/services/core/java/com/android/server/utils/
DUserTokenWatcher.java140 private final int mUserId; field in UserTokenWatcher.InnerTokenWatcher
144 this.mUserId = userId; in InnerTokenWatcher()
150 mCallback.acquired(mUserId); in acquired()
156 mCallback.released(mUserId); in released()
159 final TokenWatcher watcher = mWatchers.get(mUserId); in released()
161 mWatchers.remove(mUserId); in released()
/frameworks/base/media/java/android/media/tv/
DTvInputManager.java462 private final int mUserId; field in TvInputManager
988 mUserId = userId; in TvInputManager()
1001 session = new Session(token, channel, mService, mUserId, seq, in TvInputManager()
1268 mService.registerCallback(managerCallback, mUserId); in TvInputManager()
1269 List<TvInputInfo> infos = mService.getTvInputList(mUserId); in TvInputManager()
1273 mStateMap.put(inputId, mService.getTvInputState(inputId, mUserId)); in TvInputManager()
1289 return mService.getTvInputList(mUserId); in getTvInputList()
1305 return mService.getTvInputInfo(inputId, mUserId); in getTvInputInfo()
1331 mService.updateTvInputInfo(inputInfo, mUserId); in updateTvInputInfo()
1403 return mService.isParentalControlsEnabled(mUserId); in isParentalControlsEnabled()
[all …]
/frameworks/base/core/java/android/view/textclassifier/
DSystemTextClassifierMetadata.java46 private final int mUserId; field in SystemTextClassifierMetadata
54 mUserId = userId; in SystemTextClassifierMetadata()
63 return mUserId; in getUserId()
87 mCallingPackageName, mUserId, mUseDefaultTextClassifier); in toString()
105 dest.writeInt(mUserId); in writeToParcel()
/frameworks/base/services/core/java/com/android/server/trust/
DTrustAgentWrapper.java89 private final int mUserId; field in TrustAgentWrapper
156 mTrustManagerService.mArchive.logGrantTrust(mUserId, mName,
159 mTrustManagerService.updateTrust(mUserId, flags);
163 mTrustManagerService.mArchive.logTrustTimeout(mUserId, mName);
171 mTrustManagerService.mArchive.logRevokeTrust(mUserId, mName);
173 mTrustManagerService.updateTrust(mUserId, 0);
179 mTrustManagerService.resetAgent(mName, mUserId);
190 mTrustManagerService.updateTrust(mUserId, 0);
203 mTrustManagerService.mArchive.logManagingTrust(mUserId, mName, mManagingTrust);
204 mTrustManagerService.updateTrust(mUserId, 0);
[all …]
/frameworks/base/core/java/android/print/
DPrinterDiscoverySession.java51 private final int mUserId; field in PrinterDiscoverySession
67 mUserId = userId; in PrinterDiscoverySession()
71 mPrintManager.createPrinterDiscoverySession(mObserver, mUserId); in PrinterDiscoverySession()
85 mPrintManager.startPrinterDiscovery(mObserver, priorityList, mUserId); in startPrinterDiscovery()
100 mPrintManager.stopPrinterDiscovery(mObserver, mUserId); in stopPrinterDiscovery()
113 mPrintManager.startPrinterStateTracking(printerId, mUserId); in startPrinterStateTracking()
125 mPrintManager.stopPrinterStateTracking(printerId, mUserId); in stopPrinterStateTracking()
137 mPrintManager.validatePrinters(printerIds, mUserId); in validatePrinters()
189 mPrintManager.destroyPrinterDiscoverySession(mObserver, mUserId); in destroyNoCheck()
/frameworks/base/services/core/java/com/android/server/backup/
DSystemBackupAgent.java87 private int mUserId = UserHandle.USER_SYSTEM; field in SystemBackupAgent
93 mUserId = user.getIdentifier(); in onCreate()
95 addHelper(SYNC_SETTINGS_HELPER, new AccountSyncSettingsBackupHelper(this, mUserId)); in onCreate()
97 addHelper(NOTIFICATION_HELPER, new NotificationBackupHelper(mUserId)); in onCreate()
98 addHelper(PERMISSION_HELPER, new PermissionBackupHelper(mUserId)); in onCreate()
103 addHelper(PEOPLE_HELPER, new PeopleBackupHelper(mUserId)); in onCreate()
129 if (mUserId != UserHandle.USER_SYSTEM && !sEligibleForMultiUser.contains(keyPrefix)) { in addHelper()

12345678