/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/ |
D | NotifCollectionTest.java | 205 NotificationEntry entry2 = buildNotif(TEST_PACKAGE, 2) in testEventDispatchedWhenNotifBatchPosted() local 215 new CoalescedEvent(entry2.getKey(), 1, entry2.getSbn(), entry2.getRanking(), null), in testEventDispatchedWhenNotifBatchPosted() 233 assertEquals(entry2.getSbn(), capturedUpdate.getSbn()); in testEventDispatchedWhenNotifBatchPosted() 234 assertEquals(entry2.getRanking(), capturedUpdate.getRanking()); in testEventDispatchedWhenNotifBatchPosted() 315 NotificationEntry entry2 = mCollectionListener.getEntry(notif2.key); in testRankingUpdateIsProperlyIssuedToEveryone() local 343 assertEquals(newRanking2, entry2.getRanking()); in testRankingUpdateIsProperlyIssuedToEveryone() 362 NotificationEntry entry2 = mCollectionListener.getEntry(notif1.key); in testNotifEntriesAreNotPersistedAcrossRemovalAndReposting() local 363 assertNotEquals(entry2, entry1); in testNotifEntriesAreNotPersistedAcrossRemovalAndReposting() 371 NotificationEntry entry2 = mCollectionListener.getEntry(notif2.key); in testDismissNotificationSentToSystemServer() local 374 DismissedByUserStats stats = defaultStats(entry2); in testDismissNotificationSentToSystemServer() [all …]
|
/frameworks/opt/chips/tests/src/com/android/ex/chips/ |
D | RecipientAlternatesAdapterTest.java | 118 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 …]
|
D | ChipsTest.java | 1046 final RecipientEntry entry2 = view.createTokenizedEntry(phone2); in testCreateTokenizedEntryForPhone() local 1047 final String destination2 = entry2.getDestination(); in testCreateTokenizedEntryForPhone()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | KernelWakelockReaderTest.java | 238 KernelWakelockStats.Entry entry2 = staleStats.get("WakeLock2"); in testTwoWakeLockInfos() local 239 assertEquals(20, entry2.mCount); in testTwoWakeLockInfos() 240 assertEquals(2000 * 1000, entry2.mTotalTime); // Microseconds in testTwoWakeLockInfos() 344 KernelWakelockStats.Entry entry2 = staleStats.get("WakeLock2"); in testAggregateStatsBothKernelAndNativeWakelocks() local 345 assertEquals(10, entry2.mCount); in testAggregateStatsBothKernelAndNativeWakelocks() 346 assertEquals(1000 * 1000, entry2.mTotalTime); // Microseconds in testAggregateStatsBothKernelAndNativeWakelocks() 374 KernelWakelockStats.Entry entry2 = staleStats.get("WakeLock2"); in testAggregateStatsUpdate() local 375 assertEquals(46, entry2.mCount); in testAggregateStatsUpdate() 376 assertEquals(345 * 1000, entry2.mTotalTime); // Microseconds in testAggregateStatsUpdate() 407 entry2 = staleStats.get("WakeLock4"); in testAggregateStatsUpdate() [all …]
|
D | LooperStatsTest.java | 214 LooperStats.ExportedEntry entry2 = entries.get(1); in testMultipleMessagesDispatched() local 215 assertThat(entry2.workSourceUid).isEqualTo(-1); in testMultipleMessagesDispatched() 216 assertThat(entry2.threadName).isEqualTo("TestThread1"); in testMultipleMessagesDispatched() 217 assertThat(entry2.handlerClassName).isEqualTo( in testMultipleMessagesDispatched() 219 assertThat(entry2.messageName).isEqualTo("0x3e8" /* 1000 in hex */); in testMultipleMessagesDispatched() 220 assertThat(entry2.messageCount).isEqualTo(2); in testMultipleMessagesDispatched() 221 assertThat(entry2.recordedMessageCount).isEqualTo(1); in testMultipleMessagesDispatched() 222 assertThat(entry2.exceptionCount).isEqualTo(0); in testMultipleMessagesDispatched() 223 assertThat(entry2.totalLatencyMicros).isEqualTo(100); in testMultipleMessagesDispatched() 224 assertThat(entry2.maxLatencyMicros).isEqualTo(100); in testMultipleMessagesDispatched() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | NotificationViewHierarchyManagerTest.java | 131 NotificationEntry entry2 = createEntry(); in testNotificationsBecomingBundled() local 136 mListContainer.addContainerView(entry2.getRow()); in testNotificationsBecomingBundled() 138 Lists.newArrayList(entry0, entry1, entry2)); in testNotificationsBecomingBundled() 143 when(mGroupManager.isChildInGroupWithSummary(entry2.getSbn())).thenReturn(true); in testNotificationsBecomingBundled() 145 when(mGroupManager.getGroupSummary(entry2.getSbn())).thenReturn(entry0); in testNotificationsBecomingBundled() 151 verify(mListContainer).notifyGroupChildAdded(entry2.getRow()); in testNotificationsBecomingBundled() 160 NotificationEntry entry2 = createEntry(); in testNotificationsBecomingUnbundled() local 162 entry0.getRow().addChildNotification(entry2.getRow()); in testNotificationsBecomingUnbundled() 167 Lists.newArrayList(entry0, entry1, entry2)); in testNotificationsBecomingUnbundled() 172 when(mGroupManager.isChildInGroupWithSummary(entry2.getSbn())).thenReturn(false); in testNotificationsBecomingUnbundled() [all …]
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
D | RecipientAlternatesAdapter.java | 295 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/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/ |
D | AppOpsCoordinatorTest.java | 227 NotificationEntry entry2 = new NotificationEntryBuilder() in testAppOpsUpdateOnlyAppliedToRelevantNotificationWithStandardLayout() local 237 when(mNotifPipeline.getAllNotifs()).thenReturn(List.of(entry1, entry2, entry3_diffUser)); in testAppOpsUpdateOnlyAppliedToRelevantNotificationWithStandardLayout() 241 .thenReturn(new ArraySet<>(List.of(entry2.getKey()))); in testAppOpsUpdateOnlyAppliedToRelevantNotificationWithStandardLayout() 253 entry2.mActiveAppOps); in testAppOpsUpdateOnlyAppliedToRelevantNotificationWithStandardLayout() 267 NotificationEntry entry2 = new NotificationEntryBuilder() in testAppOpsUpdateAppliedToAllNotificationsWithStandardLayouts() local 277 when(mNotifPipeline.getAllNotifs()).thenReturn(List.of(entry1, entry2, entry3)); in testAppOpsUpdateAppliedToAllNotificationsWithStandardLayouts() 279 .thenReturn(new ArraySet<>(List.of(entry1.getKey(), entry2.getKey(), in testAppOpsUpdateAppliedToAllNotificationsWithStandardLayouts() 292 entry2.mActiveAppOps); in testAppOpsUpdateAppliedToAllNotificationsWithStandardLayouts()
|
/frameworks/compile/mclinker/include/mcld/Target/ |
D | KeyEntryMap.h | 29 : 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/tools/aapt2/ |
D | ResourceTable_test.cpp | 365 auto entry2 = type->FindEntry("foo", 0x0100); in TEST() local 366 ASSERT_THAT(entry2, NotNull()); in TEST() 367 ASSERT_THAT(entry2->id, Eq(0x0100)); in TEST() 368 ASSERT_THAT(entry2->values[0], NotNull()); in TEST() 370 ASSERT_THAT(ValueCast<BinaryPrimitive>(entry2->values[0]->value.get()), NotNull()); in TEST() 371 ASSERT_THAT(ValueCast<BinaryPrimitive>(entry2->values[0]->value.get())->value.data, Eq(1u)); in TEST() 372 ASSERT_THAT(entry2->visibility.level, Visibility::Level::kPrivate); in TEST()
|
/frameworks/base/core/jni/ |
D | android_hardware_camera2_DngCreator.cpp | 1636 camera_metadata_entry entry2 = in DngCreator_setup() local 1638 if (entry2.count == 0) { in DngCreator_setup() 1647 uint16_t ref2 = entry2.data.u8[0]; in DngCreator_setup() 1671 camera_metadata_entry entry2 = characteristics.find(ANDROID_SENSOR_COLOR_TRANSFORM2); in DngCreator_setup() local 1672 BAIL_IF_EMPTY_RET_NULL_SP(entry2, env, TAG_COLORMATRIX2, writer); in DngCreator_setup() 1673 int32_t colorTransform2[entry2.count * 2]; in DngCreator_setup() 1676 for(size_t i = 0; i < entry2.count; ++i) { in DngCreator_setup() 1677 colorTransform2[ctr++] = entry2.data.r[i].numerator; in DngCreator_setup() 1678 colorTransform2[ctr++] = entry2.data.r[i].denominator; in DngCreator_setup() 1681 BAIL_IF_INVALID_RET_NULL_SP(writer->addEntry(TAG_COLORMATRIX2, entry2.count, in DngCreator_setup() [all …]
|
/frameworks/base/wifi/tests/src/android/net/wifi/aware/ |
D | TlvBufferUtilsTest.java | 96 byte[] entry2 = { 4, 5 }; in testTlvListOperations() 100 data.add(entry2); in testTlvListOperations() 110 equalTo(entry1.length + 1 + entry2.length + 1 + entry3.length + 1 + 1)); in testTlvListOperations() 113 collector.checkThat("parsedList-entry2", parsedList.get(1), equalTo(entry2)); in testTlvListOperations()
|
/frameworks/base/tests/net/java/android/net/ |
D | NetworkStatsTest.java | 738 NetworkStats.Entry entry2 = new NetworkStats.Entry( in testFilter_NoFilter() local 748 .insertEntry(entry2) in testFilter_NoFilter() 754 assertEquals(entry2, stats.getValues(1, null)); in testFilter_NoFilter() 765 NetworkStats.Entry entry2 = new NetworkStats.Entry( in testFilter_UidFilter() local 775 .insertEntry(entry2) in testFilter_UidFilter() 780 assertEquals(entry2, stats.getValues(0, null)); in testFilter_UidFilter() 792 NetworkStats.Entry entry2 = new NetworkStats.Entry( in testFilter_InterfaceFilter() local 806 .insertEntry(entry2) in testFilter_InterfaceFilter() 823 NetworkStats.Entry entry2 = new NetworkStats.Entry( in testFilter_EmptyInterfaceFilter() local 829 .insertEntry(entry2); in testFilter_EmptyInterfaceFilter() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/ |
D | PackageDynamicCodeLoadingTests.java | 108 Entry entry2 = new Entry("owning.package1", "/path/file1", 'D', 20, "loading.package1"); in testRecord_changeUserForFile_throws() local 112 assertThrows(() -> record(info, entry2)); in testRecord_changeUserForFile_throws()
|
/frameworks/base/tests/net/java/com/android/server/net/ |
D | NetworkStatsServiceTest.java | 756 NetworkStats.Entry entry2 = new NetworkStats.Entry( 766 .insertEntry(entry2) 775 entry2.operations = 1; 776 assertEquals(entry2, stats.getValues(1, null));
|
/frameworks/base/libs/androidfw/ |
D | AssetManager2.cpp | 988 const ResolvedBag::Entry& entry2) { in compare_bag_entries() argument 989 return entry1.key < entry2.key; in compare_bag_entries()
|