/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/interface/ |
H A D | path_test.cpp | 37 TestRend rand; in OnTestPerformance() local 40 OH_Drawing_PathMoveTo(path, rand.nextULessThan(bitmapWidth_), rand.nextULessThan(bitmapHeight_)); in OnTestPerformance() 41 OH_Drawing_PathLineTo(path, rand.nextULessThan(bitmapWidth_), rand.nextULessThan(bitmapHeight_)); in OnTestPerformance() 43 rand.nextULessThan(360), rand.nextULessThan(bitmapWidth_), rand.nextULessThan(bitmapHeight_)); in OnTestPerformance() 54 TestRend rand; in OnTestPerformance() local 57 float l = rand in OnTestPerformance() 71 TestRend rand; OnTestPerformance() local 89 TestRend rand; OnTestPerformance() local 107 TestRend rand; OnTestPerformance() local 129 TestRend rand; OnTestPerformance() local 149 TestRend rand = TestRend(); OnTestPerformance() local 163 TestRend rand = TestRend(); OnTestPerformance() local 179 TestRend rand = TestRend(); OnTestPerformance() local 198 TestRend rand = TestRend(); OnTestPerformance() local 214 TestRend rand = TestRend(); OnTestPerformance() local 228 TestRend rand = TestRend(); OnTestPerformance() local 244 TestRend rand = TestRend(); OnTestPerformance() local 260 TestRend rand = TestRend(); OnTestPerformance() local 334 TestRend rand; OnTestPerformance() local 352 TestRend rand; OnTestPerformance() local 365 TestRend rand; OnTestPerformance() local 379 TestRend rand; OnTestPerformance() local 395 TestRend rand; OnTestPerformance() local 413 TestRend rand; OnTestPerformance() local 431 TestRend rand; OnTestPerformance() local 445 TestRend rand; OnTestPerformance() local 468 TestRend rand; OnTestPerformance() local 492 TestRend rand; OnTestPerformance() local 518 TestRend rand = TestRend(); OnTestPerformance() local 546 TestRend rand; OnTestPerformance() local 566 TestRend rand; OnTestPerformance() local 586 TestRend rand; OnTestPerformance() local 605 TestRend rand; OnTestPerformance() local [all...] |
H A D | text_blob_test.cpp | 46 TestRend rand; in OnTestPerformance() local 52 l = rand.nextULessThan(bitmapWidth_); in OnTestPerformance() 53 t = rand.nextULessThan(bitmapHeight_); in OnTestPerformance() 54 r = l + rand.nextULessThan(bitmapWidth_); in OnTestPerformance() 55 b = t + rand.nextULessThan(bitmapHeight_); in OnTestPerformance() 66 canvas, blob, rand.nextULessThan(bitmapWidth_), rand.nextULessThan(bitmapHeight_)); in OnTestPerformance() 79 TestRend rand; in OnTestPerformance() local 83 canvas, blob, rand.nextULessThan(bitmapWidth_), rand in OnTestPerformance() 94 TestRend rand; OnTestPerformance() local 113 TestRend rand; OnTestPerformance() local 128 TestRend rand; OnTestPerformance() local 144 TestRend rand; OnTestPerformance() local [all...] |
/foundation/multimedia/av_codec/test/moduletest/audio_decoder/Avbuffer/src/ |
H A D | common_tool.cpp | 29 int32_t len = rand() % STRING_LEN; in GetRandString() 32 c = rand() % CONSTASNTS; in GetRandString() 40 return RAND_INT_MIN + rand() % (RAND_INT_MAX - RAND_INT_MIN + 1); in GetRandInt() 45 return RAND_INT_MIN + rand() % (RAND_INT_MAX - RAND_INT_MIN + 1); in GetRandLong() 50 return (float)rand() / RAND_MAX * (DOUBLE_MAX - DOUBLE_MIN) + DOUBLE_MIN; in GetRandFloat() 55 return (double)rand() / RAND_MAX * (DOUBLE_MAX - DOUBLE_MIN) + DOUBLE_MIN; in GetRandDouble()
|
/foundation/multimedia/av_codec/test/moduletest/audio_encoder/Avbuffer/src/ |
H A D | common_tool.cpp | 31 int32_t len = rand() % STRING_LEN; in GetRandString() 34 c = rand() % CONSTASNTS; in GetRandString() 42 return RAND_INT_MIN + rand() % (RAND_INT_MAX - RAND_INT_MIN + 1); in GetRandInt() 47 return RAND_INT_MIN + rand() % (RAND_INT_MAX - RAND_INT_MIN + 1); in GetRandLong() 52 return (float)rand() / RAND_MAX * (DOUBLE_MAX - DOUBLE_MIN) + DOUBLE_MIN; in GetRandFloat() 57 return (double)rand() / RAND_MAX * (DOUBLE_MAX - DOUBLE_MIN) + DOUBLE_MIN; in GetRandDouble()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/dm/ |
H A D | strokes.cpp | 39 void rnd_rect(DrawRect& r, OH_Drawing_Pen* pen, TestRend& rand) in rnd_rect() argument 41 float x = rand.nextUScalar1() * K_W; in rnd_rect() 42 float y = rand.nextUScalar1() * K_H; in rnd_rect() 43 float w = rand.nextUScalar1() * (K_W >> 2); in rnd_rect() 44 float h = rand.nextUScalar1() * (K_H >> 2); in rnd_rect() 45 float hoffset = rand.nextUScalar1(); in rnd_rect() 46 float woffset = rand.nextUScalar1(); in rnd_rect() 51 OH_Drawing_PenSetColor(pen, rand.nextU() | 0xFF000000); in rnd_rect() 64 TestRend rand; in OnTestFunction() local 69 float x = rand in OnTestFunction() [all...] |
H A D | points.cpp | 41 void Points::fill_pts(OH_Drawing_Point2D pts[], size_t n, TestRend* rand) in fill_pts() argument 47 float y = rand->nextUScalar1() * 480; in fill_pts() 48 float x = rand->nextUScalar1() * 640; in fill_pts() 57 TestRend rand; in OnTestFunction() local 74 fill_pts(pts, n, &rand); in OnTestFunction()
|
H A D | arcofzorro.cpp | 49 TestRend rand; in OnTestFunction() local 56 uint32_t color = rand.nextU(); in OnTestFunction()
|
H A D | add_arc.cpp | 116 TestRend rand; in OnTestFunction() local 120 OH_Drawing_PenSetColor(pen, color_to_565(rand.nextU() | (0xFF << 24))); // 24颜色偏移 in OnTestFunction() 122 float startAngle = rand.nextUScalar1() * 360; in OnTestFunction()
|
H A D | points.h | 33 void fill_pts(OH_Drawing_Point2D pts[], size_t n, TestRend* rand);
|
/foundation/multimedia/av_codec/test/moduletest/muxer/InnerAPI/ |
H A D | InnerAVMuxerFuzzTest.cpp | 45 int32_t data = -10000 + rand() % 20001; in GetIntRand() 64 fd = rand(); in HWTEST_F() 124 int typeIndex = rand() % 4; in HWTEST_F() 126 int dataLen = rand() % 65536; in HWTEST_F() 198 int dataLen = rand() % 65536; in HWTEST_F() 224 int typeIndex = rand() % 4; in HwTest_AddTrack() 226 int configLen = rand() % 65536; in HwTest_AddTrack() 264 int dataLen = rand() % 0x10000; in HwTest_AddTrack() 304 fd = rand(); in HWTEST_F() 305 format = Plugins::OutputFormat(rand() in HWTEST_F() [all...] |
/foundation/multimedia/av_codec/test/moduletest/muxer/NativeAPI/ |
H A D | NativeAVMuxerFuzzTest.cpp | 47 int32_t data = -10000 + rand() % 20001; in getIntRand() 69 fd = rand(); in HWTEST_F() 70 format = OH_AVOutputFormat(rand() % 3); in HWTEST_F() 135 int typeIndex = rand() % 4; in HWTEST_F() 200 int dataLen = rand() % 65536; in HWTEST_F() 256 fd = rand(); in HWTEST_F() 257 format = OH_AVOutputFormat(rand() % 3); in HWTEST_F() 265 int typeIndex = rand() % 4; in HWTEST_F() 284 int dataLen = rand() % 65536; in HWTEST_F()
|
/foundation/distributeddatamgr/relational_store/test/native/rdb/unittest/ |
H A D | rdb_bigint_test.cpp | 265 std::vector<uint64_t> u64Val(2 + rand() % 100, 0); in HWTEST_F() 267 uint64_t high = uint64_t(rand()); in HWTEST_F() 268 uint64_t low = uint64_t(rand()); in HWTEST_F() 307 std::vector<uint64_t> u64Val(2 + rand() % 100, 0); in HWTEST_F() 309 uint64_t high = uint64_t(rand()); in HWTEST_F() 310 uint64_t low = uint64_t(rand()); in HWTEST_F() 349 std::vector<uint64_t> u64Val(2 + rand() % 100, 0); in HWTEST_F() 351 uint64_t high = uint64_t(rand()); in HWTEST_F() 352 uint64_t low = uint64_t(rand()); in HWTEST_F() 387 std::vector<uint64_t> u64Val(2 + rand() in HWTEST_F() [all...] |
H A D | raw_data_parser_test.cpp | 54 std::vector<uint64_t> u64Val(2 + rand() % 100, 0);
in HWTEST_F() 56 uint64_t high = uint64_t(rand());
in HWTEST_F() 57 uint64_t low = uint64_t(rand());
in HWTEST_F()
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/ble/ |
H A D | ble_config.cpp | 347 bool BleConfig::SetLocalEdivRand(const std::string §ion, const std::string &ediv, const std::string &rand) const in SetLocalEdivRand() 356 ret = config_->SetValue(SECTION_BLE_PAIRED_LIST, section, PROPERTY_BLE_LOCAL_RAND, rand); in SetLocalEdivRand() 358 LOG_ERROR("[BleConfig] %{public}s:%{public}s", __func__, "Set ble local rand failed!"); in SetLocalEdivRand() 419 bool BleConfig::SetPeerEdivRand(const std::string §ion, const std::string &ediv, const std::string &rand) const in SetPeerEdivRand() 428 ret = config_->SetValue(SECTION_BLE_PAIRED_LIST, section, PROPERTY_BLE_PEER_RAND, rand); in SetPeerEdivRand() 430 LOG_ERROR("[BleConfig] %{public}s:%{public}s", __func__, "Set ble peer rand failed!"); in SetPeerEdivRand() 525 std::string rand; in GetLocalRand() local 526 bool ret = config_->GetValue(SECTION_BLE_PAIRED_LIST, section, PROPERTY_BLE_LOCAL_RAND, rand); in GetLocalRand() 528 LOG_DEBUG("[BleConfig] %{public}s:%{public}s", __func__, "Get ble local rand failed!"); in GetLocalRand() 530 return rand; in GetLocalRand() 585 std::string rand; GetPeerRand() local [all...] |
H A D | ble_security.cpp | 107 void BleSecurity::LeLocalEncryptionKeyReqEvent(const BtAddr *addr, uint64_t rand, uint16_t ediv, void *context) in LeLocalEncryptionKeyReqEvent() argument 120 gapCallbackParam.leLocalEncryptionKeyReqEvent_.rand = rand; in LeLocalEncryptionKeyReqEvent() 459 std::to_string(param.lePairKeyNotify_.localEncKey.rand)); in SaveLocalPairKey() 486 std::to_string(param.lePairKeyNotify_.remoteEncKey.rand)); in SavePeerPairKey() 539 std::string rand = BleConfig::GetInstance().GetLocalRand(addr.GetAddress()); in GapLeLocalEncryptionKeyReqEvent() local 541 if ((rand.compare(std::to_string(param.leLocalEncryptionKeyReqEvent_.rand)) == 0) && in GapLeLocalEncryptionKeyReqEvent() 547 encKey.rand = std::stoull(rand); in GapLeLocalEncryptionKeyReqEvent() 568 std::string rand = BleConfig::GetInstance().GetPeerRand(addr.GetAddress()); GapLeRemoteEncryptionKeyReqEvent() local [all...] |
H A D | ble_config.h | 68 bool SetLocalEdivRand(const std::string §ion, const std::string &ediv, const std::string &rand) const; 83 bool SetPeerEdivRand(const std::string §ion, const std::string &ediv, const std::string &rand) const;
|
/foundation/multimedia/av_codec/test/moduletest/audio_encoder/InnerAPI/ |
H A D | InnerFuzzTest.cpp | 54 c = rand() % CONSTASNTS; in getRandStr() 62 int32_t data = -10000 + rand() % 20001; in getIntRand() 120 int32_t strLen = rand() % 1000; in HWTEST_F() 144 strLen = rand() % 65536; in HWTEST_F() 297 int dataLen = rand() % 65536; in HWTEST_F() 363 strLen = rand() % 65536; in HWTEST_F() 366 strLen = rand() % 65536; in HWTEST_F()
|
/foundation/multimedia/av_codec/test/moduletest/audio_decoder/InnerAPI/ |
H A D | InnerFuzzTest.cpp | 56 c = rand() % DEFAULT_RAND_SIZE; in getRandStr() 65 int32_t data = -10000 + rand() % 20001; in getIntRand() 121 int32_t strLen = rand() % 1000; in HWTEST_F() 147 strLen = rand() % 65536; in HWTEST_F() 296 int dataLen = rand() % 65536; in HWTEST_F() 356 strLen = rand() % 65536; in HWTEST_F() 359 strLen = rand() % 65536; in HWTEST_F()
|
/foundation/multimedia/av_codec/test/moduletest/demuxer/src/ |
H A D | perf_test.cpp | 164 int pos_to = rand() % (30 * 3600); in HWTEST_F() 195 int pos_to = rand() % (60 * 3600); in HWTEST_F() 226 int pos_to = rand() % (30 * 3600); in HWTEST_F() 257 int pos_to = rand() % (60 * 3600); in HWTEST_F() 288 int pos_to = rand() % (30 * 3600); in HWTEST_F() 319 int pos_to = rand() % (60 * 3600); in HWTEST_F()
|
/foundation/distributeddatamgr/pasteboard/framework/framework/device/ |
H A D | distributed_module_config.cpp | 119 std::this_thread::sleep_for(std::chrono::milliseconds((int32_t(rand() % (RANDOM_MAX - RANDOM_MIN))))); in Online() 126 std::this_thread::sleep_for(std::chrono::milliseconds((int32_t(rand() % (RANDOM_MAX - RANDOM_MIN))))); in Offline()
|
/foundation/ai/ai_engine/test/function/init/ |
H A D | init_function_test.cpp | 72 switch (rand() % CHAR_TYPE) { in RandStr() 74 str[i] = MIN_UPPER_CASE_CHAR + rand() % NUMBER_OF_ALPHABETS; in RandStr() 77 str[i] = MIN_LOWER_CASE_CHAR + rand() % NUMBER_OF_ALPHABETS; in RandStr() 83 str[i] = MIN_NUMERIC_CHAR + rand() % NUMBER_OF_DIGITS; in RandStr()
|
/foundation/ai/ai_engine/test/function/set_get_option/ |
H A D | option_function_test.cpp | 153 if (rand() % RAND == 0) { in HWTEST_F() 232 if (rand() % RAND == 0) { in HWTEST_F() 323 if (rand() % RAND == 0) { in HWTEST_F() 380 if (rand() % RAND == 0) { in HWTEST_F()
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/smp/ |
H A D | smp_cmd.h | 39 int SMP_SendMasterIdentification(uint16_t handle, uint16_t ediv, const uint8_t *rand, SMP_SendDataCb cb);
|
/foundation/multimedia/av_codec/test/moduletest/audio_decoder/NativeAPI/ |
H A D | NativeFuzzTest.cpp | 55 c = rand() % CONSTASNTS; in rand_str() 63 int32_t data = -10000 + rand() % 20001; in getIntRand() 121 int32_t strLen = rand() % 1000; in HWTEST_F() 148 int32_t strLen = rand() % 1000; in HWTEST_F()
|
/foundation/multimedia/av_codec/test/moduletest/audio_encoder/NativeAPI/ |
H A D | NativeFuzzTest.cpp | 55 c = rand() % CONSTASNTS; in rand_str() 63 int32_t data = -10000 + rand() % 20001; in getIntRand() 122 int32_t strLen = rand() % 1000; in HWTEST_F() 148 int32_t strLen = rand() % 1000; in HWTEST_F()
|