Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 837) sorted by relevance

12345678910>>...34

/hardware/interfaces/confirmationui/support/test/
Dandroid_cbor_test.cpp69 WriteState writeTest(WriteState state) { in writeTest() argument
70 return write(state, // in writeTest()
82 WriteState state(buffer); in TEST() local
83 state = writeTest(state); in TEST()
84 ASSERT_EQ(sizeof(testVector), size_t(state.data_ - buffer)); in TEST()
85 ASSERT_EQ(Error::OK, state.error_); in TEST()
95 WriteState state(buffer, s); in TEST() local
96 state = writeTest(state); in TEST()
100 ASSERT_EQ(Error::OUT_OF_DATA, state.error_); in TEST()
106 WriteState state(buffer); in TEST() local
[all …]
/hardware/interfaces/vibrator/bench/
Dbenchmark.cpp60 auto getOtherArg(const State& state, std::size_t index) const { return state.range(index + 0); } in getOtherArg() argument
108 void performBench(State* state, Return<void> (I::*performApi)(Effect, EffectStrength, in performBench() argument
110 auto effect = getEffect(*state); in performBench()
111 auto strength = getStrength(*state); in performBench()
124 for (auto _ : *state) { in performBench()
125 state->ResumeTiming(); in performBench()
128 state->PauseTiming(); in performBench()
134 auto getEffect(const State& state) const { in getEffect()
135 return static_cast<Effect>(this->getOtherArg(state, 0)); in getEffect()
138 auto getStrength(const State& state) const { in getStrength()
[all …]
/hardware/qcom/audio/legacy/alsa_sound/
DAudioPolicyManagerALSA.cpp49 void AudioPolicyManager::setPhoneState(int state) { in setPhoneState() argument
50 ALOGV("setPhoneState() state %d", state); in setPhoneState()
52 if (state < 0 || state >= AudioSystem::NUM_MODES) { in setPhoneState()
53 ALOGW("setPhoneState() invalid state %d", state); in setPhoneState()
57 if (state == mPhoneState) { in setPhoneState()
58 ALOGW("setPhoneState() setting same state %d", state); in setPhoneState()
65 ALOGV("setPhoneState() in call state management: new state is %d", state); in setPhoneState()
73 mPhoneState = state; in setPhoneState()
77 if (!isStateInCall(oldState) && isStateInCall(state)) { in setPhoneState()
82 } else if (isStateInCall(oldState) && !isStateInCall(state)) { in setPhoneState()
[all …]
/hardware/qcom/display/msm8998/liblight/
Dlights.c113 is_lit(struct light_state_t const* state) in is_lit() argument
115 return state->color & 0x00ffffff; in is_lit()
119 rgb_to_brightness(struct light_state_t const* state) in rgb_to_brightness() argument
121 int color = state->color & 0x00ffffff; in rgb_to_brightness()
128 struct light_state_t const* state) in set_light_backlight() argument
131 int brightness = rgb_to_brightness(state); in set_light_backlight()
133 state->brightnessMode == BRIGHTNESS_MODE_LOW_PERSISTENCE; in set_light_backlight()
140 if ((g_last_backlight_mode != state->brightnessMode && lpEnabled) || in set_light_backlight()
152 g_last_backlight_mode = state->brightnessMode; in set_light_backlight()
168 struct light_state_t const* state) in set_speaker_light_locked() argument
[all …]
/hardware/google/pixel/vibrator/drv2624/bench/
Dbenchmark.cpp52 void SetUp(::benchmark::State &state) override { in SetUp() argument
67 SetProperty(std::string() + PROPERTY_PREFIX + "config.dynamic", getDynamicConfig(state)); in SetUp()
83 std::string getDynamicConfig(const ::benchmark::State &state) const { in getDynamicConfig()
84 return std::to_string(state.range(0)); in getDynamicConfig()
87 auto getOtherArg(const ::benchmark::State &state, std::size_t index) const { in getOtherArg() argument
88 return state.range(index + 1); in getOtherArg()
99 (benchmark::State & state){code} BENCHMARK_REGISTER_F(fixt, test) \
106 for (auto _ : state) {
112 for (auto _ : state) {
120 for (auto _ : state) {
[all …]
/hardware/qcom/display/msm8226/liblight/
Dlights.c100 is_lit(struct light_state_t const* state) in is_lit() argument
102 return state->color & 0x00ffffff; in is_lit()
106 rgb_to_brightness(struct light_state_t const* state) in rgb_to_brightness() argument
108 int color = state->color & 0x00ffffff; in rgb_to_brightness()
115 struct light_state_t const* state) in set_light_backlight() argument
118 int brightness = rgb_to_brightness(state); in set_light_backlight()
130 struct light_state_t const* state) in set_speaker_light_locked() argument
141 switch (state->flashMode) { in set_speaker_light_locked()
143 onMS = state->flashOnMS; in set_speaker_light_locked()
144 offMS = state->flashOffMS; in set_speaker_light_locked()
[all …]
/hardware/qcom/display/msm8994/liblight/
Dlights.c101 is_lit(struct light_state_t const* state) in is_lit() argument
103 return state->color & 0x00ffffff; in is_lit()
107 rgb_to_brightness(struct light_state_t const* state) in rgb_to_brightness() argument
109 int color = state->color & 0x00ffffff; in rgb_to_brightness()
116 struct light_state_t const* state) in set_light_backlight() argument
119 int brightness = rgb_to_brightness(state); in set_light_backlight()
131 struct light_state_t const* state) in set_speaker_light_locked() argument
142 switch (state->flashMode) { in set_speaker_light_locked()
144 onMS = state->flashOnMS; in set_speaker_light_locked()
145 offMS = state->flashOffMS; in set_speaker_light_locked()
[all …]
/hardware/qcom/display/msm8996/liblight/
Dlights.c101 is_lit(struct light_state_t const* state) in is_lit() argument
103 return state->color & 0x00ffffff; in is_lit()
107 rgb_to_brightness(struct light_state_t const* state) in rgb_to_brightness() argument
109 int color = state->color & 0x00ffffff; in rgb_to_brightness()
116 struct light_state_t const* state) in set_light_backlight() argument
119 int brightness = rgb_to_brightness(state); in set_light_backlight()
131 struct light_state_t const* state) in set_speaker_light_locked() argument
142 switch (state->flashMode) { in set_speaker_light_locked()
144 onMS = state->flashOnMS; in set_speaker_light_locked()
145 offMS = state->flashOffMS; in set_speaker_light_locked()
[all …]
/hardware/qcom/display/msm8084/liblight/
Dlights.c100 is_lit(struct light_state_t const* state) in is_lit() argument
102 return state->color & 0x00ffffff; in is_lit()
106 rgb_to_brightness(struct light_state_t const* state) in rgb_to_brightness() argument
108 int color = state->color & 0x00ffffff; in rgb_to_brightness()
115 struct light_state_t const* state) in set_light_backlight() argument
118 int brightness = rgb_to_brightness(state); in set_light_backlight()
130 struct light_state_t const* state) in set_speaker_light_locked() argument
141 switch (state->flashMode) { in set_speaker_light_locked()
143 onMS = state->flashOnMS; in set_speaker_light_locked()
144 offMS = state->flashOffMS; in set_speaker_light_locked()
[all …]
/hardware/qcom/display/msm8909w_3100/liblight/
Dlights.c115 is_lit(struct light_state_t const* state) in is_lit() argument
117 return state->color & 0x00ffffff; in is_lit()
121 rgb_to_brightness(struct light_state_t const* state) in rgb_to_brightness() argument
123 int color = state->color & 0x00ffffff; in rgb_to_brightness()
130 struct light_state_t const* state) in set_light_backlight() argument
133 int brightness = rgb_to_brightness(state); in set_light_backlight()
135 state->brightnessMode == BRIGHTNESS_MODE_LOW_PERSISTENCE; in set_light_backlight()
142 if ((g_last_backlight_mode != state->brightnessMode && lpEnabled) || in set_light_backlight()
154 g_last_backlight_mode = state->brightnessMode; in set_light_backlight()
170 struct light_state_t const* state) in set_light_backlight_ext() argument
[all …]
/hardware/qcom/display/msm8909/liblight/
Dlights.c113 is_lit(struct light_state_t const* state) in is_lit() argument
115 return state->color & 0x00ffffff; in is_lit()
119 rgb_to_brightness(struct light_state_t const* state) in rgb_to_brightness() argument
121 int color = state->color & 0x00ffffff; in rgb_to_brightness()
128 struct light_state_t const* state) in set_light_backlight() argument
131 int brightness = rgb_to_brightness(state); in set_light_backlight()
133 state->brightnessMode == BRIGHTNESS_MODE_LOW_PERSISTENCE; in set_light_backlight()
140 if ((g_last_backlight_mode != state->brightnessMode && lpEnabled) || in set_light_backlight()
152 g_last_backlight_mode = state->brightnessMode; in set_light_backlight()
168 struct light_state_t const* state) in set_speaker_light_locked() argument
[all …]
/hardware/qcom/display/msm8960/liblight/
Dlights.c117 is_lit(struct light_state_t const* state) in is_lit() argument
119 return state->color & 0x00ffffff; in is_lit()
123 rgb_to_brightness(struct light_state_t const* state) in rgb_to_brightness() argument
125 int color = state->color & 0x00ffffff; in rgb_to_brightness()
132 struct light_state_t const* state) in set_light_backlight() argument
135 int brightness = rgb_to_brightness(state); in set_light_backlight()
144 struct light_state_t const* state) in set_speaker_light_locked() argument
151 switch (state->flashMode) { in set_speaker_light_locked()
153 onMS = state->flashOnMS; in set_speaker_light_locked()
154 offMS = state->flashOffMS; in set_speaker_light_locked()
[all …]
/hardware/qcom/sm8150/display/liblight/
Dlights.c116 is_lit(struct light_state_t const* state) in is_lit() argument
118 return state->color & 0x00ffffff; in is_lit()
122 rgb_to_brightness(struct light_state_t const* state) in rgb_to_brightness() argument
124 int color = state->color & 0x00ffffff; in rgb_to_brightness()
131 struct light_state_t const* state) in set_light_backlight() argument
134 int brightness = rgb_to_brightness(state); in set_light_backlight()
136 state->brightnessMode == BRIGHTNESS_MODE_LOW_PERSISTENCE; in set_light_backlight()
143 bool persistence_mode = ((g_last_backlight_mode != state->brightnessMode && lpEnabled) || in set_light_backlight()
154 g_last_backlight_mode = state->brightnessMode; in set_light_backlight()
211 struct light_state_t const* state) in set_speaker_light_locked() argument
[all …]
/hardware/qcom/sm7250/display/liblight/
Dlights.c136 is_lit(struct light_state_t const* state) in is_lit() argument
138 return state->color & 0x00ffffff; in is_lit()
142 rgb_to_brightness(struct light_state_t const* state) in rgb_to_brightness() argument
144 int color = state->color & 0x00ffffff; in rgb_to_brightness()
151 struct light_state_t const* state) in set_light_backlight() argument
154 int brightness = rgb_to_brightness(state); in set_light_backlight()
156 state->brightnessMode == BRIGHTNESS_MODE_LOW_PERSISTENCE; in set_light_backlight()
163 bool persistence_mode = ((g_last_backlight_mode != state->brightnessMode && lpEnabled) || in set_light_backlight()
177 g_last_backlight_mode = state->brightnessMode; in set_light_backlight()
263 struct light_state_t const* state) in set_speaker_light_locked() argument
[all …]
/hardware/st/secure_element2/secure_element/1.0/esehal/src/
Diso7816_t1.c271 t1->state.halt = 1; r = -EIO; in parse_rblock()
277 t1->state.request = 1; in parse_rblock()
282 t1->state.halt = 1; r = -EOPNOTSUPP; in parse_rblock()
312 t1->state.aborted = 1; in parse_request()
345 t1->state.reqresp = 1; in parse_request()
478 t1->state.request = 1; in t1_loop()
481 t1->state.request = 1; in t1_loop()
484 t1->state.request = 1; in t1_loop()
489 while (!t1->state.halt && t1->retries) { in t1_loop()
490 if (t1->state.request) in t1_loop()
[all …]
/hardware/st/secure_element2/secure_element/esehal/src/
Diso7816_t1.c270 t1->state.halt = 1; r = -EIO; in parse_rblock()
276 t1->state.request = 1; in parse_rblock()
281 t1->state.halt = 1; r = -EOPNOTSUPP; in parse_rblock()
311 t1->state.aborted = 1; in parse_request()
344 t1->state.reqresp = 1; in parse_request()
477 t1->state.request = 1; in t1_loop()
480 t1->state.request = 1; in t1_loop()
483 t1->state.request = 1; in t1_loop()
488 while (!t1->state.halt && t1->retries) { in t1_loop()
489 if (t1->state.request) in t1_loop()
[all …]
/hardware/qcom/audio/hal/voice_extn/
Dvoice_extn.c148 if(session->state.current == call_state){ in get_session_id_with_state()
172 __func__, session->state.current, session->state.new, session->vsid); in update_calls()
174 switch(session->state.new) in update_calls()
177 switch(session->state.current) in update_calls()
186 session->state.current = session->state.new; in update_calls()
192 session->state.current = session->state.new; in update_calls()
201 session->state.current = session->state.new; in update_calls()
207 __func__, session->state.current, session->vsid); in update_calls()
213 switch(session->state.current) in update_calls()
224 session->state.current = session->state.new; in update_calls()
[all …]
/hardware/samsung/nfc/halimpl/osi/
Dosi_task.cc53 if (osi_info.task[index].state == OSI_FREE) { in OSI_task_allocate()
73 free_task->state = OSI_ALLOCATED; in OSI_task_allocate()
88 } else if (task_handler->state != OSI_ALLOCATED) { in OSI_task_run()
90 task_handler->state); in OSI_task_run()
97 task_handler->state = OSI_RUN; in OSI_task_run()
113 if (task_handler && task_handler->state == OSI_RUN) ret = OSI_RUN; in OSI_task_isRun()
123 if (task_handler->state == OSI_RUN) { in OSI_task_stop()
130 task_handler->state = OSI_ALLOCATED; in OSI_task_stop()
142 task_handler->state = OSI_FREE; in OSI_task_free()
153 if (task_handler->state == OSI_RUN) { in OSI_task_kill()
[all …]
/hardware/interfaces/power/1.1/
Dtypes.hal19 * Subsytem-level sleep state stats:
23 * SoCs like wifi, bt usually have more than one subsystem level sleep state.
27 * Subsystem-level Sleep state name.
32 * Time spent in msec at this subsystem-level sleep state since boot.
37 * Total number of times sub-system entered this state.
42 * Timestamp of last entry of this state measured in MSec
47 * This subsystem-level sleep state can only be reached during system suspend
53 * Subsytem-level sleep state stats:
57 * SoCs like wifi, bt usually have more than one subsystem level sleep state.
67 * Higher the index in the returned <states> vector deeper the state is
[all …]
/hardware/interfaces/uwb/aidl/default/src/
Duwb_chip.rs32 state: Mutex<State>, field
40 state: Mutex::new(State::Closed), in new()
79 let mut state = self.state.lock().await; in open() localVariable
81 if let State::Closed = *state { in open()
108 *state = State::Opened { in open()
123 let mut state = self.state.lock().await; in close() localVariable
125 if let State::Opened { ref callbacks, .. } = *state { in close()
127 *state = State::Closed; in close()
137 if let State::Opened { ref callbacks, .. } = *self.state.lock().await { in coreInit()
158 if let State::Opened { write, .. } = &mut *self.state.lock().await { in sendUciMessage()
/hardware/google/pixel/vibrator/cs40l25/bench/
Dbenchmark.cpp102 (benchmark::State & state){code} BENCHMARK_REGISTER_F(fixt, test)->Apply(fixt::DefaultArgs)
107 for (auto _ : state) {
113 for (auto _ : state) {
121 for (auto _ : state) {
127 for (auto _ : state) {
133 for (auto _ : state) {
141 for (auto _ : state) {
147 Effect effect = Effect(state.range(0));
148 EffectStrength strength = EffectStrength(state.range(1));
157 for (auto _ : state) {
/hardware/google/graphics/common/libhwjpeg/include/
DExynosJpegApi.h93 void SetState(unsigned int state) { m_uiState |= state; } in SetState() argument
94 void ClearState(unsigned int state) { m_uiState &= ~state; } in ClearState() argument
95 bool TestState(unsigned int state) { return (m_uiState & state) == state; } in TestState() argument
96 bool TestStateEither(unsigned int state) { return (m_uiState & state) != 0; } in TestStateEither() argument
/hardware/google/interfaces/light/1.1/
DILight.hal24 * Set High Brightness Mode Sunlight Visibility state to light.
26 * @param state on/off
27 * @return status result of applying state transformation.
29 setHbmSv(bool state) generates (Status status);
32 * Get High Brightness Mode Sunlight Visibility state.
34 * @return state on/off
36 getHbmSv() generates (bool state);
/hardware/st/nfc/1.0/adaptation/
Dconfig.cpp78 unsigned long state; member in CNfcConfig
80 inline bool Is(unsigned long f) { return (state & f) == f; } in Is()
81 inline void Set(unsigned long f) { state |= f; } in Set()
82 inline void Reset(unsigned long f) { state &= ~f; } in Reset()
189 state = BEGIN_LINE; in readConfig()
211 switch (state & 0xff) { in readConfig()
214 state = END_LINE; in readConfig()
219 state = TOKEN; in readConfig()
226 state = BEGIN_QUOTE; in readConfig()
230 state = END_LINE; in readConfig()
[all …]
/hardware/samsung/nfc/halimpl/src/
Dhal_task.cc37 static void nfc_hal_state_switch(tNFC_HAL_MSG* msg, eHAL_STATE state) { in nfc_hal_state_switch() argument
47 nfc_hal_info.state = state; in nfc_hal_state_switch()
104 nfc_hal_info.state = HAL_STATE_POSTINIT; in nfc_hal_open_sm()
130 nfc_hal_info.vs_info.state = VS_INIT; in nfc_hal_postinit_sm()
186 nfc_hal_info.state = HAL_STATE_SERVICE; in nfc_hal_postinit_sm()
222 if (vs->state != VS_INIT) { in nfc_hal_vs_sm()
227 switch (vs->state) { in nfc_hal_vs_sm()
230 vs->state = VS_W4_COMPLETE; in nfc_hal_vs_sm()
252 nfc_hal_info.vs_info.state = VS_INIT; in nfc_hal_service_sm()
278 nfc_hal_info.state = HAL_STATE_SERVICE; in nfc_hal_grant_finish()
[all …]

12345678910>>...34