Home
last modified time | relevance | path

Searched refs:UserHandle (Results 1 – 25 of 2080) sorted by relevance

12345678910>>...84

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DSnoozeHelperTest.java45 import android.os.UserHandle;
163 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM); in testReadValidSnoozedFromCorrectly_timeDeadline()
186 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM); in testReadExpiredSnoozedNotification()
201 int systemUser = UserHandle.SYSTEM.getIdentifier(); in testReadExpiredSnoozedNotification()
211 "pkg", 1, "one", UserHandle.SYSTEM); in testReadNoneSnoozedNotification()
217 UserHandle.SYSTEM.getIdentifier(), "not_my_package", in testReadNoneSnoozedNotification()
219 UserHandle.SYSTEM).getKey()).longValue()); in testReadNoneSnoozedNotification()
249 NotificationRecord r = getNotificationRecord("pkg", 1, longTag, UserHandle.SYSTEM); in testLongTagPersistedNotification()
279 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM); in testSnoozeForTime()
287 UserHandle.USER_SYSTEM, r.getSbn().getPackageName(), r.getKey())); in testSnoozeForTime()
[all …]
DGlobalSortKeyComparatorTest.java23 import android.os.UserHandle;
53 new UserHandle(UserHandle.myUserId()), in testComparator()
60 new UserHandle(UserHandle.myUserId()), in testComparator()
67 new UserHandle(UserHandle.myUserId()), in testComparator()
92 new UserHandle(UserHandle.myUserId()), in testNoCrash_leftNull()
98 new UserHandle(UserHandle.myUserId()), in testNoCrash_leftNull()
122 new UserHandle(UserHandle.myUserId()), in testNoCrash_rightNull()
129 new UserHandle(UserHandle.myUserId()), in testNoCrash_rightNull()
DArchiveTest.java18 import static android.os.UserHandle.USER_ALL;
19 import static android.os.UserHandle.USER_CURRENT;
20 import static android.os.UserHandle.USER_NULL;
21 import static android.os.UserHandle.USER_SYSTEM;
32 import android.os.UserHandle;
81 private StatusBarNotification getNotification(String pkg, int id, UserHandle user) { in getNotification()
95 UserHandle.of(i % 2 ==0 ? USER_SYSTEM : USER_CURRENT)); in testRecordAndRead()
109 mArchive.record(getNotification("pkg", 1, UserHandle.of(USER_SYSTEM)), REASON_CANCEL); in testCrossUser()
110 mArchive.record(getNotification("pkg", 2, UserHandle.of(USER_CURRENT)), REASON_CANCEL); in testCrossUser()
111 mArchive.record(getNotification("pkg", 3, UserHandle.of(USER_ALL)), REASON_CANCEL); in testCrossUser()
[all …]
/frameworks/base/core/java/android/os/
DUserHandle.java40 public final class UserHandle implements Parcelable { class
56 public static final @NonNull UserHandle ALL = new UserHandle(USER_ALL);
65 public static final @NonNull UserHandle CURRENT = new UserHandle(USER_CURRENT);
77 public static final @NonNull UserHandle CURRENT_OR_SELF = new UserHandle(USER_CURRENT_OR_SELF);
84 private static final @NonNull UserHandle NULL = new UserHandle(USER_NULL);
102 public static final @NonNull UserHandle OWNER = new UserHandle(USER_OWNER);
115 public static final @NonNull UserHandle SYSTEM = new UserHandle(USER_SYSTEM);
130 Integer.MAX_VALUE / UserHandle.PER_USER_RANGE - 1;
147 private static final UserHandle[] CACHED_USER_HANDLES = new UserHandle[NUM_CACHED_USERS];
157 public static final SparseArray<UserHandle> sExtraUserHandleCache = new SparseArray<>(0);
[all …]
/frameworks/base/packages/Shell/tests/src/com/android/shell/
DBugreportProgressServiceTest.java29 import android.os.UserHandle;
107 final Pair<UserHandle, Account> actual = findSendToAccount(mTestContext, preferredDomain); in checkFindSendToAccount()
108 assertEquals(UserHandle.of(expectedUserId), actual.first); in checkFindSendToAccount()
115 list(UserHandle.of(UserHandle.USER_SYSTEM))); in findSendToAccount_noWorkProfile()
118 when(mTestContext.accountManager.getAccountsAsUser(eq(UserHandle.USER_SYSTEM))).thenReturn( in findSendToAccount_noWorkProfile()
127 when(mTestContext.accountManager.getAccountsAsUser(eq(UserHandle.USER_SYSTEM))).thenReturn( in findSendToAccount_noWorkProfile()
138 when(mTestContext.accountManager.getAccountsAsUser(eq(UserHandle.USER_SYSTEM))).thenReturn( in findSendToAccount_noWorkProfile()
149 when(mTestContext.accountManager.getAccountsAsUser(eq(UserHandle.USER_SYSTEM))).thenReturn( in findSendToAccount_noWorkProfile()
160 when(mTestContext.accountManager.getAccountsAsUser(eq(UserHandle.USER_SYSTEM))).thenReturn( in findSendToAccount_noWorkProfile()
178 list(UserHandle.of(UserHandle.USER_SYSTEM), UserHandle.of(10))); in findSendToAccount_withWorkProfile_noAccounts()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DResolverWrapperActivity.java31 import android.os.UserHandle;
55 boolean filterLastUsed, UserHandle userHandle) { in createResolverListAdapter()
104 public void safelyStartActivityInternal(TargetInfo cti, UserHandle user, in safelyStartActivityInternal()
114 protected ResolverListController createListController(UserHandle userHandle) { in createListController()
115 if (userHandle == UserHandle.SYSTEM) { in createListController()
116 when(sOverrides.resolverListController.getUserHandle()).thenReturn(UserHandle.SYSTEM); in createListController()
135 protected UserHandle getCurrentUserHandle() { in getCurrentUserHandle()
140 protected UserHandle getPersonalProfileUserHandle() { in getPersonalProfileUserHandle()
145 protected UserHandle getWorkProfileUserHandle() { in getWorkProfileUserHandle()
150 protected UserHandle getCloneProfileUserHandle() { in getCloneProfileUserHandle()
[all …]
DResolverListControllerTest.java44 import android.os.UserHandle;
79 private static final UserHandle PERSONAL_USER_HANDLE = InstrumentationRegistry
126 refererPackage, UserHandle.USER_CURRENT, /* userHandle */ UserHandle.SYSTEM, in reportChooserSelection()
127 UserHandle.SYSTEM); in reportChooserSelection()
130 mController.updateChooserCounts(packageName, UserHandle.SYSTEM, action); in reportChooserSelection()
142 refererPackage, UserHandle.USER_CURRENT, /* userHandle */ UserHandle.SYSTEM, in topKEqualsToSort()
143 UserHandle.SYSTEM); in topKEqualsToSort()
166 infos.add(ResolverDataProvider.createResolveInfo(0, UserHandle.USER_CURRENT, in getResolversForIntent_usesResultsFromPackageManager()
169 any(UserHandle.class))).thenReturn(infos); in getResolversForIntent_usesResultsFromPackageManager()
171 createSendImageIntent("test"), null, UserHandle.USER_CURRENT, in getResolversForIntent_usesResultsFromPackageManager()
[all …]
DChooserWrapperActivity.java34 import android.os.UserHandle;
67 UserHandle userHandle) { in createChooserListAdapter()
147 public void safelyStartActivityInternal(TargetInfo cti, UserHandle user, in safelyStartActivityInternal()
157 protected ResolverListController createListController(UserHandle userHandle) { in createListController()
158 if (userHandle == UserHandle.SYSTEM) { in createListController()
159 when(sOverrides.resolverListController.getUserHandle()).thenReturn(UserHandle.SYSTEM); in createListController()
235 protected UserHandle getWorkProfileUserHandle() { in getWorkProfileUserHandle()
240 public UserHandle getCurrentUserHandle() { in getCurrentUserHandle()
245 protected UserHandle getTabOwnerUserHandleForLaunch() { in getTabOwnerUserHandleForLaunch()
253 public Context createContextAsUser(UserHandle user, int flags) { in createContextAsUser()
[all …]
/frameworks/base/core/java/android/content/pm/
DILauncherApps.aidl40 import android.os.UserHandle;
55 String callingPackage, String packageName, in UserHandle user); in getLauncherActivities()
57 String callingPackage, in ComponentName component, in UserHandle user); in resolveLauncherActivityInternal()
60 in Rect sourceBounds, in Bundle opts, in UserHandle user); in startSessionDetailsActivityAsUser()
63 in Bundle opts, in UserHandle user); in startActivityAsUser()
65 in UserHandle user); in getActivityLaunchIntent()
66 LauncherUserInfo getLauncherUserInfo(in UserHandle user); in getLauncherUserInfo()
67 List<String> getPreInstalledSystemPackages(in UserHandle user); in getPreInstalledSystemPackages()
69 in UserHandle user); in getAppMarketActivityIntent()
73 in Bundle opts, in UserHandle user); in showAppDetailsAsUser()
[all …]
DIOnAppsChangedListener.aidl21 import android.os.UserHandle;
27 void onPackageRemoved(in UserHandle user, String packageName); in onPackageRemoved()
28 void onPackageAdded(in UserHandle user, String packageName); in onPackageAdded()
29 void onPackageChanged(in UserHandle user, String packageName); in onPackageChanged()
30 void onPackagesAvailable(in UserHandle user, in String[] packageNames, boolean replacing); in onPackagesAvailable()
31 void onPackagesUnavailable(in UserHandle user, in String[] packageNames, boolean replacing); in onPackagesUnavailable()
32 void onPackagesSuspended(in UserHandle user, in String[] packageNames, in onPackagesSuspended()
34 void onPackagesUnsuspended(in UserHandle user, in String[] packageNames); in onPackagesUnsuspended()
35 void onShortcutChanged(in UserHandle user, String packageName, in ParceledListSlice shortcuts); in onShortcutChanged()
36 void onPackageLoadingProgressChanged(in UserHandle user, String packageName, float progress); in onPackageLoadingProgressChanged()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/
DSystemBackupAgentTest.java28 import android.os.UserHandle;
77 UserHandle userHandle = new UserHandle(UserHandle.USER_SYSTEM); in onCreate_systemUser_addsAllHelpers()
101 UserHandle userHandle = new UserHandle(UserHandle.USER_SYSTEM); in onCreate_systemUser_slicesDisabled_addsAllNonSlicesHelpers()
126 UserHandle userHandle = new UserHandle(NON_SYSTEM_USER_ID); in onCreate_profileUser_addsProfileEligibleHelpers()
144 UserHandle userHandle = new UserHandle(NON_SYSTEM_USER_ID); in onCreate_nonSystemUser_addsNonSystemEligibleHelpers()
166 UserHandle userHandle = new UserHandle(UserHandle.USER_SYSTEM); in onAddHelperIfEligibleForUser_flagIsOff_helpersHaveNoLogger()
179 UserHandle userHandle = new UserHandle(UserHandle.USER_SYSTEM); in onAddHelperIfEligibleForUser_flagIsOn_helpersHaveLogger()
203 public Context createContextAsUser(UserHandle user, @CreatePackageOptions int flags) { in createContextAsUser()
DBackupManagerServiceTest.java52 import android.os.UserHandle;
88 private static final int NON_SYSTEM_USER = UserHandle.USER_SYSTEM + 1;
120 eq(UserHandle.USER_SYSTEM), any(), any(), any())); in setUp()
126 when(mUserManagerMock.getUserInfo(UserHandle.USER_SYSTEM)).thenReturn(mUserInfoMock); in setUp()
131 BackupManagerServiceTestable.sCallingUserId = UserHandle.USER_SYSTEM; in setUp()
168 service.startServiceForUser(UserHandle.USER_SYSTEM); in startServiceForUser_backupDisabledGlobally_doesNotStartUserService()
170 assertNull(service.getUserService(UserHandle.USER_SYSTEM)); in startServiceForUser_backupDisabledGlobally_doesNotStartUserService()
176 mService.setBackupServiceActive(UserHandle.USER_SYSTEM, false); in startServiceForUser_backupNotActiveForUser_doesNotStartUserService()
178 mService.startServiceForUser(UserHandle.USER_SYSTEM); in startServiceForUser_backupNotActiveForUser_doesNotStartUserService()
180 assertNull(mService.getUserService(UserHandle.USER_SYSTEM)); in startServiceForUser_backupNotActiveForUser_doesNotStartUserService()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DUserHandleTest.java19 import static android.os.UserHandle.ERR_GID;
20 import static android.os.UserHandle.getAppId;
21 import static android.os.UserHandle.getCacheAppGid;
22 import static android.os.UserHandle.getSharedAppGid;
23 import static android.os.UserHandle.getUid;
24 import static android.os.UserHandle.getUserId;
126 assertEquals(0, UserHandle.sExtraUserHandleCache.size()); in testExtraCache()
129 assertEquals(10, UserHandle.of(10).getIdentifier()); in testExtraCache()
131 assertEquals(0, UserHandle.sExtraUserHandleCache.size()); in testExtraCache()
134 assertEquals(20, UserHandle.of(20).getIdentifier()); in testExtraCache()
[all …]
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/common/data/repository/
DFakePackageChangeRepository.kt19 import android.os.UserHandle
33 override fun packageChanged(user: UserHandle) = in packageChanged()
35 user == UserHandle.ALL || user == UserHandle.getUserHandleForUid(it.packageUid) in packageChanged()
51 suspend fun notifyInstall(packageName: String, user: UserHandle) { in notifyInstall()
56 UserHandle.getUid( in notifyInstall()
65 suspend fun notifyUpdateStarted(packageName: String, user: UserHandle) { in notifyUpdateStarted()
70 UserHandle.getUid( in notifyUpdateStarted()
79 suspend fun notifyUpdateFinished(packageName: String, user: UserHandle) { in notifyUpdateFinished()
84 UserHandle.getUid( in notifyUpdateFinished()
93 suspend fun notifyUninstall(packageName: String, user: UserHandle) { in notifyUninstall()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/uri/
DUriGrantsMockContext.java34 import android.os.UserHandle;
75 static final int UID_PRIMARY_SOCIAL = UserHandle.getUid(USER_PRIMARY, UID_SOCIAL);
76 static final int UID_PRIMARY_CAMERA = UserHandle.getUid(USER_PRIMARY, UID_CAMERA);
77 static final int UID_PRIMARY_PRIVATE = UserHandle.getUid(USER_PRIMARY, UID_PRIVATE);
78 static final int UID_PRIMARY_PUBLIC = UserHandle.getUid(USER_PRIMARY, UID_PUBLIC);
79 static final int UID_PRIMARY_FORCE = UserHandle.getUid(USER_PRIMARY, UID_FORCE);
80 static final int UID_PRIMARY_COMPLEX = UserHandle.getUid(USER_PRIMARY, UID_COMPLEX);
82 static final int UID_SECONDARY_SOCIAL = UserHandle.getUid(USER_SECONDARY, UID_SOCIAL);
83 static final int UID_SECONDARY_CAMERA = UserHandle.getUid(USER_SECONDARY, UID_CAMERA);
84 static final int UID_SECONDARY_PRIVATE = UserHandle.getUid(USER_SECONDARY, UID_PRIVATE);
[all …]
/frameworks/base/core/tests/coretests/src/android/content/pm/
DAppsQueryHelperTests.java20 import android.os.UserHandle;
40 List<String> apps = mAppsQueryHelper.queryApps(0, true, UserHandle.SYSTEM); in testQueryAppsSystemAppsOnly()
43 apps = mAppsQueryHelper.queryApps(0, false, UserHandle.SYSTEM); in testQueryAppsSystemAppsOnly()
49 true, UserHandle.SYSTEM); in testQueryAppsNonLaunchable()
53 false, UserHandle.SYSTEM); in testQueryAppsNonLaunchable()
59 AppsQueryHelper.GET_APPS_WITH_INTERACT_ACROSS_USERS_PERM, true, UserHandle.SYSTEM); in testQueryAppsInteractAcrossUser()
63 AppsQueryHelper.GET_APPS_WITH_INTERACT_ACROSS_USERS_PERM, false, UserHandle.SYSTEM); in testQueryAppsInteractAcrossUser()
71 true, UserHandle.SYSTEM); in testQueryApps()
77 false, UserHandle.SYSTEM); in testQueryApps()
84 true, UserHandle.of(UserHandle.myUserId())); in testQueryAppsImes()
[all …]
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DUserPowerCalculatorTest.java27 import android.os.UserHandle;
66 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER1, APP_UID1)) in testAllUsers()
68 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER1, APP_UID1)) in testAllUsers()
73 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER2, APP_UID2)) in testAllUsers()
75 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER2, APP_UID2)) in testAllUsers()
85 mStatsRule.apply(new BatteryUsageStatsQuery.Builder().addUser(UserHandle.of(USER1)).build(), in testSpecificUser()
90 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER1, APP_UID1)) in testSpecificUser()
92 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER1, APP_UID1)) in testSpecificUser()
94 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER1, APP_UID2))).isNull(); in testSpecificUser()
95 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER1, APP_UID3)) in testSpecificUser()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/devicepolicy/
DScreenCaptureDevicePolicyResolver.kt19 import android.os.UserHandle
33 @PersonalProfile private val personalProfileUserHandle: UserHandle,
34 @WorkProfile private val workProfileUserHandle: UserHandle?
42 targetAppUserHandle: UserHandle, in isScreenCaptureAllowed()
43 hostAppUserHandle: UserHandle, in isScreenCaptureAllowed()
82 fun isScreenCaptureCompletelyDisabled(hostAppUserHandle: UserHandle): Boolean { in isScreenCaptureCompletelyDisabled()
124 private fun UserHandle?.isWorkProfile(): Boolean = this == workProfileUserHandle method
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/custom/data/repository/
DCustomTileRepository.kt22 import android.os.UserHandle
57 suspend fun restoreForTheUserIfNeeded(user: UserHandle, isPersistable: Boolean) in restoreForTheUserIfNeeded()
60 fun getTiles(user: UserHandle): Flow<Tile> in restoreForTheUserIfNeeded()
68 fun getTile(user: UserHandle): Tile? in restoreForTheUserIfNeeded()
82 user: UserHandle, in restoreForTheUserIfNeeded()
93 user: UserHandle, in restoreForTheUserIfNeeded()
113 override suspend fun restoreForTheUserIfNeeded(user: UserHandle, isPersistable: Boolean) { in restoreForTheUserIfNeeded()
127 override fun getTiles(user: UserHandle): Flow<Tile> = in restoreForTheUserIfNeeded()
130 override fun getTile(user: UserHandle): Tile? { in restoreForTheUserIfNeeded()
141 user: UserHandle, in restoreForTheUserIfNeeded()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerServiceCreateProfileTest.java28 import android.os.UserHandle;
75 UserHandle.USER_SYSTEM, users.get(0).id); in setup()
92 mUserManagerService.getProfiles(UserHandle.USER_SYSTEM, /*excludeDying*/ false); in testGetProfiles()
95 UserHandle.USER_SYSTEM, users.get(0).id); in testGetProfiles()
117 int[] users = mUserManagerService.getProfileIds(UserHandle.USER_SYSTEM, userType1, in testGetProfileIds_specifyType()
138 mUserManagerService.getFreeProfileBadgeLU(UserHandle.USER_SYSTEM, in testProfileBadge()
151 mUserManagerService.getFreeProfileBadgeLU(UserHandle.USER_SYSTEM, in testProfileBadge()
159 mUserManagerService.getFreeProfileBadgeLU(UserHandle.USER_SYSTEM, in testProfileBadge()
174 int nextBadge = mUserManagerService.getFreeProfileBadgeLU(UserHandle.USER_SYSTEM, in testProfileBadgeUnique()
211 if (!mUserManagerService.canAddMoreManagedProfiles(UserHandle.USER_SYSTEM, in testCanAddMoreManagedProfiles_removeProfile()
[all …]
/frameworks/base/core/java/android/hardware/input/
DInputSettings.java37 import android.os.UserHandle;
227 UserHandle.USER_CURRENT); in getTouchpadPointerSpeed()
248 Settings.System.TOUCHPAD_POINTER_SPEED, speed, UserHandle.USER_CURRENT); in setTouchpadPointerSpeed()
264 Settings.System.TOUCHPAD_NATURAL_SCROLLING, 1, UserHandle.USER_CURRENT) == 1; in useTouchpadNaturalScrolling()
282 UserHandle.USER_CURRENT); in setTouchpadNaturalScrolling()
297 Settings.System.TOUCHPAD_TAP_TO_CLICK, 1, UserHandle.USER_CURRENT) == 1; in useTouchpadTapToClick()
314 UserHandle.USER_CURRENT); in setTouchpadTapToClick()
341 Settings.System.TOUCHPAD_TAP_DRAGGING, 0, UserHandle.USER_CURRENT) == 1; in useTouchpadTapDragging()
361 UserHandle.USER_CURRENT); in setTouchpadTapDragging()
376 Settings.System.TOUCHPAD_RIGHT_CLICK_ZONE, 0, UserHandle.USER_CURRENT) == 1; in useTouchpadRightClickZone()
[all …]
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/
DShadowBinder.java20 import android.os.UserHandle;
35 private static UserHandle sCallingUserHandle;
49 public static void setCallingUserHandle(UserHandle userHandle) { in setCallingUserHandle()
58 public static UserHandle getCallingUserHandle() { in getCallingUserHandle()
62 return UserHandle.of(UserHandle.getUserId(getCallingUid())); in getCallingUserHandle()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/enterprise/
DActionDisabledByAdminControllerTestUtils.java23 import android.os.UserHandle;
35 static final UserHandle ENFORCEMENT_ADMIN_USER = UserHandle.of(ENFORCEMENT_ADMIN_USER_ID);
42 ADMIN_COMPONENT, UserHandle.of(ENFORCEMENT_ADMIN_USER_ID));
44 /* component= */ null, UserHandle.of(ENFORCEMENT_ADMIN_USER_ID));
65 protected void launchShowAdminPolicies(Context context, UserHandle user, in createLearnMoreButtonLauncher()
76 public void showHelpPage(Context context, String url, UserHandle userHandle) { in createLearnMoreButtonLauncher()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmMockContext.java34 import android.os.UserHandle;
64 public static final int CALLER_UID = UserHandle.getUid(CALLER_USER_HANDLE, 20123);
69 public static final int CALLER_MANAGED_PROVISIONING_UID = UserHandle.getUid(CALLER_USER_HANDLE,
93 public static final int ANOTHER_UID = UserHandle.getUid(UserHandle.USER_SYSTEM, 18434);
96 public static final int DELEGATE_CERT_INSTALLER_UID = UserHandle.getUid(UserHandle.USER_SYSTEM,
141 public UserHandle getCallingUserHandle() { in getCallingUserHandle()
142 return new UserHandle(UserHandle.getUserId(getCallingUid())); in getCallingUserHandle()
276 if (UserHandle.isSameApp(binder.getCallingUid(), SYSTEM_UID)) { in enforceCallingOrSelfPermission()
319 public void sendBroadcastAsUserMultiplePermissions(Intent intent, UserHandle user, in sendBroadcastAsUserMultiplePermissions()
366 public void sendBroadcastAsUser(Intent intent, UserHandle user) { in sendBroadcastAsUser()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/accessibility/util/
DShortcutUtilsTest.java39 import android.os.UserHandle;
101 mAccessibilityManagerService, UserHandle.myUserId(), in setUp()
114 ShortcutConstants.UserShortcutType.SOFTWARE, UserHandle.myUserId()) in getShortcutTargets_softwareShortcutNoService_emptyResult()
123 UserHandle.myUserId()) in getShortcutTargets_volumeKeyShortcutNoService_emptyResult()
135 UserHandle.myUserId()) in getShortcutTargets_softwareShortcut1Service_return1Service()
147 UserHandle.myUserId()) in getShortcutTargets_volumeShortcut2Service_return2Service()
160 UserHandle.myUserId()) in getShortcutTargets_tripleTapShortcut_magnificationDisabled_emptyResult()
173 UserHandle.myUserId()) in getShortcutTargets_tripleTapShortcut_magnificationEnabled_returnMagnification()
185 UserHandle.myUserId() in updateAccessibilityServiceStateIfNeeded_alwaysOnServiceOn_noShortcuts_serviceTurnedOff()
199 UserHandle.myUserId() in updateAccessibilityServiceStateIfNeeded_alwaysOnServiceOn_hasShortcut_serviceKeepsOn()
[all …]

12345678910>>...84