Home
last modified time | relevance | path

Searched refs:entry2 (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/notifcollection/
DNotifCollectionInconsistencyTrackerTest.kt42 private val entry2: NotificationEntry = NotificationEntryBuilder().setId(2).build() constant in com.android.systemui.statusbar.notification.collection.notifcollection.NotifCollectionInconsistencyTrackerTest
66 newEntriesWithoutRankings = mapOfEntries(entry2), in maybeLogInconsistentRankings_logsNewlyInconsistentRanking()
70 newlyInconsistentEntries = eq(listOf(entry2)), in maybeLogInconsistentRankings_logsNewlyInconsistentRanking()
80 oldKeysWithoutRankings = setOf(entry2.key), in maybeLogInconsistentRankings_doesNotLogAlreadyInconsistentRanking()
81 newEntriesWithoutRankings = mapOfEntries(entry2), in maybeLogInconsistentRankings_doesNotLogAlreadyInconsistentRanking()
90 oldKeysWithoutRankings = setOf(entry2.key), in maybeLogInconsistentRankings_logsWhenRankingIsAdded()
92 rankingMap = rankingMapOf(entry1, entry2) in maybeLogInconsistentRankings_logsWhenRankingIsAdded()
95 newlyConsistentKeys = eq(listOf(entry2.key)), in maybeLogInconsistentRankings_logsWhenRankingIsAdded()
104 oldKeysWithoutRankings = setOf(entry2.key), in maybeLogInconsistentRankings_doesNotLogsWhenEntryIsRemoved()
172 coalescedSet.add(entry2.key) in logNewMissingNotifications_doesNotLogForConsistentSets()
[all …]
DSelfTrackingLifetimeExtenderTest.kt50 private lateinit var entry2: NotificationEntry variable in com.android.systemui.statusbar.notification.collection.notifcollection.SelfTrackingLifetimeExtenderTest
69 entry2 = NotificationEntryBuilder().setId(2).build() in setUp()
144 `when`(shouldExtend.test(entry2)).thenReturn(true) in testExtendThenEndAll()
148 assertThat(extender.isExtending(entry2.key)).isFalse() in testExtendThenEndAll()
149 assertThat(extender.maybeExtendLifetime(entry2, 0)).isTrue() in testExtendThenEndAll()
150 verify(onStarted).accept(entry2) in testExtendThenEndAll()
152 assertThat(extender.isExtending(entry2.key)).isTrue() in testExtendThenEndAll()
155 verify(callback).onEndLifetimeExtension(extender, entry2) in testExtendThenEndAll()
157 verify(onCanceled, never()).accept(entry2) in testExtendThenEndAll()
/frameworks/opt/chips/tests/src/com/android/ex/chips/
DRecipientAlternatesAdapterTest.java118 final RecipientEntry entry2 = null; in testGetBetterRecipient() local
120 assertEquals(RecipientAlternatesAdapter.getBetterRecipient(entry1, entry2), entry1); in testGetBetterRecipient()
121 assertEquals(RecipientAlternatesAdapter.getBetterRecipient(entry2, entry1), entry1); in testGetBetterRecipient()
130 final RecipientEntry entry2 = RecipientEntry.constructFakeEntry("1@android.com", true); in testGetBetterRecipient() local
132 assertEquals(RecipientAlternatesAdapter.getBetterRecipient(entry1, entry2), entry1); in testGetBetterRecipient()
133 assertEquals(RecipientAlternatesAdapter.getBetterRecipient(entry2, entry1), entry1); in testGetBetterRecipient()
143 final RecipientEntry entry2 = in testGetBetterRecipient() local
148 assertEquals(RecipientAlternatesAdapter.getBetterRecipient(entry1, entry2), entry1); in testGetBetterRecipient()
149 assertEquals(RecipientAlternatesAdapter.getBetterRecipient(entry2, entry1), entry1); in testGetBetterRecipient()
158 final RecipientEntry entry2 = in testGetBetterRecipient() local
[all …]
DChipsTest.java1047 final RecipientEntry entry2 = view.createTokenizedEntry(phone2); in testCreateTokenizedEntryForPhone() local
1048 final String destination2 = entry2.getDestination(); in testCreateTokenizedEntryForPhone()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
DNotifCollectionTest.java270 NotificationEntry entry2 = buildNotif(TEST_PACKAGE, 2) in testEventDispatchedWhenNotifBatchPosted() local
280 new CoalescedEvent(entry2.getKey(), 1, entry2.getSbn(), entry2.getRanking(), null), in testEventDispatchedWhenNotifBatchPosted()
298 assertEquals(entry2.getSbn(), capturedUpdate.getSbn()); in testEventDispatchedWhenNotifBatchPosted()
299 assertEquals(entry2.getRanking(), capturedUpdate.getRanking()); in testEventDispatchedWhenNotifBatchPosted()
414 final NotificationEntry entry2 = buildNotif(TEST_PACKAGE, 2) in testCancelScheduledBuildNotificationListEventWhenNotifUpdatedSynchronously() local
424 new CoalescedEvent(entry2.getKey(), 1, entry2.getSbn(), entry2.getRanking(), null), in testCancelScheduledBuildNotificationListEventWhenNotifUpdatedSynchronously()
495 NotificationEntry entry2 = mCollectionListener.getEntry(notif2.key); in testRankingUpdateIsProperlyIssuedToEveryone() local
523 assertEquals(newRanking2, entry2.getRanking()); in testRankingUpdateIsProperlyIssuedToEveryone()
542 NotificationEntry entry2 = mCollectionListener.getEntry(notif1.key); in testNotifEntriesAreNotPersistedAcrossRemovalAndReposting() local
543 assertNotEquals(entry2, entry1); in testNotifEntriesAreNotPersistedAcrossRemovalAndReposting()
[all …]
DNotifLiveDataStoreImplTest.kt48 val entry2 = NotificationEntryBuilder().setId(2).build() in <lambda>() constant
52 assertThat(liveDataStoreImpl.activeNotifList.value).isEqualTo(listOf(entry1, entry2)) in <lambda>()
60 liveDataStoreImpl.setActiveNotifList(listOf(entry1, entry2)) in <lambda>()
67 val entry2 = NotificationEntryBuilder().setId(2).build() in <lambda>() constant
68 val mutableInputList = mutableListOf(entry1, entry2) in <lambda>()
73 assertThat(liveDataStoreImpl.activeNotifList.value).isEqualTo(listOf(entry1, entry2)) in <lambda>()
88 val entry2 = NotificationEntryBuilder().setId(2).build() in <lambda>() constant
98 assertThat(liveDataStoreImpl.activeNotifList.value).isEqualTo(listOf(entry1, entry2)) in <lambda>()
102 liveDataStoreImpl.setActiveNotifList(mutableListOf(entry1, entry2)) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/
DGutsCoordinatorTest.kt53 private lateinit var entry2: NotificationEntry variable in com.android.systemui.statusbar.notification.collection.coordinator.GutsCoordinatorTest
75 entry2 = NotificationEntryBuilder().setId(2).build() in setUp()
104 assertThat(notifLifetimeExtender.maybeExtendLifetime(entry2, 0)).isFalse() in testTwoEntryLifetimeExtension()
107 assertThat(notifLifetimeExtender.maybeExtendLifetime(entry2, 0)).isFalse() in testTwoEntryLifetimeExtension()
108 notifGutsViewListener.onGutsOpen(entry2, notificationGuts) in testTwoEntryLifetimeExtension()
110 assertThat(notifLifetimeExtender.maybeExtendLifetime(entry2, 0)).isTrue() in testTwoEntryLifetimeExtension()
114 assertThat(notifLifetimeExtender.maybeExtendLifetime(entry2, 0)).isTrue() in testTwoEntryLifetimeExtension()
115 notifGutsViewListener.onGutsClose(entry2) in testTwoEntryLifetimeExtension()
116 verify(lifetimeExtenderCallback).onEndLifetimeExtension(notifLifetimeExtender, entry2) in testTwoEntryLifetimeExtension()
118 assertThat(notifLifetimeExtender.maybeExtendLifetime(entry2, 0)).isFalse() in testTwoEntryLifetimeExtension()
DRowAppearanceCoordinatorTest.kt52 private lateinit var entry2: NotificationEntry variable in com.android.systemui.statusbar.notification.collection.coordinator.RowAppearanceCoordinatorTest
80 entry2 = NotificationEntryBuilder().setSection(section2).build() in setUp()
87 beforeRenderListListener.onBeforeRenderList(listOf(entry1, entry2)) in testSetSystemExpandedOnlyOnFirst()
90 afterRenderEntryListener.onAfterRenderEntry(entry2, controller2) in testSetSystemExpandedOnlyOnFirst()
98 beforeRenderListListener.onBeforeRenderList(listOf(entry1, entry2)) in testSetSystemExpandedNeverIfMinimized()
101 afterRenderEntryListener.onAfterRenderEntry(entry2, controller2) in testSetSystemExpandedNeverIfMinimized()
DRowAlertTimeCoordinatorTest.kt65 val entry2 = NotificationEntryBuilder().setLastAudiblyAlertedMs(20).build() in testSetLastAudiblyAlerted() constant
77 val entries = listOf(entry1, summary, child1, child2, entry2) in testSetLastAudiblyAlerted()
79 beforeFinalizeFilterListener.onBeforeFinalizeFilter(listOf(entry1, group, entry2)) in testSetLastAudiblyAlerted()
92 entry2 to 20L, in testSetLastAudiblyAlerted()
DShadeEventCoordinatorTest.kt51 private lateinit var entry2: NotificationEntry variable in com.android.systemui.statusbar.notification.collection.coordinator.ShadeEventCoordinatorTest
77 entry2 = NotificationEntryBuilder().setId(2).build() in setUp()
101 onBeforeRenderListListener.onBeforeRenderList(listOf(entry2)) in testUserCancelOneOfTwoNotifications()
109 onBeforeRenderListListener.onBeforeRenderList(listOf(entry2)) in testAppCancelOneOfTwoNotifications()
DRemoteInputCoordinatorTest.kt65 private lateinit var entry2: NotificationEntry variable in com.android.systemui.statusbar.notification.collection.coordinator.RemoteInputCoordinatorTest
97 entry2 = NotificationEntryBuilder().setId(2).build() in setUp()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DLooperStatsTest.java219 LooperStats.ExportedEntry entry2 = entries.get(1); in testMultipleMessagesDispatched() local
220 assertThat(entry2.workSourceUid).isEqualTo(-1); in testMultipleMessagesDispatched()
221 assertThat(entry2.threadName).isEqualTo("TestThread1"); in testMultipleMessagesDispatched()
222 assertThat(entry2.handlerClassName).isEqualTo( in testMultipleMessagesDispatched()
224 assertThat(entry2.messageName).isEqualTo("0x3e8" /* 1000 in hex */); in testMultipleMessagesDispatched()
225 assertThat(entry2.messageCount).isEqualTo(2); in testMultipleMessagesDispatched()
226 assertThat(entry2.recordedMessageCount).isEqualTo(1); in testMultipleMessagesDispatched()
227 assertThat(entry2.exceptionCount).isEqualTo(0); in testMultipleMessagesDispatched()
228 assertThat(entry2.totalLatencyMicros).isEqualTo(100); in testMultipleMessagesDispatched()
229 assertThat(entry2.maxLatencyMicros).isEqualTo(100); in testMultipleMessagesDispatched()
[all …]
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DKernelWakelockReaderTest.java273 KernelWakelockStats.Entry entry2 = staleStats.get("WakeLock2"); in testTwoWakeLockInfos() local
274 assertEquals(20, entry2.count); in testTwoWakeLockInfos()
275 assertEquals(2000 * 1000, entry2.totalTimeUs); // Microseconds in testTwoWakeLockInfos()
384 KernelWakelockStats.Entry entry2 = staleStats.get("WakeLock2"); in testAggregateStatsBothKernelAndNativeWakelocks() local
385 assertEquals(10, entry2.count); in testAggregateStatsBothKernelAndNativeWakelocks()
386 assertEquals(1000 * 1000, entry2.totalTimeUs); // Microseconds in testAggregateStatsBothKernelAndNativeWakelocks()
415 KernelWakelockStats.Entry entry2 = staleStats.get("WakeLock2"); in testAggregateStatsUpdate() local
416 assertEquals(46, entry2.count); in testAggregateStatsUpdate()
417 assertEquals(345 * 1000, entry2.totalTimeUs); // Microseconds in testAggregateStatsUpdate()
448 entry2 = staleStats.get("WakeLock4"); in testAggregateStatsUpdate()
[all …]
DWifiPowerCalculatorTest.java111 NetworkStats.Entry entry2 = mock(NetworkStats.Entry.class); in buildNetworkStats() local
113 when(entry2.getUid()).thenReturn(Process.WIFI_UID); in buildNetworkStats()
114 when(entry2.getMetered()).thenReturn(METERED_NO); in buildNetworkStats()
115 when(entry2.getRoaming()).thenReturn(ROAMING_NO); in buildNetworkStats()
116 when(entry2.getDefaultNetwork()).thenReturn(DEFAULT_NETWORK_NO); in buildNetworkStats()
117 when(entry2.getRxBytes()).thenReturn(1111L); in buildNetworkStats()
118 when(entry2.getRxPackets()).thenReturn(111L); in buildNetworkStats()
119 when(entry2.getTxBytes()).thenReturn(2222L); in buildNetworkStats()
120 when(entry2.getTxPackets()).thenReturn(22L); in buildNetworkStats()
121 when(entry2.getOperations()).thenReturn(111L); in buildNetworkStats()
[all …]
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientAlternatesAdapter.java295 final RecipientEntry entry2) { in getBetterRecipient() argument
297 if (entry2 == null) { in getBetterRecipient()
302 return entry2; in getBetterRecipient()
307 && TextUtils.isEmpty(entry2.getDisplayName())) { in getBetterRecipient()
311 if (!TextUtils.isEmpty(entry2.getDisplayName()) in getBetterRecipient()
313 return entry2; in getBetterRecipient()
318 && TextUtils.equals(entry2.getDisplayName(), entry2.getDestination())) { in getBetterRecipient()
322 if (!TextUtils.equals(entry2.getDisplayName(), entry2.getDestination()) in getBetterRecipient()
324 return entry2; in getBetterRecipient()
329 && (entry2.getPhotoThumbnailUri() == null && entry2.getPhotoBytes() == null)) { in getBetterRecipient()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DFgsTempAllowListTest.java57 Pair<Long, String> entry2 = allowList.get(10002); in testIsAllowed() local
58 assertNotNull(entry2); in testIsAllowed()
59 assertEquals(entry2.second, "description2"); in testIsAllowed()
/frameworks/compile/mclinker/include/mcld/Target/
DKeyEntryMap.h29 : entry1(pEntry1), entry2(pEntry2) {} in EntryPair()
32 EntryType* entry2; member
144 return mapping->entry.pair_ptr->entry2; in lookUpSecondEntry()
157 return mapping->entry.pair_ptr->entry2; in lookUpSecondEntry()
/frameworks/base/core/jni/
Dandroid_hardware_camera2_DngCreator.cpp1707 camera_metadata_entry entry2 = in DngCreator_setup() local
1709 if (entry2.count == 0) { in DngCreator_setup()
1718 uint16_t ref2 = entry2.data.u8[0]; in DngCreator_setup()
1742 camera_metadata_entry entry2 = characteristics.find(ANDROID_SENSOR_COLOR_TRANSFORM2); in DngCreator_setup() local
1743 BAIL_IF_EMPTY_RET_NULL_SP(entry2, env, TAG_COLORMATRIX2, writer); in DngCreator_setup()
1744 int32_t colorTransform2[entry2.count * 2]; in DngCreator_setup()
1747 for(size_t i = 0; i < entry2.count; ++i) { in DngCreator_setup()
1748 colorTransform2[ctr++] = entry2.data.r[i].numerator; in DngCreator_setup()
1749 colorTransform2[ctr++] = entry2.data.r[i].denominator; in DngCreator_setup()
1752 BAIL_IF_INVALID_RET_NULL_SP(writer->addEntry(TAG_COLORMATRIX2, entry2.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>()
147 val type2 = getPeopleType(entry2) in <lambda>()
/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/framework/common/
DSettingsEntryTest.kt171 val entry2 = entryBuilder.clearSearchDataFn().build() in testSetAttributes() constant
172 assertThat(entry2.isAllowSearch).isFalse() in testSetAttributes()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DPackageDynamicCodeLoadingTests.java111 Entry entry2 = new Entry("owning.package1", "/path/file1", 'D', 20, "loading.package1"); in testRecord_changeUserForFile_ignored() local
115 assertThat(record(info, entry2)).isFalse(); in testRecord_changeUserForFile_ignored()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/appops/
DAppOpsControllerTest.java270 AppOpsManager.OpEntry entry2 = mock(AppOpsManager.OpEntry.class); in startListening_fetchesCurrentActive_multipleEntries() local
271 when(entry2.getOpStr()).thenReturn(AppOpsManager.OPSTR_CAMERA); in startListening_fetchesCurrentActive_multipleEntries()
274 when(entry2.getAttributedOpEntries()).thenReturn(Map.of("tag", attributed2)); 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()