Home
last modified time | relevance | path

Searched refs:getUserId (Results 1 – 25 of 398) sorted by relevance

12345678910>>...16

/packages/apps/Settings/src/com/android/settings/biometrics/face/
DFaceSettingsAppPreferenceController.java58 mContext.getContentResolver(), FACE_UNLOCK_APP_ENABLED, DEFAULT, getUserId()) == ON; in isChecked()
64 isChecked ? ON : OFF, getUserId()); in setChecked()
72 } else if (!mFaceManager.hasEnrolledTemplates(getUserId())) { in updateState()
92 final boolean hasEnrolledUser = mFaceManager.hasEnrolledTemplates(getUserId()); in getAvailabilityStatus()
94 mContext.getContentResolver(), FACE_UNLOCK_APP_ENABLED, OFF, getUserId()) == ON; in getAvailabilityStatus()
DFaceSettingsConfirmPreferenceController.java60 FACE_UNLOCK_ALWAYS_REQUIRE_CONFIRMATION, DEFAULT, getUserId()) == ON; in isChecked()
66 FACE_UNLOCK_ALWAYS_REQUIRE_CONFIRMATION, isChecked ? ON : OFF, getUserId()); in setChecked()
74 } else if (!mFaceManager.hasEnrolledTemplates(getUserId())) { in updateState()
81 if (Utils.isPrivateProfile(getUserId(), mContext)) { in updateState()
DFaceSettingsLockscreenBypassPreferenceController.java74 } else if (!mFaceManager.hasEnrolledTemplates(getUserId())) { in updateState()
88 if (mUserManager.isManagedProfile(getUserId())) { in getAvailabilityStatus()
93 return mFaceManager.hasEnrolledTemplates(getUserId()) in getAvailabilityStatus()
101 return UserHandle.of(getUserId()).getIdentifier(); in getUserHandle()
DFaceSettingsAttentionPreferenceController.java57 mPreference.isChecked() ? 1 : 0, getUserId());
109 if (Utils.isPrivateProfile(getUserId(), mContext)) { in updateState()
122 mFaceManager.getFeature(getUserId(), FEATURE_REQUIRE_ATTENTION, in isChecked()
135 mFaceManager.setFeature(getUserId(), FEATURE_REQUIRE_ATTENTION, in setChecked()
DFaceSettingsKeyguardPreferenceController.java62 FACE_UNLOCK_KEYGUARD_ENABLED, DEFAULT, getUserId()) == ON; in isChecked()
68 FACE_UNLOCK_KEYGUARD_ENABLED, isChecked ? ON : OFF, getUserId()); in setChecked()
85 } else if (!mFaceManager.hasEnrolledTemplates(getUserId())) { in updateState()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/statusbar/
DUserNameViewControllerTest.java108 when(mUserTracker.getUserId()).thenReturn(mUserInfo1.id); in addUserNameViewToController_withTextView_updatesUserNameView()
117 when(mUserTracker.getUserId()).thenReturn(mUserInfo1.id); in addUserNameViewToController_withTextAndImageView_updatesViews()
142 when(mUserTracker.getUserId()).thenReturn(mUserInfo1.id); in removeUserNameViewToController_textViewAndImageViewAdded_removeViews()
164 when(mUserTracker.getUserId()).thenReturn(mUserInfo1.id); in userLifecycleListener_onUserSwitchLifecycleEvent_updatesUserNameView()
179 when(mUserTracker.getUserId()).thenReturn(mUserInfo1.id); in userInfoChangedBroadcast_withUserNameViewInitialized_updatesUserNameView()
186 when(mUserTracker.getUserId()).thenReturn(mUserInfo2.id); in userInfoChangedBroadcast_withUserNameViewInitialized_updatesUserNameView()
191 verify(mUserTracker).getUserId(); in userInfoChangedBroadcast_withUserNameViewInitialized_updatesUserNameView()
198 when(mUserTracker.getUserId()).thenReturn(mUserInfo1.id); in userInfoChangedBroadcast_whenUserNameIsSame_notSetRoundedUserIcon()
216 when(mUserTracker.getUserId()).thenReturn(mUserInfo1.id); in userInfoChangedBroadcast_whenUserNameIsChanged_setRoundedUserIcon()
/packages/apps/Settings/src/com/android/settings/vpn2/
DAppDialogFragment.java99 .createContextAsUser(UserHandle.of(getUserId()), /* flags= */ 0) in onCreate()
147 final int userId = getUserId(); in onForget()
161 final int userId = getUserId(); in onDisconnect()
170 final UserHandle userHandle = UserHandle.of(getUserId()); in isUiRestricted()
177 private int getUserId() { in getUserId() method in AppDialogFragment
178 return UserHandle.getUserId(mPackageInfo.applicationInfo.uid); in getUserId()
DVpnUtils.java59 final int userId = context.getUserId(); in isAnyLockdownActive()
69 return getVpnManager(context).getVpnConfig(context.getUserId()) != null; in isVpnActive()
86 int userId = context.getUserId(); in disconnectLegacyVpn()
/packages/apps/Car/Settings/src/com/android/car/settings/
DFallbackHome.java98 view.setText("FallbackHome for user " + getUserId() + ".\n\n" in onCreate()
125 LOG.d("onResume() for user " + getUserId() + ". Provisioned: " + mProvisioned); in onResume()
141 LOG.d("User " + getUserId() + " FallbackHome is finished"); in onDestroy()
160 LOG.d("User " + getUserId() + " unlocked but no home; let's hope someone enables " in maybeFinish()
167 if (UserHelperLite.isHeadlessSystemUser(getUserId()) && !isMultiUserNoDriver) { in maybeFinish()
172 LOG.d("User " + getUserId() + " unlocked and real home (" + homePackageName in maybeFinish()
/packages/apps/Settings/src/com/android/settings/privatespace/onelock/
DFaceFingerprintUnlockController.java39 mProfileUserId = getUserId(); in FaceFingerprintUnlockController()
50 protected int getUserId() { in getUserId() method in FaceFingerprintUnlockController
77 Utils.removeEnrolledFaceForUser(mContext, getUserId()); in updateState()
78 Utils.removeEnrolledFingerprintForUser(mContext, getUserId()); in updateState()
DPrivateSpaceFacePreferenceController.java49 && getUserId() != UserHandle.USER_NULL; in isUserSupported()
53 protected int getUserId() { in getUserId() method in PrivateSpaceFacePreferenceController
75 if (mLockPatternUtils.isSeparateProfileChallengeEnabled(getUserId())) { in updateState()
79 Utils.removeEnrolledFaceForUser(mContext, getUserId()); in updateState()
DPrivateSpaceFingerprintPreferenceController.java51 && getUserId() != UserHandle.USER_NULL; in isUserSupported()
55 protected int getUserId() { in getUserId() method in PrivateSpaceFingerprintPreferenceController
77 if (mLockPatternUtils.isSeparateProfileChallengeEnabled(getUserId())) { in updateState()
81 Utils.removeEnrolledFingerprintForUser(mContext, getUserId()); in updateState()
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/
DEnterpriseUtils.java157 .hasBaseUserRestriction(restriction, UserHandle.of(context.getUserId())); in hasUserRestrictionByUm()
249 : context.getUserId(); in getActionDisabledByAdminDialog()
264 int userId = intent.getIntExtra(Intent.EXTRA_USER_ID, context.getUserId()); in getEnforcedAdminFromIntent()
307 context, restriction, context.getUserId()); in getEnforcedAdmin()
311 if (admin.component == null && context.getUserId() != adminUser) { in getEnforcedAdmin()
324 context, restrictedPackage, context.getUserId()); in getEnforcedAdmin()
327 context, restrictedPackage, context.getUserId()); in getEnforcedAdmin()
/packages/apps/Car/Provision/src/com/android/car/provision/
DDefaultActivity.java164 int userId = getUserId(); in onCreate()
233 Log.i(TAG, "finish() for user " + getUserId()); in finish()
373 if (!checkAppExists(dpcApp, getUserId())) return false; in checkDpcAppExists()
397 Log.i(TAG, "finishing setup for user " + getUserId()); in finishSetup()
430 Log.v(TAG, "Marking USER_SETUP_COMPLETE for user " + getUserId()); in provisionUserAndDevice()
456 if (!isUserSetupComplete(systemUserContext) && getUserId() != UserHandle.USER_SYSTEM in maybeMarkSystemUserSetupComplete()
474 Log.d(TAG, "exiting setup early for user " + getUserId()); in exitSetup()
506 + getUserId()); in launchLegacyProvisioningWorkflow()
513 + getUserId() + ". DPC: " + dpcInfo + ". Intent: " + intent); in launchLegacyProvisioningWorkflow()
534 + getUserId() + ". DPC: " + dpcInfo + ". Intent: " + intent); in launchProvisioningWorkflow()
[all …]
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/
DDockViewControllerWrapper.java77 if (event.getUserId() == mUserTracker.getUserId()) {
78 mActiveUnlockedUserId = event.getUserId();
163 if (!mUserManager.isUserUnlocked(mUserTracker.getUserId())) { in setupDock()
174 mUserTracker.getUserId() in setupDock()
/packages/modules/Permission/service/java/com/android/safetycenter/data/
DSafetySourceDataRepository.java118 issueIds, key.getSourceId(), key.getUserId()); in setSafetySourceDataInternal()
219 safetyCenterIssueKey.getSafetySourceId(), safetyCenterIssueKey.getUserId()); in getSafetySourceIssue()
308 if (sourceKey.getUserId() == userId) { in clearForUser()
314 if (sourceKey.getUserId() == userId) { in clearForUser()
320 if (sourceKey.getUserId() == userId) { in clearForUser()
326 if (sourceKey.getUserId() == userId) { in clearForUser()
DSafetyCenterDataManager.java189 mSafetyCenterIssueRepository.updateIssues(safetyCenterIssueKey.getUserId()); in dismissSafetyCenterIssue()
200 mSafetyCenterIssueRepository.updateIssues(safetyCenterIssueKey.getUserId()); in dismissNotification()
271 mSafetyCenterIssueRepository.updateIssues(safetySourceKey.getUserId()); in markSafetySourceRefreshTimedOut()
281 safetyCenterIssueActionId.getSafetyCenterIssueKey().getUserId()); in markSafetyCenterIssueActionInFlight()
299 safetyCenterIssueActionId.getSafetyCenterIssueKey().getUserId()); in unmarkSafetyCenterIssueActionInFlight()
544 .setUserId(safetySourceKey.getUserId()) in processSafetyEvent()
/packages/apps/Settings/src/com/android/settings/
DTrustedCredentialsDialogBuilder.java152 if (!mDelegate.startConfirmCredentialIfNotConfirmed(certHolder.getUserId(), in onClickTrust()
154 mDpm.approveCaCert(certHolder.getAlias(), certHolder.getUserId(), true); in onClickTrust()
183 && getCurrentCertInfo().getUserId() == userId) { in onCredentialConfirmed()
228 && isUserSecure(certHolder.getUserId()) in updatePositiveButton()
229 && !mDpm.isCaCertApproved(certHolder.getAlias(), certHolder.getUserId()); in updatePositiveButton()
232 mActivity, UserHandle.of(certHolder.getUserId())) != null; in updatePositiveButton()
245 new UserHandle(certHolder.getUserId())); in updateNegativeButton()
/packages/services/Telecomm/src/com/android/server/telecom/
DSystemSettingsUtil.java52 context.getUserId()) != Vibrator.VIBRATION_INTENSITY_OFF; in isRingVibrationEnabled()
57 Settings.System.DEBUG_ENABLE_ENHANCED_CALL_BLOCKING, 0, context.getUserId()) != 0; in isEnhancedCallBlockingEnabled()
63 context.getUserId()); in setEnhancedCallBlockingEnabled()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateLocaleBridge.java55 AppInfoByProfiles appInfoByProfiles = getAppInfo(UserHandle.getUserId(uid)); in updateExtraInfo()
66 AppInfoByProfiles appInfoByProfiles = getAppInfo(UserHandle.getUserId(app.info.uid)); in loadAllExtraInfo()
93 userIds.add(mContext.getUserId()); in collectLocaleBridgeInfo()
94 int workUserId = Utils.getManagedProfileId(userManager, mContext.getUserId()); in collectLocaleBridgeInfo()
/packages/modules/Permission/service/java/com/android/safetycenter/
DSafetyCenterRefreshTracker.java177 UserProfileGroup.getProfileTypeOfUser(safetySourceKey.getUserId(), mContext), in reportSourceRefreshCompleted()
286 UserProfileGroup.getProfileTypeOfUser(sourceKey.getUserId(), mContext), in timeoutRefresh()
300 + sourceKey.getUserId()); in timeoutRefresh()
450 + safetySourceKey.getUserId() in markSourceRefreshInFlight()
479 + safetySourceKey.getUserId() in markSourceRefreshComplete()
509 if (sourceKey.getUserId() == userId) { in clearForUser()
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/
DFingerprintSettingsRequireScreenOnToAuthPreferenceController.java87 } else if (!mFingerprintManager.hasEnrolledTemplates(getUserId())) { in updateState()
101 return mFingerprintManager.hasEnrolledTemplates(getUserId()) in getAvailabilityStatus()
109 return UserHandle.of(getUserId()).getIdentifier(); in getUserHandle()
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/
DAppStateAlarmsAndRemindersBridgeTest.java136 UserHandle.getUserId(TEST_UID)); in createPermissionState_SeaGrantedNoUeaNoAllowlist()
156 UserHandle.getUserId(TEST_UID)); in createPermissionState_requestsBothSeaDeniedNoAllowlist()
178 UserHandle.getUserId(TEST_UID)); in createPermissionState_requestsNoneNoAllowlist()
198 UserHandle.getUserId(TEST_UID)); in createPermissionState_requestsOnlyUeaNoAllowlist()
218 UserHandle.getUserId(TEST_UID)); in createPermissionState_requestsNoneButAllowlisted()
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/ota/
DCrossProfileAppsPregrantControllerTest.java105 mCrossProfileAppsSnapshot.takeNewSnapshot(mContext.getUserId()); in onPrimaryProfile_noManagedProfile_doesNotPregrant()
120 mCrossProfileAppsSnapshot.takeNewSnapshot(mContext.getUserId()); in onManagedProfile_doesNotPregrant()
135 mCrossProfileAppsSnapshot.takeNewSnapshot(mContext.getUserId()); in defaultConfigurablePackage_doesPregrant()
150 mCrossProfileAppsSnapshot.takeNewSnapshot(mContext.getUserId()); in nonDefaultConfigurablePackage_doesNotPregrant()
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DUserHandleCompat.java36 int getUserId(int uid) { in getUserId() method in UserHandleCompat
37 return UserHandle.getUserId(uid); in getUserId()

12345678910>>...16