Home
last modified time | relevance | path

Searched refs:context (Results 1 – 25 of 402) sorted by relevance

12345678910>>...17

/hardware/qcom/audio/post_proc/
Dreverb.c98 void reverb_auxiliary_init(reverb_context_t *context) in reverb_auxiliary_init() argument
100 context->auxiliary = true; in reverb_auxiliary_init()
101 context->preset = false; in reverb_auxiliary_init()
104 void reverb_insert_init(reverb_context_t *context) in reverb_insert_init() argument
106 context->auxiliary = false; in reverb_insert_init()
107 context->preset = true; in reverb_insert_init()
108 context->cur_preset = REVERB_PRESET_LAST + 1; in reverb_insert_init()
109 context->next_preset = REVERB_DEFAULT_PRESET; in reverb_insert_init()
112 void reverb_preset_init(reverb_context_t *context) in reverb_preset_init() argument
114 context->auxiliary = false; in reverb_preset_init()
[all …]
Dbundle.c91 bool effect_exists(effect_context_t *context) in effect_exists() argument
99 if (fx_ctxt == context) { in effect_exists()
120 void add_effect_to_output(output_context_t * output, effect_context_t *context) in add_effect_to_output() argument
128 if (fx_ctxt == context) in add_effect_to_output()
131 list_add_tail(&output->effects_list, &context->output_node); in add_effect_to_output()
132 if (context->ops.start) in add_effect_to_output()
133 context->ops.start(context, output); in add_effect_to_output()
138 effect_context_t *context) in remove_effect_from_output() argument
146 if (fx_ctxt == context) { in remove_effect_from_output()
147 if (context->ops.stop) in remove_effect_from_output()
[all …]
Dvirtualizer.c46 int virtualizer_get_strength(virtualizer_context_t *context) in virtualizer_get_strength() argument
48 ALOGV("%s: strength: %d", __func__, context->strength); in virtualizer_get_strength()
49 return context->strength; in virtualizer_get_strength()
52 int virtualizer_set_strength(virtualizer_context_t *context, uint32_t strength) in virtualizer_set_strength() argument
55 context->strength = strength; in virtualizer_set_strength()
57 offload_virtualizer_set_strength(&(context->offload_virt), strength); in virtualizer_set_strength()
58 if (context->ctl) in virtualizer_set_strength()
59 offload_virtualizer_send_params(context->ctl, &context->offload_virt, in virtualizer_set_strength()
65 int virtualizer_get_parameter(effect_context_t *context, effect_param_t *p, in virtualizer_get_parameter() argument
68 virtualizer_context_t *virt_ctxt = (virtualizer_context_t *)context; in virtualizer_get_parameter()
[all …]
Dbass_boost.c46 int bassboost_get_strength(bassboost_context_t *context) in bassboost_get_strength() argument
48 ALOGV("%s: strength: %d", __func__, context->strength); in bassboost_get_strength()
49 return context->strength; in bassboost_get_strength()
52 int bassboost_set_strength(bassboost_context_t *context, uint32_t strength) in bassboost_set_strength() argument
55 context->strength = strength; in bassboost_set_strength()
57 offload_bassboost_set_strength(&(context->offload_bass), strength); in bassboost_set_strength()
58 if (context->ctl) in bassboost_set_strength()
59 offload_bassboost_send_params(context->ctl, &context->offload_bass, in bassboost_set_strength()
65 int bassboost_get_parameter(effect_context_t *context, effect_param_t *p, in bassboost_get_parameter() argument
68 bassboost_context_t *bass_ctxt = (bassboost_context_t *)context; in bassboost_get_parameter()
[all …]
Dequalizer.c85 int equalizer_get_band_level(equalizer_context_t *context, int32_t band) in equalizer_get_band_level() argument
88 context->band_levels[band] * 100); in equalizer_get_band_level()
89 return context->band_levels[band] * 100; in equalizer_get_band_level()
92 int equalizer_set_band_level(equalizer_context_t *context, int32_t band, in equalizer_set_band_level() argument
101 context->band_levels[band] = level; in equalizer_set_band_level()
102 context->preset = PRESET_CUSTOM; in equalizer_set_band_level()
104 offload_eq_set_preset(&(context->offload_eq), PRESET_CUSTOM); in equalizer_set_band_level()
105 offload_eq_set_bands_level(&(context->offload_eq), in equalizer_set_band_level()
108 context->band_levels); in equalizer_set_band_level()
109 if (context->ctl) in equalizer_set_band_level()
[all …]
Dma_listener.c170 static inline bool valid_dev_in_context(struct ma_listener_context_s *context) in valid_dev_in_context() argument
173 if ((context->dev_id & AUDIO_DEVICE_OUT_SPEAKER) || in valid_dev_in_context()
174 (context->dev_id & AUDIO_DEVICE_OUT_SPEAKER_SAFE) || in valid_dev_in_context()
176 (context->dev_id & AUDIO_DEVICE_OUT_ALL_A2DP) || in valid_dev_in_context()
177 (context->dev_id & AUDIO_DEVICE_OUT_ALL_USB)) { in valid_dev_in_context()
190 ma_listener_context_t *context = NULL; in check_and_set_ma_parameter() local
195 context = node_to_item(node, struct ma_listener_context_s, effect_list_node); in check_and_set_ma_parameter()
196 if (context->stream_type == stream_type && in check_and_set_ma_parameter()
197 valid_dev_in_context(context)) { in check_and_set_ma_parameter()
198 if (context->state == MA_LISTENER_STATE_ACTIVE) { in check_and_set_ma_parameter()
[all …]
Dvolume_listener.c221 vol_listener_context_t *context; in dump_list_l() local
226 context = node_to_item(node, struct vol_listener_context_s, effect_list_node); in dump_list_l()
230 context->stream_type == MUSIC ? "MUSIC" : in dump_list_l()
231 context->stream_type == RING ? "RING" : in dump_list_l()
232 context->stream_type == ALARM ? "ALARM" : in dump_list_l()
233 context->stream_type == VOICE_CALL ? "VOICE_CALL" : in dump_list_l()
234 context->stream_type == VC_CALL ? "VC_CALL" : in dump_list_l()
235 context->stream_type == NOTIFICATION ? "NOTIFICATION" : "--INVALID--", in dump_list_l()
236context->dev_id, context->state, context->session_id, context->left_vol,context->right_vol); in dump_list_l()
242 static inline bool valid_dev_in_context(struct vol_listener_context_s *context) in valid_dev_in_context() argument
[all …]
Dbundle.h55 int (*init)(effect_context_t *context);
56 int (*release)(effect_context_t *context);
57 int (*reset)(effect_context_t *context);
58 int (*enable)(effect_context_t *context);
59 int (*start)(effect_context_t *context, output_context_t *output);
60 int (*stop)(effect_context_t *context, output_context_t *output);
61 int (*disable)(effect_context_t *context);
62 int (*process)(effect_context_t *context, audio_buffer_t *in, audio_buffer_t *out);
63 int (*set_parameter)(effect_context_t *context, effect_param_t *param, uint32_t size);
64 int (*get_parameter)(effect_context_t *context, effect_param_t *param, uint32_t *size);
[all …]
Dreverb.h57 void reverb_auxiliary_init(reverb_context_t *context);
59 void reverb_preset_init(reverb_context_t *context);
61 void reverb_insert_init(reverb_context_t *context);
63 int reverb_get_parameter(effect_context_t *context, effect_param_t *p,
66 int reverb_set_parameter(effect_context_t *context, effect_param_t *p,
69 int reverb_set_device(effect_context_t *context, uint32_t device);
71 int reverb_reset(effect_context_t *context);
73 int reverb_init(effect_context_t *context);
75 int reverb_enable(effect_context_t *context);
77 int reverb_disable(effect_context_t *context);
[all …]
Dvirtualizer.h36 int virtualizer_get_parameter(effect_context_t *context, effect_param_t *p,
39 int virtualizer_set_parameter(effect_context_t *context, effect_param_t *p,
42 int virtualizer_set_device(effect_context_t *context, uint32_t device);
44 int virtualizer_reset(effect_context_t *context);
46 int virtualizer_init(effect_context_t *context);
48 int virtualizer_enable(effect_context_t *context);
50 int virtualizer_disable(effect_context_t *context);
52 int virtualizer_start(effect_context_t *context, output_context_t *output);
54 int virtualizer_stop(effect_context_t *context, output_context_t *output);
Dbass_boost.h36 int bassboost_get_parameter(effect_context_t *context, effect_param_t *p,
39 int bassboost_set_parameter(effect_context_t *context, effect_param_t *p,
42 int bassboost_set_device(effect_context_t *context, uint32_t device);
44 int bassboost_reset(effect_context_t *context);
46 int bassboost_init(effect_context_t *context);
48 int bassboost_enable(effect_context_t *context);
50 int bassboost_disable(effect_context_t *context);
52 int bassboost_start(effect_context_t *context, output_context_t *output);
54 int bassboost_stop(effect_context_t *context, output_context_t *output);
Dequalizer.h40 int equalizer_get_parameter(effect_context_t *context, effect_param_t *p,
43 int equalizer_set_parameter(effect_context_t *context, effect_param_t *p,
46 int equalizer_set_device(effect_context_t *context, uint32_t device);
48 int equalizer_reset(effect_context_t *context);
50 int equalizer_init(effect_context_t *context);
52 int equalizer_enable(effect_context_t *context);
54 int equalizer_disable(effect_context_t *context);
56 int equalizer_start(effect_context_t *context, output_context_t *output);
58 int equalizer_stop(effect_context_t *context, output_context_t *output);
/hardware/interfaces/renderscript/1.0/vts/functional/
DVtsMiscellaneousTests.cpp36 Element element = context->elementCreate(DataType::FLOAT_32, DataKind::USER, false, 1); in TEST_P()
48 Element element = context->elementCreate(DataType::FLOAT_32, DataKind::USER, false, 1); in TEST_P()
52 Type type = context->typeCreate(element, 1, 0, 0, false, false, YuvFormat::YUV_NONE); in TEST_P()
56 Allocation allocation = context->allocationCreateTyped(type, AllocationMipmapControl::NONE, in TEST_P()
63 Type type2 = context->allocationGetType(allocation); in TEST_P()
76 Element element = context->elementCreate(DataType::FLOAT_32, DataKind::USER, false, 1); in TEST_P()
80 Type type = context->typeCreate(element, 128, 0, 0, false, false, YuvFormat::YUV_NONE); in TEST_P()
84 context->elementGetNativeMetadata(element, [&](const hidl_vec<uint32_t>& _metadata){ in TEST_P()
93 context->typeGetNativeMetadata(type, [&typeMetadata](const hidl_vec<OpaqueHandle>& _metadata){ in TEST_P()
112 Element element = context->elementCreate(DataType::FLOAT_32, DataKind::USER, false, 1); in TEST_P()
[all …]
DVtsScriptTests.cpp27 Element element = context->elementCreate(DataType::UNSIGNED_8, DataKind::USER, false, 1); in TEST_P()
30 Script script = context->scriptIntrinsicCreate(ScriptIntrinsicID::ID_BLUR, element); in TEST_P()
33 context->scriptSetTimeZone(script, "UTF-8"); in TEST_P()
47 Script script = context->scriptCCreate("struct_test", "/data/local/tmp/", bitcode); in TEST_P()
51 context->scriptSetVarI(script, mExportVarIdx_var_int, 100); in TEST_P()
53 context->scriptGetVarV(script, mExportVarIdx_var_int, sizeof(int), in TEST_P()
57 context->scriptSetVarJ(script, mExportVarIdx_var_long, 101L); in TEST_P()
59 context->scriptGetVarV(script, mExportVarIdx_var_long, sizeof(long), in TEST_P()
64 context->scriptSetVarF(script, mExportVarIdx_var_float, 102.0f); in TEST_P()
66 context->scriptGetVarV(script, mExportVarIdx_var_float, sizeof(float), in TEST_P()
[all …]
DVtsCopyTests.cpp32 Element element = context->elementCreate(DataType::FLOAT_32, DataKind::USER, false, 1); in TEST_P()
36 Type type = context->typeCreate(element, 128, 0, 0, false, false, YuvFormat::YUV_NONE); in TEST_P()
40 Allocation allocation = context->allocationCreateTyped(type, AllocationMipmapControl::NONE, in TEST_P()
49 context->allocation1DWrite(allocation, 0, 0, (Size)dataIn.size(), _data); in TEST_P()
50 context->allocation1DRead(allocation, 0, 0, (uint32_t)dataOut.size(), (Ptr)dataOut.data(), in TEST_P()
68 Element element = context->elementCreate(DataType::FLOAT_32, DataKind::USER, false, 1); in TEST_P()
72 Type type = context->typeCreate(element, 128, 128, 0, false, false, YuvFormat::YUV_NONE); in TEST_P()
76 Allocation allocation = context->allocationCreateTyped(type, AllocationMipmapControl::NONE, in TEST_P()
85 context->allocation2DWrite(allocation, 0, 0, 0, AllocationCubemapFace::POSITIVE_X, 128, 128, in TEST_P()
87 context->allocation2DRead(allocation, 0, 0, 0, AllocationCubemapFace::POSITIVE_X, 128, 128, in TEST_P()
[all …]
/hardware/qcom/audio/visualizer/
Doffload_visualizer.c58 int (*init)(effect_context_t *context);
59 int (*release)(effect_context_t *context);
60 int (*reset)(effect_context_t *context);
61 int (*enable)(effect_context_t *context);
62 int (*disable)(effect_context_t *context);
63 int (*start)(effect_context_t *context, output_context_t *output);
64 int (*stop)(effect_context_t *context, output_context_t *output);
65 int (*process)(effect_context_t *context, audio_buffer_t *in, audio_buffer_t *out);
66 int (*set_parameter)(effect_context_t *context, effect_param_t *param, uint32_t size);
67 int (*get_parameter)(effect_context_t *context, effect_param_t *param, uint32_t *size);
[all …]
/hardware/qcom/gps/msm8084/loc_api/libloc_api_50001/
Dloc_eng_dmn_conn_thread_helper.h45 int (*thread_proc_init) (void * context);
46 int (*thread_proc_pre) (void * context);
47 int (*thread_proc) (void * context);
48 int (*thread_proc_post) (void * context);
53 int (*thread_proc_init) (void * context),
54 int (*thread_proc_pre) (void * context),
55 int (*thread_proc) (void * context),
56 int (*thread_proc_post) (void * context),
58 void * context);
/hardware/qcom/sdm845/gps/loc_api/libloc_api_50001/
Dloc_eng_dmn_conn_thread_helper.h45 int (*thread_proc_init) (void * context);
46 int (*thread_proc_pre) (void * context);
47 int (*thread_proc) (void * context);
48 int (*thread_proc_post) (void * context);
53 int (*thread_proc_init) (void * context),
54 int (*thread_proc_pre) (void * context),
55 int (*thread_proc) (void * context),
56 int (*thread_proc_post) (void * context),
58 void * context);
/hardware/qcom/gps/msm8960/loc_api/libloc_api_50001/
Dloc_eng_dmn_conn_thread_helper.h45 int (*thread_proc_init) (void * context);
46 int (*thread_proc_pre) (void * context);
47 int (*thread_proc) (void * context);
48 int (*thread_proc_post) (void * context);
53 int (*thread_proc_init) (void * context),
54 int (*thread_proc_pre) (void * context),
55 int (*thread_proc) (void * context),
56 int (*thread_proc_post) (void * context),
58 void * context);
/hardware/qcom/gps/loc_api/libloc_api_50001/
Dloc_eng_dmn_conn_thread_helper.h45 int (*thread_proc_init) (void * context);
46 int (*thread_proc_pre) (void * context);
47 int (*thread_proc) (void * context);
48 int (*thread_proc_post) (void * context);
53 int (*thread_proc_init) (void * context),
54 int (*thread_proc_pre) (void * context),
55 int (*thread_proc) (void * context),
56 int (*thread_proc_post) (void * context),
58 void * context);
/hardware/qcom/gps/msm8909/loc_api/libloc_api_50001/
Dloc_eng_dmn_conn_thread_helper.h45 int (*thread_proc_init) (void * context);
46 int (*thread_proc_pre) (void * context);
47 int (*thread_proc) (void * context);
48 int (*thread_proc_post) (void * context);
53 int (*thread_proc_init) (void * context),
54 int (*thread_proc_pre) (void * context),
55 int (*thread_proc) (void * context),
56 int (*thread_proc_post) (void * context),
58 void * context);
/hardware/qcom/gps/msm8996/loc_api/libloc_api_50001/
Dloc_eng_dmn_conn_thread_helper.h45 int (*thread_proc_init) (void * context);
46 int (*thread_proc_pre) (void * context);
47 int (*thread_proc) (void * context);
48 int (*thread_proc_post) (void * context);
53 int (*thread_proc_init) (void * context),
54 int (*thread_proc_pre) (void * context),
55 int (*thread_proc) (void * context),
56 int (*thread_proc_post) (void * context),
58 void * context);
/hardware/qcom/sdm845/gps/msm8909/loc_api/libloc_api_50001/
Dloc_eng_dmn_conn_thread_helper.h45 int (*thread_proc_init) (void * context);
46 int (*thread_proc_pre) (void * context);
47 int (*thread_proc) (void * context);
48 int (*thread_proc_post) (void * context);
53 int (*thread_proc_init) (void * context),
54 int (*thread_proc_pre) (void * context),
55 int (*thread_proc) (void * context),
56 int (*thread_proc_post) (void * context),
58 void * context);
/hardware/qcom/sdm845/gps/msm8960/loc_api/libloc_api_50001/
Dloc_eng_dmn_conn_thread_helper.h45 int (*thread_proc_init) (void * context);
46 int (*thread_proc_pre) (void * context);
47 int (*thread_proc) (void * context);
48 int (*thread_proc_post) (void * context);
53 int (*thread_proc_init) (void * context),
54 int (*thread_proc_pre) (void * context),
55 int (*thread_proc) (void * context),
56 int (*thread_proc_post) (void * context),
58 void * context);
/hardware/qcom/sdm845/gps/msm8084/loc_api/libloc_api_50001/
Dloc_eng_dmn_conn_thread_helper.h45 int (*thread_proc_init) (void * context);
46 int (*thread_proc_pre) (void * context);
47 int (*thread_proc) (void * context);
48 int (*thread_proc_post) (void * context);
53 int (*thread_proc_init) (void * context),
54 int (*thread_proc_pre) (void * context),
55 int (*thread_proc) (void * context),
56 int (*thread_proc_post) (void * context),
58 void * context);

12345678910>>...17