/base/security/selinux_adapter/test/unittest/hap_restorecon/ |
D | unit_test.cpp | 234 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/ |
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(mockChargerPath + "/type", "USB"); in CreateMockChargerPath() [all …]
|
/base/location/services/location_locator/locator/source/ |
D | location_config_manager.cpp | 49 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/ |
D | init_service_file.c | 33 static int CreateFile(ServiceFile *file) in CreateFile() function 78 int fd = CreateFile(tmpFile); in CreateServiceFile()
|
/base/security/selinux_adapter/test/unittest/common/ |
D | test_common.h | 28 bool CreateFile(const std::string &path);
|
D | test_common.cpp | 91 bool CreateFile(const std::string &path) in CreateFile() function
|
/base/location/test/fuzztest/locator/locationconfigmanager_fuzzer/ |
D | locationconfigmanager_fuzzer.cpp | 34 LocationConfigManager::GetInstance().CreateFile(fileName, fileData); in LocationConfigManagerFuzzerTest()
|
/base/hiviewdfx/hiview/plugins/freeze_detector/test/unittest/common/ |
D | freeze_detector_test.cpp | 230 FileUtil::CreateFile(logPath); 281 FileUtil::CreateFile(logPath); 322 FileUtil::CreateFile(logPath); 361 FileUtil::CreateFile(logPath);
|
/base/location/services/location_locator/locator/include/ |
D | location_config_manager.h | 55 bool CreateFile(const std::string& filename, const std::string& filedata);
|
/base/hiviewdfx/hiview/base/event_store/store/include/ |
D | sys_event_doc.h | 42 std::string CreateFile();
|
/base/powermgr/battery_manager/charger/include/ |
D | power_supply_provider.h | 68 void CreateFile(const std::string& path, const std::string& content);
|
/base/hiviewdfx/hitrace/test/unittest/hitrace_dump/ |
D | hitrace_dump_test.cpp | 60 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/ |
D | location_config_manager_test.cpp | 136 EXPECT_EQ(true, LocationConfigManager::GetInstance().CreateFile("filename", "filedata"));
|
/base/hiviewdfx/hiview/base/utility/test/unittest/common/ |
D | adapter_utility_ohos_test.cpp | 324 auto ret = FileUtil::CreateFile(GenerateLogFileName(caseName, SUFFIX_0)); 327 (void)FileUtil::CreateFile(GenerateLogFileName(caseName, SUFFIX_0));
|
/base/hiviewdfx/hiview/base/event_store/store/ |
D | sys_event_doc.cpp | 167 …if (FileUtil::CreateFile(filePath, FileUtil::FILE_PERM_660) != 0 && !FileUtil::FileExists(filePath… in CreateCurFile()
|
/base/hiviewdfx/hiview/base/utility/include/ |
D | file_util.h | 70 int32_t CreateFile(const std::string &path, mode_t mode = DEFAULT_FILE_MODE);
|
/base/hiviewdfx/hiview/base/utility/ |
D | file_util.cpp | 267 int CreateFile(const std::string &path, mode_t mode) in CreateFile() function
|
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/ |
D | io_collector_impl.cpp | 195 (void)FileUtil::CreateFile(fileName); in CreateExportFileName()
|