Searched refs:entryList (Results 1 – 7 of 7) sorted by relevance
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | ConvertUtilsTest.java | 224 List<BatteryDiffEntry> entryList = resultMap.get(Integer.valueOf(0)); in testGetIndexedUsageMap_returnsExpectedResult() local 225 assertThat(entryList).hasSize(1); in testGetIndexedUsageMap_returnsExpectedResult() 226 assertBatteryDiffEntry(entryList.get(0), 100, 15L, 25L); in testGetIndexedUsageMap_returnsExpectedResult() 228 entryList = resultMap.get(Integer.valueOf(1)); in testGetIndexedUsageMap_returnsExpectedResult() 229 assertThat(entryList).hasSize(3); in testGetIndexedUsageMap_returnsExpectedResult() 230 assertBatteryDiffEntry(entryList.get(1), 5, 5L, 5L); in testGetIndexedUsageMap_returnsExpectedResult() 231 assertBatteryDiffEntry(entryList.get(2), 75, 40L, 50L); in testGetIndexedUsageMap_returnsExpectedResult() 232 assertBatteryDiffEntry(entryList.get(0), 20, 15L, 15L); in testGetIndexedUsageMap_returnsExpectedResult() 234 entryList = resultMap.get(Integer.valueOf(-1)); in testGetIndexedUsageMap_returnsExpectedResult() 235 assertThat(entryList).hasSize(3); in testGetIndexedUsageMap_returnsExpectedResult() [all …]
|
D | BatteryDiffEntryTest.java | 104 final List<BatteryDiffEntry> entryList = new ArrayList<>(); in testComparator_sortCollectionsInDescOrder() local 106 entryList.add(createBatteryDiffEntry(30, mBatteryHistEntry)); in testComparator_sortCollectionsInDescOrder() 107 entryList.add(createBatteryDiffEntry(20, mBatteryHistEntry)); in testComparator_sortCollectionsInDescOrder() 108 entryList.add(createBatteryDiffEntry(10, mBatteryHistEntry)); in testComparator_sortCollectionsInDescOrder() 109 Collections.sort(entryList, BatteryDiffEntry.COMPARATOR); in testComparator_sortCollectionsInDescOrder() 111 assertThat(entryList.get(0).getPercentOfTotal()).isEqualTo(30); in testComparator_sortCollectionsInDescOrder() 112 assertThat(entryList.get(1).getPercentOfTotal()).isEqualTo(20); in testComparator_sortCollectionsInDescOrder() 113 assertThat(entryList.get(2).getPercentOfTotal()).isEqualTo(10); in testComparator_sortCollectionsInDescOrder()
|
/packages/apps/Settings/src/com/android/settings/development/graphicsdriver/ |
D | GraphicsDriverEnableForAllAppsPreferenceController.java | 181 List<CharSequence> entryList = new ArrayList<>(); in constructEntryList() local 182 entryList.add(resources.getString(R.string.graphics_driver_app_preference_default)); in constructEntryList() 186 entryList.add(resources.getString( in constructEntryList() 191 entryList.add(resources.getString( in constructEntryList() 195 entryList.add(resources.getString(R.string.graphics_driver_app_preference_system)); in constructEntryList() 197 CharSequence[] filteredEntryList = new CharSequence[entryList.size()]; in constructEntryList() 198 filteredEntryList = entryList.toArray(filteredEntryList); in constructEntryList()
|
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
D | ExpandingEntryCardView.java | 330 for (List<Entry> entryList : mEntries) { in initialize() 331 mNumEntries += entryList.size(); in initialize() 505 List<Entry> entryList = mEntries.get(i); in inflateInitialEntries() local 508 entryViewList.add(createEntryView(layoutInflater, entryList.get(0), in inflateInitialEntries() 513 for (int j = 1; j < entryList.size() && numInflated < mCollapsedEntriesCount in inflateInitialEntries() 515 entryViewList.add(createEntryView(layoutInflater, entryList.get(j), in inflateInitialEntries() 532 List<Entry> entryList = mEntries.get(i); in inflateAllEntries() local 534 for (int j = viewList.size(); j < entryList.size(); j++) { in inflateAllEntries() 536 final Entry entry = entryList.get(j); in inflateAllEntries() 560 for (List<View> entryList : mEntryViews) { in setEntryHeaderColor() [all …]
|
/packages/modules/ExtServices/java/src/android/ext/services/storage/ |
D | CacheQuotaServiceImpl.java | 85 .map(entryList -> entryList.get(0)) in onComputeCacheQuotaHints()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | ConvertUtils.java | 302 for (List<BatteryDiffEntry> entryList : indexedUsageMap.values()) { in insert24HoursData() 303 for (BatteryDiffEntry entry : entryList) { in insert24HoursData()
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | RawContactModifier.java | 972 List<ValuesDelta> entryList = oldState.getMimeEntries(mimeType); in migrateStateForNewContact() local 973 if (entryList != null && !entryList.isEmpty()) { in migrateStateForNewContact() 974 for (ValuesDelta entry : entryList) { in migrateStateForNewContact()
|