Searched refs:pathName (Results 1 - 7 of 7) sorted by relevance
/test/xts/acts/kernel_lite/fs_posix/src/ |
H A D | FsStatTest.cpp | 168 const char *pathName = TOP_DIR "/" DIR0;
in HWTEST_F() local 169 EXPECT_NE(mkdirat(AT_FDCWD, pathName, 0777), -1) << "> creat faild errno = " << errno;
in HWTEST_F() 170 EXPECT_EQ(access(pathName, F_OK), 0) << "> access F_OK errno = " << errno;
in HWTEST_F() 171 EXPECT_EQ(remove(pathName), 0) << "> remove errno = " << errno;
in HWTEST_F() 172 EXPECT_NE(access(pathName, F_OK), 0) << "> access F_OK expect faild but success";
in HWTEST_F() 193 const char *pathName = "12345678901234567890123456789012345678901234567890\
in HWTEST_F() local 201 EXPECT_EQ(mkdirat(AT_FDCWD, pathName, 0777), -1) << "> should be error";
in HWTEST_F() 212 const char *pathName = TOP_DIR "/NoExist/NoExist";
in HWTEST_F() local 213 EXPECT_EQ(mkdirat(AT_FDCWD, pathName, 0777), -1) << "> should be error";
in HWTEST_F() 224 const char *pathName in HWTEST_F() local [all...] |
/test/xts/acts/multimedia/media/media_js_standard/ |
H A D | MediaTestBase.js | 122 export async function getFdRead(pathName, done) { 126 pathName = fileDir + '/' + pathName; 127 console.info("case pathName is" + pathName); 129 await fileio.open(pathName).then((fdNumber) => { 266 export async function getFd(pathName) { 275 pathName = fileDir + '/' + pathName; 276 console.info("case pathName i [all...] |
/test/xts/acts/multimedia/image_effect/OHImageEffectNDK/entry/src/main/cpp/utils/ |
H A D | pixelmap_helper.h | 27 static std::shared_ptr<OH_PixelmapNative> Decode(std::string &pathName); 28 static bool Encode(OH_PixelmapNative *pixelmap, std::string &pathName);
|
H A D | pixelmap_helper.cpp | 37 std::shared_ptr<OH_PixelmapNative> PixelMapHelper::Decode(std::string &pathName) in Decode() argument 39 int fd = open(pathName.c_str(), O_RDWR); in Decode()
|
/test/xts/hats/hdf/usb/mtpTest/common/ |
H A D | usbfn_mtp_test.cpp | 103 uint64_t GetFileSize(const std::string &pathName) in GetFileSize() argument 106 uint64_t ret = stat(pathName.c_str(), &statbuf); in GetFileSize() 113 bool WriteRandomDataToFile(const std::string &pathName, uint64_t fileSize) in WriteRandomDataToFile() argument 120 FILE *opFile = std::fopen(pathName.c_str(), "w"); in WriteRandomDataToFile() 122 HDF_LOGE("UsbfnMtpTest::WriteRandomDataToFile create file failed: %{public}s", pathName.c_str()); in WriteRandomDataToFile() 146 pathName.c_str(), GetFileSize(pathName), fileSize); in WriteRandomDataToFile() 150 bool GenerateFile(const std::string &pathName, int64_t fileSize) in GenerateFile() argument 152 if (GetFileSize(pathName) == static_cast<uint64_t>(fileSize)) { in GenerateFile() 157 int32_t ret = truncate(pathName in GenerateFile() [all...] |
/test/xts/hats/hdf/usb/mtpTest_additional/common/ |
H A D | usbfn_mtp_test.cpp | 95 uint64_t GetFileSize(const std::string &pathName) in GetFileSize() argument 98 uint64_t ret = stat(pathName.c_str(), &statbuf); in GetFileSize() 105 bool WriteRandomDataToFile(const std::string &pathName, uint64_t fileSize) in WriteRandomDataToFile() argument 112 FILE *opFile = std::fopen(pathName.c_str(), "w"); in WriteRandomDataToFile() 114 HDF_LOGE("UsbfnMtpTestAdditional::WriteRandomDataToFile create file failed: %{public}s", pathName.c_str()); in WriteRandomDataToFile() 138 pathName.c_str(), GetFileSize(pathName), fileSize); in WriteRandomDataToFile() 142 bool GenerateFile(const std::string &pathName, int64_t fileSize) in GenerateFile() argument 144 if (GetFileSize(pathName) == static_cast<uint64_t>(fileSize)) { in GenerateFile() 149 int32_t ret = truncate(pathName in GenerateFile() [all...] |
/test/xts/tools/lite/checksum/src/ |
H A D | checksum_file.c | 196 static char pathName[1000], fileName[1000]; in CalcMultiFilesSha256() local 215 pathNewName = CreatePathName(pathName, maxLen, dirPathName, "/", ptr->d_name); in CalcMultiFilesSha256()
|
Completed in 5 milliseconds