Home
last modified time | relevance | path

Searched refs:addEntry (Results 1 – 25 of 32) sorted by relevance

12

/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/table/packed/
DPackedTableReaderWriterTest.java108 writer.addEntry(1, maxRepresentableValue); in entryGetValue_int()
128 writer.addEntry(maxKey, maxRepresentableValue); in entryGetValue_long()
133 writer.addEntry(minKey, minRepresentableValue); in entryGetValue_long()
155 assertThrows(IllegalArgumentException.class, () -> writer.addEntry(1, maxUnsignedInt + 1)); in valueSizeMax_unsigned()
156 assertThrows(IllegalArgumentException.class, () -> writer.addEntry(1, minUnsignedInt - 1)); in valueSizeMax_unsigned()
158 writer.addEntry(1, maxUnsignedInt); in valueSizeMax_unsigned()
159 writer.addEntry(2, minUnsignedInt); in valueSizeMax_unsigned()
179 assertThrows(IllegalArgumentException.class, () -> writer.addEntry(1, maxSignedInt + 1)); in valueSizeMax_signed()
180 assertThrows(IllegalArgumentException.class, () -> writer.addEntry(1, minSignedInt - 1)); in valueSizeMax_signed()
182 writer.addEntry(1, maxSignedInt); in valueSizeMax_signed()
[all …]
DIntValuePackedTableTest.java67 () -> writer.addEntry(1, maxUnsignedInt + 1)); in valueSizeMax_unsigned()
69 () -> writer.addEntry(1, minUnsignedInt - 1)); in valueSizeMax_unsigned()
70 writer.addEntry(1, maxUnsignedInt); in valueSizeMax_unsigned()
71 writer.addEntry(2, minUnsignedInt); in valueSizeMax_unsigned()
90 () -> writer.addEntry(1, maxSignedInt + 1)); in valueSizeMax_signed()
92 () -> writer.addEntry(1, minSignedInt - 1)); in valueSizeMax_signed()
93 writer.addEntry(1, maxSignedInt); in valueSizeMax_signed()
94 writer.addEntry(2, minSignedInt); in valueSizeMax_signed()
111 writer.addEntry(100, 1); in addEntry_outOfOrder()
112 assertThrows(IllegalArgumentException.class, () -> writer.addEntry(1, 2)); in addEntry_outOfOrder()
[all …]
/packages/modules/Connectivity/tests/common/java/android/net/netstats/
DNetworkStatsApiTest.kt75 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_DEFAULT, TAG_NONE, in setUp()
77 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_DEFAULT, TAG_NONE, in setUp()
79 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_DEFAULT, TAG_NONE, in setUp()
81 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_FOREGROUND, TAG_NONE, in setUp()
84 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_DEFAULT, TAG_NONE, in setUp()
86 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_DEFAULT, 0x80, in setUp()
88 .addEntry(Entry(TEST_IFACE, TEST_UID2, SET_DEFAULT, TAG_NONE, in setUp()
90 .addEntry(Entry(IFACE_VT, TEST_UID1, SET_DEFAULT, TAG_NONE, in setUp()
96 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_DEFAULT, 0x80, in setUp()
98 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_FOREGROUND, TAG_NONE, in setUp()
[all …]
DNetworkStatsHistoryTest.kt50 .addEntry(entry1) in <lambda>()
57 .addEntry(entry1).addEntry(entry2).addEntry(entry3) in <lambda>()
80 .addEntry(entry1).addEntry(entry2).addEntry(entry3) in <lambda>()
81 .addEntry(entry4).addEntry(entry5).build() in <lambda>()
DNetworkStatsCollectionTest.kt50 .addEntry(entry1) in testBuilder()
51 .addEntry(entry2) in testBuilder()
55 .addEntry(key1, history1) in testBuilder()
56 .addEntry(key2, history2) in testBuilder()
/packages/apps/Contacts/src/com/android/contacts/model/
DRawContactModifier.java365 state.addEntry(child); in insertChild()
718 boolean addEntry = true; in parseValues()
724 addEntry = false; in parseValues()
735 addEntry = false; in parseValues()
738 if (addEntry) { in parseValues()
739 addEntry = adjustType(entry, entries, kind); in parseValues()
742 if (addEntry) { in parseValues()
743 state.addEntry(entry); in parseValues()
747 boolean addEntry = true; in parseValues()
751 addEntry = false; in parseValues()
[all …]
DRawContactDelta.java94 rawContactDelta.addEntry(ValuesDelta.fromBefore(values)); in fromBefore()
135 local.addEntry(merged); in mergeAfter()
279 public ValuesDelta addEntry(ValuesDelta entry) { in addEntry() method in RawContactDelta
636 this.addEntry(child); in readFromParcel()
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DRawContactModifierTests.java484 state.addEntry(ValuesDelta.fromBefore(before)); in testTrimEmptyUntouched()
843 oldState.addEntry(ValuesDelta.fromAfter(mockNameValues)); in testMigrateNameFromGoogleToExchange()
870 oldState.addEntry(ValuesDelta.fromAfter(mockNameValues)); in testMigratePostalFromGoogleToExchange()
897 oldState.addEntry(ValuesDelta.fromAfter(mockNameValues)); in testMigratePostalFromExchangeToGoogle()
936 oldState.addEntry(ValuesDelta.fromAfter(mockNameValues)); in testMigrateEventCommon()
961 oldState.addEntry(ValuesDelta.fromAfter(mockNameValues)); in testMigrateEventFromGoogleToExchange2()
967 oldState.addEntry(ValuesDelta.fromAfter(mockNameValues)); in testMigrateEventFromGoogleToExchange2()
993 oldState.addEntry(ValuesDelta.fromAfter(mockNameValues)); in testMigrateEmailFromGoogleToExchange()
998 oldState.addEntry(ValuesDelta.fromAfter(mockNameValues)); in testMigrateEmailFromGoogleToExchange()
1003 oldState.addEntry(ValuesDelta.fromAfter(mockNameValues)); in testMigrateEmailFromGoogleToExchange()
[all …]
DRawContactDeltaTests.java105 source.addEntry(ValuesDelta.fromAfter(phone)); in testParcelChangesInsert()
181 source.addEntry(ValuesDelta.fromAfter(phone)); in testEntityDiffNoneInsert()
224 source.addEntry(ValuesDelta.fromAfter(phone)); in testEntityDiffUpdateInsert()
358 source.addEntry(ValuesDelta.fromAfter(phone)); in testEntityDiffInsertInsert()
DRawContactDeltaListTests.java139 after.addEntry(ValuesDelta.fromAfter(entry)); in buildAfterEntity()
168 match.addEntry(ValuesDelta.fromAfter(values)); in insertPhone()
472 first.getByRawContactId(CONTACT_BOB).addEntry(bluePhone); in testMergeDataLocalInsertRemoteInsert()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DOffloadControllerTest.java460 .addEntry(buildTestEntry(STATS_PER_IFACE, mobileIface, 999, 99999)) in testGetForwardedStats()
461 .addEntry(buildTestEntry(STATS_PER_IFACE, ethernetIface, 12345, 54321)); in testGetForwardedStats()
464 .addEntry(buildTestEntry(STATS_PER_UID, mobileIface, 999, 99999)) in testGetForwardedStats()
465 .addEntry(buildTestEntry(STATS_PER_UID, ethernetIface, 12345, 54321)); in testGetForwardedStats()
491 .addEntry(buildTestEntry(STATS_PER_IFACE, mobileIface, 999, 99999)) in testGetForwardedStats()
492 .addEntry(buildTestEntry(STATS_PER_IFACE, ethernetIface, 112345, 154321)); in testGetForwardedStats()
495 .addEntry(buildTestEntry(STATS_PER_UID, mobileIface, 999, 99999)) in testGetForwardedStats()
496 .addEntry(buildTestEntry(STATS_PER_UID, ethernetIface, 112345, 154321)); in testGetForwardedStats()
504 .addEntry(buildTestEntry(STATS_PER_IFACE, mobileIface, 0, 0)) in testGetForwardedStats()
505 .addEntry(buildTestEntry(STATS_PER_IFACE, ethernetIface, 100000, 100000)); in testGetForwardedStats()
[all …]
DBpfCoordinatorTest.java766 .addEntry(buildTestEntry(STATS_PER_IFACE, mobileIface, 1000, 100, 2000, 200)); in checkTetherOffloadGetStats()
769 .addEntry(buildTestEntry(STATS_PER_UID, mobileIface, 1000, 100, 2000, 200)); in checkTetherOffloadGetStats()
812 .addEntry(buildTestEntry(STATS_PER_IFACE, wlanIface, 1000, 100, 2000, 200)) in testGetForwardedStats()
813 .addEntry(buildTestEntry(STATS_PER_IFACE, mobileIface, 3000, 300, 4000, 400)); in testGetForwardedStats()
816 .addEntry(buildTestEntry(STATS_PER_UID, wlanIface, 1000, 100, 2000, 200)) in testGetForwardedStats()
817 .addEntry(buildTestEntry(STATS_PER_UID, mobileIface, 3000, 300, 4000, 400)); in testGetForwardedStats()
833 .addEntry(buildTestEntry(STATS_PER_IFACE, wlanIface, 0, 0, 0, 0)) in testGetForwardedStats()
834 .addEntry(buildTestEntry(STATS_PER_IFACE, mobileIface, 10, 20, 30, 40)); in testGetForwardedStats()
837 .addEntry(buildTestEntry(STATS_PER_UID, wlanIface, 0, 0, 0, 0)) in testGetForwardedStats()
838 .addEntry(buildTestEntry(STATS_PER_UID, mobileIface, 10, 20, 30, 40)); in testGetForwardedStats()
[all …]
/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkStatsCollectionTest.java571 .addEntry(entry1) in testRemoveHistoryBefore()
572 .addEntry(entry2) in testRemoveHistoryBefore()
575 .addEntry(entry2) in testRemoveHistoryBefore()
576 .addEntry(entry3) in testRemoveHistoryBefore()
579 .addEntry(key1, history1) in testRemoveHistoryBefore()
580 .addEntry(key2, history2) in testRemoveHistoryBefore()
593 .addEntry(entry2) in testRemoveHistoryBefore()
596 .addEntry(entry2) in testRemoveHistoryBefore()
597 .addEntry(entry3) in testRemoveHistoryBefore()
607 .addEntry(entry3) in testRemoveHistoryBefore()
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DNetworkStatsServiceTest.java859 .addEntry(new NetworkStats.Entry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE,
874 .addEntry(new NetworkStats.Entry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE,
877 .addEntry(new NetworkStats.Entry(TEST_IFACE, UID_RED, SET_FOREGROUND, TAG_NONE,
894 .addEntry(new NetworkStats.Entry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE,
896 .addEntry(new NetworkStats.Entry(TEST_IFACE, UID_RED, SET_FOREGROUND, TAG_NONE,
899 .addEntry(new NetworkStats.Entry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE,
993 .addEntry(new NetworkStats.Entry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE,
1008 .addEntry(new NetworkStats.Entry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE,
1024 .addEntry(new NetworkStats.Entry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE,
1038 .addEntry(new NetworkStats.Entry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE,
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DAnqpCacheTest.java85 mCache.addEntry(ENTRY_KEY, null); in addAndGetEntry()
108 mCache.addEntry(ENTRY_KEY, null); in sweepRemoveExpiredEntry()
129 mCache.addEntry(ENTRY_KEY, null); in testCacheFlush()
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
DWriteableArchive.java77 addEntry(null /* no parent */, new ZipArchiveEntry("/")); // Root entry. in WriteableArchive()
82 private void addEntry(@Nullable ZipArchiveEntry parentEntry, ZipArchiveEntry entry) { in addEntry() method in WriteableArchive
174 addEntry(parentEntry, entry); in createDocument()
/packages/apps/Settings/src/com/android/settings/applications/
DProcStatsData.java186 pkg.addEntry(proc); in createPkgMap()
224 entry.addEntry(procEntry); in distributeZRam()
239 osPkg.addEntry(osEntry); in createOsEntry()
246 osPkg.addEntry(osEntry); in createOsEntry()
262 osPkg.addEntry(osEntry); in createOsEntry()
DProcStatsPackageEntry.java82 public void addEntry(ProcStatsEntry entry) { in addEntry() method in ProcStatsPackageEntry
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DAnqpCache.java55 public void addEntry(ANQPNetworkKey key, in addEntry() method in AnqpCache
73 addEntry(key, anqpElements); in addOrUpdateEntry()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DMissedCallNotifierImplTest.java119 public MockMissedCallCursorBuilder addEntry(String number, int presentation, long date) { in addEntry() method in MissedCallNotifierImplTest.MockMissedCallCursorBuilder
507 .addEntry(TEL_CALL_HANDLE.getSchemeSpecificPart(), in testLoadOneCallFromDb()
571 .addEntry(TEL_CALL_HANDLE.getSchemeSpecificPart(), in testLoadTwoCallsFromDb()
573 .addEntry(SIP_CALL_HANDLE.getSchemeSpecificPart(), in testLoadTwoCallsFromDb()
/packages/modules/GeoTZ/s2storage/src/write/java/com/android/timezone/location/storage/table/packed/write/
DPackedTableWriter.java113 public void addEntry(int key, long value) throws IOException { in addEntry() method in PackedTableWriter
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DProtoTracer.java95 encapsulatingProto.addEntry(entry); in serializeEncapsulatingProto()
/packages/modules/Connectivity/framework-t/src/android/net/
DNetworkStatsCollection.java875 public NetworkStatsCollection.Builder addEntry(@NonNull Key key, in addEntry() method in NetworkStatsCollection.Builder
891 historyBuilder.addEntry(entry); in addEntry()
896 historyBuilder.addEntry(entry); in addEntry()
/packages/modules/GeoTZ/s2storage/src/write/java/com/android/timezone/location/storage/tzs2range/write/
DSuffixTableWriter.java150 mPackedTableWriter.addEntry(rangeStartSuffixValue, value); in addRange()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPhotoFallbackEffect.java68 public void addEntry(Path path, Rect rect, RawTexture texture) { in addEntry() method in PhotoFallbackEffect

12