Home
last modified time | relevance | path

Searched refs:st (Results 1 – 25 of 228) sorted by relevance

12345678910

/ohos5.0/base/account/os_account/frameworks/osaccount/native/test/benchmarktest/
H A Dos_account_manager_benchmark_test.cpp60 benchmark::State &st) in BENCHMARK_F()
64 for (auto _ : st) { in BENCHMARK_F()
87 for (auto _ : st) { in BENCHMARK_F()
107 for (auto _ : st) { in BENCHMARK_F()
128 for (auto _ : st) { in BENCHMARK_F()
150 for (auto _ : st) { in BENCHMARK_F()
170 for (auto _ : st) { in BENCHMARK_F()
189 for (auto _ : st) { in BENCHMARK_F()
210 for (auto _ : st) { in BENCHMARK_F()
231 for (auto _ : st) { in BENCHMARK_F()
[all …]
/ohos5.0/base/powermgr/battery_manager/test/benchmarktest/
H A Dbattery_benchmark_test.cpp46 for (auto _ : st) { in BENCHMARK_F()
64 for (auto _ : st) { in BENCHMARK_F()
82 for (auto _ : st) { in BENCHMARK_F()
100 for (auto _ : st) { in BENCHMARK_F()
118 for (auto _ : st) { in BENCHMARK_F()
135 for (auto _ : st) { in BENCHMARK_F()
152 for (auto _ : st) { in BENCHMARK_F()
169 for (auto _ : st) { in BENCHMARK_F()
187 for (auto _ : st) { in BENCHMARK_F()
205 for (auto _ : st) { in BENCHMARK_F()
[all …]
/ohos5.0/base/telephony/core_service/frameworks/native/src/
H A Dcore_service_proxy.cpp54 if (st != ERR_NONE) { in GetPsRadioTech()
81 if (st != ERR_NONE) { in GetCsRadioTech()
110 if (st != ERR_NONE) { in GetOperatorNumeric()
137 if (st != ERR_NONE) { in GetResidentNetworkNumeric()
159 if (st != ERR_NONE) { in GetOperatorName()
244 if (st != ERR_NONE) { in GetNetworkState()
272 if (st != ERR_NONE) { in GetSignalInfoList()
426 if (st != ERR_NONE) { in GetRadioState()
450 if (st != ERR_NONE) { in GetIsoCountryCodeForNetwork()
589 if (st != ERR_NONE) { in HasSimCard()
[all …]
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/utils/test/
H A Dfile_utils_test.cpp87 struct stat st; variable
123 struct stat st; variable
126 EXPECT_TRUE(st.st_uid == uid);
127 EXPECT_TRUE(st.st_gid == gid);
136 EXPECT_TRUE(st.st_uid == uid);
137 EXPECT_TRUE(st.st_gid == gid);
157 struct stat st; variable
229 struct stat st; variable
233 EXPECT_TRUE(st.st_uid == uid);
234 EXPECT_TRUE(st.st_gid == gid);
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/adapter/bluetooth/
H A Dassert_helper.h68 this->st = stParam; in Update()
78 if (this->st != stParam) { in Expect()
85 this->st = -1; in Expect()
89 int st;
99 bool Update(int id, const SoftBusBtAddr *addr, int st = 0)
101 if (!StRecordCtx::Update(id, st)) {
110 auto result = StRecordCtx::Expect(id, st);
135 bool Update(int id, int st, int valParam) in Update() argument
137 if (!StRecordCtx::Update(id, st)) { in Update()
144 testing::AssertionResult Expect(int id, int st, int valParam) in Expect() argument
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/adapter/broadcast/
H A Dassert_helper.h63 this->st = stParam; in Update()
73 if (this->st != stParam) { in Expect()
80 this->st = -1; in Expect()
84 int st;
94 bool Update(int id, const SoftbusMacAddr *addr, int st = 0)
96 if (!StRecordCtx::Update(id, st)) {
105 auto result = StRecordCtx::Expect(id, st);
130 bool Update(int id, int st, int valParam) in Update() argument
132 if (!StRecordCtx::Update(id, st)) { in Update()
139 testing::AssertionResult Expect(int id, int st, int valParam) in Expect() argument
[all …]
/ohos5.0/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/include/
H A Dcert_manager_double_list.h47 #define CM_DLIST_ITER(st, head) \ argument
49 …for (p = (head)->next, (st) = (__typeof__(st))p; p != (head); p = p->next, (st) = (__typeof__(st))…
51 #define CM_DLIST_SAFT_ITER(st, head) \ argument
54 for (p = (head)->next, (st) = (__typeof__(st))p, tmp = *p; p != (head); \
55 p = tmp.next, tmp = *p, (st) = (__typeof__(st))p)
/ohos5.0/base/security/huks/utils/list/
H A Dhks_double_list.h45 #define HKS_DLIST_ITER(st, head) \ argument
49 (st) = (__typeof__(st))p; \
51 for (; p != NULL && p != (head); p = p->next, (st) = (__typeof__(st))p)
53 #define HKS_DLIST_SAFT_ITER(st, head) \ argument
56 for (p = (head)->next, (st) = (__typeof__(st))p, _tmp = *p; p != (head); \
57 p = _tmp.next, _tmp = *p, (st) = (__typeof__(st))p)
/ohos5.0/drivers/peripheral/camera/test/benchmarktest/v1_2/src/
H A Dcamera_benchmark_test.cpp50 benchmark::State &st) in BENCHMARK_F()
55 for (auto _ : st) { in BENCHMARK_F()
70 benchmark::State &st) in BENCHMARK_F()
74 for (auto _ : st) { in BENCHMARK_F()
89 benchmark::State &st) in BENCHMARK_F()
98 for (auto _ : st) { in BENCHMARK_F()
140 for (auto _ : st) { in BENCHMARK_F()
160 for (auto _ : st) { in BENCHMARK_F()
189 for (auto _ : st) { in BENCHMARK_F()
208 for (auto _ : st) { in BENCHMARK_F()
[all …]
/ohos5.0/base/update/updater/utils/
H A Dutils_fs.cpp83 struct stat st {}; in GetFilesFromDirectory() struct
84 if (stat(fileName.c_str(), &st) == 0) { in GetFilesFromDirectory()
89 if (isRecursive && S_ISDIR(st.st_mode)) { in GetFilesFromDirectory()
93 totalSize += st.st_size; in GetFilesFromDirectory()
119 struct stat st {}; in RemoveDir() struct
121 stat(file_name.c_str(), &st); in RemoveDir()
122 if (S_ISDIR(st.st_mode)) { in RemoveDir()
136 struct stat st {}; in IsFileExist() struct
137 if (stat(path.c_str(), &st) == 0 && S_ISREG(st.st_mode)) { in IsFileExist()
145 struct stat st {}; in IsDirExist() struct
[all …]
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_util/core/
H A Dnstackx_log.c26 SYSTEMTIME st = {0}; in DefaultLogImpl() local
28 GetLocalTime(&st); in DefaultLogImpl()
29 …printf("%02u-%02u %02u:%02u:%02u.%03u %d %d %d %s: ", st.wMonth, st.wDay, st.wHour, st.wMinute, st in DefaultLogImpl()
30 st.wMilliseconds, GetCurrentProcessId(), GetCurrentThreadId(), level, tag); in DefaultLogImpl()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/utils/
H A Dfile_utils.cpp82 struct stat st; in IsDir() local
88 return S_ISDIR(st.st_mode); in IsDir()
127 struct stat st; in PrepareDir() local
144 if (((st.st_uid != uid) || (st.st_gid != gid)) && ChOwn(path, uid, gid)) { in PrepareDir()
224 struct stat st; in TravelChmod() local
230 if (stat(path.c_str(), &st) < 0 || !S_ISDIR(st.st_mode)) { in TravelChmod()
279 struct stat st; in GetSubDirs() local
306 struct stat st; in ReadDigitDir() local
343 struct stat st; in OpenSubFile() local
502 struct stat st; in IsSameGidUid() local
[all …]
/ohos5.0/drivers/peripheral/camera/test/benchmarktest/v1_0/src/
H A Dcamera_benchmark_test.cpp45 benchmark::State &st) in BENCHMARK_F()
69 benchmark::State &st) in BENCHMARK_F()
72 for (auto _ : st) { in BENCHMARK_F()
87 benchmark::State &st) in BENCHMARK_F()
91 for (auto _ : st) { in BENCHMARK_F()
112 for (auto _ : st) { in BENCHMARK_F()
131 for (auto _ : st) { in BENCHMARK_F()
150 for (auto _ : st) { in BENCHMARK_F()
190 for (auto _ : st) { in BENCHMARK_F()
231 for (auto _ : st) { in BENCHMARK_F()
[all …]
/ohos5.0/base/startup/init/services/modules/init_eng/
H A Dinit_eng.c34 struct stat st = {}; in IsFileExistWithType() local
35 if (lstat(file, &st) == 0) { in IsFileExistWithType()
38 if (S_ISDIR(st.st_mode)) { in IsFileExistWithType()
43 if (S_ISREG(st.st_mode)) { in IsFileExistWithType()
48 if (S_ISLNK(st.st_mode)) { in IsFileExistWithType()
165 struct stat st = {}; in DebugFilesOverlay() local
166 if (fstatat(dfd, de->d_name, &st, AT_SYMLINK_NOFOLLOW) < 0) { in DebugFilesOverlay()
169 if (S_ISDIR(st.st_mode)) { in DebugFilesOverlay()
171 } else if (S_ISREG(st.st_mode)) { in DebugFilesOverlay()
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/muxer/
H A Dffmpeg_muxer_plugin.cpp628 ResetCodecParameter(st->codecpar); in AddAudioTrack()
630 st->codecpar->codec_id = codeID; in AddAudioTrack()
632 st->codecpar->channels = channels; in AddAudioTrack()
650 trackIndex = st->index; in AddAudioTrack()
672 st->codecpar->codec_id = codeID; in AddVideoTrack()
674 st->codecpar->width = width; in AddVideoTrack()
675 st->codecpar->height = height; in AddVideoTrack()
684 trackIndex = st->index; in AddVideoTrack()
713 st->codecpar->codec_id = codeID; in AddTimedMetaTrack()
716 trackIndex = st->index; in AddTimedMetaTrack()
[all …]
/ohos5.0/base/security/device_security_level/baselib/utils/src/
H A Dutils_timer.cpp57 UtilsTimer &st = DelayedRefSingleton<UtilsTimer>::GetInstance(); in DslmUtilsStartPeriodicTimerTask() local
58 …uint32_t timerId = st.Register([callback, context]() { DoTimerProcess(callback, context); }, inter… in DslmUtilsStartPeriodicTimerTask()
64 UtilsTimer &st = DelayedRefSingleton<UtilsTimer>::GetInstance(); in DslmUtilsStartOnceTimerTask() local
65 …uint32_t timerId = st.Register([callback, context]() { DoTimerProcess(callback, context); }, inter… in DslmUtilsStartOnceTimerTask()
71 UtilsTimer &st = DelayedRefSingleton<UtilsTimer>::GetInstance(); in DslmUtilsStopTimerTask() local
72 st.Unregister(static_cast<uint32_t>(handle)); in DslmUtilsStopTimerTask()
/ohos5.0/drivers/interface/camera/metadata/src/
H A Dcamera_metadata_info.cpp1291 return st; in U8ItemToString()
1305 return st; in U8ItemToString()
1312 return st; in U8ItemToString()
1321 return st; in I32ItemToString()
1342 return st; in I32ItemToString()
1372 return st; in U32ItemToString()
1402 return st; in I64ItemToString()
1432 return st; in FloatItemToString()
1462 return st; in DoubleItemToString()
1495 return st; in RationalItemToString()
[all …]
/ohos5.0/drivers/peripheral/camera/test/benchmarktest/v1_1/src/
H A Dcamera_benchmark_test.cpp46 benchmark::State &st) in BENCHMARK_F()
53 for (auto _ : st) { in BENCHMARK_F()
68 benchmark::State &st) in BENCHMARK_F()
72 for (auto _ : st) { in BENCHMARK_F()
89 benchmark::State &st) in BENCHMARK_F()
93 for (auto _ : st) { in BENCHMARK_F()
/ohos5.0/base/update/updater/services/diffpatch/
H A Ddiffpatch.cpp58 struct stat st {}; in PatchMapFile() struct
59 int32_t ret = fstat(info.fd, &st); in PatchMapFile()
64 if (S_ISBLK(st.st_mode)) { in PatchMapFile()
65 st.st_size = lseek(info.fd, 0, SEEK_END); in PatchMapFile()
69 void *mappedData = mmap(nullptr, st.st_size, PROT_READ, MAP_PRIVATE, info.fd, 0); in PatchMapFile()
76 info.length = static_cast<size_t>(st.st_size); in PatchMapFile()
/ohos5.0/drivers/peripheral/light/test/benchmarktest/
H A Dhdf_light_benchmark_test.cpp65 BENCHMARK_F(LightBenchmarkTest, GetLightInfo)(benchmark::State &st) in BENCHMARK_F()
72 for (auto _ : st) { in BENCHMARK_F()
91 BENCHMARK_F(LightBenchmarkTest, TurnOnLight)(benchmark::State &st) in BENCHMARK_F()
111 for (auto _ : st) { in BENCHMARK_F()
129 BENCHMARK_F(LightBenchmarkTest, TurnOffLight)(benchmark::State &st) in BENCHMARK_F()
153 for (auto _ : st) { in BENCHMARK_F()
168 BENCHMARK_F(LightBenchmarkTest, TurnOnMultiLights)(benchmark::State &st) in BENCHMARK_F()
185 for (auto _ : st) { in BENCHMARK_F()
/ohos5.0/foundation/filemanagement/app_file_service/frameworks/native/backup_ext/src/
H A Dtar_file.cpp200 string uid = I2Ocs(sizeof(hdr.uid), st.st_uid); in I2OcsConvert()
201 string gid = I2Ocs(sizeof(hdr.gid), st.st_gid); in I2OcsConvert()
219 if (S_ISREG(st.st_mode)) { in I2OcsConvert()
221 } else if (S_ISDIR(st.st_mode)) { in I2OcsConvert()
226 off_t hdrSize = st.st_size; in I2OcsConvert()
239 if (S_ISDIR(st.st_mode) && fileName.back() != '/') { in I2OcsConvert()
281 if (!I2OcsConvert(st, hdr, fileName)) { in AddFile()
293 FillOwnerName(hdr, st); in AddFile()
311 if (!WriteFileContent(fileName, st.st_size, err)) { in AddFile()
470 struct passwd *pw = getpwuid(st.st_uid); in FillOwnerName()
[all …]
/ohos5.0/base/startup/init/test/unittest/modules/
H A Deng_unittest.cpp55 struct stat st {}; in RemoveDir() struct
57 stat(file_name.c_str(), &st); in RemoveDir()
58 if (S_ISDIR(st.st_mode)) { in RemoveDir()
75 struct stat st {}; in IsFileExist() struct
76 if (stat(path.c_str(), &st) == 0 && S_ISREG(st.st_mode)) { in IsFileExist()
87 struct stat st {}; in IsDirExist() struct
88 if (stat(path.c_str(), &st) == 0 && S_ISDIR(st.st_mode)) { in IsDirExist()
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/ipc/src/
H A Dbluetooth_hid_host_observer_proxy.cpp32 int32_t st = Remote()->SendRequest(static_cast<uint32_t>( in OnConnectionStateChanged() local
34 if (st != ERR_NONE) { in OnConnectionStateChanged()
35 HILOGW("OnConnectionStateChanged failed, error code is %{public}d", st); in OnConnectionStateChanged()
36 return st; in OnConnectionStateChanged()
H A Dbluetooth_pan_observer_proxy.cpp32 int32_t st = Remote()->SendRequest(static_cast<uint32_t>( in OnConnectionStateChanged() local
34 if (st != ERR_NONE) { in OnConnectionStateChanged()
35 HILOGE("OnConnectionStateChanged failed, error code is %{public}d", st); in OnConnectionStateChanged()
36 return st; in OnConnectionStateChanged()
/ohos5.0/commonlibrary/rust/ylong_json/examples/
H A Dylong_json_perf.rs49 let st = Instant::now(); in main() localVariable
57 ed.duration_since(st).as_secs_f64() * 1000f64 in main()
63 let st = Instant::now(); in main() localVariable
71 ed.duration_since(st).as_secs_f64() * 1000f64 in main()

12345678910