Home
last modified time | relevance | path

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

12345678910>>...26

/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/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/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/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/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/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/sdm845/display/liblight/
Dlights.c182 is_lit(struct light_state_t const* state) in is_lit() argument
184 return state->color & 0x00ffffff; in is_lit()
188 rgb_to_brightness(struct light_state_t const* state) in rgb_to_brightness() argument
190 int color = state->color & 0x00ffffff; in rgb_to_brightness()
197 struct light_state_t const* state) in set_light_backlight() argument
200 int brightness = rgb_to_brightness(state); in set_light_backlight()
202 state->brightnessMode == BRIGHTNESS_MODE_LOW_PERSISTENCE; in set_light_backlight()
215 bool persistence_mode = ((g_last_backlight_mode != state->brightnessMode && lpEnabled) || in set_light_backlight()
227 g_last_backlight_mode = state->brightnessMode; in set_light_backlight()
230 g_last_backlight_mode = state->brightnessMode; in set_light_backlight()
[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/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/msm8998/json-c/
Djson_tokener.c139 tok->stack[depth].state = json_tokener_state_eatws; in json_tokener_reset_level()
187 #define state tok->stack[tok->depth].state macro
212 …(((tok)->depth == 0 && state == json_tokener_state_eatws && saved_state == json_tokener_state_fini…
261 switch(state) { in json_tokener_parse_ex()
272 state = json_tokener_state_comment_start; in json_tokener_parse_ex()
274 state = saved_state; in json_tokener_parse_ex()
282 state = json_tokener_state_eatws; in json_tokener_parse_ex()
287 state = json_tokener_state_eatws; in json_tokener_parse_ex()
293 state = json_tokener_state_inf; in json_tokener_parse_ex()
299 state = json_tokener_state_null; // or NaN in json_tokener_parse_ex()
[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/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/google/av/media/codecs/base/
DSimpleC2Component.cpp165 Mutexed<ExecState>::Locked state(mExecState); in setListener_vb() local
166 if (state->mState == RUNNING) { in setListener_vb()
173 state->mListener = listener; in setListener_vb()
181 Mutexed<ExecState>::Locked state(mExecState); in queue_nb() local
182 if (state->mState != RUNNING) { in queue_nb()
210 Mutexed<ExecState>::Locked state(mExecState); in flush_sm() local
211 if (state->mState != RUNNING) { in flush_sm()
242 Mutexed<ExecState>::Locked state(mExecState); in drain_nb() local
243 if (state->mState != RUNNING) { in drain_nb()
261 Mutexed<ExecState>::Locked state(mExecState); in start() local
[all …]
/hardware/google/av/media/sfplugin/
DCCodec.cpp568 Mutexed<State>::Locked state(mState); in initiateAllocateComponent() local
569 if (state->get() != RELEASED) { in initiateAllocateComponent()
572 state->set(ALLOCATING); in initiateAllocateComponent()
614 Mutexed<State>::Locked state(mState); in allocate() local
615 state->set(RELEASED); in allocate()
616 state.unlock(); in allocate()
618 state.lock(); in allocate()
624 Mutexed<State>::Locked state(mState); in allocate() local
625 if (state->get() != ALLOCATING) { in allocate()
626 state->set(RELEASED); in allocate()
[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/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/interfaces/keymaster/4.0/vts/performance/
DBenchmark.cpp402 static void addDefaultLabel(benchmark::State& state) { in addDefaultLabel() argument
415 state.SetLabel("hardware_name:" + keymaster->getHardwareName() + " sec_level:" + secLevel); in addDefaultLabel()
447 static void keygen(benchmark::State& state, string transform, int keySize) { in keygen() argument
448 addDefaultLabel(state); in keygen()
449 for (auto _ : state) { in keygen()
451 state.PauseTiming(); in keygen()
453 state.ResumeTiming(); in keygen()
484 static void sign(benchmark::State& state, string transform, int keySize, int msgSize) { in sign() argument
485 addDefaultLabel(state); in sign()
487 state.SkipWithError( in sign()
[all …]
/hardware/interfaces/power/1.0/
DIPower.hal25 * system entering interactive state (that is, the system is awake
27 * display and touchscreen enabled) or non-interactive state (the
29 * non-interactive state may be entered after a period of
36 * system to low-power sleep state when entering non-interactive
37 * state, and to disallow low-power suspend when the system is in
38 * interactive state. When low-power suspend state is allowed, the
42 * This function can be called to enter non-interactive state after
44 * interactive state prior to turning on the screen.
47 * interactive state and false when transitioning to a
48 * non-interactive state.
[all …]
/hardware/st/nfc/st21nfc/adaptation/
Dconfig.cpp80 unsigned long state; member in CNfcConfig
82 inline bool Is(unsigned long f) { return (state & f) == f; } in Is()
83 inline void Set(unsigned long f) { state |= f; } in Set()
84 inline void Reset(unsigned long f) { state &= ~f; } in Reset()
191 state = BEGIN_LINE; in readConfig()
213 switch (state & 0xff) { in readConfig()
216 state = END_LINE; in readConfig()
221 state = TOKEN; in readConfig()
228 state = BEGIN_QUOTE; in readConfig()
232 state = END_LINE; in readConfig()
[all …]
/hardware/qcom/sdm845/gps/msm8994/utils/
Dloc_timer.c50 enum timer_state state; member
81 if (READY == t->state) { in timer_thread()
82 t->state = WAITING; in timer_thread()
84 t->state = DONE; in timer_thread()
161 t->state = READY; in loc_timer_start()
195 if (NULL != t && (READY == t->state || WAITING == t->state) && in loc_timer_stop()
197 if (READY == t->state || WAITING == t->state) { in loc_timer_stop()
199 t->state = ABORT; in loc_timer_stop()
/hardware/qcom/gps/msm8084/utils/
Dloc_timer.c50 enum timer_state state; member
81 if (READY == t->state) { in timer_thread()
82 t->state = WAITING; in timer_thread()
84 t->state = DONE; in timer_thread()
145 t->state = READY; in loc_timer_start()
178 if (NULL != t && (READY == t->state || WAITING == t->state)) { in loc_timer_stop()
180 if (READY == t->state || WAITING == t->state) { in loc_timer_stop()
182 t->state = ABORT; in loc_timer_stop()
/hardware/qcom/gps/utils/
Dloc_timer.c50 enum timer_state state; member
81 if (READY == t->state) { in timer_thread()
82 t->state = WAITING; in timer_thread()
84 t->state = DONE; in timer_thread()
161 t->state = READY; in loc_timer_start()
194 if (NULL != t && (READY == t->state || WAITING == t->state) && in loc_timer_stop()
196 if (READY == t->state || WAITING == t->state) { in loc_timer_stop()
198 t->state = ABORT; in loc_timer_stop()

12345678910>>...26