Home
last modified time | relevance | path

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

12

/base/account/os_account/frameworks/osaccount/native/test/benchmarktest/
Dos_account_manager_benchmark_test.cpp60 benchmark::State &st) in BENCHMARK_F()
64 for (auto _ : st) { in BENCHMARK_F()
83 benchmark::State &st) in BENCHMARK_F()
87 for (auto _ : st) { in BENCHMARK_F()
104 benchmark::State &st) in BENCHMARK_F()
108 for (auto _ : st) { in BENCHMARK_F()
125 benchmark::State &st) in BENCHMARK_F()
129 for (auto _ : st) { in BENCHMARK_F()
147 benchmark::State &st) in BENCHMARK_F()
151 for (auto _ : st) { in BENCHMARK_F()
[all …]
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/include/
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)
/base/security/huks/utils/list/
Dhks_double_list.h45 #define HKS_DLIST_ITER(st, head) \ argument
47 …for (p = (head)->next, (st) = (__typeof__(st))p; p != (head); p = p->next, (st) = (__typeof__(st))…
49 #define HKS_DLIST_SAFT_ITER(st, head) \ argument
52 for (p = (head)->next, (st) = (__typeof__(st))p, _tmp = *p; p != (head); \
53 p = _tmp.next, _tmp = *p, (st) = (__typeof__(st))p)
/base/security/access_token/interfaces/kits/accesstoken/test/benchmarktest/
Dnapi_atmanager_test.cpp62 benchmark::State &st) in BENCHMARK_F()
65 for (auto _ : st) { in BENCHMARK_F()
80 benchmark::State &st) in BENCHMARK_F()
83 for (auto _ : st) { in BENCHMARK_F()
100 benchmark::State &st) in BENCHMARK_F()
103 for (auto _ : st) { in BENCHMARK_F()
119 benchmark::State &st) in BENCHMARK_F()
122 for (auto _ : st) { in BENCHMARK_F()
138 benchmark::State &st) in BENCHMARK_F()
141 for (auto _ : st) { in BENCHMARK_F()
/base/telephony/core_service/frameworks/native/src/
Dcore_service_proxy.cpp53 int32_t st = remote->SendRequest(uint32_t(InterfaceID::GET_PS_RADIO_TECH), data, reply, option); in GetPsRadioTech() local
54 if (st != ERR_NONE) { in GetPsRadioTech()
55 TELEPHONY_LOGE("GetPsRadioTech failed, error code is %{public}d ", st); in GetPsRadioTech()
80 int32_t st = remote->SendRequest(uint32_t(InterfaceID::GET_CS_RADIO_TECH), data, reply, option); in GetCsRadioTech() local
81 if (st != ERR_NONE) { in GetCsRadioTech()
82 TELEPHONY_LOGE("GetCsRadioTech failed, error code is %{public}d \n", st); in GetCsRadioTech()
108 …int32_t st = remote->SendRequest(uint32_t(InterfaceID::GET_OPERATOR_NUMERIC), data, reply, option); in GetOperatorNumeric() local
109 if (st != ERR_NONE) { in GetOperatorNumeric()
110 TELEPHONY_LOGE("GetCsRadioTech failed, error code is %{public}d \n", st); in GetOperatorNumeric()
132 int32_t st = remote->SendRequest(uint32_t(InterfaceID::GET_OPERATOR_NAME), data, reply, option); in GetOperatorName() local
[all …]
/base/security/device_security_level/baselib/utils/src/
Dutils_timer.cpp57 UtilsTimer &st = DelayedRefSingleton<UtilsTimer>::GetInstance(); in StartPeriodicTimerTask() local
58 uint32_t timerId = st.Register(std::bind(&DoTimerProcess, callback, context), interval, false); in StartPeriodicTimerTask()
64 UtilsTimer &st = DelayedRefSingleton<UtilsTimer>::GetInstance(); in StartOnceTimerTask() local
65 uint32_t timerId = st.Register(std::bind(&DoTimerProcess, callback, context), interval, true); in StartOnceTimerTask()
71 UtilsTimer &st = DelayedRefSingleton<UtilsTimer>::GetInstance(); in StopTimerTask() local
72 st.Unregister(static_cast<uint32_t>(handle)); in StopTimerTask()
/base/update/updater/services/diffpatch/
Ddiffpatch.cpp57 struct stat st {}; in PatchMapFile() struct
58 int32_t ret = fstat(info.fd, &st); in PatchMapFile()
63 if (S_ISBLK(st.st_mode)) { in PatchMapFile()
64 st.st_size = lseek(info.fd, 0, SEEK_END); in PatchMapFile()
68 …info.memory = static_cast<uint8_t*>(mmap(nullptr, st.st_size, PROT_READ, MAP_PRIVATE, info.fd, 0)); in PatchMapFile()
73 info.length = static_cast<size_t>(st.st_size); in PatchMapFile()
/base/startup/init/test/unittest/ueventd/
Dueventd_event_unittest.cpp40 struct stat st{}; in SetUpTestCase() struct
43 if (stat(g_testRoot.c_str(), &st) < 0) { in SetUpTestCase()
116 struct stat st {}; in RemoveDir() struct
117 if (stat(fullPath.c_str(), &st) < 0) { in RemoveDir()
121 if (S_ISDIR(st.st_mode)) { in RemoveDir()
214 struct stat st{}; in IsFileExist() struct
219 if (stat(file.c_str(), &st) < 0) { in IsFileExist()
332 struct stat st{}; struct
333 int ret = stat(blockDevice.c_str(), &st);
335 bool isBlock = S_ISBLK(st.st_mode);
[all …]
/base/update/updater/utils/
Dutils.cpp105 struct stat st {}; in GetFilesFromDirectory() struct
106 if (stat(fileName.c_str(), &st) == 0) { in GetFilesFromDirectory()
111 if (isRecursive && S_ISDIR(st.st_mode)) { in GetFilesFromDirectory()
115 totalSize += st.st_size; in GetFilesFromDirectory()
520 struct stat st {}; in IsUpdaterMode() struct
521 if (stat("/bin/updater", &st) == 0 && S_ISREG(st.st_mode)) { in IsUpdaterMode()
548 struct stat st {}; in RemoveDir() struct
550 stat(file_name.c_str(), &st); in RemoveDir()
551 if (S_ISDIR(st.st_mode)) { in RemoveDir()
565 struct stat st {}; in IsFileExist() struct
[all …]
/base/startup/init/services/begetctl/
Dmisc_daemon.cpp108 struct stat st {}; in WriteLogo() struct
116 if (stat(logoPath.c_str(), &st) < 0) { in WriteLogo()
126 if (st.st_size <= 0 || st.st_size > MAX_LOGO_SIZE) { in WriteLogo()
132 uint32_t logoSize = static_cast<uint32_t>(st.st_size); in WriteLogo()
/base/startup/init/services/init/standard/
Dswitch_root.c44 struct stat st = {}; in FreeOldRoot() local
45 if (fstatat(dfd, de->d_name, &st, AT_SYMLINK_NOFOLLOW) < 0) { in FreeOldRoot()
50 if (st.st_dev != dev) { in FreeOldRoot()
53 if (!S_ISDIR(st.st_mode)) { in FreeOldRoot()
/base/startup/init/ueventd/
Dueventd_read_cfg.c156 struct stat st = {}; in ParseFirmwareConfig() local
157 INIT_ERROR_CHECK(stat(p, &st) == 0, return -1, "Invalid firmware file: %s, err = %d", p, errno); in ParseFirmwareConfig()
158 INIT_ERROR_CHECK(S_ISDIR(st.st_mode), return -1, "Expect directory in firmware config"); in ParseFirmwareConfig()
253 struct stat st; in ParseUeventdConfigFile() local
254 if (fstat(fd, &st) < 0) { in ParseUeventdConfigFile()
262 size_t size = (size_t)st.st_size; in ParseUeventdConfigFile()
/base/update/updater/test/unittest/applypatch_test/
Dimagepatch_unittest.cpp44 struct stat st {}; in ReadContentFromFile() struct
45 if (fstat(fd, &st) < 0) { in ReadContentFromFile()
49 content.reserve(st.st_size); in ReadContentFromFile()
/base/startup/init/test/moduletest/
Dtest_utils.cpp47 struct stat st {}; in ReadFileContent() struct
48 if (stat(fileName.c_str(), &st) < 0) { in ReadFileContent()
/base/startup/init/services/param/adapter/
Dparam_dac.c174 struct stat st; in DacGetParamSecurityLabel() local
175 if ((stat(path, &st) == 0) && !S_ISDIR(st.st_mode)) { in DacGetParamSecurityLabel()
204 if ((stat(fileName, &st) == 0) && !S_ISDIR(st.st_mode)) { in DacGetParamSecurityLabel()
/base/hiviewdfx/hiview/plugins/freeze_detector/
Drule_cluster.cpp65 struct stat st; in CheckFileSize() local
66 if (stat(path.c_str(), &st) != 0) { in CheckFileSize()
69 if (st.st_size > MAX_FILE_SIZE) { in CheckFileSize()
/base/hiviewdfx/hilog/services/hilogd/
Dmain.cpp120 struct stat st; in RedirectStdStreamToLogFile() local
121 if (stat(path, &st) == -1) { in RedirectStdStreamToLogFile()
/base/hiviewdfx/hiview/adapter/utility/platform/ohos/
Dfile_util.cpp123 struct stat st; in GetFileSize() local
124 return stat(path.c_str(), &st) ? 0 : static_cast<uint64_t>(st.st_size); in GetFileSize()
/base/startup/init/services/param/manager/
Dparam_server.c205 struct stat st; in LoadDefaultParams() local
206 if ((stat(fileName, &st) == 0) && !S_ISDIR(st.st_mode)) { in LoadDefaultParams()
/base/startup/init/test/unittest/param/
Dparam_stub.cpp253 struct stat st {}; in IsDir() struct
254 if (stat(path.c_str(), &st) < 0) { in IsDir()
257 return S_ISDIR(st.st_mode); in IsDir()
/base/update/updater/services/
Dupdater_utils.cpp110 struct stat st {}; in IsSDCardExist() struct
111 if (stat(sdcardPath.c_str(), &st) < 0) { in IsSDCardExist()
Dupdater_main.cpp330 struct stat st {}; in CalcProgress() struct
331 if (stat(realPath, &st) == 0) { in CalcProgress()
332 everyPkgSize.push_back(st.st_size); in CalcProgress()
333 allPkgSize += st.st_size; in CalcProgress()
334 LOG(INFO) << "pkg " << path << " size is:" << st.st_size; in CalcProgress()
/base/hiviewdfx/hiview/plugins/faultlogger/service/sanitizer_collector/
Dasan_collector.cpp270 struct stat st; in ReadRecordToString() local
271 if (stat(fullFile.c_str(), &st) == -1) { in ReadRecordToString()
274 curr_.uid = static_cast<int32_t>(st.st_uid); in ReadRecordToString()
/base/security/access_token/services/test/mock/aafwk/
Dmock_app_mgr_service.h137 AbilityState st = AbilityState::ABILITY_STATE_BEGIN; in Terminate() local
138 callback_->OnAbilityRequestDone(token, st); in Terminate()
/base/global/resource_management_lite/frameworks/resmgr_lite/src/
Dres_desc.cpp156 const char *st = it; in IsRef() local
157 if (*st != '$') { in IsRef()

12