/hardware/qcom/audio/legacy/alsa_sound/ |
D | AudioPolicyManagerALSA.cpp | 49 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/ |
D | lights.c | 110 is_lit(struct light_state_t const* state) in is_lit() argument 112 return state->color & 0x00ffffff; in is_lit() 116 rgb_to_brightness(struct light_state_t const* state) in rgb_to_brightness() argument 118 int color = state->color & 0x00ffffff; in rgb_to_brightness() 125 struct light_state_t const* state) in set_light_backlight() argument 128 int brightness = rgb_to_brightness(state); in set_light_backlight() 130 state->brightnessMode == BRIGHTNESS_MODE_LOW_PERSISTENCE; in set_light_backlight() 137 if ((g_last_backlight_mode != state->brightnessMode && lpEnabled) || in set_light_backlight() 149 g_last_backlight_mode = state->brightnessMode; in set_light_backlight() 161 struct light_state_t const* state) in set_speaker_light_locked() argument [all …]
|
/hardware/qcom/display/msm8909/liblight/ |
D | lights.c | 104 is_lit(struct light_state_t const* state) in is_lit() argument 106 return state->color & 0x00ffffff; in is_lit() 110 rgb_to_brightness(struct light_state_t const* state) in rgb_to_brightness() argument 112 int color = state->color & 0x00ffffff; in rgb_to_brightness() 119 struct light_state_t const* state) in set_light_backlight() argument 122 int brightness = rgb_to_brightness(state); in set_light_backlight() 134 struct light_state_t const* state) in set_speaker_light_locked() argument 145 switch (state->flashMode) { in set_speaker_light_locked() 147 onMS = state->flashOnMS; in set_speaker_light_locked() 148 offMS = state->flashOffMS; in set_speaker_light_locked() [all …]
|
/hardware/qcom/display/msm8994/liblight/ |
D | lights.c | 101 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/ |
D | lights.c | 101 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/ |
D | lights.c | 100 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/ |
D | lights.c | 100 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/msm8960/liblight/ |
D | lights.c | 117 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/audio/hal/voice_extn/ |
D | voice_extn.c | 148 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/intel/common/omx-components/videocodec/ |
D | OMXComponentDefines.h | 64 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/ |
D | IPower.hal | 25 * 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 …]
|
D | types.hal | 95 * Platform-level sleep state stats: 97 * when a Platform-level sleep state is chosen by aggregation of votes from 101 * entering the lowest Platform-level sleep state. 110 * Total time in msec the voter voted for the platform sleep state since 116 * Number of times the voter voted for the platform sleep state since boot. 122 * Platform-level sleep state stats: 123 * PowerStatePlatformSleepState represents the Platform-level sleep state 126 * SoCs usually have more than one Platform-level sleep state. 130 * Platform-level Sleep state name. 135 * Time spent in msec at this platform-level sleep state since boot. [all …]
|
/hardware/qcom/gps/utils/ |
D | loc_timer.c | 50 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/ |
D | loc_timer.c | 50 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/ |
D | loc_timer.c | 50 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/audio/voice_processing/ |
D | voice_processing.c | 63 uint32_t state; // current state (enum effect_state) member 72 uint32_t state; // current state (enum session_state) member 169 static int effect_set_state(struct effect_s *effect, uint32_t state) in effect_set_state() argument 172 ALOGV("effect_set_state() id %d, new %d old %d", effect->id, state, effect->state); in effect_set_state() 173 switch(state) { in effect_set_state() 175 switch(effect->state) { in effect_set_state() 183 BAD_STATE_ABORT(effect->state, state); in effect_set_state() 187 switch(effect->state) { in effect_set_state() 197 BAD_STATE_ABORT(effect->state, state); in effect_set_state() 201 switch(effect->state) { in effect_set_state() [all …]
|
/hardware/interfaces/automotive/evs/1.0/ |
D | IEvsDisplay.hal | 36 * 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/ |
D | results_holder.h | 39 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);
|
D | results_holder.c | 140 void inv_set_large_mag_field(int state) in inv_set_large_mag_field() argument 142 rh.large_mag_field = state; in inv_set_large_mag_field() 156 void inv_set_acc_state(int state) in inv_set_acc_state() argument 158 rh.acc_state = state; in inv_set_acc_state() 176 void inv_set_motion_state(unsigned char state) in inv_set_motion_state() argument 179 if (state == rh.motion_state) { in inv_set_motion_state() 180 if (state == INV_NO_MOTION) { in inv_set_motion_state() 188 rh.motion_state = state; in inv_set_motion_state() 190 if (state == INV_MOTION) in inv_set_motion_state() 417 void inv_set_accel_bias_found(int state) in inv_set_accel_bias_found() argument [all …]
|
/hardware/intel/common/utils/ituxd/src/com/intel/thermal/ |
D | ThermalCoolingDevice.java | 153 int state = 0; in updateCurrentThermalState() local 155 state = Math.max(state, coolingDevState); in updateCurrentThermalState() 157 mCurrentThermalState = state; in updateCurrentThermalState() 165 public void updateZoneState(int zoneId, int state) { in updateZoneState() argument 175 mZoneStateList.add(state); in updateZoneState() 177 mZoneStateList.set(index, state); in updateZoneState()
|
/hardware/interfaces/power/1.0/default/ |
D | Power.cpp | 118 PowerStatePlatformSleepState& state = states[i]; in getPlatformLowPowerStats() local 119 state.name = legacy_state.name; in getPlatformLowPowerStats() 120 state.residencyInMsecSinceBoot = legacy_state.residency_in_msec_since_boot; in getPlatformLowPowerStats() 121 state.totalTransitions = legacy_state.total_transitions; in getPlatformLowPowerStats() 122 state.supportedOnlyInSuspend = legacy_state.supported_only_in_suspend; in getPlatformLowPowerStats() 123 state.voters.resize(voters[i]); in getPlatformLowPowerStats() 126 state.voters[j].name = legacy_state.voters[j].name; in getPlatformLowPowerStats() 127 …state.voters[j].totalTimeInMsecVotedForSinceBoot = legacy_state.voters[j].total_time_in_msec_voted… in getPlatformLowPowerStats() 128 …state.voters[j].totalNumberOfTimesVotedSinceBoot = legacy_state.voters[j].total_number_of_times_vo… in getPlatformLowPowerStats()
|
/hardware/interfaces/tests/extension/light/2.0/default/ |
D | Light.cpp | 27 Return<Status> Light::setLight(Type type, const LightState& state) { in setLight() argument 31 .state = state, in setLight() 35 static_cast<ExtBrightness>(state.brightnessMode) in setLight()
|
/hardware/qcom/gps/msm8998/android/location_api/ |
D | GnssMeasurementAPIClient.cpp | 173 out.state |= IGnssMeasurementCallback::GnssMeasurementState::STATE_CODE_LOCK; in convertGnssMeasurement() 175 out.state |= IGnssMeasurementCallback::GnssMeasurementState::STATE_BIT_SYNC; in convertGnssMeasurement() 177 out.state |= IGnssMeasurementCallback::GnssMeasurementState::STATE_SUBFRAME_SYNC; in convertGnssMeasurement() 179 out.state |= IGnssMeasurementCallback::GnssMeasurementState::STATE_TOW_DECODED; in convertGnssMeasurement() 181 out.state |= IGnssMeasurementCallback::GnssMeasurementState::STATE_MSEC_AMBIGUOUS; in convertGnssMeasurement() 183 out.state |= IGnssMeasurementCallback::GnssMeasurementState::STATE_SYMBOL_SYNC; in convertGnssMeasurement() 185 out.state |= IGnssMeasurementCallback::GnssMeasurementState::STATE_GLO_STRING_SYNC; in convertGnssMeasurement() 187 out.state |= IGnssMeasurementCallback::GnssMeasurementState::STATE_GLO_TOD_DECODED; in convertGnssMeasurement() 189 out.state |= IGnssMeasurementCallback::GnssMeasurementState::STATE_BDS_D2_BIT_SYNC; in convertGnssMeasurement() 191 out.state |= IGnssMeasurementCallback::GnssMeasurementState::STATE_BDS_D2_SUBFRAME_SYNC; in convertGnssMeasurement() [all …]
|
/hardware/intel/common/libmix/mix_vbp/viddec_fw/fw/codecs/mp4/parser/ |
D | viddec_parse_sc_mp4.c | 30 viddec_sc_prefix_state_t *state = (viddec_sc_prefix_state_t *)sc_state; in viddec_parse_sc_mp4() local 122 state->next_sc = *ptr; in viddec_parse_sc_mp4() 123 state->second_scprfx_length = 2; in viddec_parse_sc_mp4() 135 state->next_sc = cxt->buf[cxt->sc_end_pos]; in viddec_parse_sc_mp4() 136 state->second_scprfx_length = 3; in viddec_parse_sc_mp4()
|
/hardware/invensense/6515/libsensors_iio/software/core/mllite/ |
D | results_holder.h | 82 void inv_set_acc_state(int state); 84 void inv_set_motion_state(unsigned char state); 118 void inv_set_compass_bias_found(int state); 120 void inv_set_large_mag_field(int state); 121 void inv_set_compass_state(int state); 137 void inv_set_accel_bias_found(int state);
|