Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/app/
DIBatteryStats.aidl159 void noteMobileRadioPowerState(int powerState, long timestampNs, int uid); in noteMobileRadioPowerState() argument
212 void noteWifiRadioPowerState(int powerState, long timestampNs, int uid); in noteWifiRadioPowerState() argument
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java238 final int powerState = active
250 noteMobileRadioPowerState(powerState, timestampNanos, uid);
253 noteWifiRadioPowerState(powerState, timestampNanos, uid);
1729 public void noteMobileRadioPowerState(final int powerState, final long timestampNs, in noteMobileRadioPowerState() argument
1739 if (mLastPowerStateFromRadio == powerState) return; in noteMobileRadioPowerState()
1741 mLastPowerStateFromRadio = powerState; in noteMobileRadioPowerState()
1742 mStats.noteMobileRadioPowerStateLocked(powerState, timestampNs, uid, in noteMobileRadioPowerState()
1748 FrameworkStatsLog.MOBILE_RADIO_POWER_STATE_CHANGED, uid, null, powerState); in noteMobileRadioPowerState()
2091 public void noteWifiRadioPowerState(final int powerState, final long tsNanos, final int uid) { in noteWifiRadioPowerState() argument
2102 if (mLastPowerStateFromWifi == powerState) return; in noteWifiRadioPowerState()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/satellite/data/prod/
DDeviceBasedSatelliteRepositoryImpl.kt182 override fun onRadioPowerStateChanged(powerState: Int) { in <lambda>()
183 trySend(powerState) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardStatusViewController.java239 (ScreenPowerState powerState) -> { in startCoroutines()
240 if (powerState == ScreenPowerState.SCREEN_TURNING_ON) { in startCoroutines()
/frameworks/base/services/core/java/com/android/server/power/
DNotifier.java878 final int powerState; in sendNextBroadcast() local
918 powerState = mBroadcastedInteractiveState; in sendNextBroadcast()
923 if (powerState == INTERACTIVE_STATE_AWAKE) { in sendNextBroadcast()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/app/
DGameManagerServiceTests.java2338 HashMap<Integer, Boolean> powerState = new HashMap<>(); in testGamePowerMode_twoGames() local
2339 doAnswer(inv -> powerState.put(inv.getArgument(0), inv.getArgument(1))) in testGamePowerMode_twoGames()
2343 assertTrue(powerState.get(Mode.GAME)); in testGamePowerMode_twoGames()
2346 assertFalse(powerState.get(Mode.GAME)); in testGamePowerMode_twoGames()
2349 assertTrue(powerState.get(Mode.GAME)); in testGamePowerMode_twoGames()
2352 assertFalse(powerState.get(Mode.GAME)); in testGamePowerMode_twoGames()
/frameworks/base/services/core/java/com/android/server/power/stats/
DBatteryStatsImpl.java5877 public boolean noteMobileRadioPowerStateLocked(int powerState, long timestampNs, int uid) { in noteMobileRadioPowerStateLocked() argument
5878 return noteMobileRadioPowerStateLocked(powerState, timestampNs, uid, in noteMobileRadioPowerStateLocked()
5883 public boolean noteMobileRadioPowerStateLocked(int powerState, long timestampNs, int uid, in noteMobileRadioPowerStateLocked() argument
5885 if (mMobileRadioPowerState != powerState) { in noteMobileRadioPowerStateLocked()
5887 final boolean active = isActiveRadioPowerState(powerState); in noteMobileRadioPowerStateLocked()
5910 mMobileRadioPowerState = powerState; in noteMobileRadioPowerStateLocked()
5940 private static boolean isActiveRadioPowerState(int powerState) { in isActiveRadioPowerState() argument
5941 return powerState == DataConnectionRealTimeInfo.DC_POWER_STATE_MEDIUM in isActiveRadioPowerState()
5942 || powerState == DataConnectionRealTimeInfo.DC_POWER_STATE_HIGH; in isActiveRadioPowerState()
6862 public void noteWifiRadioPowerState(int powerState, long timestampNs, int uid, in noteWifiRadioPowerState() argument
[all …]