/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/examples/calculator/src/main/js/default/pages/index/ |
H A D | index.css | 15 .calc-container { 19 .calc-icon { 23 .calc-titlebar { 27 .calc-back-btn { 31 .calc-title { 36 .calc-expr, .calc-rsl { 40 .calc-expr { 45 .calc-rsl { 50 .calc-text-btn, .calc-op-btn, .calc-equals-btn { 56 .calc-text-btn { [all …]
|
H A D | index.js | 15 import {calc, isOperator} from '../../common/calculator.js'; 28 this.result = calc(value).toString();
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/property/ |
H A D | calc_length_test_ng.cpp | 49 CalcLength calc; variable 56 calc.dimension_ = Dimension(100.0, DimensionUnit::PX); 57 auto calcBool = calc.NormalizeToPx(VP_SCALE, FP_SCALE, LPX_SCALE, PARENT_LENGTH, result); 59 calc.SetCalcValue("calcLengthTest"); 60 calcBool = calc.NormalizeToPx(VP_SCALE, FP_SCALE, LPX_SCALE, PARENT_LENGTH, result); 67 calc.dimension_ = Dimension(100.0, DimensionUnit::VP); 68 calc.NormalizeToPx(VP_SCALE, FP_SCALE, LPX_SCALE, PARENT_LENGTH, result);
|
/ohos5.0/docs/zh-cn/application-dev/arkts-utils/ |
H A D | concurrent-loading-modules-guide.md | 20 let calc = new Calculator() 21 calc.totalCount = 0 22 calc.history = collections.Array.create(calc.totalCount, collections.Array.create(2, "")); 23 return calc 109 calc?: Calculator 114 this.calc = ret as Calculator 133 let result = this.calc?.add(1, 2) 145 this.calc?.showHistory()
|
/ohos5.0/docs/en/application-dev/arkts-utils/ |
H A D | concurrent-loading-modules-guide.md | 20 let calc = new Calculator() 21 calc.totalCount = 0 22 calc.history = collections.Array.create(calc.totalCount, collections.Array.create(2, "")); 23 return calc 109 calc?: Calculator 114 this.calc = ret as Calculator 133 let result = this.calc?.add(1, 2) 145 this.calc?.showHistory()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-universal-attributes-size.md | 15 从API version 10开始,该接口支持calc计算特性。 41 从API version 10开始,该接口支持calc计算特性。 65 从API version 10开始,该接口支持calc计算特性。 85 从API version 10开始,该接口支持calc计算特性。 105 从API version 10开始,该接口支持calc计算特性。 161 从API version 10开始,该接口支持calc计算特性。 263 // calc计算特性 264 Text('calc:').fontSize(12).fontColor(0xCCCCCC).width('90%') 265 Text('calc test') 270 .margin('calc(25vp*2)') [all …]
|
/ohos5.0/foundation/arkui/napi/sample/native_module_calc/ |
H A D | BUILD.gn | 17 base_output_path = get_label_info(":calc", "target_out_dir") 18 calc_obj_path = base_output_path + "/calc.o" 20 input = "calc.js" 24 ohos_shared_library("calc") {
|
H A D | calc.js | 16 const calc = requireInternal('calc'); constant 26 add: calc.add,
|
/ohos5.0/foundation/resourceschedule/ffrt/src/sched/ |
H A D | task_manager.cpp | 36 …auto calc = [](uint64_t time, uint64_t count, std::atomic_uint64_t& maxTime, std::atomic<double>& … in CalcTaskTime() local 50 … calc(task->state.WaitingTime(), GetCount(TaskState::READY), maxWaitingTime, avgWaitingTime); in CalcTaskTime() 54 calc(task->state.RunningTime(), count, maxRunningTime, avgRunningTime); in CalcTaskTime()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/panel/ |
H A D | sliding_panel_layout_algorithm.cpp | 80 auto calc = layoutProperty->GetCustomHeight().value_or(Dimension(0.0)); in Measure() local 81 … if (!calc.CalcValue().empty() && calc.CalcValue().find("wrapContent") != std::string::npos) { in Measure() 127 auto calc = layoutProperty->GetCustomHeight().value_or(Dimension(0.0)); in Layout() local 128 … if (!calc.CalcValue().empty() && calc.CalcValue().find("wrapContent") != std::string::npos) { in Layout()
|
H A D | sliding_panel_pattern.cpp | 64 auto calc = layoutProperty->GetCustomHeight().value_or(Dimension(0.0)); in OnModifyDone() local 65 … if (!calc.CalcValue().empty() && calc.CalcValue().find("wrapContent") != std::string::npos) { in OnModifyDone()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/ |
H A D | arkts_native_swiper_bridge.cpp | 599 CalcDimension calc; in GetStringByValueRef() local 601 ? (calc.Unit() == DimensionUnit::PERCENT in GetStringByValueRef() 603 : (std::to_string(calc.Value()) + GetDimensionUnitString(calc.Unit()))) in GetStringByValueRef() 630 CalcDimension calc; in GetSwiperDotIndicator() local 632 ? std::to_string(calc.Value()) + GetDimensionUnitString(calc.Unit()) in GetSwiperDotIndicator() 635 … ? std::to_string(calc.Value()) + GetDimensionUnitString(calc.Unit()) in GetSwiperDotIndicator() 639 ? std::to_string(calc.Value()) + GetDimensionUnitString(calc.Unit()) in GetSwiperDotIndicator() 643 ? std::to_string(calc.Value()) + GetDimensionUnitString(calc.Unit()) in GetSwiperDotIndicator() 679 CalcDimension calc; in GetSwiperDigitIndicator() local 685 … ? std::to_string(calc.Value()) + GetDimensionUnitString(calc.Unit()) in GetSwiperDigitIndicator() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_view_common_def.inl | 93 CalcDimension calc; local 94 bool ret = JSViewAbstract::ParseJsDimensionVpNG(jsValue, calc); 95 result = calc; 129 CalcDimension calc; local 130 bool ret = JSViewAbstract::ParseJsDimensionVp(jsValue, calc); 131 result = calc;
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-universal-attributes-size.md | 15 Since API version 10, this API supports the calc calculation feature. 41 Since API version 10, this API supports the calc calculation feature. 65 Since API version 10, this API supports the calc calculation feature. 85 Since API version 10, this API supports the calc calculation feature. 105 Since API version 10, this API supports the calc calculation feature. 161 Since API version 10, this API supports the calc calculation feature. 260 // calc calculation feature 261 Text('calc:').fontSize(12).fontColor(0xCCCCCC).width('90%') 262 Text('calc test') 267 .margin('calc(25vp*2)') [all …]
|
/ohos5.0/drivers/peripheral/usb/sample/device/liteos/ |
H A D | acm_speed_read.c | 70 const float calc = 10000; in GetTempSpeed() local 85 printf("speed : %f MB/s\n", (float)speed / calc); in GetTempSpeed()
|
H A D | acm_speed_write.c | 71 const float calc = 10000; in GetTempSpeed() local 86 printf("speed : %f MB/s\n", (float)speed / calc); in GetTempSpeed()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/ |
H A D | distributeddb_file_package_test.cpp | 146 ValueHashCalc calc; in SetUpTestCase() local 147 int errCode = calc.Initialize(); in SetUpTestCase() 149 errCode = calc.Update(DIVICE_ID); in SetUpTestCase() 152 errCode = calc.GetResult(deviceIDVec); in SetUpTestCase()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/ |
H A D | package_file.cpp | 75 ValueHashCalc calc; in GetChecksum() local 76 int errCode = calc.Initialize(); in GetChecksum() 92 errCode = calc.Update(buffer); in GetChecksum() 100 errCode = calc.GetResult(resultBuf); in GetChecksum()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | select_modifier.cpp | 446 …ze(ArkUINodeHandle node, const ArkUI_Float32* number, const ArkUI_Int32* unit, ArkUI_CharPtr* calc) in SetSelectSize() argument 454 …if (*(unit + widthIndex) == static_cast<int8_t>(DimensionUnit::CALC) && *(calc + widthIndex) != nu… in SetSelectSize() 455 ViewAbstract::SetWidth(frameNode, CalcLength(std::string(*(calc + widthIndex)))); in SetSelectSize() 460 …if (*(unit + heightIndex) == static_cast<int8_t>(DimensionUnit::CALC) && *(calc + heightIndex) != … in SetSelectSize() 461 ViewAbstract::SetHeight(frameNode, CalcLength(std::string(*(calc + heightIndex)))); in SetSelectSize()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/utils/ |
H A D | string_expression.cpp | 195 std::regex calc("calc"); in ConvertDal2Rpn() local 208 formula = regex_replace(formula, calc, ""); in ConvertDal2Rpn()
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/examples/calculator/src/main/js/default/common/ |
H A D | calculator.js | 141 export function calc(content) { function
|
/ohos5.0/docs/zh-cn/application-dev/web/ |
H A D | web-safe-area-insets.md | 74 同时,上述`env()`使用还能基于部分数学计算函数`calc()`,`min()`,`max()`组合计算,如:
|
/ohos5.0/foundation/communication/ipc/ |
H A D | README_zh.md | 538 /// example.calc.ipc.ICalcService type 678 2)服务的描述符为“example.calc.ipc.ICalcService”。 690 ICalc["example.calc.ipc.ICalcService"] {
|
/ohos5.0/drivers/peripheral/usb/gadget/function/acm/ |
H A D | cdcacm.c | 275 uint32_t calc = 10000; in UsbSerialGetTempReadSpeedInt() local 276 if (!HdfSbufWriteUint32(reply, (uint32_t)(g_readSpeed * calc))) { in UsbSerialGetTempReadSpeedInt() 625 uint32_t calc = 10000; in UsbSerialGetTempSpeedInt() local 626 if (!HdfSbufWriteUint32(reply, (uint32_t)(g_speed * calc))) { in UsbSerialGetTempSpeedInt()
|
/ohos5.0/docs/zh-cn/application-dev/faqs/ |
H A D | faqs-arkts-utils.md | 630 let calc: ESObject = new ns.Calc(); // 实例化类Calc 631 calc.instanceAdd(8, 9); // 调用实例成员函数instanceAdd()
|