Home
last modified time | relevance | path

Searched refs:filepath (Results 1 – 25 of 26) sorted by relevance

12

/tools/netsim/rust/common/src/util/
Dini_file.rs31 filepath: PathBuf, field
40 pub fn new(filepath: PathBuf) -> IniFile { in new()
41 IniFile { data: HashMap::new(), filepath } in new()
53 let mut f = File::open(self.filepath.clone())?; in read()
76 let mut f = File::create(self.filepath.clone())?; in write()
147 let filepath = get_temp_ini_filepath("test_read"); in test_read() localVariable
150 let mut tmpfile = match File::create(&filepath) { in test_read()
157 let mut inifile = IniFile::new(filepath.clone()); in test_read()
168 std::fs::remove_file(filepath).unwrap(); in test_read()
174 let filepath = get_temp_ini_filepath("test_read_no_newline"); in test_read_no_newline() localVariable
[all …]
Dnetsim_logger.rs72 Some(filepath) => { in format_file()
73 let file = Path::new(filepath); in format_file()
Dos_utils.rs88 let filepath = get_netsim_ini_filepath(instance_num); in get_server_address() localVariable
89 if !filepath.exists() { in get_server_address()
93 if !filepath.is_file() { in get_server_address()
97 let mut ini_file = IniFile::new(filepath); in get_server_address()
/tools/treble/hacksaw/bind/
Dlocal.go43 for dir := filepath.Dir(inPath); dir != "." && dir != "/"; dir = filepath.Dir(dir) {
45 if filepath.Base(dir) == "hacksaw" {
54 source, err := filepath.EvalSymlinks(source)
58 destination, err = filepath.EvalSymlinks(destination)
74 source, err := filepath.EvalSymlinks(source)
78 destination, err = filepath.EvalSymlinks(destination)
89 destination, err := filepath.EvalSymlinks(destination)
/tools/treble/hacksaw/workspace/
Dcopier.go44 if pathToCheck, err = filepath.Rel(codebaseDir, pathToCheck); err != nil {
59 for dir := project; dir != "." && dir != "/"; dir = filepath.Dir(dir) {
66 if pathToCheck, err = filepath.Rel(codebaseDir, pathToCheck); err != nil {
81 return filepath.Walk(codebaseDir,
92 if path == filepath.Clean(codebaseDir) {
97 if path == filepath.Join(codebaseDir, ".repo") {
98 return filepath.SkipDir
107 return filepath.SkipDir
123 return filepath.SkipDir
133 relPath, err := filepath.Rel(codebaseDir, sourcePath)
[all …]
Dworkspace.go98 dir := filepath.Join(w.topDir, workspaceName)
131 workspaceDir, err = filepath.Abs(workspaceDir)
137 workspaceDir, err = filepath.EvalSymlinks(workspaceDir)
161 project, err := filepath.Rel(workspaceDir, unbindPath)
173 codebaseProject := filepath.Join(codebaseDir, project)
174 workspaceProject := filepath.Join(workspaceDir, project)
242 editPath, err := filepath.Abs(editPath)
246 editPath, err = filepath.EvalSymlinks(editPath)
270 wsProjectPath := filepath.Join(workspaceDir, relProjectPath)
277 cbProjectPath := filepath.Join(codebaseDir, relProjectPath)
[all …]
Dcompose.go72 source := filepath.Join(codebasePath, project)
73 destination := filepath.Join(workspacePath, project)
136 listPath, err := filepath.EvalSymlinks(listPath)
/tools/netsim/src/util/
Dini_file.cc30 if (filepath.empty()) { in Read()
35 std::ifstream inFile(filepath); in Read()
38 BtsLogWarn("Failed to process .ini file %s for reading.", filepath.c_str()); in Read()
54 if (filepath.empty()) { in Write()
59 std::ofstream outFile(filepath); in Write()
62 BtsLogWarn("Failed to open .ini file %s for writing.", filepath.c_str()); in Write()
Dos_utils.cc84 auto filepath = GetNetsimIniFilepath(instance_num); in GetServerAddress() local
85 if (!netsim::filesystem::exists(filepath)) { in GetServerAddress()
86 BtsLogWarn("Unable to find netsim ini file: %s", filepath.c_str()); in GetServerAddress()
89 if (!netsim::filesystem::is_regular_file(filepath)) { in GetServerAddress()
90 BtsLogError("Not a regular file: %s", filepath.c_str()); in GetServerAddress()
93 IniFile iniFile(filepath); in GetServerAddress()
Dini_file.h32 explicit IniFile(std::string filepath = "") : filepath(std::move(filepath)) {} in filepath() function
52 std::string filepath; variable
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/util/
DTargetFileUtils.java71 public static String getPermission(String filepath, ITestDevice device) in getPermission() argument
73 CommandResult commandResult = device.executeShellV2Command("stat -c %a " + filepath); in getPermission()
174 public static boolean isReadOnly(String filepath, ITestDevice device) in isReadOnly() argument
176 String permissionBits = getPermission(filepath, device); in isReadOnly()
189 public static boolean isReadWriteOnly(String filepath, ITestDevice device) in isReadWriteOnly() argument
191 String permissionBits = getPermission(filepath, device); in isReadWriteOnly()
/tools/test/connectivity/acts_tests/tests/google/ble/performance/
DBleRangeTest.py135 filepath = os.path.join(
139 df.to_csv(filepath, encoding='utf-8')
143 df.to_csv(filepath, encoding='utf-8')
192 filepath = os.path.join(
206 df.to_csv(filepath, encoding='utf-8')
212 df.to_csv(filepath, encoding='utf-8')
257 filepath = os.path.join(
260 ble_df.to_csv(filepath, encoding='utf-8')
/tools/treble/build/treble_build/report/
Dprojects.go54 symlink, _ := os.Readlink(filepath.Join(path, ".git"))
66 gitDir = filepath.Join(parts[repostart:]...)
94 if realpath, err := filepath.EvalSymlinks(filename); err == nil {
168 info.FileCache[filepath.Join(r.GitProj.RepoDir, n)] = r
Drun.go33 err := filepath.WalkDir(dir, func(path string, d fs.DirEntry, err error) error {
49 return filepath.SkipDir
113 files = append(files, filepath.Join(proj.GitProj.RepoDir, f.Filename))
/tools/netsim/rust/daemon/src/http_server/
Dhttp_handlers.rs87 let filepath = match path.strip_prefix('/') { in check_valid_file_path() localVariable
91 valid_files.contains(filepath.as_path().to_str().unwrap()) in check_valid_file_path()
108 let filepath = match path.strip_prefix('/') { in handle_file() localVariable
112 if let Ok(body) = fs::read(&filepath) { in handle_file()
113 writer.put_ok_with_vec(to_content_type(&filepath), body, vec![]); in handle_file()
/tools/asuite/atest/
Dtest_mapping.py147 os.path.relpath(filepath, test_mapping_dir)
148 for filepath in fnmatch.filter(
/tools/treble/hacksaw/cmd/hacksaw/
Dmain.go58 topDir := filepath.Join(home, "hacksaw")
67 topDir, err = filepath.EvalSymlinks(topDir)
/tools/treble/build/treble_build/local/
Ddefaults.go23 dbs, _ := filepath.Glob("out/combined-*.ninja")
/tools/netsim/rust/proto/
DCMakeLists.txt13 # Set CMake executable filepath because it's not found by cmake Rust crate. From
/tools/netsim/rust/daemon/src/
Dservice.rs148 let filepath = get_netsim_ini_filepath(self.service_params.instance_num); in write_ports_to_ini() localVariable
149 let mut ini_file = IniFile::new(filepath); in write_ports_to_ini()
/tools/treble/hacksaw/codebase/
Dcodebase.go28 absPath, err := filepath.Abs(path)
/tools/treble/build/treble_build/cmd/
Dhost.go53 hostSourceFileMap[filepath.Join(name, f)] = true
/tools/loganalysis/src/com/android/loganalysis/
DLogAnalyzer.java283 private BufferedReader getBufferedReader(String filepath) throws FileNotFoundException { in getBufferedReader() argument
284 return new BufferedReader(new FileReader(new File(filepath))); in getBufferedReader()
/tools/test/openhst/
Dstress_test.proto55 // The filepath to save the output of this file on the local machine. If
70 // The filepath to save the output of this process on the local machine. If
/tools/security/fuzzing/fuzzer_parser/
Dfuzzparser.go184 filepath.Walk(path, visitFile)

12