/base/powermgr/battery_manager/charger/src/ |
H A D | power_supply_provider.cpp | 142 void PowerSupplyProvider::CreateFile(const std::string& path, const std::string& content) in CreateFile() function in OHOS::PowerMgr::PowerSupplyProvider 328 CreateFile(mockTechPath + "/capacity", "1000"); in CreateMockTechPath() 329 CreateFile(mockTechPath + "/status", "Not charging"); in CreateMockTechPath() 330 CreateFile(mockTechPath + "/temp", "345"); in CreateMockTechPath() 336 CreateFile(mockChargerPath + "/type", "USB"); in CreateMockChargerPath() 337 CreateFile(mockChargerPath + "/constant_charge_current", "0"); in CreateMockChargerPath() 338 CreateFile(mockChargerPath + "/health", "Good"); in CreateMockChargerPath() 339 CreateFile(mockChargerPath + "/online", "1"); in CreateMockChargerPath() 340 CreateFile(mockChargerPath + "/status", "Charging"); in CreateMockChargerPath() 341 CreateFile(mockChargerPat in CreateMockChargerPath() [all...] |
/base/security/selinux_adapter/test/unittest/hap_restorecon/ |
H A D | unit_test.cpp | 243 ASSERT_EQ(true, CreateFile(TEST_SUB_PATH_1_FILE_1)); // this file should not be restorecon in HWTEST_F() 273 ASSERT_EQ(true, CreateFile(TEST_SUB_PATH_1_FILE_1)); in HWTEST_F() 274 ASSERT_EQ(true, CreateFile(TEST_SUB_PATH_1_FILE_2)); in HWTEST_F() 275 ASSERT_EQ(true, CreateFile(TEST_SUB_PATH_2_FILE_1)); in HWTEST_F() 276 ASSERT_EQ(true, CreateFile(TEST_SUB_PATH_2_FILE_2)); in HWTEST_F() 344 ASSERT_EQ(true, CreateFile(TEST_SUB_PATH_1_FILE_1)); in HWTEST_F() 359 ASSERT_EQ(true, CreateFile(TEST_SUB_PATH_1_FILE_1)); in HWTEST_F() 374 ASSERT_EQ(true, CreateFile(TEST_ACCOUNT_SUB_PATH_1_FILE_1)); in HWTEST_F() 415 ASSERT_EQ(true, CreateFile(TEST_SUB_PATH_1_FILE_1)); in HWTEST_F() 416 ASSERT_EQ(true, CreateFile(TEST_SUB_PATH_1_FILE_ in HWTEST_F() [all...] |
/base/hiviewdfx/hiview/base/event_store/test/unittest/common/ |
H A D | sys_event_backup_test.cpp | 91 FileUtil::CreateFile(databaseDir + "event_sequence");
in HWTEST_F() 95 FileUtil::CreateFile(databaseDir + "RELIABILITY/APP_FREEZE-1-CRITICAL-59179.db");
in HWTEST_F()
|
/base/security/selinux_adapter/test/unittest/common/ |
H A D | test_common.h | 28 bool CreateFile(const std::string &path);
|
H A D | test_common.cpp | 91 bool CreateFile(const std::string &path) in CreateFile() function
|
/base/startup/init/services/init/ |
H A D | init_service_file.c | 33 static int CreateFile(ServiceFile *file) in CreateFile() function 78 int fd = CreateFile(tmpFile); in CreateServiceFile()
|
/base/location/test/fuzztest/locator/locationconfigmanager_fuzzer/ |
H A D | locationconfigmanager_fuzzer.cpp | 34 LocationConfigManager::GetInstance()->CreateFile(fileName, fileData); in LocationConfigManagerFuzzerTest()
|
/base/location/services/location_locator/locator/source/ |
H A D | location_config_manager.cpp | 55 CreateFile(GetLocationSwitchConfigPath(), "0"); in Init() 80 bool LocationConfigManager::CreateFile(const std::string& filename, const std::string& filedata) in CreateFile() function in OHOS::Location::LocationConfigManager 82 LBSLOGD(LOCATOR, "CreateFile"); in CreateFile() 140 CreateFile(GetLocationSwitchConfigPath(), "0"); in GetLocationSwitchState() 244 CreateFile(GetLocationSwitchConfigPath(), "0"); in SetLocationSwitchState()
|
/base/hiviewdfx/hiview/base/event_store/store/include/ |
H A D | sys_event_doc.h | 42 std::string CreateFile();
|
/base/location/services/location_locator/locator/include/ |
H A D | location_config_manager.h | 56 bool CreateFile(const std::string& filename, const std::string& filedata);
|
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/utility/include/ |
H A D | file_util.h | 37 bool CreateFile(const std::string& file, const mode_t& mode);
|
/base/powermgr/battery_manager/charger/include/ |
H A D | power_supply_provider.h | 68 void CreateFile(const std::string& path, const std::string& content);
|
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/utility/ |
H A D | file_util.cpp | 154 bool CreateFile(const std::string& file, const mode_t& mode)
in CreateFile() function 174 if (!CreateFile(file, FILE_PERM_600)) {
in SaveStringToFile()
|
/base/hiviewdfx/hiview/plugins/freeze_detector/test/unittest/common/ |
H A D | freeze_detector_test.cpp | 230 FileUtil::CreateFile(logPath); in HWTEST_F() 232 printf("CreateFile file, failed\n"); in HWTEST_F() 281 FileUtil::CreateFile(logPath); in HWTEST_F() 283 printf("CreateFile file, failed\n"); in HWTEST_F() 322 FileUtil::CreateFile(logPath); in HWTEST_F() 324 printf("CreateFile file, failed\n"); in HWTEST_F() 361 FileUtil::CreateFile(logPath); in HWTEST_F() 363 printf("CreateFile file, failed\n"); in HWTEST_F()
|
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/ |
H A D | common_util.cpp | 128 (void)FileUtil::CreateFile(fileName);
in CreateExportFile()
|
H A D | io_collector_impl.cpp | 195 (void)FileUtil::CreateFile(fileName);
in CreateExportFileName()
|
/base/hiviewdfx/hiview/base/event_store/store/ |
H A D | sys_event_doc.cpp | 172 if (FileUtil::CreateFile(filePath, FileUtil::FILE_PERM_660) != 0 && !FileUtil::FileExists(filePath)) {
in CreateCurFile()
|
/base/location/test/location_locator/source/ |
H A D | location_config_manager_test.cpp | 131 EXPECT_EQ(true, LocationConfigManager::GetInstance()->CreateFile("filename", "filedata")); in HWTEST_F()
|
/base/hiviewdfx/hiview/base/utility/include/ |
H A D | file_util.h | 72 int32_t CreateFile(const std::string &path, mode_t mode = DEFAULT_FILE_MODE);
|
/base/hiviewdfx/hitrace/test/unittest/hitrace_dump/ |
H A D | hitrace_dump_test.cpp | 61 bool CreateFile(std::string outputFileName)
in CreateFile() function 574 ASSERT_TRUE(CreateFile(outputFileName)) << "create log file failed.";
in HWTEST_F() 604 ASSERT_TRUE(CreateFile(outputFileName)) << "create log file failed.";
in HWTEST_F()
|
/base/hiviewdfx/hiview/base/utility/test/unittest/common/ |
H A D | adapter_utility_ohos_test.cpp | 368 * @tc.desc: Test CreateFile defined in namespace FileUtil 376 auto ret = FileUtil::CreateFile(GenerateLogFileName(caseName, SUFFIX_0)); in HWTEST_F() 379 (void)FileUtil::CreateFile(GenerateLogFileName(caseName, SUFFIX_0)); in HWTEST_F()
|
/base/hiviewdfx/hiview/plugins/reliability/bbox_detectors/ |
H A D | panic_report_recovery.cpp | 67 if (FileUtil::CreateFile(BBOX_PARAM_PATH, FileUtil::FILE_PERM_640) != 0) { in InitPanicConfigFile()
|
/base/hiviewdfx/hiview/base/utility/ |
H A D | file_util.cpp | 270 int CreateFile(const std::string &path, mode_t mode) in CreateFile() function
|
/base/hiviewdfx/hiview/plugins/eventlogger/ |
H A D | event_logger.cpp | 257 if (FileUtil::CreateFile(historyFile, mode) != 0 && !FileUtil::FileExists(historyFile)) { in SaveDbToFile()
|