Home
last modified time | relevance | path

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

123

/system/extras/profcollectd/libprofcollectd/
Dconfig.rs25 use std::path::Path;
35 pub static ref TRACE_OUTPUT_DIR: &'static Path = Path::new("/data/misc/profcollectd/trace/");
36 pub static ref PROFILE_OUTPUT_DIR: &'static Path = Path::new("/data/misc/profcollectd/output/");
37 pub static ref REPORT_OUTPUT_DIR: &'static Path = Path::new("/data/misc/profcollectd/report/");
38 pub static ref BETTERBUG_CACHE_DIR_PREFIX: &'static Path = Path::new("/data/user/");
39 pub static ref BETTERBUG_CACHE_DIR_SUFFIX: &'static Path =
40 Path::new("com.google.android.apps.internal.betterbug/cache/");
41 pub static ref CONFIG_FILE: &'static Path =
42 Path::new("/data/misc/profcollectd/output/config.json");
Dtrace_provider.rs21 use std::path::Path;
29 fn trace(&self, trace_dir: &Path, tag: &str, sampling_period: &Duration); in trace() argument
30 fn process(&self, trace_dir: &Path, profile_dir: &Path) -> Result<()>; in process() argument
Dsimpleperf_etm_trace_provider.rs21 use std::path::{Path, PathBuf};
37 fn trace(&self, trace_dir: &Path, tag: &str, sampling_period: &Duration) { in trace() argument
49 fn process(&self, trace_dir: &Path, profile_dir: &Path) -> Result<()> { in process() argument
Dreport.rs25 use std::path::{Path, PathBuf};
39 pub fn pack_report(profile: &Path, report: &Path, config: &Config) -> Result<String> { in pack_report() argument
/system/core/libcutils/
Dcanned_fs_config.cpp34 } Path; typedef
36 static Path* canned_data = NULL;
41 return strcmp(((Path*)a)->path, ((Path*)b)->path); in path_compare()
55 Path* p; in load_canned_fs_config()
62 canned_data = (Path*) realloc(canned_data, canned_alloc * sizeof(Path)); in load_canned_fs_config()
86 qsort(canned_data, canned_used, sizeof(Path), path_compare); in load_canned_fs_config()
96 Path key, *p; in canned_fs_config()
100 p = (Path*) bsearch(&key, canned_data, canned_used, sizeof(Path), path_compare); in canned_fs_config()
/system/timezone/input_tools/android/common/src/testing/java/com/android/libcore/timezone/testing/
DTestUtils.java24 import java.nio.file.Path;
39 public static String createFile(Path dir, String... lines) throws IOException { in createFile()
40 Path tempFile = Files.createTempFile(dir, "tmp", null /* suffix */); in createFile()
45 public static void deleteDir(Path tempDir) throws IOException { in deleteDir()
46 FileVisitor<? super Path> deleter = new SimpleFileVisitor<Path>() { in deleteDir()
48 public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) in deleteDir()
54 public FileVisitResult postVisitDirectory(Path dir, IOException exc) in deleteDir()
59 private FileVisitResult delete(Path file) throws IOException { in deleteDir()
/system/extras/simpleperf/rust/
Dlib.rs21 use std::path::Path;
24 fn path_to_cstr(path: &Path) -> CString { in path_to_cstr()
44 pub fn record(trace_file: &Path, duration: &Duration, scope: RecordScope) { in record() argument
59 pub fn process(trace_path: &Path, profile_path: &Path) { in process() argument
/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/extras/simpleperf/
Dreport_utils_test.cpp121 ASSERT_EQ(entries[0].dso->Path(), fake_dex_file_path); in TEST_F()
126 ASSERT_EQ(entries[1].dso->Path(), fake_dex_file_path); in TEST_F()
141 ASSERT_EQ(entries[0].dso->Path(), fake_dex_file_path); in TEST_F()
146 ASSERT_EQ(entries[1].dso->Path(), fake_jit_cache_path); in TEST_F()
162 ASSERT_EQ(entries[i].dso->Path(), fake_interpreter_path); in TEST_F()
167 ASSERT_EQ(entries[i + 1].dso->Path(), fake_interpreter_path); in TEST_F()
173 ASSERT_EQ(entries[2].dso->Path(), fake_dex_file_path); in TEST_F()
178 ASSERT_EQ(entries[5].dso->Path(), fake_dex_file_path); in TEST_F()
198 ASSERT_EQ(entries[0].dso->Path(), fake_dex_file_path); in TEST_F()
219 ASSERT_EQ(entries[i].dso->Path(), fake_interpreter_path); in TEST_F()
[all …]
Dcmd_inject.cpp286 bool match = std::regex_search(dso->Path(), binary_name_regex_); in FilterDso()
369 LOG(WARNING) << "failed to build instr ranges for binary " << dso_p->Path() << ": " in ProcessBranchListFile()
429 std::sort(dso_v.begin(), dso_v.end(), [](Dso* d1, Dso* d2) { return d1->Path() < d2->Path(); }); in GenerateInstrRange()
476 fprintf(output_fp_.get(), "// %s\n\n", dso->Path().c_str()); in GenerateInstrRange()
509 binary_proto->set_path(dso->Path()); in GenerateBranchList()
510 BuildId build_id = Dso::FindExpectedBuildIdForPath(dso->Path()); in GenerateBranchList()
541 if (dso->GetDebugFilePath() == dso->Path()) { in GenerateBranchList()
/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/extras/simpleperf/scripts/test/
Dbinary_cache_builder_test.py19 from pathlib import Path
81 Path(tmp_dir) / 'simpleperf_runtest_two_functions_arm64')
83 debug_dir = Path(tmp_dir) / 'debug'
89 elf_path = (Path(binary_cache_builder.binary_cache_dir) / 'data' /
100 elf_path = (Path(binary_cache_builder.binary_cache_dir) / 'data' /
105 build_id_list_path = Path(binary_cache_builder.binary_cache_dir) / 'build_id_list'
Dtest.py17 from pathlib import Path
21 sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
Dtest_utils.py23 from pathlib import Path
33 INFERNO_SCRIPT = str(Path(__file__).parents[1] / ('inferno.bat' if is_windows() else 'inferno.sh'))
49 cls.script_dir = Path(__file__).resolve().parents[1]
50 cls.test_base_dir = Path(test_dir).resolve()
52 cls.testdata_dir = Path(testdata_dir).resolve()
83 def get_test_dir(cls, test_name: str) -> Path:
/system/sepolicy/build/soong/
Dcil_compat_map.go76 installSource android.Path
81 GeneratedMapFile() android.Path
148 Implicits: []android.Path{
149 topHalf.Path(),
175 ret.Extra = append(ret.Extra, func(w io.Writer, outputFile android.Path) {
186 func (c *cilCompatMap) GeneratedMapFile() android.Path {
/system/security/keystore2/test_utils/
Dlib.rs19 use std::path::{Path, PathBuf};
52 pub fn path(&self) -> &Path { in path() argument
99 type Target = Path;
/system/bt/gd/rust/linux/stack/btif_macros/src/
Dlib.rs7 use std::path::Path;
17 let path = Path::new(filename.as_str()); in debug_output_to_file()
40 let fn_ident = if let Expr::Path(p) = &args[0] { in btif_callbacks_generator()
46 let callbacks_struct_ident = if let Expr::Path(p) = &args[1] { in btif_callbacks_generator()
/system/tools/aidl/build/
Daidl_utils.go55 func getBaseDir(ctx android.ModuleContext, src android.Path, aidlRoot android.Path) string { argument
Daidl_gen_rule.go90 hashFile android.Path
143 func (g *aidlGenRule) generateBuildActionsForSingleAidl(ctx android.ModuleContext, src android.Path
166 hash = "$$(read -r <" + hashFile.Path().String() + " hash extra; printf '%s' \"$$hash\")"
167 implicits = append(implicits, hashFile.Path())
169 g.hashFile = hashFile.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/bt/gd/rust/facade_proto/
Dbuild.rs23 use std::path::{Path, PathBuf};
25 fn paths_to_strs<P: AsRef<Path>>(paths: &[P]) -> Vec<&str> { in paths_to_strs()
30 fn gen_mod_rs<P: AsRef<Path>>(out_dir: PathBuf, inputs: &[P], grpc: bool) { in gen_mod_rs()
/system/extras/simpleperf/scripts/
Dsimpleperf_utils.py26 from pathlib import Path
267 Path(get_script_dir()).parents[3] / 'prebuilts' / 'clang' / 'host' / 'linux-x86' /
430 def remove(dir_or_file: Union[Path, str]): argument
456 def __init__(self, binary_cache_dir: Optional[Union[Path, str]], readelf: ReadElf): argument
458 binary_cache_dir = Path(binary_cache_dir)
463 def _load_build_id_map(self) -> Dict[str, Path]:
464 build_id_map: Dict[str, Path] = {}
477 expected_build_id: Optional[str]) -> Optional[Path]:
491 path = Path(dso_path_in_record_file)
496 def _check_path(self, path: Path, expected_build_id: Optional[str]) -> bool: argument
[all …]
/system/bt/gd/rust/gddi/macros/
Dlib.rs9 braced, parse, parse_macro_input, DeriveInput, Fields, FnArg, Ident, ItemFn, ItemStruct, Path,
52 submodules: Punctuated<Path, Token![,]>,
57 Submodules(Punctuated<Path, Token![,]>),
124 Ok(ModuleEntry::Submodules(entries.parse_terminated(Path::parse)?)) in parse()
143 Type::Path(ty) if p.parts => Some(format_ident!( in module()
/system/bt/gd/rust/linux/dbus_projection/dbus_macros/src/
Dlib.rs7 use std::path::Path;
17 let path = Path::new(filename.as_str()); in debug_output_to_file()
40 let fn_ident = if let Expr::Path(p) = &args[0] { in generate_dbus_exporter()
227 if let Expr::Path(p) = &args[0] { p.path.get_ident().unwrap().clone() } else { ast.ident }; in dbus_propmap()
254 let field_type_str = if let Type::Path(t) = field.ty { in dbus_propmap()
386 let struct_ident = if let Expr::Path(p) = &args[0] { in dbus_proxy_obj()
478 objpath: Path<'static>, in dbus_proxy_obj()
493 type DBusType = Path<'static>; in dbus_proxy_obj()
496 objpath: Path<'static>, in dbus_proxy_obj()
504 fn to_dbus(_data: Box<dyn #trait_ + Send>) -> Result<Path<'static>, Box<dyn Error>> { in dbus_proxy_obj()
/system/security/keystore2/src/
Did_rotation.rs26 use std::path::{Path, PathBuf};
42 pub fn new(keystore_db_path: &Path) -> Self { in new()

123