Home
last modified time | relevance | path

Searched refs:DeviceThermalState (Results 1 – 18 of 18) sorted by relevance

/external/cronet/base/power_monitor/
Dpower_monitor_source.cc17 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()
Dpower_monitor_device_source_android.cc20 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
Dpower_monitor_device_source_unittest.cc17 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()
Dpower_monitor_unittest.cc100 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 …]
Dpower_monitor_device_source.h60 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;
Dthermal_state_observer_mac.mm25 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)
Dpower_monitor_source.h34 virtual PowerThermalObserver::DeviceThermalState GetCurrentThermalState();
45 PowerThermalObserver::DeviceThermalState state);
57 PowerThermalObserver::DeviceThermalState state);
65 PowerThermalObserver::DeviceThermalState);
71 PowerThermalObserver::DeviceThermalState new_thermal_state);
Dpower_monitor.h70 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;
Dthermal_state_observer_mac_unittest.mm21 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;
Dthermal_state_observer_mac.h26 base::RepeatingCallback<void(PowerThermalObserver::DeviceThermalState)>;
39 PowerThermalObserver::DeviceThermalState GetCurrentThermalState();
44 PowerThermalObserver::DeviceThermalState state_for_testing_ =
45 PowerThermalObserver::DeviceThermalState::kUnknown;
Dpower_monitor_device_source_chromeos.cc42 PowerThermalObserver::DeviceThermalState state) { in ThermalEventReceived()
51 PowerThermalObserver::DeviceThermalState
57 PowerThermalObserver::DeviceThermalState state) { in SetCurrentThermalState()
Dpower_monitor.cc87 PowerThermalObserver::DeviceThermalState
129 PowerThermalObserver::DeviceThermalState::kUnknown; in ShutdownForTesting()
134 PowerThermalObserver::DeviceThermalState
142 PowerThermalObserver::DeviceThermalState state) { in SetCurrentThermalState()
203 PowerThermalObserver::DeviceThermalState new_state) { in NotifyThermalStateChange()
Dpower_observer.h49 enum class DeviceThermalState { enum
67 virtual void OnThermalStateChange(DeviceThermalState new_state) = 0;
Dpower_monitor_device_source_mac.mm22 PowerThermalObserver::DeviceThermalState
/external/cronet/base/test/
Dpower_monitor_test.cc22 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()
Dpower_monitor_test.h40 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/
Dchrome_track_event.proto837 enum DeviceThermalState { enum
1278 optional DeviceThermalState device_thermal_state = 1036;
/external/perfetto/protos/third_party/chromium/
Dchrome_track_event.proto844 enum DeviceThermalState { enum
1286 optional DeviceThermalState device_thermal_state = 1036;