Home
last modified time | relevance | path

Searched refs:myUserId (Results 1 – 25 of 422) sorted by relevance

12345678910>>...17

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/specialaccess/
DAppStateAppOpsBridgeTest.java86 eq(UserHandle.myUserId()))) in setUp()
98 int uid = UserHandle.getUid(UserHandle.myUserId(), /* appId= */ 1); in androidPackagesIgnored()
111 int uid = UserHandle.getUid(UserHandle.myUserId(), /* appId= */ 1); in selfPackageIgnored()
124 int uid = UserHandle.getUid(UserHandle.myUserId(), /* appId= */ 1); in packagesNotRequestingPermissionIgnored()
129 UserHandle.myUserId())).thenReturn(true); in packagesNotRequestingPermissionIgnored()
140 int uid = UserHandle.getUid(UserHandle.myUserId(), /* appId= */ 1); in unavailablePackageIgnored()
144 UserHandle.myUserId())).thenReturn(false); in unavailablePackageIgnored()
155 int uid = UserHandle.getUid(UserHandle.myUserId(), /* appId= */ 1); in loadsAppOpsExtraInfo_modeAllowed_isPermissible()
170 int uid = UserHandle.getUid(UserHandle.myUserId(), /* appId= */ 1); in loadsAppOpsExtraInfo_modeDefault_isPermissible()
185 int uid = UserHandle.getUid(UserHandle.myUserId(), /* appId= */ 1); in loadsAppOpsExtraInfo_modeIgnored_isNotPermissible()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DRecentAppStatsMixinTest.java100 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_oneValidRecentAppSet_shouldHaveOneRecentApp()
131 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps()
133 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps()
135 when(mAppState.getEntry(stat3.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps()
167 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
169 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
171 when(mAppState.getEntry(stat3.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
198 when(mAppState.getEntry(stat.mPackageName, UserHandle.myUserId())).thenReturn(statEntry); in loadDisplayableRecentApps_oneInstantAppSet_shouldHaveOneRecentApp()
226 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_withNullAppEntryOrInfo_shouldNotCrash()
228 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_withNullAppEntryOrInfo_shouldNotCrash()
[all …]
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/apps/
DRecentAppsPreferenceControllerTest.java157 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in display_showRecents()
159 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in display_showRecents()
161 when(mAppState.getEntry(stat3.mPackageName, UserHandle.myUserId())) in display_showRecents()
196 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())).thenReturn(stat1Entry); in display_showRecentsWithInstantApp()
197 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())).thenReturn(stat2Entry); in display_showRecentsWithInstantApp()
234 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in display_showRecentsWithNullAppEntryOrInfo()
236 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in display_showRecentsWithNullAppEntryOrInfo()
260 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in display_hasRecentButNoneDisplayable_showAllApps()
262 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in display_hasRecentButNoneDisplayable_showAllApps()
282 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in display_showRecents_formatSummary()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DWorkSoundPreferenceControllerTest.java96 .thenReturn(UserHandle.myUserId()); in isAvailable_managedProfileAndNotSingleVolume_shouldReturnTrue()
116 .thenReturn(UserHandle.myUserId()); in isAvailable_singleVolume_shouldReturnFalse()
139 .thenReturn(UserHandle.myUserId()); in onManagedProfileAdded_shouldDisplayPreferenceCategory()
140 mController.onManagedProfileAdded(UserHandle.myUserId()); in onManagedProfileAdded_shouldDisplayPreferenceCategory()
152 .thenReturn(UserHandle.myUserId()); in onManagedProfileRemoved_shouldHidePreferenceCategory()
164 mController.onManagedProfileRemoved(UserHandle.myUserId()); in onManagedProfileRemoved_shouldHidePreferenceCategory()
172 .thenReturn(UserHandle.myUserId()); in displayPreference_isAvailable_shouldShowPreferenceCategory()
209 .thenReturn(UserHandle.myUserId()); in onResume_noVoiceCapability_shouldHidePhoneRingtone()
236 .thenReturn(UserHandle.myUserId()); in onResume_availableButLocked_shouldRedactPreferences()
DRecentNotifyingAppsPreferenceControllerTest.java189 when(mAppState.getEntry(app.getPackageName(), UserHandle.myUserId())) in display_showRecents()
191 when(mAppState.getEntry(app1.getPackageName(), UserHandle.myUserId())) in display_showRecents()
193 when(mAppState.getEntry(app2.getPackageName(), UserHandle.myUserId())) in display_showRecents()
241 app.getPackageName(), UserHandle.myUserId())).thenReturn(app1Entry); in display_showRecentsWithInstantApp()
243 app1.getPackageName(), UserHandle.myUserId())).thenReturn(app2Entry); in display_showRecentsWithInstantApp()
265 RecentNotifyingAppsPreferenceController.getKey(UserHandle.myUserId(), in display_showRecentsWithInstantApp()
268 RecentNotifyingAppsPreferenceController.getKey(UserHandle.myUserId(), in display_showRecentsWithInstantApp()
284 when(mAppState.getEntry(app.getPackageName(), UserHandle.myUserId())) in display_showRecents_formatSummary()
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/
DLocationServicePreferenceControllerTest.java127 map.put(UserHandle.myUserId(), preferences); in updateState_shouldRemoveAllAndAddInjectedSettings()
131 ShadowUserManager.getShadow().setProfileIdsWithDisabled(new int[]{UserHandle.myUserId()}); in updateState_shouldRemoveAllAndAddInjectedSettings()
146 new int[]{UserHandle.myUserId(), fakeWorkProfileId}); in workProfileDisallowShareLocationOn_getParentUserLocationServicesOnly()
163 any(Context.class), eq(UserHandle.myUserId())); in workProfileDisallowShareLocationOn_getParentUserLocationServicesOnly()
170 new int[]{UserHandle.myUserId(), fakeWorkProfileId}); in workProfileDisallowShareLocationOff_getAllUserLocationServices()
201 map.put(UserHandle.myUserId(), preferences); in withUserRestriction_shouldDisableLocationAccuracy()
204 ShadowUserManager.getShadow().setProfileIdsWithDisabled(new int[]{UserHandle.myUserId()}); in withUserRestriction_shouldDisableLocationAccuracy()
206 final int userId = UserHandle.myUserId(); in withUserRestriction_shouldDisableLocationAccuracy()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/
DUserSettings.java262 final int myUserId = UserHandle.myUserId(); in onCreate() local
265 mMePreference = new UserPreference(getPrefContext(), null /* attrs */, myUserId, in onCreate()
343 UserManager.DISALLOW_REMOVE_USER, UserHandle.myUserId()); in onCreateOptionsMenu()
354 onRemoveUserClicked(UserHandle.myUserId()); in onOptionsItemSelected()
391 UserInfo user = mUserManager.getUserInfo(UserHandle.myUserId()); in loadProfile()
404 int myUserId = UserHandle.myUserId(); in finishLoadProfile() local
405 Bitmap b = mUserManager.getUserIcon(myUserId); in finishLoadProfile()
408 mUserIcons.put(myUserId, b); in finishLoadProfile()
414 return lpu.isSecure(UserHandle.myUserId()); in hasLockscreenSecurity()
505 } else if (info.id == UserHandle.myUserId()) { in onManageUserClicked()
[all …]
/packages/apps/Settings/src/com/android/settings/users/
DUserSettings.java262 final int myUserId = UserHandle.myUserId(); in onCreate() local
265 mMePreference = new UserPreference(getPrefContext(), null /* attrs */, myUserId, in onCreate()
347 UserManager.DISALLOW_REMOVE_USER, UserHandle.myUserId()); in onCreateOptionsMenu()
358 onRemoveUserClicked(UserHandle.myUserId()); in onOptionsItemSelected()
395 UserInfo user = mUserManager.getUserInfo(UserHandle.myUserId()); in loadProfile()
408 int myUserId = UserHandle.myUserId(); in finishLoadProfile() local
409 Bitmap b = mUserManager.getUserIcon(myUserId); in finishLoadProfile()
412 mUserIcons.put(myUserId, b); in finishLoadProfile()
418 return lpu.isSecure(UserHandle.myUserId()); in hasLockscreenSecurity()
509 } else if (info.id == UserHandle.myUserId()) { in onManageUserClicked()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DExternalSourcesDetailsTest.java176 shadowUserManager.setUserRestriction(UserHandle.of(UserHandle.myUserId()), in refreshUi_userRestrictionsUnknownSources_disablesSwitchPreference()
190 UserHandle.of(UserHandle.myUserId()))).isTrue(); in refreshUi_userRestrictionsUnknownSources_disablesSwitchPreference()
215 shadowUserManager.setUserRestriction(UserHandle.of(UserHandle.myUserId()), in refreshUi_userRestrictionsUnknownSourcesGlobally_disablesSwitchPreference()
229 UserHandle.of(UserHandle.myUserId()))).isTrue(); in refreshUi_userRestrictionsUnknownSourcesGlobally_disablesSwitchPreference()
254 shadowUserManager.setUserRestriction(UserHandle.of(UserHandle.myUserId()), in refreshUi_bothUnknownSourcesUserRestrictions_disableSwitchPreference()
256 shadowUserManager.setUserRestriction(UserHandle.of(UserHandle.myUserId()), in refreshUi_bothUnknownSourcesUserRestrictions_disableSwitchPreference()
270 UserHandle.of(UserHandle.myUserId()))).isTrue(); in refreshUi_bothUnknownSourcesUserRestrictions_disableSwitchPreference()
273 UserHandle.of(UserHandle.myUserId()))).isTrue(); in refreshUi_bothUnknownSourcesUserRestrictions_disableSwitchPreference()
/packages/apps/KeyChain/src/com/android/keychain/
DKeyChainService.java359 UserHandle.myUserId());
366 UserHandle.myUserId());
407 if (uid == Process.WIFI_UID && UserHandle.myUserId() != UserHandle.USER_SYSTEM) {
411 UserHandle.myUserId()));
522 UserHandle.myUserId());
530 UserHandle.myUserId());
653 sendBroadcastAsUser(intent, UserHandle.of(UserHandle.myUserId()), null, opts.toBundle()); in broadcastLegacyStorageChange()
658 sendBroadcastAsUser(intent, UserHandle.of(UserHandle.myUserId())); in broadcastKeychainChange()
663 sendBroadcastAsUser(intent, UserHandle.of(UserHandle.myUserId())); in broadcastTrustStoreChange()
678 sendBroadcastAsUser(intent, UserHandle.of(UserHandle.myUserId())); in broadcastPermissionChange()
/packages/apps/Settings/src/com/android/settings/
DUserCredentialsSettings.java140 final int myUserId = UserHandle.myUserId(); in onCreateDialog() local
142 myUserId)) { in onCreateDialog()
146 .checkIfRestrictionEnforced(getContext(), restriction, myUserId); in onCreateDialog()
272 final int myUserId = UserHandle.myUserId(); in doInBackground() local
273 final int systemUid = UserHandle.getUid(myUserId, Process.SYSTEM_UID); in doInBackground()
274 final int wifiUid = UserHandle.getUid(myUserId, Process.WIFI_UID); in doInBackground()
DUtils.java414 final int myUserId = UserHandle.myUserId(); in getManagedProfileWithDisabled() local
415 List<UserInfo> profiles = userManager.getProfiles(myUserId); in getManagedProfileWithDisabled()
420 && profile.getUserHandle().getIdentifier() != myUserId) { in getManagedProfileWithDisabled()
459 UserHandle currentUser = new UserHandle(UserHandle.myUserId()); in getSecureTargetUser()
518 return (UserHandle.myUserId() == otherUser.getIdentifier()) in isProfileOf()
662 int userId = bundle.getInt(Intent.EXTRA_USER_ID, UserHandle.myUserId()); in getUserIdFromBundle()
676 if (UserHandle.myUserId() == UserHandle.USER_SYSTEM) { in enforceSystemUser()
680 + "USER_SYSTEM, but current user is " + UserHandle.myUserId()); in enforceSystemUser()
690 final int[] profileIds = um.getProfileIdsWithDisabled(UserHandle.myUserId()); in enforceSameOwner()
695 + UserHandle.myUserId()); in enforceSameOwner()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DUserCredentialsSettings.java140 final int myUserId = UserHandle.myUserId(); in onCreateDialog() local
142 myUserId)) { in onCreateDialog()
146 .checkIfRestrictionEnforced(getContext(), restriction, myUserId); in onCreateDialog()
272 final int myUserId = UserHandle.myUserId(); in doInBackground() local
273 final int systemUid = UserHandle.getUid(myUserId, Process.SYSTEM_UID); in doInBackground()
274 final int wifiUid = UserHandle.getUid(myUserId, Process.WIFI_UID); in doInBackground()
DUtils.java419 final int myUserId = UserHandle.myUserId(); in getManagedProfileWithDisabled() local
420 List<UserInfo> profiles = userManager.getProfiles(myUserId); in getManagedProfileWithDisabled()
425 && profile.getUserHandle().getIdentifier() != myUserId) { in getManagedProfileWithDisabled()
464 UserHandle currentUser = new UserHandle(UserHandle.myUserId()); in getSecureTargetUser()
523 return (UserHandle.myUserId() == otherUser.getIdentifier()) in isProfileOf()
667 int userId = bundle.getInt(Intent.EXTRA_USER_ID, UserHandle.myUserId()); in getUserIdFromBundle()
681 if (UserHandle.myUserId() == UserHandle.USER_SYSTEM) { in enforceSystemUser()
685 + "USER_SYSTEM, but current user is " + UserHandle.myUserId()); in enforceSystemUser()
695 final int[] profileIds = um.getProfileIdsWithDisabled(UserHandle.myUserId()); in enforceSameOwner()
700 + UserHandle.myUserId()); in enforceSameOwner()
[all …]
/packages/apps/Settings/src/com/android/settings/security/
DScreenPinningSettings.java122 int defaultValueIfSettingNull = mLockPatternUtils.isSecure(UserHandle.myUserId()) ? 1 : 0; in isScreenLockUsed()
133 .getKeyguardStoredPasswordQuality(UserHandle.myUserId()); in setScreenLockUsed()
158 UserHandle.myUserId()) in onActivityResult()
168 UserHandle.myUserId()); in getCurrentSecurityTitle()
179 if (mLockPatternUtils.isLockPatternEnabled(UserHandle.myUserId())) { in getCurrentSecurityTitle()
/packages/apps/Settings/src/com/android/settings/notification/
DRedactNotificationPreferenceController.java54 mProfileUserId = Utils.getManagedProfileId(mUm, UserHandle.myUserId()); in RedactNotificationPreferenceController()
60 ? UserHandle.myUserId() : mProfileUserId; in isChecked()
68 ? UserHandle.myUserId() : mProfileUserId; in setChecked()
84 ? UserHandle.myUserId() : mProfileUserId; in getAvailabilityStatus()
DVisibilityPreferenceController.java152 final UserInfo parentUser = mUm.getProfileParent(UserHandle.myUserId()); in getLockscreenNotificationsEnabled()
153 final int primaryUserId = parentUser != null ? parentUser.id : UserHandle.myUserId(); in getLockscreenNotificationsEnabled()
164 boolean lockscreenSecure = mLockPatternUtils.isSecure(UserHandle.myUserId()); in isLockScreenSecure()
165 UserInfo parentUser = mUm.getProfileParent(UserHandle.myUserId()); in isLockScreenSecure()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DFaceSetupSliceTest.java71 when(faceManager.hasEnrolledTemplates(UserHandle.myUserId())).thenReturn(true); in getSlice_faceEnrolled_noReEnroll_shouldReturnNull()
84 when(faceManager.hasEnrolledTemplates(UserHandle.myUserId())).thenReturn(false); in getSlice_faceNotEnrolled_shouldReturnSlice()
95 when(faceManager.hasEnrolledTemplates(UserHandle.myUserId())).thenReturn(true); in getSlice_faceEnrolled_shouldReEnroll_shouldReturnSlice()
108 when(faceManager.hasEnrolledTemplates(UserHandle.myUserId())).thenReturn(true); in getSlice_faceEnrolled_musteEnroll_shouldReturnSlice()
/packages/apps/Bluetooth/src/com/android/bluetooth/util/
DDevicePolicyUtils.java35 final int myUserId = UserHandle.myUserId(); in isBluetoothWorkContactSharingDisabled() local
36 final List<UserInfo> userInfoList = userManager.getProfiles(myUserId); in isBluetoothWorkContactSharingDisabled()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DTimeoutPreferenceControllerTest.java102 final int profileUserId = UserHandle.myUserId(); in testUpdateStateWithAdminTimeouts()
113 final int profileUserId = UserHandle.myUserId(); in testUpdateStateWithAdminTimeoutsAndRestriction()
118 int userId = UserHandle.myUserId(); in testUpdateStateWithAdminTimeoutsAndRestriction()
144 final int profileUserId = UserHandle.myUserId(); in updateState_selectedTimeoutLargerThanAdminMax_shouldSetSummaryToUpdatedPrefValue()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DVisibilityPreferenceController.java152 final UserInfo parentUser = mUm.getProfileParent(UserHandle.myUserId()); in getLockscreenNotificationsEnabled()
153 final int primaryUserId = parentUser != null ? parentUser.id : UserHandle.myUserId(); in getLockscreenNotificationsEnabled()
164 boolean lockscreenSecure = mLockPatternUtils.isSecure(UserHandle.myUserId()); in isLockScreenSecure()
165 UserInfo parentUser = mUm.getProfileParent(UserHandle.myUserId()); in isLockScreenSecure()
DLockScreenNotificationPreferenceController.java84 mProfileUserId = Utils.getManagedProfileId(UserManager.get(context), UserHandle.myUserId()); in LockScreenNotificationPreferenceController()
88 mSecure = utils.isSecure(UserHandle.myUserId()); in LockScreenNotificationPreferenceController()
251 mContext, keyguardNotificationFeatures, UserHandle.myUserId()); in setRestrictedIfNotificationFeaturesDisabled()
275 .isSecure(UserHandle.myUserId()); in getSummaryResource()
277 || getAllowPrivateNotifications(context, UserHandle.myUserId()); in getSummaryResource()
/packages/apps/ThemePicker/src/com/android/customization/model/theme/custom/
DIconOptionsProvider.java61 OVERLAY_CATEGORY_ICON_SYSUI, UserHandle.myUserId(), targetPackages)); in IconOptionsProvider()
63 OVERLAY_CATEGORY_ICON_SETTINGS, UserHandle.myUserId(), targetPackages)); in IconOptionsProvider()
65 OVERLAY_CATEGORY_ICON_LAUNCHER, UserHandle.myUserId(), targetPackages)); in IconOptionsProvider()
67 OVERLAY_CATEGORY_ICON_THEMEPICKER, UserHandle.myUserId(), targetPackages)); in IconOptionsProvider()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/security/
DScreenPinningSettings.java129 .getKeyguardStoredPasswordQuality(UserHandle.myUserId()); in setScreenLockUsed()
154 UserHandle.myUserId()) in onActivityResult()
164 UserHandle.myUserId()); in getCurrentSecurityTitle()
175 if (mLockPatternUtils.isLockPatternEnabled(UserHandle.myUserId())) { in getCurrentSecurityTitle()
/packages/apps/Settings/src/com/android/settings/security/trustagent/
DTrustAgentManager.java109 final int myUserId = UserHandle.myUserId(); in getActiveTrustAgents() local
116 final List<ComponentName> enabledTrustAgents = utils.getEnabledTrustAgents(myUserId); in getActiveTrustAgents()
119 context, DevicePolicyManager.KEYGUARD_DISABLE_TRUST_AGENTS, myUserId); in getActiveTrustAgents()

12345678910>>...17