/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/ |
D | NotificationViewHierarchyManagerTest.java | 129 NotificationEntry entry1 = createEntry(); in testNotificationsBecomingBundled() local 134 mListContainer.addContainerView(entry1.getRow()); in testNotificationsBecomingBundled() 137 Lists.newArrayList(entry0, entry1, entry2)); in testNotificationsBecomingBundled() 141 when(mGroupManager.isChildInGroupWithSummary(entry1.notification)).thenReturn(true); in testNotificationsBecomingBundled() 143 when(mGroupManager.getGroupSummary(entry1.notification)).thenReturn(entry0); in testNotificationsBecomingBundled() 149 verify(mListContainer).notifyGroupChildAdded(entry1.getRow()); in testNotificationsBecomingBundled() 158 NotificationEntry entry1 = createEntry(); in testNotificationsBecomingUnbundled() local 160 entry0.getRow().addChildNotification(entry1.getRow()); in testNotificationsBecomingUnbundled() 166 Lists.newArrayList(entry0, entry1, entry2)); in testNotificationsBecomingUnbundled() 170 when(mGroupManager.isChildInGroupWithSummary(entry1.notification)).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 …]
|
/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/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/tools/aapt2/ |
D | ResourceTable_test.cpp | 354 auto entry1 = type->FindEntry("foo", 0x00ff); in TEST() local 355 ASSERT_THAT(entry1, NotNull()); in TEST() 356 ASSERT_THAT(entry1->id, Eq(0x00ff)); in TEST() 357 ASSERT_THAT(entry1->values[0], NotNull()); in TEST() 358 ASSERT_THAT(entry1->values[0]->value, NotNull()); in TEST() 359 ASSERT_THAT(ValueCast<BinaryPrimitive>(entry1->values[0]->value.get()), NotNull()); in TEST() 360 ASSERT_THAT(ValueCast<BinaryPrimitive>(entry1->values[0]->value.get())->value.data, Eq(0u)); in TEST() 361 ASSERT_THAT(entry1->visibility.level, Visibility::Level::kPublic); in TEST() 367 ASSERT_THAT(entry1->values[0]->value, NotNull()); in TEST()
|
/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/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/tests/net/java/android/net/ |
D | NetworkStatsTest.java | 687 NetworkStats.Entry entry1 = new NetworkStats.Entry( in testFilter_NoFilter() local 700 .addValues(entry1) in testFilter_NoFilter() 706 assertEquals(entry1, stats.getValues(0, null)); in testFilter_NoFilter() 714 NetworkStats.Entry entry1 = new NetworkStats.Entry( in testFilter_UidFilter() local 727 .addValues(entry1) in testFilter_UidFilter() 741 NetworkStats.Entry entry1 = new NetworkStats.Entry( in testFilter_InterfaceFilter() local 758 .addValues(entry1) in testFilter_InterfaceFilter() 765 assertEquals(entry1, stats.getValues(0, null)); in testFilter_InterfaceFilter() 772 NetworkStats.Entry entry1 = new NetworkStats.Entry( in testFilter_EmptyInterfaceFilter() local 781 .addValues(entry1) in testFilter_EmptyInterfaceFilter() [all …]
|
/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 | 669 NetworkStats.Entry entry1 = new NetworkStats.Entry( in testDetailedUidStats() local 680 .addValues(entry1) in testDetailedUidStats() 688 entry1.operations = 1; in testDetailedUidStats() 689 assertEquals(entry1, stats.getValues(0, null)); in testDetailedUidStats()
|