/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/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | NotificationViewHierarchyManagerTest.java | 134 NotificationEntry entry2 = createEntry(); in testNotificationsBecomingBundled() local 139 mListContainer.addContainerView(entry2.getRow()); in testNotificationsBecomingBundled() 141 Lists.newArrayList(entry0, entry1, entry2)); in testNotificationsBecomingBundled() 146 when(mGroupManager.isChildInGroupWithSummary(entry2.notification)).thenReturn(true); in testNotificationsBecomingBundled() 148 when(mGroupManager.getGroupSummary(entry2.notification)).thenReturn(entry0); in testNotificationsBecomingBundled() 154 verify(mListContainer).notifyGroupChildAdded(entry2.getRow()); in testNotificationsBecomingBundled() 163 NotificationEntry entry2 = createEntry(); in testNotificationsBecomingUnbundled() local 165 entry0.getRow().addChildNotification(entry2.getRow()); in testNotificationsBecomingUnbundled() 170 Lists.newArrayList(entry0, entry1, entry2)); in testNotificationsBecomingUnbundled() 175 when(mGroupManager.isChildInGroupWithSummary(entry2.notification)).thenReturn(false); in testNotificationsBecomingUnbundled() [all …]
|
/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/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/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 | 363 auto entry2 = type->FindEntry("foo", 0x0100); in TEST() local 364 ASSERT_THAT(entry2, NotNull()); in TEST() 365 ASSERT_THAT(entry2->id, Eq(0x0100)); in TEST() 366 ASSERT_THAT(entry2->values[0], NotNull()); in TEST() 368 ASSERT_THAT(ValueCast<BinaryPrimitive>(entry2->values[0]->value.get()), NotNull()); in TEST() 369 ASSERT_THAT(ValueCast<BinaryPrimitive>(entry2->values[0]->value.get())->value.data, Eq(1u)); in TEST() 370 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 | 776 NetworkStats.Entry entry2 = new NetworkStats.Entry( 786 .insertEntry(entry2) 795 entry2.operations = 1; 796 assertEquals(entry2, stats.getValues(1, null));
|