Home
last modified time | relevance | path

Searched refs:params (Results 1 – 25 of 255) sorted by relevance

1234567891011

/hardware/google/av/media/sfplugin/tests/
DReflectedParamUpdater_test.cpp168 std::vector<std::unique_ptr<C2Param>> params; in TEST_F() local
169 params.emplace_back(new C2IntInfo); in TEST_F()
170 params.emplace_back(new C2LongInfo); in TEST_F()
171 EXPECT_EQ(0, CastParam<C2IntInfo>(params[0])->value); in TEST_F()
172 EXPECT_EQ(0, CastParam<C2LongInfo>(params[1])->value); in TEST_F()
174 updater.updateParamsFromMessage(msg, &params); in TEST_F()
175 EXPECT_EQ(12, CastParam<C2IntInfo>(params[0])->value); in TEST_F()
176 EXPECT_EQ(34, CastParam<C2LongInfo>(params[1])->value); in TEST_F()
181 msg = updater.getParams(params); in TEST_F()
214 std::vector<std::unique_ptr<C2Param>> params; in TEST_F() local
[all …]
/hardware/interfaces/keymaster/4.0/vts/functional/
DHmacKeySharingTest.cpp33 HmacSharingParameters params; member
34 auto tie() { return std::tie(error, params); } in tie()
50 .getHmacSharingParameters([&](auto error, auto params) { in getHmacSharingParameters() argument
51 result.tie() = std::tie(error, params); in getHmacSharingParameters()
62 if (result.error == ErrorCode::OK) paramsVec.push_back(std::move(result.params)); in getHmacSharingParameters()
68 const hidl_vec<HmacSharingParameters>& params) { in computeSharedHmac() argument
71 .computeSharedHmac(params, in computeSharedHmac()
72 [&](auto error, auto params) { in computeSharedHmac() argument
73 result.tie() = std::tie(error, params); in computeSharedHmac()
111 ASSERT_EQ(result1.params.seed, result2.params.seed) in TEST_F()
[all …]
Dkeymaster_hidl_hal_test.cpp1678 auto params = AuthorizationSetBuilder().Digest(Digest::SHA_2_256).Padding(PaddingMode::RSA_PSS); in TEST_F() local
1679 string signature = SignMessage(message, params); in TEST_F()
1680 VerifyMessage(message, signature, params); in TEST_F()
1733 auto params = AuthorizationSetBuilder().Digest(Digest::SHA_2_256); in TEST_F() local
1734 string signature = SignMessage(message, params); in TEST_F()
1735 VerifyMessage(message, signature, params); in TEST_F()
1758 auto params = AuthorizationSetBuilder().Digest(Digest::SHA_2_256); in TEST_F() local
1759 string signature = SignMessage(message, params); in TEST_F()
1760 VerifyMessage(message, signature, params); in TEST_F()
1812 auto params = AuthorizationSetBuilder().BlockMode(BlockMode::ECB).Padding(PaddingMode::PKCS7); in TEST_F() local
[all …]
/hardware/intel/common/libmix/mix_audio/src/
Dsst_proxy.c28 void mix_sst_params_to_mp3(MixAudioConfigParamsMP3 *acp, struct snd_mp3_params *params);
29 void mix_sst_params_to_wma(MixAudioConfigParamsWMA *acp, struct snd_wma_params *params);
30 void mix_sst_params_to_aac(MixAudioConfigParamsAAC *acp, struct snd_aac_params *params);
329 void mix_sst_params_to_mp3(MixAudioConfigParamsMP3 *acp, struct snd_mp3_params *params) in mix_sst_params_to_mp3() argument
331 if(!acp || !params) return; in mix_sst_params_to_mp3()
333 MIX_ACP_NUM_CHANNELS(MIX_AUDIOCONFIGPARAMS(acp)) = params->num_chan; in mix_sst_params_to_mp3()
334 MIX_ACP_BITRATE(MIX_AUDIOCONFIGPARAMS(acp)) = params->brate; in mix_sst_params_to_mp3()
335 MIX_ACP_SAMPLE_FREQ(MIX_AUDIOCONFIGPARAMS(acp)) = params->sfreq; in mix_sst_params_to_mp3()
336 MIX_ACP_MP3_CRC(acp) = params->crc_check; in mix_sst_params_to_mp3()
338 mix_sst_set_bps(MIX_AUDIOCONFIGPARAMS(acp), params->pcm_wd_sz); in mix_sst_params_to_mp3()
[all …]
/hardware/qcom/display/msm8960/liboverlay/
DoverlayMdp.cpp66 mParams.params.conv_params.order = hsic_order_hsc_i; in reset()
67 mParams.params.conv_params.interface = interface_rec601; in reset()
68 mParams.params.conv_params.cc_matrix[0][0] = 1; in reset()
69 mParams.params.conv_params.cc_matrix[1][1] = 1; in reset()
70 mParams.params.conv_params.cc_matrix[2][2] = 1; in reset()
220 if (mParams.params.pa_params.hue != data.hsicData.hue) { in setVisualParams()
223 mParams.params.pa_params.hue,data.hsicData.hue); in setVisualParams()
227 if (!isEqual(mParams.params.pa_params.sat, in setVisualParams()
231 mParams.params.pa_params.sat, in setVisualParams()
236 if (mParams.params.pa_params.intensity != data.hsicData.intensity) { in setVisualParams()
[all …]
/hardware/qcom/display/msm8226/liboverlay/
DoverlayMdp.cpp60 mParams.params.conv_params.order = hsic_order_hsc_i; in reset()
61 mParams.params.conv_params.interface = interface_rec601; in reset()
62 mParams.params.conv_params.cc_matrix[0][0] = 1; in reset()
63 mParams.params.conv_params.cc_matrix[1][1] = 1; in reset()
64 mParams.params.conv_params.cc_matrix[2][2] = 1; in reset()
226 if (mParams.params.pa_params.hue != data.hsicData.hue) { in setVisualParams()
229 mParams.params.pa_params.hue,data.hsicData.hue); in setVisualParams()
233 if (!isEqual(mParams.params.pa_params.sat, in setVisualParams()
237 mParams.params.pa_params.sat, in setVisualParams()
242 if (mParams.params.pa_params.intensity != data.hsicData.intensity) { in setVisualParams()
[all …]
/hardware/qcom/display/msm8994/liboverlay/
DoverlayMdp.cpp61 mParams.params.conv_params.order = hsic_order_hsc_i; in reset()
62 mParams.params.conv_params.interface = interface_rec601; in reset()
63 mParams.params.conv_params.cc_matrix[0][0] = 1; in reset()
64 mParams.params.conv_params.cc_matrix[1][1] = 1; in reset()
65 mParams.params.conv_params.cc_matrix[2][2] = 1; in reset()
233 if (mParams.params.pa_params.hue != data.hsicData.hue) { in setVisualParams()
236 mParams.params.pa_params.hue,data.hsicData.hue); in setVisualParams()
240 if (!isEqual(mParams.params.pa_params.sat, in setVisualParams()
244 mParams.params.pa_params.sat, in setVisualParams()
249 if (mParams.params.pa_params.intensity != data.hsicData.intensity) { in setVisualParams()
[all …]
/hardware/qcom/display/msm8084/liboverlay/
DoverlayMdp.cpp61 mParams.params.conv_params.order = hsic_order_hsc_i; in reset()
62 mParams.params.conv_params.interface = interface_rec601; in reset()
63 mParams.params.conv_params.cc_matrix[0][0] = 1; in reset()
64 mParams.params.conv_params.cc_matrix[1][1] = 1; in reset()
65 mParams.params.conv_params.cc_matrix[2][2] = 1; in reset()
245 if (mParams.params.pa_params.hue != data.hsicData.hue) { in setVisualParams()
248 mParams.params.pa_params.hue,data.hsicData.hue); in setVisualParams()
252 if (!isEqual(mParams.params.pa_params.sat, in setVisualParams()
256 mParams.params.pa_params.sat, in setVisualParams()
261 if (mParams.params.pa_params.intensity != data.hsicData.intensity) { in setVisualParams()
[all …]
/hardware/qcom/display/msm8998/sdm/libs/hwc2/
Dhwc_color_manager.cpp54 uint32_t HWCColorManager::Get8BitsARGBColorValue(const PPColorFillParams &params) { in Get8BitsARGBColorValue() argument
55 uint32_t argb_color = ((params.color.r << 16) & 0xff0000) | ((params.color.g << 8) & 0xff00) | in Get8BitsARGBColorValue()
56 ((params.color.b) & 0xff); in Get8BitsARGBColorValue()
172 int HWCColorManager::SetSolidFill(const void *params, bool enable, HWCDisplay *hwc_display) { in SetSolidFill() argument
175 if (params) { in SetSolidFill()
176 solid_fill_params_ = *reinterpret_cast<const PPColorFillParams *>(params); in SetSolidFill()
198 int HWCColorManager::SetFrameCapture(void *params, bool enable, HWCDisplay *hwc_display) { in SetFrameCapture() argument
202 PPFrameCaptureData *frame_capture_data = reinterpret_cast<PPFrameCaptureData *>(params); in SetFrameCapture()
267 int HWCColorManager::SetHWDetailedEnhancerConfig(void *params, HWCDisplay *hwc_display) { in SetHWDetailedEnhancerConfig() argument
271 PPDETuningCfgData *de_tuning_cfg_data = reinterpret_cast<PPDETuningCfgData*>(params); in SetHWDetailedEnhancerConfig()
[all …]
/hardware/qcom/display/msm8909w_3100/sdm/libs/hwc2/
Dhwc_color_manager.cpp54 uint32_t HWCColorManager::Get8BitsARGBColorValue(const PPColorFillParams &params) { in Get8BitsARGBColorValue() argument
55 uint32_t argb_color = ((params.color.r << 16) & 0xff0000) | ((params.color.g << 8) & 0xff00) | in Get8BitsARGBColorValue()
56 ((params.color.b) & 0xff); in Get8BitsARGBColorValue()
172 int HWCColorManager::SetSolidFill(const void *params, bool enable, HWCDisplay *hwc_display) { in SetSolidFill() argument
175 if (params) { in SetSolidFill()
176 solid_fill_params_ = *reinterpret_cast<const PPColorFillParams *>(params); in SetSolidFill()
198 int HWCColorManager::SetFrameCapture(void *params, bool enable, HWCDisplay *hwc_display) { in SetFrameCapture() argument
202 PPFrameCaptureData *frame_capture_data = reinterpret_cast<PPFrameCaptureData *>(params); in SetFrameCapture()
267 int HWCColorManager::SetHWDetailedEnhancerConfig(void *params, HWCDisplay *hwc_display) { in SetHWDetailedEnhancerConfig() argument
271 PPDETuningCfgData *de_tuning_cfg_data = reinterpret_cast<PPDETuningCfgData*>(params); in SetHWDetailedEnhancerConfig()
[all …]
Dhwc_color_manager.h116 int SetSolidFill(const void *params, bool enable, HWCDisplay *hwc_display);
117 int SetFrameCapture(void *params, bool enable, HWCDisplay *hwc_display);
118 int SetDetailedEnhancer(void *params, HWCDisplay *hwc_display);
120 int SetHWDetailedEnhancerConfig(void *params, HWCDisplay *hwc_display);
125 static uint32_t Get8BitsARGBColorValue(const PPColorFillParams &params);
/hardware/qcom/display/msm8909/sdm/libs/hwc2/
Dhwc_color_manager.cpp53 uint32_t HWCColorManager::Get8BitsARGBColorValue(const PPColorFillParams &params) { in Get8BitsARGBColorValue() argument
54 uint32_t argb_color = ((params.color.r << 16) & 0xff0000) | ((params.color.g << 8) & 0xff00) | in Get8BitsARGBColorValue()
55 ((params.color.b) & 0xff); in Get8BitsARGBColorValue()
171 int HWCColorManager::SetSolidFill(const void *params, bool enable, HWCDisplay *hwc_display) { in SetSolidFill() argument
174 if (params) { in SetSolidFill()
175 solid_fill_params_ = *reinterpret_cast<const PPColorFillParams *>(params); in SetSolidFill()
197 int HWCColorManager::SetFrameCapture(void *params, bool enable, HWCDisplay *hwc_display) { in SetFrameCapture() argument
201 PPFrameCaptureData *frame_capture_data = reinterpret_cast<PPFrameCaptureData *>(params); in SetFrameCapture()
266 int HWCColorManager::SetHWDetailedEnhancerConfig(void *params, HWCDisplay *hwc_display) { in SetHWDetailedEnhancerConfig() argument
270 PPDETuningCfgData *de_tuning_cfg_data = reinterpret_cast<PPDETuningCfgData*>(params); in SetHWDetailedEnhancerConfig()
[all …]
/hardware/interfaces/media/omx/1.0/vts/functional/common/
Dmedia_hidl_test_common.h202 void InitOMXParams(T* params) { in InitOMXParams() argument
203 params->nSize = sizeof(T); in InitOMXParams()
204 params->nVersion.s.nVersionMajor = 1; in InitOMXParams()
205 params->nVersion.s.nVersionMinor = 0; in InitOMXParams()
206 params->nVersion.s.nRevision = 0; in InitOMXParams()
207 params->nVersion.s.nStep = 0; in InitOMXParams()
212 sp<IOmxNode> omxNode, OMX_INDEXTYPE omxIdx, T* params) { in getParam() argument
214 InitOMXParams(params); in getParam()
216 toRawIndexType(omxIdx), inHidlBytes(params, sizeof(*params)), in getParam()
217 [&status, &params](android::hardware::media::omx::V1_0::Status _s, in getParam()
[all …]
/hardware/qcom/display/msm8909w_3100/sdm/libs/hwc/
Dhwc_color_manager.cpp55 uint32_t HWCColorManager::Get8BitsARGBColorValue(const PPColorFillParams &params) { in Get8BitsARGBColorValue() argument
56 uint32_t argb_color = ((params.color.r << 16) & 0xff0000) | ((params.color.g << 8) & 0xff00) | in Get8BitsARGBColorValue()
57 ((params.color.b) & 0xff); in Get8BitsARGBColorValue()
317 int HWCColorManager::SetSolidFill(const void *params, bool enable, HWCDisplay *hwc_display) { in SetSolidFill() argument
321 if (params) { in SetSolidFill()
322 solid_fill_params_ = *reinterpret_cast<const PPColorFillParams *>(params); in SetSolidFill()
338 int HWCColorManager::SetFrameCapture(void *params, bool enable, HWCDisplay *hwc_display) { in SetFrameCapture() argument
342 PPFrameCaptureData *frame_capture_data = reinterpret_cast<PPFrameCaptureData*>(params); in SetFrameCapture()
420 int HWCColorManager::SetHWDetailedEnhancerConfig(void *params, HWCDisplay *hwc_display) { in SetHWDetailedEnhancerConfig() argument
424 PPDETuningCfgData *de_tuning_cfg_data = reinterpret_cast<PPDETuningCfgData*>(params); in SetHWDetailedEnhancerConfig()
[all …]
/hardware/qcom/display/msm8909/sdm/libs/hwc/
Dhwc_color_manager.cpp55 uint32_t HWCColorManager::Get8BitsARGBColorValue(const PPColorFillParams &params) { in Get8BitsARGBColorValue() argument
56 uint32_t argb_color = ((params.color.r << 16) & 0xff0000) | ((params.color.g << 8) & 0xff00) | in Get8BitsARGBColorValue()
57 ((params.color.b) & 0xff); in Get8BitsARGBColorValue()
317 int HWCColorManager::SetSolidFill(const void *params, bool enable, HWCDisplay *hwc_display) { in SetSolidFill() argument
321 if (params) { in SetSolidFill()
322 solid_fill_params_ = *reinterpret_cast<const PPColorFillParams *>(params); in SetSolidFill()
338 int HWCColorManager::SetFrameCapture(void *params, bool enable, HWCDisplay *hwc_display) { in SetFrameCapture() argument
342 PPFrameCaptureData *frame_capture_data = reinterpret_cast<PPFrameCaptureData*>(params); in SetFrameCapture()
420 int HWCColorManager::SetHWDetailedEnhancerConfig(void *params, HWCDisplay *hwc_display) { in SetHWDetailedEnhancerConfig() argument
424 PPDETuningCfgData *de_tuning_cfg_data = reinterpret_cast<PPDETuningCfgData*>(params); in SetHWDetailedEnhancerConfig()
[all …]
/hardware/interfaces/audio/core/all-versions/default/include/core/all-versions/default/
DParametersUtil.impl.h63 std::unique_ptr<AudioParameter> params = getParams(keys); in getParam() local
64 return getHalStatusToResult(params->getInt(halName, *value)); in getParam()
70 std::unique_ptr<AudioParameter> params = getParams(context); in getParam() local
71 return getHalStatusToResult(params->get(halName, *value)); in getParam()
141 AudioParameter params; in setParametersImpl() local
143 params.add(String8(pair.key.c_str()), String8(pair.value.c_str())); in setParametersImpl()
146 params.add(String8(parameters[i].key.c_str()), String8(parameters[i].value.c_str())); in setParametersImpl()
148 return setParams(params); in setParametersImpl()
151 AudioParameter params(String8(deviceAddressToHal(address).c_str())); in setParam()
152 params.addInt(String8(name), int(address.device)); in setParam()
[all …]
/hardware/qcom/camera/msm8998/usbcamcore/src/
DQCameraUsbParm.cpp154 const QCameraParameters& params);
156 const QCameraParameters& params);
158 const QCameraParameters& params);
160 const QCameraParameters& params);
277 int usbCamSetParameters(camera_hardware_t *camHal, const char *params) in usbCamSetParameters() argument
280 String8 str = String8(params); in usbCamSetParameters()
285 if(params) in usbCamSetParameters()
286 PRINT_PARAM_STR(params); in usbCamSetParameters()
489 const QCameraParameters& params) in usbCamSetPrvwSize() argument
494 params.getPreviewSize(&width, &height); in usbCamSetPrvwSize()
[all …]
/hardware/interfaces/keymaster/4.0/support/
DKeymaster.cpp62 std::ostream& operator<<(std::ostream& os, const HmacSharingParameters& params) { in operator <<() argument
65 os << "(seed: " << params.seed << ", nonce: " << params.nonce << ')'; in operator <<()
136 auto rc = keymaster->getHmacSharingParameters([&](auto error, auto& params) { in getHmacParameters() argument
139 params_vec.push_back(params); in getHmacParameters()
150 const hidl_vec<HmacSharingParameters>& params) { in computeHmac() argument
151 if (!params.size()) return; in computeHmac()
155 LOG(DEBUG) << "Computing HMAC with params " << params; in computeHmac()
160 params, [&](ErrorCode error, const hidl_vec<uint8_t>& curSharingCheck) { in computeHmac()
/hardware/interfaces/media/omx/1.0/vts/functional/component/
DVtsHalMediaOmxV1_0TargetComponentTest.cpp218 OMX_PORT_PARAM_TYPE params; in TEST_F() local
226 status = getParam(omxNode, OMX_IndexParamAudioInit, &params); in TEST_F()
228 status = getParam(omxNode, OMX_IndexParamVideoInit, &params); in TEST_F()
230 status = getParam(omxNode, OMX_IndexParamImageInit, &params); in TEST_F()
232 status = getParam(omxNode, OMX_IndexParamOtherInit, &params); in TEST_F()
245 OMX_PORT_PARAM_TYPE params; in TEST_F() local
247 status = getParam(omxNode, OMX_IndexParamAudioInit, &params); in TEST_F()
249 status = getParam(omxNode, OMX_IndexParamVideoInit, &params); in TEST_F()
252 ASSERT_EQ(params.nPorts, 2U); in TEST_F()
253 kPortIndexInput = params.nStartPortNumber; in TEST_F()
[all …]
/hardware/google/av/codec2/vndk/bufferpool/vts/
Dallocator.cpp41 const std::vector<uint8_t> &params, in allocate() argument
45 memcpy(&ionParams, params.data(), std::min(sizeof(Params), params.size())); in allocate()
81 void getVtsAllocatorParams(std::vector<uint8_t> *params) { in getVtsAllocatorParams() argument
85 params->assign(ionParams.array, ionParams.array + sizeof(ionParams)); in getVtsAllocatorParams()
/hardware/interfaces/keymaster/3.0/vts/functional/
Dkeymaster_hidl_hal_test.cpp762 const AuthorizationSet& params) { in SignMessage() argument
765 string signature = ProcessMessage(key_blob, KeyPurpose::SIGN, message, params, &out_params); in SignMessage()
770 string SignMessage(const string& message, const AuthorizationSet& params) { in SignMessage() argument
772 return SignMessage(key_blob_, message, params); in SignMessage()
808 auto params = AuthorizationSetBuilder() in CheckAesCtrTestVector() local
813 string ciphertext = EncryptMessage(key_blob_, message, params, &out_params); in CheckAesCtrTestVector()
818 const AuthorizationSet& params) { in VerifyMessage() argument
822 Begin(KeyPurpose::VERIFY, key_blob, params, &begin_out_params, &op_handle_)); in VerifyMessage()
835 const AuthorizationSet& params) { in VerifyMessage() argument
837 VerifyMessage(key_blob_, message, signature, params); in VerifyMessage()
[all …]
/hardware/intel/common/libmix/videodecoder/
DVideoDecoderWMV.cpp350 VAPictureParameterBufferVC1 *params, in setReference() argument
353 int frameType = params->picture_fields.bits.picture_type; in setReference()
356 params->forward_reference_picture = current; in setReference()
357 params->backward_reference_picture = current; in setReference()
361 if (0 != params->reference_fields.bits.reference_distance_flag && in setReference()
362 0 != params->reference_fields.bits.reference_distance) { in setReference()
370 if (1 == params->reference_fields.bits.num_reference_pictures || in setReference()
371 1 == params->reference_fields.bits.reference_field_pic_indicator) { in setReference()
377 params->forward_reference_picture = VA_INVALID_SURFACE; in setReference()
382 params->forward_reference_picture = current; in setReference()
[all …]
/hardware/qcom/audio/legacy/libalsa-intf/
Darec.c89 struct snd_pcm_hw_params *params; in set_params() local
96 params = (struct snd_pcm_hw_params*) calloc(1, sizeof(struct snd_pcm_hw_params)); in set_params()
97 if (!params) { in set_params()
102 param_init(params); in set_params()
104 param_set_mask(params, SNDRV_PCM_HW_PARAM_ACCESS, in set_params()
106 param_set_mask(params, SNDRV_PCM_HW_PARAM_FORMAT, pcm->format); in set_params()
107 param_set_mask(params, SNDRV_PCM_HW_PARAM_SUBFORMAT, in set_params()
110 param_set_min(params, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, period); in set_params()
112 param_set_min(params, SNDRV_PCM_HW_PARAM_PERIOD_TIME, 10); in set_params()
113 param_set_int(params, SNDRV_PCM_HW_PARAM_SAMPLE_BITS, 16); in set_params()
[all …]
Daplay.c85 struct snd_pcm_hw_params *params; in set_params() local
93 params = (struct snd_pcm_hw_params*) calloc(1, sizeof(struct snd_pcm_hw_params)); in set_params()
94 if (!params) { in set_params()
99 param_init(params); in set_params()
101 param_set_mask(params, SNDRV_PCM_HW_PARAM_ACCESS, in set_params()
103 param_set_mask(params, SNDRV_PCM_HW_PARAM_FORMAT, pcm->format); in set_params()
104 param_set_mask(params, SNDRV_PCM_HW_PARAM_SUBFORMAT, in set_params()
107 param_set_min(params, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, period); in set_params()
109 param_set_min(params, SNDRV_PCM_HW_PARAM_PERIOD_TIME, 10); in set_params()
110 param_set_int(params, SNDRV_PCM_HW_PARAM_SAMPLE_BITS, 16); in set_params()
[all …]
/hardware/google/av/codec2/hidl/1.0/utils/
DConfigurable.cpp67 hidl_vec<uint8_t> params; in query() local
68 createParamsBlob(&params, c2heapParams); in query()
69 _hidl_cb(static_cast<Status>(c2res), params); in query()
115 hidl_vec<ParamDescriptor> params(request.size()); in querySupportedParams() local
120 objcpy(&params[dstIx++], *mSupportedParams[srcIx]); in querySupportedParams()
125 params.resize(dstIx); in querySupportedParams()
126 _hidl_cb(res, params); in querySupportedParams()

1234567891011