/test/xts/acts/security/cryptoFramework/js_api_test_oh40/src/main/js/test/ |
D | SecurityRandomSync.test.js | 37 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/ |
D | publicSecurityRandomCallback.js | 24 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) => {
|
D | publicSecurityRandomPromise.js | 24 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/ |
D | utils.cpp | 49 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/ |
D | swap_input.cpp | 69 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()
|
D | mouse_input.cpp | 50 int xClickPosition = rand() % screenWidth; in RandomInput() 51 int yClickPosition = rand() % screenHeight; in RandomInput() 53 int randomInt = rand() % ONEHUNDRED; in RandomInput()
|
D | keyboard_input.cpp | 41 int keyCodePercent = rand() % ONE_HUNDRED_PERCENT; in RandomInput() 45 int keycode = keycodelist[(uint32_t)(rand()) % keycodelist.size()]; in RandomInput()
|
D | rotate_input.cpp | 46 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()
|
D | appswitch_input.cpp | 119 …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()
|
D | touch_input.cpp | 63 int touchX = rand() % screenWidth; in RandomInput() 64 int touchY = rand() % screenHeight; in RandomInput()
|
D | hardkey_input.cpp | 54 int keycode = MMI::KeyEvent::KEYCODE_VOLUME_UP + rand() % HARDKEY_COUNT; in RandomInput()
|
D | component_input.cpp | 286 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/ |
D | filerw.test.js | 28 async function IOfunc(file, bf, total, rand, read, promise) { argument 36 if (rand) {
|
/test/ostest/wukong/test_flow/src/ |
D | random_test_flow.cpp | 384 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()
|
D | focus_test_flow.cpp | 382 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/ |
D | tree_manager.cpp | 549 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()
|
D | normal_scene.cpp | 38 int randomNumber = rand() % ONEHUNDRED; in SetInputComponentList()
|
/test/ostest/wukong/common/src/ |
D | multimode_manager.cpp | 86 int keycode = keycodelist_[(uint32_t)(rand()) % keycodelist_.size()]; in MultiKeyCodeInput()
|
/test/xts/acts/kernel_lite/utils/ |
D | utils.cpp | 230 return (rand() % max) + 1; in GetRandom()
|
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/ets/test/ |
D | StdlibNdk.test.ets | 155 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/ |
D | stdlibndk.cpp | 146 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()
|
D | searchndk.cpp | 350 *ptr = rand() & PARAM_0xff; in Twalk()
|
D | stringndk.cpp | 104 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/ |
D | hdf_ril_hdiService_test.cpp | 521 currentSerialId = rand() % 10000000000; in GetSerialId()
|