/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/specialaccess/ |
D | AppStateAppOpsBridgeTest.java | 34 import android.os.UserHandle; 86 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() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
D | LauncherAppsCompat.java | 29 import android.os.UserHandle; 42 default void onPackageRemoved(String packageName, UserHandle user) { } in onPackageRemoved() 43 default void onPackageAdded(String packageName, UserHandle user) { } in onPackageAdded() 44 default void onPackageChanged(String packageName, UserHandle user) { } in onPackageChanged() 45 default void onPackagesAvailable(String[] packageNames, UserHandle user, in onPackagesAvailable() 47 default void onPackagesUnavailable(String[] packageNames, UserHandle user, in onPackagesUnavailable() 49 default void onPackagesSuspended(String[] packageNames, UserHandle user) { } in onPackagesSuspended() 50 default void onPackagesUnsuspended(String[] packageNames, UserHandle user) { } in onPackagesUnsuspended() 52 UserHandle user) { } in onShortcutsChanged() 77 UserHandle user); in getActivityList() [all …]
|
D | UserManagerCompatVNMr1.java | 23 import android.os.UserHandle; 37 protected LongSparseArray<UserHandle> mUsers; 40 protected ArrayMap<UserHandle, Long> mUserToSerialMap; 47 public boolean isQuietModeEnabled(UserHandle user) { in isQuietModeEnabled() 52 public boolean isUserUnlocked(UserHandle user) { in isUserUnlocked() 58 List<UserHandle> userProfiles = getUserProfiles(); in isAnyProfileQuietModeEnabled() 59 for (UserHandle userProfile : userProfiles) { in isAnyProfileQuietModeEnabled() 71 public long getSerialNumberForUser(UserHandle user) { in getSerialNumberForUser() 82 public UserHandle getUserForSerialNumber(long serialNumber) { in getUserForSerialNumber() 97 public boolean requestQuietModeEnabled(boolean enableQuietMode, UserHandle user) { in requestQuietModeEnabled() [all …]
|
D | LauncherAppsCompatVL.java | 33 import android.os.UserHandle; 63 public List<LauncherActivityInfo> getActivityList(String packageName, UserHandle user) { in getActivityList() 68 public LauncherActivityInfo resolveActivity(Intent intent, UserHandle user) { in resolveActivity() 73 public void startActivityForProfile(ComponentName component, UserHandle user, in startActivityForProfile() 79 public ApplicationInfo getApplicationInfo(String packageName, int flags, UserHandle user) { in getApplicationInfo() 105 public void showAppDetailsForProfile(ComponentName component, UserHandle user, in showAppDetailsForProfile() 131 public boolean isPackageEnabledForProfile(String packageName, UserHandle user) { in isPackageEnabledForProfile() 136 public boolean isActivityEnabledForProfile(ComponentName component, UserHandle user) { in isActivityEnabledForProfile() 148 public void onPackageRemoved(String packageName, UserHandle user) { in onPackageRemoved() 153 public void onPackageAdded(String packageName, UserHandle user) { in onPackageAdded() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | CarUserServiceTest.java | 39 import android.os.UserHandle; 144 systemUser.id = UserHandle.USER_SYSTEM; in testDisableModifyAccountsForHeadlessSystemUserOnFirstRun() 148 mCarUserService.setUserLockStatus(UserHandle.USER_SYSTEM, true); in testDisableModifyAccountsForHeadlessSystemUserOnFirstRun() 162 systemUser.id = UserHandle.USER_SYSTEM; in testDisableModifyAccountsForRegularSystemUserOnFirstRun() 166 mCarUserService.setUserLockStatus(UserHandle.USER_SYSTEM, true); in testDisableModifyAccountsForRegularSystemUserOnFirstRun() 180 systemUser.id = UserHandle.USER_SYSTEM; in testDoesNotSetSystemUserRestrictions_IfRestrictionsAlreadySet() 184 mCarUserService.setUserLockStatus(UserHandle.USER_SYSTEM, true); in testDoesNotSetSystemUserRestrictions_IfRestrictionsAlreadySet() 197 mCarUserService.setUserLockStatus(UserHandle.USER_SYSTEM, true); in testDisableLocationForHeadlessSystemUserOnFirstRun() 200 /* enabled= */ false, UserHandle.of(UserHandle.USER_SYSTEM)); in testDisableLocationForHeadlessSystemUserOnFirstRun() 210 mCarUserService.setUserLockStatus(UserHandle.USER_SYSTEM, true); in testDisableLocationForRegularSystemUserOnFirstRun() [all …]
|
/packages/services/Car/service/src/com/android/car/pm/ |
D | VendorServiceController.java | 32 import android.os.UserHandle; 137 if (connectedUserId != UserHandle.USER_SYSTEM && connectedUserId != userId) { in doSwitchUser() 142 if (userId != UserHandle.USER_SYSTEM) { in doSwitchUser() 143 startOrBindServicesForUser(UserHandle.of(userId)); in doSwitchUser() 156 if (unlocked && (userId == currentUserId || userId == UserHandle.USER_SYSTEM)) { in doUserLockChanged() 157 startOrBindServicesForUser(UserHandle.of(userId)); in doUserLockChanged() 158 } else if (!unlocked && userId != UserHandle.USER_SYSTEM) { in doUserLockChanged() 167 private void startOrBindServicesForUser(UserHandle user) { in startOrBindServicesForUser() 169 boolean systemUser = UserHandle.SYSTEM.equals(user); in startOrBindServicesForUser() 184 startOrBindServicesForUser(UserHandle.SYSTEM); in startOrBindServicesIfNeeded() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | ExternalSourcesDetailsTest.java | 37 import android.os.UserHandle; 94 assertThat(UserHandle.isCore(mockUid)).isFalse(); in setCanInstallApps_false_shouldKillNonCoreUid() 106 assertThat(UserHandle.isCore(mockUid)).isTrue(); in setCanInstallApps_false_shouldNotKillCoreUid() 176 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() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/ |
D | DashboardFeatureProviderImplTest.java | 50 import android.os.UserHandle; 166 tile.userHandle.add(mock(UserHandle.class)); in bindPreference_noFragmentMetadata_shouldBindToProfileSelector() 167 tile.userHandle.add(mock(UserHandle.class)); in bindPreference_noFragmentMetadata_shouldBindToProfileSelector() 181 tile.userHandle.add(mock(UserHandle.class)); in bindPreference_noFragmentMetadataSingleUser_shouldBindToDirectLaunchIntent() 195 .startActivityForResultAsUser(any(Intent.class), anyInt(), any(UserHandle.class)); in bindPreference_noFragmentMetadataSingleUser_shouldBindToDirectLaunchIntent() 204 tile.userHandle.add(mock(UserHandle.class)); in bindPreference_toInternalSettingActivity_shouldBindToDirectLaunchIntentAndNotLog() 214 .startActivityForResultAsUser(any(Intent.class), anyInt(), any(UserHandle.class)); in bindPreference_toInternalSettingActivity_shouldBindToDirectLaunchIntentAndNotLog() 374 final ArrayList<UserHandle> handles = new ArrayList<>(); in openTileIntent_profileSelectionDialog_shouldShow() 375 handles.add(new UserHandle(0)); in openTileIntent_profileSelectionDialog_shouldShow() 376 handles.add(new UserHandle(10)); in openTileIntent_profileSelectionDialog_shouldShow() [all …]
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/ota/ |
D | OtaControllerTest.java | 31 import android.os.UserHandle; 101 when(mUserManager.getProfiles(UserHandle.USER_SYSTEM)).thenReturn(mProfiles); in setUp() 115 setDeviceOwner(UserHandle.USER_SYSTEM, ADMIN_COMPONENT); in testDeviceOwnerSystemUser() 122 Pair.create(UserHandle.USER_SYSTEM, MigrateSystemAppsSnapshotTask.class), in testDeviceOwnerSystemUser() 123 Pair.create(UserHandle.USER_SYSTEM, DeleteNonRequiredAppsTask.class), in testDeviceOwnerSystemUser() 124 Pair.create(UserHandle.USER_SYSTEM, DisallowAddUserTask.class)); in testDeviceOwnerSystemUser() 127 verify(mCrossProfileIntentFiltersSetter).resetFilters(UserHandle.USER_SYSTEM); in testDeviceOwnerSystemUser() 145 Pair.create(UserHandle.USER_SYSTEM, MigrateSystemAppsSnapshotTask.class), in testDeviceOwnerSeparate() 150 verify(mCrossProfileIntentFiltersSetter).resetFilters(UserHandle.USER_SYSTEM); in testDeviceOwnerSeparate() 168 Pair.create(UserHandle.USER_SYSTEM, MigrateSystemAppsSnapshotTask.class), in testManagedProfileWithoutMissingSystemIme() [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | Utils.java | 66 import android.os.UserHandle; 390 public static UserHandle getManagedProfile(UserManager userManager) { in getManagedProfile() 391 List<UserHandle> userProfiles = userManager.getUserProfiles(); in getManagedProfile() 392 for (UserHandle profile : userProfiles) { in getManagedProfile() 408 public static UserHandle getManagedProfileWithDisabled(UserManager userManager) { in getManagedProfileWithDisabled() 414 final int myUserId = UserHandle.myUserId(); in getManagedProfileWithDisabled() 439 return UserHandle.USER_NULL; in getManagedProfileId() 457 public static UserHandle getSecureTargetUser(IBinder activityToken, in getSecureTargetUser() 459 UserHandle currentUser = new UserHandle(UserHandle.myUserId()); in getSecureTargetUser() 465 UserHandle launchedFromUser = new UserHandle(UserHandle.getUserId( in getSecureTargetUser() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | Utils.java | 66 import android.os.UserHandle; 395 public static UserHandle getManagedProfile(UserManager userManager) { in getManagedProfile() 396 List<UserHandle> userProfiles = userManager.getUserProfiles(); in getManagedProfile() 397 for (UserHandle profile : userProfiles) { in getManagedProfile() 413 public static UserHandle getManagedProfileWithDisabled(UserManager userManager) { in getManagedProfileWithDisabled() 419 final int myUserId = UserHandle.myUserId(); in getManagedProfileWithDisabled() 444 return UserHandle.USER_NULL; in getManagedProfileId() 462 public static UserHandle getSecureTargetUser(IBinder activityToken, in getSecureTargetUser() 464 UserHandle currentUser = new UserHandle(UserHandle.myUserId()); in getSecureTargetUser() 470 UserHandle launchedFromUser = new UserHandle(UserHandle.getUserId( in getSecureTargetUser() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetStateMachineTest.java | 35 import android.os.UserHandle; 174 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_DisconnectedToConnecting_Connect() 191 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_DisconnectedToConnecting_StackConnected() 208 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_DisconnectedToConnecting_StackConnecting() 230 any(Intent.class), any(UserHandle.class), anyString()); in testStateTransition_ConnectingToDisconnected_StackDisconnected() 242 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_ConnectingToDisconnected_StackDisconnected() 260 eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_ConnectingToDisconnected_Timeout() 281 any(Intent.class), any(UserHandle.class), anyString()); in testStateTransition_ConnectingToConnected_StackSlcConnected() 292 any(Intent.class), any(UserHandle.class), anyString()); in testStateTransition_ConnectingToConnected_StackSlcConnected() 303 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_ConnectingToConnected_StackSlcConnected() [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/ |
D | UtilsTest.java | 23 import android.os.UserHandle; 58 UserHandle[] userHandles = new UserHandle[] { in testGetManagedProfile() 59 new UserHandle(TEST_PRIMARY_USER_ID), in testGetManagedProfile() 60 new UserHandle(TEST_MANAGED_PROFILE_ID) in testGetManagedProfile() 63 .thenReturn(new ArrayList<UserHandle>(Arrays.asList(userHandles))); in testGetManagedProfile() 70 UserHandle[] userHandles = new UserHandle[] { in testGetManagedProfile_notPresent() 71 new UserHandle(TEST_PRIMARY_USER_ID) in testGetManagedProfile_notPresent() 74 .thenReturn(new ArrayList<UserHandle>(Arrays.asList(userHandles))); in testGetManagedProfile_notPresent()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | CallLogManagerTest.java | 48 import android.os.UserHandle; 132 UserHandle.of(CURRENT_USER_ID) in setUp() 138 UserHandle.of(OTHER_USER_ID) in setUp() 144 UserHandle.of(MANAGED_USER_ID) in setUp() 150 UserHandle.of(CURRENT_USER_ID) in setUp() 166 when(userManager.isUserRunning(any(UserHandle.class))).thenReturn(true); in setUp() 167 when(userManager.isUserUnlocked(any(UserHandle.class))).thenReturn(true); in setUp() 168 when(userManager.hasUserRestriction(any(String.class), any(UserHandle.class))) in setUp() 197 UserHandle.of(CURRENT_USER_ID) in testDontLogCancelledCall() 221 UserHandle.of(CURRENT_USER_ID) in testDontLogChoosingAccountCall() [all …]
|
D | TelecomServiceImplTest.java | 37 import android.os.UserHandle; 175 private static final UserHandle USER_HANDLE_16 = new UserHandle(16); 176 private static final UserHandle USER_HANDLE_17 = new UserHandle(17); 199 doNothing().when(mContext).sendBroadcastAsUser(any(Intent.class), any(UserHandle.class), in setUp() 213 public UserCallIntentProcessor create(Context context, UserHandle userHandle) { in setUp() 245 .getOutgoingPhoneAccountForScheme(eq("tel"), any(UserHandle.class))) in testGetDefaultOutgoingPhoneAccount() 248 .getOutgoingPhoneAccountForScheme(eq("sip"), any(UserHandle.class))) in testGetDefaultOutgoingPhoneAccount() 268 .getOutgoingPhoneAccountForScheme(eq("tel"), any(UserHandle.class))) in testGetDefaultOutgoingPhoneAccountFailure() 285 when(mFakePhoneAccountRegistrar.getUserSelectedOutgoingPhoneAccount(any(UserHandle.class))) in testGetUserSelectedOutgoingPhoneAccount() 301 .setUserSelectedOutgoingPhoneAccount(eq(TEL_PA_HANDLE_16), any(UserHandle.class)); in testSetUserSelectedOutgoingPhoneAccount() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/defaultapps/ |
D | DefaultAutofillPickerTest.java | 36 import android.os.UserHandle; 112 mPicker, "mUserId", MAIN_PROFILE_UID * UserHandle.PER_USER_RANGE); in setAndGetDefaultAppKey_shouldUpdateDefaultAutoFill() 115 mPicker, "mUserId", MANAGED_PROFILE_UID * UserHandle.PER_USER_RANGE); in setAndGetDefaultAppKey_shouldUpdateDefaultAutoFill() 119 mPicker, "mUserId", MAIN_PROFILE_UID * UserHandle.PER_USER_RANGE); in setAndGetDefaultAppKey_shouldUpdateDefaultAutoFill() 122 mPicker, "mUserId", MANAGED_PROFILE_UID * UserHandle.PER_USER_RANGE); in setAndGetDefaultAppKey_shouldUpdateDefaultAutoFill() 139 ShadowProcess.setUid(MANAGED_PROFILE_UID * UserHandle.PER_USER_RANGE); in mUserId_shouldDeriveUidFromManagedCaller() 151 ShadowProcess.setUid(MAIN_PROFILE_UID * UserHandle.PER_USER_RANGE); in mUserId_shouldDeriveUidFromMainCaller() 163 ShadowProcess.setUid(MAIN_PROFILE_UID * UserHandle.PER_USER_RANGE); in mUserId_shouldDeriveUidFromManagedClick() 175 ShadowProcess.setUid(MAIN_PROFILE_UID * UserHandle.PER_USER_RANGE); in mUserId_shouldDeriveUidFromMainClick() 184 UserHandle mainUserHandle = new UserHandle(MAIN_PROFILE_UID); in setupUserManager() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/ |
D | LocationServicePreferenceControllerTest.java | 31 import android.os.UserHandle; 127 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() 156 UserHandle.of(fakeWorkProfileId), in workProfileDisallowShareLocationOn_getParentUserLocationServicesOnly() 163 any(Context.class), eq(UserHandle.myUserId())); in workProfileDisallowShareLocationOn_getParentUserLocationServicesOnly() 170 new int[]{UserHandle.myUserId(), fakeWorkProfileId}); in workProfileDisallowShareLocationOff_getAllUserLocationServices() 177 UserHandle.of(fakeWorkProfileId), in workProfileDisallowShareLocationOff_getAllUserLocationServices() 183 any(Context.class), eq(UserHandle.USER_CURRENT)); in workProfileDisallowShareLocationOff_getAllUserLocationServices() 201 map.put(UserHandle.myUserId(), preferences); in withUserRestriction_shouldDisableLocationAccuracy() [all …]
|
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/ |
D | RoleBehavior.java | 22 import android.os.UserHandle; 46 default boolean isAvailableAsUser(@NonNull Role role, @NonNull UserHandle user, in isAvailableAsUser() 70 default boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser() 79 default Intent getManageIntentAsUser(@NonNull Role role, @NonNull UserHandle user, in getManageIntentAsUser() 88 @NonNull TwoTargetPreference preference, @NonNull UserHandle user, in preparePreferenceAsUser() 95 @NonNull ApplicationInfo applicationInfo, @NonNull UserHandle user, in isApplicationVisibleAsUser() 106 @NonNull UserHandle user, @NonNull Context context) {} in prepareApplicationPreferenceAsUser() 121 default List<String> getQualifyingPackagesAsUser(@NonNull Role role, @NonNull UserHandle user, in getQualifyingPackagesAsUser() 150 @NonNull UserHandle user, @NonNull Context context) {} in onHolderSelectedAsUser() 155 default void onHolderChangedAsUser(@NonNull Role role, @NonNull UserHandle user, in onHolderChangedAsUser()
|
/packages/services/Telecomm/src/com/android/server/telecom/ui/ |
D | MissedCallNotifierImpl.java | 55 import android.os.UserHandle; 133 private UserHandle mCurrentUserHandle; 136 private ConcurrentMap<UserHandle, AtomicInteger> mMissedCallCounts; 138 private List<UserHandle> mUsersToLoadAfterBootComplete = new ArrayList<>(); 162 public void clearMissedCalls(UserHandle userHandle) { in clearMissedCalls() 171 private void markMissedCallsAsRead(final UserHandle userHandle) { in markMissedCallsAsRead() 207 private Intent getShowMissedCallIntentForDefaultDialer(UserHandle userHandle) { in getShowMissedCallIntentForDefaultDialer() 217 private boolean shouldManageNotificationThroughDefaultDialer(UserHandle userHandle) { in shouldManageNotificationThroughDefaultDialer() 228 private void sendNotificationThroughDefaultDialer(CallInfo callInfo, UserHandle userHandle) { in sendNotificationThroughDefaultDialer() 264 UserHandle userHandle; in showMissedCallNotification() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | WorkSoundPreferenceControllerTest.java | 30 import android.os.UserHandle; 96 .thenReturn(UserHandle.myUserId()); in isAvailable_managedProfileAndNotSingleVolume_shouldReturnTrue() 106 .thenReturn(UserHandle.USER_NULL); in isAvailable_noManagedProfile_shouldReturnFalse() 116 .thenReturn(UserHandle.myUserId()); in isAvailable_singleVolume_shouldReturnFalse() 130 .thenReturn(UserHandle.USER_NULL); in onManagedProfileAdded_shouldDisplayPreferenceCategory() 139 .thenReturn(UserHandle.myUserId()); in onManagedProfileAdded_shouldDisplayPreferenceCategory() 140 mController.onManagedProfileAdded(UserHandle.myUserId()); in onManagedProfileAdded_shouldDisplayPreferenceCategory() 152 .thenReturn(UserHandle.myUserId()); in onManagedProfileRemoved_shouldHidePreferenceCategory() 163 .thenReturn(UserHandle.USER_NULL); in onManagedProfileRemoved_shouldHidePreferenceCategory() 164 mController.onManagedProfileRemoved(UserHandle.myUserId()); in onManagedProfileRemoved_shouldHidePreferenceCategory() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/ |
D | Utils.java | 36 import android.os.UserHandle; 278 static int sSystemUiUid = UserHandle.USER_NULL; 283 static int sForegroundUserId = UserHandle.USER_NULL; 335 int callingUser = UserHandle.getCallingUserId(); in checkCaller() 338 || (UserHandle.getAppId(sSystemUiUid) == UserHandle.getAppId(callingUid)) in checkCaller() 339 || (UserHandle.getAppId(Process.SYSTEM_UID) == UserHandle.getAppId(callingUid)); in checkCaller() 346 int callingUser = UserHandle.getCallingUserId(); in checkCallerAllowManagedProfiles() 354 int parentUser = (ui != null) ? ui.id : UserHandle.USER_NULL; in checkCallerAllowManagedProfiles() 358 || (UserHandle.getAppId(sSystemUiUid) == UserHandle.getAppId(callingUid)) in checkCallerAllowManagedProfiles() 359 || (UserHandle.getAppId(Process.SYSTEM_UID) == UserHandle.getAppId(callingUid)); in checkCallerAllowManagedProfiles() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherModel.java | 29 import android.os.UserHandle; 137 public void updateSessionDisplayInfo(final String packageName, final UserHandle user) { in updateSessionDisplayInfo() 171 public void onPackageChanged(String packageName, UserHandle user) { in onPackageChanged() 176 public void onSessionFailure(String packageName, UserHandle user) { in onSessionFailure() 201 public void onPackageRemoved(String packageName, UserHandle user) { in onPackageRemoved() 205 public void onPackagesRemoved(UserHandle user, String... packages) { in onPackagesRemoved() 212 public void onPackageAdded(String packageName, UserHandle user) { in onPackageAdded() 218 public void onPackagesAvailable(String[] packageNames, UserHandle user, in onPackagesAvailable() 225 public void onPackagesUnavailable(String[] packageNames, UserHandle user, in onPackagesUnavailable() 234 public void onPackagesSuspended(String[] packageNames, UserHandle user) { in onPackagesSuspended() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | RecentAppStatsMixinTest.java | 38 import android.os.UserHandle; 100 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() [all …]
|
/packages/apps/Launcher3/src_shortcuts_overrides/com/android/launcher3/shortcuts/ |
D | DeepShortcutManager.java | 27 import android.os.UserHandle; 67 List<String> shortcutIds, UserHandle user) { in queryForFullDetails() 76 UserHandle user) { in queryForShortcutsContainer() 89 UserHandle user = key.user; in unpinShortcut() 106 UserHandle user = key.user; in pinShortcut() 117 Bundle startActivityOptions, UserHandle user) { in startShortcut() 140 public QueryResult queryForPinnedShortcuts(String packageName, UserHandle user) { in queryForPinnedShortcuts() 145 UserHandle user) { in queryForPinnedShortcuts() 149 public QueryResult queryForAllShortcuts(UserHandle user) { in queryForAllShortcuts() 168 List<String> shortcutIds, UserHandle user) { in query()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | PhoneAccountRegistrar.java | 37 import android.os.UserHandle; 149 private UserHandle mCurrentUserHandle; 205 UserHandle userHandle) { in getOutgoingPhoneAccountForScheme() 241 public PhoneAccountHandle getUserSelectedOutgoingPhoneAccount(UserHandle userHandle) { in getUserSelectedOutgoingPhoneAccount() 264 private DefaultPhoneAccountHandle getUserSelectedDefaultPhoneAccount(UserHandle userHandle) { in getUserSelectedDefaultPhoneAccount() 281 UserHandle userHandle, PhoneAccountHandle excludePhoneAccountHandle) { in getPhoneAccountByGroupId() 305 UserHandle userHandle) { in setUserSelectedOutgoingPhoneAccount() 402 public PhoneAccountHandle getSimCallManager(UserHandle userHandle) { in getSimCallManager() 411 public PhoneAccountHandle getSimCallManager(int subId, UserHandle userHandle) { in getSimCallManager() 494 UserHandle userHandle = call.getInitiatingUser(); in getSimCallManagerFromCall() [all …]
|