/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | SnoozeHelperTest.java | 42 import android.os.UserHandle; 155 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM); in testReadValidSnoozedFromCorrectly_timeDeadline() 178 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM); in testReadExpiredSnoozedNotification() 193 int systemUser = UserHandle.SYSTEM.getIdentifier(); in testReadExpiredSnoozedNotification() 201 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM); in testCleanupContextShouldRemovePersistedRecord() 215 "pkg", 1, "one", UserHandle.SYSTEM); in testReadNoneSnoozedNotification() 221 UserHandle.SYSTEM.getIdentifier(), in testReadNoneSnoozedNotification() 251 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM); in testSnoozeForTime() 259 UserHandle.USER_SYSTEM, r.getSbn().getPackageName(), r.getKey())); in testSnoozeForTime() 264 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM); [all …]
|
D | GlobalSortKeyComparatorTest.java | 23 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()
|
D | GroupHelperTest.java | 31 import android.os.UserHandle; 67 UserHandle user, String groupKey) { in getSbn() 79 UserHandle user) { in getSbn() 87 mGroupHelper.onNotificationPosted(getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM), in testNoGroup_postingUnderLimit() 91 eq(UserHandle.USER_SYSTEM), eq(pkg), anyString()); in testNoGroup_postingUnderLimit() 102 mGroupHelper.onNotificationPosted(getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM), in testNoGroup_multiPackage() 106 getSbn(pkg2, AUTOGROUP_AT_COUNT, "four", UserHandle.SYSTEM), false); in testNoGroup_multiPackage() 108 eq(UserHandle.USER_SYSTEM), eq(pkg), anyString()); in testNoGroup_multiPackage() 118 mGroupHelper.onNotificationPosted(getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM), in testNoGroup_multiUser() 122 getSbn(pkg, AUTOGROUP_AT_COUNT, "four", UserHandle.ALL), false); in testNoGroup_multiUser() [all …]
|
/frameworks/base/core/java/android/os/ |
D | UserHandle.java | 34 public final class UserHandle implements Parcelable { class 50 public static final @NonNull UserHandle ALL = new UserHandle(USER_ALL); 58 public static final @NonNull UserHandle CURRENT = new UserHandle(USER_CURRENT); 70 public static final @NonNull UserHandle CURRENT_OR_SELF = new UserHandle(USER_CURRENT_OR_SELF); 77 private static final @NonNull UserHandle NULL = new UserHandle(USER_NULL); 95 public static final @NonNull UserHandle OWNER = new UserHandle(USER_OWNER); 108 public static final @NonNull UserHandle SYSTEM = new UserHandle(USER_SYSTEM); 128 private static final UserHandle[] CACHED_USER_INFOS = new UserHandle[NUM_CACHED_USERS]; 134 CACHED_USER_INFOS[i] = new UserHandle(MIN_SECONDARY_USER_ID + i); 238 public static UserHandle getUserHandleForUid(int uid) { in getUserHandleForUid() [all …]
|
/frameworks/base/packages/Shell/tests/src/com/android/shell/ |
D | BugreportProgressServiceTest.java | 29 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/services/tests/servicestests/src/com/android/server/backup/ |
D | BackupManagerServiceTest.java | 47 import android.os.UserHandle; 79 private static final int NON_USER_SYSTEM = UserHandle.USER_SYSTEM + 1; 80 private static final int UNSTARTED_NON_USER_SYSTEM = UserHandle.USER_SYSTEM + 2; 107 mUserId = UserHandle.USER_SYSTEM; in setUp() 110 mUserServices.append(UserHandle.USER_SYSTEM, mUserBackupManagerService); in setUp() 113 when(mUserManagerMock.getUserInfo(UserHandle.USER_SYSTEM)).thenReturn(mUserInfoMock); in setUp() 117 BackupManagerServiceTestable.sCallingUserId = UserHandle.USER_SYSTEM; in setUp() 159 assertTrue(mService.isBackupServiceActive(UserHandle.USER_SYSTEM)); in testIsBackupServiceActive_whenBackupsNotDisabledAndSuppressFileDoesNotExist() 183 service.onUnlockUser(UserHandle.USER_SYSTEM); in testOnUnlockUser_forSystemUserWhenBackupsDisabled_doesNotStartUser() 187 assertNull(service.getUserService(UserHandle.USER_SYSTEM)); in testOnUnlockUser_forSystemUserWhenBackupsDisabled_doesNotStartUser() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | IOnAppsChangedListener.aidl | 21 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()
|
D | ILauncherApps.aidl | 38 import android.os.UserHandle; 50 String callingPackage, String packageName, in UserHandle user); in getLauncherActivities() 52 String callingPackage, in ComponentName component, in UserHandle user); in resolveLauncherActivityInternal() 55 in Rect sourceBounds, in Bundle opts, in UserHandle user); in startSessionDetailsActivityAsUser() 58 in Bundle opts, in UserHandle user); in startActivityAsUser() 60 in UserHandle user); in getActivityLaunchIntent() 63 in Bundle opts, in UserHandle user); in showAppDetailsAsUser() 64 boolean isPackageEnabled(String callingPackage, String packageName, in UserHandle user); in isPackageEnabled() 65 Bundle getSuspendedPackageLauncherExtras(String packageName, in UserHandle user); in getSuspendedPackageLauncherExtras() 67 String callingPackage, in ComponentName component, in UserHandle user); in isActivityEnabled() [all …]
|
D | LauncherApps.java | 65 import android.os.UserHandle; 211 abstract public void onPackageRemoved(String packageName, UserHandle user); in onPackageRemoved() 222 abstract public void onPackageAdded(String packageName, UserHandle user); in onPackageAdded() 232 abstract public void onPackageChanged(String packageName, UserHandle user); in onPackageChanged() 245 abstract public void onPackagesAvailable(String[] packageNames, UserHandle user, in onPackagesAvailable() 259 abstract public void onPackagesUnavailable(String[] packageNames, UserHandle user, in onPackagesUnavailable() 275 public void onPackagesSuspended(String[] packageNames, UserHandle user) { in onPackagesSuspended() 298 public void onPackagesSuspended(String[] packageNames, UserHandle user, in onPackagesSuspended() 312 public void onPackagesUnsuspended(String[] packageNames, UserHandle user) { in onPackagesUnsuspended() 331 @NonNull List<ShortcutInfo> shortcuts, @NonNull UserHandle user) { in onShortcutsChanged() [all …]
|
/frameworks/base/apex/appsearch/framework/java/android/app/appsearch/aidl/ |
D | IAppSearchManager.aidl | 19 import android.os.UserHandle; 54 in UserHandle userHandle, in setSchema() 70 in UserHandle userHandle, in getSchema() 85 in UserHandle userHandle, in getNamespaces() 107 in UserHandle userHandle, in putDocuments() 135 in UserHandle userHandle, in getDocuments() 156 in UserHandle userHandle, in query() 176 in UserHandle userHandle, in globalQuery() 193 in UserHandle userHandle, in getNextPage() 207 in UserHandle userHandle); in invalidateNextPageToken() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/uri/ |
D | UriGrantsMockContext.java | 38 import android.os.UserHandle; 77 static final int UID_PRIMARY_SOCIAL = UserHandle.getUid(USER_PRIMARY, UID_SOCIAL); 78 static final int UID_PRIMARY_CAMERA = UserHandle.getUid(USER_PRIMARY, UID_CAMERA); 79 static final int UID_PRIMARY_PRIVATE = UserHandle.getUid(USER_PRIMARY, UID_PRIVATE); 80 static final int UID_PRIMARY_PUBLIC = UserHandle.getUid(USER_PRIMARY, UID_PUBLIC); 81 static final int UID_PRIMARY_FORCE = UserHandle.getUid(USER_PRIMARY, UID_FORCE); 82 static final int UID_PRIMARY_COMPLEX = UserHandle.getUid(USER_PRIMARY, UID_COMPLEX); 84 static final int UID_SECONDARY_SOCIAL = UserHandle.getUid(USER_SECONDARY, UID_SOCIAL); 85 static final int UID_SECONDARY_CAMERA = UserHandle.getUid(USER_SECONDARY, UID_CAMERA); 86 static final int UID_SECONDARY_PRIVATE = UserHandle.getUid(USER_SECONDARY, UID_PRIVATE); [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | UserPowerCalculatorTest.java | 27 import android.os.UserHandle; 60 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER1, APP_UID1)) in testAllUsers() 62 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER1, APP_UID1)) in testAllUsers() 67 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER2, APP_UID2)) in testAllUsers() 69 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER2, APP_UID2)) in testAllUsers() 79 mStatsRule.apply(new BatteryUsageStatsQuery.Builder().addUser(UserHandle.of(USER1)).build(), in testSpecificUser() 84 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER1, APP_UID1)) in testSpecificUser() 86 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER1, APP_UID1)) in testSpecificUser() 88 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER1, APP_UID2))).isNull(); in testSpecificUser() 89 assertThat(mStatsRule.getUidBatteryConsumer(UserHandle.getUid(USER1, APP_UID3)) in testSpecificUser() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | AppsQueryHelperTests.java | 21 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/servicestests/src/com/android/server/devicepolicy/ |
D | DpmMockContext.java | 34 import android.os.UserHandle; 63 public static final int CALLER_UID = UserHandle.getUid(CALLER_USER_HANDLE, 20123); 68 public static final int CALLER_MANAGED_PROVISIONING_UID = UserHandle.getUid(CALLER_USER_HANDLE, 92 public static final int ANOTHER_UID = UserHandle.getUid(UserHandle.USER_SYSTEM, 18434); 95 public static final int DELEGATE_CERT_INSTALLER_UID = UserHandle.getUid(UserHandle.USER_SYSTEM, 140 public UserHandle getCallingUserHandle() { in getCallingUserHandle() 141 return new UserHandle(UserHandle.getUserId(getCallingUid())); in getCallingUserHandle() 255 if (UserHandle.isSameApp(binder.getCallingUid(), SYSTEM_UID)) { in enforceCallingOrSelfPermission() 298 public void sendBroadcastAsUserMultiplePermissions(Intent intent, UserHandle user, in sendBroadcastAsUserMultiplePermissions() 345 public void sendBroadcastAsUser(Intent intent, UserHandle user) { in sendBroadcastAsUser() [all …]
|
D | DevicePolicyManagerTest.java | 107 import android.os.UserHandle; 242 any(UserHandle.class)); in setUp() 246 getServices().addPackageContext(UserHandle.of(0), mContext); in setUp() 247 getServices().addPackageContext(UserHandle.of(CALLER_USER_HANDLE), mContext); in setUp() 301 final Map<Pair<String, UserHandle>, Bundle> appRestrictions = new HashMap<>(); in setUpUserManager() 307 UserHandle user = (UserHandle) invocation.getArguments()[2]; in setUpUserManager() 313 anyString(), nullable(Bundle.class), any(UserHandle.class)); in setUpUserManager() 318 UserHandle user = (UserHandle) invocation.getArguments()[1]; in setUpUserManager() 322 anyString(), any(UserHandle.class)); in setUpUserManager() 325 final Map<UserHandle, Bundle> userRestrictions = new HashMap<>(); in setUpUserManager() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | ResolverWrapperActivity.java | 28 import android.os.UserHandle; 45 boolean filterLastUsed, UserHandle userHandle) { in createResolverListAdapter() 92 protected ResolverListController createListController(UserHandle userHandle) { in createListController() 93 if (userHandle == UserHandle.SYSTEM) { in createListController() 94 when(sOverrides.resolverListController.getUserHandle()).thenReturn(UserHandle.SYSTEM); in createListController() 109 protected UserHandle getCurrentUserHandle() { in getCurrentUserHandle() 114 protected UserHandle getWorkProfileUserHandle() { in getWorkProfileUserHandle() 119 public void startActivityAsUser(Intent intent, Bundle options, UserHandle user) { in startActivityAsUser() 135 public UserHandle workProfileUserHandle; 157 public boolean isQuietModeEnabled(UserHandle workProfileUserHandle) { in reset() [all …]
|
D | ChooserWrapperActivity.java | 34 import android.os.UserHandle; 131 protected ResolverListController createListController(UserHandle userHandle) { in createListController() 132 if (userHandle == UserHandle.SYSTEM) { in createListController() 133 when(sOverrides.resolverListController.getUserHandle()).thenReturn(UserHandle.SYSTEM); in createListController() 208 protected UserHandle getWorkProfileUserHandle() { in getWorkProfileUserHandle() 212 protected UserHandle getCurrentUserHandle() { in getCurrentUserHandle() 217 public Context createContextAsUser(UserHandle user, int flags) { in createContextAsUser() 240 protected boolean isQuietModeEnabled(UserHandle userHandle) { in isQuietModeEnabled() 245 protected boolean isUserRunning(UserHandle userHandle) { in isUserRunning() 246 if (userHandle.equals(UserHandle.SYSTEM)) { in isUserRunning() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserManagerServiceCreateProfileTest.java | 28 import android.os.UserHandle; 73 UserHandle.USER_SYSTEM, users.get(0).id); in setup() 90 mUserManagerService.getProfiles(UserHandle.USER_SYSTEM, /*excludeDying*/ false); in testGetProfiles() 93 UserHandle.USER_SYSTEM, users.get(0).id); in testGetProfiles() 115 int[] users = mUserManagerService.getProfileIds(UserHandle.USER_SYSTEM, userType1, false); in testGetProfileIds_specifyType() 133 mUserManagerService.getFreeProfileBadgeLU(UserHandle.USER_SYSTEM, in testProfileBadge() 146 mUserManagerService.getFreeProfileBadgeLU(UserHandle.USER_SYSTEM, in testProfileBadge() 154 mUserManagerService.getFreeProfileBadgeLU(UserHandle.USER_SYSTEM, in testProfileBadge() 169 int nextBadge = mUserManagerService.getFreeProfileBadgeLU(UserHandle.USER_SYSTEM, in testProfileBadgeUnique() 206 if (!mUserManagerService.canAddMoreManagedProfiles(UserHandle.USER_SYSTEM, in testCanAddMoreManagedProfiles_removeProfile() [all …]
|
D | CrossProfileAppsServiceImplTest.java | 42 import android.os.UserHandle; 176 List<UserHandle> targetProfiles = in getTargetUserProfiles_fromPrimaryUser_installed() 178 assertThat(targetProfiles).containsExactly(UserHandle.of(PROFILE_OF_PRIMARY_USER)); in getTargetUserProfiles_fromPrimaryUser_installed() 185 List<UserHandle> targetProfiles = in getTargetUserProfiles_fromPrimaryUser_notInstalled() 194 List<UserHandle> targetProfiles = in getTargetUserProfiles_fromPrimaryUser_userNotEnabled() 203 List<UserHandle> targetProfiles = in getTargetUserProfiles_fromSecondaryUser() 212 List<UserHandle> targetProfiles = in getTargetUserProfiles_fromProfile_installed() 214 assertThat(targetProfiles).containsExactly(UserHandle.of(PRIMARY_USER)); in getTargetUserProfiles_fromProfile_installed() 222 List<UserHandle> targetProfiles = in getTargetUserProfiles_fromProfile_notInstalled() 242 UserHandle.of(PRIMARY_USER).getIdentifier(), in startActivityAsUser_currentUser() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/enterprise/ |
D | ActionDisabledByAdminControllerTestUtils.java | 23 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/robotests/src/com/android/server/testing/shadows/ |
D | ShadowBinder.java | 20 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/services/tests/servicestests/src/com/android/server/am/ |
D | BroadcastRecordTest.java | 26 import android.os.UserHandle; 49 final int user0 = UserHandle.USER_SYSTEM; in testCleanupDisabledPackageReceivers() 64 final BroadcastRecord recordAllAll = createBroadcastRecord(receiversM, UserHandle.USER_ALL); in testCleanupDisabledPackageReceivers() 65 cleanupDisabledPackageReceivers(recordAllAll, pkgToCleanup, UserHandle.USER_ALL); in testCleanupDisabledPackageReceivers() 69 final BroadcastRecord recordAllOne = createBroadcastRecord(receiversM, UserHandle.USER_ALL); in testCleanupDisabledPackageReceivers() 76 cleanupDisabledPackageReceivers(recordOneAll, pkgToCleanup, UserHandle.USER_ALL); in testCleanupDisabledPackageReceivers() 86 final BroadcastRecord recordAllM = createBroadcastRecord(receiversM, UserHandle.USER_ALL); in testCleanupDisabledPackageReceivers() 116 && UserHandle.getUserId(appInfo.uid) == UserHandle in verifyRemaining() 124 .append('u').append(UserHandle.getUserId(appInfo.uid)).append(' '); in verifyRemaining() 151 UserHandle.getUid(userId, Process.FIRST_APPLICATION_UID + i))); in createReceiverInfos() [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | InlineReplyUriRecord.java | 22 import android.os.UserHandle; 32 private final UserHandle mUser; 43 public InlineReplyUriRecord(IBinder owner, UserHandle user, String packageName, String key) { in InlineReplyUriRecord() 79 if (UserManager.isHeadlessSystemUserMode() && userId == UserHandle.USER_ALL) { in getUserId() 81 } else if (userId == UserHandle.USER_ALL) { in getUserId() 82 return UserHandle.USER_SYSTEM; in getUserId()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | UserPowerCalculator.java | 24 import android.os.UserHandle; 40 if (ArrayUtils.contains(userIds, UserHandle.USER_ALL)) { in calculate() 50 if (UserHandle.getAppId(uid) < Process.FIRST_APPLICATION_UID) { in calculate() 54 final int userId = UserHandle.getUserId(uid); in calculate() 65 long rawRealtimeUs, long rawUptimeUs, int statsType, SparseArray<UserHandle> asUsers) { in calculate() 66 final boolean forAllUsers = (asUsers.get(UserHandle.USER_ALL) != null); in calculate() 76 final int userId = UserHandle.getUserId(uid); in calculate() 78 && UserHandle.getAppId(uid) >= Process.FIRST_APPLICATION_UID) { in calculate()
|
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
D | SettingsProviderPerformanceTest.java | 23 import android.os.UserHandle; 55 FAKE_SETTING_NAME, UserHandle.USER_SYSTEM); in testSetAndGetPerformanceForGlobalViaFrontEndApi() 64 FAKE_SETTING_NAME, UserHandle.USER_SYSTEM); in testSetAndGetPerformanceForGlobalViaFrontEndApi() 95 FAKE_SETTING_VALUE, UserHandle.USER_SYSTEM); in testSetAndGetPerformanceForGlobalViaProviderApi() 99 FAKE_SETTING_NAME, UserHandle.USER_SYSTEM); in testSetAndGetPerformanceForGlobalViaProviderApi() 104 FAKE_SETTING_VALUE_1, UserHandle.USER_SYSTEM); in testSetAndGetPerformanceForGlobalViaProviderApi() 108 FAKE_SETTING_NAME, UserHandle.USER_SYSTEM); in testSetAndGetPerformanceForGlobalViaProviderApi()
|