Home
last modified time | relevance | path

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

123

/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()
103 benchmark::State &st) in BENCHMARK_F()
107 for (auto _ : st) { in BENCHMARK_F()
124 benchmark::State &st) in BENCHMARK_F()
128 for (auto _ : st) { in BENCHMARK_F()
146 benchmark::State &st) in BENCHMARK_F()
150 for (auto _ : st) { in BENCHMARK_F()
[all …]
/base/powermgr/battery_manager/test/benchmarktest/
Dbattery_benchmark_test.cpp44 BENCHMARK_F(BatteryBenchmarkTest, GetCapacity)(benchmark::State& st) in BENCHMARK_F()
46 for (auto _ : st) { in BENCHMARK_F()
62 BENCHMARK_F(BatteryBenchmarkTest, GetChargingStatus)(benchmark::State& st) in BENCHMARK_F()
64 for (auto _ : st) { in BENCHMARK_F()
80 BENCHMARK_F(BatteryBenchmarkTest, GetHealthStatus)(benchmark::State& st) in BENCHMARK_F()
82 for (auto _ : st) { in BENCHMARK_F()
98 BENCHMARK_F(BatteryBenchmarkTest, GetPluggedType)(benchmark::State& st) in BENCHMARK_F()
100 for (auto _ : st) { in BENCHMARK_F()
116 BENCHMARK_F(BatteryBenchmarkTest, GetVoltage)(benchmark::State& st) in BENCHMARK_F()
118 for (auto _ : st) { in BENCHMARK_F()
[all …]
/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/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/update/updater/utils/
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 …]
Dutils_common.cpp71 struct stat st {}; in IsUpdaterMode() struct
72 if (stat("/bin/updater", &st) == 0 && S_ISREG(st.st_mode)) { in IsUpdaterMode()
/base/telephony/core_service/frameworks/native/src/
Dcore_service_proxy.cpp53 …int32_t st = remote->SendRequest(uint32_t(CoreServiceInterfaceCode::GET_PS_RADIO_TECH), data, repl… 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(CoreServiceInterfaceCode::GET_CS_RADIO_TECH), data, repl… in GetCsRadioTech() local
81 if (st != ERR_NONE) { in GetCsRadioTech()
82 TELEPHONY_LOGE("GetCsRadioTech failed, error code is %{public}d", st); in GetCsRadioTech()
109 …int32_t st = remote->SendRequest(uint32_t(CoreServiceInterfaceCode::GET_OPERATOR_NUMERIC), data, r… in GetOperatorNumeric() local
110 if (st != ERR_NONE) { in GetOperatorNumeric()
111 TELEPHONY_LOGE("GetCsRadioTech failed, error code is %{public}d", st); in GetOperatorNumeric()
135 int32_t st = remote->SendRequest( in GetResidentNetworkNumeric() local
[all …]
/base/security/device_security_level/baselib/utils/src/
Dutils_timer.cpp57 UtilsTimer &st = DelayedRefSingleton<UtilsTimer>::GetInstance(); in DslmUtilsStartPeriodicTimerTask() local
58 uint32_t timerId = st.Register(std::bind(&DoTimerProcess, callback, context), interval, false); in DslmUtilsStartPeriodicTimerTask()
64 UtilsTimer &st = DelayedRefSingleton<UtilsTimer>::GetInstance(); in DslmUtilsStartOnceTimerTask() local
65 uint32_t timerId = st.Register(std::bind(&DoTimerProcess, callback, context), interval, true); in DslmUtilsStartOnceTimerTask()
71 UtilsTimer &st = DelayedRefSingleton<UtilsTimer>::GetInstance(); in DslmUtilsStopTimerTask() local
72 st.Unregister(static_cast<uint32_t>(handle)); in DslmUtilsStopTimerTask()
/base/startup/init/services/modules/init_eng/
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()
/base/update/updater/services/diffpatch/
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()
/base/notification/common_event_service/frameworks/extension/src/ipc/
Dstatic_subscriber_proxy.cpp39 …int32_t st = remote->SendRequest(static_cast<uint32_t>(CommonEventInterfaceCode::COMMAND_ON_RECEIV… in OnReceiveEvent() local
41 if (st != ERR_NONE) { in OnReceiveEvent()
42 return st; in OnReceiveEvent()
/base/startup/init/test/unittest/modules/
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()
/base/security/code_signature/utils/include/
Dfsverity_utils_helper.h71 struct stat st; in GetFileSize() local
72 if (fstat(fd_, &st) != 0) { in GetFileSize()
77 *size = st.st_size; in GetFileSize()
/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/security/certificate_framework/test/unittest/v1.0/src/
Dcf_mock.cpp27 int __real_OPENSSL_sk_num(const OPENSSL_STACK *st);
28 void *__real_OPENSSL_sk_value(const OPENSSL_STACK *st, int i);
66 int __real_OPENSSL_sk_push(OPENSSL_STACK *st, const int data);
112 … .WillByDefault([this](const OPENSSL_STACK *st, OPENSSL_sk_copyfunc c, OPENSSL_sk_freefunc f) { in SetMockFunDefaultBehaviorPartOne() argument
113 return __real_OPENSSL_sk_deep_copy(st, c, f); in SetMockFunDefaultBehaviorPartOne()
124 ON_CALL(*this, OPENSSL_sk_push).WillByDefault([this](OPENSSL_STACK *st, const int data) { in SetMockFunDefaultBehaviorPartOne() argument
125 return __real_OPENSSL_sk_push(st, data); in SetMockFunDefaultBehaviorPartOne()
175 …OPENSSL_sk_num).WillByDefault([this](const OPENSSL_STACK *st) { return __real_OPENSSL_sk_num(st); … in SetMockFunDefaultBehaviorPartTwo() argument
207 ON_CALL(*this, OPENSSL_sk_value).WillByDefault([this](const OPENSSL_STACK *st, int i) { in SetMockFunDefaultBehaviorPartTwo() argument
208 return __real_OPENSSL_sk_value(st, i); in SetMockFunDefaultBehaviorPartTwo()
[all …]
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/
Ddata_share_util.cpp65 struct stat st; in CopyFile() local
66 if (fstat(src_fd, &st) == -1) { in CopyFile()
74 ssize_t ret = sendfile(dest_fd, src_fd, &offset, st.st_size); in CopyFile()
/base/startup/init/services/init/standard/
Ddevice.c58 struct stat st; in MountBasicFs() local
59 if (!(stat("/dev/pts", &st) == 0 && S_ISDIR(st.st_mode))) { in MountBasicFs()
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/test/unittest/ueventd/
Dueventd_event_unittest.cpp44 struct stat st{}; in SetUpTestCase() struct
47 if (stat(g_testRoot.c_str(), &st) < 0) { in SetUpTestCase()
120 struct stat st {}; in RemoveDir() struct
121 if (stat(fullPath.c_str(), &st) < 0) { in RemoveDir()
125 if (S_ISDIR(st.st_mode)) { in RemoveDir()
218 struct stat st{}; in IsFileExist() struct
223 if (stat(file.c_str(), &st) < 0) { in IsFileExist()
338 struct stat st{}; struct
339 int ret = stat(blockDevice.c_str(), &st);
341 bool isBlock = S_ISBLK(st.st_mode);
[all …]
/base/request/request/services/src/manage/app_state/
Dmod.rs146 if let Some(st) = self.app_state.get_mut(&uid) { in change_app_state()
148 st.handle = None; in change_app_state()
150 let mut a = st.state.inner.lock().unwrap(); in change_app_state()
162 st.handle = Some(ylong_runtime::spawn(update_background_app( in change_app_state()
172 if let Some(st) = self.app_state.get_mut(&uid) { in trigger_app_state_change()
173 st.handle = None; in trigger_app_state_change()
175 let mut a = st.state.inner.lock().unwrap(); in trigger_app_state_change()
/base/security/code_signature/test/unittest/
Dmulti_thread_local_sign_test.cpp47 struct stat st; in GetFileSize() local
48 if (fstat(fd, &st) != 0) { in GetFileSize()
53 return st.st_size; in GetFileSize()
/base/startup/init/services/param/adapter/
Dparam_dac.c231 struct stat st; in DacGetParamSecurityLabel() local
232 if ((stat(path, &st) == 0) && !S_ISDIR(st.st_mode)) { in DacGetParamSecurityLabel()
261 if ((stat(fileName, &st) == 0) && !S_ISDIR(st.st_mode)) { in DacGetParamSecurityLabel()
/base/startup/init/ueventd/
Dueventd_read_cfg.c148 struct stat st = {}; in ParseFirmwareConfig() local
149 INIT_ERROR_CHECK(stat(p, &st) == 0, return -1, "Invalid firmware file: %s, err = %d", p, errno); in ParseFirmwareConfig()
150 INIT_ERROR_CHECK(S_ISDIR(st.st_mode), return -1, "Expect directory in firmware config"); in ParseFirmwareConfig()
246 struct stat st; in ParseUeventdConfigFile() local
247 if (fstat(fd, &st) < 0) { in ParseUeventdConfigFile()
254 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/hiviewdfx/hiview/service/
Dhiview_service.cpp238 struct stat st{}; in CopyFile() struct
239 if (fstat(srcFd, &st) == -1) { in CopyFile()
252 while (offset < st.st_size) { in CopyFile()
253 …size_t count = static_cast<size_t>((st.st_size - offset) > SSIZE_MAX ? SSIZE_MAX : st.st_size - of… in CopyFile()
257 cycleNum, ret, static_cast<long long>(offset), static_cast<long long>(st.st_size)); in CopyFile()
260 if (ret < 0 || offset > st.st_size) { in CopyFile()
262 ret, static_cast<long long>(offset), static_cast<long long>(st.st_size)); in CopyFile()

123