Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 950) sorted by relevance

12345678910>>...38

/packages/modules/Virtualization/
DTEST_MAPPING79 "path": "packages/modules/Virtualization/apkdmverity"
82 "path": "packages/modules/Virtualization/encryptedstore"
85 "path": "packages/modules/Virtualization/virtualizationmanager"
88 "path": "packages/modules/Virtualization/libs/apexutil"
91 "path": "packages/modules/Virtualization/libs/apkverify"
94 "path": "packages/modules/Virtualization/libs/avb"
97 "path": "packages/modules/Virtualization/libs/bssl"
100 "path": "packages/modules/Virtualization/libs/capabilities"
103 "path": "packages/modules/Virtualization/libs/devicemapper"
106 "path": "packages/modules/Virtualization/libs/dice"
[all …]
/packages/services/Car/cpp/watchdog/server/tests/
DProcPidDir.cpp37 Result<void> makeDir(std::string path) { in makeDir() argument
38 if (mkdir(path.c_str(), 0700) && errno != EEXIST) { in makeDir()
39 return Error() << "Could not mkdir " << path << ": " << strerror(errno); in makeDir()
65 std::string path = StringPrintf((procDirPath + kStatFileFormat).c_str(), pid); in populateProcPidDir() local
66 if (!WriteStringToFile(processStat.at(pid), path)) { in populateProcPidDir()
67 return Error() << "Failed to write pid stat file " << path; in populateProcPidDir()
73 std::string path = StringPrintf((procDirPath + kStatusFileFormat).c_str(), pid); in populateProcPidDir() local
74 if (!WriteStringToFile(processStatus.at(pid), path)) { in populateProcPidDir()
75 return Error() << "Failed to write pid status file " << path; in populateProcPidDir()
81 std::string path = StringPrintf((procDirPath + kSmapsRollupFileFormat).c_str(), pid); in populateProcPidDir() local
[all …]
DUidProcStatsCollectorTest.cpp123 std::string path = StringPrintf((rootPath + kSmapsRollupFileFormat).c_str(), 1); in isSmapsRollupSupported() local
124 return access(path.c_str(), R_OK) == 0; in isSmapsRollupSupported()
208 ASSERT_RESULT_OK(populateProcPidDir(firstSnapshot.path, pidToTids, perProcessStat, in TEST()
212 UidProcStatsCollector collector(firstSnapshot.path, isSmapsRollupSupported(firstSnapshot.path)); in TEST()
216 << "Files under the path `" << firstSnapshot.path << "` are inaccessible"; in TEST()
298 ASSERT_RESULT_OK(populateProcPidDir(secondSnapshot.path, pidToTids, perProcessStat, in TEST()
302 collector.mPath = secondSnapshot.path; in TEST()
305 << "Files under the path `" << secondSnapshot.path << "` are inaccessible"; in TEST()
404 ASSERT_RESULT_OK(populateProcPidDir(procDir.path, pidToTids, perProcessStat, perProcessStatus, in TEST()
408 UidProcStatsCollector collector(procDir.path, isSmapsRollupSupported(procDir.path)); in TEST()
[all …]
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/
DGenericDocument.java263 public Object getProperty(@NonNull String path) { in getProperty() argument
264 Objects.requireNonNull(path); in getProperty()
267 new PropertyPath(path), in getProperty()
287 Log.e(TAG, "The inner parcel is null at " + i + ", for path: " + path); in getProperty()
317 @NonNull PropertyPath path, in getRawPropertyFromRawDocument()
320 Objects.requireNonNull(path); in getRawPropertyFromRawDocument()
322 for (int i = pathIndex; i < path.size(); i++) { in getRawPropertyFromRawDocument()
323 PropertyPath.PathSegment segment = path.get(i); in getRawPropertyFromRawDocument()
385 if (currentElementValue == null || i == path.size() - 1) { in getRawPropertyFromRawDocument()
437 path, in getRawPropertyFromRawDocument()
[all …]
DPropertyPath.java65 public PropertyPath(@NonNull String path) { in PropertyPath() argument
66 Objects.requireNonNull(path); in PropertyPath()
69 recursivePathScan(path); in PropertyPath()
73 throw new IllegalArgumentException(e.getMessage() + ": " + path); in PropertyPath()
78 private void recursivePathScan(@UnderInitialization PropertyPath this, String path) in recursivePathScan() argument
83 for (int i = 0; i < path.length(); i++) { in recursivePathScan()
84 char c = path.charAt(i); in recursivePathScan()
95 if (controlPos == 0 || path.isEmpty()) { in recursivePathScan()
102 mPathList.add(new PathSegment(path, PathSegment.NON_REPEATED_CARDINALITY)); in recursivePathScan()
108 String propertyName = path.substring(0, controlPos); in recursivePathScan()
[all …]
/packages/modules/Bluetooth/
Dbuild.py203 self.bootstrap_dir = os.path.abspath(self.args.bootstrap_dir)
207 self.output_dir = os.path.join(self.bootstrap_dir, 'output')
208 self.platform_dir = os.path.join(self.bootstrap_dir, 'staging')
209 self.bt_dir = os.path.join(self.platform_dir, 'bt')
212 self.install_dir = os.path.join(self.output_dir, 'install')
214 assert os.path.samefile(self.bt_dir,
215 … os.path.dirname(__file__)), "Please rerun bootstrap for the current project!"
231 assert os.path.isdir(self.platform_dir), 'Platform dir does not exist'
232 …assert os.path.isfile(os.path.join(self.platform_dir, '.gn')), 'Platform dir does not have .gn at …
262 cargo_home = os.path.join(self.output_dir, 'cargo_home')
[all …]
/packages/modules/Connectivity/tests/cts/hostside/src/com/android/cts/net/
DProcNetTest.java111 public int readIntFromPath(String path) throws Exception { in readIntFromPath() argument
112 String mode = mDevice.executeAdbCommand("shell", "stat", "-c", "%a", path).trim(); in readIntFromPath()
113 String user = mDevice.executeAdbCommand("shell", "stat", "-c", "%u", path).trim(); in readIntFromPath()
114 String group = mDevice.executeAdbCommand("shell", "stat", "-c", "%g", path).trim(); in readIntFromPath()
118 return Integer.parseInt(mDevice.executeAdbCommand("shell", "cat", path).trim()); in readIntFromPath()
142 String path = IPV6_SYSCTL_DIR + "/" + interfaceDir + "/" + AUTOCONF_SYSCTL; in testProcSysctls() local
143 int value = readIntFromPath(path); in testProcSysctls()
144 assertLess(path, value, 0); in testProcSysctls()
154 String path = IPV6_SYSCTL_DIR + "/" + interfaceDir + "/" + "accept_ra_rt_info_min_plen"; in testAcceptRaRtInfoMinMaxPlen() local
155 int value = readIntFromPath(path); in testAcceptRaRtInfoMinMaxPlen()
[all …]
/packages/services/Car/car_product/car_ui_portrait/tools/
Dexport_emulator.py11 def fromTop(path): argument
12 return os.path.join(os.environ['ANDROID_BUILD_TOP'], path)
14 def fromProductOut(path): argument
15 return os.path.join(os.environ['ANDROID_PRODUCT_OUT'], path)
18 outputDir = os.path.join(outputDir, abi)
22 copy2(fromProductOut('system-qemu.img'), os.path.join(outputDir, 'system.img'))
23 copy2(fromProductOut('vendor-qemu.img'), os.path.join(outputDir, 'vendor.img'))
24 if os.path.isfile(fromProductOut('kernel-ranchu-64')):
28 copy2(fromProductOut('ramdisk-qemu.img'), os.path.join(outputDir, 'ramdisk.img'))
33 copytree(fromProductOut('data'), os.path.join(outputDir, 'data'), dirs_exist_ok=True)
[all …]
/packages/modules/adb/client/
Dauth.cpp157 static bool load_keys(const std::string& path, bool allow_dir = true) { in load_keys() argument
158 LOG(INFO) << "load_keys '" << path << "'..."; in load_keys()
161 if (stat(path.c_str(), &st) != 0) { in load_keys()
162 PLOG(ERROR) << "load_keys: failed to stat '" << path << "'"; in load_keys()
167 return load_key(path); in load_keys()
174 LOG(WARNING) << "load_keys: refusing to recurse into directory '" << path << "'"; in load_keys()
178 std::unique_ptr<DIR, decltype(&closedir)> dir(opendir(path.c_str()), closedir); in load_keys()
180 PLOG(ERROR) << "load_keys: failed to open directory '" << path << "'"; in load_keys()
194 LOG(INFO) << "skipped non-adb_key '" << path << "/" << name << "'"; in load_keys()
198 result |= load_key((path + OS_PATH_SEPARATOR + name)); in load_keys()
[all …]
Dadb_wifi.cpp101 bool load_known_hosts_from_file(const std::string& path, adb::proto::AdbKnownHosts& known_hosts) { in load_known_hosts_from_file() argument
104 if (stat(path.c_str(), &buf) == -1) { in load_known_hosts_from_file()
105 LOG(INFO) << "Known hosts file [" << path << "] does not exist..."; in load_known_hosts_from_file()
109 std::ifstream file(path, std::ios::binary); in load_known_hosts_from_file()
111 PLOG(ERROR) << "Unable to open [" << path << "]."; in load_known_hosts_from_file()
116 PLOG(ERROR) << "Failed to parse [" << path << "]. Deleting it as it may be corrupted."; in load_known_hosts_from_file()
117 adb_unlink(path.c_str()); in load_known_hosts_from_file()
125 std::string path = get_user_known_hosts_path(); in write_known_host_to_file() local
126 if (path.empty()) { in write_known_host_to_file()
132 load_known_hosts_from_file(path, known_hosts); in write_known_host_to_file()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DDataManager.java162 public MediaObject peekMediaObject(Path path) { in peekMediaObject() argument
163 return path.getObject(); in peekMediaObject()
166 public MediaObject getMediaObject(Path path) { in getMediaObject() argument
168 MediaObject obj = path.getObject(); in getMediaObject()
171 MediaSource source = mSourceMap.get(path.getPrefix()); in getMediaObject()
173 Log.w(TAG, "cannot find media source for path: " + path); in getMediaObject()
178 MediaObject object = source.createMediaObject(path); in getMediaObject()
180 Log.w(TAG, "cannot create media object: " + path); in getMediaObject()
184 Log.w(TAG, "exception in creating media object: " + path, t); in getMediaObject()
194 public MediaSet getMediaSet(Path path) { in getMediaSet() argument
[all …]
DFilterDeleteSet.java40 Path path; field in FilterDeleteSet.Request
42 public Request(int type, Path path, int indexHint) { in Request() argument
44 this.path = path; in Request()
50 Path path; field in FilterDeleteSet.Deletion
52 public Deletion(Path path, int index) { in Deletion() argument
53 this.path = path; in Deletion()
67 public FilterDeleteSet(Path path, MediaSet baseSet) { in FilterDeleteSet() argument
68 super(path, INVALID_DATA_VERSION); in FilterDeleteSet()
160 if (mCurrent.get(j).path == r.path) break; in reload()
163 mCurrent.add(new Deletion(r.path, r.indexHint)); in reload()
[all …]
/packages/providers/MediaProvider/jni/
Dnode.cpp19 static std::vector<std::string> GetPathSegments(int segment_start, const std::string& path) { in GetPathSegments() argument
21 int segment_end = path.find_first_of('/', segment_start); in GetPathSegments()
26 segment_end = path.find_first_of('/', ++segment_start); in GetPathSegments()
30 segments.push_back(path.substr(segment_start, segment_end - segment_start)); in GetPathSegments()
32 segment_end = path.find_first_of('/', segment_start); in GetPathSegments()
34 if (segment_start < path.size()) { in GetPathSegments()
35 segments.push_back(path.substr(segment_start)); in GetPathSegments()
44 void node::BuildPathForNodeRecursive(bool safe, const node* node, std::stringstream* path) const { in BuildPathForNodeRecursive()
46 BuildPathForNodeRecursive(safe, node->parent_, path); in BuildPathForNodeRecursive()
50 (*path) << reinterpret_cast<uintptr_t>(node); in BuildPathForNodeRecursive()
[all …]
DFuseDaemon.cpp269 : path(_path), in fuse()
285 if (android::base::StartsWith(path, PRIMARY_VOLUME_PREFIX)) { in GetEffectiveRootPath()
286 return path + "/" + MY_USER_ID_STRING; in GetEffectiveRootPath()
288 return path; in GetEffectiveRootPath()
321 inline bool IsTranscodeSupportedPath(const string& path) { in IsTranscodeSupportedPath()
323 if (!android::base::EndsWithIgnoreCase(path, ".mp4")) { in IsTranscodeSupportedPath()
329 if (android::base::StartsWithIgnoreCase(path, base_path + relative_path)) { in IsTranscodeSupportedPath()
337 inline bool IsUncachedPath(const std::string& path) { in IsUncachedPath()
340 if (android::base::StartsWithIgnoreCase(path, base_path + relative_path)) { in IsUncachedPath()
348 inline bool ShouldNotCache(const std::string& path) { in ShouldNotCache()
[all …]
DMediaProviderWrapper.cpp80 const string& path, uid_t uid) { in insertFileInternal() argument
81 ScopedLocalRef<jstring> j_path(env, env->NewStringUTF(path.c_str())); in insertFileInternal()
91 const string& path, uid_t uid) { in deleteFileInternal() argument
92 ScopedLocalRef<jstring> j_path(env, env->NewStringUTF(path.c_str())); in deleteFileInternal()
102 jmethodID mid_is_diraccess_allowed, const string& path, uid_t uid, in isDirAccessAllowedInternal() argument
104 ScopedLocalRef<jstring> j_path(env, env->NewStringUTF(path.c_str())); in isDirAccessAllowedInternal()
116 const string& path) { in isUidAllowedAccessToDataOrObbPathInternal() argument
117 ScopedLocalRef<jstring> j_path(env, env->NewStringUTF(path.c_str())); in isUidAllowedAccessToDataOrObbPathInternal()
129 const string& path) { in getFilesInDirectoryInternal() argument
131 ScopedLocalRef<jstring> j_path(env, env->NewStringUTF(path.c_str())); in getFilesInDirectoryInternal()
[all …]
/packages/modules/adb/daemon/
Dfile_sync_service.cpp72 static bool should_use_fs_config([[maybe_unused]] const std::string& path) { in should_use_fs_config() argument
82 return !android::base::StartsWith(path, "/data/"); in should_use_fs_config()
88 static bool update_capabilities(const char* path, uint64_t capabilities) { in update_capabilities() argument
92 removexattr(path, XATTR_NAME_CAPS); in update_capabilities()
102 return setxattr(path, XATTR_NAME_CAPS, &cap_data, sizeof(cap_data), 0) != -1; in update_capabilities()
104 UNUSED(path, capabilities); in update_capabilities()
109 static bool secure_mkdirs(const std::string& path) { in secure_mkdirs() argument
110 if (path[0] != '/') return false; in secure_mkdirs()
112 std::vector<std::string> path_components = android::base::Split(path, "/"); in secure_mkdirs()
150 static bool do_lstat_v1(int s, const char* path) { in do_lstat_v1() argument
[all …]
/packages/services/Car/tools/emulator/
Dvhal_const_generate.py60 import os, os.path
63 script_directory = os.path.join(os.path.dirname(os.path.abspath(__file__)))
64 parent_location = os.path.abspath(os.path.join(script_directory, '..'))
65 sys.path.append(parent_location)
88 vhal_location = os.path.join(android_build_top, 'hardware','interfaces','automotive','vehicle')
90 vhal_location = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)),
93 if not(os.path.exists(vhal_location) and os.path.isdir(vhal_location)):
98 vhal_20_file = os.path.join(vhal_location, '2.0', 'types.hal')
99 if not(os.path.exists(vhal_20_file)):
106 vhal_20_file = open(os.path.join(script_directory, 'vhal_consts_2_0.py'), 'w')
/packages/modules/Bluetooth/system/gd/os/linux_generic/
Dfiles.cc54 bool FileExists(const std::string& path) { in FileExists() argument
55 std::ifstream input(path, std::ios::binary | std::ios::ate); in FileExists()
67 std::optional<std::string> ReadSmallFile(const std::string& path) { in ReadSmallFile() argument
68 std::ifstream input(path, std::ios::binary | std::ios::ate); in ReadSmallFile()
70 log::warn("Failed to open file '{}', error: {}", path, strerror(errno)); in ReadSmallFile()
75 log::warn("Failed to get file size for '{}', error: {}", path, strerror(errno)); in ReadSmallFile()
80 log::warn("Failed to go back to the beginning of file '{}', error: {}", path, strerror(errno)); in ReadSmallFile()
84 log::warn("Failed to read file '{}', error: {}", path, strerror(errno)); in ReadSmallFile()
91 bool WriteToFile(const std::string& path, const std::string& data) { in WriteToFile() argument
92 log::assert_that(!path.empty(), "assert failed: !path.empty()"); in WriteToFile()
[all …]
/packages/modules/Virtualization/virtualizationservice/vfio_handler/src/
Daidl.rs28 use std::path::{Path, PathBuf};
177 fn check_platform_device(path: &Path) -> binder::Result<()> { in check_platform_device()
178 if !path.exists() { in check_platform_device()
183 if !path.starts_with(SYSFS_PLATFORM_DEVICES_PATH) { in check_platform_device()
191 fn get_device_iommu_group(path: &Path) -> Option<u64> { in get_device_iommu_group()
192 let group_path = read_link(path.join("iommu_group")).ok()?; in get_device_iommu_group()
197 fn current_driver(path: &Path) -> Option<String> { in current_driver()
198 let driver_path = read_link(path.join("driver")).ok()?; in current_driver()
204 fn try_bind_driver(path: &Path, driver: &str) -> binder::Result<()> { in try_bind_driver()
205 if Some(driver) == current_driver(path).as_deref() { in try_bind_driver()
[all …]
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/utils/
DScenarioDispatcher.java162 String path = pathWithoutPrefix(request.getPath()); in dispatch() local
185 : pathWithoutQueryParams(path))); in dispatch()
193 sLogger.v("serving path at %s with response %s", path, response.toString()); in dispatch()
201 recordCalledPath("/" + pathWithoutQueryParams(path)); in dispatch()
202 sLogger.v("serving path at %s (404)", path); in dispatch()
207 private synchronized void recordCalledPath(String path) { in recordCalledPath() argument
208 if (mCalledPaths.containsKey(path)) { in recordCalledPath()
211 path, mUniqueCallCount.getCount(), mRequestToMockMap.size()); in recordCalledPath()
213 mCalledPaths.put(path, 1); in recordCalledPath()
217 path, mUniqueCallCount.getCount(), mRequestToMockMap.size()); in recordCalledPath()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DLegacyMediaScannerTest.java62 static boolean isNonMediaFile(String path) { in isNonMediaFile() argument
66 final int lastSlash = path.lastIndexOf('/'); in isNonMediaFile()
67 if (lastSlash >= 0 && lastSlash + 2 < path.length()) { in isNonMediaFile()
69 if (path.regionMatches(lastSlash + 1, "._", 0, 2)) { in isNonMediaFile()
76 if (path.regionMatches(true, path.length() - 4, ".jpg", 0, 4)) { in isNonMediaFile()
77 if (path.regionMatches(true, lastSlash + 1, "AlbumArt_{", 0, 10) || in isNonMediaFile()
78 path.regionMatches(true, lastSlash + 1, "AlbumArt.", 0, 9)) { in isNonMediaFile()
81 int length = path.length() - lastSlash - 1; in isNonMediaFile()
82 if ((length == 17 && path.regionMatches( in isNonMediaFile()
85 && path.regionMatches(true, lastSlash + 1, "Folder", 0, 6))) { in isNonMediaFile()
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
DDiscoveredPrinter.java45 public final Uri path; field in DiscoveredPrinter
64 this.path = paths.get(0); in DiscoveredPrinter()
77 public DiscoveredPrinter(Uri uuid, String name, Uri path, String location) { in DiscoveredPrinter() argument
78 this(uuid, name, Collections.singletonList(path), location); in DiscoveredPrinter()
84 Uri uuid = null, path = null; in DiscoveredPrinter() local
97 path = Uri.parse(reader.nextString()); in DiscoveredPrinter()
106 if (printerName == null || path == null) { in DiscoveredPrinter()
111 this.path = path; in DiscoveredPrinter()
112 this.paths = Collections.singletonList(path); in DiscoveredPrinter()
121 return uuid != null ? uuid : path; in getUri()
[all …]
/packages/services/Car/cpp/watchdog/server/src/
DUidProcStatsCollector.cpp126 Result<PidStat> readPidStatFile(const std::string& path, int32_t millisPerClockTick) { in readPidStatFile() argument
128 if (!ReadFileToString(path, &buffer)) { in readPidStatFile()
129 return Error(READ_WARNING) << "ReadFileToString failed for " << path; in readPidStatFile()
133 return Error(READ_ERROR) << path << " contains " << lines.size() << " lines != 1"; in readPidStatFile()
137 return Error(READ_ERROR) << "Failed to parse the contents of " << path; in readPidStatFile()
171 const std::string& path, const std::string& delimiter, in readKeyValueFile() argument
174 if (!ReadFileToString(path, &buffer)) { in readKeyValueFile()
175 return Error(READ_WARNING) << "ReadFileToString failed for " << path; in readKeyValueFile()
187 << "\" in file " << path; in readKeyValueFile()
193 << "Duplicate " << key << " line: \"" << lines[i] << "\" in file " << path; in readKeyValueFile()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DSyntheticPathUtils.java61 public static boolean isRedactedPath(String path, int userId) { in isRedactedPath() argument
62 if (path == null) return false; in isRedactedPath()
66 final String fileName = extractFileName(path); in isRedactedPath()
69 && startsWith(path, redactedDir) in isRedactedPath()
74 public static boolean isPickerPath(String path, int userId) { in isPickerPath() argument
80 return path != null && (startsWith(path, pickerDir) || startsWith(path, in isPickerPath()
84 public static boolean isSyntheticPath(String path, int userId) { in isSyntheticPath() argument
88 return path != null && startsWith(path, syntheticDir); in isSyntheticPath()
91 public static List<String> extractSyntheticRelativePathSegements(String path, int userId) { in extractSyntheticRelativePathSegements() argument
96 if (path.toLowerCase(Locale.ROOT).indexOf(syntheticDir.toLowerCase(Locale.ROOT)) < 0) { in extractSyntheticRelativePathSegements()
[all …]
DFileUtils.java438 public static void walkFileTreeContents(@NonNull Path path, @NonNull Consumer<Path> operation) { in walkFileTreeContents() argument
440 Files.walkFileTree(path, new FileVisitor<Path>() { in walkFileTreeContents()
448 if (!Objects.equals(path, file)) { in walkFileTreeContents()
462 if (!Objects.equals(path, dir)) { in walkFileTreeContents()
469 Log.w(TAG, "Failed to walk " + path, e); in walkFileTreeContents()
483 walkFileTreeContents(dir.toPath(), (path) -> { in deleteContents()
484 path.toFile().delete(); in deleteContents()
839 File path = null;
842 path = context.getSystemService(StorageManager.class).getStorageVolume(uri)
848 if (path != null) {
[all …]

12345678910>>...38