Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/display/brightness/clamper/
DBrightnessThermalClamper.java212 private IThermalService mThermalService; field in BrightnessThermalClamper.ThermalStatusObserver
240 mThermalService = mInjector.getThermalService(); in registerThermalListener()
241 if (mThermalService == null) { in registerThermalListener()
249 mThermalService.registerThermalEventListenerWithType(this, temperatureType); in registerThermalListener()
276 mThermalService.unregisterThermalEventListener(this); in stopObserving()
281 mThermalService = null; in stopObserving()
288 if (mThermalService != null) { in dump()
DPmicMonitor.java58 @VisibleForTesting final IThermalService mThermalService; field in PmicMonitor
68 mThermalService = IThermalService.Stub.asInterface( in PmicMonitor()
81 temperatures = mThermalService.getCurrentTemperaturesWithType( in getDisplayTemperature()
161 if (mThermalService == null) { in start()
/frameworks/base/services/core/java/com/android/server/display/
DBrightnessThrottler.java372 private IThermalService mThermalService; field in BrightnessThrottler.SkinThermalStatusObserver
420 mThermalService = mInjector.getThermalService(); in registerThermalListener()
421 if (mThermalService == null) { in registerThermalListener()
429 mThermalService.registerThermalEventListenerWithType(this, temperatureType); in registerThermalListener()
444 mThermalService.unregisterThermalEventListener(this); in stopObserving()
449 mThermalService = null; in stopObserving()
456 if (mThermalService != null) { in dump()
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java108 @VisibleForTesting IThermalService mThermalService; field in PowerUI
565 if (mThermalService == null) { in doSkinThermalEventListenerRegistration()
566 mThermalService = IThermalService.Stub.asInterface( in doSkinThermalEventListenerRegistration()
570 ret = mThermalService.registerThermalEventListenerWithType( in doSkinThermalEventListenerRegistration()
573 ret = mThermalService.unregisterThermalEventListener(mSkinThermalEventListener); in doSkinThermalEventListenerRegistration()
600 if (mThermalService == null) { in doUsbThermalEventListenerRegistration()
601 mThermalService = IThermalService.Stub.asInterface( in doUsbThermalEventListenerRegistration()
605 ret = mThermalService.registerThermalEventListenerWithType( in doUsbThermalEventListenerRegistration()
608 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.java1195 final IThermalService mThermalService; field in PowerManager
1212 mThermalService = thermalService; in PowerManager()
2682 return mThermalService.getCurrentThermalStatus(); in getCurrentThermalStatus()
2739 if (mThermalService.registerThermalStatusListener(internalListener)) { in addThermalStatusListener()
2759 if (mThermalService.unregisterThermalStatusListener(internalListener)) { in removeThermalStatusListener()
2817 float forecast = mThermalService.getThermalHeadroom(forecastSeconds); in getThermalHeadroom()
2866 mThermalHeadroomThresholds = mThermalService.getThermalHeadroomThresholds(); in getThermalHeadroomThresholds()
/frameworks/base/services/core/java/com/android/server/stats/pull/
DStatsPullAtomService.java328 private IThermalService mThermalService; field in StatsPullAtomService
1120 if (mThermalService == null) { in getIThermalService()
1121 mThermalService = IThermalService.Stub.asInterface( in getIThermalService()
1123 if (mThermalService != null) { in getIThermalService()
1125 mThermalService.asBinder().linkToDeath(() -> { in getIThermalService()
1127 mThermalService = null; in getIThermalService()
1132 mThermalService = null; in getIThermalService()
1136 return mThermalService; in getIThermalService()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/
DPowerUITest.java709 mPowerUI.mThermalService = mThermalServiceMock; in createPowerUi()