/hardware/google/av/media/sfplugin/tests/ |
D | ReflectedParamUpdater_test.cpp | 168 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, ¶ms); 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/ |
D | HmacKeySharingTest.cpp | 43 HmacSharingParameters params; member 44 auto tie() { return std::tie(error, params); } in tie() 60 .getHmacSharingParameters([&](auto error, auto params) { in getHmacSharingParameters() argument 61 result.tie() = std::tie(error, params); in getHmacSharingParameters() 72 if (result.error == ErrorCode::OK) paramsVec.push_back(std::move(result.params)); in getHmacSharingParameters() 78 const hidl_vec<HmacSharingParameters>& params) { in computeSharedHmac() argument 81 .computeSharedHmac(params, in computeSharedHmac() 82 [&](auto error, auto params) { in computeSharedHmac() argument 83 result.tie() = std::tie(error, params); in computeSharedHmac() 126 ASSERT_EQ(result1.params.seed, result2.params.seed) in TEST_P() [all …]
|
D | keymaster_hidl_hal_test.cpp | 1896 auto params = AuthorizationSetBuilder().Digest(Digest::SHA_2_256).Padding(PaddingMode::RSA_PSS); in TEST_P() local 1897 string signature = SignMessage(message, params); in TEST_P() 1898 VerifyMessage(message, signature, params); in TEST_P() 1951 auto params = AuthorizationSetBuilder().Digest(Digest::SHA_2_256); in TEST_P() local 1952 string signature = SignMessage(message, params); in TEST_P() 1953 VerifyMessage(message, signature, params); in TEST_P() 1976 auto params = AuthorizationSetBuilder().Digest(Digest::SHA_2_256); in TEST_P() local 1977 string signature = SignMessage(message, params); in TEST_P() 1978 VerifyMessage(message, signature, params); in TEST_P() 2001 auto params = AuthorizationSetBuilder().Digest(Digest::SHA_2_256); in TEST_P() local [all …]
|
/hardware/qcom/display/msm8960/liboverlay/ |
D | overlayMdp.cpp | 66 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/ |
D | overlayMdp.cpp | 60 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/msm8084/liboverlay/ |
D | overlayMdp.cpp | 61 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/msm8994/liboverlay/ |
D | overlayMdp.cpp | 61 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/msm8909/sdm/libs/hwc2/ |
D | hwc_color_manager.cpp | 53 uint32_t HWCColorManager::Get8BitsARGBColorValue(const PPColorFillParams ¶ms) { 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/qcom/display/msm8909w_3100/sdm/libs/hwc2/ |
D | hwc_color_manager.cpp | 54 uint32_t HWCColorManager::Get8BitsARGBColorValue(const PPColorFillParams ¶ms) { 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/msm8998/sdm/libs/hwc2/ |
D | hwc_color_manager.cpp | 54 uint32_t HWCColorManager::Get8BitsARGBColorValue(const PPColorFillParams ¶ms) { 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/interfaces/media/omx/1.0/vts/functional/common/ |
D | media_hidl_test_common.h | 228 void InitOMXParams(T* params) { in InitOMXParams() argument 229 params->nSize = sizeof(T); in InitOMXParams() 230 params->nVersion.s.nVersionMajor = 1; in InitOMXParams() 231 params->nVersion.s.nVersionMinor = 0; in InitOMXParams() 232 params->nVersion.s.nRevision = 0; in InitOMXParams() 233 params->nVersion.s.nStep = 0; in InitOMXParams() 238 sp<IOmxNode> omxNode, OMX_INDEXTYPE omxIdx, T* params) { in getParam() argument 240 InitOMXParams(params); in getParam() 242 toRawIndexType(omxIdx), inHidlBytes(params, sizeof(*params)), in getParam() 243 [&status, ¶ms](android::hardware::media::omx::V1_0::Status _s, in getParam() [all …]
|
/hardware/qcom/sm8150/display/sdm/libs/hwc2/ |
D | hwc_color_manager.cpp | 54 uint32_t HWCColorManager::Get8BitsARGBColorValue(const PPColorFillParams ¶ms) { 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() 184 int HWCColorManager::SetSolidFill(const void *params, bool enable, HWCDisplay *hwc_display) { in SetSolidFill() argument 188 if (params) { in SetSolidFill() 189 solid_fill_params_ = *reinterpret_cast<const PPColorFillParams *>(params); in SetSolidFill() 227 int HWCColorManager::SetFrameCapture(void *params, bool enable, HWCDisplay *hwc_display) { in SetFrameCapture() argument 231 PPFrameCaptureData *frame_capture_data = reinterpret_cast<PPFrameCaptureData *>(params); in SetFrameCapture() 303 int HWCColorManager::SetHWDetailedEnhancerConfig(void *params, HWCDisplay *hwc_display) { in SetHWDetailedEnhancerConfig() argument 307 PPDETuningCfgData *de_tuning_cfg_data = reinterpret_cast<PPDETuningCfgData*>(params); in SetHWDetailedEnhancerConfig() [all …]
|
/hardware/qcom/sdm845/display/sdm/libs/hwc2/ |
D | hwc_color_manager.cpp | 54 uint32_t HWCColorManager::Get8BitsARGBColorValue(const PPColorFillParams ¶ms) { 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 176 if (params) { in SetSolidFill() 177 solid_fill_params_ = *reinterpret_cast<const PPColorFillParams *>(params); in SetSolidFill() 215 int HWCColorManager::SetFrameCapture(void *params, bool enable, HWCDisplay *hwc_display) { in SetFrameCapture() argument 219 PPFrameCaptureData *frame_capture_data = reinterpret_cast<PPFrameCaptureData *>(params); in SetFrameCapture() 290 int HWCColorManager::SetHWDetailedEnhancerConfig(void *params, HWCDisplay *hwc_display) { in SetHWDetailedEnhancerConfig() argument 294 PPDETuningCfgData *de_tuning_cfg_data = reinterpret_cast<PPDETuningCfgData*>(params); in SetHWDetailedEnhancerConfig() [all …]
|
/hardware/qcom/display/msm8909w_3100/sdm/libs/hwc/ |
D | hwc_color_manager.cpp | 55 uint32_t HWCColorManager::Get8BitsARGBColorValue(const PPColorFillParams ¶ms) { 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/ |
D | hwc_color_manager.cpp | 55 uint32_t HWCColorManager::Get8BitsARGBColorValue(const PPColorFillParams ¶ms) { 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/ |
D | ParametersUtil.cpp | 65 std::unique_ptr<AudioParameter> params = getParams(keys); in getParam() local 66 return getHalStatusToResult(params->getInt(halName, *value)); in getParam() 72 std::unique_ptr<AudioParameter> params = getParams(context); in getParam() local 73 return getHalStatusToResult(params->get(halName, *value)); in getParam() 143 AudioParameter params; in setParametersImpl() local 145 params.add(String8(pair.key.c_str()), String8(pair.value.c_str())); in setParametersImpl() 148 params.add(String8(parameters[i].key.c_str()), String8(parameters[i].value.c_str())); in setParametersImpl() 150 return setParams(params); in setParametersImpl() 153 AudioParameter params(String8(deviceAddressToHal(address).c_str())); in setParam() local 154 params.addInt(String8(name), int(address.device)); in setParam() [all …]
|
/hardware/qcom/audio/legacy/alsa_sound/ |
D | AudioUsbALSA.cpp | 281 struct snd_pcm_hw_params *params; in setHardwareParams() local 287 params = (snd_pcm_hw_params*) calloc(1, sizeof(struct snd_pcm_hw_params)); in setHardwareParams() 288 if (!params) { in setHardwareParams() 292 param_init(params); in setHardwareParams() 293 param_set_mask(params, SNDRV_PCM_HW_PARAM_ACCESS, in setHardwareParams() 295 param_set_mask(params, SNDRV_PCM_HW_PARAM_FORMAT, in setHardwareParams() 297 param_set_mask(params, SNDRV_PCM_HW_PARAM_SUBFORMAT, in setHardwareParams() 300 param_set_min(params, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, periodBytes); in setHardwareParams() 301 param_set_int(params, SNDRV_PCM_HW_PARAM_SAMPLE_BITS, 16); in setHardwareParams() 302 param_set_int(params, SNDRV_PCM_HW_PARAM_FRAME_BITS, in setHardwareParams() [all …]
|
/hardware/qcom/camera/msm8998/usbcamcore/src/ |
D | QCameraUsbParm.cpp | 154 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/media/omx/1.0/vts/functional/component/ |
D | VtsHalMediaOmxV1_0TargetComponentTest.cpp | 229 OMX_PORT_PARAM_TYPE params; in TEST_P() local 237 status = getParam(omxNode, OMX_IndexParamAudioInit, ¶ms); in TEST_P() 239 status = getParam(omxNode, OMX_IndexParamVideoInit, ¶ms); in TEST_P() 241 status = getParam(omxNode, OMX_IndexParamImageInit, ¶ms); in TEST_P() 243 status = getParam(omxNode, OMX_IndexParamOtherInit, ¶ms); in TEST_P() 256 OMX_PORT_PARAM_TYPE params; in TEST_P() local 258 status = getParam(omxNode, OMX_IndexParamAudioInit, ¶ms); in TEST_P() 260 status = getParam(omxNode, OMX_IndexParamVideoInit, ¶ms); in TEST_P() 263 ASSERT_EQ(params.nPorts, 2U); in TEST_P() 264 kPortIndexInput = params.nStartPortNumber; in TEST_P() [all …]
|
/hardware/interfaces/keymaster/4.1/support/ |
D | Keymaster3.cpp | 59 hidl_vec<V3_0::KeyParameter> convert(const hidl_vec<KeyParameter>& params) { in convert() argument 60 hidl_vec<V3_0::KeyParameter> converted(params.size()); in convert() 61 for (size_t i = 0; i < params.size(); ++i) { in convert() 62 converted[i] = convert(params[i]); in convert() 67 hidl_vec<KeyParameter> convert(const hidl_vec<V3_0::KeyParameter>& params) { in convert() argument 68 hidl_vec<KeyParameter> converted(params.size()); in convert() 69 for (size_t i = 0; i < params.size(); ++i) { in convert() 70 converted[i] = convert(params[i]); in convert() 81 hidl_vec<V3_0::KeyParameter> convertAndAddAuthToken(const hidl_vec<KeyParameter>& params, in convertAndAddAuthToken() argument 83 hidl_vec<V3_0::KeyParameter> converted(params.size() + 1); in convertAndAddAuthToken() [all …]
|
D | Keymaster.cpp | 62 std::ostream& operator<<(std::ostream& os, const HmacSharingParameters& params) { in operator <<() argument 65 os << "(seed: " << params.seed << ", nonce: " << params.nonce << ')'; in operator <<() 151 auto rc = keymaster->getHmacSharingParameters([&](auto error, auto& params) { in getHmacParameters() argument 154 params_vec.push_back(params); in getHmacParameters() 165 const hidl_vec<HmacSharingParameters>& params) { in computeHmac() argument 166 if (!params.size()) return; in computeHmac() 170 LOG(DEBUG) << "Computing HMAC with params " << params; in computeHmac() 175 params, [&](V4_0::ErrorCode error, const hidl_vec<uint8_t>& curSharingCheck) { in computeHmac()
|
/hardware/interfaces/keymaster/3.0/vts/functional/ |
D | keymaster_hidl_hal_test.cpp | 744 const AuthorizationSet& params) { in SignMessage() argument 747 string signature = ProcessMessage(key_blob, KeyPurpose::SIGN, message, params, &out_params); in SignMessage() 752 string SignMessage(const string& message, const AuthorizationSet& params) { in SignMessage() argument 754 return SignMessage(key_blob_, message, params); in SignMessage() 790 auto params = AuthorizationSetBuilder() in CheckAesCtrTestVector() local 795 string ciphertext = EncryptMessage(key_blob_, message, params, &out_params); in CheckAesCtrTestVector() 800 const AuthorizationSet& params) { in VerifyMessage() argument 804 Begin(KeyPurpose::VERIFY, key_blob, params, &begin_out_params, &op_handle_)); in VerifyMessage() 817 const AuthorizationSet& params) { in VerifyMessage() argument 819 VerifyMessage(key_blob_, message, signature, params); in VerifyMessage() [all …]
|
/hardware/qcom/audio/legacy/libalsa-intf/ |
D | aplay.c | 85 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 …]
|
D | arec.c | 89 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 …]
|
/hardware/google/av/codec2/hidl/1.0/utils/ |
D | Configurable.cpp | 67 hidl_vec<uint8_t> params; in query() local 68 createParamsBlob(¶ms, 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(¶ms[dstIx++], *mSupportedParams[srcIx]); in querySupportedParams() 125 params.resize(dstIx); in querySupportedParams() 126 _hidl_cb(res, params); in querySupportedParams()
|