/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/ |
D | BatteryEntryTest.java | 40 import com.android.settings.fuelgauge.batteryusage.BatteryEntry.NameAndIcon; 97 private BatteryEntry createBatteryEntryForApp( in createBatteryEntryForApp() 102 return new BatteryEntry( in createBatteryEntryForApp() 106 private BatteryEntry createAggregateBatteryEntry(int powerComponentId) { in createAggregateBatteryEntry() 107 return new BatteryEntry( in createAggregateBatteryEntry() 115 private BatteryEntry createCustomAggregateBatteryEntry(int powerComponentId) { in createCustomAggregateBatteryEntry() 116 return new BatteryEntry( in createCustomAggregateBatteryEntry() 123 private BatteryEntry createUserBatteryConsumer(int userId) { in createUserBatteryConsumer() 126 return new BatteryEntry(mMockContext, mMockUserManager, consumer, false, 0, null, null); in createUserBatteryConsumer() 131 BatteryEntry entry = in batteryEntryForApp_shouldSetDefaultPackageNameAndLabel() [all …]
|
D | BatteryDiffEntryTest.java | 216 final BatteryEntry.NameAndIcon nameAndIcon = in testLoadLabelAndIcon_forSystemBattery_returnExpectedResult() 242 final BatteryEntry.NameAndIcon nameAndIcon = in testLoadLabelAndIcon_forUserBattery_returnExpectedResult() 269 final BatteryEntry.NameAndIcon nameAndIcon = in testGetAppLabel_loadDataFromApplicationInfo() 289 final BatteryEntry.NameAndIcon nameAndIcon = in testGetAppLabel_loadDataFromPreDefinedNameAndUid() 353 final BatteryEntry.NameAndIcon nameAndIcon = in testGetAppIcon_uidConsumerWithNullIcon_returnDefaultActivityIcon() 362 new BatteryEntry.NameAndIcon("app label", null, /* iconId= */ 0)); in testClearCache_clearDataForAllCaches() 389 final BatteryEntry.NameAndIcon nameAndIcon = in testClearCache_switchLocale_clearCacheIconAndLabel()
|
D | BatteryUsageDataLoaderTest.java | 61 @Mock private BatteryEntry mMockBatteryEntry; 80 final List<BatteryEntry> batteryEntryList = new ArrayList<>(); in loadUsageData_loadUsageDataWithHistory()
|
D | DatabaseUtilsTest.java | 76 @Mock private BatteryEntry mMockBatteryEntry1; 77 @Mock private BatteryEntry mMockBatteryEntry2; 78 @Mock private BatteryEntry mMockBatteryEntry3; 175 final List<BatteryEntry> batteryEntryList = new ArrayList<>(); in sendBatteryEntryData_returnsExpectedList()
|
D | DataProcessorTest.java | 85 @Mock private BatteryEntry mMockBatteryEntry1; 86 @Mock private BatteryEntry mMockBatteryEntry2; 87 @Mock private BatteryEntry mMockBatteryEntry3; 88 @Mock private BatteryEntry mMockBatteryEntry4; 1913 final List<BatteryEntry> batteryEntryList = new ArrayList<>(); in generateBatteryDiffData_returnsExpectedResult()
|
D | BatteryHistEntryTest.java | 44 @Mock private BatteryEntry mMockBatteryEntry;
|
D | BatteryUsageBreakdownControllerTest.java | 130 new BatteryEntry.NameAndIcon("fakeName", /* icon= */ null, /* iconId= */ 1)); in setUp()
|
D | BatteryChartPreferenceControllerTest.java | 120 new BatteryEntry.NameAndIcon("fakeName", /* icon= */ null, /* iconId= */ 1)); in setUp()
|
D | ConvertUtilsTest.java | 66 @Mock private BatteryEntry mMockBatteryEntry;
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/ |
D | PowerGaugePreference.java | 49 private BatteryEntry mInfo; 57 Context context, Drawable icon, CharSequence contentDescription, BatteryEntry info) { in PowerGaugePreference() 74 BatteryEntry info) { in PowerGaugePreference() 126 BatteryEntry getInfo() { in getInfo()
|
D | BatteryDiffEntry.java | 35 import com.android.settings.fuelgauge.batteryusage.BatteryEntry.NameAndIcon; 378 BatteryEntry.getNameAndIconFromUserId(mContext, (int) mUserId); in loadLabelAndIcon() 388 BatteryEntry.getNameAndIconFromPowerComponent(mContext, mComponentId); in loadLabelAndIcon() 494 BatteryEntry.getNameAndIconFromUid(mContext, mAppLabel, uid); in loadNameAndIconForUid() 500 BatteryEntry.loadNameAndIcon( in loadNameAndIconForUid() 503 BatteryEntry.clearUidCache(); in loadNameAndIconForUid()
|
D | BatteryEntry.java | 51 public class BatteryEntry { class 104 public static final Comparator<BatteryEntry> COMPARATOR = 135 public BatteryEntry( in BatteryEntry() method in BatteryEntry 146 public BatteryEntry( in BatteryEntry() method in BatteryEntry 229 public BatteryEntry( in BatteryEntry() method in BatteryEntry 253 public BatteryEntry( in BatteryEntry() method in BatteryEntry 293 BatteryEntry batteryEntry, in loadNameAndIcon()
|
D | DataProcessor.java | 370 public static List<BatteryEntry> generateBatteryEntryListFromBatteryUsageStats( in generateBatteryEntryListFromBatteryUsageStats() 381 final List<BatteryEntry> usageList = in generateBatteryEntryListFromBatteryUsageStats() 389 final BatteryEntry entry = usageList.get(i); in generateBatteryEntryListFromBatteryUsageStats() 1073 final List<BatteryEntry> batteryEntryList = in getBatteryHistListFromFromStatsService() 1087 @Nullable final List<BatteryEntry> batteryEntryList, in convertToBatteryHistEntry() 1687 private static List<BatteryEntry> getCoalescedUsageList( in getCoalescedUsageList() 1694 final SparseArray<BatteryEntry> batteryEntryList = new SparseArray<>(); in getCoalescedUsageList() 1695 final ArrayList<BatteryEntry> results = new ArrayList<>(); in getCoalescedUsageList() 1720 new BatteryEntry( in getCoalescedUsageList() 1731 final BatteryEntry existingSipper = batteryEntryList.valueAt(index); in getCoalescedUsageList() [all …]
|
D | BatteryUsageDataLoader.java | 43 @VisibleForTesting static Supplier<List<BatteryEntry>> sFakeBatteryEntryListSupplier; 62 final List<BatteryEntry> batteryEntryList = in loadBatteryStatsData()
|
D | BatteryUsageBroadcastReceiver.java | 101 BatteryEntry.clearUidCache(); in onReceive()
|
D | ConvertUtils.java | 100 final BatteryEntry entry, in convertBatteryEntryToContentValues() 220 BatteryEntry entry, BatteryUsageStats batteryUsageStats) { in convertToBatteryHistEntry() 626 final BatteryEntry entry, in constructBatteryInformation()
|
D | DatabaseUtils.java | 672 final List<BatteryEntry> batteryEntryList, in sendBatteryEntryData() 695 for (BatteryEntry entry : batteryEntryList) { in sendBatteryEntryData()
|
D | PowerUsageAdvanced.java | 109 BatteryEntry.clearUidCache(); in onDestroy()
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | AppBatteryPreferenceController.java | 43 import com.android.settings.fuelgauge.batteryusage.BatteryEntry; 136 final BatteryEntry entry = new BatteryEntry(mContext, userManager, in handlePreferenceTreeClick()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | PowerBackgroundUsageDetailTest.java | 52 import com.android.settings.fuelgauge.batteryusage.BatteryEntry; 120 @Mock private BatteryEntry mBatteryEntry;
|
D | AdvancedPowerUsageDetailTest.java | 53 import com.android.settings.fuelgauge.batteryusage.BatteryEntry; 112 @Mock private BatteryEntry mBatteryEntry;
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | AdvancedPowerUsageDetail.java | 48 import com.android.settings.fuelgauge.batteryusage.BatteryEntry; 164 BatteryEntry entry, in startBatteryDetailPage()
|