/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | NetworkStatsTest.java | 72 .insertEntry(TEST_IFACE, 100, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testFindIndex() 74 .insertEntry(TEST_IFACE, 101, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testFindIndex() 76 .insertEntry(TEST_IFACE, 101, SET_DEFAULT, TAG_NONE, METERED_YES, ROAMING_NO, in testFindIndex() 78 .insertEntry(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testFindIndex() 80 .insertEntry(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE, METERED_YES, ROAMING_YES, in testFindIndex() 102 .insertEntry(TEST_IFACE, 100, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testFindIndexHinted() 104 .insertEntry(TEST_IFACE, 101, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testFindIndexHinted() 106 .insertEntry(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testFindIndexHinted() 108 .insertEntry(TEST_IFACE2, 100, SET_FOREGROUND, TAG_NONE, METERED_NO, ROAMING_NO, in testFindIndexHinted() 110 .insertEntry(TEST_IFACE2, 101, SET_DEFAULT, 0xF00D, METERED_NO, ROAMING_NO, in testFindIndexHinted() [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | NetworkStatsServiceTest.java | 343 .insertEntry(iface, rxb, rxp, txb, txp)); 426 .insertEntry(TEST_IFACE, 1024L, 8L, 2048L, 16L)); 428 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 512L, 4L, 256L, 2L, 0L) 429 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, 0xFAAD, 256L, 2L, 128L, 1L, 0L) 430 .insertEntry(TEST_IFACE, UID_RED, SET_FOREGROUND, TAG_NONE, 512L, 4L, 256L, 2L, 0L) 431 .insertEntry(TEST_IFACE, UID_RED, SET_FOREGROUND, 0xFAAD, 256L, 2L, 128L, 1L, 0L) 432 .insertEntry(TEST_IFACE, UID_BLUE, SET_DEFAULT, TAG_NONE, 128L, 1L, 128L, 1L, 0L)); 496 .insertEntry(TEST_IFACE, 512L, 4L, 512L, 4L)); 537 .insertEntry(TEST_IFACE, 2048L, 16L, 512L, 4L)); 539 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 1536L, 12L, 512L, 4L, 0L) [all …]
|
D | NetworkStatsObserversTest.java | 247 .insertEntry(TEST_IFACE, BASE_BYTES, 8L, BASE_BYTES, 16L); in testUpdateStats_initialSample_doesNotNotify() 271 .insertEntry(TEST_IFACE, BASE_BYTES, 8L, BASE_BYTES, 16L); in testUpdateStats_belowThreshold_doesNotNotify() 278 .insertEntry(TEST_IFACE, BASE_BYTES + 1024L, 10L, BASE_BYTES + 2048L, 20L); in testUpdateStats_belowThreshold_doesNotNotify() 301 .insertEntry(TEST_IFACE, BASE_BYTES, 8L, BASE_BYTES, 16L); in testUpdateStats_deviceAccess_notifies() 308 .insertEntry(TEST_IFACE, BASE_BYTES + THRESHOLD_BYTES, 12L, in testUpdateStats_deviceAccess_notifies() 333 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_defaultAccess_notifiesSameUid() 340 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_defaultAccess_notifiesSameUid() 366 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_defaultAccess_usageOtherUid_doesNotNotify() 373 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_defaultAccess_usageOtherUid_doesNotNotify() 398 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_userAccess_usageSameUser_notifies() [all …]
|
/packages/modules/Connectivity/Tethering/tests/privileged/src/com/android/networkstack/tethering/ |
D | BpfMapTest.java | 118 readOnlyMap.insertEntry(mTestData.keyAt(0), mTestData.valueAt(0)); in testGetFd() 145 mTestMap.insertEntry(mTestData.keyAt(0), mTestData.valueAt(0)); in testIsEmpty() 160 mTestMap.insertEntry(mTestData.keyAt(0), mTestData.valueAt(0)); in testGetFirstKey() 180 mTestMap.insertEntry(mTestData.keyAt(0), mTestData.valueAt(0)); in testGetNextKey() 189 mTestMap.insertEntry(mTestData.keyAt(1), mTestData.valueAt(1)); in testGetNextKey() 270 mTestMap.insertEntry(key, value); in testInsertReplaceEntry() 275 mTestMap.insertEntry(key, value); in testInsertReplaceEntry() 291 mTestMap.insertEntry(resultMap.keyAt(i), resultMap.valueAt(i)); in testIterateBpfMap() 317 mTestMap.insertEntry(resultMap.keyAt(i), resultMap.valueAt(i)); in testIterateDeletion() 348 mTestMap.insertEntry(resultMap.keyAt(i), resultMap.valueAt(i)); in testClear() [all …]
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | BpfCoordinatorTest.java | 182 public void insertEntry(K key, V value) throws ErrnoException, in insertEntry() method in BpfCoordinatorTest.TestBpfMap 451 verifyWithOrder(inOrder, mBpfUpstream6Map).insertEntry(key, value); in verifyStartUpstreamIpv6Forwarding() 466 inOrder.verify(mBpfUpstream6Map, never()).insertEntry(any(), any()); in verifyNoUpstreamIpv6ForwardingChange() 470 verify(mBpfUpstream6Map, never()).insertEntry(any(), any()); in verifyNoUpstreamIpv6ForwardingChange() 517 verifyWithOrder(inOrder, mBpfStatsMap).insertEntry(key, new TetherStatsValue( in verifyTetherOffloadSetInterfaceQuota() 532 inOrder.verify(mBpfStatsMap, never()).insertEntry(any(), any()); in verifyNeverTetherOffloadSetInterfaceQuota() 1465 .insertEntry(eq(expectedUpstream4KeyTcp), eq(expectedUpstream4ValueTcp)); in testSetDataLimitOnRule4Change() 1467 .insertEntry(eq(expectedDownstream4KeyTcp), eq(expectedDownstream4ValueTcp)); in testSetDataLimitOnRule4Change() 1474 .insertEntry(eq(expectedUpstream4KeyUdp), eq(expectedUpstream4ValueUdp)); in testSetDataLimitOnRule4Change() 1476 .insertEntry(eq(expectedDownstream4KeyUdp), eq(expectedDownstream4ValueUdp)); in testSetDataLimitOnRule4Change() [all …]
|
/packages/modules/Connectivity/Tethering/apishim/31/com/android/networkstack/tethering/apishim/api31/ |
D | BpfCoordinatorShimImpl.java | 209 mBpfUpstream6Map.insertEntry(key, value); in startUpstreamIpv6Forwarding() 278 mBpfStatsMap.insertEntry(new TetherStatsKey(ifIndex), new TetherStatsValue( in tetherOffloadSetInterfaceQuota() 359 mBpfDownstream4Map.insertEntry(key, value); in tetherOffloadRuleAdd() 366 mBpfUpstream4Map.insertEntry(key, value); in tetherOffloadRuleAdd()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | DownloadCache.java | 188 private synchronized long insertEntry(String url, File file) { in insertEntry() method in DownloadCache 290 id = insertEntry(mUrl, file); in onFutureDone()
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/ |
D | GalleryGridAdapter.java | 119 public GalleryGridItemData insertEntry(String filePath, String mimeType) { in insertEntry() method in GalleryGridAdapter
|
D | GalleryComposerFragment.java | 124 adapter.insertEntry(output.first.getAbsolutePath(), output.second); in onActivityCreated()
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | BpfMap.java | 111 public void insertEntry(K key, V value) in insertEntry() method in BpfMap
|
/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/ |
D | IpServerTest.java | 937 verifyWithOrder(inOrder, mBpfUpstream6Map).insertEntry(key, value); in verifyStartUpstreamIpv6Forwarding() 952 inOrder.verify(mBpfUpstream6Map, never()).insertEntry(any(), any()); in verifyNoUpstreamIpv6ForwardingChange() 956 verify(mBpfUpstream6Map, never()).insertEntry(any(), any()); in verifyNoUpstreamIpv6ForwardingChange()
|