/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/broadcast/ |
D | UserBroadcastDispatcherTest.kt | 56 private val USER_HANDLE = UserHandle.of(USER_ID) constant 109 val receiverData = ReceiverData(broadcastReceiver, intentFilter, fakeExecutor, USER_HANDLE) in testSingleReceiverRegistered() 122 val receiverData = ReceiverData(broadcastReceiver, intentFilter, fakeExecutor, USER_HANDLE) in testDifferentActionReceiversForDifferentFlags() 141 ReceiverData(broadcastReceiver, intentFilter, fakeExecutor, USER_HANDLE, "PERMISSION1") in testDifferentActionReceiversForDifferentPermissions() 143 ReceiverData(broadcastReceiver, intentFilter, fakeExecutor, USER_HANDLE, "PERMISSION2") in testDifferentActionReceiversForDifferentPermissions() 160 ReceiverData(broadcastReceiver, intentFilter, fakeExecutor, USER_HANDLE), FLAG) in testSingleReceiverRegistered_logging() 163 verify(logger).logReceiverRegistered(USER_HANDLE.identifier, broadcastReceiver, FLAG) in testSingleReceiverRegistered_logging() 171 ReceiverData(broadcastReceiver, intentFilter, fakeExecutor, USER_HANDLE), FLAG) in testSingleReceiverUnregistered() 187 ReceiverData(broadcastReceiver, intentFilter, fakeExecutor, USER_HANDLE), FLAG) in testSingleReceiverUnregistered_logger() 193 verify(logger).logReceiverUnregistered(USER_HANDLE.identifier, broadcastReceiver) in testSingleReceiverUnregistered_logger() [all …]
|
/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/framework/common/ |
D | BroadcastReceiverAsUserFlowTest.kt | 50 eq(USER_HANDLE), in <lambda>() 64 val flow = context.broadcastReceiverAsUserFlow(INTENT_FILTER, USER_HANDLE) in <lambda>() 75 context.broadcastReceiverAsUserFlow(INTENT_FILTER, USER_HANDLE).first { in <lambda>() 93 val flow = context.broadcastReceiverAsUserFlow(INTENT_FILTER, USER_HANDLE) in <lambda>() 101 val USER_HANDLE: UserHandle = UserHandle.of(0) constant
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/appclips/ |
D | AppClipsViewModelTest.java | 62 private static final UserHandle USER_HANDLE = Process.myUserHandle(); field in AppClipsViewModelTest 103 when(mImageExporter.export(any(Executor.class), any(UUID.class), eq(null), eq(USER_HANDLE), in saveScreenshot_throwsError_shouldUpdateErrorWithFailed() 107 mViewModel.saveScreenshotThenFinish(FAKE_DRAWABLE, FAKE_RECT, USER_HANDLE); in saveScreenshot_throwsError_shouldUpdateErrorWithFailed() 117 when(mImageExporter.export(any(Executor.class), any(UUID.class), eq(null), eq(USER_HANDLE), in saveScreenshot_failsSilently_shouldUpdateErrorWithFailed() 121 mViewModel.saveScreenshotThenFinish(FAKE_DRAWABLE, FAKE_RECT, USER_HANDLE); in saveScreenshot_failsSilently_shouldUpdateErrorWithFailed() 133 when(mImageExporter.export(any(Executor.class), any(UUID.class), eq(null), eq(USER_HANDLE), in saveScreenshot_succeeds_shouldUpdateResultWithUri() 136 mViewModel.saveScreenshotThenFinish(FAKE_DRAWABLE, FAKE_RECT, USER_HANDLE); in saveScreenshot_succeeds_shouldUpdateResultWithUri()
|
/frameworks/base/core/tests/coretests/src/android/app/backup/ |
D | BackupAgentTest.java | 58 private static final UserHandle USER_HANDLE = new UserHandle(15); field in BackupAgentTest 100 agent.onCreate(USER_HANDLE, BackupDestination.CLOUD, OperationType.BACKUP); in getBackupRestoreEventLogger_afterOnCreateForBackup_initializedForBackup() 109 agent.onCreate(USER_HANDLE, BackupDestination.CLOUD, OperationType.RESTORE); in getBackupRestoreEventLogger_afterOnCreateForRestore_initializedForRestore() 119 agent.onCreate(USER_HANDLE, BackupDestination.CLOUD, OperationType.BACKUP); in getBackupRestoreEventLogger_afterBackup_containsLogsLoggedByAgent() 131 agent.onCreate(USER_HANDLE, BackupDestination.CLOUD, OperationType.BACKUP); in testClearLogger_clearsPendingLogs() 142 agent.onCreate(USER_HANDLE, BackupDestination.CLOUD, OperationType.BACKUP); in testClearLoggerBetweenBackups_restartsSuccessCount() 157 agent.onCreate(USER_HANDLE, BackupDestination.CLOUD, OperationType.RESTORE); in doRestoreFile_agentOverrideIgnoresFile_consumesAllBytesInBuffer() 179 agent.onCreate(USER_HANDLE, backupDestination); in getAgentForBackupDestination()
|
/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/framework/compose/ |
D | DisposableBroadcastReceiverAsUserTest.kt | 50 eq(USER_HANDLE), in <lambda>() 69 DisposableBroadcastReceiverAsUser(INTENT_FILTER, USER_HANDLE) {} in broadcastReceiver_registered() 84 DisposableBroadcastReceiverAsUser(INTENT_FILTER, USER_HANDLE) { in broadcastReceiver_isCalledOnReceive() 96 val USER_HANDLE: UserHandle = UserHandle.of(0) constant
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationTestHelper.java | 126 public static final UserHandle USER_HANDLE = UserHandle.of(ActivityManager.getCurrentUser()); field in NotificationTestHelper 303 return createRow(PKG, UID, USER_HANDLE); in createRow() 327 return generateRow(notification, PKG, UID, USER_HANDLE, mDefaultInflationFlags); in createRow() 344 return generateRow(createNotification(), PKG, UID, USER_HANDLE, extraInflationFlags); in createRow() 366 return createRow(PKG, UID, USER_HANDLE, true /* isGroupSummary */, groupkey); in createGroupSummary() 370 return createRow(PKG, UID, USER_HANDLE, false /* isGroupSummary */, groupkey); in createGroupChild() 382 ExpandableNotificationRow row = generateRow(n, PKG, UID, USER_HANDLE, in createBubble() 399 ExpandableNotificationRow row = generateRow(n, PKG, UID, USER_HANDLE, in createStickyRow() 413 ExpandableNotificationRow row = generateRow(n, PKG, UID, USER_HANDLE, in createShortcutBubble() 431 ExpandableNotificationRow row = generateRow(n, PKG, UID, USER_HANDLE, in createBubbleInGroup() [all …]
|
D | ExpandableNotificationRowTest.java | 21 import static com.android.systemui.statusbar.notification.row.NotificationTestHelper.USER_HANDLE; 842 USER_HANDLE.getUid(1234), USER_HANDLE); in imageResolver_sameNotificationUser_usesContext()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/inputmethod/data/repository/ |
D | InputMethodRepositoryTest.kt | 72 whenever(inputMethodManager.getEnabledInputMethodListAsUser(eq(USER_HANDLE))) in enabledInputMethods_noImes_emptyFlow() 86 whenever(inputMethodManager.getEnabledInputMethodListAsUser(eq(USER_HANDLE))) in selectedInputMethodSubtypes_returnsSubtypeList() 122 private val USER_HANDLE = UserHandle.of(USER_ID) constant
|
/frameworks/base/packages/WallpaperBackup/test/src/com/android/wallpaperbackup/ |
D | WallpaperBackupAgentTest.java | 105 private static final UserHandle USER_HANDLE = new UserHandle(15); field in WallpaperBackupAgentTest 134 mWallpaperBackupAgent.onCreate(USER_HANDLE, BackupAnnotations.BackupDestination.CLOUD, in setUp() 622 mWallpaperBackupAgent.onCreate(USER_HANDLE, BackupAnnotations.BackupDestination.CLOUD, in testOnRestore_wallpaperImgSuccess_logsSuccess() 643 mWallpaperBackupAgent.onCreate(USER_HANDLE, BackupAnnotations.BackupDestination.CLOUD, in testOnRestore_lockWallpaperImgSuccess_logsSuccess() 658 mWallpaperBackupAgent.onCreate(USER_HANDLE, BackupAnnotations.BackupDestination.CLOUD, in testOnRestore_systemWallpaperImgMissingAndNoLive_logsFailure() 674 mWallpaperBackupAgent.onCreate(USER_HANDLE, BackupAnnotations.BackupDestination.CLOUD, in testOnRestore_wallpaperImgMissingAndNoLive_logsFailure() 691 mWallpaperBackupAgent.onCreate(USER_HANDLE, BackupAnnotations.BackupDestination.CLOUD, in testOnRestore_wallpaperInfoMissing_logsFailure() 706 mWallpaperBackupAgent.onCreate(USER_HANDLE, BackupAnnotations.BackupDestination.CLOUD, in testOnRestore_imgMissingButWallpaperInfoHasLive_doesNotLogImg() 730 mWallpaperBackupAgent.onCreate(USER_HANDLE, BackupAnnotations.BackupDestination.CLOUD, in testOnRestore_throwsException_logsErrors() 847 mWallpaperBackupAgent.onCreate(USER_HANDLE, BackupAnnotations.BackupDestination.CLOUD, in testParseCropHints() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/widget/ |
D | LaunchConversationActivityTest.java | 77 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()
|
/frameworks/base/telephony/java/android/telephony/ |
D | SubscriptionManager.java | 1104 public static final String USER_HANDLE = SimInfo.COLUMN_USER_HANDLE; field in SubscriptionManager
|