/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/ |
D | BatteryUtils.java | 183 if (sipper.drainType != BatterySipper.DrainType.OVERCOUNTED in removeHiddenBatterySippers() 184 && sipper.drainType != BatterySipper.DrainType.SCREEN in removeHiddenBatterySippers() 185 && sipper.drainType != BatterySipper.DrainType.UNACCOUNTED in removeHiddenBatterySippers() 186 && sipper.drainType != BatterySipper.DrainType.BLUETOOTH in removeHiddenBatterySippers() 187 && sipper.drainType != BatterySipper.DrainType.WIFI in removeHiddenBatterySippers() 188 && sipper.drainType != BatterySipper.DrainType.IDLE) { in removeHiddenBatterySippers() 194 if (sipper.drainType == BatterySipper.DrainType.SCREEN) { in removeHiddenBatterySippers() 241 final BatterySipper.DrainType drainType = sipper.drainType; in shouldHideSipper() local 243 return drainType == BatterySipper.DrainType.IDLE in shouldHideSipper() 244 || drainType == BatterySipper.DrainType.CELL in shouldHideSipper() [all …]
|
D | BatteryAppListPreferenceController.java | 97 if (entry.sipper.drainType == DrainType.APP) { 231 if (sipper.usageTimeMs == 0 && sipper.drainType == DrainType.APP) { in refreshAppListGroup() 287 BatterySipper newSipper = new BatterySipper(sipper.drainType, in getCoalescedUsageList() 346 (sipper.drainType != DrainType.APP || mBatteryUtils.shouldHideSipper(sipper)) in setUsageSummary() 362 return sipper.drainType == BatterySipper.DrainType.OVERCOUNTED in shouldHideSipper() 363 || sipper.drainType == BatterySipper.DrainType.UNACCOUNTED; in shouldHideSipper() 370 } else if (sipper.drainType == DrainType.USER) { in extractKeyFromSipper() 371 return sipper.drainType.toString() + sipper.userId; in extractKeyFromSipper() 372 } else if (sipper.drainType != DrainType.APP) { in extractKeyFromSipper() 373 return sipper.drainType.toString(); in extractKeyFromSipper()
|
D | AdvancedPowerUsageDetail.java | 114 final boolean isTypeApp = sipper.drainType == BatterySipper.DrainType.APP; in startBatteryDetailPage() 150 if (bs.drainType == BatterySipper.DrainType.USER) { in getUserIdToLaunchAdvancePowerUsageDetail()
|
D | BatteryEntry.java | 141 switch (sipper.drainType) { in BatteryEntry()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryUtils.java | 188 if (sipper.drainType != BatterySipper.DrainType.OVERCOUNTED in removeHiddenBatterySippers() 189 && sipper.drainType != BatterySipper.DrainType.SCREEN in removeHiddenBatterySippers() 190 && sipper.drainType != BatterySipper.DrainType.UNACCOUNTED in removeHiddenBatterySippers() 191 && sipper.drainType != BatterySipper.DrainType.BLUETOOTH in removeHiddenBatterySippers() 192 && sipper.drainType != BatterySipper.DrainType.WIFI in removeHiddenBatterySippers() 193 && sipper.drainType != BatterySipper.DrainType.IDLE in removeHiddenBatterySippers() 201 if (sipper.drainType == BatterySipper.DrainType.SCREEN) { in removeHiddenBatterySippers() 248 final BatterySipper.DrainType drainType = sipper.drainType; in shouldHideSipper() local 250 return drainType == BatterySipper.DrainType.IDLE in shouldHideSipper() 251 || drainType == BatterySipper.DrainType.CELL in shouldHideSipper() [all …]
|
D | BatteryAppListPreferenceController.java | 97 if (entry.sipper.drainType == DrainType.APP) { 231 if (sipper.usageTimeMs == 0 && sipper.drainType == DrainType.APP) { in refreshAppListGroup() 287 BatterySipper newSipper = new BatterySipper(sipper.drainType, in getCoalescedUsageList() 346 (sipper.drainType != DrainType.APP || mBatteryUtils.shouldHideSipper(sipper)) in setUsageSummary() 356 return sipper.drainType == BatterySipper.DrainType.OVERCOUNTED in shouldHideSipper() 357 || sipper.drainType == BatterySipper.DrainType.UNACCOUNTED in shouldHideSipper() 365 } else if (sipper.drainType == DrainType.USER) { in extractKeyFromSipper() 366 return sipper.drainType.toString() + sipper.userId; in extractKeyFromSipper() 367 } else if (sipper.drainType != DrainType.APP) { in extractKeyFromSipper() 368 return sipper.drainType.toString(); in extractKeyFromSipper()
|
D | AdvancedPowerUsageDetail.java | 114 final boolean isTypeApp = sipper.drainType == BatterySipper.DrainType.APP; in startBatteryDetailPage() 150 if (bs.drainType == BatterySipper.DrainType.USER) { in getUserIdToLaunchAdvancePowerUsageDetail()
|
D | BatteryEntry.java | 141 switch (sipper.drainType) { in BatteryEntry()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryAppListPreferenceControllerTest.java | 98 mNormalBatterySipper.drainType = BatterySipper.DrainType.APP; in setUp() 110 mNormalBatterySipper.drainType = BatterySipper.DrainType.APP; in testExtractKeyFromSipper_typeAPPUidObjectNull_returnPackageNames() 119 mNormalBatterySipper.drainType = BatterySipper.DrainType.BLUETOOTH; in testExtractKeyFromSipper_typeOther_returnDrainType() 122 assertThat(key).isEqualTo(mNormalBatterySipper.drainType.toString()); in testExtractKeyFromSipper_typeOther_returnDrainType() 128 mNormalBatterySipper.drainType = BatterySipper.DrainType.USER; in testExtractKeyFromSipper_typeUser_returnDrainTypeWithUserId() 138 mNormalBatterySipper.drainType = BatterySipper.DrainType.APP; in testExtractKeyFromSipper_typeAPPUidObjectNotNull_returnUid() 178 mNormalBatterySipper.drainType = BatterySipper.DrainType.PHONE; in testSetUsageSummary_timeMoreThanOneMinute_notApp_setUsedSummary() 188 mNormalBatterySipper.drainType = BatterySipper.DrainType.OVERCOUNTED; in testShouldHideSipper_typeOvercounted_returnTrue() 195 mNormalBatterySipper.drainType = BatterySipper.DrainType.UNACCOUNTED; in testShouldHideSipper_typeUnaccounted_returnTrue() 202 mNormalBatterySipper.drainType = BatterySipper.DrainType.APP; in testShouldHideSipper_typeNormal_returnFalse()
|
D | PowerUsageFeatureProviderImplTest.java | 71 mBatterySipper.drainType = BatterySipper.DrainType.APP; in testIsTypeSystem_uidRoot_returnTrue() 79 mBatterySipper.drainType = BatterySipper.DrainType.APP; in testIsTypeSystem_uidSystem_returnTrue() 87 mBatterySipper.drainType = BatterySipper.DrainType.APP; in testIsTypeSystem_uidMedia_returnTrue() 95 mBatterySipper.drainType = BatterySipper.DrainType.APP; in testIsTypeSystem_appCalendar_returnTrue() 103 mBatterySipper.drainType = BatterySipper.DrainType.APP; in testIsTypeSystem_appMedia_returnTrue() 111 mBatterySipper.drainType = BatterySipper.DrainType.APP; in testIsTypeSystem_appSystemUi_returnTrue() 119 mBatterySipper.drainType = BatterySipper.DrainType.APP; in testIsTypeSystem_uidOther_returnFalse() 127 mBatterySipper.drainType = BatterySipper.DrainType.APP; in testIsTypeSystem_uidObjNull_returnFalse()
|
D | BatteryUtilsTest.java | 199 mNormalBatterySipper.drainType = BatterySipper.DrainType.APP; in setUp() 203 mWifiBatterySipper.drainType = BatterySipper.DrainType.WIFI; in setUp() 206 mBluetoothBatterySipper.drainType = BatterySipper.DrainType.BLUETOOTH; in setUp() 209 mScreenBatterySipper.drainType = BatterySipper.DrainType.SCREEN; in setUp() 212 mSystemBatterySipper.drainType = BatterySipper.DrainType.APP; in setUp() 216 mOvercountedBatterySipper.drainType = BatterySipper.DrainType.OVERCOUNTED; in setUp() 219 mUnaccountedBatterySipper.drainType = BatterySipper.DrainType.UNACCOUNTED; in setUp() 222 mIdleBatterySipper.drainType = BatterySipper.DrainType.IDLE; in setUp() 307 mNormalBatterySipper.drainType = BatterySipper.DrainType.UNACCOUNTED; in testShouldHideSipper_TypeUnAccounted_ReturnTrue() 313 mNormalBatterySipper.drainType = BatterySipper.DrainType.OVERCOUNTED; in testShouldHideSipper_TypeOverAccounted_ReturnTrue() [all …]
|
D | PowerUsageSummaryTest.java | 170 mNormalBatterySipper.drainType = BatterySipper.DrainType.APP; in setUp() 172 mCellBatterySipper.drainType = BatterySipper.DrainType.CELL; in setUp() 181 mScreenBatterySipper.drainType = BatterySipper.DrainType.SCREEN; in setUp()
|
D | AdvancedPowerUsageDetailTest.java | 183 mBatterySipper.drainType = BatterySipper.DrainType.APP; in setUp() 279 mBatterySipper.drainType = BatterySipper.DrainType.PHONE; in testStartBatteryDetailPage_typeNotApp_hasBasicData() 329 mBatterySipper.drainType = BatterySipper.DrainType.USER; in testStartBatteryDetailPage_typeUser_startByCurrentUser()
|
D | BatteryEntryTest.java | 145 batterySipper.drainType = DrainType.AMBIENT_DISPLAY; in batteryEntryForAOD_containCorrectInfo()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/detectors/ |
D | HighUsageDetectorTest.java | 94 mHighBatterySipper.drainType = BatterySipper.DrainType.APP; in setUp() 97 mLowBatterySipper.drainType = BatterySipper.DrainType.APP; in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | AppBatteryPreferenceControllerTest.java | 99 mBatterySipper.drainType = BatterySipper.DrainType.IDLE; in setUp()
|