/system/timezone/input_tools/android/common/src/testing/java/com/android/libcore/timezone/testing/ |
D | TestUtils.java | 26 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/ |
D | config.rs | 26 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 …]
|
D | trace_provider.rs | 21 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
|
D | logging_trace_provider.rs | 20 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
|
D | simpleperf_etm_trace_provider.rs | 21 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
|
D | simpleperf_lbr_trace_provider.rs | 20 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
|
D | report.rs | 24 use std::path::{Path, PathBuf}; 39 profile: &Path, in pack_report() argument 40 report: &Path, in pack_report() argument
|
/system/extras/simpleperf/scripts/ |
D | binary_cache_builder.py | 26 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/ |
D | stackcollapse_test.py | 19 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())
|
D | sample_filter_test.py | 19 from pathlib import Path 37 part1_data = Path('sample_filter_part1').read_text() 40 part2_data = Path('sample_filter_part2').read_text()
|
D | test.py | 17 from pathlib import Path 21 sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
|
D | annotate_test.py | 18 from pathlib import Path 40 annotate_dir = Path('annotated_files') 82 summary = Path('annotated_files') / 'summary'
|
D | test_utils.py | 23 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:
|
D | binary_cache_builder_test.py | 19 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/ |
D | report_utils_test.cpp | 165 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/ |
D | hidl_package_root.go | 36 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/ |
D | ZoneCompactorTest.java | 27 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/ |
D | ota_stress_test.py | 22 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/ |
D | build.rs | 20 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/ |
D | apexinfo.rs | 24 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/ |
D | lib.rs | 21 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/ |
D | lib.rs | 19 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/ |
D | TelephonyLookupGeneratorTest.java | 36 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/ |
D | aidl_gen_rule.go | 109 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/ |
D | cil_compat_map.go | 137 Implicits: []android.Path{ 138 topHalf.Path(), 150 ctx.InstallFile(c.installPath, c.stem(), c.installSource.Path()) 153 ctx.SetOutputFiles(android.Paths{c.installSource.Path()}, "")
|