/frameworks/opt/chips/tests/src/com/android/ex/chips/ |
D | RecipientAlternatesAdapterTest.java | 116 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 …]
|
D | ChipsTest.java | 1041 final RecipientEntry entry1 = view.createTokenizedEntry(phone1); in testCreateTokenizedEntryForPhone() local 1042 final String destination1 = entry1.getDestination(); in testCreateTokenizedEntryForPhone()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/ |
D | NotifCollectionTest.java | 202 NotificationEntry entry1 = buildNotif(TEST_PACKAGE, 1) in testEventDispatchedWhenNotifBatchPosted() local 214 new CoalescedEvent(entry1.getKey(), 0, entry1.getSbn(), entry1.getRanking(), null), in testEventDispatchedWhenNotifBatchPosted() 224 assertEquals(entry1.getSbn(), capturedAdds.get(0).getSbn()); in testEventDispatchedWhenNotifBatchPosted() 225 assertEquals(entry1.getRanking(), capturedAdds.get(0).getRanking()); in testEventDispatchedWhenNotifBatchPosted() 292 NotificationEntry entry1 = mCollectionListener.getEntry(notif1.key); in testRankingsAreUpdatedForOtherNotifs() local 301 assertEquals(56, entry1.getRanking().getRank()); in testRankingsAreUpdatedForOtherNotifs() 314 NotificationEntry entry1 = mCollectionListener.getEntry(notif1.key); in testRankingUpdateIsProperlyIssuedToEveryone() local 342 assertEquals(newRanking1, entry1.getRanking()); in testRankingUpdateIsProperlyIssuedToEveryone() 355 NotificationEntry entry1 = mCollectionListener.getEntry(notif1.key); in testNotifEntriesAreNotPersistedAcrossRemovalAndReposting() local 363 assertNotEquals(entry2, entry1); in testNotifEntriesAreNotPersistedAcrossRemovalAndReposting() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | NotificationViewHierarchyManagerTest.java | 130 NotificationEntry entry1 = createEntry(); in testNotificationsBecomingBundled() local 135 mListContainer.addContainerView(entry1.getRow()); in testNotificationsBecomingBundled() 138 Lists.newArrayList(entry0, entry1, entry2)); in testNotificationsBecomingBundled() 142 when(mGroupManager.isChildInGroupWithSummary(entry1.getSbn())).thenReturn(true); in testNotificationsBecomingBundled() 144 when(mGroupManager.getGroupSummary(entry1.getSbn())).thenReturn(entry0); in testNotificationsBecomingBundled() 150 verify(mListContainer).notifyGroupChildAdded(entry1.getRow()); in testNotificationsBecomingBundled() 159 NotificationEntry entry1 = createEntry(); in testNotificationsBecomingUnbundled() local 161 entry0.getRow().addChildNotification(entry1.getRow()); in testNotificationsBecomingUnbundled() 167 Lists.newArrayList(entry0, entry1, entry2)); in testNotificationsBecomingUnbundled() 171 when(mGroupManager.isChildInGroupWithSummary(entry1.getSbn())).thenReturn(false); in testNotificationsBecomingUnbundled() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | LooperStatsTest.java | 200 LooperStats.ExportedEntry entry1 = entries.get(0); in testMultipleMessagesDispatched() local 201 assertThat(entry1.workSourceUid).isEqualTo(-1); in testMultipleMessagesDispatched() 202 assertThat(entry1.threadName).isEqualTo("TestThread1"); in testMultipleMessagesDispatched() 203 assertThat(entry1.handlerClassName).isEqualTo("com.android.internal.os.LooperStatsTest$1"); in testMultipleMessagesDispatched() 204 assertThat(entry1.messageName).isEqualTo("0x1" /* 1 in hex */); in testMultipleMessagesDispatched() 205 assertThat(entry1.messageCount).isEqualTo(1); in testMultipleMessagesDispatched() 206 assertThat(entry1.recordedMessageCount).isEqualTo(1); in testMultipleMessagesDispatched() 207 assertThat(entry1.exceptionCount).isEqualTo(0); in testMultipleMessagesDispatched() 208 assertThat(entry1.totalLatencyMicros).isEqualTo(100); in testMultipleMessagesDispatched() 209 assertThat(entry1.maxLatencyMicros).isEqualTo(100); in testMultipleMessagesDispatched() [all …]
|
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 …]
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
D | RecipientAlternatesAdapter.java | 294 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/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/ |
D | AppOpsCoordinatorTest.java | 222 NotificationEntry entry1 = new NotificationEntryBuilder() in testAppOpsUpdateOnlyAppliedToRelevantNotificationWithStandardLayout() local 237 when(mNotifPipeline.getAllNotifs()).thenReturn(List.of(entry1, entry2, entry3_diffUser)); in testAppOpsUpdateOnlyAppliedToRelevantNotificationWithStandardLayout() 250 entry1.mActiveAppOps); in testAppOpsUpdateOnlyAppliedToRelevantNotificationWithStandardLayout() 262 NotificationEntry entry1 = 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() 289 entry1.mActiveAppOps); in testAppOpsUpdateAppliedToAllNotificationsWithStandardLayouts()
|
/frameworks/base/tools/aapt2/ |
D | ResourceTable_test.cpp | 356 auto entry1 = type->FindEntry("foo", 0x00ff); in TEST() local 357 ASSERT_THAT(entry1, NotNull()); in TEST() 358 ASSERT_THAT(entry1->id, Eq(0x00ff)); in TEST() 359 ASSERT_THAT(entry1->values[0], NotNull()); in TEST() 360 ASSERT_THAT(entry1->values[0]->value, NotNull()); in TEST() 361 ASSERT_THAT(ValueCast<BinaryPrimitive>(entry1->values[0]->value.get()), NotNull()); in TEST() 362 ASSERT_THAT(ValueCast<BinaryPrimitive>(entry1->values[0]->value.get())->value.data, Eq(0u)); in TEST() 363 ASSERT_THAT(entry1->visibility.level, Visibility::Level::kPublic); in TEST() 369 ASSERT_THAT(entry1->values[0]->value, NotNull()); in TEST()
|
/frameworks/compile/mclinker/include/mcld/Target/ |
D | KeyEntryMap.h | 29 : 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/ |
D | android_hardware_camera2_DngCreator.cpp | 1633 camera_metadata_entry entry1 = in DngCreator_setup() local 1635 BAIL_IF_EMPTY_RET_NULL_SP(entry1, env, TAG_CALIBRATIONILLUMINANT1, writer); in DngCreator_setup() 1641 uint16_t ref1 = entry1.data.u8[0]; in DngCreator_setup() 1655 camera_metadata_entry entry1 = in DngCreator_setup() local 1657 BAIL_IF_EMPTY_RET_NULL_SP(entry1, env, TAG_COLORMATRIX1, writer); in DngCreator_setup() 1659 int32_t colorTransform1[entry1.count * 2]; in DngCreator_setup() 1662 for(size_t i = 0; i < entry1.count; ++i) { in DngCreator_setup() 1663 colorTransform1[ctr++] = entry1.data.r[i].numerator; in DngCreator_setup() 1664 colorTransform1[ctr++] = entry1.data.r[i].denominator; in DngCreator_setup() 1667 BAIL_IF_INVALID_RET_NULL_SP(writer->addEntry(TAG_COLORMATRIX1, entry1.count, in DngCreator_setup() [all …]
|
/frameworks/base/tests/net/java/android/net/ |
D | NetworkStatsTest.java | 734 NetworkStats.Entry entry1 = new NetworkStats.Entry( in testFilter_NoFilter() local 747 .insertEntry(entry1) in testFilter_NoFilter() 753 assertEquals(entry1, stats.getValues(0, null)); in testFilter_NoFilter() 761 NetworkStats.Entry entry1 = new NetworkStats.Entry( in testFilter_UidFilter() local 774 .insertEntry(entry1) in testFilter_UidFilter() 788 NetworkStats.Entry entry1 = new NetworkStats.Entry( in testFilter_InterfaceFilter() local 805 .insertEntry(entry1) in testFilter_InterfaceFilter() 812 assertEquals(entry1, stats.getValues(0, null)); in testFilter_InterfaceFilter() 819 NetworkStats.Entry entry1 = new NetworkStats.Entry( in testFilter_EmptyInterfaceFilter() local 828 .insertEntry(entry1) in testFilter_EmptyInterfaceFilter() [all …]
|
/frameworks/base/wifi/tests/src/android/net/wifi/aware/ |
D | TlvBufferUtilsTest.java | 95 byte[] entry1 = { 1, 2, 3 }; in testTlvListOperations() 99 data.add(entry1); in testTlvListOperations() 110 equalTo(entry1.length + 1 + entry2.length + 1 + entry3.length + 1 + 1)); in testTlvListOperations() 112 collector.checkThat("parsedList-entry1", parsedList.get(0), equalTo(entry1)); in testTlvListOperations()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/ |
D | PackageDynamicCodeLoadingTests.java | 107 Entry entry1 = new Entry("owning.package1", "/path/file1", 'D', 10, "loading.package1"); in testRecord_changeUserForFile_throws() local 110 PackageDynamicCodeLoading info = makePackageDcl(entry1); in testRecord_changeUserForFile_throws() 113 assertHasEntries(info, entry1); in testRecord_changeUserForFile_throws()
|
/frameworks/base/tests/net/java/com/android/server/net/ |
D | NetworkStatsServiceTest.java | 754 NetworkStats.Entry entry1 = new NetworkStats.Entry( 765 .insertEntry(entry1) 773 entry1.operations = 1; 774 assertEquals(entry1, stats.getValues(0, null));
|
/frameworks/base/libs/androidfw/ |
D | AssetManager2.cpp | 987 static bool compare_bag_entries(const ResolvedBag::Entry& entry1, in compare_bag_entries() argument 989 return entry1.key < entry2.key; in compare_bag_entries()
|