/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/ |
D | hdf_dot_config_file.py | 43 def _update_cache(self, item, index, line): argument 44 self.cache[item] = ConfigItem(index, line) 46 def _find(self, item): argument 47 if item in self.cache: 48 index = self.cache.get(item).index 49 line = self.cache.get(item).line 52 item_pattern = r'%s\s*(=|is)' % item 55 self._update_cache(item, index, line_) 65 def _enable(self, item): argument 66 if not item: [all …]
|
/drivers/external_device_manager/services/native/driver_extension_manager/src/input_emit_event/ |
D | virtual_device.cpp | 96 for (const auto &item : GetEventTypes()) { in SetAttribute() local 97 if (!DoIoctl(fd_, UI_SET_EVBIT, item)) { in SetAttribute() 98 EDM_LOGE(MODULE_USB_DDK, "Error setting event type:%{public}u", item); in SetAttribute() 102 for (const auto &item : GetKeys()) { in SetAttribute() local 103 if (!DoIoctl(fd_, UI_SET_KEYBIT, item)) { in SetAttribute() 104 EDM_LOGE(MODULE_USB_DDK, "Error setting key:%{public}u", item); in SetAttribute() 108 for (const auto &item : GetProperties()) { in SetAttribute() local 109 if (!DoIoctl(fd_, UI_SET_PROPBIT, item)) { in SetAttribute() 110 EDM_LOGE(MODULE_USB_DDK, "Error setting property:%{public}u", item); in SetAttribute() 114 for (const auto &item : GetAbs()) { in SetAttribute() local [all …]
|
/drivers/interface/camera/metadata/src/ |
D | metadata_utils.cpp | 99 camera_metadata_item_t item; in ConvertMetadataToVec() local 100 int ret = GetCameraMetadataItem(meta, i, &item); in ConvertMetadataToVec() 106 if (item.count > MAX_SUPPORTED_ITEMS) { in ConvertMetadataToVec() 107 … METADATA_ERR_LOG("MetadataUtils::ConvertMetadataToVec: item.count out of range:%u", item.count); in ConvertMetadataToVec() 110 WriteData<uint32_t>(item.index, cameraAbility); in ConvertMetadataToVec() 111 WriteData<uint32_t>(item.item, cameraAbility); in ConvertMetadataToVec() 112 WriteData<uint32_t>(item.data_type, cameraAbility); in ConvertMetadataToVec() 113 WriteData<uint32_t>(item.count, cameraAbility); in ConvertMetadataToVec() 115 WriteMetadataDataToVec(item, cameraAbility); in ConvertMetadataToVec() 136 camera_metadata_item_t item; in EncodeCameraMetadata() local [all …]
|
D | camera_metadata_operator.cpp | 284 int32_t GetCameraMetadataItemType(uint32_t item, uint32_t *dataType) in GetCameraMetadataItemType() argument 292 int32_t ret = GetMetadataSection(item >> BITWISE_SHIFT_16, §ion); in GetCameraMetadataItemType() 298 if (item >= g_ohosCameraSectionBounds[section][1]) { in GetCameraMetadataItemType() 303 uint32_t itemIndex = item & 0xFFFF; in GetCameraMetadataItemType() 315 const char *GetCameraMetadataItemName(uint32_t item) in GetCameraMetadataItemName() argument 318 METADATA_DEBUG_LOG("GetCameraMetadataItemName item: %{public}u", item); in GetCameraMetadataItemName() 320 int32_t ret = GetMetadataSection(item >> BITWISE_SHIFT_16, §ion); in GetCameraMetadataItemName() 326 if (item >= g_ohosCameraSectionBounds[section][1]) { in GetCameraMetadataItemName() 331 uint32_t itemIndex = item & 0xFFFF; in GetCameraMetadataItemName() 350 int AddCameraMetadataItem(common_metadata_header_t *dst, uint32_t item, const void *data, size_t da… in AddCameraMetadataItem() argument [all …]
|
D | camera_metadata_info.cpp | 34 bool CameraMetadata::addEntry(uint32_t item, const void *data, size_t data_count) in addEntry() argument 41 auto result = AddCameraMetadataItem(metadata_, item, data, data_count); in addEntry() 47 const char *name = GetCameraMetadataItemName(item); in addEntry() 57 return resize_add_metadata(item, data, data_count); in addEntry() 60 bool CameraMetadata::resize_add_metadata(uint32_t item, const void *data, size_t data_count) in resize_add_metadata() argument 67 int32_t ret = GetCameraMetadataItemType(item, &data_type); in resize_add_metadata() 89 result = AddCameraMetadataItem(newMetadata, item, data, data_count); in resize_add_metadata() 119 camera_metadata_item_t item; in updateEntry() local 120 int ret = FindCameraMetadataItem(metadata_, tag, &item); in updateEntry() 127 ret = UpdateCameraMetadataItemByIndex(metadata_, item.index, data, dataCount, nullptr); in updateEntry()
|
/drivers/peripheral/distributed_camera/hdi_service/src/dcamera_device/ |
D | dmetadata_processor.cpp | 74 allResultSet_.insert((MetaType)(itemEntry->item)); in InitDCameraAbility() 246 camera_metadata_item_t item; in AddAbilityEntry() local 247 int ret = OHOS::Camera::FindCameraMetadataItem(dCameraAbility_->get(), tag, &item); in AddAbilityEntry() 264 camera_metadata_item_t item; in UpdateAbilityEntry() local 265 int ret = OHOS::Camera::FindCameraMetadataItem(dCameraAbility_->get(), tag, &item); in UpdateAbilityEntry() 408 camera_metadata_item_t item; in UpdateOnChanged() local 410 … int ret1 = OHOS::Camera::FindCameraMetadataItem(latestProducerMetadataResult_->get(), tag, &item); in UpdateOnChanged() 418 if ((item.count != anoItem.count) || (item.data_type != anoItem.data_type)) { in UpdateOnChanged() 420 result->addEntry(tag, GetMetadataItemData(item), item.count); in UpdateOnChanged() 423 uint32_t size = GetDataSize(item.data_type); in UpdateOnChanged() [all …]
|
/drivers/interface/camera/metadata/include/ |
D | camera_metadata_operator.h | 88 uint32_t item; member 99 uint32_t item; member 158 int FindCameraMetadataItem(const common_metadata_header_t *src, uint32_t item, camera_metadata_item… 161 int FindCameraMetadataItemIndex(const common_metadata_header_t *src, uint32_t item, uint32_t *index… 164 const char *GetCameraMetadataItemName(uint32_t item); 167 int UpdateCameraMetadataItem(common_metadata_header_t *dst, uint32_t item, const void *data, uint32… 175 int AddCameraMetadataItem(common_metadata_header_t *dst, uint32_t item, const void *data, size_t da… 178 int DeleteCameraMetadataItem(common_metadata_header_t *dst, uint32_t item); 186 std::string MetadataItemDump(const common_metadata_header_t *metadataHeader, uint32_t item); 193 …eraMetadataItem(const common_metadata_header_t *src, uint32_t index, camera_metadata_item_t *item); [all …]
|
D | camera_metadata_info.h | 29 bool addEntry(uint32_t item, const void *data, size_t data_count); 38 bool resize_add_metadata(uint32_t item, const void *data, size_t data_count);
|
D | metadata_utils.h | 43 static bool WriteMetadata(const camera_metadata_item_t &item, MessageParcel &data); 44 static bool ReadMetadata(camera_metadata_item_t &item, MessageParcel &data); 45 static void ItemDataToBuffer(const camera_metadata_item_t &item, void **buffer);
|
/drivers/peripheral/camera/interfaces/hdi_ipc/utils/src/ |
D | utils_data_stub.cpp | 67 camera_metadata_item_t item; in ConvertMetadataToVec() local 68 int ret = GetCameraMetadataItem(meta, i, &item); in ConvertMetadataToVec() 73 WriteData<uint32_t>(item.index, cameraAbility); in ConvertMetadataToVec() 74 WriteData<uint32_t>(item.item, cameraAbility); in ConvertMetadataToVec() 75 WriteData<uint32_t>(item.data_type, cameraAbility); in ConvertMetadataToVec() 76 WriteData<uint32_t>(item.count, cameraAbility); in ConvertMetadataToVec() 78 bRet = WriteMetadataDataToVec(item, cameraAbility); in ConvertMetadataToVec() 100 camera_metadata_item_entry_t *item = Camera::GetMetadataItems(meta); in EncodeCameraMetadata() local 101 for (uint32_t i = 0; i < tagCount; i++, item++) { in EncodeCameraMetadata() 103 int ret = FindCameraMetadataItem(meta, item->item, &entry); in EncodeCameraMetadata() [all …]
|
/drivers/peripheral/distributed_camera/hdi_service/src/dcamera_host/ |
D | dcamera_host.cpp | 90 camera_metadata_item_t item; in GetCameraAbility() local 95 OHOS_ABILITY_STREAM_AVAILABLE_BASIC_CONFIGURATIONS, &item); in GetCameraAbility() 96 …DHLOGI("FindCameraMetadataItem item=%u, count=%u, dataType=%u", item.item, item.count, item.data_t… in GetCameraAbility() 101 if (item.count % UNIT_LENGTH != 0) { in GetCameraAbility() 102 DHLOGE("Invalid stream configuration count: %u", item.count); in GetCameraAbility() 105 for (uint32_t index = 0; index < item.count; index += UNIT_LENGTH) { in GetCameraAbility() 106 int32_t format = item.data.i32[index]; in GetCameraAbility() 107 int32_t width = item.data.i32[index + WIDTH_OFFSET]; in GetCameraAbility() 108 int32_t height = item.data.i32[index + HEIGHT_OFFSET]; in GetCameraAbility()
|
/drivers/hdf_core/framework/model/audio/common/src/ |
D | audio_dai_base.c | 81 struct AudioControlConfig *item = NULL; in DaiSetConfigInfoOfControls() local 96 item = regCfgGroup[AUDIO_CTRL_CFG_GROUP]->ctrlCfgItem; in DaiSetConfigInfoOfControls() 98 if (patRegCfgItemTmp == NULL || item == NULL) { in DaiSetConfigInfoOfControls() 111 data->controls[index].iface = item[index].iface; in DaiSetConfigInfoOfControls() 112 if (item[index].arrayIndex >= AUDIO_CTRL_LIST_MAX) { in DaiSetConfigInfoOfControls() 118 data->controls[index].name = g_audioDaiControlsList[item[index].arrayIndex]; in DaiSetConfigInfoOfControls()
|
/drivers/peripheral/audio/effect/config/src/ |
D | parse_effect_config.c | 145 static int32_t AudioEffectParseItem(const cJSON *cJSONObj, const char *item, const char **dest) in AudioEffectParseItem() argument 147 if (cJSONObj == NULL || item == NULL || dest == NULL) { in AudioEffectParseItem() 152 const char *itemName = AudioEffectGetAndCheckName(cJSONObj, item); in AudioEffectParseItem() 154 HDF_LOGE("%{public}s: get %{public}s fail!", __func__, item); in AudioEffectParseItem() 160 HDF_LOGE("%{public}s: out of memory! Item is %{public}s", __func__, item); in AudioEffectParseItem() 165 HDF_LOGE("%{public}s: memcpy_s effect name fail! Item is %{public}s", __func__, item); in AudioEffectParseItem() 217 static int32_t AudioEffectGetEffectCfgDescs(cJSON *cJsonObj, const char *item, struct ConfigDescrip… in AudioEffectGetEffectCfgDescs() argument 226 if (cJsonObj == NULL || item == NULL || cfgDesc == NULL) { in AudioEffectGetEffectCfgDescs() 230 cJSON *effectsObj = cJSON_GetObjectItem(cJsonObj, item); in AudioEffectGetEffectCfgDescs() 305 static int32_t AudioEffectGetLibraryCfgDescs(cJSON *cJsonObj, const char *item, struct ConfigDescri… in AudioEffectGetLibraryCfgDescs() argument [all …]
|
/drivers/external_device_manager/services/zidl/src/ |
D | driver_ext_mgr_types.cpp | 210 EmitItem item; in EmitItemUnMarshalling() local 212 if (!parcel.ReadUint16(item.type)) { in EmitItemUnMarshalling() 217 if (!parcel.ReadUint16(item.code)) { in EmitItemUnMarshalling() 222 if (!parcel.ReadUint32(item.value)) { in EmitItemUnMarshalling() 226 items.push_back(item); in EmitItemUnMarshalling()
|
/drivers/hdf_core/framework/model/audio/hdmi/src/ |
D | audio_hdmi_codec_ops.c | 284 int32_t item; in HdmiCodecGetChAllocTableIdx() local 291 for (item = 0; item < HDF_ARRAY_SIZE(g_hdmiCodecCeaSpkAlloc); item++) { in HdmiCodecGetChAllocTableIdx() 292 if (spkAlloc == 0 && g_hdmiCodecCeaSpkAlloc[item].cardId == 0) { in HdmiCodecGetChAllocTableIdx() 293 *index = item; in HdmiCodecGetChAllocTableIdx() 296 if (g_hdmiCodecCeaSpkAlloc[item].channelNum != channels) { in HdmiCodecGetChAllocTableIdx() 299 if (!(g_hdmiCodecCeaSpkAlloc[item].mask == (spkMask & g_hdmiCodecCeaSpkAlloc[item].mask))) { in HdmiCodecGetChAllocTableIdx() 302 *index = item; in HdmiCodecGetChAllocTableIdx()
|
/drivers/peripheral/battery/interfaces/hdi_service/test/fuzztest/batteryhdi_fuzzer/ |
D | batteryhdi_fuzz.cpp | 160 for (auto &item : scLimit) { in SetChargingLimit() local 161 item.type = ChargingLimitType(inputData); in SetChargingLimit() 162 item.protocol = std::string(reinterpret_cast<const char *>(data), size); in SetChargingLimit() 163 item.value = inputData; in SetChargingLimit()
|
/drivers/peripheral/thermal/interfaces/hdi_service/src/ |
D | thermal_hdf_config.cpp | 100 BaseItem item; in ParseBaseNode() local 103 item.tag = std::string(reinterpret_cast<char*>(xmlTag)); in ParseBaseNode() 105 THERMAL_HILOGD(COMP_HDI, "ParseBaseNode tag: %{public}s", item.tag.c_str()); in ParseBaseNode() 110 item.value = std::string(reinterpret_cast<char*>(xmlValue)); in ParseBaseNode() 112 THERMAL_HILOGD(COMP_HDI, "ParseBaseNode value: %{public}s", item.value.c_str()); in ParseBaseNode() 115 vBase.push_back(item); in ParseBaseNode() 251 for (const auto& item : traceInfo_) { in ParseTracingSubNode() local 252 THERMAL_HILOGD(COMP_HDI, "item.title = %{public}s", item.title.c_str()); in ParseTracingSubNode()
|
/drivers/peripheral/format/interfaces/include/ |
D | format_interface.h | 536 …32_t FormatMuxerSetParameter(const FormatHandle handle, int32_t trackId, const ParameterItem *item, 556 int32_t FormatMuxerGetParameter(const FormatHandle handle, int32_t trackId, ParameterItem *item, in…
|
D | format_type.h | 184 ParameterItem *item; /**< Pointer to the parameter array */ member 325 …ParameterItem *item; /**< Pointer to the array of extra track information, including HDR, DRM, and… member
|
/drivers/peripheral/audio/supportlibs/alsa_adapter/src/ |
D | alsa_mixer_path.c | 69 static int32_t AudioCtlElemWrite(const char *ctlName, uint32_t numId, uint32_t item) in AudioCtlElemWrite() argument 93 snd_ctl_elem_value_set_integer(ctlElemValue, 0, item); // 0 is index of the member in AudioCtlElemWrite()
|
/drivers/peripheral/audio/supportlibs/adm_adapter/include/ |
D | audio_interface_lib_mixer.h | 122 uint32_t item; /* W: item number */ member
|
/drivers/peripheral/audio/test/audio_utils/audio_mixer/ |
D | audio_mixer.c | 524 info->value.enumVal.item = val; in CtlElemInfoSetItem() 534 return info->value.enumVal.item; in CtlElemInfoGetItem() 576 return ((info->value.enumVal.item >> idx) & 0x1); in CtlElemValueGetEnum() 872 info->value.enumVal.item |= (chns & (1 << chn)); in FillChnmap() 884 if (info->value.enumVal.item > CHN_STEREO) { in FillChnmap() 885 info->value.enumVal.item = CHN_STEREO; in FillChnmap() 887 info->value.enumVal.item = CHN_MONO; in FillChnmap() 889 DEBUG_LOG("chns = %i\n", info->value.enumVal.item); in FillChnmap() 917 info->value.enumVal.item = CHN_MONO; in FillChnlsIntVal()
|
/drivers/peripheral/audio/supportlibs/alsa_adapter/include/ |
D | alsa_lib_common.h | 85 uint32_t item; /* item number */ member
|
/drivers/peripheral/battery/interfaces/hdi_service/src/ |
D | power_supply_provider.cpp | 367 const auto& item = nodeNamePathMap_.find("current_max"); in ParsePluggedMaxCurrent() local 368 if (item != nodeNamePathMap_.end()) { in ParsePluggedMaxCurrent() 369 currentMaxNode = item->second; in ParsePluggedMaxCurrent() 389 const auto& item = nodeNamePathMap_.find("voltage_max"); in ParsePluggedMaxVoltage() local 390 if (item != nodeNamePathMap_.end()) { in ParsePluggedMaxVoltage() 391 voltageMaxNode = item->second; in ParsePluggedMaxVoltage()
|
/drivers/peripheral/distributed_camera/hdi_service/include/dcamera_device/ |
D | dmetadata_processor.h | 66 void* GetMetadataItemData(const camera_metadata_item_t &item);
|