Home
last modified time | relevance | path

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

12345678

/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()
87 final boolean hasEnrolledUser = mFaceManager.hasEnrolledTemplates(getUserId()); in getAvailabilityStatus()
89 mContext.getContentResolver(), FACE_UNLOCK_APP_ENABLED, OFF, getUserId()) == ON; in getAvailabilityStatus()
DFaceSettingsAttentionPreferenceController.java53 mPreference.isChecked() ? 1 : 0, getUserId());
63 if (!mFaceManager.hasEnrolledTemplates(getUserId())) {
102 mFaceManager.getFeature(getUserId(), FaceManager.FEATURE_REQUIRE_ATTENTION, in isChecked()
115 mFaceManager.setFeature(getUserId(), FaceManager.FEATURE_REQUIRE_ATTENTION, isChecked, in setChecked()
DFaceSettingsConfirmPreferenceController.java56 FACE_UNLOCK_ALWAYS_REQUIRE_CONFIRMATION, DEFAULT, getUserId()) == ON; in isChecked()
62 FACE_UNLOCK_ALWAYS_REQUIRE_CONFIRMATION, isChecked ? ON : OFF, getUserId()); in setChecked()
70 } else if (!mFaceManager.hasEnrolledTemplates(getUserId())) { in updateState()
DFaceSettingsKeyguardPreferenceController.java60 FACE_UNLOCK_KEYGUARD_ENABLED, DEFAULT, getUserId()) == ON; in isChecked()
66 FACE_UNLOCK_KEYGUARD_ENABLED, isChecked ? ON : OFF, getUserId()); in setChecked()
81 } else if (!mFaceManager.hasEnrolledTemplates(getUserId())) { in updateState()
DFaceSettingsLockscreenBypassPreferenceController.java51 Settings.Secure.FACE_UNLOCK_DISMISSES_KEYGUARD, defaultValue, getUserId()) != 0; in isChecked()
68 } else if (!mFaceManager.hasEnrolledTemplates(getUserId())) { in updateState()
82 return mFaceManager.hasEnrolledTemplates(getUserId()) in getAvailabilityStatus()
/packages/apps/Settings/src/com/android/settings/notification/
DRecentNotifyingAppsPreferenceController.java112 mUserIds.add(mContext.getUserId()); in RecentNotifyingAppsPreferenceController()
113 int workUserId = Utils.getManagedProfileId(userManager, mContext.getUserId()); in RecentNotifyingAppsPreferenceController()
247 mApplicationsState.getEntry(app.getPackage(), app.getUserId()); in displayRecentApps()
253 NotificationAppPreference pref = appPreferences.remove(getKey(app.getUserId(), in displayRecentApps()
259 pref.setKey(getKey(app.getUserId(), pkgName)); in displayRecentApps()
274 .setUserHandle(new UserHandle(UserHandle.getUserId(appEntry.info.uid))) in displayRecentApps()
306 app.getPackage(), app.getUserId()); in getDisplayableRecentAppList()
310 if (!shouldIncludePkgInRecents(app.getPackage(), app.getUserId())) { in getDisplayableRecentAppList()
/packages/apps/Car/Launcher/src/com/android/car/carlauncher/
DCarLauncher.java71 if (DEBUG) Log.d(TAG, "onActivityViewReady(" + getUserId() + ")");
79 if (DEBUG) Log.d(TAG, "onActivityViewDestroyed(" + getUserId() + ")");
86 Log.d(TAG, "onTaskMovedToFront(" + getUserId() + "): started="
204 Log.d(TAG, "maybeLogReady(" + getUserId() + "): activityReady=" + mActivityViewReady in maybeLogReady()
215 Log.i(TAG, "Launcher for user " + getUserId() + " is ready"); in maybeLogReady()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
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/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/apps/Settings/src/com/android/settings/vpn2/
DAppDialogFragment.java147 final int userId = getUserId(); in onForget()
166 final int userId = getUserId(); in onDisconnect()
180 final UserHandle userHandle = UserHandle.of(getUserId()); in isUiRestricted()
184 private int getUserId() { in getUserId() method in AppDialogFragment
185 return UserHandle.getUserId(mPackageInfo.applicationInfo.uid); in getUserId()
DVpnUtils.java64 final int userId = context.getUserId(); in isAnyLockdownActive()
74 return getIConnectivityManager().getVpnConfig(context.getUserId()) != null; in isVpnActive()
98 int userId = context.getUserId(); in disconnectLegacyVpn()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/vpn2/
DAppDialogFragment.java147 final int userId = getUserId(); in onForget()
166 final int userId = getUserId(); in onDisconnect()
180 final UserHandle userHandle = UserHandle.of(getUserId()); in isUiRestricted()
184 private int getUserId() { in getUserId() method in AppDialogFragment
185 return UserHandle.getUserId(mPackageInfo.applicationInfo.uid); in getUserId()
DVpnUtils.java64 final int userId = context.getUserId(); in isAnyLockdownActive()
74 return getIConnectivityManager().getVpnConfig(context.getUserId()) != null; in isVpnActive()
98 int userId = context.getUserId(); in disconnectLegacyVpn()
/packages/apps/Car/Settings/src/com/android/car/settings/
DFallbackHome.java96 view.setText("FallbackHome for user " + getUserId() + ".\n\n" in onCreate()
123 LOG.d("onResume() for user " + getUserId() + ". Provisioned: " + mProvisioned); in onResume()
159 LOG.d("User " + getUserId() + " unlocked but no home; let's hope someone enables " in maybeFinish()
163 LOG.d("User " + getUserId() + " unlocked and real home (" in maybeFinish()
/packages/modules/ExtServices/src/android/ext/services/notification/
DAssistant.java120 getApplicationContext().getContentResolver(), getUserId(), this::updateThresholds); in onCreate()
280 entry.getSbn().getUserId()); in createEnqueuedNotificationAdjustment()
295 sbn.getPackageName(), sbn.getUserId(), ranking.getChannel().getId());
305 sbn.getPackageName(), sbn.getKey(), sbn.getUserId()));
324 String key = getKey(sbn.getPackageName(), sbn.getUserId(), channelId); in onNotificationRemoved()
419 StorageManager.UUID_PRIVATE_INTERNAL, getUserId(), getPackageName()), in onListenerConnected()
435 return sbn != null && sbn.getUserId() == UserHandle.myUserId(); in isForCurrentUser()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/face/
DFaceSettingsAttentionPreferenceController.java53 mPreference.isChecked() ? 1 : 0, getUserId());
98 mFaceManager.getFeature(getUserId(), FaceManager.FEATURE_REQUIRE_ATTENTION, in isChecked()
111 mFaceManager.setFeature(getUserId(), FaceManager.FEATURE_REQUIRE_ATTENTION, isChecked, in setChecked()
DFaceSettingsAppPreferenceController.java50 mContext.getContentResolver(), FACE_UNLOCK_APP_ENABLED, DEFAULT, getUserId()) == ON; in isChecked()
56 isChecked ? ON : OFF, getUserId()); in setChecked()
DFaceSettingsConfirmPreferenceController.java49 FACE_UNLOCK_ALWAYS_REQUIRE_CONFIRMATION, DEFAULT, getUserId()) == ON; in isChecked()
55 FACE_UNLOCK_ALWAYS_REQUIRE_CONFIRMATION, isChecked ? ON : OFF, getUserId()); in setChecked()
DFaceSettingsKeyguardPreferenceController.java58 FACE_UNLOCK_KEYGUARD_ENABLED, DEFAULT, getUserId()) == ON; in isChecked()
64 FACE_UNLOCK_KEYGUARD_ENABLED, isChecked ? ON : OFF, getUserId()); in setChecked()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DAppManagementFragment.java149 final int userId = UserHandle.getUserId(mEntry.info.uid); in onActivityResult()
159 final int userId = UserHandle.getUserId(mEntry.info.uid); in onActivityResult()
408 final int userId = UserHandle.getUserId(mEntry.info.uid); in dataCleared()
437 final int userId = UserHandle.getUserId(mEntry.info.uid); in cacheCleared()
459 final int userId = UserHandle.getUserId(mEntry.info.uid); in onPackageListChanged()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateNotificationBridge.java66 mUserIds.add(mContext.getUserId()); in AppStateNotificationBridge()
67 int workUserId = Utils.getManagedProfileId(userManager, mContext.getUserId()); in AppStateNotificationBridge()
86 map.get(getKey(UserHandle.getUserId(entry.info.uid), entry.info.packageName)); in loadAllExtraInfo()
96 UserHandle.getUserId(entry.info.uid), entry.info.packageName); in updateExtraInfo()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DAppStateNotificationBridge.java66 mUserIds.add(mContext.getUserId()); in AppStateNotificationBridge()
67 int workUserId = Utils.getManagedProfileId(userManager, mContext.getUserId()); in AppStateNotificationBridge()
86 map.get(getKey(UserHandle.getUserId(entry.info.uid), entry.info.packageName)); in loadAllExtraInfo()
96 UserHandle.getUserId(entry.info.uid), entry.info.packageName); in updateExtraInfo()
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/
DFingerprintStatusPreferenceController.java48 return mFingerprintManager.hasEnrolledFingerprints(getUserId()); in hasEnrolledBiometrics()
53 final int numEnrolled = mFingerprintManager.getEnrolledFingerprints(getUserId()).size(); in getSummaryTextEnrolled()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/fingerprint/
DFingerprintStatusPreferenceController.java48 return mFingerprintManager.hasEnrolledFingerprints(getUserId()); in hasEnrolledBiometrics()
53 final int numEnrolled = mFingerprintManager.getEnrolledFingerprints(getUserId()).size(); in getSummaryTextEnrolled()
/packages/apps/Settings/src/com/android/settings/datausage/
DAppDataUsage.java163 mPackages.valueAt(0), 0, UserHandle.getUserId(mAppItem.key)); in onCreate()
253 UserHandle.getUserId(mAppItem.key))); in onPreferenceTreeClick()
281 mContext, mPackageName, UserHandle.getUserId(mAppItem.key)); in updatePrefs()
347 UserHandle.getUserId(mAppItem.key)); in onViewCreated()

12345678