Home
last modified time | relevance | path

Searched refs:unit (Results 1 – 25 of 32) sorted by relevance

12

/foundation/ace/ace_engine/frameworks/core/pipeline/base/
Dmeasurable.h43 virtual void SetWidth(double width, DimensionUnit unit = DimensionUnit::PX)
45 width_ = AnimatableDimension(width, unit);
48 virtual void SetWidth(std::string width, DimensionUnit unit = DimensionUnit::CALC)
50 width_ = AnimatableDimension(width, unit);
73 virtual void SetHeight(double height, DimensionUnit unit = DimensionUnit::PX)
75 height_ = AnimatableDimension(height, unit);
78 virtual void SetHeight(std::string height, DimensionUnit unit = DimensionUnit::CALC)
80 height_ = AnimatableDimension(height, unit);
/foundation/ace/ace_engine/adapter/preview/osal/
Dresource_adapter_impl_standard.cpp35 DimensionUnit ParseDimensionUnit(const std::string& unit) in ParseDimensionUnit() argument
37 if (unit == "px") { in ParseDimensionUnit()
39 } else if (unit == "fp") { in ParseDimensionUnit()
41 } else if (unit == "lpx") { in ParseDimensionUnit()
43 } else if (unit == "%") { in ParseDimensionUnit()
95 std::string unit = ""; in GetDimension() local
97 auto state = resourceManager_->GetFloatById(resId, dimensionFloat, unit); in GetDimension()
102 return Dimension(static_cast<double>(dimensionFloat), ParseDimensionUnit(unit)); in GetDimension()
Dresource_adapter_impl.cpp52 DimensionUnit ParseDimensionUnit(const std::string& unit) in ParseDimensionUnit() argument
54 if (unit == "px") { in ParseDimensionUnit()
56 } else if (unit == "fp") { in ParseDimensionUnit()
58 } else if (unit == "lpx") { in ParseDimensionUnit()
60 } else if (unit == "%") { in ParseDimensionUnit()
241 std::string unit = ""; in ParseContent() local
242 auto doubleValue = static_cast<double>(attrValue->GetFloat(unit)); in ParseContent()
243 if (unit.empty()) { in ParseContent()
247 .value = Dimension(doubleValue, ParseDimensionUnit(unit)) }; in ParseContent()
321 std::string unit = ""; in GetDimension() local
[all …]
/foundation/ace/ace_engine/frameworks/base/geometry/
Dcalc_dimension.h27 explicit CalcDimension(const std::string& value, DimensionUnit unit = DimensionUnit::CALC)
33 CalcDimension(double value, DimensionUnit unit = DimensionUnit::PX) : Dimension(value, unit) {}; in Dimension() argument
Danimatable_dimension.h38 …double value, DimensionUnit unit = DimensionUnit::PX, const AnimationOption& option = AnimationOpt…
39 : CalcDimension(value, unit), animationOption_(option) in CalcDimension() argument
43 const std::string& value, DimensionUnit unit = DimensionUnit::CALC,
45 : CalcDimension(value, unit), animationOption_(option) in CalcDimension() argument
Ddimension.h72 …pr explicit Dimension(double value, DimensionUnit unit = DimensionUnit::PX) : value_(value), unit_… in value_()
89 void SetUnit(DimensionUnit unit) in SetUnit() argument
91 unit_ = unit; in SetUnit()
/foundation/ace/ace_engine/frameworks/core/components/common/properties/
Dedge.h38 … Edge(double left, double top, double right, double bottom, DimensionUnit unit = DimensionUnit::PX)
39 : left_(Dimension(left, unit)), top_(Dimension(top, unit)), right_(Dimension(right, unit)), in left_() argument
40 bottom_(Dimension(bottom, unit)) {}; in left_()
42 …DimensionUnit unit = DimensionUnit::CALC) : left_(CalcDimension(left, unit)), top_(CalcDimension(t… in left_() argument
43 right_(CalcDimension(right, unit)), bottom_(CalcDimension(bottom, unit)) {}; in left_()
Ddecoration.h111 void SetDimension(double value, DimensionUnit unit = DimensionUnit::PERCENT)
116 if (unit == DimensionUnit::PERCENT && value > BOX_END_SIZE) {
119 dimension_ = Dimension(value, unit);
/foundation/ace/ace_engine_lite/frameworks/common/memory/cache/test/unittest/common/
Dcache_manager_tdd_test.cpp58 const size_t unit = 1024; variable
60 const size_t targetLength = localicationMin * unit;
100 const size_t unit = 1024; variable
103 …startAddr + (pageFileBufLength * unit) + (magicNumberCount * MAGIC_NUMBER_LENGTH) + MAGIC_NUMBER_L…
104 const size_t targetLength = localicationBufLength * unit;
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/coap_discover/
Dcoap_discover.c482 CoapMsgUnit *unit = (CoapMsgUnit *)data; in GetUnitInfo() local
483 if (unit->type != unitType) { in GetUnitInfo()
484 LOGE(TAG, "unit type %u does match target type %u", unit->type, unitType); in GetUnitInfo()
487 uint16_t valueLen = ntohs(unit->len); in GetUnitInfo()
492 if (memcpy_s(outBuf, outLen, unit->value, valueLen) != EOK) { in GetUnitInfo()
796 CoapMsgUnit *unit = NULL; in CreateServiceMsgFrame() local
814 unit = (CoapMsgUnit *)(frame + len); in CreateServiceMsgFrame()
815 unit->type = COAP_MODULE_NAME_TYPE; in CreateServiceMsgFrame()
816 unit->len = htons(moduleNameUnitLen - sizeof(CoapMsgUnit)); in CreateServiceMsgFrame()
817 …if (memcpy_s(unit->value, bufferLen - len - sizeof(CoapMsgUnit), moduleName, strlen(moduleName) + … in CreateServiceMsgFrame()
[all …]
/foundation/ace/ace_engine/frameworks/bridge/declarative_frontend/state_mgmt/
DREADME.md22 To compile the entire project and unit tests, and to run all tests
35 `./test/utest/*` - unit tests
/foundation/resourceschedule/background_task_mgr/services/test/unittest/mock/
Dmock_resource_manager.cpp147 RState ResourceManagerImpl::GetFloatById(uint32_t id, float &outValue, std::string &unit) in GetFloatById() argument
157 RState ResourceManagerImpl::GetFloatByName(const char *name, float &outValue, std::string &unit) in GetFloatByName() argument
/foundation/ace/ace_engine_lite/frameworks/src/core/context/
Djs_profiler.cpp397 const uint32_t unit = 1000; in GetCurrentClockTick()
401 …gettimeofday(&timeVal, &timeZone) == 0) ? ((timeVal.tv_usec / unit) + (timeVal.tv_sec * unit)) : 0; in GetCurrentClockTick()
/foundation/ace/ace_engine/frameworks/bridge/common/dom/
Ddom_button.h71 void ResetBoxHeight(double height, DimensionUnit unit = DimensionUnit::PX);
Ddom_button.cpp544 void DOMButton::ResetBoxHeight(double height, DimensionUnit unit) in ResetBoxHeight() argument
549 boxComponent_->SetHeight(height, unit); in ResetBoxHeight()
/foundation/multimodalinput/input/patch/prebuild_eudev/rules.d/
D60-cdrom_id.rules23 # unit as inactive while there is no medium; this automatically cleans up of
/foundation/ace/ace_engine/frameworks/bridge/common/media_query/
Dmedia_queryer.cpp82 double TransferValue(double value, const std::string& unit) in TransferValue() argument
85 if (unit == "dpi") { in TransferValue()
87 } else if (unit == "dpcm") { in TransferValue()
/foundation/aafwk/standard/services/abilitymgr/src/
Dability_stack_manager.cpp546 TerminatingAbility unit; in TerminateAbility() local
547 MakeTerminatingAbility(unit, abilityRecord, resultCode, resultWant); in TerminateAbility()
548 list.emplace_back(unit); in TerminateAbility()
552 void AbilityStackManager::MakeTerminatingAbility(TerminatingAbility &unit, in MakeTerminatingAbility() argument
555 unit.abilityRecord = abilityRecord; in MakeTerminatingAbility()
556 unit.resultCode = resultCode; in MakeTerminatingAbility()
557 unit.resultWant = resultWant; in MakeTerminatingAbility()
607 …[&lastActiveAbility](const TerminatingAbility &unit) { return unit.abilityRecord == lastActiveAbil… in SortAndGetLastActiveAbility() argument
621 for (auto &unit : terminateLists) { in TerminateAbilityLocked() local
622 auto &ability = unit.abilityRecord; in TerminateAbilityLocked()
[all …]
/foundation/graphic/wms/
DREADME.md50 - **test/sample\_window** provides the unit testing for each WMS API. Refer to it for the usage …
/foundation/graphic/utils/
DREADME.md46 - The **test** folder provides unit testing for each utils API. Refer to it for the usage of ut…
/foundation/distributeddatamgr/distributeddatamgr/
DREADME.md80 …ization transactions refer to data synchronization between devices in the unit of local transactio…
100 …Data is saved locally in the unit of a single KV entry. Only one entry is saved for each key. When…
/foundation/ace/ace_engine/frameworks/bridge/declarative_frontend/jsview/
Djs_view_common_def.inl41 LOGE("Failed to convert to JS value with dimension which it not using 'VP' unit");
/foundation/aafwk/aafwk_lite/
DREADME.md17 - **Ability** is the minimum unit for the system to schedule applications. It is a component tha…
/foundation/aafwk/standard/services/abilitymgr/include/
Dability_stack_manager.h735 …void MakeTerminatingAbility(TerminatingAbility &unit, const std::shared_ptr<AbilityRecord> &abilit…
/foundation/multimedia/audio_standard/
DREADME.md37 …t is generally agreed that a data amount in a unit of 2.5 to 60 milliseconds is one audio frame. T…

12