/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/notifcollection/ |
H A D | SelfTrackingLifetimeExtenderTest.kt | 49 private lateinit var entry1: NotificationEntry 82 verify(onStarted, never()).accept(entry1) 83 verify(onCanceled, never()).accept(entry1) 90 verify(onStarted).accept(entry1) 93 extender.cancelLifetimeExtension(entry1) 94 verify(onCanceled).accept(entry1) 102 extender.endLifetimeExtension(entry1.key) 112 verify(onStarted).accept(entry1) 114 extender.endLifetimeExtension(entry1.key) 123 verify(onStarted).accept(entry1) [all …]
|
H A D | NotifCollectionInconsistencyTrackerTest.kt | 41 private val entry1: NotificationEntry = NotificationEntryBuilder().setId(1).build() 63 val rankingMap = rankingMapOf(entry1) 82 rankingMap = rankingMapOf(entry1) 92 rankingMap = rankingMapOf(entry1, entry2) 106 rankingMap = rankingMapOf(entry1) 168 collectionSet.add(entry1.key) 169 inconsistencyTracker.logNewMissingNotifications(rankingMapOf(entry1)) 176 coalescedSet.add(entry1.key) 180 coalescedSet.remove(entry1.key) 181 collectionSet.remove(entry1.key) [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/ |
H A D | GutsCoordinatorTest.kt | 52 private lateinit var entry1: NotificationEntry 74 entry1 = NotificationEntryBuilder().setId(1).build() 82 notifGutsViewListener.onGutsOpen(entry1, notificationGuts) 83 assertThat(notifLifetimeExtender.maybeExtendLifetime(entry1, 0)).isTrue() 84 notifGutsViewListener.onGutsClose(entry1) 92 notifGutsViewListener.onGutsOpen(entry1, notificationGuts) 93 assertThat(notifLifetimeExtender.maybeExtendLifetime(entry1, 0)).isTrue() 94 notifGutsViewListener.onGutsOpen(entry1, notificationGuts) 96 notifGutsViewListener.onGutsClose(entry1) 105 notifGutsViewListener.onGutsOpen(entry1, notificationGuts) [all …]
|
H A D | RemoteInputCoordinatorTest.kt | 56 private lateinit var entry1: NotificationEntry 90 entry1 = NotificationEntryBuilder().setId(1).build() 103 `when`(remoteInputManager.isRemoteInputActive(entry1)).thenReturn(true) 104 assertThat(remoteInputActiveExtender.maybeExtendLifetime(entry1, 0)).isTrue() 124 assertThat(smartReplyHistoryExtender.maybeExtendLifetime(entry1, 0)).isTrue() 130 `when`(remoteInputManager.isRemoteInputActive(entry1)).thenReturn(true) 131 assertThat(remoteInputActiveExtender.isExtending(entry1.key)).isFalse() 135 assertThat(remoteInputActiveExtender.isExtending(entry1.key)).isFalse() 139 assertThat(remoteInputActiveExtender.maybeExtendLifetime(entry1, 0)).isTrue() 140 assertThat(remoteInputActiveExtender.isExtending(entry1.key)).isTrue() [all …]
|
H A D | RowAppearanceCoordinatorTest.kt | 51 private lateinit var entry1: NotificationEntry 79 entry1 = NotificationEntryBuilder().setSection(section1).setLastAudiblyAlertedMs(17).build() 87 beforeRenderListListener.onBeforeRenderList(listOf(entry1, entry2)) 88 afterRenderEntryListener.onAfterRenderEntry(entry1, controller1) 98 beforeRenderListListener.onBeforeRenderList(listOf(entry1, entry2)) 99 afterRenderEntryListener.onAfterRenderEntry(entry1, controller1) 107 afterRenderEntryListener.onAfterRenderEntry(entry1, controller1) 113 afterRenderEntryListener.onAfterRenderEntry(entry1, controller1)
|
H A D | ShadeEventCoordinatorTest.kt | 50 private lateinit var entry1: NotificationEntry 76 entry1 = NotificationEntryBuilder().setId(1).build() 82 notifCollectionListener.onEntryRemoved(entry1, REASON_CANCEL) 92 notifCollectionListener.onEntryRemoved(entry1, REASON_APP_CANCEL) 100 notifCollectionListener.onEntryRemoved(entry1, REASON_CANCEL) 108 notifCollectionListener.onEntryRemoved(entry1, REASON_APP_CANCEL)
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/render/ |
H A D | GroupExpansionManagerTest.kt | 39 private val entry1 = NotificationEntryBuilder().build() regex 44 whenever(groupMembershipManager.getGroupSummary(entry1)).thenReturn(entry1) 57 gem.setGroupExpanded(entry1, false) 59 gem.setGroupExpanded(entry1, true) 63 gem.setGroupExpanded(entry1, true) 76 gem.setGroupExpanded(entry1, false) 78 gem.setGroupExpanded(entry1, true) 82 gem.setGroupExpanded(entry1, true)
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/ |
H A D | NotifLiveDataStoreImplTest.kt | 47 val entry1 = NotificationEntryBuilder().setId(1).build() regex 52 assertThat(liveDataStoreImpl.activeNotifList.value).isEqualTo(listOf(entry1, entry2)) 60 liveDataStoreImpl.setActiveNotifList(listOf(entry1, entry2)) 66 val entry1 = NotificationEntryBuilder().setId(1).build() regex 68 val mutableInputList = mutableListOf(entry1, entry2) 73 assertThat(liveDataStoreImpl.activeNotifList.value).isEqualTo(listOf(entry1, entry2)) 87 val entry1 = NotificationEntryBuilder().setId(1).build() regex 98 assertThat(liveDataStoreImpl.activeNotifList.value).isEqualTo(listOf(entry1, entry2)) 102 liveDataStoreImpl.setActiveNotifList(mutableListOf(entry1, entry2))
|
H A D | NotifCollectionTest.java | 279 new CoalescedEvent(entry1.getKey(), 0, entry1.getSbn(), entry1.getRanking(), null), in testEventDispatchedWhenNotifBatchPosted() 423 new CoalescedEvent(entry1.getKey(), 0, entry1.getSbn(), entry1.getRanking(), null), in testCancelScheduledBuildNotificationListEventWhenNotifUpdatedSynchronously() 576 mCollection.dismissNotification(entry1, defaultStats(entry1)); in testDismissedNotificationsAreMarkedAsDismissedLocally() 590 mCollection.dismissNotification(entry1, defaultStats(entry1)); in testDismissedNotificationsCannotBeLifetimeExtended() 603 mCollection.dismissNotification(entry1, defaultStats(entry1)); in testDismissedNotificationsDoNotTriggerRemovalEvents() 616 mCollection.dismissNotification(entry1, defaultStats(entry1)); in testDismissedNotificationsStillAppearInNotificationSet() 653 mCollection.dismissNotification(entry1, defaultStats(entry1)); in testRetractingLifetimeExtendedSummaryDoesNotDismissChildren() 1290 List.of(new Pair<>(entry1, defaultStats(entry1)), in testDismissNotificationsRebuildsOnce() 1309 List.of(new Pair<>(entry1, defaultStats(entry1)), in testDismissNotificationsSentToSystemServer() 1341 List.of(new Pair<>(entry1, defaultStats(entry1)), in testDismissNotificationsMarkedAsDismissed() [all …]
|
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
H A D | LooperStatsTest.java | 200 LooperStats.ExportedEntry entry1 = entries.get(0); in testMultipleMessagesDispatched() local 201 assertThat(entry1.workSourceUid).isEqualTo(-1); in testMultipleMessagesDispatched() 205 assertThat(entry1.messageCount).isEqualTo(1); in testMultipleMessagesDispatched() 207 assertThat(entry1.exceptionCount).isEqualTo(0); in testMultipleMessagesDispatched() 210 assertThat(entry1.cpuUsageMicros).isEqualTo(100); in testMultipleMessagesDispatched() 366 assertThat(entry1.messageCount).isEqualTo(1); in testScreenStateCollected() 367 assertThat(entry1.exceptionCount).isEqualTo(1); in testScreenStateCollected() 404 assertThat(entry1.threadName).isEqualTo(""); in testMessagesOverSizeCap() 407 assertThat(entry1.messageCount).isEqualTo(3); in testMessagesOverSizeCap() 409 assertThat(entry1.exceptionCount).isEqualTo(0); in testMessagesOverSizeCap() [all …]
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/stats/ |
H A D | KernelWakelockReaderTest.java | 234 KernelWakelockStats.Entry entry1 = staleStats.get("WakeLock1"); in testTwoWakeLockInfos() local 235 assertEquals(10, entry1.mCount); in testTwoWakeLockInfos() 236 assertEquals(1000 * 1000, entry1.mTotalTime); // Microseconds in testTwoWakeLockInfos() 339 KernelWakelockStats.Entry entry1 = staleStats.get("WakeLock1"); in testAggregateStatsBothKernelAndNativeWakelocks() local 340 assertEquals(34, entry1.mCount); in testAggregateStatsBothKernelAndNativeWakelocks() 341 assertEquals(123 * 1000, entry1.mTotalTime); // Microseconds in testAggregateStatsBothKernelAndNativeWakelocks() 370 KernelWakelockStats.Entry entry1 = staleStats.get("WakeLock1"); in testAggregateStatsUpdate() local 371 assertEquals(34, entry1.mCount); in testAggregateStatsUpdate() 372 assertEquals(123 * 1000, entry1.mTotalTime); // Microseconds in testAggregateStatsUpdate() 403 entry1 = staleStats.get("WakeLock1"); in testAggregateStatsUpdate() [all …]
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
H A D | FgsTempAllowListTest.java | 52 Pair<Long, String> entry1 = allowList.get(10001); in testIsAllowed() local 53 assertNotNull(entry1); in testIsAllowed() 54 assertEquals(entry1.second, "description1"); in testIsAllowed()
|
/aosp14/frameworks/base/core/jni/ |
H A D | android_hardware_camera2_DngCreator.cpp | 1702 camera_metadata_entry entry1 = in DngCreator_setup() local 1710 uint16_t ref1 = entry1.data.u8[0]; in DngCreator_setup() 1724 camera_metadata_entry entry1 = in DngCreator_setup() local 1728 int32_t colorTransform1[entry1.count * 2]; in DngCreator_setup() 1731 for(size_t i = 0; i < entry1.count; ++i) { in DngCreator_setup() 1757 camera_metadata_entry entry1 = in DngCreator_setup() local 1764 for(size_t i = 0; i < entry1.count; ++i) { in DngCreator_setup() 1791 camera_metadata_entry entry1 = in DngCreator_setup() local 1798 for(size_t i = 0; i < entry1.count; ++i) { in DngCreator_setup() 1932 camera_metadata_entry entry1 = in DngCreator_setup() local [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/ |
H A D | ConversationCoordinator.kt | 117 override fun compare(entry1: ListEntry, entry2: ListEntry): Int { 118 val type1 = getPeopleType(entry1)
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/ |
H A D | PackageDynamicCodeLoadingTests.java | 110 Entry entry1 = new Entry("owning.package1", "/path/file1", 'D', 10, "loading.package1"); in testRecord_changeUserForFile_throws() local 113 PackageDynamicCodeLoading info = makePackageDcl(entry1); in testRecord_changeUserForFile_throws() 116 assertHasEntries(info, entry1); in testRecord_changeUserForFile_throws()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/appops/ |
H A D | AppOpsControllerTest.java | 241 AppOpsManager.OpEntry entry1 = mock(AppOpsManager.OpEntry.class); in startListening_fetchesCurrentActive_multipleEntries() local 242 when(entry1.getOpStr()).thenReturn(AppOpsManager.OPSTR_PHONE_CALL_MICROPHONE); in startListening_fetchesCurrentActive_multipleEntries() 245 when(entry1.getAttributedOpEntries()).thenReturn(Map.of("tag", attributed1)); in startListening_fetchesCurrentActive_multipleEntries() 259 when(packageOps.getOps()).thenReturn(List.of(entry1, entry2, entry3)); in startListening_fetchesCurrentActive_multipleEntries()
|