/ohos5.0/foundation/filemanagement/app_file_service/test/unittest/file_uri_native/ |
H A D | file_uri_test.cpp | 83 string uri = "file://" + BUNDLE_A + fileStr; 84 FileUri fileUri(fileStr); 105 string uri = "file://" + BUNDLE_A + fileStr; 106 FileUri fileUri(fileStr); 127 EXPECT_EQ(path, fileStr); 147 string fileStr = "/Documents/test.txt"; variable 151 EXPECT_EQ(path, fileStr); 240 string uri = "file://" + fileStr; 244 EXPECT_EQ(fileUri.GetPath(), fileStr); 245 EXPECT_EQ(fileUri.GetRealPath(), fileStr); [all …]
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/test/unittest/class_file/ |
H A D | rust_test.cpp | 169 const char fileStr[] = "/data/test/rust_test.txt"; variable 170 int fd = open(fileStr, O_RDWR); 192 const char fileStr[] = "/data/test/rust_test.txt"; variable 193 int fd = open(fileStr, O_RDWR); 218 const char fileStr[] = "/data/test/rust_test.txt"; variable 219 int fd = open(fileStr, O_RDWR); 242 int fd = open(fileStr, O_RDWR); 265 int fd = open(fileStr, O_RDWR); 291 int fd = open(fileStr, O_RDWR); 503 int fd = open(fileStr, O_RDWR); [all …]
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/quick_fix/ |
H A D | quick_fix_boot_scanner.cpp | 142 for (const auto &fileStr : fileDir) { in ProcessQuickFixDir() local 144 size_t underlinePos = fileStr.rfind(Constants::FILE_UNDERLINE); in ProcessQuickFixDir() 147 invalidQuickFixDir_.emplace_back(fileStr); in ProcessQuickFixDir() 151 bool ret = StrToInt(fileStr.substr(underlinePos + 1), versionCode); in ProcessQuickFixDir() 154 invalidQuickFixDir_.emplace_back(fileStr); in ProcessQuickFixDir() 158 size_t firstPos = fileStr.rfind(ServiceConstants::PATH_SEPARATOR); in ProcessQuickFixDir() 161 invalidQuickFixDir_.emplace_back(fileStr); in ProcessQuickFixDir() 164 size_t secondPos = fileStr.rfind(ServiceConstants::PATH_SEPARATOR, firstPos - 1); in ProcessQuickFixDir() 167 invalidQuickFixDir_.emplace_back(fileStr); in ProcessQuickFixDir() 174 std::pair<int32_t, std::string> innerPair { versionCode, fileStr }; in ProcessQuickFixDir() [all …]
|
/ohos5.0/foundation/filemanagement/app_file_service/test/unittest/file_share_native/ |
H A D | file_share_test.cpp | 65 string fileStr = "/data/app/el2/" + to_string(uid) + "/base/" + bundleNameA + "/files/test.txt"; variable 66 int32_t fd = open(fileStr.c_str(), O_RDWR | O_CREAT); 105 string fileStr = "/data/app/el2/" + to_string(uid) + "/base/" + bundleNameA + "/files/test.txt"; variable 106 int32_t fd = open(fileStr.c_str(), O_RDWR | O_CREAT); 136 string fileStr = "/data/app/el2/" + to_string(uid) + "/base/" + bundleNameA + "/files/test.txt"; variable 137 int32_t fd = open(fileStr.c_str(), O_RDWR | O_CREAT); 165 string fileStr = "/data/app/el2/" + to_string(uid) + "/base/" + bundleNameA + "/files/test.txt"; variable 166 int32_t fd = open(fileStr.c_str(), O_RDWR | O_CREAT); 196 string fileStr = "/data/app/el2/" + to_string(uid) + "/base/" + bundleNameA + "/files/test.txt"; variable 197 int32_t fd = open(fileStr.c_str(), O_RDWR | O_CREAT);
|
/ohos5.0/foundation/filemanagement/app_file_service/test/unittest/remote_file_share/ |
H A D | remote_file_share_test.cpp | 131 const string fileStr = "/data/test/remote_file_share_test.txt"; variable 132 int fd = open(fileStr.c_str(), O_RDWR); 155 const string fileStr = "/data/test/remote_file_share_test.txt"; variable 156 int fd = open(fileStr.c_str(), O_RDWR); 190 const string fileStr = "/data/app/el2/100/base/com.demo.a/remote_file_share_test.txt"; variable 196 int fd = open(fileStr.c_str(), O_RDWR | O_CREAT); 204 ret = unlink(fileStr.c_str()); 369 const string fileStr = "/data/app/el2/100/base/com.demo.a/共 享 文 件 测 试.txt"; variable 375 int fd = open(fileStr.c_str(), O_RDWR | O_CREAT); 382 ret = unlink(fileStr.c_str());
|
/ohos5.0/base/hiviewdfx/hidumper/frameworks/native/src/util/ |
H A D | string_utils.cpp | 109 void StringUtils::SetWidth(const int &width, const char &fileStr, const bool &left, string &str) in SetWidth() argument 115 s << setw(width) << setfill(fileStr) << setiosflags(ios::left) << str; in SetWidth() 117 s << setw(width) << setfill(fileStr) << setiosflags(ios::right) << str; in SetWidth()
|
/ohos5.0/base/hiviewdfx/hiview/test/plugins/examples_bundle/bundle_event_source_example/ |
H A D | bundle_event_source_example.cpp | 117 std::string fileStr; in OnFileDescriptorEvent() local 118 fileS >> fileStr; in OnFileDescriptorEvent() 119 if (fileStr.empty()) { in OnFileDescriptorEvent()
|
/ohos5.0/base/hiviewdfx/hiview/test/plugins/examples/event_source_example/ |
H A D | event_source_example.cpp | 122 std::string fileStr; in OnFileDescriptorEvent() local 123 fileS >> fileStr; in OnFileDescriptorEvent() 124 if (fileStr.empty()) { in OnFileDescriptorEvent()
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/test/unittest/remote_uri/ |
H A D | remote_uri_test.cpp | 70 const string fileStr = "/data/test/remote_uri_test.txt"; variable 75 int fd = open(fileStr.c_str(), O_RDWR);
|
/ohos5.0/foundation/ability/idl_tool/idl_tool_2/util/ |
H A D | file.cpp | 361 StringBuilder fileStr; in CreatePartDir() local 363 fileStr.Append(GetChar()); in CreatePartDir() 366 return std::hash<std::string>()(fileStr.ToString()); in CreatePartDir()
|
/ohos5.0/drivers/hdf_core/framework/tools/hdi-gen/util/ |
H A D | file.cpp | 335 StringBuilder fileStr; in CreateParentDir() local 337 fileStr.Append(GetChar()); in CreateParentDir() 340 return std::hash<std::string>()(fileStr.ToString()); in CreateParentDir()
|
/ohos5.0/base/hiviewdfx/hidumper/frameworks/native/include/util/ |
H A D | string_utils.h | 37 void SetWidth(const int &width, const char &fileStr, const bool &left, std::string &str);
|
/ohos5.0/base/telephony/core_service/interfaces/innerkits/include/ |
H A D | i_icc_file.h | 71 virtual bool FileChange(const std::string fileStr, FileChangeType changeType) in FileChange() argument
|
/ohos5.0/base/telephony/core_service/utils/vcard/include/ |
H A D | vcard_utils.h | 40 static void SaveFile(const std::string &fileStr, const std::string &path);
|
/ohos5.0/base/telephony/core_service/utils/vcard/src/ |
H A D | vcard_utils.cpp | 192 void VCardUtils::SaveFile(const std::string &fileStr, const std::string &path) in SaveFile() argument 196 std::stringstream ss(fileStr); in SaveFile()
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/ |
H A D | plugin_texture_encode_test.cpp | 542 std::string fileStr(inFile); in ReadFileExtern() local 543 if (!CheckFileIsExist(fileStr)) { in ReadFileExtern() 547 std::ifstream contents{fileStr}; in ReadFileExtern()
|
/ohos5.0/base/startup/init/services/init/ |
H A D | init_service_manager.c | 515 char *fileStr = cJSON_GetStringValue(json); in AddServiceFile() local 519 int num = SplitString(fileStr, " ", opt, FILE_OPT_NUMS); in AddServiceFile()
|