Home
last modified time | relevance | path

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

12345678910>>...18

/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/msm8909/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/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/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/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/google/av/media/codecs/base/
DSimpleC2Component.cpp76 Mutexed<ExecState>::Locked state(mExecState); in setListener_vb() local
77 if (state->mState == RUNNING) { in setListener_vb()
84 state->mListener = listener; in setListener_vb()
92 Mutexed<ExecState>::Locked state(mExecState); in queue_nb() local
93 if (state->mState != RUNNING) { in queue_nb()
117 Mutexed<ExecState>::Locked state(mExecState); in flush_sm() local
118 if (state->mState != RUNNING) { in flush_sm()
149 Mutexed<ExecState>::Locked state(mExecState); in drain_nb() local
150 if (state->mState != RUNNING) { in drain_nb()
164 Mutexed<ExecState>::Locked state(mExecState); in start() local
[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/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/sfplugin/
DCCodec.cpp519 Mutexed<State>::Locked state(mState); in initiateAllocateComponent() local
520 if (state->get() != RELEASED) { in initiateAllocateComponent()
523 state->set(ALLOCATING); in initiateAllocateComponent()
565 Mutexed<State>::Locked state(mState); in allocate() local
566 state->set(RELEASED); in allocate()
567 state.unlock(); in allocate()
569 state.lock(); in allocate()
575 Mutexed<State>::Locked state(mState); in allocate() local
576 if (state->get() != ALLOCATING) { in allocate()
577 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/intel/common/omx-components/videocodec/
DOMXComponentDefines.h64 OMX_STATETYPE state;\
65 CBaseGetState((void *)GetComponentHandle(), &state);\
66 if (state != OMX_StateLoaded && state != OMX_StateWaitForResources) {\
72 OMX_STATETYPE state;\
73 CBaseGetState((void *)GetComponentHandle(), &state);\
74 if (state == OMX_StateLoaded || state == OMX_StateWaitForResources) {\
/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/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()
/hardware/qcom/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/nxp/nfc/halimpl/utils/
DphNxpConfig.cpp138 unsigned long state; member in CNfcConfig
140 inline bool Is(unsigned long f) { return (state & f) == f; } in Is()
141 inline void Set(unsigned long f) { state |= f; } in Set()
142 inline void Reset(unsigned long f) { state &= ~f; } in Reset()
260 state = BEGIN_LINE; in readConfig()
273 switch (state & 0xff) { in readConfig()
276 state = END_LINE; in readConfig()
281 state = TOKEN; in readConfig()
288 state = BEGIN_QUOTE; in readConfig()
292 state = END_LINE; in readConfig()
[all …]
/hardware/qcom/audio/voice_processing/
Dvoice_processing.c65 uint32_t state; // current state (enum effect_state) member
74 uint32_t state; // current state (enum session_state) member
171 static int effect_set_state(struct effect_s *effect, uint32_t state) in effect_set_state() argument
174 ALOGV("effect_set_state() id %d, new %d old %d", effect->id, state, effect->state); in effect_set_state()
175 switch(state) { in effect_set_state()
177 switch(effect->state) { in effect_set_state()
185 BAD_STATE_ABORT(effect->state, state); in effect_set_state()
189 switch(effect->state) { in effect_set_state()
199 BAD_STATE_ABORT(effect->state, state); in effect_set_state()
203 switch(effect->state) { in effect_set_state()
[all …]
/hardware/interfaces/automotive/evs/1.0/
DIEvsDisplay.hal36 * Clients may set the display state to express their desired state.
38 * The HAL implementation must gracefully accept a request for any state while in
39 * any other state, although the response may be to defer or ignore the request. The display
40 * is defined to start in the NOT_VISIBLE state upon initialization. The client is
41 * then expected to request the VISIBLE_ON_NEXT_FRAME state, and then begin providing
43 * the NOT_VISIBLE state after passing the last video frame.
44 * Returns INVALID_ARG if the requested state is not a recognized value.
46 setDisplayState(DisplayState state) generates (EvsResult result);
50 * This call requests the current state of the display
52 * The HAL implementation should report the actual current state, which might
[all …]
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/
Dresults_holder.h39 void inv_set_acc_state(int state);
41 void inv_set_motion_state(unsigned char state);
64 void inv_set_compass_bias_found(int state);
66 void inv_set_large_mag_field(int state);
67 void inv_set_compass_state(int state);
83 void inv_set_accel_bias_found(int state);
/hardware/interfaces/confirmationui/support/src/
Dcbor.cpp30 WriteState writeBytes(WriteState state, uint64_t value, uint8_t size) { in writeBytes() argument
31 auto pos = state.data_; in writeBytes()
32 if (!(state += size)) return state; in writeBytes()
48 state.error_ = Error::MALFORMED; in writeBytes()
50 return state; in writeBytes()

12345678910>>...18