/external/cronet/base/power_monitor/ |
D | power_monitor_source.cc | 17 PowerThermalObserver::DeviceThermalState 19 return PowerThermalObserver::DeviceThermalState::kUnknown; in GetCurrentThermalState() 27 PowerThermalObserver::DeviceThermalState state) {} in SetCurrentThermalState() 56 PowerThermalObserver::DeviceThermalState new_thermal_state) { in ProcessThermalEvent() 71 PowerThermalObserver::DeviceThermalState state) { in DeviceThermalStateToString() 73 case PowerThermalObserver::DeviceThermalState::kUnknown: in DeviceThermalStateToString() 75 case PowerThermalObserver::DeviceThermalState::kNominal: in DeviceThermalStateToString() 77 case PowerThermalObserver::DeviceThermalState::kFair: in DeviceThermalStateToString() 79 case PowerThermalObserver::DeviceThermalState::kSerious: in DeviceThermalStateToString() 81 case PowerThermalObserver::DeviceThermalState::kCritical: in DeviceThermalStateToString()
|
D | power_monitor_device_source_android.cc | 20 PowerThermalObserver::DeviceThermalState new_thermal_state) { in ProcessThermalEventHelper() 27 using DeviceThermalState = PowerThermalObserver::DeviceThermalState; typedef 41 PowerThermalObserver::DeviceThermalState MapToDeviceThermalState( in MapToDeviceThermalState() 45 return DeviceThermalState::kNominal; in MapToDeviceThermalState() 49 return DeviceThermalState::kFair; in MapToDeviceThermalState() 52 return DeviceThermalState::kSerious; in MapToDeviceThermalState() 57 return DeviceThermalState::kCritical; in MapToDeviceThermalState() 60 return DeviceThermalState::kUnknown; in MapToDeviceThermalState() 93 PowerThermalObserver::DeviceThermalState
|
D | power_monitor_device_source_unittest.cc | 17 using DeviceThermalState = base::PowerThermalObserver::DeviceThermalState; typedef 26 DeviceThermalState GetCurrentThermalState() { in GetCurrentThermalState() 34 const DeviceThermalState current_state = GetCurrentThermalState(); in TEST_F() 40 EXPECT_NE(current_state, DeviceThermalState::kUnknown); in TEST_F() 42 EXPECT_EQ(current_state, DeviceThermalState::kUnknown); in TEST_F() 45 EXPECT_EQ(current_state, DeviceThermalState::kUnknown); in TEST_F()
|
D | power_monitor_unittest.cc | 100 PowerThermalObserver::DeviceThermalState::kNominal); in TEST_F() 103 PowerThermalObserver::DeviceThermalState::kNominal); in TEST_F() 107 PowerThermalObserver::DeviceThermalState::kNominal); in TEST_F() 112 PowerThermalObserver::DeviceThermalState::kFair); in TEST_F() 115 PowerThermalObserver::DeviceThermalState::kFair); in TEST_F() 130 constexpr PowerThermalObserver::DeviceThermalState kThermalStates[] = { in TEST_F() 131 PowerThermalObserver::DeviceThermalState::kUnknown, in TEST_F() 132 PowerThermalObserver::DeviceThermalState::kNominal, in TEST_F() 133 PowerThermalObserver::DeviceThermalState::kFair, in TEST_F() 134 PowerThermalObserver::DeviceThermalState::kSerious, in TEST_F() [all …]
|
D | power_monitor_device_source.h | 60 PowerThermalObserver::DeviceThermalState state); 64 PowerThermalObserver::DeviceThermalState GetCurrentThermalState() override; 66 PowerThermalObserver::DeviceThermalState state) override; 114 PowerThermalObserver::DeviceThermalState GetCurrentThermalState() override; 125 PowerThermalObserver::DeviceThermalState GetCurrentThermalState() override; 167 PowerThermalObserver::DeviceThermalState current_thermal_state_ = 168 PowerThermalObserver::DeviceThermalState::kUnknown;
|
D | thermal_state_observer_mac.mm | 25 base::PowerThermalObserver::DeviceThermalState 30 return base::PowerThermalObserver::DeviceThermalState::kNominal; 32 return base::PowerThermalObserver::DeviceThermalState::kFair; 34 return base::PowerThermalObserver::DeviceThermalState::kSerious; 36 return base::PowerThermalObserver::DeviceThermalState::kCritical; 39 return base::PowerThermalObserver::DeviceThermalState::kUnknown; 56 auto state = PowerThermalObserver::DeviceThermalState::kUnknown; 64 PowerThermalObserver::DeviceThermalState::kUnknown) 104 PowerThermalObserver::DeviceThermalState 106 if (state_for_testing_ != PowerThermalObserver::DeviceThermalState::kUnknown)
|
D | power_monitor_source.h | 34 virtual PowerThermalObserver::DeviceThermalState GetCurrentThermalState(); 45 PowerThermalObserver::DeviceThermalState state); 57 PowerThermalObserver::DeviceThermalState state); 65 PowerThermalObserver::DeviceThermalState); 71 PowerThermalObserver::DeviceThermalState new_thermal_state);
|
D | power_monitor.h | 70 static PowerThermalObserver::DeviceThermalState 85 static PowerThermalObserver::DeviceThermalState GetCurrentThermalState(); 89 PowerThermalObserver::DeviceThermalState state); 118 PowerThermalObserver::DeviceThermalState new_state); 130 PowerThermalObserver::DeviceThermalState power_thermal_state_ 132 PowerThermalObserver::DeviceThermalState::kUnknown;
|
D | thermal_state_observer_mac_unittest.mm | 21 using DeviceThermalState = base::PowerThermalObserver::DeviceThermalState; 27 void IgnoreStateChange(DeviceThermalState state) {} 33 MockFunction<void(DeviceThermalState)> function; 37 BindRepeating(&MockFunction<void(DeviceThermalState)>::Call, 41 EXPECT_CALL(function, Call(DeviceThermalState::kCritical)); 42 observer.state_for_testing_ = DeviceThermalState::kCritical;
|
D | thermal_state_observer_mac.h | 26 base::RepeatingCallback<void(PowerThermalObserver::DeviceThermalState)>; 39 PowerThermalObserver::DeviceThermalState GetCurrentThermalState(); 44 PowerThermalObserver::DeviceThermalState state_for_testing_ = 45 PowerThermalObserver::DeviceThermalState::kUnknown;
|
D | power_monitor_device_source_chromeos.cc | 42 PowerThermalObserver::DeviceThermalState state) { in ThermalEventReceived() 51 PowerThermalObserver::DeviceThermalState 57 PowerThermalObserver::DeviceThermalState state) { in SetCurrentThermalState()
|
D | power_monitor.cc | 87 PowerThermalObserver::DeviceThermalState 129 PowerThermalObserver::DeviceThermalState::kUnknown; in ShutdownForTesting() 134 PowerThermalObserver::DeviceThermalState 142 PowerThermalObserver::DeviceThermalState state) { in SetCurrentThermalState() 203 PowerThermalObserver::DeviceThermalState new_state) { in NotifyThermalStateChange()
|
D | power_observer.h | 49 enum class DeviceThermalState { enum 67 virtual void OnThermalStateChange(DeviceThermalState new_state) = 0;
|
D | power_monitor_device_source_mac.mm | 22 PowerThermalObserver::DeviceThermalState
|
/external/cronet/base/test/ |
D | power_monitor_test.cc | 22 PowerThermalObserver::DeviceThermalState GetCurrentThermalState() override; 36 PowerThermalObserver::DeviceThermalState new_thermal_state); 41 PowerThermalObserver::DeviceThermalState current_thermal_state_ = 42 PowerThermalObserver::DeviceThermalState::kUnknown; 46 PowerThermalObserver::DeviceThermalState 84 PowerThermalObserver::DeviceThermalState new_thermal_state) { in GenerateThermalThrottlingEvent() 106 PowerThermalObserver::DeviceThermalState 141 PowerThermalObserver::DeviceThermalState new_thermal_state) { in GenerateThermalThrottlingEvent() 166 PowerThermalObserver::DeviceThermalState new_state) { in OnThermalStateChange()
|
D | power_monitor_test.h | 40 PowerThermalObserver::DeviceThermalState GetCurrentThermalState(); 52 PowerThermalObserver::DeviceThermalState new_thermal_state); 77 PowerThermalObserver::DeviceThermalState new_state) override; 88 PowerThermalObserver::DeviceThermalState last_thermal_state() const { in last_thermal_state() 108 PowerThermalObserver::DeviceThermalState last_thermal_state_ = 109 PowerThermalObserver::DeviceThermalState::kUnknown;
|
/external/cronet/base/tracing/protos/ |
D | chrome_track_event.proto | 837 enum DeviceThermalState { enum 1278 optional DeviceThermalState device_thermal_state = 1036;
|
/external/perfetto/protos/third_party/chromium/ |
D | chrome_track_event.proto | 844 enum DeviceThermalState { enum 1286 optional DeviceThermalState device_thermal_state = 1036;
|