Home
last modified time | relevance | path

Searched refs:Path (Results 1 – 25 of 82) sorted by relevance

1234

/system/timezone/input_tools/android/common/src/testing/java/com/android/libcore/timezone/testing/
DTestUtils.java26 import java.nio.file.Path;
41 public static String createFile(Path dir, String... lines) throws IOException { in createFile()
42 Path tempFile = Files.createTempFile(dir, "tmp", null /* suffix */); in createFile()
47 public static void deleteDir(Path tempDir) throws IOException { in deleteDir()
48 FileVisitor<? super Path> deleter = new SimpleFileVisitor<Path>() { in deleteDir()
50 public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) in deleteDir()
56 public FileVisitResult postVisitDirectory(Path dir, IOException exc) in deleteDir()
61 private FileVisitResult delete(Path file) throws IOException { in deleteDir()
/system/extras/profcollectd/libprofcollectd/
Dconfig.rs26 use std::path::Path;
39 pub static TRACE_OUTPUT_DIR: Lazy<&'static Path> = variable
40 Lazy::new(|| Path::new("/data/misc/profcollectd/trace/"));
41 pub static PROFILE_OUTPUT_DIR: Lazy<&'static Path> = variable
42 Lazy::new(|| Path::new("/data/misc/profcollectd/output/"));
43 pub static REPORT_OUTPUT_DIR: Lazy<&'static Path> = variable
44 Lazy::new(|| Path::new("/data/misc/profcollectd/report/"));
45 pub static CONFIG_FILE: Lazy<&'static Path> = variable
46 Lazy::new(|| Path::new("/data/misc/profcollectd/output/config.json"));
47 pub static LOG_FILE: Lazy<&'static Path> = variable
[all …]
Dtrace_provider.rs21 use std::path::{Path, PathBuf};
34 fn trace(&self, trace_dir: &Path, tag: &str, sampling_period: &Duration, binary_filter: &str); in trace() argument
35 fn process(&self, trace_dir: &Path, profile_dir: &Path, binary_filter: &str) -> Result<()>; in process() argument
36 fn set_log_file(&self, filename: &Path); in set_log_file() argument
59 pub fn get_path(dir: &Path, tag: &str, ext: &str) -> Box<Path> { in get_path() argument
Dlogging_trace_provider.rs20 use std::path::Path;
39 fn trace(&self, trace_dir: &Path, tag: &str, sampling_period: &Duration, _binary_filter: &str) { in trace() argument
50 fn process(&self, _trace_dir: &Path, _profile_dir: &Path, _binary_filter: &str) -> Result<()> { in process() argument
55 fn set_log_file(&self, _filename: &Path) {} in set_log_file() argument
Dsimpleperf_etm_trace_provider.rs21 use std::path::{Path, PathBuf};
41 fn trace(&self, trace_dir: &Path, tag: &str, sampling_period: &Duration, binary_filter: &str) { in trace() argument
66 fn process(&self, trace_dir: &Path, profile_dir: &Path, binary_filter: &str) -> Result<()> { in process() argument
106 fn set_log_file(&self, filename: &Path) { in set_log_file() argument
Dsimpleperf_lbr_trace_provider.rs20 use std::path::{Path, PathBuf};
40 fn trace(&self, trace_dir: &Path, tag: &str, sampling_period: &Duration, binary_filter: &str) { in trace() argument
66 fn process(&self, trace_dir: &Path, profile_dir: &Path, binary_filter: &str) -> Result<()> { in process() argument
106 fn set_log_file(&self, filename: &Path) { in set_log_file() argument
Dreport.rs24 use std::path::{Path, PathBuf};
39 profile: &Path, in pack_report() argument
40 report: &Path, in pack_report() argument
/system/extras/simpleperf/scripts/
Dbinary_cache_builder.py26 from pathlib import Path
42 def __init__(self, binary_dir: Path): argument
45 def get_path_in_cache(self, device_path: str, build_id: str) -> Path:
61 return Path(os.path.join(self.binary_dir, device_path))
76 def read_build_id(self, path: Path): argument
101 def check_and_pull_binary(self, path: str, expected_build_id: str, binary_cache_file: Path): argument
123 def pull_file_from_device(self, device_path: str, host_path: Path) -> bool: argument
135 def pull_kernel_symbols(self, file_path: Path): argument
146 def __init__(self, readelf: ReadElf, lib_dirs: List[Path]): argument
180 def is_platform_symbols_dir(self, lib_dir: Path): argument
[all …]
/system/extras/simpleperf/scripts/test/
Dstackcollapse_test.py19 from pathlib import Path
38 self.assertEqual(got, Path(golden_path).read_text())
43 self.assertEqual(got, Path(golden_path).read_text())
48 self.assertEqual(got, Path(golden_path).read_text())
53 self.assertEqual(got, Path(golden_path).read_text())
58 self.assertEqual(got, Path(golden_path).read_text())
63 self.assertEqual(got, Path(golden_path).read_text())
68 self.assertEqual(got, Path(golden_path).read_text())
Dsample_filter_test.py19 from pathlib import Path
37 part1_data = Path('sample_filter_part1').read_text()
40 part2_data = Path('sample_filter_part2').read_text()
Dtest.py17 from pathlib import Path
21 sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
Dannotate_test.py18 from pathlib import Path
40 annotate_dir = Path('annotated_files')
82 summary = Path('annotated_files') / 'summary'
Dtest_utils.py23 from pathlib import Path
34 INFERNO_SCRIPT = str(Path(__file__).parents[1] / ('inferno.bat' if is_windows() else 'inferno.sh'))
50 cls.script_dir = Path(__file__).resolve().parents[1]
51 cls.test_base_dir = Path(test_dir).resolve()
53 cls.testdata_dir = Path(testdata_dir).resolve()
84 def get_test_dir(cls, test_name: str) -> Path:
Dbinary_cache_builder_test.py19 from pathlib import Path
119 Path(tmp_dir) / filename)
121 debug_dir = Path(tmp_dir) / 'debug'
142 build_id_list_path = Path(binary_cache_builder.binary_cache_dir) / 'build_id_list'
/system/extras/simpleperf/
Dreport_utils_test.cpp165 ASSERT_EQ(entries[0].dso->Path(), fake_dex_file_path); in TEST_F()
170 ASSERT_EQ(entries[1].dso->Path(), fake_dex_file_path); in TEST_F()
186 ASSERT_EQ(entries[0].dso->Path(), fake_dex_file_path); in TEST_F()
191 ASSERT_EQ(entries[1].dso->Path(), fake_jit_cache_path); in TEST_F()
208 ASSERT_EQ(entries[i].dso->Path(), fake_interpreter_path); in TEST_F()
213 ASSERT_EQ(entries[i + 1].dso->Path(), fake_interpreter_path); in TEST_F()
219 ASSERT_EQ(entries[2].dso->Path(), fake_dex_file_path); in TEST_F()
224 ASSERT_EQ(entries[5].dso->Path(), fake_dex_file_path); in TEST_F()
245 ASSERT_EQ(entries[0].dso->Path(), fake_dex_file_path); in TEST_F()
267 ASSERT_EQ(entries[i].dso->Path(), fake_interpreter_path); in TEST_F()
[all …]
/system/tools/hidl/build/
Dhidl_package_root.go36 Path *string member
63 return "-r" + r.Name() + ":" + *r.properties.Path
84 Input: r.currentPath.Path(),
97 if r.properties.Path == nil {
98 r.properties.Path = proptools.StringPtr(ctx.ModuleDir())
102 if *r.properties.Path != ctx.ModuleDir() {
106 "the path of hidl_package_root.", *r.properties.Path, ctx.ModuleDir())
/system/timezone/input_tools/android/zone_compactor/test/java/
DZoneCompactorTest.java27 import java.nio.file.Path;
41 private Path inputFilesDir;
42 private Path outputFilesDir;
59 Path americaToronto = Files.createFile(inputFilesDir.resolve("America").resolve("Toronto")); in shouldFollowLinkChains_definedInForwardOrder()
69 Path resultTzdata = outputFilesDir.resolve("tzdata"); in shouldFollowLinkChains_definedInForwardOrder()
88 Path americaToronto = Files.createFile(inputFilesDir.resolve("America").resolve("Toronto")); in shouldFollowLinkChains_definedInBackwardsOrder()
98 Path resultTzdata = outputFilesDir.resolve("tzdata"); in shouldFollowLinkChains_definedInBackwardsOrder()
116 Path americaToronto = Files.createFile(inputFilesDir.resolve("America").resolve("Toronto")); in shouldFail_ifSetupFileHasMultipleZoneEntriesOfTheSameTimeZoneId()
/system/update_engine/scripts/
Dota_stress_test.py22 from pathlib import Path
37 def PerformOTAThenPause(otafile: Path, update_device_script: Path): argument
58 def PerformTest(otafile: Path, resumes: int, timeout: int): argument
69 script_dir = Path(__file__).parent.absolute()
99 parser.add_argument('otafile', metavar='PAYLOAD', type=Path,
/system/nfc/tools/casimir/
Dbuild.rs20 use std::path::{Path, PathBuf};
39 fn install_generated_module(module_name: &str, prebuilt_var: &str, pdl_name: &Path) { in install_generated_module() argument
45 if Path::new(module_prebuilt.as_os_str()).exists() { in install_generated_module()
57 fn generate_module(in_file: &Path) { in generate_module() argument
/system/apex/libs/libapexsupport/src/
Dapexinfo.rs24 use std::path::{Path, PathBuf};
62 fn get_apex_manifest_path<P: AsRef<Path>>(path: P) -> Result<PathBuf, AApexInfoError> { in get_apex_manifest_path()
71 Ok(Path::new("/apex").join(apex_name).join("apex_manifest.pb")) in get_apex_manifest_path()
75 fn parse_apex_manifest<P: AsRef<Path>>(path: P) -> Result<ApexManifest, AApexInfoError> { in parse_apex_manifest()
/system/extras/simpleperf/rust/
Dlib.rs21 use std::path::Path;
23 fn path_to_cstr(path: &Path) -> CString { in path_to_cstr()
66 pub fn set_log_file(filename: &Path) { in set_log_file() argument
/system/security/keystore2/test_utils/
Dlib.rs19 use std::path::{Path, PathBuf};
63 pub fn path(&self) -> &Path { in path() argument
110 type Target = Path;
/system/timezone/input_tools/android/telephonylookup_generator/src/test/java/com/android/libcore/timezone/telephonylookup/
DTelephonyLookupGeneratorTest.java36 import java.nio.file.Path;
41 private Path tempDir;
166 Path outputFilePath = Paths.get(outputFile); in generateTelephonyLookupXml()
172 private static String readFileToString(Path file) throws IOException { in readFileToString()
196 Path outputFilePath = Paths.get(outputFile); in assertFileIsEmpty()
/system/tools/aidl/build/
Daidl_gen_rule.go109 hashFile android.Path
172 func (g *aidlGenRule) generateBuildActionsForSingleAidl(ctx android.ModuleContext, src android.Path
211 hash = "$$(tail -1 '" + hashFile.Path().String() + "')"
212 implicits = append(implicits, hashFile.Path())
214 g.hashFile = hashFile.Path()
243 optionalFlags = append(optionalFlags, "--previous_api_dir="+apiDirPath.Path().String())
245 ctx.PropertyErrorf("--previous_api_dir is invalid: %s", apiDirPath.Path().String())
249 previousHash := "$$(tail -1 '" + hashFile.Path().String() + "')"
250 implicits = append(implicits, hashFile.Path())
/system/sepolicy/build/soong/
Dcil_compat_map.go137 Implicits: []android.Path{
138 topHalf.Path(),
150 ctx.InstallFile(c.installPath, c.stem(), c.installSource.Path())
153 ctx.SetOutputFiles(android.Paths{c.installSource.Path()}, "")

1234