Home
last modified time | relevance | path

Searched refs:rand (Results 1 – 24 of 24) sorted by relevance

/test/xts/acts/security/cryptoFramework/js_api_test_oh40/src/main/js/test/
DSecurityRandomSync.test.js37 var rand = cryptoFrameworks.createRandom();
39 let dataBlob = rand.generateRandomSync(12);
64 var rand = cryptoFrameworks.createRandom();
66 rand.generateRandomSync(0);
74 rand.generateRandomSync("string");
82 rand.generateRandomSync(-1);
90 rand.generateRandomSync(null);
98 rand.generateRandomSync(2147483648);
117 let rand = cryptoFrameworks.createRandom();
118 console.log("get rand.algName is: " + rand.algName);
[all …]
/test/xts/acts/security/cryptoFramework/js_api_test_one/src/main/js/test/utils/securityrandom/
DpublicSecurityRandomCallback.js24 var rand;
27 rand = cryptoFramework.createRandom();
28 expect(rand != null).assertTrue();
29 rand.generateRandom(length, (err, randData) => {
39 rand.setSeed(randData);
46 rand.generateRandom(length, (err, randData) => {
DpublicSecurityRandomPromise.js24 var rand;
27 rand = cryptoFramework.createRandom();
28 expect(rand != null).assertTrue();
29 rand
36 let result = rand.setSeed(randData);
47 rand
/test/xts/acts/ai_lite/ai_engine_posix/base/src/utils/
Dutils.cpp49 int randomInt = rand() % (max + 1); in GetRandomInt()
60 return (rand() % DIVISOR_TWO == 1) ? true : false; in GetRandomBool()
87 switch (rand() % CHAR_TYPE) { in GetRandomString()
89 str[i] = MIN_UPPER_CASE_CHAR + rand() % NUMBER_OF_ALPHABETS; in GetRandomString()
92 str[i] = MIN_LOWER_CASE_CHAR + rand() % NUMBER_OF_ALPHABETS; in GetRandomString()
98 str[i] = MIN_NUMERIC_CHAR + rand() % NUMBER_OF_DIGITS; in GetRandomString()
/test/ostest/wukong/input_factory/src/
Dswap_input.cpp69 int xSrcPosition = rand() % screenWidth; in RandomInput()
70 int ySrcPosition = rand() % screenHeight; in RandomInput()
71 int xDstPosition = rand() % screenWidth; in RandomInput()
72 int yDstPosition = rand() % screenHeight; in RandomInput()
Dmouse_input.cpp50 int xClickPosition = rand() % screenWidth; in RandomInput()
51 int yClickPosition = rand() % screenHeight; in RandomInput()
53 int randomInt = rand() % ONEHUNDRED; in RandomInput()
Dkeyboard_input.cpp41 int keyCodePercent = rand() % ONE_HUNDRED_PERCENT; in RandomInput()
45 int keycode = keycodelist[(uint32_t)(rand()) % keycodelist.size()]; in RandomInput()
Drotate_input.cpp46 uint32_t orientation = static_cast<uint32_t>((rand() % FOUR) + ONE); in OrderInput()
75 uint32_t orientation = static_cast<uint32_t>((rand() % FOUR) + ONE); in RandomInput()
Dappswitch_input.cpp119 …index = WuKongUtil::GetInstance()->FindElement(bundlelist, allowlist.at(rand() % allowlist.size())… in GetAbilityIndex()
121 …index = WuKongUtil::GetInstance()->FindElement(bundlelist, validlist.at(rand() % validlist.size())… in GetAbilityIndex()
123 index = rand() % bundlelist.size(); in GetAbilityIndex()
Dtouch_input.cpp63 int touchX = rand() % screenWidth; in RandomInput()
64 int touchY = rand() % screenHeight; in RandomInput()
Dhardkey_input.cpp54 int keycode = MMI::KeyEvent::KEYCODE_VOLUME_UP + rand() % HARDKEY_COUNT; in RandomInput()
Dcomponent_input.cpp286 uint32_t index = (uint32_t)(rand()) % componentInfos.size(); in RandomInput()
387 uint32_t randIndex = (std::uint32_t) rand() % indexList.size(); in ChooseRightComponentIndex()
423 auto it = actionlist[(uint32_t)(rand()) % actionlist.size()]; in JudgeComponentType()
/test/xts/acts/storage/storagefileiov9jstest/src/main/js/test/members/
Dfilerw.test.js28 async function IOfunc(file, bf, total, rand, read, promise) { argument
36 if (rand) {
/test/ostest/wukong/test_flow/src/
Drandom_test_flow.cpp384 int eventindex = rand() % ONE_HUNDRED_PERCENT; in RunStep()
432 int index = rand() % abilityList.size(); in ProtectRightAbility()
571 std::swap(eventList_[i], eventList_[std::rand() % (i + 1)]); in RandomShuffle()
Dfocus_test_flow.cpp382 int eventindex = rand() % ONE_HUNDRED_PERCENT; in RunStep()
541 std::swap(eventList_[i], eventList_[std::rand() % (i + 1)]); in RandomShuffle()
/test/ostest/wukong/component_event/src/
Dtree_manager.cpp549 page2componentIndex_[pagePath_] = (std::uint32_t) rand(); in FindInputComponentIndex()
555 page2componentIndex_[pagePath_] = (std::uint32_t) rand(); in FindInputComponentIndex()
562 page2componentIndex_[pagePath_] = (std::uint32_t) rand(); in FindInputComponentIndex()
Dnormal_scene.cpp38 int randomNumber = rand() % ONEHUNDRED; in SetInputComponentList()
/test/ostest/wukong/common/src/
Dmultimode_manager.cpp86 int keycode = keycodelist_[(uint32_t)(rand()) % keycodelist_.size()]; in MultiKeyCodeInput()
/test/xts/acts/kernel_lite/utils/
Dutils.cpp230 return (rand() % max) + 1; in GetRandom()
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/ets/test/
DStdlibNdk.test.ets155 console.info("Test rand oldData = " + JSON.stringify(oldData));
156 console.info("Test rand newData = " + JSON.stringify(newData));
172 console.info("Test rand newData = " + JSON.stringify(newData));
273 console.info("Test rand oldData = " + JSON.stringify(oldData));
274 console.info("Test rand newData = " + JSON.stringify(newData));
290 console.info("Test rand newData = " + JSON.stringify(newData));
300 * @tc.desc : test rand
307 let result: number = stdlib.rand(param)
316 * @tc.desc : test rand
323 let result: number = stdlib.rand(param)
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/
Dstdlibndk.cpp146 int randValue = rand(); in Rand()
151 int randValue = rand(); in Rand()
253 sin_value = rand(); in Srand()
272 sin_value = rand(); in Srand48()
291 sin_value = rand(); in Srandom()
Dsearchndk.cpp350 *ptr = rand() & PARAM_0xff; in Twalk()
Dstringndk.cpp104 int valueSecond = rand(); in Strerror()
128 int valueSecond = rand(); in Strerror_l()
150 int valueSecond = rand(); in Strerror_r()
/test/xts/hats/telephony/ril/hdi_v1.0/
Dhdf_ril_hdiService_test.cpp521 currentSerialId = rand() % 10000000000; in GetSerialId()