/packages/services/Car/tests/CarCtsFakeLauncher/src/com/android/car/fakelauncher/ |
D | LauncherActivity.java | 37 private int mUserId = UserHandle.USER_NULL; field in LauncherActivity 41 mUserId = UserHandle.myUserId(); in onCreate() 42 Log.i(TAG, "pre.onCreate(): userId=" + mUserId); in onCreate() 44 Log.i(TAG, "post.onCreate(): userId=" + mUserId); in onCreate() 49 message.setText(message.getText() + "\n\nI am user " + mUserId); in onCreate() 51 Log.i(TAG, "done.onCreate(): userId=" + mUserId); in onCreate() 56 Trace.traceBegin(Trace.TRACE_TAG_APP, "onResume-" + mUserId); in onResume() 57 Log.i(TAG, "pre.onResume(): userId=" + mUserId); in onResume() 59 Log.i(TAG, "post.onResume(): userId=" + mUserId); in onResume() 65 Trace.traceBegin(Trace.TRACE_TAG_APP, "onPostResume-" + mUserId); in onPostResume() [all …]
|
/packages/modules/Permission/service/java/com/android/safetycenter/ |
D | SafetySourceKey.java | 35 @UserIdInt private final int mUserId; field in SafetySourceKey 39 mUserId = userId; in SafetySourceKey() 55 return mUserId; in getUserId() 63 return mSourceId.equals(safetySourceKey.mSourceId) && mUserId == safetySourceKey.mUserId; in equals() 68 return Objects.hash(mSourceId, mUserId); in hashCode() 73 return "SafetySourceKey{" + "mSourceId='" + mSourceId + "', mUserId=" + mUserId + '}'; in toString()
|
/packages/apps/Settings/src/com/android/settings/password/ |
D | ConfirmDeviceCredentialActivity.java | 95 private int mUserId; field in ConfirmDeviceCredentialActivity 114 } else if (mUserManager.getUserInfo(mUserId) == null) { 116 Log.i(TAG, "Finishing, user no longer valid: " + mUserId); 131 mTrustManager.setDeviceLockedForUser(mUserId, false); 135 mDevicePolicyManager, mUserId, isStrongAuth); 146 mDevicePolicyManager.reportFailedBiometricAttempt(mUserId); 193 mUserId = UserHandle.myUserId(); in onCreate() 196 mUserId = Utils.getUserIdFromBundle(this, intent.getExtras()); in onCreate() 201 final int effectiveUserId = mUserManager.getCredentialOwnerProfile(mUserId); in onCreate() 205 mUserManager.getUserProperties(UserHandle.of(mUserId)); in onCreate() [all …]
|
D | ChooseLockGenericController.java | 55 private final int mUserId; field in ChooseLockGenericController 68 mUserId = userId; in ChooseLockGenericController() 80 private final int mUserId; field in ChooseLockGenericController.Builder 109 mUserId = userId; in Builder() 155 return new ChooseLockGenericController(mContext, mUserId, mManagedPasswordProvider, in build() 166 .isManagedProfile(mUserId); in isScreenLockVisible() 193 return !mLockPatternUtils.isCredentialsDisabledForUser(mUserId) in isScreenLockEnabled() 260 PasswordMetrics metrics = mLockPatternUtils.getRequestedPasswordMetrics(mUserId, in getAggregatedPasswordMetrics() 276 mUserId, mDevicePasswordRequirementOnly)); in getAggregatedPasswordComplexity()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/managedomainurls/ |
D | ClearDefaultsPreferenceControllerTest.java | 60 private final int mUserId = UserHandle.myUserId(); field in ClearDefaultsPreferenceControllerTest 114 when(mMockPackageManager.getDefaultBrowserPackageNameAsUser(mUserId)) in onCreate_isDefaultBrowser_hasSummary() 126 when(mMockPackageManager.getDefaultBrowserPackageNameAsUser(mUserId)) in onCreate_hasUsbDefaults_hasSummary() 128 when(mMockIUsbManager.hasDefaults(TEST_PACKAGE_NAME, mUserId)).thenReturn(true); in onCreate_hasUsbDefaults_hasSummary() 139 when(mMockPackageManager.getDefaultBrowserPackageNameAsUser(mUserId)) in onCreate_autoLaunchDisabled_hasNoSummary() 141 when(mMockIUsbManager.hasDefaults(TEST_PACKAGE_NAME, mUserId)).thenReturn(false); in onCreate_autoLaunchDisabled_hasNoSummary() 152 when(mMockPackageManager.getDefaultBrowserPackageNameAsUser(mUserId)) in performClick_hasUsbManager_hasPreferredActivities_clearsPreferredActivities() 165 when(mMockPackageManager.getDefaultBrowserPackageNameAsUser(mUserId)) in performClick_hasUsbManager_isDefaultBrowser_clearsDefaultBrowser() 172 mUserId); in performClick_hasUsbManager_isDefaultBrowser_clearsDefaultBrowser() 179 when(mMockPackageManager.getDefaultBrowserPackageNameAsUser(mUserId)) in performClick_hasUsbDefaults_clearsUsbDefaults() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/ |
D | AccountSyncPreferenceControllerTest.java | 57 private final int mUserId = 3; field in AccountSyncPreferenceControllerTest 58 private final UserHandle mUserHandle = new UserHandle(mUserId); 97 "authority", /* sync= */ true, /* userId= */ mUserId); in refreshUi_notSameAccountType_shouldNotCount() 117 /* sync= */ true, /* userId= */ mUserId); in refreshUi_adapterInvisible_shouldNotCount() 154 ContentResolver.setMasterSyncAutomaticallyAsUser(true, mUserId); in refreshUi_masterAutomaticSyncIgnoredAndAccountSyncDisabled_shouldNotCount() 156 /* sync= */ false, /* userId= */ mUserId); in refreshUi_masterAutomaticSyncIgnoredAndAccountSyncDisabled_shouldNotCount() 175 ContentResolver.setMasterSyncAutomaticallyAsUser(false, mUserId); in refreshUi_masterAutomaticSyncUsed_shouldCount() 195 /* sync= */ true, /* userId= */ mUserId); in refreshUi_automaticSyncEnabled_shouldCount() 228 /* sync= */ true, /* userId= */ mUserId); in refreshUi_someEnabled_shouldSetSummary() 232 /* sync= */ true, /* userId= */ mUserId); in refreshUi_someEnabled_shouldSetSummary() [all …]
|
/packages/apps/Settings/src/com/android/settings/biometrics/face/ |
D | FaceSettings.java | 80 private int mUserId; field in FaceSettings 167 mUserId = getActivity().getIntent().getIntExtra( in onCreate() 171 if (mUserManager.getUserInfo(mUserId).isManagedProfile()) { in onCreate() 176 } else if (isPrivateProfile(mUserId, getContext())) { in onCreate() 185 mLockscreenController.setUserId(mUserId); in onCreate() 199 getContext(), DevicePolicyManager.KEYGUARD_DISABLE_FACE, mUserId) != null) { in onCreate() 209 final boolean hasEnrolled = mFaceManager.hasEnrolledTemplates(mUserId); in onCreate() 216 ((FaceSettingsPreferenceController) controller).setUserId(mUserId); in onCreate() 218 ((FaceSettingsEnrollButtonPreferenceController) controller).setUserId(mUserId); in onCreate() 220 ((FaceSettingsFooterPreferenceController) controller).setUserId(mUserId); in onCreate() [all …]
|
/packages/apps/Settings/src/com/android/settings/users/ |
D | UserPreference.java | 58 private int mUserId = USERID_UNKNOWN; field in UserPreference 66 mUserId = userId; in UserPreference() 90 if (mUserId == UserHandle.myUserId()) return Integer.MIN_VALUE; in getSerialNumber() 93 if (mUserId == USERID_UNKNOWN) { in getSerialNumber() 97 .getUserSerialNumber(mUserId); in getSerialNumber() 98 if (mSerialNumber < 0) return mUserId; in getSerialNumber() 104 return mUserId; in getUserId()
|
/packages/providers/MediaProvider/src/com/android/providers/media/stableuris/dao/ |
D | BackupIdRow.java | 55 private int mUserId; field in BackupIdRow 69 private int mUserId; field in BackupIdRow.Builder 126 this.mUserId = userId; in setUserId() 157 backupIdRow.mUserId = this.mUserId; in build() 193 return mUserId; in getUserId() 221 ", mUserId=" + mUserId + in toString() 233 && mOwnerPackageId == that.mOwnerPackageId && mUserId == that.mUserId in equals() 241 mDateExpires, mUserId, mMediaType); in hashCode()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/assist/ |
D | AssistConfigBasePreferenceControllerTest.java | 64 private final int mUserId = UserHandle.myUserId(); field in AssistConfigBasePreferenceControllerTest 101 when(mMockAssistUtils.getAssistComponentForUser(mUserId)).thenReturn(mComponentName); in getAvailabilityStatus_hasAssistComponent_isAvailable() 108 when(mMockAssistUtils.getAssistComponentForUser(mUserId)).thenReturn(mComponentName); in getAvailabilityStatus_hasAssistComponent_isAvailable_zoneWrite() 117 when(mMockAssistUtils.getAssistComponentForUser(mUserId)).thenReturn(mComponentName); in getAvailabilityStatus_hasAssistComponent_isAvailable_zoneRead() 126 when(mMockAssistUtils.getAssistComponentForUser(mUserId)).thenReturn(mComponentName); in getAvailabilityStatus_hasAssistComponent_isAvailable_zoneHidden() 135 when(mMockAssistUtils.getAssistComponentForUser(mUserId)).thenReturn(null); in getAvailabilityStatus_noAssistComponent_conditionallyUnavailable() 142 when(mMockAssistUtils.getAssistComponentForUser(mUserId)).thenReturn(null); in getAvailabilityStatus_noAssistComponent_conditionallyUnavailable_zoneWrite() 150 when(mMockAssistUtils.getAssistComponentForUser(mUserId)).thenReturn(null); in getAvailabilityStatus_noAssistComponent_conditionallyUnavailable_zoneRead() 158 when(mMockAssistUtils.getAssistComponentForUser(mUserId)).thenReturn(null); in getAvailabilityStatus_noAssistComponent_conditionallyUnavailable_zoneHidden() 166 when(mMockAssistUtils.getAssistComponentForUser(mUserId)).thenReturn(mComponentName); in onStart_registersObserver() [all …]
|
D | DefaultVoiceInputPickerEntryPreferenceControllerTest.java | 70 private final int mUserId = UserHandle.myUserId(); field in DefaultVoiceInputPickerEntryPreferenceControllerTest 108 when(mMockAssistUtils.getAssistComponentForUser(mUserId)).thenReturn( in setUp() 123 when(mMockAssistUtils.getAssistComponentForUser(mUserId)).thenReturn( in getAvailabilityStatus_sameComponents_returnsConditionallyUnavailable() 134 when(mMockAssistUtils.getAssistComponentForUser(mUserId)).thenReturn( in getAvailabilityStatus_sameComponents_returnsConditionallyUnavailable_zoneWrite() 146 when(mMockAssistUtils.getAssistComponentForUser(mUserId)).thenReturn( in getAvailabilityStatus_sameComponents_returnsConditionallyUnavailable_zoneRead() 158 when(mMockAssistUtils.getAssistComponentForUser(mUserId)).thenReturn( in getAvailabilityStatus_sameComponents_returnsConditionallyUnavailable_zoneHidden() 169 when(mMockAssistUtils.getAssistComponentForUser(mUserId)).thenReturn(null); in getAvailabilityStatus_bothNull_returnsConditionallyUnavailable() 178 when(mMockAssistUtils.getAssistComponentForUser(mUserId)).thenReturn(null); in getAvailabilityStatus_bothNull_returnsConditionallyUnavailable_zoneWrite() 188 when(mMockAssistUtils.getAssistComponentForUser(mUserId)).thenReturn(null); in getAvailabilityStatus_bothNull_returnsConditionallyUnavailable_zoneRead() 198 when(mMockAssistUtils.getAssistComponentForUser(mUserId)).thenReturn(null); in getAvailabilityStatus_bothNull_returnsConditionallyUnavailable_zoneHidden() [all …]
|
/packages/services/Car/service/src/com/android/car/bluetooth/ |
D | CarBluetoothService.java | 94 private int mUserId; field in CarBluetoothService 159 mUserId = UserManagerHelper.USER_NULL; in CarBluetoothService() 211 mUserId = ActivityManager.getCurrentUser(); in initializeUserLocked() 228 Slogf.d(TAG, "Switched to user %d", mUserId); in initializeUserLocked() 239 Slogf.d(TAG, "Destroying user %d", mUserId); in destroyUserLocked() 248 mUserId = UserManagerHelper.USER_NULL; in destroyUserLocked() 301 if (mUserId == UserManagerHelper.USER_NULL) { in createBluetoothDeviceManagerLocked() 332 if (mUserId == UserManagerHelper.USER_NULL) { in createBluetoothProfileInhibitManagerLocked() 338 mInhibitManager = new BluetoothProfileInhibitManager(mContext, mUserId, in createBluetoothProfileInhibitManagerLocked() 365 if (mUserId == UserManagerHelper.USER_NULL) { in createBluetoothConnectionRetryManagerLocked() [all …]
|
/packages/apps/Settings/src/com/android/settings/biometrics/combination/ |
D | BiometricSettingsAppPreferenceController.java | 40 private int mUserId; field in BiometricSettingsAppPreferenceController 52 DevicePolicyManager.KEYGUARD_DISABLE_BIOMETRICS, mUserId); in getRestrictingAdmin() 56 mUserId = userId; in setUserId() 62 DEFAULT, mUserId) == ON; in isChecked() 68 isChecked ? ON : OFF, mUserId); in setChecked() 84 final boolean hasFaceEnrolledUser = mFaceManager.hasEnrolledTemplates(mUserId); in getAvailabilityStatus() 86 mFingerprintManager.hasEnrolledTemplates(mUserId); in getAvailabilityStatus()
|
/packages/apps/Settings/src/com/android/settings/security/screenlock/ |
D | AutoPinConfirmPreferenceController.java | 41 private final int mUserId; field in AutoPinConfirmPreferenceController 49 mUserId = userId; in AutoPinConfirmPreferenceController() 77 return mLockPatternUtils.getCredentialTypeForUser(mUserId) in isPinLock() 82 return mLockPatternUtils.getPinLength(mUserId) >= MIN_AUTO_PIN_REQUIREMENT_LENGTH; in isPinLengthEligibleForAutoConfirmation() 86 return mLockPatternUtils.isAutoPinConfirmEnabled(mUserId); in getPinAutoConfirmSettingState() 90 mLockPatternUtils.setAutoPinConfirm(state, mUserId); in setPinAutoConfirmSettingState() 95 .setUserId(mUserId) in launchPinConfirmActivity()
|
D | PowerButtonInstantLockPreferenceController.java | 38 private final int mUserId; field in PowerButtonInstantLockPreferenceController 45 mUserId = userId; in PowerButtonInstantLockPreferenceController() 53 if (!mLockPatternUtils.isSecure(mUserId)) { in isAvailable() 56 switch (mLockPatternUtils.getKeyguardStoredPasswordQuality(mUserId)) { in isAvailable() 73 mLockPatternUtils.getPowerButtonInstantlyLocks(mUserId)); in updateState() 92 mLockPatternUtils.setPowerButtonInstantlyLocks((Boolean) newValue, mUserId); in onPreferenceChange() local
|
/packages/modules/AdServices/adservices/tests/cts/hosttests/app/src/com/android/adservices/cts/dao/ |
D | AppSearchConsentDao.java | 36 private final String mUserId; field in AppSearchConsentDao 60 this.mUserId = userId; in AppSearchConsentDao() 71 return mUserId; in getUserId() 100 + mUserId in toString() 111 return Objects.hash(mId, mUserId, mNamespace, mConsent, mApiType); in hashCode() 120 && (Objects.equals(this.mUserId, obj.mUserId)) in equals()
|
/packages/apps/Settings/src/com/android/settings/ |
D | RingtonePreference.java | 63 protected int mUserId; field in RingtonePreference 84 mUserId = userId; in setUserId() 85 mUserContext = Utils.createPackageContextAsUser(getContext(), mUserId); in setUserId() 89 return mUserId; in getUserId() 277 final int userIdFromUri = ContentProvider.getUserIdFromUri(ringtoneUri, mUserId); in isValidRingtoneUri() 278 if (userIdFromUri != mUserId) { in isValidRingtoneUri() 281 if (!userManager.isSameProfileGroup(mUserId, userIdFromUri)) { in isValidRingtoneUri() 284 + " and user " + mUserId + " are not in the same profile group"); in isValidRingtoneUri() 291 profileUserId = mUserId; in isValidRingtoneUri() 294 parentUserId = mUserId; in isValidRingtoneUri()
|
/packages/services/Car/car-builtin-lib/src/android/car/builtin/keyguard/ |
D | KeyguardServiceDelegate.java | 65 private int mUserId; field in KeyguardServiceDelegate 73 Slogf.v(TAG, "KeyguardShowDelegate.onDrawn userId=%d", mUserId); 82 Slogf.d(TAG, "Keyguard connected for user %d", mUserId); 88 mKeyguardService.setCurrentUser(mUserId); 89 mKeyguardStateMonitor = new KeyguardStateMonitor(mKeyguardService, mUserId, 106 Slogf.d(TAG, "Keyguard disconnected for user %d", mUserId); 144 mUserId = userHandle.getIdentifier(); in bindService() 159 Slogf.v(TAG, "Keyguard started for user=%d", mUserId); in bindService() 182 Slogf.d(TAG, "mKeyguardStateMonitor null for user=%d - returning default", mUserId); in isShowing() 188 Slogf.d(TAG, "isShowing=%b for user=%d", showing, mUserId); in isShowing()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/inspector/ |
D | InspectorControllerTest.java | 68 private UserId mUserId; field in InspectorControllerTest 89 mUserId = mEnv.userId; in setUp() 138 mController.loadInfo(TestEnv.FILE_JPG.derivedUri, mUserId); // actual URI doesn't matter :) in testHideDebugByDefault() 150 mController.loadInfo(TestEnv.FILE_JPG.derivedUri, mUserId); // actual URI doesn't matter :) in testShowDebugUpdatesView() 162 mController.loadInfo(TestEnv.FILE_JPG.derivedUri, mUserId); // actual URI doesn't matter :) in testExtraTitleOverridesDisplayName() 181 mController.showInProvider(uri, mUserId); in testShowInProvider() 195 mController.loadInfo(TestEnv.FILE_JPG.derivedUri, mUserId); // actual URI doesn't matter :) in testUpdateViewWithValidInput() 213 mController.loadInfo(doc.derivedUri, mUserId); // actual URI doesn't matter :) in testShowInProvider_visible() 224 mController.loadInfo(TestEnv.FILE_JPG.derivedUri, mUserId); // actual URI doesn't matter :) in testShowInProvider_invisible() 237 mController.loadInfo(TestEnv.FILE_JPG.derivedUri, mUserId); // actual URI doesn't matter :) in testUpdateView_withNullValue() [all …]
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/media/ |
D | MultidisplayMediaFragment.java | 559 private final int mUserId; field in MultidisplayMediaFragment.ConnectionCallback 562 mUserId = userId; in ConnectionCallback() 567 Log.d(TAG, "onConnected(): user " + mUserId); in onConnected() 568 MediaBrowser mediaBrowser = getOrCreateMediaBrowser(mUserId); in onConnected() 569 Log.d(TAG, "onConnected(): user " + mUserId + ", session token " in onConnected() 576 getOrCreateUserContext(mUserId), mediaBrowser.getSessionToken()); in onConnected() 579 + mUserId + ", playback state: " + playbackState); in onConnected() 580 mediaController.registerCallback(new SessionCallback(mUserId)); in onConnected() 581 mMediaControllers.set(mUserId, mediaController); in onConnected() 588 Log.d(TAG, "onConnectionFailed(): user " + mUserId); in onConnectionFailed() [all …]
|
/packages/services/Car/car-lib/src/android/car/watchdog/ |
D | PackageKillableState.java | 64 private @UserIdInt int mUserId; field in PackageKillableState 130 this.mUserId = userId; in PackageKillableState() 132 UserIdInt.class, null, mUserId); in PackageKillableState() 162 return mUserId; in getUserId() 181 "userId = " + mUserId + ", " + in toString() 193 dest.writeInt(mUserId); in writeToParcel() 216 this.mUserId = userId; in PackageKillableState() 218 UserIdInt.class, null, mUserId); in PackageKillableState()
|
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/notificationaccess/ |
D | NotificationAccessDetails.java | 70 protected int mUserId; field in NotificationAccessDetails 117 .setUserId(mUserId); in onAttach() 121 .setUserId(mUserId) in onAttach() 126 .setUserId(mUserId) in onAttach() 140 .setUserId(mUserId) in onAttach() 175 getActivity(), UserManager.DISALLOW_APPS_CONTROL, mUserId); in onResume() 177 getActivity(), UserManager.DISALLOW_APPS_CONTROL, mUserId); in onResume() 197 .setUserHandle(UserHandle.of(mUserId)) in onResume() 216 mUserId = ((UserHandle) intent.getParcelableExtra( in retrieveAppEntry() 222 mUserId = UserHandle.myUserId(); in retrieveAppEntry() [all …]
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/autofill/ |
D | KitchenSinkAutofillService.java | 37 private final int mUserId = Process.myUserHandle().getIdentifier(); field in KitchenSinkAutofillService 41 Log.d(TAG, "onConnected() for user " + mUserId); in onConnected() 47 Log.d(TAG, "onDisconnected() for user " + mUserId); in onDisconnected() 55 Log.d(TAG, "onFillRequest#" + callNumber + " for user " + mUserId + ": " + request); in onFillRequest() 61 Log.d(TAG, "onSaveRequest#" + callNumber + " for user " + mUserId + ": " + request); in onSaveRequest() 75 pw.printf("user id: %d\n", mUserId); in dump()
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/inspector/ |
D | DocumentLoaderTest.java | 58 private UserId mUserId; field in DocumentLoaderTest 72 mUserId = UserId.DEFAULT_USER; in setUp() 103 mLoader.loadDocInfo(validUri, mUserId, consumer); in testLoadsDocument() 122 mLoader.loadDocInfo(invalidUri, mUserId, consumer); in testInvalidInput() 138 mLoader.loadDocInfo(invalidUri, mUserId, consumer); in testNonContentUri() 152 DocumentInfo info = DocumentInfo.fromUri(mResolver, dirUri, mUserId); in testDir_loadNumberOfChildren() 167 DocumentInfo info = DocumentInfo.fromUri(mResolver, uri, mUserId); in testDir_notADirectory() 184 mLoader.getDocumentMetadata(uri, mUserId, consumer); in testLoadMetadata() 201 mLoader.getDocumentMetadata(uri, mUserId, consumer); in testLoadMetadata_Unsupported()
|
/packages/apps/Settings/src/com/android/settings/applications/defaultapps/ |
D | DefaultAutofillPicker.java | 79 mUserId = UserHandle.myUserId(); in onCreate() 168 mUserId); in newAddServicePreferenceOrNull() 177 context.startActivityAsUser(addNewServiceIntent, UserHandle.of(mUserId)); in newAddServicePreferenceOrNull() 202 AUTOFILL_PROBE, PackageManager.GET_META_DATA, mUserId); in getCandidates() 207 candidates.add(new DefaultAppInfo(context, mPm, mUserId, new ComponentName( in getCandidates() 215 candidates.add(new DefaultAppInfo(context, mPm, mUserId, new ComponentName( in getCandidates() 236 return getDefaultKey(getContext(), mUserId); in getDefaultKey() 252 Settings.Secure.putStringForUser(getContext().getContentResolver(), SETTING, key, mUserId); in setDefaultKey() local 276 private final int mUserId; field in DefaultAutofillPicker.AutofillSettingIntentProvider 281 mUserId = userId; in AutofillSettingIntentProvider() [all …]
|