/base/hiviewdfx/hiview/adapter/utility/test/unittest/common/ |
D | adapter_utility_ohos_test.cpp | 129 (void)FileUtil::SaveStringToFile(GenerateLogFileName(caseName, SUFFIX_0), ""); 175 (void)FileUtil::SaveStringToFile(GenerateLogFileName(caseName, SUFFIX_0), "123"); 222 (void)FileUtil::SaveStringToFile(GenerateLogFileName(caseName, SUFFIX_0), "test content"); 268 (void)FileUtil::SaveStringToFile(GenerateLogFileName(caseName, SUFFIX_0), "test"); 291 (void)FileUtil::SaveStringToFile(GenerateLogFileName(caseName, SUFFIX_0), "1111"); 308 (void)FileUtil::SaveStringToFile(GenerateLogFileName(caseName, SUFFIX_0), "test"); 311 (void)FileUtil::SaveStringToFile(GenerateLogFileName(caseName, SUFFIX_1), "test"); 330 (void)FileUtil::SaveStringToFile(GenerateLogFileName(caseName, SUFFIX_1), "line1"); 331 (void)FileUtil::SaveStringToFile(GenerateLogFileName(caseName, SUFFIX_1), "\nline2"); 332 (void)FileUtil::SaveStringToFile(GenerateLogFileName(caseName, SUFFIX_1), "\nline3"); [all …]
|
/base/update/updater/test/unittest/updater_ui_test/lang/ |
D | ui_language_unittest.cpp | 117 EXPECT_EQ(OHOS::SaveStringToFile(LOCALE_FILE, "en"), true); 120 EXPECT_EQ(OHOS::SaveStringToFile(LOCALE_FILE, "zh"), true); 123 EXPECT_EQ(OHOS::SaveStringToFile(LOCALE_FILE, "es"), true); 126 EXPECT_EQ(OHOS::SaveStringToFile(LOCALE_FILE, "invalid"), true); 178 EXPECT_EQ(OHOS::SaveStringToFile(LOCALE_FILE, GetStrForLang(langType)), true); 193 EXPECT_EQ(OHOS::SaveStringToFile(LOCALE_FILE, "en"), true); 200 EXPECT_EQ(OHOS::SaveStringToFile(LOCALE_FILE, "zh"), true); 214 EXPECT_EQ(OHOS::SaveStringToFile(LOCALE_FILE, "en"), true); 222 EXPECT_EQ(OHOS::SaveStringToFile(LOCALE_FILE, "zh"), true); 237 EXPECT_EQ(OHOS::SaveStringToFile(LOCALE_FILE, "en"), true); [all …]
|
/base/hiviewdfx/hiview/base/logstore/test/unittest/common/ |
D | log_store_unit_test.cpp | 93 (void)FileUtil::SaveStringToFile(testLogFile, LOG_CONTENT); 115 (void)FileUtil::SaveStringToFile(GenerateLogFileName(LOG_FILE_START_INDEX), LOG_CONTENT); 133 (void)FileUtil::SaveStringToFile(GenerateLogFileName(index), singleLine); 141 (void)FileUtil::SaveStringToFile(GenerateLogFileName(LOG_FILE_START_INDEX), LOG_CONTENT); 150 (void)FileUtil::SaveStringToFile(GenerateLogFileName(LOG_FILE_START_INDEX), LOG_CONTENT);
|
/base/useriam/pin_auth/test/unittest/src/ |
D | pin_auth_register_test.cpp | 53 SaveStringToFile("/sys/fs/selinux/enforce", "0"); in SetUpTestCase() 60 SaveStringToFile("/sys/fs/selinux/enforce", "1"); in TearDownTestCase()
|
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/utility/include/ |
D | file_util.h | 35 bool SaveStringToFile(const std::string& file, const std::string& content, bool isTrunc = false);
|
/base/hiviewdfx/hiview/base/running_status_logger/test/unittest/common/ |
D | running_status_logger_test.cpp | 209 (void)FileUtil::SaveStringToFile(GenerateYesterdayLogFileName(), singleLine); 255 (void)FileUtil::SaveStringToFile(GenerateInvalidFileName(index), singleLine);
|
/base/hiviewdfx/hiview/plugins/eventservice/test/fuzztest/common/eventservice_fuzzer/ |
D | eventservice_fuzzer.cpp | 55 return FileUtil::SaveStringToFile(CONFIG_FILE_PATH, content); in CreateConfigFile()
|
/base/hiviewdfx/hiview/utility/common_utils/test/unittest/common/ |
D | utility_common_utils_test.cpp | 83 FileUtil::SaveStringToFile(GenerateLogFileName(caseName, SUFFIX_0), "test"); 197 FileUtil::SaveStringToFile(GenerateLogFileName(caseName, SUFFIX_0), "test");
|
/base/update/updater/test/unittest/updater_ui_test/view/ |
D | ui_view_api_unittest.cpp | 60 EXPECT_EQ(OHOS::SaveStringToFile(localeFile, "en"), true);
|
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/ |
D | hiappevent_write.cpp | 65 return FileUtil::SaveStringToFile(filePath, event); in WriteEventToFile()
|
/base/hiviewdfx/hiview/adapter/utility/platform/ohos/ |
D | file_util.cpp | 46 bool SaveStringToFile(const std::string& filePath, const std::string& content, bool truncated) in SaveStringToFile() function 48 return OHOS::SaveStringToFile(filePath, content, truncated); in SaveStringToFile()
|
/base/hiviewdfx/hiview/base/running_status_logger/ |
D | running_status_logger.cpp | 43 if (!FileUtil::SaveStringToFile(destFile, logInfo + "\n", false)) { in Log()
|
/base/hiviewdfx/hiview/adapter/utility/include/ |
D | file_util.h | 60 bool SaveStringToFile(const std::string& filePath, const std::string& content, bool truncated = tru…
|
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/utility/ |
D | file_util.cpp | 147 bool SaveStringToFile(const std::string& file, const std::string& content, bool isTrunc) in SaveStringToFile() function
|
/base/hiviewdfx/hiview/plugins/hicollie_collector/test/unittest/common/ |
D | hicollie_collector_test.cpp | 46 FileUtil::SaveStringToFile(logPath, str); in makeEvent()
|
/base/security/dataclassification/test/unittest/datatransmitmgr/ |
D | DevSLMgrTest.cpp | 82 OHOS::SaveStringToFile("/sys/fs/selinux/enforce", "0"); in SetUpTestCase() 87 OHOS::SaveStringToFile("/sys/fs/selinux/enforce", "1"); in TearDownTestCase()
|
/base/hiviewdfx/hiview/plugins/hicollie_collector/ |
D | plugin.cpp | 168 if (!FileUtil::SaveStringToFile(desPath, desText.str())) { in SaveToFile()
|
/base/hiviewdfx/hiview/adapter/utility/ |
D | file_util.cpp | 125 bool SaveStringToFile(const std::string& filePath, const std::string& content, bool truncated) in SaveStringToFile() function
|
/base/hiviewdfx/hiview/plugins/freeze_detector/test/unittest/common/ |
D | freeze_detector_test.cpp | 48 FileUtil::SaveStringToFile(logPath, str); in makeEvent()
|
/base/hiviewdfx/hiview/plugins/eventservice/ |
D | event_json_parser.cpp | 383 if (!FileUtil::SaveStringToFile(seqFile, content, true)) { in EventJsonParser()
|
/base/security/device_security_level/test/dslm_unit_test/ |
D | dslm_test.cpp | 95 SaveStringToFile("/sys/fs/selinux/enforce", "0"); in SetUpTestCase() 99 SaveStringToFile("/sys/fs/selinux/enforce", "1"); in TearDownTestCase()
|
/base/hiviewdfx/hiview/core/ |
D | hiview_platform.cpp | 815 FileUtil::SaveStringToFile(pidFile, std::to_string(selfPid)); in ExitHiviewIfNeed()
|