Home
last modified time | relevance | path

Searched refs:entry1 (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/notifcollection/
DSelfTrackingLifetimeExtenderTest.kt49 private lateinit var entry1: NotificationEntry variable in com.android.systemui.statusbar.notification.collection.notifcollection.SelfTrackingLifetimeExtenderTest
68 entry1 = NotificationEntryBuilder().setId(1).build() in setUp()
79 `when`(shouldExtend.test(entry1)).thenReturn(false) in testNoExtend()
80 assertThat(extender.maybeExtendLifetime(entry1, 0)).isFalse() in testNoExtend()
81 assertThat(extender.isExtending(entry1.key)).isFalse() in testNoExtend()
82 verify(onStarted, never()).accept(entry1) in testNoExtend()
83 verify(onCanceled, never()).accept(entry1) in testNoExtend()
88 `when`(shouldExtend.test(entry1)).thenReturn(true) in testExtendThenCancelForRepost()
89 assertThat(extender.maybeExtendLifetime(entry1, 0)).isTrue() in testExtendThenCancelForRepost()
90 verify(onStarted).accept(entry1) in testExtendThenCancelForRepost()
[all …]
DNotifCollectionInconsistencyTrackerTest.kt41 private val entry1: NotificationEntry = NotificationEntryBuilder().setId(1).build() constant in com.android.systemui.statusbar.notification.collection.notifcollection.NotifCollectionInconsistencyTrackerTest
63 val rankingMap = rankingMapOf(entry1) in maybeLogInconsistentRankings_logsNewlyInconsistentRanking()
82 rankingMap = rankingMapOf(entry1) in maybeLogInconsistentRankings_doesNotLogAlreadyInconsistentRanking()
92 rankingMap = rankingMapOf(entry1, entry2) in maybeLogInconsistentRankings_logsWhenRankingIsAdded()
106 rankingMap = rankingMapOf(entry1) in maybeLogInconsistentRankings_doesNotLogsWhenEntryIsRemoved()
168 collectionSet.add(entry1.key) in logNewMissingNotifications_doesNotLogForConsistentSets()
169 inconsistencyTracker.logNewMissingNotifications(rankingMapOf(entry1)) in logNewMissingNotifications_doesNotLogForConsistentSets()
173 inconsistencyTracker.logNewMissingNotifications(rankingMapOf(entry1, entry2)) in logNewMissingNotifications_doesNotLogForConsistentSets()
176 coalescedSet.add(entry1.key) in logNewMissingNotifications_doesNotLogForConsistentSets()
177 inconsistencyTracker.logNewMissingNotifications(rankingMapOf(entry1, entry2)) in logNewMissingNotifications_doesNotLogForConsistentSets()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/
DGutsCoordinatorTest.kt52 private lateinit var entry1: NotificationEntry variable in com.android.systemui.statusbar.notification.collection.coordinator.GutsCoordinatorTest
74 entry1 = NotificationEntryBuilder().setId(1).build() in setUp()
81 assertThat(notifLifetimeExtender.maybeExtendLifetime(entry1, 0)).isFalse() in testSimpleLifetimeExtension()
82 notifGutsViewListener.onGutsOpen(entry1, notificationGuts) in testSimpleLifetimeExtension()
83 assertThat(notifLifetimeExtender.maybeExtendLifetime(entry1, 0)).isTrue() in testSimpleLifetimeExtension()
84 notifGutsViewListener.onGutsClose(entry1) in testSimpleLifetimeExtension()
85 verify(lifetimeExtenderCallback).onEndLifetimeExtension(notifLifetimeExtender, entry1) in testSimpleLifetimeExtension()
86 assertThat(notifLifetimeExtender.maybeExtendLifetime(entry1, 0)).isFalse() in testSimpleLifetimeExtension()
91 assertThat(notifLifetimeExtender.maybeExtendLifetime(entry1, 0)).isFalse() in testDoubleOpenLifetimeExtension()
92 notifGutsViewListener.onGutsOpen(entry1, notificationGuts) in testDoubleOpenLifetimeExtension()
[all …]
DRemoteInputCoordinatorTest.kt64 private lateinit var entry1: NotificationEntry variable in com.android.systemui.statusbar.notification.collection.coordinator.RemoteInputCoordinatorTest
96 entry1 = NotificationEntryBuilder().setId(1).build() in setUp()
114 `when`(remoteInputManager.isRemoteInputActive(entry1)).thenReturn(true) in testRemoteInputActive()
115 assertThat(remoteInputActiveExtender.maybeExtendLifetime(entry1, 0)).isTrue() in testRemoteInputActive()
117 assertThat(remoteInputHistoryExtender.maybeExtendLifetime(entry1, 0)).isFalse() in testRemoteInputActive()
118 assertThat(smartReplyHistoryExtender.maybeExtendLifetime(entry1, 0)).isFalse() in testRemoteInputActive()
120 assertThat(listener.isNotificationKeptForRemoteInputHistory(entry1.key)).isFalse() in testRemoteInputActive()
126 `when`(remoteInputManager.shouldKeepForRemoteInputHistory(entry1)).thenReturn(true) in testRemoteInputHistory()
127 assertThat(remoteInputActiveExtender.maybeExtendLifetime(entry1, 0)).isFalse() in testRemoteInputHistory()
128 assertThat(remoteInputHistoryExtender.maybeExtendLifetime(entry1, 0)).isTrue() in testRemoteInputHistory()
[all …]
DRowAppearanceCoordinatorTest.kt51 private lateinit var entry1: NotificationEntry variable in com.android.systemui.statusbar.notification.collection.coordinator.RowAppearanceCoordinatorTest
79 entry1 = NotificationEntryBuilder().setSection(section1).build() in setUp()
87 beforeRenderListListener.onBeforeRenderList(listOf(entry1, entry2)) in testSetSystemExpandedOnlyOnFirst()
88 afterRenderEntryListener.onAfterRenderEntry(entry1, controller1) in testSetSystemExpandedOnlyOnFirst()
98 beforeRenderListListener.onBeforeRenderList(listOf(entry1, entry2)) in testSetSystemExpandedNeverIfMinimized()
99 afterRenderEntryListener.onAfterRenderEntry(entry1, controller1) in testSetSystemExpandedNeverIfMinimized()
107 afterRenderEntryListener.onAfterRenderEntry(entry1, controller1) in testSetFeedbackIcon()
DShadeEventCoordinatorTest.kt50 private lateinit var entry1: NotificationEntry variable in com.android.systemui.statusbar.notification.collection.coordinator.ShadeEventCoordinatorTest
76 entry1 = NotificationEntryBuilder().setId(1).build() in setUp()
82 notifCollectionListener.onEntryRemoved(entry1, REASON_CANCEL) in testUserCancelLastNotification()
92 notifCollectionListener.onEntryRemoved(entry1, REASON_APP_CANCEL) in testAppCancelLastNotification()
100 notifCollectionListener.onEntryRemoved(entry1, REASON_CANCEL) in testUserCancelOneOfTwoNotifications()
108 notifCollectionListener.onEntryRemoved(entry1, REASON_APP_CANCEL) in testAppCancelOneOfTwoNotifications()
DRowAlertTimeCoordinatorTest.kt64 val entry1 = NotificationEntryBuilder().setLastAudiblyAlertedMs(10).build() in testSetLastAudiblyAlerted() constant
77 val entries = listOf(entry1, summary, child1, child2, entry2) in testSetLastAudiblyAlerted()
79 beforeFinalizeFilterListener.onBeforeFinalizeFilter(listOf(entry1, group, entry2)) in testSetLastAudiblyAlerted()
91 entry1 to 10L, in testSetLastAudiblyAlerted()
/frameworks/opt/chips/tests/src/com/android/ex/chips/
DRecipientAlternatesAdapterTest.java116 final RecipientEntry entry1 = in testGetBetterRecipient() local
120 assertEquals(RecipientAlternatesAdapter.getBetterRecipient(entry1, entry2), entry1); in testGetBetterRecipient() local
121 assertEquals(RecipientAlternatesAdapter.getBetterRecipient(entry2, entry1), entry1); in testGetBetterRecipient() local
126 final RecipientEntry entry1 = in testGetBetterRecipient() local
132 assertEquals(RecipientAlternatesAdapter.getBetterRecipient(entry1, entry2), entry1); in testGetBetterRecipient() local
133 assertEquals(RecipientAlternatesAdapter.getBetterRecipient(entry2, entry1), entry1); in testGetBetterRecipient() local
139 final RecipientEntry entry1 = in testGetBetterRecipient() local
148 assertEquals(RecipientAlternatesAdapter.getBetterRecipient(entry1, entry2), entry1); in testGetBetterRecipient() local
149 assertEquals(RecipientAlternatesAdapter.getBetterRecipient(entry2, entry1), entry1); in testGetBetterRecipient() local
154 final RecipientEntry entry1 = in testGetBetterRecipient() local
[all …]
DChipsTest.java1042 final RecipientEntry entry1 = view.createTokenizedEntry(phone1); in testCreateTokenizedEntryForPhone() local
1043 final String destination1 = entry1.getDestination(); in testCreateTokenizedEntryForPhone()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
DNotifLiveDataStoreImplTest.kt47 val entry1 = NotificationEntryBuilder().setId(1).build() in <lambda>() constant
52 assertThat(liveDataStoreImpl.activeNotifList.value).isEqualTo(listOf(entry1, entry2)) in <lambda>()
60 liveDataStoreImpl.setActiveNotifList(listOf(entry1, entry2)) in <lambda>()
66 val entry1 = NotificationEntryBuilder().setId(1).build() in <lambda>() constant
68 val mutableInputList = mutableListOf(entry1, entry2) in <lambda>()
73 assertThat(liveDataStoreImpl.activeNotifList.value).isEqualTo(listOf(entry1, entry2)) in <lambda>()
87 val entry1 = NotificationEntryBuilder().setId(1).build() in <lambda>() constant
98 assertThat(liveDataStoreImpl.activeNotifList.value).isEqualTo(listOf(entry1, entry2)) in <lambda>()
102 liveDataStoreImpl.setActiveNotifList(mutableListOf(entry1, entry2)) in <lambda>()
DNotifCollectionTest.java267 NotificationEntry entry1 = buildNotif(TEST_PACKAGE, 1) in testEventDispatchedWhenNotifBatchPosted() local
279 new CoalescedEvent(entry1.getKey(), 0, entry1.getSbn(), entry1.getRanking(), null), in testEventDispatchedWhenNotifBatchPosted()
289 assertEquals(entry1.getSbn(), capturedAdds.get(0).getSbn()); in testEventDispatchedWhenNotifBatchPosted()
290 assertEquals(entry1.getRanking(), capturedAdds.get(0).getRanking()); in testEventDispatchedWhenNotifBatchPosted()
411 final NotificationEntry entry1 = buildNotif(TEST_PACKAGE, 1) in testCancelScheduledBuildNotificationListEventWhenNotifUpdatedSynchronously() local
423 new CoalescedEvent(entry1.getKey(), 0, entry1.getSbn(), entry1.getRanking(), null), in testCancelScheduledBuildNotificationListEventWhenNotifUpdatedSynchronously()
472 NotificationEntry entry1 = mCollectionListener.getEntry(notif1.key); in testRankingsAreUpdatedForOtherNotifs() local
481 assertEquals(56, entry1.getRanking().getRank()); in testRankingsAreUpdatedForOtherNotifs()
494 NotificationEntry entry1 = mCollectionListener.getEntry(notif1.key); in testRankingUpdateIsProperlyIssuedToEveryone() local
522 assertEquals(newRanking1, entry1.getRanking()); in testRankingUpdateIsProperlyIssuedToEveryone()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DLooperStatsTest.java205 LooperStats.ExportedEntry entry1 = entries.get(0); in testMultipleMessagesDispatched() local
206 assertThat(entry1.workSourceUid).isEqualTo(-1); in testMultipleMessagesDispatched()
207 assertThat(entry1.threadName).isEqualTo("TestThread1"); in testMultipleMessagesDispatched()
208 assertThat(entry1.handlerClassName).isEqualTo("com.android.internal.os.LooperStatsTest$1"); in testMultipleMessagesDispatched()
209 assertThat(entry1.messageName).isEqualTo("0x1" /* 1 in hex */); in testMultipleMessagesDispatched()
210 assertThat(entry1.messageCount).isEqualTo(1); in testMultipleMessagesDispatched()
211 assertThat(entry1.recordedMessageCount).isEqualTo(1); in testMultipleMessagesDispatched()
212 assertThat(entry1.exceptionCount).isEqualTo(0); in testMultipleMessagesDispatched()
213 assertThat(entry1.totalLatencyMicros).isEqualTo(100); in testMultipleMessagesDispatched()
214 assertThat(entry1.maxLatencyMicros).isEqualTo(100); in testMultipleMessagesDispatched()
[all …]
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DKernelWakelockReaderTest.java269 KernelWakelockStats.Entry entry1 = staleStats.get("WakeLock1"); in testTwoWakeLockInfos() local
270 assertEquals(10, entry1.count); in testTwoWakeLockInfos()
271 assertEquals(1000 * 1000, entry1.totalTimeUs); // Microseconds in testTwoWakeLockInfos()
379 KernelWakelockStats.Entry entry1 = staleStats.get("WakeLock1"); in testAggregateStatsBothKernelAndNativeWakelocks() local
380 assertEquals(34, entry1.count); in testAggregateStatsBothKernelAndNativeWakelocks()
381 assertEquals(123 * 1000, entry1.totalTimeUs); // Microseconds in testAggregateStatsBothKernelAndNativeWakelocks()
411 KernelWakelockStats.Entry entry1 = staleStats.get("WakeLock1"); in testAggregateStatsUpdate() local
412 assertEquals(34, entry1.count); in testAggregateStatsUpdate()
413 assertEquals(123 * 1000, entry1.totalTimeUs); // Microseconds in testAggregateStatsUpdate()
444 entry1 = staleStats.get("WakeLock1"); in testAggregateStatsUpdate()
[all …]
DWifiPowerCalculatorTest.java99 NetworkStats.Entry entry1 = mock(NetworkStats.Entry.class); in buildNetworkStats() local
101 when(entry1.getUid()).thenReturn(APP_UID); in buildNetworkStats()
102 when(entry1.getMetered()).thenReturn(METERED_NO); in buildNetworkStats()
103 when(entry1.getRoaming()).thenReturn(ROAMING_NO); in buildNetworkStats()
104 when(entry1.getDefaultNetwork()).thenReturn(DEFAULT_NETWORK_NO); in buildNetworkStats()
105 when(entry1.getRxBytes()).thenReturn(rxBytes); in buildNetworkStats()
106 when(entry1.getRxPackets()).thenReturn(rxPackets); in buildNetworkStats()
107 when(entry1.getTxBytes()).thenReturn(txBytes); in buildNetworkStats()
108 when(entry1.getTxPackets()).thenReturn(txPackets); in buildNetworkStats()
109 when(entry1.getOperations()).thenReturn(100L); in buildNetworkStats()
[all …]
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientAlternatesAdapter.java294 static RecipientEntry getBetterRecipient(final RecipientEntry entry1, in getBetterRecipient() argument
298 return entry1; in getBetterRecipient()
301 if (entry1 == null) { in getBetterRecipient()
306 if (!TextUtils.isEmpty(entry1.getDisplayName()) in getBetterRecipient()
308 return entry1; in getBetterRecipient()
312 && TextUtils.isEmpty(entry1.getDisplayName())) { in getBetterRecipient()
317 if (!TextUtils.equals(entry1.getDisplayName(), entry1.getDestination()) in getBetterRecipient()
319 return entry1; in getBetterRecipient()
323 && TextUtils.equals(entry1.getDisplayName(), entry1.getDestination())) { in getBetterRecipient()
328 if ((entry1.getPhotoThumbnailUri() != null || entry1.getPhotoBytes() != null) in getBetterRecipient()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DFgsTempAllowListTest.java52 Pair<Long, String> entry1 = allowList.get(10001); in testIsAllowed() local
53 assertNotNull(entry1); in testIsAllowed()
54 assertEquals(entry1.second, "description1"); in testIsAllowed()
/frameworks/compile/mclinker/include/mcld/Target/
DKeyEntryMap.h29 : entry1(pEntry1), entry2(pEntry2) {} in EntryPair()
31 EntryType* entry1; member
118 return mapping->entry.pair_ptr->entry1; in lookUpFirstEntry()
131 return mapping->entry.pair_ptr->entry1; in lookUpFirstEntry()
/frameworks/base/core/jni/
Dandroid_hardware_camera2_DngCreator.cpp1704 camera_metadata_entry entry1 = in DngCreator_setup() local
1706 BAIL_IF_EMPTY_RET_NULL_SP(entry1, env, TAG_CALIBRATIONILLUMINANT1, writer); in DngCreator_setup()
1712 uint16_t ref1 = entry1.data.u8[0]; in DngCreator_setup()
1726 camera_metadata_entry entry1 = in DngCreator_setup() local
1728 BAIL_IF_EMPTY_RET_NULL_SP(entry1, env, TAG_COLORMATRIX1, writer); in DngCreator_setup()
1730 int32_t colorTransform1[entry1.count * 2]; in DngCreator_setup()
1733 for(size_t i = 0; i < entry1.count; ++i) { in DngCreator_setup()
1734 colorTransform1[ctr++] = entry1.data.r[i].numerator; in DngCreator_setup()
1735 colorTransform1[ctr++] = entry1.data.r[i].denominator; in DngCreator_setup()
1738 BAIL_IF_INVALID_RET_NULL_SP(writer->addEntry(TAG_COLORMATRIX1, entry1.count, in DngCreator_setup()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/
DConversationCoordinator.kt145 override fun compare(entry1: ListEntry, entry2: ListEntry): Int { in <lambda>()
146 val type1 = getPeopleType(entry1) in <lambda>()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DPackageDynamicCodeLoadingTests.java110 Entry entry1 = new Entry("owning.package1", "/path/file1", 'D', 10, "loading.package1"); in testRecord_changeUserForFile_ignored() local
113 PackageDynamicCodeLoading info = makePackageDcl(entry1); in testRecord_changeUserForFile_ignored()
116 assertHasEntries(info, entry1); in testRecord_changeUserForFile_ignored()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/appops/
DAppOpsControllerTest.java264 AppOpsManager.OpEntry entry1 = mock(AppOpsManager.OpEntry.class); in startListening_fetchesCurrentActive_multipleEntries() local
265 when(entry1.getOpStr()).thenReturn(AppOpsManager.OPSTR_PHONE_CALL_MICROPHONE); in startListening_fetchesCurrentActive_multipleEntries()
268 when(entry1.getAttributedOpEntries()).thenReturn(Map.of("tag", attributed1)); in startListening_fetchesCurrentActive_multipleEntries()
282 when(packageOps.getOps()).thenReturn(List.of(entry1, entry2, entry3)); in startListening_fetchesCurrentActive_multipleEntries()
/frameworks/libs/binary_translation/tests/ndk_program_tests/
Dfile_test.cc630 int ScandirComparator(const struct dirent** entry1, const struct dirent** entry2) { in ScandirComparator() argument
631 return strcmp((*entry1)->d_name, (*entry2)->d_name); in ScandirComparator()