Home
last modified time | relevance | path

Searched refs:CreateFile (Results 1 – 18 of 18) sorted by relevance

/base/security/selinux_adapter/test/unittest/hap_restorecon/
Dunit_test.cpp234 ASSERT_EQ(true, CreateFile(TEST_SUB_PATH_1_FILE_1)); // this file should not be restorecon
264 ASSERT_EQ(true, CreateFile(TEST_SUB_PATH_1_FILE_1));
265 ASSERT_EQ(true, CreateFile(TEST_SUB_PATH_1_FILE_2));
266 ASSERT_EQ(true, CreateFile(TEST_SUB_PATH_2_FILE_1));
267 ASSERT_EQ(true, CreateFile(TEST_SUB_PATH_2_FILE_2));
335 ASSERT_EQ(true, CreateFile(TEST_SUB_PATH_1_FILE_1));
350 ASSERT_EQ(true, CreateFile(TEST_SUB_PATH_1_FILE_1));
365 ASSERT_EQ(true, CreateFile(TEST_ACCOUNT_SUB_PATH_1_FILE_1));
406 ASSERT_EQ(true, CreateFile(TEST_SUB_PATH_1_FILE_1));
407 ASSERT_EQ(true, CreateFile(TEST_SUB_PATH_1_FILE_2));
[all …]
/base/powermgr/battery_manager/charger/src/
Dpower_supply_provider.cpp142 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(mockChargerPath + "/type", "USB"); in CreateMockChargerPath()
[all …]
/base/location/services/location_locator/locator/source/
Dlocation_config_manager.cpp49 CreateFile(GetLocationSwitchConfigPath(), "0"); in Init()
74 bool LocationConfigManager::CreateFile(const std::string& filename, const std::string& filedata) in CreateFile() function in OHOS::Location::LocationConfigManager
134 CreateFile(GetLocationSwitchConfigPath(), "0"); in GetLocationSwitchState()
230 CreateFile(GetLocationSwitchConfigPath(), "0"); in SetLocationSwitchState()
261 CreateFile(GetPrivacyTypeConfigPath(type), "0"); in GetPrivacyTypeState()
295 CreateFile(GetPrivacyTypeConfigPath(type), "0"); in SetPrivacyTypeState()
/base/startup/init/services/init/
Dinit_service_file.c33 static int CreateFile(ServiceFile *file) in CreateFile() function
78 int fd = CreateFile(tmpFile); in CreateServiceFile()
/base/security/selinux_adapter/test/unittest/common/
Dtest_common.h28 bool CreateFile(const std::string &path);
Dtest_common.cpp91 bool CreateFile(const std::string &path) in CreateFile() function
/base/location/test/fuzztest/locator/locationconfigmanager_fuzzer/
Dlocationconfigmanager_fuzzer.cpp34 LocationConfigManager::GetInstance().CreateFile(fileName, fileData); in LocationConfigManagerFuzzerTest()
/base/hiviewdfx/hiview/plugins/freeze_detector/test/unittest/common/
Dfreeze_detector_test.cpp230 FileUtil::CreateFile(logPath);
281 FileUtil::CreateFile(logPath);
322 FileUtil::CreateFile(logPath);
361 FileUtil::CreateFile(logPath);
/base/location/services/location_locator/locator/include/
Dlocation_config_manager.h55 bool CreateFile(const std::string& filename, const std::string& filedata);
/base/hiviewdfx/hiview/base/event_store/store/include/
Dsys_event_doc.h42 std::string CreateFile();
/base/powermgr/battery_manager/charger/include/
Dpower_supply_provider.h68 void CreateFile(const std::string& path, const std::string& content);
/base/hiviewdfx/hitrace/test/unittest/hitrace_dump/
Dhitrace_dump_test.cpp60 bool CreateFile(std::string outputFileName) in CreateFile() function
345 ASSERT_TRUE(CreateFile(outputFileName)) << "create log file failed.";
375 ASSERT_TRUE(CreateFile(outputFileName)) << "create log file failed.";
/base/location/test/location_locator/source/
Dlocation_config_manager_test.cpp136 EXPECT_EQ(true, LocationConfigManager::GetInstance().CreateFile("filename", "filedata"));
/base/hiviewdfx/hiview/base/utility/test/unittest/common/
Dadapter_utility_ohos_test.cpp324 auto ret = FileUtil::CreateFile(GenerateLogFileName(caseName, SUFFIX_0));
327 (void)FileUtil::CreateFile(GenerateLogFileName(caseName, SUFFIX_0));
/base/hiviewdfx/hiview/base/event_store/store/
Dsys_event_doc.cpp167 …if (FileUtil::CreateFile(filePath, FileUtil::FILE_PERM_660) != 0 && !FileUtil::FileExists(filePath… in CreateCurFile()
/base/hiviewdfx/hiview/base/utility/include/
Dfile_util.h70 int32_t CreateFile(const std::string &path, mode_t mode = DEFAULT_FILE_MODE);
/base/hiviewdfx/hiview/base/utility/
Dfile_util.cpp267 int CreateFile(const std::string &path, mode_t mode) in CreateFile() function
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/
Dio_collector_impl.cpp195 (void)FileUtil::CreateFile(fileName); in CreateExportFileName()