Home
last modified time | relevance | path

Searched refs:def (Results 1 – 25 of 149) sorted by relevance

123456

/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/core/
H A Dplugin_register.cpp42 return SetPackageDef(def); in AddPackage()
53 if (!Verification(def)) { in AddPlugin()
61 if (registerData->IsPluginExist(def.pluginType, def.name)) { in AddPlugin()
62 if (MoreAcceptable(registerData->registerTable[def.pluginType][def.name], def)) { in AddPlugin()
63 registerData->registerTable[def.pluginType].erase(def.name); in AddPlugin()
77 switch (def.pluginType) { in UpdateRegisterTableAndRegisterNames()
109 registerData->registerTable[def.pluginType][def.name] = regInfo; in UpdateRegisterTableAndRegisterNames()
116 def.name); in UpdateRegisterTableAndRegisterNames()
118 registerData->registerNames[def.pluginType].push_back(def.name); in UpdateRegisterTableAndRegisterNames()
165 info->name = def.name; in SetPluginInfo()
[all …]
H A Dplugin_register.h80 Status AddPlugin(const PluginDefBase& def) override;
82 Status AddPackage(const PackageDef& def) override;
84 Status SetPackageDef(const PackageDef& def);
86 void UpdateRegisterTableAndRegisterNames(const PluginDefBase& def);
88 void SetPluginInfo(std::shared_ptr<PluginInfo>& info, const PluginDefBase& def);
90 Status InitSourceInfo(std::shared_ptr<PluginRegInfo>& reg, const PluginDefBase& def);
94 Status InitDemuxerInfo(std::shared_ptr<PluginRegInfo>& reg, const PluginDefBase& def);
98 Status InitMuxerInfo(std::shared_ptr<PluginRegInfo>& reg, const PluginDefBase& def);
100 Status InitCodecInfo(std::shared_ptr<PluginRegInfo>& reg, const PluginDefBase& def);
104 Status InitAudioSinkInfo(std::shared_ptr<PluginRegInfo>& reg, const PluginDefBase& def);
[all …]
/ohos5.0/drivers/hdf_core/framework/utils/src/hcs_parser/
H A Dhcs_tree_if.c62 *value = def; in HcsGetUint8()
75 *value = def; in HcsGetUint16()
88 *value = def; in HcsGetUint32()
101 *value = def; in HcsGetUint64()
141 *value = def; in HcsGetUint8ArrayElem()
146 *value = def; in HcsGetUint8ArrayElem()
162 *value = def; in HcsGetUint16ArrayElem()
223 uint8_t def) in HcsGetUint8Array() argument
241 uint16_t def) in HcsGetUint16Array() argument
259 uint32_t def) in HcsGetUint32Array() argument
[all …]
/ohos5.0/drivers/hdf_core/interfaces/inner_api/utils/
H A Dhcs_tree_if.h25 …GetUint8(const struct DeviceResourceNode *node, const char *attrName, uint8_t *value, uint8_t def);
27 uint8_t *value, uint8_t def);
29 uint8_t def);
30 …Uint16(const struct DeviceResourceNode *node, const char *attrName, uint16_t *value, uint16_t def);
32 uint16_t *value, uint16_t def);
34 uint16_t def);
37 uint32_t *value, uint32_t def);
39 uint32_t len, uint32_t def);
42 uint64_t *value, uint64_t def);
44 uint32_t len, uint64_t def);
[all …]
H A Ddevice_resource_if.h126 …etUint8)(const struct DeviceResourceNode *node, const char *attrName, uint8_t *value, uint8_t def);
143 uint8_t *value, uint8_t def);
163 uint8_t def);
193 uint16_t *value, uint16_t def);
212 uint32_t len, uint16_t def);
242 uint32_t *value, uint32_t def);
261 uint32_t len, uint32_t def);
291 uint64_t *value, uint64_t def);
307 uint32_t len, uint64_t def);
323 const char *def);
[all …]
/ohos5.0/base/startup/init/interfaces/innerkits/syspara/
H A Dparam_wrapper.cpp79 return std::string(def); in GetParameter()
84 bool GetBoolParameter(const std::string& key, bool def) in GetBoolParameter() argument
99 return def; in GetBoolParameter()
115 value = std::string(def); in GetStringParameter()
125 return def; in GetIntParameter()
132 return def; in GetIntParameter()
141 T GetUintParameter(const std::string& key, T def, T max) in GetUintParameter() argument
144 return def; in GetUintParameter()
151 return def; in GetUintParameter()
179 int GetIntParameter(const std::string &key, int def) in GetIntParameter() argument
[all …]
H A Dparameter.c83 int GetParameter(const char *key, const char *def, char *value, uint32_t len) in GetParameter() argument
88 int ret = GetParameter_(key, def, value, len); in GetParameter()
338 int32_t GetIntParameter(const char *key, int32_t def) in GetIntParameter() argument
344 return def; in GetIntParameter()
349 return def; in GetIntParameter()
352 return def; in GetIntParameter()
357 uint32_t GetUintParameter(const char *key, uint32_t def) in GetUintParameter() argument
363 return def; in GetUintParameter()
368 return def; in GetUintParameter()
371 return def; in GetUintParameter()
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/hardware/imagecodec/
H A Dimage_decoder.cpp120 OMX_PARAM_PORTDEFINITIONTYPE def; in UpdateInPortFormat() local
121 InitOMXParam(def); in UpdateInPortFormat()
122 def.nPortIndex = OMX_DirInput; in UpdateInPortFormat()
127 PrintPortDefinition(def); in UpdateInPortFormat()
138 OMX_PARAM_PORTDEFINITIONTYPE def; in UpdateOutPortFormat() local
139 InitOMXParam(def); in UpdateOutPortFormat()
140 def.nPortIndex = OMX_DirOutput; in UpdateOutPortFormat()
145 PrintPortDefinition(def); in UpdateOutPortFormat()
225 OMX_PARAM_PORTDEFINITIONTYPE def; in ReConfigureOutputBufferCnt() local
226 InitOMXParam(def); in ReConfigureOutputBufferCnt()
[all …]
H A Dimage_codec.cpp339 InitOMXParam(def); in SetVideoPortInfo()
340 def.nPortIndex = portIndex; in SetVideoPortInfo()
375 HLOGI("bEnabled %{public}d, bPopulated %{public}d", def.bEnabled, def.bPopulated); in PrintPortDefinition()
376 …HLOGI("nBufferCountActual %{public}u, nBufferSize %{public}u", def.nBufferCountActual, def.nBuffer… in PrintPortDefinition()
387 InitOMXParam(def); in GetPortDefinition()
388 def.nPortIndex = portIndex; in GetPortDefinition()
393 if (def.nBufferSize == 0 || def.nBufferSize > MAX_IMAGE_CODEC_BUFFER_SIZE) { in GetPortDefinition()
397 PrintPortDefinition(def); in GetPortDefinition()
404 OMX_PARAM_PORTDEFINITIONTYPE def; in AllocateHardwareBuffers() local
425 static_cast<int32_t>(def.nBufferSize), static_cast<int32_t>(def.format.video.nStride)); in AllocateHardwareBuffers()
[all …]
/ohos5.0/base/startup/appspawn/test/mock/
H A Dapp_spawn_stub.cpp54 bool GetIntParameter(const std::string &key, bool def, bool arg1 = false, bool arg2 = false) in GetIntParameter() argument
56 return def; in GetIntParameter()
59 bool GetBoolParameter(const std::string &key, bool def) in GetBoolParameter() argument
61 return def; in GetBoolParameter()
121 int GetParameter(const char *key, const char *def, char *value, uint32_t len) in GetParameter() argument
129 const char *tmp = def; in GetParameter()
143 return strcpy_s(value, len, def) == 0 ? strlen(def) : -1; in GetParameter()
/ohos5.0/drivers/hdf_core/framework/test/fuzztest/framework_fuzzer/hcs_fuzzer/
H A Dhcs_fuzzer.cpp71 uint8_t def = 0; in FuncHcsGetUint8() local
73 HcsGetUint8(&node, attrName, &value, def); in FuncHcsGetUint8()
95 uint32_t def = 0; in FuncHcsGetUint32() local
97 HcsGetUint32(&node, attrName, &value, def); in FuncHcsGetUint32()
119 uint64_t def = 0; in FuncHcsGetUint64() local
121 HcsGetUint64(&node, attrName, &value, def); in FuncHcsGetUint64()
144 uint8_t def = 0; in FuncHcsGetUint8ArrayElem() local
146 HcsGetUint8ArrayElem(&node, attrName, index, &value, def); in FuncHcsGetUint8ArrayElem()
169 uint16_t def = 0; in FuncHcsGetUint16ArrayElem() local
194 uint32_t def = 0; in FuncHcsGetUint32ArrayElem() local
[all …]
/ohos5.0/docs/zh-cn/application-dev/reference/apis-basic-services-kit/
H A Djs-apis-system-parameter-sys.md21 getSync(key: string, def?: string): string
32 | def | string | 否 | def为所要获取的系统参数的默认值 <br> def为可选参数,仅当系统参数不存在时生效 <br>def可以传undefined或自定义的任意值 |
38 | string | 系统参数值。<br> 若key存在,返回设定的值。<br> 若key不存在且def有效,返回def;若未指定defdef无效(如undefined),返回空字符串。 |
85 get(key: string, def: string, callback: AsyncCallback&lt;string&gt;): void
96 | def | string | 是 | 默认值。 |
119 get(key: string, def?: string): Promise&lt;string&gt;
130 | def | string | 否 | def为所要获取的系统参数的默认值 <br> def为可选参数,仅当系统参数不存在时生效 <br> def可以传undefined或自定义的任意值 |
H A Djs-apis-system-parameterEnhance-sys.md20 getSync(key: string, def?: string): string
31 | def | string | 否 | def为所要获取的系统参数的默认值 <br> def为可选参数,仅当系统参数不存在时生效 <br> def可以传undefined或自定义的任意值 |
37 | string | 系统参数值 <br> 若key存在,返回设定的值。 <br> 若key不存在且def有效,返回def;若未指定defdef无效(如undefined),抛异常。 |
106 get(key: string, def: string, callback: AsyncCallback&lt;string&gt;): void
117 | def | string | 是 | 默认值。 |
151 get(key: string, def?: string): Promise&lt;string&gt;
162 | def | string | 否 | def为所要获取的系统参数的默认值 <br> def为可选参数,仅当系统参数不存在时生效 <br> def可以传undefined或自定义的任意值 |
/ohos5.0/foundation/resourceschedule/resource_schedule_service/ressched_executor/plugins/socperf_executor_plugin/framework/src/
H A Dsocperf_executor_config.cpp183 char *def = nullptr; in LoadFreqResourceContent() local
188 xmlFree(def); in LoadFreqResourceContent()
200 xmlFree(def); in LoadFreqResourceContent()
205 resNode->def = atoll(def); in LoadFreqResourceContent()
209 xmlFree(def); in LoadFreqResourceContent()
280 if (!def || !IsNumber(def)) { in TraversalGovResource()
282 xmlFree(def); in TraversalGovResource()
285 govResNode->def = atoll(def); in TraversalGovResource()
286 xmlFree(def); in TraversalGovResource()
362 if (!def || !IsNumber(def)) { in CheckResourceTag()
[all …]
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/mock/src/parameter/
H A Dparameters.cpp31 bool GetBoolParameter(const std::string& key, bool def) in GetBoolParameter() argument
41 T GetIntParameter(const std::string& key, T def) in GetIntParameter() argument
47 return def; in GetIntParameter()
51 return def; in GetIntParameter()
55 std::string GetParameter(const std::string& key, const std::string& def) in GetParameter() argument
60 return def; in GetParameter()
72 template int32_t GetIntParameter(const std::string& key, int32_t def);
/ohos5.0/base/security/asset/services/db_operator/src/test/
H A Dtest_database.rs62 let mut def = DbMap::from(DB_DATA); in open_db_and_insert_data() localVariable
63 add_bytes_column(&mut def); in open_db_and_insert_data()
68 let count = db.insert_datas(&def).unwrap(); in open_db_and_insert_data()
138 let mut def = DbMap::from(DB_DATA); in insert_data_with_different_alias() localVariable
139 add_bytes_column(&mut def); in insert_data_with_different_alias()
212 let mut def = DbMap::from(DB_DATA); in query_ordered_data() localVariable
213 add_bytes_column(&mut def); in query_ordered_data()
276 let mut def = DbMap::from(DB_DATA); in backup_and_restore() localVariable
277 add_bytes_column(&mut def); in backup_and_restore()
288 let mut def = DbMap::from(DB_DATA); in insert_duplicated_data() localVariable
[all …]
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/codec_adapter/
H A Dhdi_codec_manager.cpp84 CodecPluginDef def; in RegisterCodecPlugins() local
85 def.rank = 100; // 100 default rank in RegisterCodecPlugins()
86 def.codecMode = CodecMode::HARDWARE; in RegisterCodecPlugins()
87 def.pluginType = codecCapability.pluginType; in RegisterCodecPlugins()
88 def.name = packageName + "." + codecCapability.name; in RegisterCodecPlugins()
89 def.inCaps = codecCapability.inCaps; in RegisterCodecPlugins()
90 def.outCaps = codecCapability.outCaps; in RegisterCodecPlugins()
92 def.creator = [pluginMime] (const std::string& name) -> std::shared_ptr<CodecPlugin> { in RegisterCodecPlugins()
95 if (reg->AddPlugin(def) != Status::OK) { in RegisterCodecPlugins()
96 MEDIA_LOG_E("Add plugin " PUBLIC_LOG_S " failed", def.name.c_str()); in RegisterCodecPlugins()
[all …]
/ohos5.0/foundation/multimedia/media_foundation/src/plugin/
H A Dplugin_package.cpp64 Status PluginPackage::AddPlugin(const PluginDefBase& def) in AddPlugin() argument
66 MEDIA_LOG_I("AddPlugin " PUBLIC_LOG_S, def.name.c_str()); in AddPlugin()
68 pluginDef->pluginType = def.pluginType; in AddPlugin()
69 pluginDef->name = def.name; in AddPlugin()
70 pluginDef->rank = def.rank; in AddPlugin()
71 pluginDef->SetCreator(def.GetCreator()); in AddPlugin()
72 pluginDef->SetSniffer(def.GetSniffer()); in AddPlugin()
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-beta2/
H A Djs-apidiff-start-up.md3 …nction getSync(key: string, def?: string): string;<br>旧版本信息:|类名:systemParameter;<br>方法or属性:functio…
5 …t(key: string, def: string, callback: AsyncCallback\<string>): void;<br>旧版本信息:|类名:systemParameter;…
6 …unction get(key: string, def?: string): Promise\<string>;<br>旧版本信息:|类名:systemParameter;<br>方法or属性:…
9 …nction getSync(key: string, def?: string): string;<br>旧版本信息:|类名:systemParameter;<br>方法or属性:functio…
11 …t(key: string, def: string, callback: AsyncCallback\<string>): void;<br>旧版本信息:|类名:systemParameter;…
12 …unction get(key: string, def?: string): Promise\<string>;<br>旧版本信息:|类名:systemParameter;<br>方法or属性:…
16 …ion getSync(key: string, def?: string): string;<br>旧版本信息:|类名:systemParameterEnhance;<br>方法or属性:fun…
18 …y: string, def: string, callback: AsyncCallback\<string>): void;<br>旧版本信息:|类名:systemParameterEnhan…
19 …tion get(key: string, def?: string): Promise\<string>;<br>旧版本信息:|类名:systemParameterEnhance;<br>方法o…
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v3.2-Release/
H A Djs-apidiff-start-up.md3 …nction getSync(key: string, def?: string): string;<br>旧版本信息:|类名:systemParameter;<br>方法or属性:functio…
5 …t(key: string, def: string, callback: AsyncCallback\<string>): void;<br>旧版本信息:|类名:systemParameter;…
6 …unction get(key: string, def?: string): Promise\<string>;<br>旧版本信息:|类名:systemParameter;<br>方法or属性:…
9 …nction getSync(key: string, def?: string): string;<br>旧版本信息:|类名:systemParameter;<br>方法or属性:functio…
11 …t(key: string, def: string, callback: AsyncCallback\<string>): void;<br>旧版本信息:|类名:systemParameter;…
12 …unction get(key: string, def?: string): Promise\<string>;<br>旧版本信息:|类名:systemParameter;<br>方法or属性:…
16 …ion getSync(key: string, def?: string): string;<br>旧版本信息:|类名:systemParameterEnhance;<br>方法or属性:fun…
18 …y: string, def: string, callback: AsyncCallback\<string>): void;<br>旧版本信息:|类名:systemParameterEnhan…
19 …tion get(key: string, def?: string): Promise\<string>;<br>旧版本信息:|类名:systemParameterEnhance;<br>方法o…
/ohos5.0/base/powermgr/power_manager/utils/param/src/
H A Dsysparam.cpp39 int32_t SysParam::GetIntValue(const std::string& key, int32_t def) in GetIntValue() argument
42 int32_t ret = GetParameter(key.c_str(), std::to_string(def).c_str(), value, VALUE_MAX_LEN); in GetIntValue()
44 …COMP_UTILS, "GetParameter failed, return default value, ret=%{public}d, def=%{public}d", ret, def); in GetIntValue()
45 return def; in GetIntValue()
47 int32_t intValue = def; in GetIntValue()
/ohos5.0/foundation/multimedia/av_codec/services/engine/codec/video/hcodec/
H A Dhcodec.cpp501 OMX_PARAM_PORTDEFINITIONTYPE def; in SetVideoPortInfo() local
502 InitOMXParam(def); in SetVideoPortInfo()
503 def.nPortIndex = portIndex; in SetVideoPortInfo()
535 HLOGI("bEnabled %d, bPopulated %d", def.bEnabled, def.bPopulated); in PrintPortDefinition()
536 HLOGI("nBufferCountActual %u, nBufferSize %u", def.nBufferCountActual, def.nBufferSize); in PrintPortDefinition()
547 InitOMXParam(def); in GetPortDefinition()
548 def.nPortIndex = portIndex; in GetPortDefinition()
553 if (def.nBufferSize == 0 || def.nBufferSize > MAX_HCODEC_BUFFER_SIZE) { in GetPortDefinition()
563 OMX_PARAM_PORTDEFINITIONTYPE def; in AllocateAvLinearBuffers() local
592 omxBuffer->allocLen = def.nBufferSize; in AllocateAvHardwareBuffers()
[all …]
/ohos5.0/build/docs/
H A Dpython3脚本优化.md10 def add_numbers(a: int, b: int) -> int:
69 def common_operation():
72 def large_function_a(data):
76 def large_function_b(data):
86 def large_function(data):
/ohos5.0/base/startup/appspawn/util/include/
H A Djson_utils.h44 …((always_inline)) inline bool GetBoolValueFromJsonObj(const cJSON *json, const char *key, bool def) in GetBoolValueFromJsonObj() argument
47 APPSPAWN_CHECK_ONLY_EXPER(value != NULL, return def); in GetBoolValueFromJsonObj()
55 …s_inline)) inline uint32_t GetIntValueFromJsonObj(const cJSON *json, const char *key, uint32_t def) in GetIntValueFromJsonObj() argument
57 APPSPAWN_CHECK(json != NULL, return def, "Invalid json"); in GetIntValueFromJsonObj()
58 APPSPAWN_CHECK(cJSON_IsObject(json), return def, "json is not object."); in GetIntValueFromJsonObj()
/ohos5.0/foundation/resourceschedule/soc_perf/services/core/src/
H A Dsocperf_config.cpp247 char *def = nullptr; in LoadFreqResourceContent() local
252 xmlFree(def); in LoadFreqResourceContent()
264 xmlFree(def); in LoadFreqResourceContent()
269 resNode->def = atoll(def); in LoadFreqResourceContent()
273 xmlFree(def); in LoadFreqResourceContent()
357 if (!def || !IsNumber(def)) { in TraversalGovResource()
359 xmlFree(def); in TraversalGovResource()
362 govResNode->def = atoll(def); in TraversalGovResource()
363 xmlFree(def); in TraversalGovResource()
575 if (!def || !IsNumber(def)) { in CheckResourceTag()
[all …]

123456