Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java102 @VisibleForTesting IThermalService mThermalService; field in PowerUI
532 if (mThermalService == null) { in doSkinThermalEventListenerRegistration()
533 mThermalService = IThermalService.Stub.asInterface( in doSkinThermalEventListenerRegistration()
537 ret = mThermalService.registerThermalEventListenerWithType( in doSkinThermalEventListenerRegistration()
540 ret = mThermalService.unregisterThermalEventListener(mSkinThermalEventListener); in doSkinThermalEventListenerRegistration()
567 if (mThermalService == null) { in doUsbThermalEventListenerRegistration()
568 mThermalService = IThermalService.Stub.asInterface( in doUsbThermalEventListenerRegistration()
572 ret = mThermalService.registerThermalEventListenerWithType( in doUsbThermalEventListenerRegistration()
575 ret = mThermalService.unregisterThermalEventListener(mUsbThermalEventListener); in doUsbThermalEventListenerRegistration()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DCachedDeviceStateServiceTest.java56 @Mock private IThermalService mThermalService; field in CachedDeviceStateServiceTest
63 PowerManager powerManager = new PowerManager(context, mPowerManager, mThermalService, null); in setUp()
/frameworks/base/core/java/android/os/
DPowerManager.java923 final IThermalService mThermalService; field in PowerManager
938 mThermalService = thermalService; in PowerManager()
1900 return mThermalService.getCurrentThermalStatus(); in getCurrentThermalStatus()
1959 if (mThermalService.registerThermalStatusListener(internalListener)) { in addThermalStatusListener()
1979 if (mThermalService.unregisterThermalStatusListener(internalListener)) { in removeThermalStatusListener()
2037 float forecast = mThermalService.getThermalHeadroom(forecastSeconds); in getThermalHeadroom()
/frameworks/base/services/core/java/com/android/server/stats/pull/
DStatsPullAtomService.java252 private IThermalService mThermalService; field in StatsPullAtomService
893 if (mThermalService == null) { in getIThermalService()
894 mThermalService = IThermalService.Stub.asInterface( in getIThermalService()
896 if (mThermalService != null) { in getIThermalService()
898 mThermalService.asBinder().linkToDeath(() -> { in getIThermalService()
900 mThermalService = null; in getIThermalService()
905 mThermalService = null; in getIThermalService()
909 return mThermalService; in getIThermalService()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/
DPowerUITest.java692 mPowerUI.mThermalService = mThermalServiceMock; in createPowerUi()