/foundation/multimedia/media_library/frameworks/services/media_mtp/src/payload_data/ |
D | get_object_prop_desc_data.cpp | 70 std::shared_ptr<Property> prop = GetProp(); in Maker() local 71 if (prop == nullptr) { in Maker() 75 prop->Write(outBuffer); in Maker() 92 std::shared_ptr<Property> prop = GetPropInt(); in GetProp() local 93 if (prop == nullptr) { in GetProp() 94 prop = GetPropStr(); in GetProp() 96 if (prop == nullptr) { in GetProp() 97 prop = GetPropForm(); in GetProp() 99 return prop; in GetProp() 138 …std::shared_ptr<Property> prop = std::make_shared<Property>(context_->property, MTP_TYPE_STRING_CO… in GetPropStr() local [all …]
|
D | get_object_prop_list_data.cpp | 73 Property &prop = (*props_)[i]; in Maker() local 74 WriteProperty(outBuffer, prop); in Maker() 101 void GetObjectPropListData::WriteProperty(std::vector<uint8_t> &outBuffer, const Property &prop) in WriteProperty() argument 103 MtpPacketTool::PutUInt32(outBuffer, prop.handle_); in WriteProperty() 104 MtpPacketTool::PutUInt16(outBuffer, prop.code_); in WriteProperty() 105 MtpPacketTool::PutUInt16(outBuffer, prop.type_); in WriteProperty() 107 if (prop.currentValue == nullptr) { in WriteProperty() 112 if (prop.type_ == MTP_TYPE_STRING_CODE) { in WriteProperty() 113 WritePropertyStrValue(outBuffer, prop); in WriteProperty() 117 WritePropertyIntValue(outBuffer, prop); in WriteProperty() [all …]
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/unittest/modifier/ |
D | rs_modifier_test.cpp | 53 auto prop = std::make_shared<RSAnimatableProperty<float>>(floatData[0]); variable 54 auto modifier = std::make_shared<RSAlphaModifier>(prop); 56 ASSERT_EQ(modifier->GetPropertyId(), prop->GetId()); 67 auto prop = std::make_shared<RSAnimatableProperty<float>>(floatData[0]); variable 68 auto modifier = std::make_shared<RSAlphaModifier>(prop); 72 prop->Set(floatData[1]); 82 auto prop = std::make_shared<RSAnimatableProperty<float>>(floatData[0]); variable 83 auto modifier = std::make_shared<RSAlphaModifier>(prop); 98 auto prop = std::make_shared<RSAnimatableProperty<float>>(floatData[0]); variable 99 auto modifier = std::make_shared<RSAlphaModifier>(prop); [all …]
|
D | rs_property_test.cpp | 53 auto prop = std::make_shared<RSProperty<float>>(); variable 54 ASSERT_TRUE(prop != nullptr); 55 ASSERT_TRUE(prop->GetId() != 0); 65 auto prop = std::make_shared<RSProperty<float>>(floatData[0]); variable 66 ASSERT_TRUE(prop != nullptr); 67 ASSERT_EQ(prop->Get(), floatData[0]); 69 prop->Set(floatData[1]); 70 ASSERT_EQ(prop->Get(), floatData[1]);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/test/pattern/grid_col/ |
D | grid_col_pattern_test_ng.cpp | 109 const V2::GridContainerSize prop = V2::GridContainerSize(7); variable 110 propValue = layoutProperty->GetPropValue(prop, V2::GridSizeType::XS); 111 EXPECT_EQ(propValue, prop.xs); 112 propValue = layoutProperty->GetPropValue(prop, V2::GridSizeType::SM); 113 EXPECT_EQ(propValue, prop.sm); 114 propValue = layoutProperty->GetPropValue(prop, V2::GridSizeType::MD); 115 EXPECT_EQ(propValue, prop.md); 116 propValue = layoutProperty->GetPropValue(prop, V2::GridSizeType::LG); 117 EXPECT_EQ(propValue, prop.lg); 118 propValue = layoutProperty->GetPropValue(prop, V2::GridSizeType::XL); [all …]
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/property/ |
D | property.h | 82 if (!prop##group##_) { \ 83 prop##group##_ = std::make_unique<type>(); \ 85 return prop##group##_; \ 89 return prop##group##_; \ 93 if (prop##group##_) { \ 94 return std::make_unique<type>(*prop##group##_); \ 100 return prop##group##_.reset(); \ 104 std::unique_ptr<type> prop##group##_; 230 return prop##name##_; \ 234 return prop##name##_.has_value(); \ [all …]
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/state_mgmt/src/lib/partial_update/ |
D | pu_builder_proxy.ts | 44 set(target, prop, val) { 45 …`@Builder '${builderName}': Invalid attempt to set(write to) parameter '${prop.toString()}' error!… 47 get(target, prop) { 48 const prop1 = prop.toString().trim().startsWith("__") 49 ? prop.toString().trim().substring(2) 50 : prop.toString().trim(); 51 stateMgmtConsole.debug(`get - prop ${prop.toString()} prop1 ${prop1}`); 62 if (prop1 !== prop) {
|
/foundation/arkui/ace_engine_lite/frameworks/src/core/wrapper/ |
D | js.cpp | 119 JSValue JSObject::Get(JSValue target, const char * const prop) in Get() argument 121 JSValue key = JSString::Create(prop); in Get() 127 char *JSObject::GetString(JSValue target, const char * const prop) in GetString() argument 129 JSValue value = JSObject::Get(target, prop); in GetString() 134 double JSObject::GetNumber(JSValue target, const char * const prop) in GetNumber() argument 136 JSValue value = JSObject::Get(target, prop); in GetNumber() 141 bool JSObject::GetBoolean(JSValue target, const char * const prop) in GetBoolean() argument 143 JSValue value = JSObject::Get(target, prop); in GetBoolean() 148 void JSObject::Set(JSValue target, const char * const prop, JSValue value) in Set() argument 150 JSValue key = JSString::Create(prop); in Set() [all …]
|
D | js.h | 50 static JSValue Get(JSValue target, const char * const prop); 51 static char *GetString(JSValue target, const char * const prop); 52 static double GetNumber(JSValue target, const char * const prop); 53 static bool GetBoolean(JSValue target, const char * const prop); 54 static void Set(JSValue target, const char * const prop, JSValue value); 55 static void SetString(JSValue target, const char * const prop, const char * const value); 56 static void SetNumber(JSValue target, const char * const prop, const double value); 57 static void SetBoolean(JSValue target, const char * const prop, const bool value); 58 static void Set(JSValue target, const char * const prop, JSHandler handler); 59 static bool Del(JSValue target, const char * const prop); [all …]
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid_col/ |
D | grid_col_layout_property.cpp | 40 int32_t GridColLayoutProperty::GetPropValue(const V2::GridContainerSize& prop, V2::GridSizeType siz… in GetPropValue() argument 44 return prop.xs; in GetPropValue() 47 return prop.sm; in GetPropValue() 50 return prop.md; in GetPropValue() 53 return prop.lg; in GetPropValue() 56 return prop.xl; in GetPropValue() 59 return prop.xxl; in GetPropValue() 62 return prop.xs; in GetPropValue()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/modifier/ |
D | rs_render_modifier.cpp | 43 … std::shared_ptr<RSRenderAnimatableProperty<TYPE>> prop; \ 44 … if (!RSMarshallingHelper::Unmarshalling(parcel, prop)) { \ 47 … auto modifier = new RS##MODIFIER_NAME##RenderModifier(prop); \ 54 … std::shared_ptr<RSRenderProperty<TYPE>> prop; \ 55 … if (!RSMarshallingHelper::Unmarshalling(parcel, prop)) { \ 58 … auto modifier = new RS##MODIFIER_NAME##RenderModifier(prop); \ 67 std::shared_ptr<RSRenderProperty<std::shared_ptr<DrawCmdList>>> prop; in __anon42e7910d0202() local 69 std::shared_ptr<RSRenderProperty<std::shared_ptr<Drawing::DrawCmdList>>> prop; in __anon42e7910d0202() 72 if (!RSMarshallingHelper::Unmarshalling(parcel, prop) || !parcel.ReadInt16(type)) { in __anon42e7910d0202() 75 RSDrawCmdListRenderModifier* modifier = new RSDrawCmdListRenderModifier(prop); in __anon42e7910d0202() [all …]
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/property/ |
D | rs_properties.cpp | 46 using ResetPropertyFunc = void (*)(RSProperties* prop); 48 { RSModifierType::BOUNDS, [](RSProperties* prop) {} }, in __anon1da19fe20202() 49 { RSModifierType::FRAME, [](RSProperties* prop) {} }, in __anon1da19fe20302() 50 { RSModifierType::SANDBOX, [](RSProperties* prop) { prop->ResetSandBox(); } }, in __anon1da19fe20402() 51 { RSModifierType::POSITION_Z, [](RSProperties* prop) { prop->SetPositionZ(0.f); } }, in __anon1da19fe20502() 52 { RSModifierType::PIVOT, [](RSProperties* prop) { prop->SetPivot(Vector2f(0.5f, 0.5f)); } }, in __anon1da19fe20602() 53 { RSModifierType::PIVOT_Z, [](RSProperties* prop) { prop->SetPivotZ(0.f); } }, in __anon1da19fe20702() 54 { RSModifierType::QUATERNION, [](RSProperties* prop) { prop->SetQuaternion(Quaternion()); } }, in __anon1da19fe20802() 55 { RSModifierType::ROTATION, [](RSProperties* prop) { prop->SetRotation(0.f); } }, in __anon1da19fe20902() 56 { RSModifierType::ROTATION_X, [](RSProperties* prop) { prop->SetRotationX(0.f); } }, in __anon1da19fe20a02() [all …]
|
/foundation/arkui/ace_engine/frameworks/core/components/tab_bar/ |
D | tab_bar_size_animation.h | 35 constexpr ItemAnimationProp operator+(const ItemAnimationProp& prop) const 37 return { fontSize + prop.fontSize, opacity + prop.opacity }; 39 constexpr ItemAnimationProp operator-(const ItemAnimationProp& prop) const 41 return { fontSize - prop.fontSize, opacity - prop.opacity };
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/modifier/ |
D | rs_render_modifier_test.cpp | 58 auto prop = std::make_shared<RSRenderProperty<float>>(); variable 59 auto modifier = std::make_shared<RSAlphaRenderModifier>(prop); 61 ASSERT_TRUE(modifier->GetProperty() == prop); 77 auto prop = std::make_shared<RSRenderProperty<float>>(floatData[0], id); variable 78 auto modifier = std::make_shared<RSAlphaRenderModifier>(prop); 79 ASSERT_TRUE(prop != nullptr); 80 ASSERT_EQ(modifier->GetProperty(), prop); 101 auto prop = std::make_shared<RSRenderProperty<DrawCmdListPtr>>(canvas.GetDrawCmdList(), id); variable 102 auto modifier = std::make_shared<RSDrawCmdListRenderModifier>(prop);
|
D | rs_render_property_test.cpp | 52 auto prop = std::make_shared<RSRenderProperty<float>>(); variable 53 ASSERT_TRUE(prop != nullptr); 54 ASSERT_TRUE(prop->GetId() == 0); 68 auto prop = std::make_shared<RSRenderProperty<float>>(floatData[0], id); variable 69 ASSERT_TRUE(prop != nullptr); 70 ASSERT_EQ(prop->Get(), floatData[0]); 72 prop->Set(floatData[1]); 73 ASSERT_EQ(prop->Get(), floatData[1]); 186 for (auto& prop : props) { variable 188 ASSERT_TRUE(RSRenderPropertyBase::Marshalling(parcel, prop)); [all …]
|
/foundation/ability/ability_runtime/frameworks/js/napi/featureAbility/ |
D | feature_ability_constant.cpp | 77 napi_value prop = nullptr; in SetNamedProperty() local 78 napi_create_string_utf8(env, objName, NAPI_AUTO_LENGTH, &prop); in SetNamedProperty() 79 napi_set_named_property(env, dstObj, propName, prop); in SetNamedProperty() 84 napi_value prop = nullptr; in SetNamedProperty() local 85 napi_create_int32(env, objValue, &prop); in SetNamedProperty() 86 napi_set_named_property(env, dstObj, propName, prop); in SetNamedProperty()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/ |
D | virtual_multi_ver_sync_db_interface.cpp | 146 KvDBProperties prop; in Initialize() local 147 prop.SetStringProp(KvDBProperties::USER_ID, "sync_test"); in Initialize() 148 prop.SetStringProp(KvDBProperties::APP_ID, "sync_test"); in Initialize() 149 prop.SetStringProp(KvDBProperties::STORE_ID, deviceId); in Initialize() 152 prop.SetStringProp(KvDBProperties::IDENTIFIER_DATA, identifier); in Initialize() 154 prop.SetStringProp(KvDBProperties::IDENTIFIER_DIR, identifierDir); in Initialize() 155 prop.SetStringProp(KvDBProperties::DATA_DIR, dir + "/commitstore"); in Initialize() 156 prop.SetIntProp(KvDBProperties::DATABASE_TYPE, KvDBProperties::MULTI_VER_TYPE); in Initialize() 157 prop.SetBoolProp(KvDBProperties::CREATE_IF_NECESSARY, true); in Initialize() 160 IKvDB *kvDB = KvDBManager::OpenDatabase(prop, errCode); in Initialize() [all …]
|
/foundation/window/window_manager/wmserver/src/ |
D | window_manager_config.cpp | 198 xmlChar* prop = xmlGetProp(currNode, reinterpret_cast<const xmlChar*>("enable")); in ReadProperty() local 199 if (prop != nullptr) { in ReadProperty() 200 if (!xmlStrcmp(prop, reinterpret_cast<const xmlChar*>("true"))) { in ReadProperty() 202 } else if (!xmlStrcmp(prop, reinterpret_cast<const xmlChar*>("false"))) { in ReadProperty() 205 xmlFree(prop); in ReadProperty() 208 prop = xmlGetProp(currNode, reinterpret_cast<const xmlChar*>("name")); in ReadProperty() 209 if (prop != nullptr) { in ReadProperty() 210 property["name"].SetValue(std::string(reinterpret_cast<const char*>(prop))); in ReadProperty() 211 xmlFree(prop); in ReadProperty() 272 for (auto prop : propMap) { in DumpConfig() local [all …]
|
/foundation/window/window_manager/window_scene/session_manager/src/ |
D | window_scene_config.cpp | 203 xmlChar* prop = xmlGetProp(currNode, reinterpret_cast<const xmlChar*>("enable")); in ReadProperty() local 204 if (prop != nullptr) { in ReadProperty() 205 if (!xmlStrcmp(prop, reinterpret_cast<const xmlChar*>("true"))) { in ReadProperty() 207 } else if (!xmlStrcmp(prop, reinterpret_cast<const xmlChar*>("false"))) { in ReadProperty() 210 xmlFree(prop); in ReadProperty() 213 prop = xmlGetProp(currNode, reinterpret_cast<const xmlChar*>("name")); in ReadProperty() 214 if (prop != nullptr) { in ReadProperty() 215 property["name"].SetValue(std::string(reinterpret_cast<const char*>(prop))); in ReadProperty() 216 xmlFree(prop); in ReadProperty() 277 for (auto prop : propMap) { in DumpConfig() local [all …]
|
/foundation/distributeddatamgr/distributedfile/interfaces/kits/napi/common/ |
D | common_func.cpp | 27 NVal prop = NVal(env, object); in GetCallbackHandles() local 36 successProp = prop.GetProp(success).val_; in GetCallbackHandles() 42 failProp = prop.GetProp(fail).val_; in GetCallbackHandles() 48 completeProp = prop.GetProp(complete).val_; in GetCallbackHandles()
|
/foundation/distributeddatamgr/distributedfile/interfaces/kits/js/src/mod_file/ |
D | common_func.cpp | 28 NVal prop = NVal(env, object); in GetCallbackHandles() local 37 successProp = prop.GetProp(success).val_; in GetCallbackHandles() 43 failProp = prop.GetProp(fail).val_; in GetCallbackHandles() 49 completeProp = prop.GetProp(complete).val_; in GetCallbackHandles()
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_file/ |
D | common_func.cpp | 28 NVal prop = NVal(env, object); in GetCallbackHandles() local 37 successProp = prop.GetProp(success).val_; in GetCallbackHandles() 43 failProp = prop.GetProp(fail).val_; in GetCallbackHandles() 49 completeProp = prop.GetProp(complete).val_; in GetCallbackHandles()
|
/foundation/arkui/ace_engine/frameworks/core/components_v2/common/ |
D | common_def.h | 43 type prop##name##_ { __VA_ARGS__ }; \ 47 return prop##name##_; \ 49 void Set##name(const type& prop##name) \ 51 prop##name##_ = prop##name; \
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/state_mgmt/src/utest/common/ |
D | app_storage_test.ts | 68 let prop = AppStorage.prop("say"); 71 test("prop value expected `Guido`.", prop.get() == "Guido"); 76 prop.set("Hanna"); 77 test("prop changed value expected `Hanna`.", prop.get() == "Hanna"); 84 test("prop changed value expected `Anton`.", prop.get() == "Anton"); 142 let proptoObsObj = AppStorage.prop<TestAClass>("objAClass"); 218 prop.aboutToBeDeleted();
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/state_mgmt/src/lib/sdk/ |
D | environment.ts | 119 let prop = AppStorage.prop(key); 120 if (prop) { 150 prop = AppStorage.setAndProp(key, tmp); 151 if (!prop) { 155 this.props_.set(key, prop);
|