Home
last modified time | relevance | path

Searched refs:TWO (Results 1 - 25 of 148) sorted by relevance

123456

/foundation/communication/wifi/wifi/test/fuzztest/wifi_sta/wifiscansa_fuzzer/
H A Dwifiscansa_fuzzer.cpp33 constexpr int TWO = 2; member
74 bool status = (static_cast<int>(data[0]) % TWO) ? true : false; in ScanFuzzTest()
86 bool status = (static_cast<int>(data[0]) % TWO) ? true : false; in IsWifiScanAllowedFuzzTest()
93 bool status = (static_cast<int>(data[0]) % TWO) ? true : false; in GetScanInfoListFuzzTest()
99 bool status = (static_cast<int>(data[0]) % TWO) ? true : false; in SetScanOnlyAvailableFuzzTest()
105 bool isStartAction = (static_cast<int>(data[0]) % TWO) ? true : false; in StartWifiPnoScanFuzzTest()
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/properties/
H A Dftruncate.cpp34 if (!funcArg.InitArgs(NARG_CNT::ONE, NARG_CNT::TWO)) { in Sync()
46 if (funcArg.GetArgc() == NARG_CNT::TWO) { in Sync()
78 if (funcArg.GetArgc() >= NARG_CNT::TWO) { in Async()
106 if (funcArg.GetArgc() == NARG_CNT::ONE || (funcArg.GetArgc() == NARG_CNT::TWO && in Async()
110 NVal cb(env, funcArg[((funcArg.GetArgc() == NARG_CNT::TWO) ? NARG_POS::SECOND : NARG_POS::THIRD)]); in Async()
H A Dtruncate.cpp30 if (!funcArg.InitArgs(NARG_CNT::ONE, NARG_CNT::TWO)) { in Sync()
42 if (funcArg.GetArgc() == NARG_CNT::TWO) { in Sync()
73 if (funcArg.GetArgc() >= NARG_CNT::TWO) { in Async()
101 if (funcArg.GetArgc() == NARG_CNT::ONE || (funcArg.GetArgc() == NARG_CNT::TWO && in Async()
H A Dprop_n_exporter.cpp67 if (!funcArg.InitArgs(NARG_CNT::ONE, NARG_CNT::TWO)) { in AccessSync()
79 if (funcArg.GetArgc() == NARG_CNT::TWO) { in AccessSync()
110 if (funcArg.GetArgc() >= NARG_CNT::TWO) { in Access()
137 if (funcArg.GetArgc() == NARG_CNT::ONE || (funcArg.GetArgc() == NARG_CNT::TWO && in Access()
141 int cbInd = ((funcArg.GetArgc() == NARG_CNT::TWO) ? NARG_POS::SECOND : NARG_POS::THIRD); in Access()
150 if (!funcArg.InitArgs(NARG_CNT::ONE, NARG_CNT::TWO)) { in Unlink()
201 if (funcArg.GetArgc() >= NARG_CNT::TWO) { in Mkdir()
225 if (funcArg.GetArgc() == NARG_CNT::ONE || (funcArg.GetArgc() == NARG_CNT::TWO && in Mkdir()
229 int cbIdx = ((funcArg.GetArgc() == NARG_CNT::TWO) ? NARG_POS::SECOND : NARG_POS::THIRD); in Mkdir()
238 if (!funcArg.InitArgs(NARG_CNT::ONE, NARG_CNT::TWO)) { in MkdirSync()
[all...]
H A Dfchmod.cpp39 funcArg.InitArgs(NARG_CNT::TWO, NARG_CNT::THREE); in Async()
50 if (funcArg.GetArgc() == NARG_CNT::TWO) { in Async()
H A Dchmod.cpp40 funcArg.InitArgs(NARG_CNT::TWO, NARG_CNT::THREE); in Async()
51 if (funcArg.GetArgc() == NARG_CNT::TWO) { in Async()
H A Dsymlink.cpp50 if (!funcArg.InitArgs(NARG_CNT::TWO)) { in Sync()
71 if (!funcArg.InitArgs(NARG_CNT::TWO, NARG_CNT::THREE)) { in Async()
100 if (argc == NARG_CNT::TWO) { in Async()
H A Dcreate_stream.cpp74 if (!funcArg.InitArgs(NARG_CNT::TWO)) { in Sync()
100 if (!funcArg.InitArgs(NARG_CNT::TWO, NARG_CNT::THREE)) { in Async()
129 if (funcArg.GetArgc() == NARG_CNT::TWO) { in Async()
H A Dfdopen_stream.cpp72 if (!funcArg.InitArgs(NARG_CNT::TWO)) { in Sync()
98 if (!funcArg.InitArgs(NARG_CNT::TWO, NARG_CNT::THREE)) { in Async()
127 if (funcArg.GetArgc() == NARG_CNT::TWO) { in Async()
H A Drename.cpp34 if (!funcArg.InitArgs(NARG_CNT::TWO)) { in Sync()
62 if (!funcArg.InitArgs(NARG_CNT::TWO, NARG_CNT::THREE)) { in Async()
98 if (argc == NARG_CNT::TWO) { in Async()
H A Dlink.cpp51 if (!funcArg.InitArgs(NARG_CNT::TWO)) { in Sync()
72 if (!funcArg.InitArgs(NARG_CNT::TWO, NARG_CNT::THREE)) { in Async()
101 if (argc == NARG_CNT::TWO) { in Async()
/foundation/graphic/graphic_3d/lume/metaobject/test/src/api/
H A DNumberTest.cpp28 enum MyEnum : int16_t { ONE = 1, TWO, THREE }; enumerator
65 Number en = MyEnum::TWO; in HWTEST_F()
67 EXPECT_EQ(en.Get<MyEnum>(), MyEnum::TWO); in HWTEST_F()
/foundation/arkui/ace_engine/test/unittest/core/base/
H A Dinspector_test_ng.cpp69 const RefPtr<FrameNode> TWO = FrameNode::CreateFrameNode("two", id2, AceType::MakeRefPtr<Pattern>()); in HWTEST_F() local
91 context1->rootNode_->AddChild(TWO); in HWTEST_F()
162 const RefPtr<FrameNode> TWO = FrameNode::CreateFrameNode("stage", id2, AceType::MakeRefPtr<Pattern>()); in HWTEST_F() local
163 ONE->AddChild(TWO); in HWTEST_F()
176 auto test4 = Inspector::GetInspectorOfNode(TWO); in HWTEST_F()
275 const RefPtr<FrameNode> TWO = FrameNode::CreateFrameNode("two", id2, AceType::MakeRefPtr<Pattern>()); in HWTEST_F() local
277 ONE->AddChild(TWO); in HWTEST_F()
288 TWO->AddChild(PAGE); in HWTEST_F()
289 TWO->AddChild(THREE); in HWTEST_F()
290 TWO in HWTEST_F()
411 const RefPtr<FrameNode> TWO = FrameNode::CreateFrameNode("two", id2, AceType::MakeRefPtr<Pattern>()); HWTEST_F() local
[all...]
H A Dui_node_test_ng.cpp45 const RefPtr<FrameNode> TWO = FrameNode::CreateFrameNode("two", 2, AceType::MakeRefPtr<Pattern>()); member
123 ONE->AddChild(TWO, 1, false); in HWTEST_F()
141 auto distance = ONE->RemoveChildAndReturnIndex(TWO); in HWTEST_F()
153 ONE->AddChild(TWO, 1, false); in HWTEST_F()
166 ONE->AddChild(TWO, 1, false); in HWTEST_F()
178 ONE->AddChild(TWO, 1, false); in HWTEST_F()
184 ONE->ReplaceChild(TWO, FOUR); in HWTEST_F()
187 * @tc.steps: step2. set TWO's hostPageId_ 1 and Clean in HWTEST_F()
190 TWO->hostPageId_ = 1; in HWTEST_F()
191 ONE->MountToParent(TWO, in HWTEST_F()
[all...]
/foundation/graphic/graphic_3d/lume/metaobject/test/src/interface/
H A DIntfMetadataTest.cpp31 const int TWO = 2; // test value for Set/Get function member
124 ASSERT_EQ(GetValue(gp, "First", TWO), ONE); in TestGetSetValue()
126 ASSERT_TRUE(SetValue<int>(sp, "First", TWO)); in TestGetSetValue()
127 ASSERT_EQ(GetValue<int>(gp, "First"), TWO); in TestGetSetValue() local
128 ASSERT_EQ(GetValue<int>(gp, "First", ONE), TWO); in TestGetSetValue() local
130 ASSERT_FALSE(SetValue<float>(sp, "First", TWO)); in TestGetSetValue()
/foundation/filemanagement/dfs_service/interfaces/kits/js/cloudfilesync/
H A Dcloud_file_cache_napi.cpp144 if (!funcArg.InitArgs(NARG_CNT::ONE, NARG_CNT::TWO)) { in StartFileCache()
174 auto asyncWork = GetPromiseOrCallBackWork(env, funcArg, static_cast<size_t>(NARG_CNT::TWO)); in StartFileCache()
193 size_t maxArgSize = static_cast<size_t>(NARG_CNT::TWO); in StopFileCache()
194 if (funcArg.GetArgc() >= NARG_CNT::TWO) { in StopFileCache()
235 if (!funcArg.InitArgs(NARG_CNT::ONE, NARG_CNT::TWO)) { in StartBatchFileCache()
268 auto asyncWork = GetPromiseOrCallBackWork(env, funcArg, static_cast<size_t>(NARG_CNT::TWO)); in StartBatchFileCache()
289 size_t maxArgSize = static_cast<size_t>(NARG_CNT::TWO); in StopBatchFileCache()
290 if (funcArg.GetArgc() >= NARG_CNT::TWO) { in StopBatchFileCache()
328 if (!funcArg.InitArgs(NARG_CNT::TWO)) { in On()
383 if (!funcArg.InitArgs(NARG_CNT::ONE, NARG_CNT::TWO)) { in Off()
[all...]
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_file/class_file/
H A Dfile_n_exporter.cpp83 napi_call_function(env, global, failFunc, COMMON_NUM::TWO, argvFail, &results); in CallBackError()
282 CallComplete(env, asyncCallbackInfo->callback[COMMON_NUM::TWO]); in MkdirComp()
285 napi_delete_reference(env, asyncCallbackInfo->callback[COMMON_NUM::TWO]); in MkdirComp()
318 CallComplete(env, asyncCallbackInfo->callback[COMMON_NUM::TWO]); in RmdirComp()
321 napi_delete_reference(env, asyncCallbackInfo->callback[COMMON_NUM::TWO]); in RmdirComp()
382 CallComplete(env, asyncCallbackInfo->callback[COMMON_NUM::TWO]); in GetComp()
385 napi_delete_reference(env, asyncCallbackInfo->callback[COMMON_NUM::TWO]); in GetComp()
458 CallComplete(env, asyncCallbackInfo->callback[COMMON_NUM::TWO]); in ListComp()
461 napi_delete_reference(env, asyncCallbackInfo->callback[COMMON_NUM::TWO]); in ListComp()
567 CallComplete(env, asyncCallbackInfo->callback[COMMON_NUM::TWO]); in CopyComp()
[all...]
/foundation/communication/wifi/wifi/test/fuzztest/wifi_sta/wifiscanserver_fuzzer/
H A Dwifiscanserver_fuzzer.cpp34 constexpr int TWO = 2; member
72 bool state = (static_cast<int>(data[0]) % TWO) ? true : false; in ScanInterfaceFuzzTest()
108 scanConfig.fullScanFlag = (static_cast<int>(data[0]) % TWO) ? true : false; in SingleScanFuzzTest()
110 scanConfig.scanningWithParamFlag = (static_cast<int>(data[0]) % TWO) ? true : false; in SingleScanFuzzTest()
135 interConfig.fullScanFlag = (static_cast<int>(data[0]) % TWO) ? true : false; in AddScanMessageBodyFuzzTest()
149 interConfig.fullScanFlag = (static_cast<int>(data[0]) % TWO) ? true : false; in StoreRequestScanConfigFuzzTest()
154 scanConfig.fullScanFlag = (static_cast<int>(data[0]) % TWO) ? true : false; in StoreRequestScanConfigFuzzTest()
156 scanConfig.scanningWithParamFlag = (static_cast<int>(data[0]) % TWO) ? true : false; in StoreRequestScanConfigFuzzTest()
163 config.fullScanFlag = (static_cast<int>(data[0]) % TWO) ? true : false; in StoreRequestScanConfigFuzzTest()
194 scanIntervalMode.isSingle = (static_cast<int>(data[0]) % TWO) in StoreRequestScanConfigFuzzTest()
[all...]
/foundation/distributedhardware/distributed_screen/services/common/imageJpeg/src/
H A Djpeg_image_processor.cpp48 uint32_t lastFrameSize = configParam_.GetScreenWidth() * configParam_.GetScreenHeight() * RGB_CHROMA / TWO; in FillDirtyImages2Surface()
198 (configParam_.GetScreenWidth() * (rect.yPos / TWO) + rect.xPos); in ReplaceDamage2LastFrame()
211 if (i % TWO) { in ReplaceDamage2LastFrame()
212 uTempData = uData + configParam_.GetScreenWidth() * (i / TWO); in ReplaceDamage2LastFrame()
250 unsigned char *pR = inputData + TWO; in CompressRgbaToJpeg()
313 YB_PARAM * buffer[0][j * RGB_CHROMA + TWO] + UA_PARAM) >> MOVEBITS) + YA_PARAM; in DecompressJpegToNV12()
314 int32_t u = ((UB_PARAM * buffer[0][j * RGB_CHROMA + TWO] - UR_PARAM * buffer[0][j * RGB_CHROMA] - in DecompressJpegToNV12()
317 VB_PARAM * buffer[0][j * RGB_CHROMA + TWO] + UA_PARAM) >> MOVEBITS) + UA_PARAM; in DecompressJpegToNV12()
319 if ((i % TWO == 0) && (j % TWO in DecompressJpegToNV12()
[all...]
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_securitylabel/
H A Dsecuritylabel_n_exporter.cpp33 if (!funcArg.InitArgs(static_cast<int>(NARG_CNT::TWO), static_cast<int>(NARG_CNT::THREE))) { in SetSecurityLabel()
75 if (funcArg.GetArgc() == static_cast<size_t>(NARG_CNT::TWO)) { in SetSecurityLabel()
86 if (!funcArg.InitArgs(static_cast<int>(NARG_CNT::TWO), static_cast<int>(NARG_CNT::THREE))) { in SetSecurityLabelSync()
127 if (!funcArg.InitArgs(static_cast<int>(NARG_CNT::ONE), static_cast<int>(NARG_CNT::TWO))) { in GetSecurityLabel()
170 if (!funcArg.InitArgs(static_cast<int>(NARG_CNT::ONE), static_cast<int>(NARG_CNT::TWO))) { in GetSecurityLabelSync()
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/
H A Dread_lines.cpp129 if (funcArg.GetArgc() >= NARG_CNT::TWO) { in Async()
156 if (funcArg.GetArgc() == NARG_CNT::ONE || (funcArg.GetArgc() == NARG_CNT::TWO && in Async()
160 NVal cb(env, funcArg[((funcArg.GetArgc() == NARG_CNT::TWO) ? NARG_POS::SECOND : NARG_POS::THIRD)]); in Async()
168 if (!funcArg.InitArgs(NARG_CNT::ONE, NARG_CNT::TWO)) { in Sync()
181 if (funcArg.GetArgc() == NARG_CNT::TWO) { in Sync()
H A Dtruncate.cpp95 if (!funcArg.InitArgs(NARG_CNT::ONE, NARG_CNT::TWO)) { in Sync()
106 if (funcArg.GetArgc() == NARG_CNT::TWO) { in Sync()
136 if (funcArg.GetArgc() >= NARG_CNT::TWO) { in Async()
155 if (funcArg.GetArgc() == NARG_CNT::ONE || (funcArg.GetArgc() == NARG_CNT::TWO && in Async()
159 NVal cb(env, funcArg[((funcArg.GetArgc() == NARG_CNT::TWO) ? NARG_POS::SECOND : NARG_POS::THIRD)]); in Async()
H A Dcreate_stream.cpp51 if (!funcArg.InitArgs(NARG_CNT::TWO)) { in Sync()
76 if (!funcArg.InitArgs(NARG_CNT::TWO, NARG_CNT::THREE)) { in Async()
112 if (funcArg.GetArgc() == NARG_CNT::TWO) { in Async()
/foundation/arkui/napi/sample/native_module_calc/
H A Dnapi_number.cpp23 TWO, enumerator
48 napi_create_int32(env, TestEnum::TWO, &two); in Export()
54 DECLARE_NAPI_STATIC_PROPERTY("TWO", two), in Export()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dpixelmap_native_ndk_test.cpp40 const int32_t TWO = 2; member
571 staticMetadata.displayPrimariesX[TWO] = base++; in CreateMetadataValue()
574 staticMetadata.displayPrimariesY[TWO] = base++; in CreateMetadataValue()
591 gainmapMetadata.gainmapMax[TWO] = base++; in CreateMetadataValue()
594 gainmapMetadata.gainmapMax[TWO] = base++; in CreateMetadataValue()
597 gainmapMetadata.gamma[TWO] = base++; in CreateMetadataValue()
600 gainmapMetadata.baselineOffset[TWO] = base++; in CreateMetadataValue()
603 gainmapMetadata.alternateOffset[TWO] = base++; in CreateMetadataValue()
614 GTEST_LOG_(INFO) << "DumpMetadata : " << staticMetadata.displayPrimariesX[TWO]; in DumpMetadata()
617 GTEST_LOG_(INFO) << "DumpMetadata : " << staticMetadata.displayPrimariesY[TWO]; in DumpMetadata()
[all...]

Completed in 13 milliseconds

123456