/frameworks/base/core/tests/coretests/src/android/print/ |
D | IPrintManagerParametersTest.java | 66 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/ |
D | LockSettingsShellCommandTest.java | 85 private int mUserId; field in LockSettingsShellCommandTest 95 mUserId = ActivityManager.getCurrentUser(); in setUp() 103 when(mLockPatternUtils.isSecure(mUserId)).thenReturn(true); in testWrongPassword() 104 when(mLockPatternUtils.isLockPatternEnabled(mUserId)).thenReturn(false); in testWrongPassword() 105 when(mLockPatternUtils.isLockPasswordEnabled(mUserId)).thenReturn(true); in testWrongPassword() 107 LockscreenCredential.createPassword("1234"), mUserId, null)).thenReturn(false); in testWrongPassword() 116 when(mLockPatternUtils.isSecure(mUserId)).thenReturn(true); in testChangePin() 117 when(mLockPatternUtils.isLockPatternEnabled(mUserId)).thenReturn(false); in testChangePin() 118 when(mLockPatternUtils.isLockPasswordEnabled(mUserId)).thenReturn(true); in testChangePin() 119 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(mUserId)).thenReturn( in testChangePin() [all …]
|
/frameworks/opt/car/services/updatableServices/tests/src/com/android/internal/car/updatable/ |
D | UserMetricsTest.java | 45 private final int mUserId = 11; field in UserMetricsTest 49 long timestamp = sendStartingEvent(mUserId); in testStartingEvent_success() 51 assertStartTime(timestamp, mUserId); in testStartingEvent_success() 56 long timestamp1 = sendStartingEvent(mUserId); in testStartingEvent_multipleCallsDifferentUser() 60 assertStartTime(timestamp1, mUserId); in testStartingEvent_multipleCallsDifferentUser() 66 long timestamp1 = sendStartingEvent(mUserId); in testStartingEvent_multipleCallsSameUser() 67 assertStartTime(timestamp1, mUserId); in testStartingEvent_multipleCallsSameUser() 68 long timestamp2 = sendStartingEvent(mUserId); in testStartingEvent_multipleCallsSameUser() 70 assertStartTime(timestamp2, mUserId); in testStartingEvent_multipleCallsSameUser() 75 sendSwitchingEvent(mFromUserId, mUserId); in testSwitchingEvent_failure() [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/display/color/ |
D | AppSaturationControllerTest.java | 50 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/media/java/android/media/metrics/ |
D | MediaMetricsManager.java | 35 private int mUserId; field in MediaMetricsManager 42 mUserId = userId; in MediaMetricsManager() 51 mService.reportPlaybackMetrics(sessionId, metrics, mUserId); in reportPlaybackMetrics() 62 mService.reportBundleMetrics(sessionId, metrics, mUserId); in reportBundleMetrics() 73 mService.reportNetworkEvent(sessionId, event, mUserId); in reportNetworkEvent() 85 mService.reportPlaybackStateEvent(sessionId, event, mUserId); in reportPlaybackStateEvent() 97 mService.reportTrackChangeEvent(sessionId, event, mUserId); in reportTrackChangeEvent() 109 String id = mService.getPlaybackSessionId(mUserId); in createPlaybackSession() 123 String id = mService.getRecordingSessionId(mUserId); in createRecordingSession() 137 String id = mService.getTranscodingSessionId(mUserId); in createTranscodingSession() [all …]
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | UserBackupManagerService.java | 182 private int mUserId; field in UserBackupManagerService.BackupWakeLock 186 mUserId = userId; in BackupWakeLock() 195 mUserId, in acquire() 204 mUserId, "Acquired wakelock:" + mPowerManagerWakeLock.getTag())); in acquire() 213 mUserId, in release() 222 mUserId, "Released wakelock:" + mPowerManagerWakeLock.getTag())); in release() 238 mUserId, "Releasing wakelock: " + mPowerManagerWakeLock.getTag())); in quit() 315 private final @UserIdInt int mUserId; field in UserBackupManagerService 513 mUserId = 0; in UserBackupManagerService() 548 mUserId = userId; in UserBackupManagerService() [all …]
|
/frameworks/base/core/tests/overlaytests/device/src/com/android/overlaytest/ |
D | TransactionTest.java | 52 private int mUserId; field in TransactionTest 60 mUserId = UserHandle.myUserId(); in setUp() 61 mUserHandle = UserHandle.of(mUserId); in setUp() 70 assertOverlayIsEnabled(APP_OVERLAY_ONE_PKG, false, mUserId); in testValidTransaction() 71 assertOverlayIsEnabled(APP_OVERLAY_TWO_PKG, false, mUserId); in testValidTransaction() 79 assertOverlayIsEnabled(APP_OVERLAY_ONE_PKG, true, mUserId); in testValidTransaction() 80 assertOverlayIsEnabled(APP_OVERLAY_TWO_PKG, true, mUserId); in testValidTransaction() 93 assertOverlayIsEnabled(APP_OVERLAY_ONE_PKG, true, mUserId); in testValidTransaction() 94 assertOverlayIsEnabled(APP_OVERLAY_TWO_PKG, true, mUserId); in testValidTransaction() 106 assertOverlayIsEnabled(APP_OVERLAY_ONE_PKG, true, mUserId); in testValidTransaction() [all …]
|
/frameworks/base/core/java/android/app/prediction/ |
D | AppPredictionSessionId.java | 35 private final int mUserId; field in AppPredictionSessionId 44 mUserId = userId; in AppPredictionSessionId() 49 mUserId = p.readInt(); in AppPredictionSessionId() 56 return mUserId; in getUserId() 64 return mId.equals(other.mId) && mUserId == other.mUserId; in equals() 69 return mId + "," + mUserId; in toString() 74 return Objects.hash(mId, mUserId); in hashCode() 85 dest.writeInt(mUserId); in writeToParcel()
|
/frameworks/base/core/java/android/app/search/ |
D | SearchSessionId.java | 36 private final int mUserId; field in SearchSessionId 45 mUserId = userId; in SearchSessionId() 50 mUserId = p.readInt(); in SearchSessionId() 57 return mUserId; in getUserId() 65 return mId.equals(other.mId) && mUserId == other.mUserId; in equals() 70 return mId + "," + mUserId; in toString() 75 return Objects.hash(mId, mUserId); in hashCode() 86 dest.writeInt(mUserId); in writeToParcel()
|
/frameworks/base/services/core/java/com/android/server/timedetector/ |
D | ConfigurationInternal.java | 36 private final @UserIdInt int mUserId; field in ConfigurationInternal 41 mUserId = builder.mUserId; in ConfigurationInternal() 68 return new TimeCapabilities.Builder(UserHandle.of(mUserId)) in timeCapabilities() 80 return mUserId == that.mUserId in equals() 87 return Objects.hash(mUserId, mUserConfigAllowed, mAutoDetectionEnabled); in hashCode() 93 + "mUserId=" + mUserId in toString() 100 private final @UserIdInt int mUserId; field in ConfigurationInternal.Builder 105 mUserId = userId; in Builder()
|
/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() 167 int generation = mPlatformKeyManager.getGenerationId(mUserId); in syncKeys() 170 Log.w(TAG, "Credentials are not set for user " + mUserId); in syncKeys() 173 mPlatformKeyManager.invalidatePlatformKey(mUserId, generation); in syncKeys() 178 Log.w(TAG, "Unsupported credential type " + mCredentialType + " for user " + mUserId); in syncKeys() 181 mRecoverableKeyStoreDb.invalidateKeysForUserIdOnCustomScreenLock(mUserId); in syncKeys() 185 if (mPlatformKeyManager.isDeviceLocked(mUserId) && mUserId == UserHandle.USER_SYSTEM) { in syncKeys() 186 Log.w(TAG, "Can't sync keys for locked user " + mUserId); in syncKeys() 190 List<Integer> recoveryAgents = mRecoverableKeyStoreDb.getRecoveryAgents(mUserId); in syncKeys() [all …]
|
/frameworks/base/core/java/com/android/server/backup/ |
D | PreferredActivityBackupHelper.java | 70 private final int mUserId; field in PreferredActivityBackupHelper 74 mUserId = userId; in PreferredActivityBackupHelper() 86 return pm.getPreferredActivityBackup(mUserId); in getBackupPayload() 88 return pm.getDefaultAppsBackup(mUserId); in getBackupPayload() 93 return pm.getDomainVerificationBackup(mUserId); in getBackupPayload() 112 pm.restorePreferredActivities(payload, mUserId); in applyRestoredPayload() 115 pm.restoreDefaultApps(payload, mUserId); in applyRestoredPayload() 121 pm.restoreDomainVerification(payload, mUserId); in applyRestoredPayload()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/widget/ |
D | PeopleTileKey.java | 34 private int mUserId; field in PeopleTileKey 41 mUserId = userId; in PeopleTileKey() 47 mUserId = tile.getUserHandle().getIdentifier(); in PeopleTileKey() 56 mUserId = entry.getSbn().getUser() != null in PeopleTileKey() 66 return mUserId; in getUserId() 74 mUserId = userId; in setUserId() 79 return !TextUtils.isEmpty(mShortcutId) && !TextUtils.isEmpty(mPackageName) && mUserId >= 0; in validate() 99 return mShortcutId + "/" + mUserId + "/" + mPackageName; in toString() 138 return mPackageName.hashCode() + Integer.valueOf(mUserId).hashCode() in hashCode()
|
/frameworks/base/core/java/android/service/notification/ |
D | NotifyingApp.java | 30 private int mUserId; field in NotifyingApp 37 mUserId = in.readInt(); in NotifyingApp() 43 return mUserId; in getUserId() 49 public NotifyingApp setUserId(int mUserId) { in setUserId() argument 50 this.mUserId = mUserId; in setUserId() 97 dest.writeInt(mUserId); in writeToParcel() 135 + "mUserId=" + mUserId in toString()
|
/frameworks/base/services/core/java/com/android/server/infra/ |
D | AbstractPerUserSystemService.java | 51 @UserIdInt protected final int mUserId; field in AbstractPerUserSystemService 76 mUserId = userId; in AbstractPerUserSystemService() 147 Slog.v(mTag, "updateLocked(u=" + mUserId + "): wasEnabled=" + wasEnabled in updateLocked() 152 updateIsSetupComplete(mUserId); in updateLocked() 186 mUserId); in updateServiceInfoListLocked() 202 0, mUserId); in getServiceComponent() 215 Slog.d(mTag, "Set component for user " + mUserId + " as " in getServiceComponent() 221 Slog.d(mTag, "Reset component for user " + mUserId + ":" + componentName); in getServiceComponent() 236 return mUserId; in getUserId() 266 return mMaster.mServiceNameResolver.getServiceName(mUserId); in getComponentNameLocked() [all …]
|
/frameworks/opt/tv/tvsystem/java/com/android/libraries/tv/tvsystem/user/ |
D | TvUserManager.java | 37 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/core/java/com/android/server/timezonedetector/ |
D | ConfigurationInternal.java | 64 private final @UserIdInt int mUserId; field in ConfigurationInternal 77 mUserId = builder.mUserId; in ConfigurationInternal() 140 return mUserId; in getUserId() 146 return UserHandle.of(mUserId); in getUserHandle() 199 UserHandle userHandle = UserHandle.of(mUserId); in asCapabilities() 283 return mUserId == that.mUserId in equals() 297 return Objects.hash(mUserId, mUserConfigAllowed, mTelephonyDetectionSupported, in hashCode() 306 + "mUserId=" + mUserId in toString() 324 private final @UserIdInt int mUserId; field in ConfigurationInternal.Builder 340 mUserId = userId; in Builder() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/models/ |
D | DomainVerificationInternalUserState.java | 35 private final int mUserId; field in DomainVerificationInternalUserState 47 mUserId = userId; in DomainVerificationInternalUserState() 109 this.mUserId = userId; in DomainVerificationInternalUserState() 111 UserIdInt.class, null, mUserId); in DomainVerificationInternalUserState() 122 return mUserId; in getUserId() 157 "userId = " + mUserId + ", " + in toString() 176 && mUserId == that.mUserId in equals() 188 _hash = 31 * _hash + mUserId; in hashCode()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | SettingObserver.java | 39 private int mUserId; field in SettingObserver 55 mUserId = userId; in SettingObserver() 68 mSettingsProxy.putIntForUser(mSettingName, value, mUserId); in setValue() 72 return mSettingsProxy.getIntForUser(mSettingName, mDefaultValue, mUserId); in getValueFromProvider() 82 mSettingsProxy.getUriFor(mSettingName), false, this, mUserId); in setListening() local 101 mUserId = userId; in setUserId() 109 return mUserId; in getCurrentUser()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivityStartInterceptor.java | 90 private int mUserId; field in ActivityStartInterceptor 133 mUserId = userId; in setStates() 152 INTENT_SENDER_ACTIVITY, mCallingPackage, mCallingFeatureId, callingUid, mUserId, in createIntentSenderForOriginalIntent() 238 mRInfo = mSupervisor.resolveIntent(mIntent, null, mUserId, 0, mRealCallingUid); in intercept() 267 if (!mUserManager.isQuietModeEnabled(UserHandle.of(mUserId))) { in interceptQuietProfileIfNeeded() 274 mIntent = UnlaunchableAppActivity.createInQuietModeDialogIntent(mUserId, target); in interceptQuietProfileIfNeeded() 279 final UserInfo parent = mUserManager.getProfileParent(mUserId); in interceptQuietProfileIfNeeded() 291 mIntent = devicePolicyManager.createShowAdminSupportIntent(mUserId, true); in interceptSuspendedByAdminPackage() 298 final UserInfo parent = mUserManager.getProfileParent(mUserId); in interceptSuspendedByAdminPackage() 303 mRInfo = mSupervisor.resolveIntent(mIntent, mResolvedType, mUserId, 0, in interceptSuspendedByAdminPackage() [all …]
|
D | PackageConfigurationUpdaterImpl.java | 37 private int mUserId; field in PackageConfigurationUpdaterImpl 48 mUserId = userId; in PackageConfigurationUpdaterImpl() 85 mUserId = wpc.mUserId; in commit() 89 /* flags = */ PackageManager.MATCH_ALL, mUserId); in commit() 92 + "userId or packageName not valid " + mUserId); in commit() 98 .updateFromImpl(mPackageName, mUserId, this); in commit()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DevicePolicyManagerServiceShellCommand.java | 52 private int mUserId = UserHandle.USER_SYSTEM; field in DevicePolicyManagerServiceShellCommand 248 mService.setActiveAdmin(mComponent, /* refreshing= */ true, mUserId); in runSetActiveAdmin() 256 mService.setActiveAdmin(mComponent, /* refreshing= */ true, mUserId); in runSetDeviceOwner() 259 if (!mService.setDeviceOwner(mComponent, mName, mUserId, in runSetDeviceOwner() 271 DevicePolicyManager.STATE_USER_SETUP_FINALIZED, mUserId); in runSetDeviceOwner() 280 mService.forceRemoveActiveAdmin(mComponent, mUserId); in runRemoveActiveAdmin() 287 mService.setActiveAdmin(mComponent, /* refreshing= */ true, mUserId); in runSetProfileOwner() 290 if (!mService.setProfileOwner(mComponent, mName, mUserId)) { in runSetProfileOwner() 293 + mUserId); in runSetProfileOwner() 297 mService.removeActiveAdmin(mComponent, mUserId); in runSetProfileOwner() [all …]
|
/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 …]
|
/frameworks/base/core/java/android/companion/ |
D | AssociationInfo.java | 49 private final @UserIdInt int mUserId; field in AssociationInfo 93 mUserId = userId; in AssociationInfo() 119 return mUserId; in getUserId() 184 return mUserId == userId && Objects.equals(mPackageName, packageName); in belongsToPackage() 249 sb.append(", pkg=u").append(mUserId).append('/').append(mPackageName); in toShortString() 257 + ", mUserId=" + mUserId in toString() 278 && mUserId == that.mUserId in equals() 292 return Objects.hash(mId, mUserId, mPackageName, mDeviceMacAddress, mDisplayName, in hashCode() 306 dest.writeInt(mUserId); in writeToParcel() 323 mUserId = in.readInt(); in AssociationInfo() [all …]
|