Home
last modified time | relevance | path

Searched refs:start (Results 1 - 25 of 1358) sorted by relevance

12345678910>>...55

/drivers/hdf_core/framework/utils/include/
H A Dhcs_blob_if.h48 static inline uint8_t HcsByteCodeToUint8(const char *start) in HcsByteCodeToUint8() argument
50 return *(uint8_t *)(start); in HcsByteCodeToUint8()
53 static inline uint16_t HcsByteCodeToUint16(const char *start) in HcsByteCodeToUint16() argument
55 return *(uint16_t *)(start); in HcsByteCodeToUint16()
58 static inline uint32_t HcsByteCodeToUint32(const char *start) in HcsByteCodeToUint32() argument
60 return *(uint32_t *)(start); in HcsByteCodeToUint32()
63 static inline uint64_t HcsByteCodeToUint64(const char *start) in HcsByteCodeToUint64() argument
65 return *(uint64_t *)(start); in HcsByteCodeToUint64()
68 static inline uint32_t HcsGetPrefix(const char *start) in HcsGetPrefix() argument
70 return HcsIsByteAlign() ? HcsByteCodeToUint32(start) in HcsGetPrefix()
[all...]
/drivers/peripheral/audio/test/systemtest/hdi_service/hdiperformace/src/
H A Daudio_idlhdirender_performace_test.cpp88 gettimeofday(&audiopara.start, NULL); in HWTEST_F()
94 (audiopara.start.tv_sec * MICROSECOND + audiopara.start.tv_usec); in HWTEST_F()
122 gettimeofday(&audiopara.start, NULL); in HWTEST_F()
129 (audiopara.start.tv_sec * MICROSECOND + audiopara.start.tv_usec); in HWTEST_F()
154 gettimeofday(&audiopara.start, NULL); in HWTEST_F()
159 (audiopara.start.tv_sec * MICROSECOND + audiopara.start.tv_usec); in HWTEST_F()
186 gettimeofday(&audiopara.start, NUL in HWTEST_F()
[all...]
H A Daudio_idlhdicapture_performace_test.cpp81 gettimeofday(&audiopara.start, NULL); in HWTEST_F()
86 (audiopara.start.tv_sec * MICROSECOND + audiopara.start.tv_usec); in HWTEST_F()
109 gettimeofday(&audiopara.start, NULL); in HWTEST_F()
116 (audiopara.start.tv_sec * MICROSECOND + audiopara.start.tv_usec); in HWTEST_F()
142 gettimeofday(&audiopara.start, NULL); in HWTEST_F()
147 (audiopara.start.tv_sec * MICROSECOND + audiopara.start.tv_usec); in HWTEST_F()
171 gettimeofday(&audiopara.start, NUL in HWTEST_F()
[all...]
H A Daudio_idlhdiadapter_performace_test.cpp84 gettimeofday(&audiopara.start, NULL); in HWTEST_F()
89 (audiopara.start.tv_sec * MICROSECOND + audiopara.start.tv_usec); in HWTEST_F()
114 gettimeofday(&audiopara.start, NULL); in HWTEST_F()
125 (audiopara.start.tv_sec * MICROSECOND + audiopara.start.tv_usec); in HWTEST_F()
148 gettimeofday(&audiopara.start, NULL); in HWTEST_F()
153 (audiopara.start.tv_sec * MICROSECOND + audiopara.start.tv_usec); in HWTEST_F()
182 gettimeofday(&audiopara.start, NUL in HWTEST_F()
[all...]
H A Daudio_idlhdimanager_performace_test.cpp73 gettimeofday(&audiopara.start, NULL); in HWTEST_F()
78 (audiopara.start.tv_sec * MICROSECOND + audiopara.start.tv_usec); in HWTEST_F()
105 gettimeofday(&audiopara.start, NULL); in HWTEST_F()
111 (audiopara.start.tv_sec * MICROSECOND + audiopara.start.tv_usec); in HWTEST_F()
142 gettimeofday(&audiopara.start, NULL); in HWTEST_F()
147 (audiopara.start.tv_sec * MICROSECOND + audiopara.start.tv_usec); in HWTEST_F()
/drivers/hdf_core/framework/utils/src/hcs_parser/
H A Dhcs_blob_if.c21 int32_t HcsGetDataTypeOffset(const char *start) in HcsGetDataTypeOffset() argument
24 switch (HcsGetPrefix(start)) { in HcsGetDataTypeOffset()
39 len = HCS_STRING_LENGTH(start + HCS_PREFIX_LENGTH) + HCS_PREFIX_LENGTH; in HcsGetDataTypeOffset()
48 static int32_t HcsGetArrayLength(const char *start) in HcsGetArrayLength() argument
53 if (!HcsSwapToUint16(&count, start + HCS_PREFIX_LENGTH, CONFIG_WORD)) { in HcsGetArrayLength()
58 int32_t lenData = HcsGetDataTypeOffset(start + arrayLen); in HcsGetArrayLength()
67 int32_t HcsGetAttrLength(const char *start) in HcsGetAttrLength() argument
69 int32_t length = HCS_PREFIX_LENGTH + HCS_STRING_LENGTH(start + HCS_PREFIX_LENGTH); in HcsGetAttrLength()
71 switch (HcsGetPrefix(start + length)) { in HcsGetAttrLength()
78 dataLen = HcsGetDataTypeOffset(start in HcsGetAttrLength()
90 HcsGetNodeOrAttrLength(const char *start) HcsGetNodeOrAttrLength() argument
195 HcsCheckBlobFormat(const char *start, uint32_t length) HcsCheckBlobFormat() argument
[all...]
/drivers/hdf_core/framework/support/posix/src/
H A Dosal_time.c36 int32_t OsalDiffTime(const OsalTimespec *start, const OsalTimespec *end, OsalTimespec *diff) in OsalDiffTime() argument
40 if (start == NULL || end == NULL || diff == NULL) { in OsalDiffTime()
45 if ((start->sec > end->sec) || ((end->sec == start->sec) && (end->usec < start->usec))) { in OsalDiffTime()
46 HDF_LOGE("%s start time later then end time", __func__); in OsalDiffTime()
50 if (end->usec < start->usec) { in OsalDiffTime()
55 if ((start->sec > UINT64_MAX - sec) || (end->usec > UINT64_MAX - usec) || in OsalDiffTime()
56 (end->sec < start->sec + sec) || (end->usec + usec < start in OsalDiffTime()
[all...]
/drivers/peripheral/camera/test/mpi/src/
H A Dperformance_hdi_test.cpp27 float PerformanceHdiTest::calTime(struct timeval start, struct timeval end) in calTime() argument
30 time_use = (end.tv_sec - start.tv_sec) * TIME_TRANSFORMATION_US + (end.tv_usec - start.tv_usec); in calTime()
55 struct timeval start; in HWTEST_F() local
62 gettimeofday(&start, NULL); in HWTEST_F()
65 time_use = calTime(start, end); in HWTEST_F()
85 struct timeval start; in HWTEST_F() local
95 gettimeofday(&start, NULL); in HWTEST_F()
98 time_use = calTime(start, end); in HWTEST_F()
122 struct timeval start; in HWTEST_F() local
156 struct timeval start; HWTEST_F() local
202 struct timeval start; HWTEST_F() local
247 struct timeval start; HWTEST_F() local
280 struct timeval start; HWTEST_F() local
316 struct timeval start; HWTEST_F() local
349 struct timeval start; HWTEST_F() local
391 struct timeval start; HWTEST_F() local
433 struct timeval start; HWTEST_F() local
503 struct timeval start; HWTEST_F() local
567 struct timeval start; HWTEST_F() local
604 struct timeval start; HWTEST_F() local
672 struct timeval start; HWTEST_F() local
712 struct timeval start; HWTEST_F() local
772 struct timeval start; HWTEST_F() local
822 struct timeval start; HWTEST_F() local
895 struct timeval start; HWTEST_F() local
968 struct timeval start; HWTEST_F() local
[all...]
/drivers/hdf_core/adapter/khdf/linux/platform/gpio/
H A Dgpio_adapter.c42 gpio_set_value_cansleep(cntlr->start + local, val); in LinuxGpioWrite()
53 *val = (gpio_get_value_cansleep(cntlr->start + local) == 0) ? GPIO_VAL_LOW : GPIO_VAL_HIGH; in LinuxGpioRead()
71 ret = gpio_direction_input(cntlr->start + local); in LinuxGpioSetDir()
77 val = gpio_get_value_cansleep(cntlr->start + local); in LinuxGpioSetDir()
81 ret = gpio_direction_output(cntlr->start + local, val); in LinuxGpioSetDir()
101 dirGet = gpiod_get_direction(gpio_to_desc(cntlr->start + local)); in LinuxGpioGetDir()
139 gpio = cntlr->start + local; in LinuxGpioSetIrq()
174 gpio = cntlr->start + local; in LinuxGpioUnsetIrq()
194 gpio = cntlr->start + local; in LinuxGpioEnableIrq()
213 gpio = cntlr->start in LinuxGpioDisableIrq()
[all...]
/drivers/hdf_core/framework/support/platform/src/gpio/
H A Dgpio_manager.c33 freeCount = cntlrCur->start; in GpioCntlrCheckStart()
35 freeStart = cntlrLast->start + cntlrLast->count; in GpioCntlrCheckStart()
36 freeCount = cntlrCur->start - freeStart; in GpioCntlrCheckStart()
39 if (cntlr->start < freeStart) { in GpioCntlrCheckStart()
40 HDF_LOGE("GpioCntlrCheckStart: start:%hu not available(freeStart:%hu, freeCount:%hu)", in GpioCntlrCheckStart()
41 cntlr->start, freeStart, freeCount); in GpioCntlrCheckStart()
45 if ((cntlr->start + cntlr->count) <= (freeStart + freeCount)) { in GpioCntlrCheckStart()
53 if (cntlr->start >= (cntlrLast->start + cntlrLast->count)) { in GpioCntlrCheckStart()
56 HDF_LOGE("GpioCntlrCheckStart: start in GpioCntlrCheckStart()
[all...]
/test/xts/acts/global_lite/i18n_lite/resource_parse_load/src/
H A Dhap_resource_test.cpp73 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...]
/drivers/hdf_core/adapter/khdf/liteos/osal/src/
H A Dosal_time.c56 int32_t OsalDiffTime(const OsalTimespec *start, const OsalTimespec *end, OsalTimespec *diff) in OsalDiffTime() argument
61 if (start == NULL || end == NULL || diff == NULL) { in OsalDiffTime()
66 if (start->sec > end->sec) { in OsalDiffTime()
67 HDF_LOGE("%s start time later then end time", __func__); in OsalDiffTime()
71 if (end->usec < start->usec) { in OsalDiffTime()
75 diff->usec = usec + end->usec - start->usec; in OsalDiffTime()
76 diff->sec = end->sec - start->sec - sec; in OsalDiffTime()
/drivers/hdf_core/adapter/khdf/liteos_m/osal/src/
H A Dosal_time.c55 int32_t OsalDiffTime(const OsalTimespec *start, const OsalTimespec *end, OsalTimespec *diff) in OsalDiffTime() argument
60 if (start == NULL || end == NULL || diff == NULL) { in OsalDiffTime()
65 if (start->sec > end->sec) { in OsalDiffTime()
66 HDF_LOGE("%{public}s start time later then end time", __func__); in OsalDiffTime()
70 if (end->usec < start->usec) { in OsalDiffTime()
74 diff->usec = usec + end->usec - start->usec; in OsalDiffTime()
75 diff->sec = end->sec - start->sec - sec; in OsalDiffTime()
/drivers/hdf_core/adapter/khdf/uniproton/osal/src/
H A Dosal_time.c56 int32_t OsalDiffTime(const OsalTimespec *start, const OsalTimespec *end, OsalTimespec *diff) in OsalDiffTime() argument
61 if (start == NULL || end == NULL || diff == NULL) { in OsalDiffTime()
66 if (start->sec > end->sec) { in OsalDiffTime()
67 HDF_LOGE("%{public}s start time later then end time", __func__); in OsalDiffTime()
71 if (end->usec < start->usec) { in OsalDiffTime()
75 diff->usec = usec + end->usec - start->usec; in OsalDiffTime()
76 diff->sec = end->sec - start->sec - sec; in OsalDiffTime()
/test/xts/acts/multimedia/media/media_js_standard/
H A DAVPlayerTestBase.js982 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 DAVRecorderTestBase.js155 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...]
/drivers/peripheral/codec/test/demo/jpeg/src/
H A Dcodec_jpeg_helper.cpp96 int8_t *start = buffer; in DessambleJpeg() local
98 while (start < end) { in DessambleJpeg()
99 JpegMarker marker = (JpegMarker)FindMarker(start); in DessambleJpeg()
100 start += 2; // 2: marker len in DessambleJpeg()
106 start += DessambleSof(start, decInfo); in DessambleJpeg()
109 start += DessambleDht(start, decInfo); in DessambleJpeg()
112 start += DessambleSos(start, decInf in DessambleJpeg()
571 FindMarker(int8_t *start) FindMarker() argument
[all...]
/drivers/hdf_core/adapter/khdf/linux/osal/src/
H A Dosal_time.c52 int32_t OsalDiffTime(const OsalTimespec *start, const OsalTimespec *end, OsalTimespec *diff) in OsalDiffTime() argument
56 if (start == NULL || end == NULL || diff == NULL) { in OsalDiffTime()
61 if (start->sec > end->sec) { in OsalDiffTime()
62 HDF_LOGE("%s start time later then end time", __func__); in OsalDiffTime()
66 if (end->usec < start->usec) { in OsalDiffTime()
70 diff->usec = usec + end->usec - start->usec; in OsalDiffTime()
71 diff->sec = end->sec - start->sec - sec; in OsalDiffTime()
/test/xts/tools/lite/reliability/
H A DJSPressTest.js55 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();
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/image/
H A Dimage_sweepgradient_test.cpp40 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...]
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/
H A Dhdf_manager_config_file.py49 start = match_obj.start()
50 if start == -1:
53 start += len(match_obj.group(0)) - 1
54 end = start
55 for i in range(start, len(self.contents)):
66 if end != start:
67 while end > start + 1:
71 return hdf_utils.SectionRange(start, end)
/test/testfwk/developer_test/examples/sleep/src/
H A Dsleep_ex.cpp72 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 Dmmanndk1.cpp37 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()
/drivers/hdf_core/adapter/khdf/liteos/model/storage/src/mtd/
H A Dmtd_legacy_lite.c154 int hinand_read(void *memaddr, unsigned long start, unsigned long size) in hinand_read() argument
162 ret = MtdDeviceRead(g_nandMtd, (off_t)start, (size_t)size, (uint8_t *)memaddr); in hinand_read()
169 int hinand_write(void *memaddr, unsigned long start, unsigned long size) in hinand_write() argument
177 ret = MtdDeviceWrite(g_nandMtd, (off_t)start, (size_t)size, (const uint8_t *)memaddr); in hinand_write()
184 int hinand_erase(unsigned long start, unsigned long size) in hinand_erase() argument
193 ret = MtdDeviceErase(g_nandMtd, (off_t)start, (size_t)size, &failAddr); in hinand_erase()
200 int hinand_yaffs_read(void *memaddr, unsigned long start, unsigned long size) in hinand_yaffs_read() argument
208 ret = MtdDeviceReadWithOob(g_nandMtd, (off_t)start, (size_t)size, (uint8_t *)memaddr); in hinand_yaffs_read()
215 int hinand_yaffs_write(void *memaddr, unsigned long start, unsigned long size) in hinand_yaffs_write() argument
223 ret = MtdDeviceWriteWithOob(g_nandMtd, (off_t)start, (size_ in hinand_yaffs_write()
[all...]
/test/xts/acts/graphic/acts_drawing_native/
H A DDrawingNativeShaderEffectTest.cpp125 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...]

Completed in 14 milliseconds

12345678910>>...55