/frameworks/base/core/tests/coretests/src/android/print/ |
D | IPrintManagerParametersTest.java | 65 private final int mUserId; field in IPrintManagerParametersTest 81 mUserId = UserHandle.myUserId(); in IPrintManagerParametersTest() 247 mAppId, mUserId).getId()); 248 assertEquals(null, mIPrintManager.getPrintJobInfo(mBadPrintJobId, mAppId, mUserId)); 249 assertEquals(null, mIPrintManager.getPrintJobInfo(null, mAppId, mUserId)); 252 () -> mIPrintManager.getPrintJobInfo(mGoodPrintJob.getId(), BAD_APP_ID, mUserId), 268 List<PrintJobInfo> infos = mIPrintManager.getPrintJobInfos(mAppId, mUserId); 279 assertException(() -> mIPrintManager.getPrintJobInfos(BAD_APP_ID, mUserId), 301 getActivity().getPackageName(), mAppId, mUserId), 305 getActivity().getPackageName(), mAppId, mUserId), [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/ |
D | TrampolineTest.java | 101 private int mUserId; field in TrampolineTest 134 mUserId = UserHandle.USER_SYSTEM; in setUp() 482 mTrampoline.dataChangedForUser(mUserId, PACKAGE_NAME); in dataChangedForUser_forwarded() 484 verify(mBackupManagerServiceMock).dataChanged(mUserId, PACKAGE_NAME); in dataChangedForUser_forwarded() 489 TrampolineTestable.sCallingUserId = mUserId; in dataChanged_forwarded() 494 verify(mBackupManagerServiceMock).dataChanged(mUserId, PACKAGE_NAME); in dataChanged_forwarded() 507 mTrampoline.clearBackupDataForUser(mUserId, TRANSPORT_NAME, PACKAGE_NAME); in clearBackupDataForUser_forwarded() 509 verify(mBackupManagerServiceMock).clearBackupData(mUserId, TRANSPORT_NAME, PACKAGE_NAME); in clearBackupDataForUser_forwarded() 514 TrampolineTestable.sCallingUserId = mUserId; in clearBackupData_forwarded() 519 verify(mBackupManagerServiceMock).clearBackupData(mUserId, TRANSPORT_NAME, PACKAGE_NAME); in clearBackupData_forwarded() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | RestrictedLockUtilsTest.java | 70 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/tests/servicestests/src/com/android/server/locksettings/ |
D | LockSettingsShellCommandTest.java | 71 private int mUserId; field in LockSettingsShellCommandTest 81 mUserId = ActivityManager.getCurrentUser(); in setUp() 88 when(mLockPatternUtils.isLockPatternEnabled(mUserId)).thenReturn(false); in testWrongPassword() 89 when(mLockPatternUtils.isLockPasswordEnabled(mUserId)).thenReturn(true); in testWrongPassword() 90 when(mLockPatternUtils.checkPassword("1234".getBytes(), mUserId)).thenReturn(false); in testWrongPassword() 100 when(mLockPatternUtils.isLockPatternEnabled(mUserId)).thenReturn(false); in testChangePin() 101 when(mLockPatternUtils.isLockPasswordEnabled(mUserId)).thenReturn(true); in testChangePin() 102 when(mLockPatternUtils.checkPassword("1234".getBytes(), mUserId)).thenReturn(true); in testChangePin() 107 PASSWORD_QUALITY_NUMERIC, mUserId); in testChangePin() 122 when(mLockPatternUtils.isLockPatternEnabled(mUserId)).thenReturn(false); in testChangePassword() [all …]
|
/frameworks/base/cmds/dpm/src/com/android/commands/dpm/ |
D | Dpm.java | 55 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/services/tests/servicestests/src/com/android/server/display/color/ |
D | AppSaturationControllerTest.java | 48 private int mUserId; field in AppSaturationControllerTest 58 mUserId = ActivityManager.getCurrentUser(); in setUp() 66 mUserId = UserHandle.USER_NULL; in tearDown() 73 mAppSaturationController.setSaturationLevel(TEST_PACKAGE_NAME, mUserId, 30); in addColorTransformController_appliesExistingSaturation() 74 mAppSaturationController.addColorTransformController(TEST_PACKAGE_NAME, mUserId, ref); in addColorTransformController_appliesExistingSaturation() 83 mAppSaturationController.addColorTransformController(TEST_PACKAGE_NAME, mUserId, ref); in setSaturationLevel_resetToDefault() 86 mAppSaturationController.setSaturationLevel(TEST_PACKAGE_NAME, mUserId, 30); in setSaturationLevel_resetToDefault() 90 mAppSaturationController.setSaturationLevel(TEST_PACKAGE_NAME, mUserId, 100); in setSaturationLevel_resetToDefault() 100 mAppSaturationController.addColorTransformController(TEST_PACKAGE_NAME, mUserId, ref); in setSaturationLevel_updateLevel() 103 mAppSaturationController.setSaturationLevel(TEST_PACKAGE_NAME, mUserId, 30); in setSaturationLevel_updateLevel() [all …]
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/ |
D | KeySyncTask.java | 86 private final int mUserId; field in KeySyncTask 144 mUserId = userId; in KeySyncTask() 169 Log.w(TAG, "Credentials are not set for user " + mUserId); in syncKeys() 170 int generation = mPlatformKeyManager.getGenerationId(mUserId); in syncKeys() 171 mPlatformKeyManager.invalidatePlatformKey(mUserId, generation); in syncKeys() 175 Log.w(TAG, "Unsupported credential type " + mCredentialType + "for user " + mUserId); in syncKeys() 176 mRecoverableKeyStoreDb.invalidateKeysForUserIdOnCustomScreenLock(mUserId); in syncKeys() 180 List<Integer> recoveryAgents = mRecoverableKeyStoreDb.getRecoveryAgents(mUserId); in syncKeys() 189 Log.w(TAG, "No recovery agent initialized for user " + mUserId); in syncKeys() 203 (mRecoverableKeyStoreDb.getSnapshotVersion(mUserId, recoveryAgentUid) != null) in syncKeysForAgent() [all …]
|
/frameworks/base/services/core/java/com/android/server/infra/ |
D | AbstractPerUserSystemService.java | 52 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/core/java/android/service/notification/ |
D | NotifyingApp.java | 29 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/wm/ |
D | ActivityStartInterceptor.java | 84 private int mUserId; field in ActivityStartInterceptor 125 mUserId = userId; in setStates() 133 INTENT_SENDER_ACTIVITY, mCallingPackage, callingUid, mUserId, null /*token*/, in createIntentSenderForOriginalIntent() 194 if (!mUserManager.isQuietModeEnabled(UserHandle.of(mUserId))) { in interceptQuietProfileIfNeeded() 201 mIntent = UnlaunchableAppActivity.createInQuietModeDialogIntent(mUserId, target); in interceptQuietProfileIfNeeded() 206 final UserInfo parent = mUserManager.getProfileParent(mUserId); in interceptQuietProfileIfNeeded() 218 mIntent = devicePolicyManager.createShowAdminSupportIntent(mUserId, true); in interceptSuspendedByAdminPackage() 225 final UserInfo parent = mUserManager.getProfileParent(mUserId); in interceptSuspendedByAdminPackage() 230 mRInfo = mSupervisor.resolveIntent(mIntent, mResolvedType, mUserId, 0, in interceptSuspendedByAdminPackage() 248 final String suspendingPackage = pmi.getSuspendingPackage(suspendedPackage, mUserId); in interceptSuspendedPackageIfNeeded() [all …]
|
D | TaskSnapshotPersister.java | 313 private final int mUserId; field in TaskSnapshotPersister.StoreWriteQueueItem 318 mUserId = userId; in StoreWriteQueueItem() 336 return mUserManagerInternal.isUserUnlocked(mUserId); in isReady() 341 if (!createDirectory(mUserId)) { in write() 343 + getDirectory(mUserId)); in write() 353 deleteSnapshot(mTaskId, mUserId); in write() 371 final File file = getProtoFile(mTaskId, mUserId); in writeProto() 403 final File reducedFile = getReducedResolutionBitmapFile(mTaskId, mUserId); in writeBuffer() 420 final File file = getBitmapFile(mTaskId, mUserId); in writeBuffer() 436 private final int mUserId; field in TaskSnapshotPersister.DeleteWriteQueueItem [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/ |
D | AppBackupUtilsTest.java | 59 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/packages/SystemUI/src/com/android/systemui/qs/ |
D | SecureSetting.java | 35 private int mUserId; field in SecureSetting 44 mUserId = ActivityManager.getCurrentUser(); in SecureSetting() 48 return Secure.getIntForUser(mContext.getContentResolver(), mSettingName, DEFAULT, mUserId); in getValue() 52 Secure.putIntForUser(mContext.getContentResolver(), mSettingName, value, mUserId); in setValue() local 62 Secure.getUriFor(mSettingName), false, this, mUserId); in setListening() local 77 mUserId = userId; in setUserId()
|
/frameworks/base/core/java/android/view/textservice/ |
D | TextServicesManager.java | 84 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/ |
D | PersistentConnection.java | 73 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 …]
|
D | PreBootBroadcaster.java | 55 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/ |
D | NightDisplayListener.java | 41 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/media/java/android/media/tv/ |
D | TvInputManager.java | 363 private final int mUserId; field in TvInputManager 889 mUserId = userId; in TvInputManager() 902 session = new Session(token, channel, mService, mUserId, seq, in TvInputManager() 1169 mService.registerCallback(managerCallback, mUserId); in TvInputManager() 1170 List<TvInputInfo> infos = mService.getTvInputList(mUserId); in TvInputManager() 1174 mStateMap.put(inputId, mService.getTvInputState(inputId, mUserId)); in TvInputManager() 1190 return mService.getTvInputList(mUserId); in getTvInputList() 1206 return mService.getTvInputInfo(inputId, mUserId); in getTvInputInfo() 1232 mService.updateTvInputInfo(inputInfo, mUserId); in updateTvInputInfo() 1304 return mService.isParentalControlsEnabled(mUserId); in isParentalControlsEnabled() [all …]
|
/frameworks/base/services/core/java/com/android/server/utils/ |
D | UserTokenWatcher.java | 140 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/core/java/android/view/textclassifier/ |
D | TextClassificationContext.java | 41 private int mUserId = UserHandle.USER_NULL; field in TextClassificationContext 66 mUserId = userId; in setUserId() 75 return mUserId; in getUserId() 101 mPackageName, mWidgetType, mWidgetVersion, mUserId); in toString() 158 parcel.writeInt(mUserId); in writeToParcel() 165 mUserId = in.readInt(); in TextClassificationContext()
|
D | SystemTextClassifier.java | 57 private final int mUserId; field in SystemTextClassifier 68 mUserId = context.getUserId(); in SystemTextClassifier() 81 request.setUserId(mUserId); in suggestSelection() 105 request.setUserId(mUserId); in classifyText() 134 request.setUserId(mUserId); in generateLinks() 154 event.setUserId(mUserId); in onSelectionEvent() 171 tcContext.setUserId(mUserId); in onTextClassifierEvent() 186 request.setUserId(mUserId); in detectLanguage() 207 request.setUserId(mUserId); in suggestConversationActions() 249 printWriter.printPair("mUserId", mUserId); in dump() [all …]
|
/frameworks/base/services/core/java/com/android/server/trust/ |
D | TrustAgentWrapper.java | 89 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/ |
D | PrinterDiscoverySession.java | 51 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/tests/servicestests/src/com/android/server/contentsuggestions/ |
D | ContentSuggestionsPerUserServiceTest.java | 45 private int mUserId; field in ContentSuggestionsPerUserServiceTest 61 mUserId = 1; in setup() 64 mUserId); in setup() 72 mPerUserService.provideContextImageLocked(mUserId, imageContextRequestExtras); in testProvideContextImageLocked_noBitmapInBundle() 84 mPerUserService.provideContextImageLocked(mUserId, imageContextRequestExtras); in testProvideContextImageLocked_bitmapInBundle()
|
/frameworks/base/core/java/com/android/server/backup/ |
D | NotificationBackupHelper.java | 35 private final int mUserId; field in NotificationBackupHelper 39 mUserId = userId; in NotificationBackupHelper() 49 newPayload = nm.getBackupPayload(mUserId); in getBackupPayload() 69 nm.applyRestore(payload, mUserId); in applyRestoredPayload()
|