Home
last modified time | relevance | path

Searched refs:resultMap (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Connectivity/Tethering/tests/privileged/src/com/android/networkstack/tethering/
DBpfMapTest.java178 final ArrayMap<TetherDownstream6Key, Tether6Value> resultMap = in testGetNextKey() local
181 resultMap.put(mTestData.keyAt(0), mTestData.valueAt(0)); in testGetNextKey()
190 resultMap.put(mTestData.keyAt(1), mTestData.valueAt(1)); in testGetNextKey()
195 if (resultMap.remove(nextKey).equals(nextKey)) { in testGetNextKey()
200 assertTrue(resultMap.isEmpty()); in testGetNextKey()
287 final ArrayMap<TetherDownstream6Key, Tether6Value> resultMap = in testIterateBpfMap() local
290 for (int i = 0; i < resultMap.size(); i++) { in testIterateBpfMap()
291 mTestMap.insertEntry(resultMap.keyAt(i), resultMap.valueAt(i)); in testIterateBpfMap()
295 if (!value.equals(resultMap.remove(key))) { in testIterateBpfMap()
299 assertTrue(resultMap.isEmpty()); in testIterateBpfMap()
[all …]
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DConvertUtils.java181 final Map<Integer, List<BatteryDiffEntry>> resultMap = new HashMap<>(); in getIndexedUsageMap() local
207 resultMap.put(Integer.valueOf(index), new ArrayList<BatteryDiffEntry>()); in getIndexedUsageMap()
220 resultMap.put(Integer.valueOf(index), batteryDiffEntryList); in getIndexedUsageMap()
289 insert24HoursData(BatteryChartView.SELECTED_INDEX_ALL, resultMap); in getIndexedUsageMap()
291 purgeLowPercentageAndFakeData(resultMap); in getIndexedUsageMap()
293 return resultMap; in getIndexedUsageMap()
299 final Map<String, BatteryDiffEntry> resultMap = new HashMap<>(); in insert24HoursData() local
305 final BatteryDiffEntry oldBatteryDiffEntry = resultMap.get(key); in insert24HoursData()
308 resultMap.put(key, entry.clone()); in insert24HoursData()
320 final List<BatteryDiffEntry> resultList = new ArrayList<>(resultMap.values()); in insert24HoursData()
/packages/modules/Connectivity/tests/unit/java/android/net/nsd/
DNsdServiceInfoTest.java178 Map<String, byte[]> resultMap = result.getAttributes(); in checkParcelable() local
179 assertEquals(originalMap.keySet(), resultMap.keySet()); in checkParcelable()
181 assertTrue(Arrays.equals(originalMap.get(key), resultMap.get(key))); in checkParcelable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DConvertUtilsTest.java217 final Map<Integer, List<BatteryDiffEntry>> resultMap = in testGetIndexedUsageMap_returnsExpectedResult() local
222 assertThat(resultMap).hasSize(3); in testGetIndexedUsageMap_returnsExpectedResult()
224 List<BatteryDiffEntry> entryList = resultMap.get(Integer.valueOf(0)); in testGetIndexedUsageMap_returnsExpectedResult()
228 entryList = resultMap.get(Integer.valueOf(1)); in testGetIndexedUsageMap_returnsExpectedResult()
234 entryList = resultMap.get(Integer.valueOf(-1)); in testGetIndexedUsageMap_returnsExpectedResult()
/packages/apps/Dialer/java/com/android/contacts/common/model/
DContactLoader.java396 final Map<AccountTypeWithDataSet, AccountType> resultMap = Maps.newHashMap(invitables); in loadInvitableAccountTypes() local
403 resultMap.remove(type); in loadInvitableAccountTypes()
406 resultListBuilder.addAll(resultMap.values()); in loadInvitableAccountTypes()