/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/logging/ |
D | DailyLoggingServiceTest.java | 88 private final UserHandle mCurrentUser = Process.myUserHandle(); field in DailyLoggingServiceTest 145 DailyLoggingService.logDailyMetrics(mContext, mCurrentUser); in testDatabaseLogsStats() 187 DailyLoggingService.logDailyMetrics(mContext, mCurrentUser); in testDatabaseLogsStats_userDoesNotUseHealthConnect() 206 when(mContext.createContextAsUser(mCurrentUser, 0) in testDailyUsageStatsLogs_oneConnected_oneAvailable_oneNotAvailableApp() 213 DailyLoggingService.logDailyMetrics(mContext, mCurrentUser); in testDailyUsageStatsLogs_oneConnected_oneAvailable_oneNotAvailableApp() 229 when(mContext.createContextAsUser(mCurrentUser, 0) in testDailyUsageStatsLogs_oneConnected_oneAvailableApp() 236 DailyLoggingService.logDailyMetrics(mContext, mCurrentUser); in testDailyUsageStatsLogs_oneConnected_oneAvailableApp() 250 when(mContext.createContextAsUser(mCurrentUser, 0) in testDailyUsageStatsLogs_zeroConnected_twoAvailableApps() 257 DailyLoggingService.logDailyMetrics(mContext, mCurrentUser); in testDailyUsageStatsLogs_zeroConnected_twoAvailableApps() 271 when(mContext.createContextAsUser(mCurrentUser, 0) in testDailyUsageStatsLogs_zeroConnected_zeroAvailableApps() [all …]
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | DrivingSafetyRegionTest.java | 51 private final int mCurrentUser = ActivityManager.getCurrentUser(); field in DrivingSafetyRegionTest 100 activityClassName, true, mCurrentUser); in doTestAllRegions() 106 activityClassName, false, mCurrentUser); in doTestAllRegions() 132 activityClassName, true, mCurrentUser); in testOneRegionOnly() 138 activityClassName, false, mCurrentUser); in testOneRegionOnly() 221 activityClassName, true, mCurrentUser); in doTestRegionOnlyOrNoRegionCase() 227 activityClassName, false, mCurrentUser); in doTestRegionOnlyOrNoRegionCase() 239 noPkg, "", mCurrentUser)); in testNoPackage() 243 noPkg, "", true, mCurrentUser)); in testNoPackage() 252 TEST_PACKAGE_NAME, noSuchActivity, mCurrentUser)); in testNoActivity() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | UserManagerState.java | 122 private final UserId mCurrentUser; field in UserManagerState.RuntimeUserManagerState 180 mCurrentUser = checkNotNull(currentUser); in RuntimeUserManagerState() 271 || CrossProfileUtils.getCrossProfileResolveInfo(mCurrentUser, in onProfileActionStatusChange() 312 result.add(mCurrentUser); in getUserIdsInternal() 318 result.add(mCurrentUser); in getUserIdsInternal() 324 result.add(mCurrentUser); in getUserIdsInternal() 353 result.add(mCurrentUser); in getUserIdsInternalPostV() 371 result.add(mCurrentUser); in getUserIdsInternalPreV() 381 if (mCurrentUser.isSystem() && managedUser != null) { in getUserIdsInternalPreV() 383 } else if (mCurrentUser.isManagedProfile(mUserManager) && systemUser != null) { in getUserIdsInternalPreV() [all …]
|
D | UserIdManager.java | 84 private final UserId mCurrentUser; field in UserIdManager.RuntimeUserIdManager 112 mCurrentUser = checkNotNull(currentUser); in RuntimeUserIdManager() 154 result.add(mCurrentUser); in getUserIdsInternal() 186 if (mCurrentUser.isSystem()) { in getUserIdsInternal() 191 } else if (mCurrentUser.isManagedProfile(userManager)) { in getUserIdsInternal()
|
/packages/modules/AdServices/adservices/tests/cts/hosttests/src/com/android/adservices/cts/ |
D | AppSearchDataMigrationHostTest.java | 81 private int mCurrentUser = 0; field in AppSearchDataMigrationHostTest 99 mCurrentUser = mDevice.getCurrentUser(); in setUp() 165 /* actionValue= */ Integer.toString(mCurrentUser), in testAppSearchConsentMigration() 211 mCurrentUser, mAdServicesPackageName); in deletePreExistingData() 216 mCurrentUser, mAdServicesPackageName); in deletePreExistingData() 219 runShellCommand("rm -f /data/system/adservices/%d/consent/*", mCurrentUser); in deletePreExistingData() 239 mCurrentUser); in getSystemServerConsentXmlPath() 244 String.format("Select topic from blocked_topics where user=%s", mCurrentUser); in getBlockedTopics()
|
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/data/ |
D | UserIdManager.java | 175 private final UserId mCurrentUser; field in UserIdManager.RuntimeUserIdManager 201 mCurrentUser = checkNotNull(currentUser); in RuntimeUserIdManager() 202 mCurrentUserProfile = mCurrentUser; in RuntimeUserIdManager() 280 return mCurrentUser.equals(getPersonalUserId()); in isPersonalUserId() 286 return mCurrentUser.equals(getManagedUserId()); in isManagedUserId() 313 if (mCurrentUser.isManagedProfile(userManager)) { in setUserIdsInternal() 314 final UserId managedUser = mCurrentUser; in setUserIdsInternal() 323 final UserId personalUser = mCurrentUser; in setUserIdsInternal()
|
D | UserManagerState.java | 217 private final UserId mCurrentUser; field in UserManagerState.RuntimeUserManagerState 256 mCurrentUser = checkNotNull(currentUser); in RuntimeUserManagerState() 257 mCurrentUserProfile = mCurrentUser; in RuntimeUserManagerState() 592 if (needToCheck != null && needToCheck.equals(mCurrentUser.getUserHandle())) { in setBlockedByAdminValue() 593 needToCheck = mUserManager.getProfileParent(mCurrentUser.getUserHandle()); in setBlockedByAdminValue() 599 getProfileToCheckCrossProfileAccess(mCurrentUser.getUserHandle()))) { in setBlockedByAdminValue()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/ |
D | UserItemsCombiner.java | 47 private UserId mCurrentUser; field in UserItemsCombiner 56 mCurrentUser = UserId.CURRENT_USER; in UserItemsCombiner() 64 mCurrentUser = checkNotNull(userId); in overrideCurrentUserForTest() 97 if (mCurrentUser.isSystem()) { in createPresentableList() 160 result.addAll(mRootListAllUsers.get(userIds.indexOf(mCurrentUser))); in createPresentableListForAllUsers()
|
/packages/apps/Settings/src/com/android/settings/notification/history/ |
D | NotificationSbnAdapter.java | 73 private @UserIdInt int mCurrentUser; field in NotificationSbnAdapter 89 mCurrentUser = ActivityManager.getCurrentUser(); in NotificationSbnAdapter() 90 int[] enabledUsers = um.getEnabledProfileIds(mCurrentUser); in NotificationSbnAdapter() 254 userId = mCurrentUser; in normalizeUserId()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/ |
D | UserFragment.java | 81 private UserInfoView mCurrentUser; field in UserFragment 111 mCurrentUser = view.findViewById(R.id.current_user); in onViewCreated() 287 mCurrentUser.update(user); in updateState()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/admin/ |
D | DevicePolicyFragment.java | 73 private UserInfoView mCurrentUser; field in DevicePolicyFragment 133 mCurrentUser = view.findViewById(R.id.current_user); in onViewCreated() 181 mCurrentUser.update(user); in updateState()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | WifiPermissionsUtilTest.java | 149 private int mCurrentUser; field in WifiPermissionsUtilTest 214 mCurrentUser = UserHandle.USER_SYSTEM; in testCanReadPeersMacAddressCurrentUserAndAllPermissions() 332 mCurrentUser = UserHandle.USER_SYSTEM; in testLegacyForegroundAppWithOtherPermissionsDenied() 1778 mCurrentUser = UserHandle.USER_SYSTEM; 1793 when(mMockPermissionsWrapper.getCurrentUser()).thenReturn(mCurrentUser);
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/ |
D | WidgetsFullSheet.java | 101 private final UserHandle mCurrentUser = Process.myUserHandle(); field in WidgetsFullSheet 103 entry -> mCurrentUser.equals(entry.mPkgItem.user);
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/apps/ |
D | ApplicationsState.java | 1802 private int mCurrentUser; 1806 mCurrentUser = ActivityManager.getCurrentUser(); 1812 return UserHandle.getUserId(entry.info.uid) == mCurrentUser;
|