Searched refs:dataList (Results 1 – 3 of 3) sorted by relevance
/packages/apps/Contacts/tests/src/com/android/contacts/model/dataitem/ |
D | DataItemTests.java | 72 final List<DataItem> dataList = new ArrayList<>(values.length); in createDataItemsAndCollapse() local 76 dataList.add(data); in createDataItemsAndCollapse() 78 Collapser.collapseList(dataList, getContext()); in createDataItemsAndCollapse() 79 return dataList; in createDataItemsAndCollapse() 102 final List<DataItem> dataList = createDataItemsAndCollapse(kind, mValues1, mValues2); in testDataItemCollapsing_genericDataItemFields() local 104 assertEquals(1, dataList.size()); in testDataItemCollapsing_genericDataItemFields() 105 assertEquals(true, dataList.get(0).isSuperPrimary()); in testDataItemCollapsing_genericDataItemFields() 106 assertEquals(true, dataList.get(0).isPrimary()); in testDataItemCollapsing_genericDataItemFields() 107 assertEquals(9, (int) dataList.get(0).getTimesUsed()); in testDataItemCollapsing_genericDataItemFields() 108 assertEquals(999L, (long) dataList.get(0).getLastTimeUsed()); in testDataItemCollapsing_genericDataItemFields() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | PowerUsageAdvancedTest.java | 270 List<PowerUsageData> dataList = new ArrayList<>(); in testPowerUsageData_SortedByUsage() local 272 dataList.add(new PowerUsageData(UsageType.WIFI, TYPE_WIFI_USAGE)); in testPowerUsageData_SortedByUsage() 273 dataList.add(new PowerUsageData(UsageType.BLUETOOTH, TYPE_BLUETOOTH_USAGE)); in testPowerUsageData_SortedByUsage() 274 dataList.add(new PowerUsageData(UsageType.APP, TYPE_APP_USAGE)); in testPowerUsageData_SortedByUsage() 275 Collections.sort(dataList); in testPowerUsageData_SortedByUsage() 277 for (int i = 1, size = dataList.size(); i < size; i++) { in testPowerUsageData_SortedByUsage() 278 assertThat(dataList.get(i - 1).totalPowerMah).isAtLeast(dataList.get(i).totalPowerMah); in testPowerUsageData_SortedByUsage()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | PowerUsageAdvanced.java | 203 List<PowerUsageData> dataList = parsePowerUsageData(statsHelper); in refreshPowerUsageDataList() local 205 for (int i = 0, size = dataList.size(); i < size; i++) { in refreshPowerUsageDataList() 206 final PowerUsageData batteryData = dataList.get(i); in refreshPowerUsageDataList()
|