Home
last modified time | relevance | path

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

12345678910>>...46

/frameworks/base/services/incremental/
Dpath.cpp34 namespace android::incremental::path { namespace
47 static void preparePathComponent(std::string_view& path, bool trimAll) { in preparePathComponent() argument
49 while (!path.empty() && path.front() == '/' && in preparePathComponent()
50 (trimAll || (path.size() > 1 && path[1] == '/'))) { in preparePathComponent()
51 path.remove_prefix(1); in preparePathComponent()
54 while (path.size() > !trimAll && path.back() == '/') { in preparePathComponent()
55 path.remove_suffix(1); in preparePathComponent()
59 void details::append_next_path(std::string& target, std::string_view path) { in append_next_path() argument
60 preparePathComponent(path, !target.empty()); in append_next_path()
61 if (path.empty()) { in append_next_path()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
DPathPerfTest.java37 Path path = new Path(); in testReset() local
39 path.reset(); in testReset()
46 Path path = new Path(); in testAddReset() local
48 path.addRect(0, 0, 100, 100, Path.Direction.CW); in testAddReset()
49 path.reset(); in testAddReset()
56 Path path = new Path(); in testRewind() local
58 path.rewind(); in testRewind()
65 Path path = new Path(); in testAddRewind() local
67 path.addRect(0, 0, 100, 100, Path.Direction.CW); in testAddRewind()
68 path.rewind(); in testAddRewind()
[all …]
/frameworks/rs/
Dbuild_rs.py28 THIS_DIR = os.path.realpath(os.path.dirname(__file__))
33 out_dir = os.path.realpath(os.path.join(THIS_DIR, '../..', *args))
42 if not os.path.isabs(top_out):
43 top_out = os.path.realpath(top_out)
44 out_dir = os.path.join(top_out, *args)
95 install_dir = os.path.join(install_host_dir, package_name)
99 if os.path.exists(install_host_dir):
105 package_path = os.path.join(dist_dir, tarball_name) + '.tar.bz2'
133 lib_path = os.path.join(mingw_dir, 'x86_64-w64-mingw32/lib32', lib_name)
135 lib_install = os.path.join(install_dir, 'bin', lib_name)
[all …]
/frameworks/base/services/incremental/test/
Dpath_test.cpp23 namespace android::incremental::path { namespace
44 EXPECT_STREQ("", path::join("", "").c_str()); in TEST()
46 EXPECT_STREQ("/", path::join("", "/").c_str()); in TEST()
47 EXPECT_STREQ("/", path::join("/", "").c_str()); in TEST()
48 EXPECT_STREQ("/", path::join("/", "/").c_str()); in TEST()
49 EXPECT_STREQ("/", path::join("/"s, "/").c_str()); in TEST()
50 EXPECT_STREQ("/", path::join("/"sv, "/").c_str()); in TEST()
51 EXPECT_STREQ("/", path::join("/", "/", "/", "/", "/", "/", "/", "/", "/", "/").c_str()); in TEST()
53 EXPECT_STREQ("/a/b/c/d", path::join("/a/b/"s, "c", "d").c_str()); in TEST()
54 EXPECT_STREQ("/a/b/c/d", path::join("/a/b/", "c", "d").c_str()); in TEST()
[all …]
/frameworks/rs/tests/lldb/tests/harness/
Dutil_functions.py25 def load_py_module(path): argument
34 assert isinstance(path, str)
36 if not os.path.exists(path):
37 print('Path does not exist: ' + path)
39 path = os.path.abspath(path)
40 module_dir, module_file = os.path.split(path)
41 module_name, _ = os.path.splitext(module_file)
44 sys.path.append(module_dir)
46 sys.path.pop(0)
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DPathsCacheActivity.java50 Path path = new Path(); in makePath() local
51 buildPath(path); in makePath()
52 return path; in makePath()
55 private static void buildPath(Path path) { in buildPath() argument
56 path.moveTo(0.0f, 0.0f); in buildPath()
57 path.cubicTo(0.0f, 0.0f, 100.0f, 150.0f, 100.0f, 200.0f); in buildPath()
58 path.cubicTo(100.0f, 200.0f, 50.0f, 300.0f, -80.0f, 200.0f); in buildPath()
59 path.cubicTo(-80.0f, 200.0f, 100.0f, 200.0f, 200.0f, 0.0f); in buildPath()
63 Path path = new Path(); in makeLargePath() local
64 buildLargePath(path); in makeLargePath()
[all …]
DPathDestructionActivity.java67 Path path = new Path(); in getRandomPath() local
68 path.moveTo(left, top); in getRandomPath()
69 path.lineTo(right, top); in getRandomPath()
70 path.lineTo(right, bottom); in getRandomPath()
71 path.lineTo(left, bottom); in getRandomPath()
72 path.close(); in getRandomPath()
73 return path; in getRandomPath()
86 Path path; in onDraw() local
88 path = getRandomPath(); in onDraw()
90 canvas.drawPath(path, strokePaint); in onDraw()
[all …]
/frameworks/av/media/libmedia/
DMediaScanner.cpp69 char * path = strtok(skipList, ","); in loadSkipList() local
71 while (path) { in loadSkipList()
72 mSkipIndex[i++] = strlen(path); in loadSkipList()
73 path = strtok(NULL, ","); in loadSkipList()
82 const char *path, MediaScannerClient &client) { in processDirectory() argument
83 int pathLength = strlen(path); in processDirectory()
93 strcpy(pathBuffer, path); in processDirectory()
109 bool MediaScanner::shouldSkipDirectory(char *path) { in shouldSkipDirectory() argument
110 if (path && mSkipList && mSkipIndex) { in shouldSkipDirectory()
111 int len = strlen(path); in shouldSkipDirectory()
[all …]
/frameworks/base/tools/aapt2/
DSource.h32 std::string path; member
38 inline Source(const android::StringPiece& path) : path(path.to_string()) { // NOLINT(implicit) in Source()
41 inline Source(const android::StringPiece& path, const android::StringPiece& archive) in Source()
42 : path(path.to_string()), archive(archive.to_string()) {} in Source()
44 inline Source(const android::StringPiece& path, size_t line) in Source()
45 : path(path.to_string()), line(line) {} in Source()
48 return Source(path, line); in WithLine()
52 std::string s = path; in to_string()
72 return lhs.path == rhs.path && lhs.line == rhs.line;
76 int cmp = lhs.path.compare(rhs.path);
/frameworks/base/libs/androidfw/
DAssetsProvider.cpp31 std::unique_ptr<Asset> AssetsProvider::Open(const std::string& path, Asset::AccessMode mode, in Open() argument
33 return OpenInternal(path, mode, file_exists); in Open()
36 std::unique_ptr<Asset> AssetsProvider::CreateAssetFromFile(const std::string& path) { in CreateAssetFromFile() argument
37 base::unique_fd fd(base::utf8::open(path.c_str(), O_RDONLY | O_CLOEXEC)); in CreateAssetFromFile()
39 LOG(ERROR) << "Failed to open file '" << path << "': " << base::SystemErrorCodeToString(errno); in CreateAssetFromFile()
43 return CreateAssetFromFd(std::move(fd), path.c_str()); in CreateAssetFromFile()
47 const char* path, in CreateAssetFromFd() argument
56 LOG(ERROR) << "Failed to get size of file '" << ((path) ? path : "anon") << "': " in CreateAssetFromFd()
63 if (!file_map.Create(fd, offset, static_cast<size_t>(length), path)) { in CreateAssetFromFd()
64 LOG(ERROR) << "Failed to mmap file '" << ((path != nullptr) ? path : "anon") << "': " in CreateAssetFromFd()
[all …]
DAssetManager.cpp90 String8 path(root); in idmapPathForPackagePath() local
91 path.appendPath(kResourceCache); in idmapPathForPackagePath()
107 path.appendPath(filename); in idmapPathForPackagePath()
108 path.append("@idmap"); in idmapPathForPackagePath()
110 return path; in idmapPathForPackagePath()
177 const String8& path, int32_t* cookie, bool appAsLib, bool isSystemAsset) { in addAssetPath() argument
182 String8 realPath(path); in addAssetPath()
188 ap.path = realPath; in addAssetPath()
190 ap.path = path; in addAssetPath()
191 ap.type = ::getFileType(path.string()); in addAssetPath()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/storage/
DStorageManagerBaseTest.java79 public void onObbStateChange(String path, int state) { in onObbStateChange() argument
83 Log.i(LOG_TAG, "OfficialPath is now: " + path); in onObbStateChange()
85 mOfficialPath = path; in onObbStateChange()
161 String path = mSm.getMountedObbPath(obbPath); in openFileOnMountedObb() local
162 assertTrue("Path should not be null!", path != null); in openFileOnMountedObb()
164 File inFile = new File(path, fileName); in openFileOnMountedObb()
168 Log.i(LOG_TAG, "Opened file: " + fileName + " for read at path: " + path); in openFileOnMountedObb()
350 protected void doValidateIntContents(String path, String filename, int start, int end) { in doValidateIntContents() argument
351 File inFile = new File(path, filename); in doValidateIntContents()
353 Log.i(LOG_TAG, "Validating file " + filename + " at " + path); in doValidateIntContents()
[all …]
/frameworks/base/core/java/android/database/sqlite/
DSQLiteDatabaseConfiguration.java57 public final String path; field in SQLiteDatabaseConfiguration
151 public SQLiteDatabaseConfiguration(String path, int openFlags) { in SQLiteDatabaseConfiguration() argument
152 if (path == null) { in SQLiteDatabaseConfiguration()
156 this.path = path; in SQLiteDatabaseConfiguration()
157 label = stripPathForLogs(path); in SQLiteDatabaseConfiguration()
175 this.path = other.path; in SQLiteDatabaseConfiguration()
190 if (!path.equals(other.path)) { in updateParametersFrom()
217 return path.equalsIgnoreCase(MEMORY_DB_PATH); in isInMemoryDb()
225 private static String stripPathForLogs(String path) { in stripPathForLogs() argument
226 if (path.indexOf('@') == -1) { in stripPathForLogs()
[all …]
/frameworks/base/libs/androidfw/include/androidfw/
DAssetManager.h94 bool addAssetPath(const String8& path, int32_t* cookie,
96 bool addOverlayPath(const String8& path, int32_t* cookie);
220 asset_path() : path(""), rawFd(-1), type(kFileTypeRegular), idmap(""), in asset_path()
222 String8 path; member
233 asset_path& path);
234 String8 createPathNameLocked(const asset_path& path, const char* rootDir);
238 ZipFileRO* getZipFileLocked(asset_path& path);
244 const asset_path& path, const char* rootDir, const char* dirName);
245 SortedVector<AssetDir::FileInfo>* scanDirLocked(const String8& path);
247 const asset_path& path, const char* rootDir, const char* dirName);
[all …]
/frameworks/base/apex/appsearch/framework/java/external/android/app/appsearch/
DGenericDocument.java248 public Object getProperty(@NonNull String path) { in getProperty() argument
249 Objects.requireNonNull(path); in getProperty()
250 Object rawValue = getRawPropertyFromRawDocument(path, mBundle); in getProperty()
272 Log.e(TAG, "The inner bundle is null at " + i + ", for path: " + path); in getProperty()
295 Log.e(TAG, "The inner bundle is null at " + i + ", for path: " + path); in getProperty()
306 + path); in getProperty()
326 @NonNull String path, @NonNull Bundle documentBundle) { in getRawPropertyFromRawDocument()
327 Objects.requireNonNull(path); in getRawPropertyFromRawDocument()
334 for (int i = 0; i < path.length(); i++) { in getRawPropertyFromRawDocument()
335 char c = path.charAt(i); in getRawPropertyFromRawDocument()
[all …]
/frameworks/compile/mclinker/lib/Script/
DGroupCmd.cpp95 sys::fs::Path path; in activate() local
101 path = script.sysroot(); in activate()
102 path.append(token->name()); in activate()
105 path.assign(token->name()); in activate()
106 if (!sys::fs::exists(path)) { in activate()
111 path = *p; in activate()
115 if (!sys::fs::exists(path)) in activate()
116 fatal(diag::err_cannot_open_input) << path.filename() << path; in activate()
119 path.filename().native(), path, Input::Unknown); in activate()
123 const sys::fs::Path* path = NULL; in activate() local
[all …]
/frameworks/base/packages/SystemUI/scripts/
Dnew_merge.py14 def executable(path): argument
15 return os.path.isfile(path) and os.access(path, os.X_OK)
17 path, file = os.path.split(program)
18 if path and executable(program):
21 for path in os.environ["PATH"].split(os.pathsep):
22 exe = os.path.join(path, program)
98 path = line.rstrip()
99 file = path[path.rfind('/') + 1:]
113 if (os.path.exists(TEMP_FILE1)):
116 if (os.path.exists(TEMP_FILE2)):
[all …]
/frameworks/base/tools/aapt2/cmd/
DUtil_test.cpp32 #define CREATE_PATH(path) android::base::StringPrintf(";%s", path) argument
34 #define CREATE_PATH(path) android::base::StringPrintf(":%s", path)
167 diagnostics, &path, &constraints)); in TEST()
174 diagnostics, &path, &constraints)); in TEST()
181 diagnostics, &path, &constraints)); in TEST()
189 diagnostics, &path, &constraints)); in TEST()
204 diagnostics, &path, &constraints)); in TEST()
211 diagnostics, &path, &constraints)); in TEST()
218 diagnostics, &path, &constraints)); in TEST()
225 diagnostics, &path, &constraints)); in TEST()
[all …]
DConvert.cpp49 virtual bool SerializeXml(const xml::XmlResource* xml, const std::string& path, bool utf16,
70 bool SerializeXml(const xml::XmlResource* xml, const std::string& path, bool utf16, in SerializeXml() argument
80 return io::CopyInputStreamToArchive(context_, &input_stream, path, compression_flags, writer); in SerializeXml()
100 << "failed to open file " << *file->path); in SerializeFile()
108 << "failed to parse proto XML " << *file->path); in SerializeFile()
117 << *file->path << ": " << error); in SerializeFile()
121 if (!SerializeXml(xml.get(), *file->path, false /*utf16*/, writer, in SerializeFile()
124 << "failed to serialize to binary XML: " << *file->path); in SerializeFile()
130 if (!io::CopyFileToArchivePreserveCompression(context_, file->file, *file->path, writer)) { in SerializeFile()
132 << "failed to copy file " << *file->path); in SerializeFile()
[all …]
/frameworks/base/tools/aapt2/util/
DFiles.cpp50 FileType GetFileType(const std::string& path) { in GetFileType() argument
52 if (!::android::base::UTF8PathToWindowsLongPath(path.c_str(), &path_utf16)) { in GetFileType()
69 FileType GetFileType(const std::string& path) {
71 int result = stat(path.c_str(), &sb);
104 bool mkdirs(const std::string& path) { in mkdirs() argument
109 if (util::StartsWith(path, R"(\\?\)")) { in mkdirs()
115 if (path.size() >= 3 && path[current_pos + 1] == ':' && in mkdirs()
116 (path[current_pos + 2] == '\\' || path[current_pos + 2] == '/')) { in mkdirs()
127 while ((current_pos = path.find(sDirSep, current_pos)) != std::string::npos) { in mkdirs()
128 std::string parent_path = path.substr(0, current_pos); in mkdirs()
[all …]
/frameworks/av/media/mtp/
DMtpUtils.cpp39 static void access_ok(const char *path) { in access_ok() argument
40 if (access(path, F_OK) == -1) { in access_ok()
101 int makeFolder(const char *path) { in makeFolder() argument
103 int ret = mkdir((const char *)path, DIR_PERM); in makeFolder()
106 PLOG(ERROR) << "Failed to create folder " << path; in makeFolder()
109 chown((const char *)path, getuid(), FILE_GROUP); in makeFolder()
111 access_ok(path); in makeFolder()
197 void deleteRecursive(const char* path) { in deleteRecursive() argument
198 string pathStr(path); in deleteRecursive()
203 DIR* dir = opendir(path); in deleteRecursive()
[all …]
/frameworks/base/drm/java/android/drm/
DDrmManagerClient.java398 public ContentValues getConstraints(String path, int action) { in getConstraints() argument
399 if (null == path || path.equals("") || !DrmStore.Action.isValid(action)) { in getConstraints()
402 return _getConstraints(mUniqueId, path, action); in getConstraints()
413 public ContentValues getMetadata(String path) { in getMetadata() argument
414 if (null == path || path.equals("")) { in getMetadata()
417 return _getMetadata(mUniqueId, path); in getMetadata()
500 public boolean canHandle(String path, String mimeType) { in canHandle() argument
501 if ((null == path || path.equals("")) && (null == mimeType || mimeType.equals(""))) { in canHandle()
504 return _canHandle(mUniqueId, path, mimeType); in canHandle()
587 public int getDrmObjectType(String path, String mimeType) { in getDrmObjectType() argument
[all …]
/frameworks/compile/mclinker/lib/MC/
DSearchDirs.cpp52 if (exists(dir->path()) && is_directory(dir->path())) { in insert()
98 if (file == entry.path()->filename().native()) in find()
99 return entry.path(); in find()
106 if (file == entry.path()->stem().native()) { in find()
108 entry.path()->extension().native()) { in find()
109 return entry.path(); in find()
120 if (file == entry.path()->stem().native() && in find()
122 entry.path()->extension().native()) { in find()
123 return entry.path(); in find()
163 if (file == entry.path()->filename().native()) in find()
[all …]
/frameworks/native/cmds/rawbu/
Dbackup.cpp51 const char* path; member
65 static int wipe (const char *path) in wipe() argument
72 dir = opendir(path); in wipe()
76 path, strerror(errno)); in wipe()
82 strcpy(nameBuffer, path); in wipe()
105 for (i = 0; SKIP_PATHS[i].path; i++) { in wipe()
106 if (strcmp(SKIP_PATHS[i].path, nameBuffer) == 0) { in wipe()
118 if (!noBackup && SKIP_PATHS[i].path != nullptr) { in wipe()
151 strcpy(nameBuffer, path); in wipe()
235 static int write_header(FILE* fh, int type, const char* path, const struct stat* st) in write_header() argument
[all …]
/frameworks/layoutlib/bridge/src/android/graphics/drawable/
DVectorDrawable_Delegate.java190 VFullPath_Delegate path = VNativeObject.getDelegate(pathPtr); in nGetFullPathProperties() local
195 properties.putFloat(VFullPath_Delegate.STROKE_WIDTH_INDEX * 4, path.getStrokeWidth()); in nGetFullPathProperties()
196 properties.putInt(VFullPath_Delegate.STROKE_COLOR_INDEX * 4, path.getStrokeColor()); in nGetFullPathProperties()
197 properties.putFloat(VFullPath_Delegate.STROKE_ALPHA_INDEX * 4, path.getStrokeAlpha()); in nGetFullPathProperties()
198 properties.putInt(VFullPath_Delegate.FILL_COLOR_INDEX * 4, path.getFillColor()); in nGetFullPathProperties()
199 properties.putFloat(VFullPath_Delegate.FILL_ALPHA_INDEX * 4, path.getStrokeAlpha()); in nGetFullPathProperties()
200 properties.putFloat(VFullPath_Delegate.TRIM_PATH_START_INDEX * 4, path.getTrimPathStart()); in nGetFullPathProperties()
201 properties.putFloat(VFullPath_Delegate.TRIM_PATH_END_INDEX * 4, path.getTrimPathEnd()); in nGetFullPathProperties()
203 path.getTrimPathOffset()); in nGetFullPathProperties()
204 properties.putInt(VFullPath_Delegate.STROKE_LINE_CAP_INDEX * 4, path.getStrokeLineCap()); in nGetFullPathProperties()
[all …]

12345678910>>...46