Home
last modified time | relevance | path

Searched refs:PowerManagerInternal (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
DWindowManagerServiceRule.java34 import android.os.PowerManagerInternal;
85 LocalServices.addService(PowerManagerInternal.class, in apply()
86 mock(PowerManagerInternal.class)); in apply()
87 final PowerManagerInternal pm = in apply()
88 LocalServices.getService(PowerManagerInternal.class); in apply()
126 LocalServices.removeServiceForTest(PowerManagerInternal.class); in apply()
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverController.java30 import android.os.PowerManagerInternal;
31 import android.os.PowerManagerInternal.LowPowerModeListener;
324 final PowerManagerInternal pmi = LocalServices.getService(PowerManagerInternal.class); in handleBatterySaverStateChanged()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DPowerManagerServiceTest.java19 import static android.os.PowerManagerInternal.WAKEFULNESS_ASLEEP;
20 import static android.os.PowerManagerInternal.WAKEFULNESS_AWAKE;
/frameworks/base/core/java/android/os/
DPowerManagerInternal.java28 public abstract class PowerManagerInternal { class
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DMockSystemServices.java50 import android.os.PowerManagerInternal;
88 public final PowerManagerInternal powerManagerInternal;
126 powerManagerInternal = mock(PowerManagerInternal.class); in MockSystemServices()
DDevicePolicyManagerServiceTestable.java35 import android.os.PowerManagerInternal;
159 PowerManagerInternal getPowerManagerInternal() { in getPowerManagerInternal()
/frameworks/base/services/core/java/com/android/server/dreams/
DDreamManagerService.java45 import android.os.PowerManagerInternal;
78 private final PowerManagerInternal mPowerManagerInternal;
100 mPowerManagerInternal = getLocalService(PowerManagerInternal.class); in DreamManagerService()
/frameworks/base/services/core/java/com/android/server/
DAppStateTracker.java39 import android.os.PowerManagerInternal;
91 PowerManagerInternal mPowerManagerInternal;
493 PowerManagerInternal injectPowerManagerInternal() { in injectPowerManagerInternal()
494 return LocalServices.getService(PowerManagerInternal.class); in injectPowerManagerInternal()
DVibratorService.java37 import android.os.PowerManagerInternal;
122 private PowerManagerInternal mPowerManagerInternal;
374 mPowerManagerInternal = LocalServices.getService(PowerManagerInternal.class); in systemReady()
376 new PowerManagerInternal.LowPowerModeListener() { in systemReady()
DDeviceIdleController.java57 import android.os.PowerManagerInternal;
121 private PowerManagerInternal mLocalPowerManager;
1464 mLocalPowerManager = getLocalService(PowerManagerInternal.class); in onBootPhase()
/frameworks/base/core/proto/android/os/
Dpowermanager.proto51 // Enum values gotten from PowerManagerInternal.java
/frameworks/base/services/core/java/com/android/server/power/
DNotifier.java39 import android.os.PowerManagerInternal;
360 final boolean interactive = PowerManagerInternal.isInteractive(wakefulness); in onWakefulnessChangeStarted()
DPowerManagerService.java19 import static android.os.PowerManagerInternal.WAKEFULNESS_ASLEEP;
20 import static android.os.PowerManagerInternal.WAKEFULNESS_AWAKE;
21 import static android.os.PowerManagerInternal.WAKEFULNESS_DOZING;
22 import static android.os.PowerManagerInternal.WAKEFULNESS_DREAMING;
53 import android.os.PowerManagerInternal;
711 publishLocalService(PowerManagerInternal.class, new LocalService()); in onStart()
1817 + PowerManagerInternal.wakefulnessToString(mWakefulness) in updateWakeLockSummaryLocked()
2026 + PowerManagerInternal.wakefulnessToString(mWakefulness) in updateUserActivitySummaryLocked()
2684 return PowerManagerInternal.isInteractive(mWakefulness); in isInteractiveInternal()
3223 pw.println(" mWakefulness=" + PowerManagerInternal.wakefulnessToString(mWakefulness)); in dumpInternal()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java35 import android.os.PowerManagerInternal;
83 implements PowerManagerInternal.LowPowerModeListener,
234 final PowerManagerInternal powerMgr = LocalServices.getService(PowerManagerInternal.class); in initPowerManagement()
DActivityManagerService.java343 import android.os.PowerManagerInternal;
1536 PowerManagerInternal mLocalPowerManager;
1548 private int mWakefulness = PowerManagerInternal.WAKEFULNESS_AWAKE;
3243 mLocalPowerManager = LocalServices.getService(PowerManagerInternal.class); in initPowerManagement()
13265 reportGlobalUsageEventLocked(mWakefulness == PowerManagerInternal.WAKEFULNESS_AWAKE in reportCurWakefulnessUsageEventLocked()
13278 boolean wasAwake = mWakefulness == PowerManagerInternal.WAKEFULNESS_AWAKE; in onWakefulnessChanged()
13279 boolean isAwake = wakefulness == PowerManagerInternal.WAKEFULNESS_AWAKE; in onWakefulnessChanged()
15227 final PowerManagerInternal pmi = LocalServices.getService(PowerManagerInternal.class); in systemReady()
17003 + PowerManagerInternal.wakefulnessToString(mWakefulness)); in dumpProcessesLocked()
17363 PowerManagerInternal.wakefulnessToProtoEnum(mWakefulness)); in writeProcessesToProtoLocked()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkPolicyManagerServiceTest.java111 import android.os.PowerManagerInternal;
304 final PowerManagerInternal pmInternal = addLocalServiceMock(PowerManagerInternal.class); in registerLocalServices()
439 LocalServices.removeServiceForTest(PowerManagerInternal.class); in unregisterLocalServices()
533 PowerManagerInternal pmInternal = LocalServices.getService(PowerManagerInternal.class); in testLowPowerModeObserver_ListenersRegistered()
DAppStateTrackerTest.java57 import android.os.PowerManagerInternal;
126 PowerManagerInternal injectPowerManagerInternal() { in injectPowerManagerInternal()
175 private PowerManagerInternal mMockPowerManagerInternal;
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java174 import android.os.PowerManagerInternal;
405 private PowerManagerInternal mPowerManagerInternal;
724 mPowerManagerInternal = LocalServices.getService(PowerManagerInternal.class); in initService()
726 new PowerManagerInternal.LowPowerModeListener() { in initService()
766 new PowerManagerInternal.LowPowerModeListener() { in initService()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowManagerService.java160 import android.os.PowerManagerInternal;
724 PowerManagerInternal mPowerManagerInternal;
976 mPowerManagerInternal = LocalServices.getService(PowerManagerInternal.class); in WindowManagerService()
980 new PowerManagerInternal.LowPowerModeListener() { in WindowManagerService()
/frameworks/base/services/core/java/com/android/server/policy/
DPhoneWindowManager.java206 import android.os.PowerManagerInternal;
460 PowerManagerInternal mPowerManagerInternal;
2005 mPowerManagerInternal = LocalServices.getService(PowerManagerInternal.class); in init()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java163 import android.os.PowerManagerInternal;
1842 PowerManagerInternal getPowerManagerInternal() { in getPowerManagerInternal()
1843 return LocalServices.getService(PowerManagerInternal.class); in getPowerManagerInternal()
/frameworks/base/config/
Dboot-image-profile.txt28347 HSPLandroid/os/PowerManagerInternal;->finishUidChanges()V
28348 HSPLandroid/os/PowerManagerInternal;->getLowPowerState(I)Landroid/os/PowerSaveState;
28349 HSPLandroid/os/PowerManagerInternal;->powerHint(II)V
28350 HSPLandroid/os/PowerManagerInternal;->registerLowPowerModeObserver(ILjava/util/function/Consumer;)V
28351 HSPLandroid/os/PowerManagerInternal;->registerLowPowerModeObserver(Landroid/os/PowerManagerInternal
28352 HSPLandroid/os/PowerManagerInternal;->setDeviceIdleMode(Z)Z
28353 HSPLandroid/os/PowerManagerInternal;->setDeviceIdleTempWhitelist([I)V
28354 HSPLandroid/os/PowerManagerInternal;->setDeviceIdleWhitelist([I)V
28355 HSPLandroid/os/PowerManagerInternal;->setDozeOverrideFromDreamManager(II)V
28356 HSPLandroid/os/PowerManagerInternal;->setDrawWakeLockOverrideFromSidekick(Z)V
[all …]