/base/account/os_account/frameworks/osaccount/native/test/benchmarktest/ |
D | os_account_manager_benchmark_test.cpp | 60 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/ |
D | battery_benchmark_test.cpp | 44 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/ |
D | hks_double_list.h | 45 #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/ |
D | cert_manager_double_list.h | 47 #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/ |
D | utils_fs.cpp | 83 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 …]
|
D | utils_common.cpp | 71 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/ |
D | core_service_proxy.cpp | 53 …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/ |
D | utils_timer.cpp | 57 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/ |
D | init_eng.c | 34 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/ |
D | diffpatch.cpp | 58 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/ |
D | static_subscriber_proxy.cpp | 39 …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/ |
D | eng_unittest.cpp | 55 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/ |
D | fsverity_utils_helper.h | 71 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/ |
D | misc_daemon.cpp | 108 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/ |
D | cf_mock.cpp | 27 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/ |
D | data_share_util.cpp | 65 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/ |
D | device.c | 58 struct stat st; in MountBasicFs() local 59 if (!(stat("/dev/pts", &st) == 0 && S_ISDIR(st.st_mode))) { in MountBasicFs()
|
D | switch_root.c | 44 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/ |
D | ueventd_event_unittest.cpp | 44 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/ |
D | mod.rs | 146 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/ |
D | multi_thread_local_sign_test.cpp | 47 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/ |
D | param_dac.c | 231 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/ |
D | ueventd_read_cfg.c | 148 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/ |
D | imagepatch_unittest.cpp | 44 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/ |
D | hiview_service.cpp | 238 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()
|