/foundation/bundlemanager/bundle_framework_lite/frameworks/bundle_lite/src/ |
D | element_name.cpp | 34 void ClearElement(ElementName *element) in ClearElement() argument 36 if (element == nullptr) { in ClearElement() 40 AdapterFree(element->deviceId); in ClearElement() 41 AdapterFree(element->bundleName); in ClearElement() 42 AdapterFree(element->abilityName); in ClearElement() 45 void DeleteElement(ElementName *element) in DeleteElement() argument 47 AdapterFree(element); in DeleteElement() 50 bool SetElementDeviceID(ElementName *element, const char *deviceId) in SetElementDeviceID() argument 52 if (element == nullptr) { in SetElementDeviceID() 56 AdapterFree(element->deviceId); in SetElementDeviceID() [all …]
|
/foundation/distributeddatamgr/preferences/frameworks/native/src/ |
D | preferences_xml_utils.cpp | 29 static bool ParseNodeElement(const xmlNode *node, Element &element); 30 static bool ParsePrimitiveNodeElement(const xmlNode *node, Element &element); 31 static bool ParseStringNodeElement(const xmlNode *node, Element &element); 32 static bool ParseArrayNodeElement(const xmlNode *node, Element &element); 33 static xmlNode *CreateElementNode(Element &element); 34 static xmlNode *CreatePrimitiveNode(Element &element); 35 static xmlNode *CreateStringNode(Element &element); 36 static xmlNode *CreateArrayNode(Element &element); 134 Element element; in ReadSettingXml() local 136 if (ParseNodeElement(cur, element)) { in ReadSettingXml() [all …]
|
/foundation/arkui/ace_engine_lite/frameworks/examples/calculator/src/main/js/default/common/ |
D | calculator.js | 33 const element = expression.shift(); 34 if (!isOperator(element)) { 35 numberStack.push(Number(element)); 39 const result = OperatorHandlers[element](other, one); 51 const element = expression[idx]; 52 if (element === "(") { 53 operatorStack.push(element); 56 if (element === ")") { 66 if (isOperator(element)) { 68 operatorStack.push(element); [all …]
|
/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/ |
D | image_animator_composed_element.cpp | 54 auto element = GetContentElement<ImageAnimatorElement>(ImageAnimatorElement::TypeId()); in GetStatus() local 55 if (element) { in GetStatus() 56 auto statusIndex = static_cast<int32_t>(element->GetStatus()); in GetStatus() 69 auto element = GetContentElement<ImageAnimatorElement>(ImageAnimatorElement::TypeId()); in GetDuration() local 70 if (element) { in GetDuration() 71 return std::to_string(element->GetDuration()); in GetDuration() 78 auto element = GetContentElement<ImageAnimatorElement>(ImageAnimatorElement::TypeId()); in GetReverse() local 79 if (element) { in GetReverse() 80 return element->GetReverse() ? "true" : "false"; in GetReverse() 87 auto element = GetContentElement<ImageAnimatorElement>(ImageAnimatorElement::TypeId()); in GetFixedSize() local [all …]
|
D | tab_content_composed_element.cpp | 51 auto element = GetTabContentItemElement(); in GetIcon() local 52 return element ? element->GetIcon() : ""; in GetIcon() 57 auto element = GetTabContentItemElement(); in GetText() local 58 return element ? element->GetText() : ""; in GetText() 63 auto element = GetTabContentItemElement(); in GetTabBar() local 64 if (!element) { in GetTabBar() 68 if (!element->GetIcon().empty()) { in GetTabBar() 70 jsonValue->Put("icon", element->GetIcon().c_str()); in GetTabBar() 71 jsonValue->Put("text", element->GetText().c_str()); in GetTabBar() 74 return element->GetText(); in GetTabBar()
|
/foundation/multimedia/player_framework/services/engine/gstreamer/plugins/codec/hdi_plugins/ |
D | hdi_venc_params_mgr.h | 33 int32_t SetParameter(GstCodecParamKey key, GstElement *element) override; 34 int32_t GetParameter(GstCodecParamKey key, GstElement *element) override; 36 int32_t SetInputVideoCommon(GstElement *element); 37 int32_t SetOutputVideoCommon(GstElement *element); 38 int32_t SetDynamicBitrate(GstElement *element); 39 int32_t SetVideoFormat(GstElement *element); 40 int32_t VideoSurfaceInit(GstElement *element); 42 int32_t GetInputVideoCommon(GstElement *element); 43 int32_t GetOutputVideoCommon(GstElement *element); 44 int32_t GetVideoFormat(GstElement *element); [all …]
|
D | hdi_vdec_params_mgr.h | 33 int32_t SetParameter(GstCodecParamKey key, GstElement *element) override; 34 int32_t GetParameter(GstCodecParamKey key, GstElement *element) override; 36 int32_t SetInputVideoCommon(GstElement *element); 37 int32_t SetOutputVideoCommon(GstElement *element); 38 int32_t SetVideoFormat(GstElement *element); 39 int32_t SetFrameRate(GstElement *element); 41 int32_t VideoSurfaceInit(GstElement *element); 42 int32_t GetInputVideoCommon(GstElement *element); 43 int32_t GetOutputVideoCommon(GstElement *element); 44 int32_t GetVideoFormat(GstElement *element); [all …]
|
D | hdi_vdec_params_mgr.cpp | 54 int32_t HdiVdecParamsMgr::SetParameter(GstCodecParamKey key, GstElement *element) in SetParameter() argument 56 CHECK_AND_RETURN_RET_LOG(element != nullptr, GST_CODEC_ERROR, "Element is nullptr"); in SetParameter() 59 return SetInputVideoCommon(element); in SetParameter() 61 return SetOutputVideoCommon(element); in SetParameter() 63 return SetVideoFormat(element); in SetParameter() 65 return VideoSurfaceInit(element); in SetParameter() 69 return SetFrameRate(element); in SetParameter() 75 int32_t HdiVdecParamsMgr::SetFrameRate(GstElement *element) in SetFrameRate() argument 77 GstVdecBase *base = GST_VDEC_BASE(element); in SetFrameRate() 90 int32_t HdiVdecParamsMgr::SetInputVideoCommon(GstElement *element) in SetInputVideoCommon() argument [all …]
|
/foundation/ability/ability_base/interfaces/kits/native/want/src/ |
D | element_name.cpp | 27 void ElementName::SetElementDeviceID(ElementName *element, const char *deviceId) in SetElementDeviceID() argument 29 if (element == nullptr) { in SetElementDeviceID() 32 element->SetDeviceID(deviceId); in SetElementDeviceID() 35 void ElementName::SetElementBundleName(ElementName *element, const char *bundleName) in SetElementBundleName() argument 37 if (element == nullptr) { in SetElementBundleName() 40 element->SetBundleName(bundleName); in SetElementBundleName() 43 void ElementName::SetElementAbilityName(ElementName *element, const char *abilityName) in SetElementAbilityName() argument 45 if (element == nullptr) { in SetElementAbilityName() 48 element->SetAbilityName(abilityName); in SetElementAbilityName() 51 void ElementName::SetElementModuleName(ElementName *element, const char *moduleName) in SetElementModuleName() argument [all …]
|
/foundation/communication/nfc/services/src/ |
D | app_data_parser.cpp | 69 ElementName element = data->GetWant().GetElement(); in HandleAppAddOrChangedEvent() local 70 std::string bundleName = element.GetBundleName(); in HandleAppAddOrChangedEvent() 76 UpdateAppListInfo(element, KITS::ACTION_TAG_FOUND); in HandleAppAddOrChangedEvent() 77 UpdateAppListInfo(element, KITS::ACTION_HOST_APDU_SERVICE); in HandleAppAddOrChangedEvent() 86 ElementName element = data->GetWant().GetElement(); in HandleAppRemovedEvent() local 87 std::string bundleName = element.GetBundleName(); in HandleAppRemovedEvent() 96 RemoveTagAppInfo(element); in HandleAppRemovedEvent() 97 RemoveHceAppInfo(element); in HandleAppRemovedEvent() 147 bool AppDataParser::UpdateAppListInfo(ElementName &element, const std::string action) in UpdateAppListInfo() argument 153 std::string bundleName = element.GetBundleName(); in UpdateAppListInfo() [all …]
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/ |
D | view_partial_update_model_impl.cpp | 54 const RefPtr<ComposedElement>& element) mutable { in CreateNode() argument 59 nodeInfo.updateNodeFunc(element); in CreateNode() 64 if (element) { in CreateNode() 65 element->SetRenderFunction(std::move(renderFunction)); in CreateNode() 66 element->SetRemoveFunction(std::move(nodeInfo.removeFunc)); in CreateNode() 75 element->SetPageTransitionFunction(std::move(pageTransitionFunction)); in CreateNode() 98 auto element = weakElement.Upgrade(); in MarkNeedUpdate() local 99 if (element) { in MarkNeedUpdate() 100 LOGD("Element %{public}d MarkDirty", element->GetElementId()); in MarkNeedUpdate() 101 element->MarkDirty(); in MarkNeedUpdate() [all …]
|
D | view_full_update_model_impl.cpp | 34 …auto elementFunction = [nodeInfo = std::move(info)](const RefPtr<ComposedElement>& element) mutabl… in CreateNode() argument 40 nodeInfo.updateNodeFunc(element); in CreateNode() 45 if (element) { in CreateNode() 54 element->SetRenderFunction(std::move(renderFunction)); in CreateNode() 56 element->SetRemoveFunction(std::move(removeFunc)); in CreateNode() 64 element->SetPageTransitionFunction(std::move(pageTransitionFunction)); in CreateNode() 86 auto element = weakElement.Upgrade(); in MarkNeedUpdate() local 87 if (element) { in MarkNeedUpdate() 88 LOGD("Element %{public}d MarkDirty", element->GetElementId()); in MarkNeedUpdate() 89 element->MarkDirty(); in MarkNeedUpdate()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/default_app/ |
D | default_app_data.cpp | 89 Element element; in ParseDefaultApplicationConfig() local 91 from_json(object, element); in ParseDefaultApplicationConfig() 93 if (element.type.empty() || !DefaultAppMgr::VerifyElementFormat(element)) { in ParseDefaultApplicationConfig() 97 infos.try_emplace(element.type, element); in ParseDefaultApplicationConfig() 101 void to_json(nlohmann::json& jsonObject, const Element& element) in to_json() argument 105 {BUNDLE_NAME, element.bundleName}, in to_json() 106 {MODULE_NAME, element.moduleName}, in to_json() 107 {ABILITY_NAME, element.abilityName}, in to_json() 108 {EXTENSION_NAME, element.extensionName}, in to_json() 109 {TYPE, element.type} in to_json() [all …]
|
/foundation/multimedia/av_session/services/session/adapter/ |
D | ability_connect_helper.cpp | 45 AppExecFwk::ElementName element("", bundleName, abilityName); in StartAbilityByCall() local 46 want.SetElement(element); in StartAbilityByCall() 113 auto element = data.ReadParcelable<AppExecFwk::ElementName>(); in OnRemoteRequest() local 114 if (element == nullptr) { in OnRemoteRequest() 122 delete element; in OnRemoteRequest() 126 OnAbilityConnectDone(*element, remoteObject, resultCode); in OnRemoteRequest() 127 delete element; in OnRemoteRequest() 132 OnAbilityDisconnectDone(*element, resultCode); in OnRemoteRequest() 133 delete element; in OnRemoteRequest() 136 delete element; in OnRemoteRequest() [all …]
|
/foundation/ability/ability_runtime/services/abilitymgr/src/ |
D | ability_connect_callback_stub.cpp | 36 const AppExecFwk::ElementName &element, const sptr<IRemoteObject> &remoteObject, int resultCode) in OnAbilityConnectDone() argument 49 if (!data.WriteParcelable(&element)) { in OnAbilityConnectDone() 71 void AbilityConnectionProxy::OnAbilityDisconnectDone(const AppExecFwk::ElementName &element, int re… in OnAbilityDisconnectDone() argument 83 if (!data.WriteParcelable(&element) || !data.WriteInt32(resultCode)) { in OnAbilityDisconnectDone() 112 auto element = data.ReadParcelable<AppExecFwk::ElementName>(); in OnRemoteRequest() local 113 if (element == nullptr) { in OnRemoteRequest() 123 delete element; in OnRemoteRequest() 128 OnAbilityConnectDone(*element, remoteObject, resultCode); in OnRemoteRequest() 130 delete element; in OnRemoteRequest() 136 OnAbilityDisconnectDone(*element, resultCode); in OnRemoteRequest() [all …]
|
/foundation/ability/form_fwk/interfaces/inner_api/src/ |
D | provider_connect_stub.cpp | 42 auto element = data.ReadParcelable<AppExecFwk::ElementName>(); in OnRemoteRequest() local 45 if (element == nullptr) { in OnRemoteRequest() 54 OnAbilityConnectDone(*element, remoteObject, resultCode); in OnRemoteRequest() 55 delete element; in OnRemoteRequest() 59 if (element == nullptr) { in OnRemoteRequest() 64 OnAbilityDisconnectDone(*element, resultCode); in OnRemoteRequest() 65 delete element; in OnRemoteRequest() 69 if (element != nullptr) { in OnRemoteRequest() 70 delete element; in OnRemoteRequest()
|
/foundation/bundlemanager/bundle_framework_lite/interfaces/kits/bundle_lite/ |
D | element_name.h | 83 void ClearElement(ElementName *element); 91 void DeleteElement(ElementName *element); 101 bool SetElementDeviceID(ElementName *element, const char *deviceId); 111 bool SetElementBundleName(ElementName *element, const char *bundleName); 121 bool SetElementAbilityName(ElementName *element, const char *abilityName); 125 bool SerializeElement(IpcIo *io, const ElementName *element); 126 bool DeserializeElement(ElementName *element, IpcIo *io);
|
/foundation/arkui/ace_engine/frameworks/core/components/test/unittest/plugin/ |
D | plugin_element_test.cpp | 64 PluginElement element; variable 70 element.pluginSubContainer_ = AceType::MakeRefPtr<PluginSubContainer>(pipelineContext); 76 RefPtr<RenderNode> renderNode = element.CreateRenderNode(); 90 PluginElement element; variable 99 element.pluginSubContainer_ = AceType::MakeRefPtr<PluginSubContainer>(pipelineContext); 100 element.PerformBuild(); 101 EXPECT_TRUE(element.GetPluginSubContainer() != nullptr); 114 PluginElement element; variable 120 element.pluginSubContainer_ = AceType::MakeRefPtr<PluginSubContainer>(pipelineContext); 133 element.InitEvent(pluginComponent); [all …]
|
/foundation/arkui/ace_engine/frameworks/core/components_v2/water_flow/ |
D | water_flow_element.cpp | 40 auto element = weak.Upgrade(); in CreateRenderNode() local 41 if (!element) { in CreateRenderNode() 44 return element->BuildChildByIndex(index); in CreateRenderNode() 48 auto element = weak.Upgrade(); in CreateRenderNode() local 49 if (!element) { in CreateRenderNode() 52 element->DeleteChildByIndex(index); in CreateRenderNode() 56 auto element = weak.Upgrade(); in CreateRenderNode() local 57 if (!element) { in CreateRenderNode() 60 return element->TotalCount(); in CreateRenderNode() 85 auto element = GetElementByIndex(index); in BuildChildByIndex() local [all …]
|
/foundation/ability/ability_lite/frameworks/want_lite/src/ |
D | want.cpp | 67 ClearElement(want->element); in ClearWant() 68 AdapterFree(want->element); in ClearWant() 80 bool SetWantElement(Want *want, ElementName element) in SetWantElement() argument 86 ClearElement(want->element); in SetWantElement() 87 AdapterFree(want->element); in SetWantElement() 88 want->element = reinterpret_cast<ElementName *>(AdapterMalloc(sizeof(ElementName))); in SetWantElement() 89 if (want->element == nullptr) { in SetWantElement() 92 want->element->deviceId = OHOS::Utils::Strdup(element.deviceId); in SetWantElement() 93 want->element->bundleName = OHOS::Utils::Strdup(element.bundleName); in SetWantElement() 94 want->element->abilityName = OHOS::Utils::Strdup(element.abilityName); in SetWantElement() [all …]
|
/foundation/arkui/ace_engine/frameworks/core/components_v2/grid/ |
D | grid_element.cpp | 34 auto element = weak.Upgrade(); in CreateRenderNode() local 35 if (!element) { in CreateRenderNode() 38 return element->BuildChildByIndex(index); in CreateRenderNode() 42 auto element = weak.Upgrade(); in CreateRenderNode() local 43 if (!element) { in CreateRenderNode() 46 element->DeleteChildByIndex(index); in CreateRenderNode() 51 auto element = weak.Upgrade(); in CreateRenderNode() local 52 if (!element) { in CreateRenderNode() 55 …return element->GetItemSpanByIndex(index, isHorizontal, itemMain, itemCross, itemMainSpan, itemCro… in CreateRenderNode() 59 auto element = weak.Upgrade(); in CreateRenderNode() local [all …]
|
/foundation/arkui/ace_engine/frameworks/core/components_v2/list/ |
D | list_item_element.cpp | 32 auto element = weak.Upgrade(); in CreateRenderNode() local 33 if (!element) { in CreateRenderNode() 37 return element->itemChild_ ? element->itemChild_->GetRenderNode() : nullptr; in CreateRenderNode() 40 … return element->swiperStartElement_ ? element->swiperStartElement_->GetRenderNode() : nullptr; in CreateRenderNode() 43 … return element->swiperEndElement_ ? element->swiperEndElement_->GetRenderNode() : nullptr; in CreateRenderNode()
|
/foundation/multimedia/player_framework/services/engine/gstreamer/player/ |
D | player_track_parse.h | 49 bool AddProbeToPad(const GstElement *element, GstPad *pad); 50 bool AddProbeToPadList(GstElement *element, GList &list); 52 static void OnPadAddedCb(const GstElement *element, GstPad *pad, gpointer userData); 56 static void OnInputSelectPadAddedCb(const GstElement *element, GstPad *pad, gpointer userData); 57 bool InputSelectAddProbeToPad(const GstElement *element, GstPad *pad); 66 …void ParseSubtitlePadCaps(const GstElement *element, GstPad *pad, int32_t index, Format &innerMeta… 68 inline void AddSignalIds(GstElement *element, gulong signalId) in AddSignalIds() argument 70 if (signalIds_.find(element) == signalIds_.end()) { in AddSignalIds() 71 signalIds_[element] = {signalId}; in AddSignalIds() 73 signalIds_[element].push_back(signalId); in AddSignalIds() [all …]
|
/foundation/ability/ability_runtime/test/unittest/ability_manager_service_account_test/ |
D | ability_manager_service_account_test.cpp | 120 ElementName element("", "com.ix.hiAccount", "AccountTest"); variable 121 want.SetElement(element); 155 ElementName element("", "com.ix.hiworld", "WorldService"); variable 156 want.SetElement(element); 194 ElementName element("", "com.ix.hiMusic", "hiMusic"); variable 195 want.SetElement(element); 230 ElementName element("", "com.ix.hiMusic", "hiMusic"); variable 231 want.SetElement(element); 261 ElementName element("", "com.ix.hiSingleMusicInfo", "SingleMusicAbility"); variable 262 want.SetElement(element); [all …]
|
/foundation/ability/ability_runtime/test/unittest/running_infos_test/ |
D | running_infos_test.cpp | 61 ElementName element("device", "com.ix.hiMusic", "MusicAbility"); variable 62 want.SetElement(element); 71 EXPECT_TRUE(infos[0].ability.GetAbilityName() == element.GetAbilityName()); 89 ElementName element("device", "com.ix.hiService", "ServiceAbility"); variable 90 want.SetElement(element); 99 EXPECT_TRUE(infos[0].ability.GetAbilityName() == element.GetAbilityName()); 117 ElementName element("device", "com.ohos.launcher", "com.ohos.launcher.MainAbility"); variable 118 want.SetElement(element); 127 EXPECT_TRUE(infos[0].ability.GetAbilityName() == element.GetAbilityName()); 145 ElementName element("device", "com.ix.hiMusic", "MusicAbility"); variable [all …]
|