/ohos5.0/drivers/peripheral/display/composer/vdi_base/src/ |
H A D | drm_plane.cpp | 68 DrmProperty prop; in GetCrtcProp() local 73 crtc_x = prop.value; in GetCrtcProp() 78 crtc_y = prop.value; in GetCrtcProp() 83 crtc_w = prop.value; in GetCrtcProp() 103 DrmProperty prop; in GetSrcProp() local 108 src_x = prop.value; in GetSrcProp() 113 src_y = prop.value; in GetSrcProp() 118 src_w = prop.value; in GetSrcProp() 123 src_h = prop.value; in GetSrcProp() 134 DrmProperty prop; in GetNameProp() local [all …]
|
/ohos5.0/base/security/access_token/interfaces/kits/napi/privacy/src/ |
H A D | native_module.cpp | 44 napi_value prop = nullptr; in Init() local 48 prop = nullptr; in Init() 55 prop = nullptr; in Init() 56 napi_create_int32(env, PERM_INACTIVE, &prop); in Init() 59 prop = nullptr; in Init() 63 prop = nullptr; in Init() 70 prop = nullptr; in Init() 71 napi_create_int32(env, NORMAL_TYPE, &prop); in Init() 74 prop = nullptr; in Init() 75 napi_create_int32(env, PICKER_TYPE, &prop); in Init() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/fuzztest/rsclientproperty_fuzzer/ |
H A D | rsclientproperty_fuzzer.cpp | 91 return ROSEN_EQ(prop->GetThreshold(), 0.5f); in DoSetThresholdType001() 235 prop->SetValueFromRender(renderprop); in DoSetValueFromRender() 254 prop->AttachModifier(modifier); in DoAttachModifier() 273 prop->Add(property); in DoAdd() 291 prop->AddPathAnimation(); in DoAddPathAnimation() 313 prop->AnimateWithInitialVelocity(timingProtocol, rsAnimationTimingCurve, property, prop); in DoAnimateWithInitialVelocity() 331 prop->GetId(); in DoGetId() 367 prop->GetStagingValue(); in DoGetStagingValue() 385 prop->RequestCancelAnimation(); in DoRequestCancelAnimation() 421 prop->UpdateCustomAnimation(); in DoUpdateCustomAnimation() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/unittest/modifier/ |
H A D | rs_modifier_test.cpp | 155 prop->Set(value); 199 prop->Set(value); 242 prop->Set(value); 284 prop->Set(value); 326 prop->Set(value); 368 prop->Set(value); 410 prop->Set(value); 452 prop->Set(value); 494 prop->Set(value); 536 prop->Set(value); [all …]
|
H A D | rs_property_test.cpp | 54 ASSERT_TRUE(prop != nullptr); 55 ASSERT_TRUE(prop->GetId() != 0); 66 ASSERT_TRUE(prop != nullptr); 69 prop->Set(floatData[1]); 81 ASSERT_TRUE(prop != nullptr); 84 prop->Set(floatData[2]); 96 ASSERT_TRUE(prop != nullptr); 97 ASSERT_EQ(prop->Get(), UINT32_MAX); 99 prop->Set(floatData[2]); 111 ASSERT_TRUE(prop != nullptr); [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/unittest/animation/ |
H A D | rs_path_animation_test.cpp | 52 auto prop = nullptr; in HWTEST_F() local 70 auto prop = nullptr; in HWTEST_F() local 89 auto prop = nullptr; in HWTEST_F() local 105 auto prop = nullptr; in HWTEST_F() local 112 ASSERT_EQ(prop, nullptr); in HWTEST_F() 123 auto prop = nullptr; in HWTEST_F() local 132 ASSERT_EQ(prop, nullptr); in HWTEST_F() 143 auto prop = nullptr; in HWTEST_F() local 148 ASSERT_EQ(prop, nullptr); in HWTEST_F() 164 ASSERT_NE(prop, nullptr); in HWTEST_F() [all …]
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_mtp/src/payload_data/ |
H A D | get_object_prop_desc_data.cpp | 70 if (prop == nullptr) { in Maker() 74 prop->Write(outBuffer); in Maker() 91 if (prop == nullptr) { in GetProp() 92 prop = GetPropStr(); in GetProp() 94 if (prop == nullptr) { in GetProp() 97 return prop; in GetProp() 138 return prop; in GetPropStr() 152 return prop; in GetPropForm() 157 return prop; in GetPropForm() 162 return prop; in GetPropForm() [all …]
|
H A D | get_object_prop_list_data.cpp | 72 Property &prop = (*props_)[i]; in Maker() local 73 WriteProperty(outBuffer, prop); in Maker() 102 MtpPacketTool::PutUInt16(outBuffer, prop.code_); in WriteProperty() 105 if (prop.currentValue == nullptr) { in WriteProperty() 110 if (prop.type_ == MTP_TYPE_STRING_CODE) { in WriteProperty() 111 WritePropertyStrValue(outBuffer, prop); in WriteProperty() 115 WritePropertyIntValue(outBuffer, prop); in WriteProperty() 120 auto &value = prop.currentValue; in WritePropertyStrValue() 121 if (prop.type_ == MTP_TYPE_STRING_CODE) { in WritePropertyStrValue() 132 auto &value = prop.currentValue; in WritePropertyIntValue() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/modifier/ |
H A D | rs_render_modifier.cpp | 81 std::shared_ptr<RSRenderAnimatableProperty<Color>> prop; in __anon35d38fe50302() local 82 if (!RSMarshallingHelper::Unmarshalling(parcel, prop)) { in __anon35d38fe50302() 91 if (!RSMarshallingHelper::Unmarshalling(parcel, prop)) { in __anon35d38fe50402() 100 if (!RSMarshallingHelper::Unmarshalling(parcel, prop)) { in __anon35d38fe50502() 108 std::shared_ptr<RSRenderProperty<Drawing::Matrix>> prop; in __anon35d38fe50602() local 113 auto modifier = new RSGeometryTransRenderModifier(prop); in __anon35d38fe50602() 119 std::shared_ptr<RSRenderAnimatableProperty<float>> prop; in __anon35d38fe50702() local 120 if (!RSMarshallingHelper::Unmarshalling(parcel, prop)) { in __anon35d38fe50702() 128 std::shared_ptr<RSRenderAnimatableProperty<float>> prop; in __anon35d38fe50802() local 129 if (!RSMarshallingHelper::Unmarshalling(parcel, prop)) { in __anon35d38fe50802() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/test/mock/core/render/ |
H A D | mock_render_context.cpp | 27 if (auto prop = AceType::DynamicCast<AnimatablePropertyFloat>(propBase); prop) { in InitProp() local 28 MockAnimationProxy<float>::GetInstance().RegisterProperty(prop, prop->Get()); in InitProp() 30 prop->SetUpCallbacks( in InitProp() 31 …[weak = WeakPtr(prop)]() { return MockAnimationProxy<float>::GetInstance().GetEndValue(weak.Upgrad… in InitProp() 32 [weak = WeakPtr(prop)]( in InitProp() 34 [weak = WeakPtr(prop)]() { in InitProp() 39 if (auto prop = AceType::DynamicCast<AnimatablePropertyOffsetF>(propBase); prop) { in InitProp() local 40 MockAnimationProxy<OffsetF>::GetInstance().RegisterProperty(prop, prop->Get()); in InitProp() 41 prop->SetUpCallbacks( in InitProp() 43 [weak = WeakPtr(prop)]( in InitProp() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/property/ |
H A D | property.h | 120 std::unique_ptr<type> prop##group##_; 269 std::optional<type> prop##name##_; 330 std::optional<type> prop##name; \ 334 return prop##name; \ 338 return prop##name.has_value(); \ 342 return prop##name.value(); \ 346 if (prop##name.has_value()) { \ 347 if (NearEqual(prop##name.value(), value)) { \ 351 prop##name = value; \ 356 if (!prop##name.has_value()) { \ [all …]
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text_picker/ |
H A D | text_picker_pattern_test_ng.cpp | 1061 prop.height = 4.0f; 1099 prop.height = 4.0f; 1137 prop.height = 4.0f; 1175 prop.height = 4.0f; 1213 prop.height = 4.0f; 1251 prop.height = 4.0f; 1289 prop.height = 4.0f; 1327 prop.height = 4.0f; 1365 prop.height = 4.0f; 1403 prop.height = 4.0f; [all …]
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/wrapper/ |
H A D | js.cpp | 121 JSValue key = JSString::Create(prop); in Get() 150 JSValue key = JSString::Create(prop); in Set() 158 JSObject::Set(target, prop, attr); in SetString() 165 JSObject::Set(target, prop, attr); in SetNumber() 172 JSObject::Set(target, prop, attr); in SetBoolean() 179 JSObject::Set(target, prop, func); in Set() 185 JSValue key = JSString::Create(prop); in Del() 208 JSValue func = Get(target, prop); in Call() 234 JSValue JSGlobal::Get(const char * const prop) in Get() argument 245 JSObject::Set(global, prop, value); in Set() [all …]
|
H A 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); 59 static bool Del(JSValue target, const char * const prop); 61 static JSValue Call(JSValue target, const char * const prop); 72 static JSValue Get(const char * const prop); 73 static void Set(const char * const prop, JSValue value); 75 static JSValue Call(const char * const prop, JSValue args[], JSSize size); [all …]
|
/ohos5.0/commonlibrary/ets_utils/js_util_module/container/queue/ |
H A D | js_queue.ts | 38 let index: number = Number.parseInt(prop); 43 get(obj: Queue<T>, prop: string): T { 44 if (typeof prop === 'symbol') { 45 return obj[prop]; 47 this.isOutBounds(obj, prop); 48 return obj[prop]; 51 if (prop === 'front' || prop === 'capacity' || prop === 'rear') { 52 obj[prop] = value; 55 this.isOutBounds(obj, prop); 56 let index: number = Number(prop); [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/property/ |
H A D | rs_properties.cpp | 80 [](RSProperties* prop) { prop->SetPivot(Vector2f(0.5f, 0.5f)); }, // PIVOT in __anonf204f7ba0402() 81 [](RSProperties* prop) { prop->SetPivotZ(0.f); }, // PIVOT_Z in __anonf204f7ba0502() 83 [](RSProperties* prop) { prop->SetRotation(0.f); }, // ROTATION in __anonf204f7ba0702() 87 [](RSProperties* prop) { prop->SetScale(Vector2f(1.f, 1.f)); }, // SCALE in __anonf204f7ba0b02() 88 [](RSProperties* prop) { prop->SetSkew(Vector2f(0.f, 0.f)); }, // SKEW in __anonf204f7ba0c02() 89 [](RSProperties* prop) { prop->SetPersp(Vector2f(0.f, 0.f)); }, // PERSP in __anonf204f7ba0d02() 94 [](RSProperties* prop) { prop->SetAlpha(1.f); }, // ALPHA in __anonf204f7ba1202() 111 [](RSProperties* prop) { prop->SetFilter({}); }, // FILTER in __anonf204f7ba2202() 143 [](RSProperties* prop) { prop->SetMask({}); }, // MASK in __anonf204f7ba4002() 147 [](RSProperties* prop) { prop->SetPixelStretch({}); in __anonf204f7ba4402() [all …]
|
/ohos5.0/commonlibrary/ets_utils/js_util_module/container/stack/ |
H A D | js_stack.ts | 38 let index: number = Number.parseInt(prop); 43 get(obj: Stack<T>, prop: string): T { 44 if (typeof prop === 'symbol') { 45 return obj[prop]; 47 this.isOutBounds(obj, prop); 48 return obj[prop]; 51 if (prop === 'elementNum' || prop === 'capacity') { 52 obj[prop] = value; 55 this.isOutBounds(obj, prop); 56 let index: number = Number.parseInt(prop); [all …]
|
/ohos5.0/commonlibrary/ets_utils/js_util_module/container/deque/ |
H A D | js_deque.ts | 43 get(obj: Deque<T>, prop: string): T { 44 if (typeof prop === 'symbol') { 45 return obj[prop]; 47 this.isOutBounds(prop); 48 return obj[prop]; 51 if (prop === 'front' || prop === 'capacity' || prop === 'rear') { 52 obj[prop] = value; 55 let index: number = Number(prop); 63 has(obj: Deque<T>, prop: T): boolean { 64 return obj.has(prop); [all …]
|
/ohos5.0/docs/zh-cn/application-dev/quick-start/ |
H A D | arkts-new-appstoragev2.md | 100 // 在AppStorageV2中创建一个key为Sample的键值对(如果存在,则返回AppStorageV2中的数据),并且和prop关联 101 @Local prop: Sample = AppStorageV2.connect(Sample, () => new Sample())!; 120 // 从AppStorageV2中删除后,prop将不会再与key为Sample的值关联 124 Text(`Page1 add 1 to prop.p1: ${this.prop.p1}`) 127 this.prop.p1++; 130 Text(`Page1 add 1 to prop.p2: ${this.prop.p2}`) 134 this.prop.p2++; 171 Text(`Page2 add 1 to prop.p1: ${this.prop.p1}`) 174 this.prop.p1++; 177 Text(`Page2 add 1 to prop.p2: ${this.prop.p2}`) [all …]
|
H A D | arkts-new-persistencev2.md | 154 // 对于需要换connect对象的prop属性,需要加@Local修饰(不建议对属性换connect的对象) 169 // 不建议对prop属性换connect的对象 185 Text(`Page1 add 1 to prop.p1: ${this.prop.f.p1}`) 188 this.prop.f.p1++; 191 Text(`Page1 add 1 to prop.p2: ${this.prop.f.p2}`) 195 this.prop.f.p2++; 230 // 不建议对prop属性换connect的对象 234 Text(`Page2 add 1 to prop.p1: ${this.prop.f.p1}`) 237 this.prop.f.p1++; 240 Text(`Page2 add 1 to prop.p2: ${this.prop.f.p2}`) [all …]
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/grid_col/ |
H A D | grid_col_test_ng.cpp | 113 const V2::GridContainerSize prop = V2::GridContainerSize(7); variable 114 propValue = layoutProperty->GetPropValue(prop, V2::GridSizeType::XS); 115 EXPECT_EQ(propValue, prop.xs); 116 propValue = layoutProperty->GetPropValue(prop, V2::GridSizeType::SM); 117 EXPECT_EQ(propValue, prop.sm); 118 propValue = layoutProperty->GetPropValue(prop, V2::GridSizeType::MD); 119 EXPECT_EQ(propValue, prop.md); 121 EXPECT_EQ(propValue, prop.lg); 123 EXPECT_EQ(propValue, prop.xl); 125 EXPECT_EQ(propValue, prop.xxl); [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/modifier/ |
H A D | rs_render_modifier_test.cpp | 106 ASSERT_TRUE(prop != nullptr); 168 RSPRM->Update(prop, isDelta); 183 RSEFC->Update(prop, isDelta); 198 RSEFCS->Update(prop, isDelta); 222 modifier->Update(prop, true); 442 modifier->Update(prop, isDelta); 516 RSEFC->Update(prop, isDelta); 529 ASSERT_TRUE(prop != nullptr); 554 ASSERT_TRUE(prop != nullptr); 579 ASSERT_TRUE(prop != nullptr); [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/fuzztest/rsmodifier_fuzzer/ |
H A D | rsmodifier_fuzzer.cpp | 73 auto prop = std::make_shared<RSAnimatableProperty<float>>(value); in DoGetPropertyId() local 74 auto modifier = std::make_shared<RSAlphaModifier>(prop); in DoGetPropertyId() 93 auto modifier = std::make_shared<RSAlphaModifier>(prop); in DoSet() 95 prop->Set(value1); in DoSet() 114 auto modifier = std::make_shared<RSAlphaModifier>(prop); in DoAttachProperty() 115 modifier->AttachProperty(prop); in DoAttachProperty() 136 auto modifier = std::make_shared<RSAlphaModifier>(prop); in DoSetDirty() 159 auto modifier = std::make_shared<RSAlphaModifier>(prop); in DoResetRSNodeExtendModifierDirty() 179 auto modifier = std::make_shared<RSAlphaModifier>(prop); in DoGetProperty() 200 auto modifier = std::make_shared<RSAlphaModifier>(prop); in DoGetModifierType() [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/ |
H A D | bind_templates.inl | 289 if (!prop || !propertyInstance) { 337 if (prop) { 343 prop)); 353 if (!prop || !propertyInstance) { 390 prop)); 405 prop)); 425 prop = typed; 450 prop = typed; 535 prop)); 588 prop = typed; [all …]
|
/ohos5.0/drivers/peripheral/display/hal/default_standard/src/display_device/drm/ |
H A D | drm_plane.cpp | 35 DrmProperty prop; in Init() local 36 ret = drmDevice.GetPlaneProperty(*this, PROP_FBID, prop); in Init() 37 mPropFbId = prop.propId; in Init() 39 ret = drmDevice.GetPlaneProperty(*this, PROP_IN_FENCE_FD, prop); in Init() 41 mPropFenceInId = prop.propId; in Init() 42 ret = drmDevice.GetPlaneProperty(*this, PROP_CRTC_ID, prop); in Init() 44 mPropCrtcId = prop.propId; in Init() 45 ret = drmDevice.GetPlaneProperty(*this, PROP_TYPE, prop); in Init() 47 switch (prop.value) { in Init() 51 mType = static_cast<uint32_t>(prop.value); in Init() [all …]
|