/test/xts/acts/multimedia/media/media_js_standard/ |
H A D | AVPlayerTestBase.js | 982 let start = Date.now(); 983 console.info(`createTimeWithoutCallback start time is : ${start}`) 986 let execution = parseInt(end - start) 1008 let start = Date.now(); 1009 console.info(`prepareTimeWithoutCallback start time is : ${start}`) 1017 let execution = parseInt(end - start) 1038 let start; 1066 start [all...] |
H A D | AVRecorderTestBase.js | 155 await avRecorder.start((err) => { 156 console.info('case start called'); 159 console.info('start AVRecorder success'); 166 console.info('start AVRecorder failed and error is ' + err.message); 175 await avRecorder.start().then(() => { 177 console.info('start success'); 184 console.info('start failed and catch error is ' + err.message); 358 // start->stop->release 2231 let start = Date.now(); 2232 console.info(`createTimeTestCallback start tim [all...] |
/test/xts/acts/global_lite/i18n_lite/resource_parse_load/src/ |
H A D | hap_resource_test.cpp | 73 auto start = CurrentTimeUsec(); in HWTEST_F() local 75 auto cost = CurrentTimeUsec() - start; in HWTEST_F() 85 start = CurrentTimeUsec(); in HWTEST_F() 87 cost = CurrentTimeUsec() - start; in HWTEST_F() 111 start = CurrentTimeUsec(); in HWTEST_F() 113 cost = CurrentTimeUsec() - start; in HWTEST_F() 152 auto start = CurrentTimeUsec(); in HWTEST_F() local 154 auto cost = CurrentTimeUsec() - start; in HWTEST_F() 166 start = CurrentTimeUsec(); in HWTEST_F() 168 cost = CurrentTimeUsec() - start; in HWTEST_F() 220 auto start = CurrentTimeUsec(); HWTEST_F() local [all...] |
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/image/ |
H A D | image_sweepgradient_test.cpp | 40 float start = DEFAULT_START_VALUE; in TestImageSweepGradient001() local 45 ArkUI_NumberValue value[] = {{.f32 = x}, {.f32 = y}, {.f32 = start}, in TestImageSweepGradient001() 53 ASSERT_EQ(nodeAPI->getAttribute(image, NODE_SWEEP_GRADIENT)->value[PARAM_2].f32, start); in TestImageSweepGradient001() 67 float start = START_VALUE; in TestImageSweepGradient002() local 72 ArkUI_NumberValue value[] = {{.f32 = x}, {.f32 = y}, {.f32 = start}, in TestImageSweepGradient002() 80 ASSERT_EQ(nodeAPI->getAttribute(image, NODE_SWEEP_GRADIENT)->value[PARAM_2].f32, start); in TestImageSweepGradient002() 94 float start = DEFAULT_START_VALUE; in TestImageSweepGradient003() local 99 ArkUI_NumberValue value[] = {{.f32 = x}, {.f32 = y}, {.f32 = start}, in TestImageSweepGradient003() 107 ASSERT_EQ(nodeAPI->getAttribute(image, NODE_SWEEP_GRADIENT)->value[PARAM_2].f32, start); in TestImageSweepGradient003() 121 float start in TestImageSweepGradient004() local [all...] |
/test/xts/tools/lite/reliability/ |
H A D | JSPressTest.js | 55 let start = date.getTime(); 56 let end = start + this.timeout * 1000; 58 while(this.times > 0 || start < end) { 64 start = date.getTime(); 67 while(this.times > 0 || start < end) { 71 start = date.getTime();
|
H A D | RebootPressTest.py | 30 start = datetime.datetime.now() 32 abilitySuccess = "start ability successfully" 38 "aa start -d 123456 -a com.ohos.photos.MainAbility -b com.ohos.photos", waitOut=True) 45 start = datetime.datetime.now() 48 print("The device " + DeviceKey + "can not start APP after reboot") 50 raise "The device " + DeviceKey + "can not start APP after reboot" 53 if (now - start).seconds > int(rebootMaxWaitTime):
|
H A D | NativePressTest.py | 113 start = datetime.datetime.now() variable 115 while (now - start).seconds < int(testTime): 116 print("Now is " + str((now - start).seconds)) 121 PressTestProcess("start " + hdcPath + " shell " + startTestCmd, testFileset)
|
/test/xts/acts/graphic/acts_drawing_native/ |
H A D | DrawingNativeShaderEffectTest.cpp | 125 OH_Drawing_Point2D start = {0, 0}; in HWTEST_F() local 140 OH_Drawing_ShaderEffectCreateLinearGradientWithLocalMatrix(&start, &end, colors, pos, 3, mode, matrix); in HWTEST_F() 146 &start, &end, colors, nullptr, 3, OH_Drawing_TileMode::CLAMP, matrix); in HWTEST_F() 149 &start, &end, colors, pos, 3, OH_Drawing_TileMode::CLAMP, nullptr); in HWTEST_F() 166 OH_Drawing_Point2D start = {0, 0}; in HWTEST_F() local 185 OH_Drawing_ShaderEffectCreateLinearGradientWithLocalMatrix(&start, nullptr, colors, pos, 3, modes[0], matrix); in HWTEST_F() 190 OH_Drawing_ShaderEffectCreateLinearGradientWithLocalMatrix(&start, &end, nullptr, pos, 3, modes[0], matrix); in HWTEST_F() 208 OH_Drawing_Point2D start = {0, 0}; in HWTEST_F() local 220 start = {-1, -1}; in HWTEST_F() 222 OH_Drawing_ShaderEffectCreateLinearGradientWithLocalMatrix(&start, in HWTEST_F() 254 OH_Drawing_Point2D start = {0, 0}; HWTEST_F() local 301 OH_Drawing_Point2D start = {0, 0}; HWTEST_F() local 650 OH_Drawing_Point2D start = {100.f, 0}; // 100.f: start point's x HWTEST_F() local 690 OH_Drawing_Point2D start = {100.f, 0}; // 100.f: start point's x HWTEST_F() local [all...] |
/test/xts/hats/hdf/wlan/wlanBenchmarkTest/ |
H A D | hdf_wifi_benchmark_test.cpp | 103 * @tc.desc: Wifi hal start and stop
111 g_wifi->start(g_wifi);
in BENCHMARK_F() 128 g_wifi->start(g_wifi);
in BENCHMARK_F() 225 g_wifi->start(g_wifi);
in BENCHMARK_F() 248 g_wifi->start(g_wifi);
in BENCHMARK_F() 271 g_wifi->start(g_wifi);
in BENCHMARK_F() 304 g_wifi->start(g_wifi);
in BENCHMARK_F() 325 g_wifi->start(g_wifi);
in BENCHMARK_F() 346 g_wifi->start(g_wifi);
in BENCHMARK_F() 376 g_wifi->start(g_wif in BENCHMARK_F() [all...] |
/test/testfwk/developer_test/examples/sleep/src/ |
H A D | sleep_ex.cpp | 72 struct timeval start;
in ElapsedTime() local 83 gettimeofday(&start, 0);
in ElapsedTime() 86 selfSpent = TimeDiff(&start, &stop);
in ElapsedTime() 88 gettimeofday(&start, 0);
in ElapsedTime() 91 diff = TimeDiff(&start, &stop);
in ElapsedTime()
|
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
H A D | mmanndk1.cpp | 37 void *start = MAP_FAILED;
in Mmap() local 62 start = mmap(nullptr, statbuff.st_size, PROT_READ, MAP_PRIVATE, fileDescribe, PARAM_0);
in Mmap() 63 if (start == MAP_FAILED) {
in Mmap() 68 if (start != MAP_FAILED) {
in Mmap() 69 munmap(start, statbuff.st_size);
in Mmap()
|
H A D | mmanndk.cpp | 97 void *start = mmap(nullptr, stSize, PROT_READ, MAP_PRIVATE, fd, PARAM_0);
in Mincore() local 99 if (!start) {
in Mincore() 105 retVal = mincore(start, TEST_SIZE, vec);
in Mincore() 106 munmap(start, stSize);
in Mincore() 118 void *start;
in Mmap() local 127 start = mmap(nullptr, statbuff.st_size, PROT_READ, MAP_PRIVATE, fd, PARAM_0);
in Mmap() 128 if (start == MAP_FAILED) {
in Mmap() 133 munmap(start, statbuff.st_size);
in Mmap() 338 char *start = static_cast<char *>(mmap(nullptr, len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, PARAM_0));
in RemapFilePages() local 340 ret = remap_file_pages(start, TEST_SIZ in RemapFilePages() [all...] |
/test/xts/acts/kernel_lite/time_posix/src/ |
H A D | ClockTimeTest.cpp | 43 LOG("test start at %ld\n", (long)mTestStatTime.tv_sec);
in SetUpTestCase() 226 struct tms start = {0};
in HWTEST_F() local 228 clock_t stTime = times(&start);
in HWTEST_F() 231 start.tms_utime, start.tms_stime, start.tms_cutime, start.tms_cstime);
in HWTEST_F() 241 (long)(end.tms_utime - start.tms_utime),
in HWTEST_F() 242 (long)(end.tms_stime - start.tms_stime));
in HWTEST_F() 244 if (start in HWTEST_F() [all...] |
/test/xts/acts/distributeddatamgr/relationalStoretest/relationalStoreJstest/hap/entry/src/ohosTest/js/test/ |
H A D | RelationalStoreCustomDir.test.js | 56 console.info(TAG + "************* CustomDirTest0100 start *************");
79 console.info(TAG + "************* CustomDirTest0200 start *************");
130 console.log(TAG + "************* insert start *************");
141 console.info(TAG + "************* query start*************");
173 console.info(TAG + "*************update start*************");
184 console.info(TAG + "************* query start*************");
209 console.info(TAG + "************* delete start*************")
218 console.info(TAG + "************* query start*************")
242 console.info(TAG + "************* CustomDirTest0400 start *************");
271 console.info(TAG + "************* CustomDirTest0500 start *************");
[all...] |
/test/xts/hats/kernel/syscalls/timer/times/ |
H A D | TimesApiTest.cpp | 59 clock_t start = times(&tms1); in HWTEST_F() local 60 EXPECT_GE(start, init); in HWTEST_F() 65 EXPECT_GT(end, start); in HWTEST_F()
|
/test/xts/hats/hdf/wlan/wifi/hal/ |
H A D | wifi_hal_startandstop.cpp | 59 * @tc.desc: Wifi hal start and stop g_wifi test 65 ret1 = g_wifi->start(nullptr); in HWTEST_F() 67 ret1 = g_wifi->start(g_wifi); in HWTEST_F() 77 * @tc.desc: Wifi hal start g_wifi test 83 ret = g_wifi->start(nullptr); in HWTEST_F()
|
/test/xts/acts/developtools/hiplugintest/ |
H A D | hipluginmoduleapitest.cpp | 73 struct timeval start, end; in MemoryPluginTest() local 95 HILOG_DEBUG(LOG_CORE, "start failed"); in MemoryPluginTest() 102 gettimeofday(&start, nullptr); in MemoryPluginTest() 113 timeuse = MS_S * (end.tv_sec - start.tv_sec) + end.tv_usec - start.tv_usec; in MemoryPluginTest()
|
/test/xts/acts/multimedia/av_codec/audio_encoder/src/ |
H A D | avcodec_audio_avbuffer_encoder_demo.cpp | 84 string::size_type start = 0; in SplitStringFully() local 85 string::size_type index = str.find_first_of(separator, start); in SplitStringFully() 88 substring = str.substr(start, index - start); in SplitStringFully() 90 start = str.find_first_not_of(separator, index); in SplitStringFully() 91 if (start == string::npos) { in SplitStringFully() 94 index = str.find_first_of(separator, start); in SplitStringFully() 96 substring = str.substr(start); in SplitStringFully() 263 auto start = chrono::steady_clock::now(); in RunCase() local 269 std::cout << "Encode finished, time = " << std::chrono::duration_cast<chrono::milliseconds>(end - start) in RunCase() [all...] |
/test/xts/acts/multimedia/av_codec/audio_decoder/src/ |
H A D | avcodec_audio_avbuffer_decoder_demo.cpp | 100 string::size_type start = 0; in SplitStringFully() local 101 string::size_type index = str.find_first_of(separator, start); in SplitStringFully() 104 substring = str.substr(start, index - start); in SplitStringFully() 106 start = str.find_first_not_of(separator, index); in SplitStringFully() 107 if (start == string::npos) { in SplitStringFully() 110 index = str.find_first_of(separator, start); in SplitStringFully() 112 substring = str.substr(start); in SplitStringFully() 240 auto start = chrono::steady_clock::now(); in RunCase() local 246 std::cout << "decode finished, time = " << std::chrono::duration_cast<chrono::milliseconds>(end - start) in RunCase() [all...] |
/test/xts/acts/storage/storagefileiov9jstest/entry/src/ohosTest/js/test/members/ |
H A D | watcher.test.js | 57 ret.watcher.start(); 305 watcher.start(); 585 resWatcher.forEach(element => { element.start(); }); 625 resWatcher1.start(); 629 resWatcher2.start(); 660 watcher.start(); 701 * @tc.desc Test Invalid parameter, put a parameter in watcher.start. 714 watcher.start(-1); 741 watcher.start(); 822 watcher.start(); [all...] |
/test/xts/hats/kernel/prctl/ |
H A D | PrctlApiTest.cpp | 137 uintptr_t start, end; in SetVmaAnonName() local 138 if (sscanf_s(lines[i].c_str(), "%" SCNxPTR "-%" SCNxPTR " ", &start, &end) != 2) in SetVmaAnonName() 142 if (start < last_end) in SetVmaAnonName()
|
/test/xts/acts/ai/nncore/opstest/src/ |
H A D | range_test.cpp | 35 OHNNOperandTest start = {OH_NN_INT64, OH_NN_RANGE_START, {1}, &startValue, sizeof(int64_t)};
member 39 .operands = {input, output, start, limit, delta},
55 OHNNOperandTest start = {OH_NN_INT64, OH_NN_RANGE_START, {1}, &startValue, sizeof(int64_t)};
member 59 .operands = {input, output, start, limit, delta},
75 OHNNOperandTest start = {OH_NN_INT64, OH_NN_RANGE_START, {1}, &startValue, sizeof(int64_t)};
member 79 .operands = {input, output, start, limit, delta},
95 OHNNOperandTest start = {OH_NN_INT64, OH_NN_RANGE_START, {1}, &startValue, sizeof(int64_t)};
member 99 .operands = {input, output, start, limit, delta},
115 OHNNOperandTest start = {OH_NN_INT64, OH_NN_RANGE_START, {1}, &startValue, sizeof(int64_t)};
member 119 .operands = {input, output, start, limi [all...] |
/test/xts/hats/kernel/purgeableMem/ |
H A D | purgeable_cpp_test.cpp | 38 TestDataBuilder(char start, char end) in TestDataBuilder() argument 40 this->start = start; in TestDataBuilder() 51 for (char ch = start; ch <= end && len < size; ch++) { in Build() 56 start << "~" << end << ", data=[" << str << "]" << std::endl; in Build() 66 char start, end; member in OHOS::PurgeableMem::TestDataBuilder
|
/test/xts/hats/kernel/syscalls/fileio/lseek/ |
H A D | LseekApiTest.cpp | 78 // file start position test in HWTEST_F() 133 off_t start = TEST_LEN / 2; in HWTEST_F() local 134 off_t initPos = lseek(fd, start, SEEK_SET); in HWTEST_F() 135 EXPECT_EQ(initPos, start); in HWTEST_F()
|
/test/xts/hats/hdf/hdf_lite/display/ |
H A D | loadbmp_test.c | 185 uint8_t *start = NULL; in LoadRgbData() local 193 /* start color convert */ in LoadRgbData() 194 start = origBuf + ((h - 1) - i) * stride + j * videoLogo->bpp; in LoadRgbData() 196 c.r = *(start); in LoadRgbData() 197 c.g = *(start + ONE_OFFSET); in LoadRgbData() 198 c.b = *(start + TWO_OFFSET); in LoadRgbData() 237 /* start color convert */ in Copy3BitsByFmt()
|