Home
last modified time | relevance | path

Searched refs:floatValue (Results 1 – 25 of 44) sorted by relevance

12

/ohos5.0/base/update/updater/test/unittest/script/
H A Dscript_interpreter_unittest.cpp64 float floatValue = 10.0; in TestScriptInterpreterScriptValue() local
65 std::unique_ptr<FloatValue> fv = std::make_unique<FloatValue>(floatValue); in TestScriptInterpreterScriptValue()
105 float floatValue = 100.0; in TestScriptInstructionContext() local
106 int ret2 = funcContext->PushParam(floatValue); in TestScriptInstructionContext()
127 float floatValue = 100.0; in TestIntegerValueComputer() local
128 UScriptValuePtr rightValue2 = std::make_shared<FloatValue>(floatValue); in TestIntegerValueComputer()
142 float floatValue = 100; in TestFloatValueComputer() local
144 UScriptValuePtr value = std::make_shared<FloatValue>(floatValue); in TestFloatValueComputer()
150 UScriptValuePtr rightValue2 = std::make_shared<FloatValue>(floatValue); in TestFloatValueComputer()
170 float floatValue = 100.0; in TestStringValueComputer() local
[all …]
/ohos5.0/foundation/multimedia/media_foundation/tests/unittest/format/
H A Davformat_unit_test.cpp79 float floatValue = 1.0; variable
148 float floatValue = 1.0; variable
474 float floatValue = 1.0; in CheckFormatMap() local
532 float floatValue = 1.0; variable
536 meta->SetData(floatKey, floatValue);
563 float floatValue = 1.0; variable
567 meta->SetData(floatKey, floatValue);
620 float floatValue = 1.0; variable
624 meta->SetData(floatKey, floatValue);
650 float floatValue = 1.0; variable
[all …]
/ohos5.0/docs/zh-cn/application-dev/reference/apis-image-kit/
H A Dunion_image_effect___data_value.md23 | float [floatValue](#floatvalue) | 单精度浮点值,对应[EFFECT_DATA_TYPE_FLOAT](_image_effect.md)。 |
61 ### floatValue subsection
64 float ImageEffect_DataValue::floatValue
/ohos5.0/foundation/ability/ability_base/test/fuzztest/wantfifth_fuzzer/
H A Dwantfifth_fuzzer.cpp55 float floatValue = 0.0; in DoSomethingInterestingWithMyAPI() local
56 want->SetParam(key, floatValue); in DoSomethingInterestingWithMyAPI()
57 want->GetFloatParam(key, floatValue); in DoSomethingInterestingWithMyAPI()
/ohos5.0/foundation/multimedia/image_effect/test/unittest/
H A Dimage_effect_capi_unittest.cpp116 value.dataValue.floatValue = 100.f;
1069 value.dataValue.floatValue = 100.f;
1104 value.dataValue.floatValue = 100.f;
1138 value.dataValue.floatValue = 100.f;
1171 value.dataValue.floatValue = 100.f;
1488 value.dataValue.floatValue = 200.f;
1544 value.dataValue.floatValue = 100.f;
1589 value.dataValue.floatValue = 100.f;
1634 value.dataValue.floatValue = 100.f;
1679 value.dataValue.floatValue = 100.f;
[all …]
H A Dnative_image_effect_unittest.cpp276 value.dataValue.floatValue = 100.f;
354 value.dataValue.floatValue = 100.f;
386 value.dataValue.floatValue = 100.f;
418 value.dataValue.floatValue = 100.f;
505 value.dataValue.floatValue = 100.f;
540 value.dataValue.floatValue = 100.f;
575 value.dataValue.floatValue = 100.f;
1090 value.dataValue.floatValue = 50.f;
1217 value.dataValue.floatValue = 50.f;
1262 value.dataValue.floatValue = 0.f;
[all …]
H A DTestJsonHelper.cpp189 float floatValue = 50.0f; variable
190 ASSERT_TRUE(root->Put(FLOAT_TEST, floatValue));
288 float floatValue = 70.0f; variable
289 ASSERT_TRUE(values->Replace(FLOAT_TEST, floatValue));
301 ASSERT_EQ(values->GetFloat(FLOAT_TEST), floatValue);
H A DTestUtils.cpp58 value.dataValue.floatValue = 123.45f;
197 float floatValue = floatKeyJsonPtr->GetFloat(); variable
198 ASSERT_EQ(floatValue, 1.23f);
/ohos5.0/docs/en/application-dev/reference/apis-image-kit/
H A Dunion_image_effect___data_value.md23 | float [floatValue](#floatvalue) | Single-precision floating-point value, corresponding to [EFFECT…
64 ### floatValue subsection
67 float ImageEffect_DataValue::floatValue
/ohos5.0/foundation/multimedia/audio_framework/test/fuzztest/audioserverbalance_fuzzer/
H A Daudio_server_balance_fuzzer.cpp35 float floatValue = static_cast<float>(*ptr); in Convert2Float() local
36 return floatValue / 128.0f - 1.0f; in Convert2Float()
/ohos5.0/foundation/ability/ability_base/test/fuzztest/wantparamssecond_fuzzer/
H A Dwantparamssecond_fuzzer.cpp50 float floatValue = 0.0; in DoSomethingInterestingWithMyAPI() local
51 sptr<IInterface> floatIt = Float::Box(floatValue); in DoSomethingInterestingWithMyAPI()
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/ecs/components/
H A Dinitial_transform_component_manager.cpp91 initialData.floatValue = 0.f; in InitialTransformComponent()
96 initialData.floatValue = value; in InitialTransformComponent()
188 initialData.floatValue = value; in operator =()
H A Dinitial_transform_component.h33 float floatValue; member
/ohos5.0/foundation/ability/dmsfwk/test/fuzztest/distributedwant_fuzzer/
H A Ddistributedwant_fuzzer.cpp137 float floatValue = 0.0; in DoSomethingInterestingWithMyApiDistributedWant005() local
138 want->SetParam(key, floatValue); in DoSomethingInterestingWithMyApiDistributedWant005()
139 want->GetFloatParam(key, floatValue); in DoSomethingInterestingWithMyApiDistributedWant005()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/modifier/
H A Drs_render_property_test.cpp293 … std::shared_ptr<RSRenderProperty<float>> floatValue = std::make_shared<RSRenderProperty<float>>(); variable
295 floatValue->Set(float1);
312 EXPECT_TRUE(property.IsNearEqual(floatValue, 1.f));
418 … std::shared_ptr<RSRenderProperty<float>> floatValue = std::make_shared<RSRenderProperty<float>>(); variable
438 EXPECT_TRUE(property1.IsNearEqual(floatValue, zeroThreshold));
/ohos5.0/docs/zh-cn/application-dev/media/image/
H A Dimage-effect-guidelines.md59 …value = { .dataType = ImageEffect_DataType::EFFECT_DATA_TYPE_FLOAT, .dataValue.floatValue = 50.f };
230 values["Brightness"] = value.dataValue.floatValue;
359 …y value = {.dataType = ImageEffect_DataType::EFFECT_DATA_TYPE_FLOAT, .dataValue.floatValue = 50.f};
/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/native/src/
H A Dpreferences_value_parcel.cpp129 float floatValue = std::get<float>(value.value_); in MarshallingBasicValueInner() local
131 errCode = memcpy_s(startAddr + sizeof(uint8_t), memLen, &floatValue, basicDataLen); in MarshallingBasicValueInner()
465 … const float floatValue = *(reinterpret_cast<const float *>(startAddr + sizeof(uint8_t))); in UnmarshallingBasicValue() local
466 return std::make_pair(E_OK, PreferencesValue(floatValue)); in UnmarshallingBasicValue()
/ohos5.0/foundation/ability/dmsfwk/test/fuzztest/distributedwantparams_fuzzer/
H A Ddistributedwantparams_fuzzer.cpp98 float floatValue = static_cast<float>(GetU32Data(data)); in DoSomethingInterestingWithMyApiDistributedWantParams002() local
99 sptr<IInterface> floatIt = Float::Box(floatValue); in DoSomethingInterestingWithMyApiDistributedWantParams002()
/ohos5.0/foundation/distributeddatamgr/kv_store/test/unittest/distributeddata/
H A DDeviceKvStoreDataCallbackJsTest.js506 var floatValue = 123456.654321;
507 await kvStore.put(KEY_TEST_FLOAT_ELEMENT, floatValue, async function (err,data) {
512 expect((err == undefined) && (floatValue == data)).assertTrue();
533 var floatValue = 123456.0;
534 await kvStore.put(KEY_TEST_FLOAT_ELEMENT, floatValue, async function (err,data) {
539 expect((err == undefined) && (floatValue == data)).assertTrue();
560 var floatValue = 123456.00;
561 await kvStore.put(KEY_TEST_FLOAT_ELEMENT, floatValue, async function (err,data) {
566 expect((err == undefined) && (floatValue == data)).assertTrue();
H A DSingleKvStoreDataCallbackJsTest.js471 var floatValue = 123456.654321;
472 await kvStore.put(KEY_TEST_FLOAT_ELEMENT, floatValue, async function (err,data) {
477 expect((err == undefined) && (floatValue == data)).assertTrue();
498 var floatValue = 123456.0;
499 await kvStore.put(KEY_TEST_FLOAT_ELEMENT, floatValue, async function (err,data) {
504 expect((err == undefined) && (floatValue == data)).assertTrue();
525 var floatValue = 123456.00;
526 await kvStore.put(KEY_TEST_FLOAT_ELEMENT, floatValue, async function (err,data) {
531 expect((err == undefined) && (floatValue == data)).assertTrue();
H A DDeviceKvStoreDataPromiseJsTest.js540 var floatValue = 123456.654321;
541 await kvStore.put(KEY_TEST_FLOAT_ELEMENT, floatValue).then(async (data) => {
546 expect(floatValue == data).assertTrue();
571 var floatValue = 123456.0;
572 await kvStore.put(KEY_TEST_FLOAT_ELEMENT, floatValue).then(async (data) => {
577 expect(floatValue == data).assertTrue();
602 var floatValue = 123456.00;
603 await kvStore.put(KEY_TEST_FLOAT_ELEMENT, floatValue).then(async (data) => {
608 expect(floatValue == data).assertTrue();
/ohos5.0/base/update/updater/services/script/script_interpreter/
H A Dscript_context.cpp479 FloatValue* floatValue = (FloatValue*)(rightValue.get()); in Computer() local
480 if (floatValue == nullptr) { in Computer()
485 return make_shared<StringValue>(str + to_string(floatValue->GetValue())); in Computer()
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/stylemgr/
H A Dcondition_arbitrator.cpp234 float floatValue = atof(targetValue); in CompareFloatDimension() local
239 return CompareAspectRatio(conditionId, floatValue); in CompareFloatDimension()
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/capi/
H A Dnative_common_utils.cpp82 any = value->dataValue.floatValue; in ParseOHAny()
111 value->dataValue.floatValue) != ErrorCode::SUCCESS, ErrorCode::SUCCESS); in SwitchToOHAny()
/ohos5.0/foundation/ai/neural_network_runtime/
H A Dneural-network-runtime-guidelines.md222 float* floatValue = reinterpret_cast<float*>(data);
224 floatValue[j] = static_cast<float>(j);
258 float* floatValue = reinterpret_cast<float*>(data);
260 … std::cout << "Output index: " << j << ", value is: " << floatValue[j] << "." << std::endl;

12