Home
last modified time | relevance | path

Searched refs:USER_HANDLE (Results 1 – 8 of 8) sorted by relevance

/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/broadcast/
H A DUserBroadcastDispatcherTest.kt56 private val USER_HANDLE = UserHandle.of(USER_ID) regex
109 val receiverData = ReceiverData(broadcastReceiver, intentFilter, fakeExecutor, USER_HANDLE)
160 ReceiverData(broadcastReceiver, intentFilter, fakeExecutor, USER_HANDLE), FLAG)
163 verify(logger).logReceiverRegistered(USER_HANDLE.identifier, broadcastReceiver, FLAG)
171 ReceiverData(broadcastReceiver, intentFilter, fakeExecutor, USER_HANDLE), FLAG)
187 ReceiverData(broadcastReceiver, intentFilter, fakeExecutor, USER_HANDLE), FLAG)
193 verify(logger).logReceiverUnregistered(USER_HANDLE.identifier, broadcastReceiver)
200 ReceiverData(broadcastReceiver, intentFilter, fakeExecutor, USER_HANDLE), FLAG)
209 USER_HANDLE
235 USER_HANDLE
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/app/backup/
H A DBackupAgentTest.java49 private static final UserHandle USER_HANDLE = new UserHandle(15); field in BackupAgentTest
88 agent.onCreate(USER_HANDLE, BackupDestination.CLOUD, OperationType.BACKUP); in getBackupRestoreEventLogger_afterOnCreateForBackup_initializedForBackup()
97 agent.onCreate(USER_HANDLE, BackupDestination.CLOUD, OperationType.RESTORE); in getBackupRestoreEventLogger_afterOnCreateForRestore_initializedForRestore()
107 agent.onCreate(USER_HANDLE, BackupDestination.CLOUD, OperationType.BACKUP); in getBackupRestoreEventLogger_afterBackup_containsLogsLoggedByAgent()
119 agent.onCreate(USER_HANDLE, BackupDestination.CLOUD, OperationType.BACKUP); in testClearLogger_clearsPendingLogs()
130 agent.onCreate(USER_HANDLE, BackupDestination.CLOUD, OperationType.BACKUP); in testClearLoggerBetweenBackups_restartsSuccessCount()
142 agent.onCreate(USER_HANDLE, backupDestination); in getAgentForBackupDestination()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/appclips/
H A DAppClipsViewModelTest.java61 private static final UserHandle USER_HANDLE = Process.myUserHandle(); field in AppClipsViewModelTest
103 eq(USER_HANDLE))).thenReturn( in saveScreenshot_throwsError_shouldUpdateErrorWithFailed()
106 mViewModel.saveScreenshotThenFinish(FAKE_DRAWABLE, FAKE_RECT, USER_HANDLE); in saveScreenshot_throwsError_shouldUpdateErrorWithFailed()
117 eq(USER_HANDLE))).thenReturn(Futures.immediateFuture(new ImageExporter.Result())); in saveScreenshot_failsSilently_shouldUpdateErrorWithFailed()
119 mViewModel.saveScreenshotThenFinish(FAKE_DRAWABLE, FAKE_RECT, USER_HANDLE); in saveScreenshot_failsSilently_shouldUpdateErrorWithFailed()
132 eq(USER_HANDLE))).thenReturn(Futures.immediateFuture(result)); in saveScreenshot_succeeds_shouldUpdateResultWithUri()
134 mViewModel.saveScreenshotThenFinish(FAKE_DRAWABLE, FAKE_RECT, USER_HANDLE); in saveScreenshot_succeeds_shouldUpdateResultWithUri()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
H A DNotificationTestHelper.java115 public static final UserHandle USER_HANDLE = UserHandle.of(ActivityManager.getCurrentUser()); field in NotificationTestHelper
246 return createRow(PKG, UID, USER_HANDLE); in createRow()
270 return generateRow(notification, PKG, UID, USER_HANDLE, mDefaultInflationFlags); in createRow()
287 return generateRow(createNotification(), PKG, UID, USER_HANDLE, extraInflationFlags); in createRow()
309 return createRow(PKG, UID, USER_HANDLE, true /* isGroupSummary */, groupkey); in createGroupSummary()
313 return createRow(PKG, UID, USER_HANDLE, false /* isGroupSummary */, groupkey); in createGroupChild()
325 ExpandableNotificationRow row = generateRow(n, PKG, UID, USER_HANDLE, in createBubble()
342 ExpandableNotificationRow row = generateRow(n, PKG, UID, USER_HANDLE, in createStickyRow()
356 ExpandableNotificationRow row = generateRow(n, PKG, UID, USER_HANDLE, in createShortcutBubble()
374 ExpandableNotificationRow row = generateRow(n, PKG, UID, USER_HANDLE, in createBubbleInGroup()
[all …]
/aosp14/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/framework/compose/
H A DDisposableBroadcastReceiverAsUserTest.kt65 DisposableBroadcastReceiverAsUser(IntentFilter(), USER_HANDLE) {}
77 DisposableBroadcastReceiverAsUser(IntentFilter(), USER_HANDLE) {
89 val USER_HANDLE: UserHandle = UserHandle.of(0)
/aosp14/frameworks/base/packages/WallpaperBackup/test/src/com/android/wallpaperbackup/
H A DWallpaperBackupAgentTest.java98 private static final UserHandle USER_HANDLE = new UserHandle(15); field in WallpaperBackupAgentTest
129 mWallpaperBackupAgent.onCreate(USER_HANDLE, BackupAnnotations.BackupDestination.CLOUD, in setUp()
628 mWallpaperBackupAgent.onCreate(USER_HANDLE, BackupAnnotations.BackupDestination.CLOUD, in testOnRestore_systemWallpaperImgSuccess_logsSuccess()
650 mWallpaperBackupAgent.onCreate(USER_HANDLE, BackupAnnotations.BackupDestination.CLOUD, in testOnRestore_lockWallpaperImgSuccess_logsSuccess()
665 mWallpaperBackupAgent.onCreate(USER_HANDLE, BackupAnnotations.BackupDestination.CLOUD, in testOnRestore_systemWallpaperImgMissingAndNoLive_logsFailure()
681 mWallpaperBackupAgent.onCreate(USER_HANDLE, BackupAnnotations.BackupDestination.CLOUD, in testOnRestore_wallpaperImgMissingAndNoLive_logsFailure()
698 mWallpaperBackupAgent.onCreate(USER_HANDLE, BackupAnnotations.BackupDestination.CLOUD, in testOnRestore_wallpaperInfoMissing_logsFailure()
713 mWallpaperBackupAgent.onCreate(USER_HANDLE, BackupAnnotations.BackupDestination.CLOUD, in testOnRestore_imgMissingButWallpaperInfoHasLive_doesNotLogImg()
732 mWallpaperBackupAgent.onCreate(USER_HANDLE, BackupAnnotations.BackupDestination.CLOUD, in testOnRestore_throwsException_logsErrors()
907 mWallpaperBackupAgent.onCreate(USER_HANDLE, BackupAnnotations.BackupDestination.CLOUD, in markAgentAsOverQuota()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/widget/
H A DLaunchConversationActivityTest.java77 private static final UserHandle USER_HANDLE = UserHandle.of(0); field in LaunchConversationActivityTest
131 mIntent.putExtra(PeopleSpaceWidgetProvider.EXTRA_USER_HANDLE, USER_HANDLE); in setUp()
239 when(mUserManager.isQuietModeEnabled(eq(USER_HANDLE))).thenReturn(true); in testQuietModeOpensQuietModeDialog()
/aosp14/frameworks/base/telephony/java/android/telephony/
H A DSubscriptionManager.java1096 public static final String USER_HANDLE = SimInfo.COLUMN_USER_HANDLE; field in SubscriptionManager