/hardware/interfaces/confirmationui/support/test/ |
D | android_cbor_test.cpp | 69 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/ |
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 | 113 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/ |
D | benchmark.cpp | 51 void SetUp(::benchmark::State &state) override { in SetUp() argument 66 SetProperty(std::string() + PROPERTY_PREFIX + "config.dynamic", getDynamicConfig(state)); in SetUp() 82 std::string getDynamicConfig(const ::benchmark::State &state) const { in getDynamicConfig() 83 return std::to_string(state.range(0)); in getDynamicConfig() 86 auto getOtherArg(const ::benchmark::State &state, std::size_t index) const { in getOtherArg() argument 87 return state.range(index + 1); in getOtherArg() 98 (benchmark::State & state){code} BENCHMARK_REGISTER_F(fixt, test) \ 105 for (auto _ : state) { 111 for (auto _ : state) { 119 for (auto _ : state) { [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/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/msm8909w_3100/liblight/ |
D | lights.c | 115 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/ |
D | lights.c | 113 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/ |
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/sdm845/display/liblight/ |
D | lights.c | 182 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/ |
D | lights.c | 116 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/ |
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/msm8998/json-c/ |
D | json_tokener.c | 139 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/interfaces/power/1.1/ |
D | types.hal | 19 * 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/ |
D | config.cpp | 78 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/ |
D | Benchmark.cpp | 402 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/ |
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 …]
|
/hardware/google/interfaces/light/1.1/ |
D | ILight.hal | 24 * 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/st21nfc/adaptation/ |
D | config.cpp | 80 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/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/sdm845/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/sdm845/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/sdm845/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/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()
|