Home
last modified time | relevance | path

Searched refs:powerState (Results 1 – 5 of 5) sorted by relevance

/aosp14/frameworks/base/core/java/com/android/internal/app/
H A DIBatteryStats.aidl153 void noteMobileRadioPowerState(int powerState, long timestampNs, int uid); in noteMobileRadioPowerState() argument
205 void noteWifiRadioPowerState(int powerState, long timestampNs, int uid); in noteWifiRadioPowerState() argument
/aosp14/frameworks/base/services/core/java/com/android/server/am/
H A DBatteryStatsService.java198 final int powerState = active
210 noteMobileRadioPowerState(powerState, timestampNanos, uid);
213 noteWifiRadioPowerState(powerState, timestampNanos, uid);
1517 public void noteMobileRadioPowerState(final int powerState, final long timestampNs, in noteMobileRadioPowerState() argument
1528 if (mLastPowerStateFromRadio == powerState) return; in noteMobileRadioPowerState()
1530 mLastPowerStateFromRadio = powerState; in noteMobileRadioPowerState()
1541 FrameworkStatsLog.MOBILE_RADIO_POWER_STATE_CHANGED, uid, null, powerState); in noteMobileRadioPowerState()
1894 if (mLastPowerStateFromWifi == powerState) return; in noteWifiRadioPowerState()
1896 mLastPowerStateFromWifi = powerState; in noteWifiRadioPowerState()
1905 mStats.noteWifiRadioPowerState(powerState, tsNanos, uid, in noteWifiRadioPowerState()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/power/
H A DNotifier.java842 final int powerState; in sendNextBroadcast() local
882 powerState = mBroadcastedInteractiveState; in sendNextBroadcast()
887 if (powerState == INTERACTIVE_STATE_AWAKE) { in sendNextBroadcast()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/app/
H A DGameManagerServiceTests.java2311 HashMap<Integer, Boolean> powerState = new HashMap<>(); in testGamePowerMode_twoGames() local
2312 doAnswer(inv -> powerState.put(inv.getArgument(0), inv.getArgument(1))) in testGamePowerMode_twoGames()
2316 assertTrue(powerState.get(Mode.GAME)); in testGamePowerMode_twoGames()
2321 assertTrue(powerState.get(Mode.GAME)); in testGamePowerMode_twoGames()
2324 assertFalse(powerState.get(Mode.GAME)); in testGamePowerMode_twoGames()
/aosp14/frameworks/base/services/core/java/com/android/server/power/stats/
H A DBatteryStatsImpl.java5627 return noteMobileRadioPowerStateLocked(powerState, timestampNs, uid, in noteMobileRadioPowerStateLocked()
5634 if (mMobileRadioPowerState != powerState) { in noteMobileRadioPowerStateLocked()
5636 final boolean active = isActiveRadioPowerState(powerState); in noteMobileRadioPowerStateLocked()
5659 mMobileRadioPowerState = powerState; in noteMobileRadioPowerStateLocked()
5686 private static boolean isActiveRadioPowerState(int powerState) { in isActiveRadioPowerState() argument
5687 return powerState == DataConnectionRealTimeInfo.DC_POWER_STATE_MEDIUM in isActiveRadioPowerState()
5688 || powerState == DataConnectionRealTimeInfo.DC_POWER_STATE_HIGH; in isActiveRadioPowerState()
6565 public void noteWifiRadioPowerState(int powerState, long timestampNs, int uid, in noteWifiRadioPowerState() argument
6567 if (mWifiRadioPowerState != powerState) { in noteWifiRadioPowerState()
6569 powerState == DataConnectionRealTimeInfo.DC_POWER_STATE_MEDIUM in noteWifiRadioPowerState()
[all …]