Home
last modified time | relevance | path

Searched refs:NUM_TWO (Results 1 – 22 of 22) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/test/unittest/common/event_bubble/
H A Devent_bubble_tdd_test.cpp996 constexpr uint8_t NUM_TWO = 2; variable
1017 content = JSArray::GetString(logs, NUM_TWO); in EventBubbleTest001()
1094 EXPECT_EQ(JSArray::Length(logs), NUM_TWO); in EventBubbleTest004()
1117 EXPECT_EQ(JSArray::Length(logs), NUM_TWO); in EventBubbleTest005()
1144 EXPECT_EQ(JSArray::Length(logs), NUM_TWO); in EventBubbleTest006()
1168 EXPECT_EQ(JSArray::Length(logs), NUM_TWO); in EventBubbleTest007()
1192 EXPECT_EQ(JSArray::Length(logs), NUM_TWO); in EventBubbleTest008()
1219 EXPECT_EQ(JSArray::Length(logs), NUM_TWO); in EventBubbleTest009()
1341 EXPECT_EQ(count, diffCount * NUM_TWO); in EventBubbleTest013()
1363 EXPECT_EQ(count, diffCount * NUM_TWO); in EventBubbleTest014()
[all …]
/ohos5.0/base/telephony/cellular_call/test/fuzztest/imsclient_fuzzer/
H A Dimsclient_fuzzer.cpp36 NUM_TWO, enumerator
69 int32_t mode = static_cast<int32_t>(size % NUM_TWO); in TestImsCallClientWithCallInfo()
70 int32_t slotId = static_cast<int32_t>(size % NUM_TWO); in TestImsCallClientWithCallInfo()
105 int32_t slotId = static_cast<int32_t>(size % NUM_TWO); in TestImsCallClientWithSlotAndType()
107 int32_t callType = static_cast<int32_t>(size % NUM_TWO); in TestImsCallClientWithSlotAndType()
153 int32_t mode = static_cast<int32_t>(size % NUM_TWO); in TestImsCallClientWithSettingFunction()
154 int32_t slotId = static_cast<int32_t>(size % NUM_TWO); in TestImsCallClientWithSettingFunction()
226 int32_t slotId = static_cast<int32_t>(size % NUM_TWO); in TestImsCallClientWithCancelCallUpgrade()
234 int32_t slotId = static_cast<int32_t>(size % NUM_TWO); in TestImsCallClientWithRequestCameraCapabilities()
247 int32_t mode = static_cast<int32_t>(size % NUM_TWO); in TestImsCallProxyWithCallInfo()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/toggle/
H A Dswitch_paint_method.h30 constexpr double NUM_TWO = 2.0; variable
74 …auto actualPointRadius = pointRadius == SWITCH_ERROR_RADIUS ? size.Height() / NUM_TWO - actualGap … in UpdateBoundsRect()
77 …(actualPointRadius * NUM_TWO > size.Height()) ? (actualPointRadius - size.Height() / NUM_TWO) : 0.… in UpdateBoundsRect()
79 …(actualPointRadius * NUM_TWO > size.Height()) ? (actualPointRadius - size.Height() / NUM_TWO) : 0.… in UpdateBoundsRect()
84 …(actualPointRadius * NUM_TWO > size.Height()) ? (actualPointRadius - size.Height() / NUM_TWO) : 0.… in UpdateBoundsRect()
H A Dswitch_paint_method.cpp96 …result = (pointRadius_ * NUM_TWO > height ? (width - (actualGap * NUM_TWO)) : width) + defaultWidt… in CalcActualWidth()
98 …ntRadius_ > actualTrackRadius_ ? (width + (pointRadius_ - actualTrackRadius_) * NUM_TWO) : width) + in CalcActualWidth()
114 (animateTrackRadius_->Get() < 0) ? (height / NUM_TWO) : animateTrackRadius_->Get(); in PaintSwitch()
133 …actualHeight_ = (pointRadius_ * NUM_TWO > height ? pointRadius_ * NUM_TWO : height) + defaultHeigh… in PaintSwitch()
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/fuzztest/common/src/
H A Dconvert_utils.cpp34 static const int NUM_TWO = 2; variable
44 if (picturePixels % NUM_TWO == 0) { in ConvertDataToFd()
45 opts.size.width = picturePixels / NUM_TWO; in ConvertDataToFd()
46 opts.size.height = NUM_TWO; in ConvertDataToFd()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/radio/
H A Dradio_layout_algorithm.cpp35 constexpr double NUM_TWO = 2.0; variable
140 child_offset.SetX((1.0 + align.GetHorizontal()) * (size.Width() - childSize.Width()) / NUM_TWO); in Layout()
141 child_offset.SetY((1.0 + align.GetVertical()) * (size.Height() - childSize.Height()) / NUM_TWO); in Layout()
148 …X((1.0 + align.GetHorizontal()) * (size.Width() - content->GetRect().GetSize().Width()) / NUM_TWO); in Layout()
149 …Y((1.0 + align.GetVertical()) * (size.Height() - content->GetRect().GetSize().Height()) / NUM_TWO); in Layout()
/ohos5.0/foundation/communication/dhcp/test/unittest/services/dhcp_client/
H A Dmock_custom_func.cpp24 static int NUM_TWO = 2; variable
54 uOption[DHCP_OPT_LEN_INDEX] = DHCP_UINT32_BYTES * NUM_TWO; in AddOptDoubleValueToOpts()
81 } else if (nLen == NUM_TWO) { in __wrap_GetDhcpRawPacket()
116 } else if (nLen == NUM_TWO) { in __wrap_GetDhcpKernelPacket()
H A Dmock_system_func.cpp22 static int NUM_TWO = 2; variable
155 } else if (nRet == NUM_TWO) { in __wrap_select()
/ohos5.0/base/telephony/cellular_call/test/fuzztest/satelliteclient_fuzzer/
H A Dsatelliteclient_fuzzer.cpp35 NUM_TWO, enumerator
69 int32_t slotId = static_cast<int32_t>(size % NUM_TWO); in TestSatelliteCallClientWithCallInfo()
81 int32_t callType = static_cast<int32_t>(size % NUM_TWO); in TestSatelliteCallClientWithCallInfo()
94 int32_t slotId = static_cast<int32_t>(size % NUM_TWO); in TestSatelliteCallProxyWithCallInfo()
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/navigation/
H A Dsem_ver.cpp24 const size_t NUM_TWO = 2; variable
66 if (segments.size() > NUM_TWO) { in SemVer()
67 patch = segments[NUM_TWO]; in SemVer()
/ohos5.0/base/hiviewdfx/faultloggerd/test/benchmarktest/unwinder/
H A Dunwind_local_tid_benchmark.cpp36 static constexpr int NUM_TWO = 2; variable
70 return val * val + NUM_TWO; in TestFunc2()
/ohos5.0/base/security/device_auth/test/fuzztest/group_auth/account_related/accountrelatedgroupauth_fuzzer/
H A Daccountrelatedgroupauth_fuzzer.cpp31 #define NUM_TWO 2 macro
206 (void)AddIntToJson(authParam, FIELD_KEY_LENGTH, NUM_TWO); // For unit test. in AccountRelatedGroupAuthTest0022()
226 (void)AddIntToJson(authParam, FIELD_KEY_LENGTH, NUM_TWO); // For unit test. in AccountRelatedGroupAuthTest0023()
244 (void)AddIntToJson(sendToSelf, FIELD_CREDENTIAL_TYPE, NUM_TWO); in AccountRelatedGroupAuthTest0023()
/ohos5.0/foundation/multimodalinput/input/intention/services/test/unittest/src/
H A Ddevice_test.cpp45 constexpr int32_t NUM_TWO { 2 }; variable
358 dev.keyBitmask_[INDEX_TWELVE] = NUM_TWO;
372 dev.keyBitmask_[INDEX_TWELVE] = NUM_TWO;
/ohos5.0/base/msdp/device_status/test/unittest/intention/services/src/
H A Ddevice_test.cpp42 constexpr int32_t NUM_TWO { 2 }; variable
355 dev.keyBitmask_[INDEX_TWELVE] = NUM_TWO;
369 dev.keyBitmask_[INDEX_TWELVE] = NUM_TWO;
/ohos5.0/foundation/communication/dhcp/services/dhcp_server/src/
H A Ddhcp_argument.cpp87 …{&g_longOptions[NUM_TWO], "<dns1>[,dns2][,dns3][...]", "domain name server IP address list.", "", …
192 if (argc == NUM_TWO) { in ShowHelp()
H A Ddhcp_dhcpd.cpp279 } else if (code == NUM_TWO) { in ServerActionCallback()
/ohos5.0/base/msdp/device_status/test/fuzztest/devicestatusagent_fuzzer/
H A Ddevicestatusagent_fuzzer.h39 NUM_TWO, enumerator
/ohos5.0/foundation/communication/dhcp/services/dhcp_server/include/
H A Ddhcp_s_define.h58 NUM_TWO, enumerator
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/radio/
H A Dradio_test_ng.cpp68 constexpr double NUM_TWO = 2.0; variable
1854 ….SetX((1.0 + align.GetHorizontal()) * (CONTENT_SIZE.Width() - CHILD_FRAME_SIZE.Width()) / NUM_TWO);
1855 ….SetY((1.0 + align.GetVertical()) * (CONTENT_SIZE.Height() - CHILD_FRAME_SIZE.Height()) / NUM_TWO);
1915 ….SetX((1.0 + align.GetHorizontal()) * (CONTENT_SIZE.Width() - CHILD_FRAME_SIZE.Width()) / NUM_TWO);
1916 ….SetY((1.0 + align.GetVertical()) * (CONTENT_SIZE.Height() - CHILD_FRAME_SIZE.Height()) / NUM_TWO);
1982 ….SetX((1.0 + align.GetHorizontal()) * (CONTENT_SIZE.Width() - CHILD_FRAME_SIZE.Width()) / NUM_TWO);
1983 ….SetY((1.0 + align.GetVertical()) * (CONTENT_SIZE.Height() - CHILD_FRAME_SIZE.Height()) / NUM_TWO);
/ohos5.0/base/security/huks/frameworks/huks_standard/main/os_dependency/ipc/src/
H A Dhks_client_ipc_serialization.c28 #define NUM_TWO 2 macro
390 if (inSize > UINT32_MAX - NUM_TWO) { in CheckAndCalculateSize()
/ohos5.0/base/telephony/ril_adapter/test/unittest/ril_adapter_gtest/
H A Dzero_branch_test.cpp42 constexpr const int32_t NUM_TWO = 2; variable
1246 EXPECT_NE(HDF_SUCCESS, sms->SmsStatusReportNotify(0, err, data, NUM_TWO));
/ohos5.0/base/msdp/device_status/services/interaction/drag/src/
H A Ddrag_drawing.cpp125 constexpr int32_t NUM_TWO { 2 }; variable
2711 …} else if ((static_cast<int32_t>(lastRotation) + NUM_TWO) % NUM_FOUR == static_cast<int32_t>(rotat… in ScreenRotateAdjustDisplayXY()