Home
last modified time | relevance | path

Searched refs:st (Results 1 - 25 of 72) sorted by relevance

123

/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.wSecond, in DefaultLogImpl()
30 st.wMilliseconds, GetCurrentProcessId(), GetCurrentThreadId(), level, tag); in DefaultLogImpl()
/foundation/communication/dsoftbus/tests/adapter/bluetooth/
H A Dassert_helper.h61 explicit StRecordCtx(const char *identifier) : RecordCtx(identifier), st(-1) {} in StRecordCtx()
68 this->st = stParam; in Update()
78 if (this->st != stParam) { in Expect()
80 << "want: " << stParam << ", actual: " << this->st; in Expect()
85 this->st = -1; in Expect()
89 int32_t st; member in StRecordCtx
99 bool Update(int32_t id, const SoftBusBtAddr *addr, int32_t st = 0) in Update()
101 if (!StRecordCtx::Update(id, st)) { in Update()
108 testing::AssertionResult Expect(int32_t id, SoftBusBtAddr *addrParam, int32_t st = 0) in Expect()
110 auto result = StRecordCtx::Expect(id, st); in Expect()
135 Update(int32_t id, int32_t st, int32_t valParam) Update() argument
144 Expect(int32_t id, int32_t st, int32_t valParam) Expect() argument
[all...]
/foundation/communication/dsoftbus/tests/adapter/broadcast/
H A Dassert_helper.h56 explicit StRecordCtx(const char *identifier) : RecordCtx(identifier), st(-1) {} in StRecordCtx()
63 this->st = stParam; in Update()
73 if (this->st != stParam) { in Expect()
75 << "want: " << stParam << ", actual: " << this->st; in Expect()
80 this->st = -1; in Expect()
84 int32_t st; member in StRecordCtx
94 bool Update(int32_t id, const SoftbusMacAddr *addr, int32_t st = 0) in Update()
96 if (!StRecordCtx::Update(id, st)) { in Update()
103 testing::AssertionResult Expect(int32_t id, SoftbusMacAddr *addrParam, int32_t st = 0) in Expect()
105 auto result = StRecordCtx::Expect(id, st); in Expect()
130 Update(int32_t id, int32_t st, int32_t valParam) Update() argument
139 Expect(int32_t id, int32_t st, int32_t valParam) Expect() argument
[all...]
/foundation/filemanagement/storage_service/services/storage_daemon/utils/test/
H A Dfile_utils_test.cpp87 struct stat st; in HWTEST_F() local
88 int32_t ret = lstat(PATH_CHMOD.c_str(), &st); in HWTEST_F()
90 EXPECT_TRUE((st.st_mode & ALL_PERMS) == mode); in HWTEST_F()
96 ret = lstat(PATH_CHMOD.c_str(), &st); in HWTEST_F()
98 EXPECT_TRUE((st.st_mode & ALL_PERMS) == mode); in HWTEST_F()
123 struct stat st; in HWTEST_F() local
124 ret = lstat(PATH_CHOWN.c_str(), &st); in HWTEST_F()
126 EXPECT_TRUE(st.st_uid == uid); in HWTEST_F()
127 EXPECT_TRUE(st.st_gid == gid); in HWTEST_F()
134 ret = lstat(PATH_CHOWN.c_str(), &st); in HWTEST_F()
157 struct stat st; HWTEST_F() local
229 struct stat st; HWTEST_F() local
255 struct stat st; HWTEST_F() local
[all...]
/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()
H A Dbluetooth_socket_observer_proxy.cpp38 int32_t st = Remote()->SendRequest(static_cast<uint32_t>(BT_SOCKET_OBSERVER_CONNECTION_STATE_CHANGED), in OnConnectionStateChanged() local
40 if (st != ERR_NONE) { in OnConnectionStateChanged()
41 HILOGE("OnConnectionStateChanged failed, error code is %{public}d", st); in OnConnectionStateChanged()
/foundation/filemanagement/storage_service/services/storage_daemon/utils/
H A Dfile_utils.cpp80 struct stat st; in IsDir() local
81 int ret = TEMP_FAILURE_RETRY(lstat(path.c_str(), &st)); in IsDir()
86 return S_ISDIR(st.st_mode); in IsDir()
125 struct stat st; in PrepareDir() local
126 if (TEMP_FAILURE_RETRY(lstat(path.c_str(), &st)) == E_ERR) { in PrepareDir()
132 if (!S_ISDIR(st.st_mode)) { in PrepareDir()
137 if (((st.st_mode & ALL_PERMS) != mode) && ChMod(path, mode)) { in PrepareDir()
142 if (((st.st_uid != uid) || (st.st_gid != gid)) && ChOwn(path, uid, gid)) { in PrepareDir()
222 struct stat st; in TravelChmod() local
277 struct stat st; GetSubDirs() local
304 struct stat st; ReadDigitDir() local
341 struct stat st; OpenSubFile() local
502 struct stat st; IsSameGidUid() local
[all...]
H A Dhi_audit.cpp79 struct stat st; in Init() local
80 writeLogSize_ = stat(HIAUDIT_LOG_NAME.c_str(), &st) ? 0 : static_cast<uint64_t>(st.st_size); in Init()
170 struct stat st; in CleanOldAuditFile() local
171 stat((HIAUDIT_CONFIG.logPath + std::string(ptr->d_name)).c_str(), &st); in CleanOldAuditFile()
174 if (st.st_mtime < oldestSt.st_mtime) { in CleanOldAuditFile()
/foundation/filemanagement/app_file_service/frameworks/native/backup_ext/src/
H A Dtar_file.cpp187 bool TarFile::I2OcsConvert(const struct stat &st, TarHeader &hdr, string &fileName) in I2OcsConvert() argument
195 string mode = I2Ocs(sizeof(hdr.mode), st.st_mode & PERMISSION_MASK); in I2OcsConvert()
196 string uid = I2Ocs(sizeof(hdr.uid), st.st_uid); in I2OcsConvert()
197 string gid = I2Ocs(sizeof(hdr.gid), st.st_gid); in I2OcsConvert()
203 string mtime = I2Ocs(sizeof(hdr.mtime), st.st_mtime); in I2OcsConvert()
215 if (S_ISREG(st.st_mode)) { in I2OcsConvert()
217 } else if (S_ISDIR(st.st_mode)) { in I2OcsConvert()
222 off_t hdrSize = st.st_size; in I2OcsConvert()
223 if (sizeof(off_t) <= OFF_T_SIZE || st.st_size <= static_cast<off_t>(MAX_FILE_SIZE)) { in I2OcsConvert()
235 if (S_ISDIR(st in I2OcsConvert()
271 AddFile(string &fileName, const struct stat &st, int &err) AddFile() argument
467 FillOwnerName(TarHeader &hdr, const struct stat &st) FillOwnerName() argument
[all...]
/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/muxer/
H A Dffmpeg_muxer_plugin.cpp591 auto st = avformat_new_stream(formatContext_.get(), nullptr); in AddAudioTrack() local
592 FALSE_RETURN_V_MSG_E(st != nullptr, Status::ERROR_NO_MEMORY, "avformat_new_stream failed!"); in AddAudioTrack()
593 ResetCodecParameter(st->codecpar); in AddAudioTrack()
594 st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; in AddAudioTrack()
595 st->codecpar->codec_id = codeID; in AddAudioTrack()
596 st->codecpar->sample_rate = sampleRate; in AddAudioTrack()
597 st->codecpar->channels = channels; in AddAudioTrack()
603 st->codecpar->frame_size = frameSize; in AddAudioTrack()
613 st->codecpar->channel_layout = ffChannelLayout; in AddAudioTrack()
615 trackIndex = st in AddAudioTrack()
633 auto st = avformat_new_stream(formatContext_.get(), nullptr); AddVideoTrack() local
674 auto st = avformat_new_stream(formatContext_.get(), nullptr); AddTimedMetaTrack() local
818 auto st = formatContext_->streams[trackIndex]; WriteSample() local
827 auto st = formatContext_->streams[trackIndex]; WriteNormal() local
867 auto st = formatContext_->streams[trackIndex]; WriteVideoSample() local
[all...]
/foundation/communication/netstack/interfaces/innerkits/rust/ylong_http_client/src/reqwest_impl/
H A Dconfig.rs371 let st = match str[pos..].find(CERT_BEGIN) { in from_pem()
376 let ed = match str[pos + st..].find(CERT_END) { in from_pem()
381 let slice = str[pos + st..pos + st + ed + CERT_END.len()].as_bytes(); in from_pem()
385 pos += st + ed + CERT_END.len(); in from_pem()
/foundation/filemanagement/storage_service/services/storage_daemon/utils/test/common/
H A Dhelp_utils.cpp78 struct stat st; in CheckDir() local
79 if (lstat(path.c_str(), &st) != 0) { in CheckDir()
82 return S_ISDIR(st.st_mode) == 1; in CheckDir()
171 struct stat st; in RmDirRecurse() local
172 if (lstat(path.c_str(), &st) != 0) { in RmDirRecurse()
175 if (S_ISDIR(st.st_mode) != 1) { in RmDirRecurse()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
H A Dhi_audit.cpp77 struct stat st; in Init() local
78 writeLogSize_ = stat(HIAUDIT_LOG_NAME.c_str(), &st) ? 0 : static_cast<uint64_t>(st.st_size); in Init()
164 struct stat st; in CleanOldAuditFile() local
165 stat((HIAUDIT_CONFIG.logPath + std::string(ptr->d_name)).c_str(), &st); in CleanOldAuditFile()
168 if (st.st_mtime < oldestSt.st_mtime) { in CleanOldAuditFile()
/foundation/distributeddatamgr/preferences/test/native/unittest/
H A Dpreferences_file_test.cpp93 struct stat st = { 0 }; in HWTEST_F() local
94 ret = stat(file.c_str(), &st); in HWTEST_F()
96 ret = (st.st_mode & (S_IXUSR | S_IXGRP | S_IRWXO)); in HWTEST_F()
123 struct stat st = { 0 }; in HWTEST_F() local
124 int result = stat(file.c_str(), &st); in HWTEST_F()
126 result = st.st_mode & (S_IXUSR | S_IXGRP | S_IRWXO); in HWTEST_F()
/foundation/filemanagement/app_file_service/utils/src/b_hiaudit/
H A Dhi_audit.cpp81 struct stat st; in Init() local
82 writeLogSize_ = stat(HIAUDIT_LOG_NAME.c_str(), &st) ? 0 : static_cast<uint64_t>(st.st_size); in Init()
175 struct stat st; in CleanOldAuditFile() local
176 stat((hiAuditConfig_.logPath + std::string(ptr->d_name)).c_str(), &st); in CleanOldAuditFile()
179 if (st.st_mtime < oldestSt.st_mtime) { in CleanOldAuditFile()
/foundation/multimedia/player_framework/services/engine/histreamer/player/
H A Dseek_agent.cpp80 auto st = demuxer_->SeekTo(seekPos, Plugins::SeekMode::SEEK_CLOSEST_INNER, realSeekTime); in Seek() local
81 FALSE_RETURN_V_MSG_E(st == Status::OK, Status::ERROR_INVALID_OPERATION, "Seekto error."); in Seek()
84 st = SetBufferFilledListener(); in Seek()
85 FALSE_RETURN_V_MSG_E(st == Status::OK, Status::ERROR_INVALID_OPERATION, "SetBufferFilledListener failed."); in Seek()
100 st = RemoveBufferFilledListener(); in Seek()
109 auto st = demuxer_->SeekTo(seekPos, Plugins::SeekMode::SEEK_CLOSEST_INNER, realSeekTime); in Seek() local
110 FALSE_RETURN_V_MSG_E(st == Status::OK, Status::ERROR_INVALID_OPERATION, "Seekto error."); in Seek()
112 return st; in Seek()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/log_storage_test/src/
H A Dhi_audit_test.cpp72 struct stat st; in HWTEST_F() local
73 ASSERT_EQ(stat(HIAUDIT_LOG_NAME.c_str(), &st), 0); in HWTEST_F()
74 EXPECT_EQ(audit.writeLogSize_.load(), static_cast<uint64_t>(st.st_size)); in HWTEST_F()
/foundation/graphic/graphic_3d/lume/LumeRender/api/render/shaders/common/
H A Drender_post_process_common.h47 float RandomDither(vec2 st) in RandomDither() argument
49 return fract(sin(dot(st.xy, vec2(12.9898, 78.233))) * 43758.5453); in RandomDither()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/
H A Dmoving_photo_file_utils.cpp106 struct stat st; in GetFileSize() local
107 if (fstat(fd, &st) != E_OK) { in GetFileSize()
111 return st.st_size; in GetFileSize()
116 struct stat st; in GetFileSize() local
117 if (stat(path.c_str(), &st) != E_OK) { in GetFileSize()
121 return st.st_size; in GetFileSize()
534 struct stat64 st; in GetExtraDataSize() local
535 CHECK_AND_RETURN_RET_LOG(fstat64(livePhotoFd.Get(), &st) == 0, E_HAS_FS_ERROR, in GetExtraDataSize()
537 int64_t totalSize = st.st_size; in GetExtraDataSize()
592 struct stat64 st; in ConvertToMovingPhoto() local
678 struct stat64 st; GetCoverPosition() local
722 struct stat64 st; GetVersionAndFrameNum() local
[all...]
/foundation/distributeddatamgr/kv_store/databaseutils/src/
H A Dacl.cpp165 struct stat st; in AclFromMode() local
166 if (stat(path_.c_str(), &st) == -1) { in AclFromMode()
171 (st.st_mode & S_IRWXU) >> USER_OFFSET)); in AclFromMode()
173 (st.st_mode & S_IRWXG) >> GROUP_OFFSET)); in AclFromMode()
175 (st.st_mode & S_IRWXO))); in AclFromMode()
/foundation/filemanagement/storage_service/services/storage_daemon/file_sharing/src/
H A Dsetacl.cpp187 struct stat st; in AclFromMode() local
189 if (stat(file.c_str(), &st) == -1) { in AclFromMode()
195 .perm = (st.st_mode & S_IRWXU) >> 6, in AclFromMode()
200 .perm = (st.st_mode & S_IRWXG) >> 3, in AclFromMode()
205 .perm = (st.st_mode & S_IRWXO), in AclFromMode()
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/
H A Dkey_backup.cpp69 struct stat st; in RemoveNode() local
70 if (lstat(pathName.c_str(), &st) < 0) { in RemoveNode()
74 if (!S_ISDIR(st.st_mode)) { in RemoveNode()
285 struct stat st; in IsRegFile() local
286 if (lstat(filePath.c_str(), &st) < 0) { in IsRegFile()
291 if (!S_ISREG(st.st_mode)) { in IsRegFile()
543 struct stat st; in CheckAndCopyFiles() local
544 if (lstat(from.c_str(), &st) < 0) { in CheckAndCopyFiles()
549 if (S_ISREG(st.st_mode)) { in CheckAndCopyFiles()
552 } else if (!S_ISDIR(st in CheckAndCopyFiles()
748 struct stat st; GetAttr() local
[all...]
/foundation/multimedia/ringtone_library/services/ringtone_scanner/src/
H A Dringtone_metadata_extractor.cpp119 struct stat64 st; in ExtractAudioMetadata() local
120 if (fstat64(fd, &st) != 0) { in ExtractAudioMetadata()
126 int32_t err = avMetadataHelper->SetSource(fd, 0, static_cast<int64_t>(st.st_size), Media::AV_META_USAGE_META_ONLY); in ExtractAudioMetadata()
/foundation/ability/idl_tool/idl_tool_2/util/
H A Dfile.cpp224 struct stat st; in CreatePartDir() local
225 if (stat(partPath.c_str(), &st) < 0) { in CreatePartDir()
237 } else if (!S_ISDIR(st.st_mode)) { in CreatePartDir()
299 struct stat st; in CreatePartDir() local
300 if (stat(path.c_str(), &st) < 0) { in CreatePartDir()
304 if (S_ISDIR(st.st_mode)) { in CreatePartDir()

Completed in 13 milliseconds

123