Searched refs:fgs (Results 1 – 6 of 6) sorted by relevance
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/stats/ |
H A D | CpuPowerCalculatorTest.java | 374 final BatteryConsumer.Key fgs = uidConsumer1.getKey( in testTimerBasedModel_byProcessState() local 380 assertThat(uidConsumer1.getConsumedPower(fgs)).isWithin(PRECISION).of(2.2222); in testTimerBasedModel_byProcessState() 383 assertThat(uidConsumer2.getConsumedPower(fgs)).isWithin(PRECISION).of(0); in testTimerBasedModel_byProcessState() 481 final BatteryConsumer.Key fgs = uidConsumer1.getKey( in testMeasuredEnergyBasedModel_perProcessState() local 487 assertThat(uidConsumer1.getConsumedPower(fgs)).isWithin(PRECISION).of(8.02273); in testMeasuredEnergyBasedModel_perProcessState() 490 assertThat(uidConsumer2.getConsumedPower(fgs)).isWithin(PRECISION).of(0); in testMeasuredEnergyBasedModel_perProcessState()
|
H A D | BluetoothPowerCalculatorTest.java | 147 final BatteryConsumer.Key fgs = uidConsumer.getKey( in testTimerBasedModel_byProcessState() local 156 assertThat(uidConsumer.getConsumedPower(fgs)).isWithin(PRECISION).of(0); in testTimerBasedModel_byProcessState() 267 final BatteryConsumer.Key fgs = uidConsumer.getKey( in testMeasuredEnergyBasedModel_byProcessState() local 276 assertThat(uidConsumer.getConsumedPower(fgs)).isWithin(PRECISION).of(0); in testMeasuredEnergyBasedModel_byProcessState()
|
H A D | WifiPowerCalculatorTest.java | 181 final BatteryConsumer.Key fgs = uidConsumer.getKey( in testPowerControllerBasedModel_powerProfile_byProcessState() local 187 assertThat(uidConsumer.getConsumedPower(fgs)).isWithin(PRECISION).of(0); in testPowerControllerBasedModel_powerProfile_byProcessState() 269 final BatteryConsumer.Key fgs = uidConsumer.getKey( in testPowerControllerBasedModel_measured_byProcessState() local 275 assertThat(uidConsumer.getConsumedPower(fgs)).isWithin(PRECISION).of(0); in testPowerControllerBasedModel_measured_byProcessState()
|
H A D | MobileRadioPowerCalculatorTest.java | 572 final BatteryConsumer.Key fgs = uidConsumer.getKey( in testTimerBasedModel_byProcessState() local 582 assertThat(uidConsumer.getConsumedPower(fgs)).isWithin(PRECISION).of(0); in testTimerBasedModel_byProcessState() 1032 final BatteryConsumer.Key fgs = uidConsumer.getKey( in testMeasuredEnergyBasedModel_byProcessState() local 1038 assertThat(uidConsumer.getConsumedPower(fgs)).isWithin(PRECISION).of(0); in testMeasuredEnergyBasedModel_byProcessState()
|
/aosp14/frameworks/base/core/proto/android/os/ |
H A D | appbackgroundrestrictioninfo.proto | 68 // indicates whether an fgs notification was visible for this app or not.
|
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
H A D | BackgroundRestrictionTest.java | 2355 BatteryUsageStats stats, int[] uids, double[] bg, double[] fgs, double[] fg, in runTestBgCurrentDrainExemptionOnce() argument 2383 runTestBgCurrentDrainMonitorOnce(listener, stats, uids, bg, fgs, fg, cached, in runTestBgCurrentDrainExemptionOnce() 2641 BatteryUsageStats stats, int[] uids, double[] bg, double[] fgs, double[] fg, 2643 runTestBgCurrentDrainMonitorOnce(listener, stats, uids, bg, fgs, fg, cached, true, 2648 BatteryUsageStats stats, int[] uids, double[] bg, double[] fgs, double[] fg, 2654 setUidBatteryConsumptions(stats, uids, bg, fgs, fg, cached); 2659 double[] fgs, double[] fg, double[] cached) { 2662 consumers.add(mockUidBatteryConsumer(uids[i], bg[i], fgs[i], fg[i], cached[i])); 2667 private UidBatteryConsumer mockUidBatteryConsumer(int uid, double bg, double fgs, double fg, 2673 doReturn(fgs).when(uidConsumer).getConsumedPower(
|