/frameworks/rs/ |
D | build_rs.py | 28 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/apct-tests/perftests/core/src/android/graphics/perftests/ |
D | PathPerfTest.java | 37 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/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | PathsCacheActivity.java | 50 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 …]
|
D | PathDestructionActivity.java | 67 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/rs/tests/lldb/tests/harness/ |
D | util_functions.py | 25 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/av/media/libmedia/ |
D | MediaScanner.cpp | 69 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/ |
D | Source.h | 32 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/core/tests/coretests/src/android/os/storage/ |
D | StorageManagerBaseTest.java | 79 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/ |
D | SQLiteDatabaseConfiguration.java | 53 public final String path; field in SQLiteDatabaseConfiguration 136 public SQLiteDatabaseConfiguration(String path, int openFlags) { in SQLiteDatabaseConfiguration() argument 137 if (path == null) { in SQLiteDatabaseConfiguration() 141 this.path = path; in SQLiteDatabaseConfiguration() 142 label = stripPathForLogs(path); in SQLiteDatabaseConfiguration() 160 this.path = other.path; in SQLiteDatabaseConfiguration() 175 if (!path.equals(other.path)) { in updateParametersFrom() 198 return path.equalsIgnoreCase(MEMORY_DB_PATH); in isInMemoryDb() 206 private static String stripPathForLogs(String path) { in stripPathForLogs() argument 207 if (path.indexOf('@') == -1) { in stripPathForLogs() [all …]
|
/frameworks/base/libs/androidfw/ |
D | AssetManager.cpp | 90 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 …]
|
D | ApkAssets.cpp | 44 const std::string& path, in ApkAssets() argument 46 : zip_handle_(unmanaged_handle, ::CloseArchive), path_(path), last_mod_time_(last_mod_time) { in ApkAssets() 49 std::unique_ptr<const ApkAssets> ApkAssets::Load(const std::string& path, bool system) { in Load() argument 50 return LoadImpl({} /*fd*/, path, nullptr, nullptr, system, false /*load_as_shared_library*/); in Load() 53 std::unique_ptr<const ApkAssets> ApkAssets::LoadAsSharedLibrary(const std::string& path, in LoadAsSharedLibrary() argument 55 return LoadImpl({} /*fd*/, path, nullptr, nullptr, system, true /*load_as_shared_library*/); in LoadAsSharedLibrary() 87 std::unique_ptr<Asset> ApkAssets::CreateAssetFromFile(const std::string& path) { in CreateAssetFromFile() argument 88 unique_fd fd(base::utf8::open(path.c_str(), O_RDONLY | O_BINARY | O_CLOEXEC)); in CreateAssetFromFile() 90 LOG(ERROR) << "Failed to open file '" << path << "': " << SystemErrorCodeToString(errno); in CreateAssetFromFile() 96 LOG(ERROR) << "Failed to get size of file '" << path << "': " << SystemErrorCodeToString(errno); in CreateAssetFromFile() [all …]
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | AssetManager.h | 94 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/tools/aapt2/cmd/ |
D | Util_test.cpp | 32 #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 …]
|
D | Convert.cpp | 49 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/av/media/mtp/ |
D | MtpUtils.cpp | 39 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() 196 void deleteRecursive(const char* path) { in deleteRecursive() argument 197 string pathStr(path); in deleteRecursive() 202 DIR* dir = opendir(path); in deleteRecursive() [all …]
|
/frameworks/base/tools/aapt2/util/ |
D | Files.cpp | 50 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/compile/mclinker/lib/Script/ |
D | GroupCmd.cpp | 95 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/ |
D | new_merge.py | 14 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/drm/java/android/drm/ |
D | DrmManagerClient.java | 382 public ContentValues getConstraints(String path, int action) { in getConstraints() argument 383 if (null == path || path.equals("") || !DrmStore.Action.isValid(action)) { in getConstraints() 386 return _getConstraints(mUniqueId, path, action); in getConstraints() 397 public ContentValues getMetadata(String path) { in getMetadata() argument 398 if (null == path || path.equals("")) { in getMetadata() 401 return _getMetadata(mUniqueId, path); in getMetadata() 484 public boolean canHandle(String path, String mimeType) { in canHandle() argument 485 if ((null == path || path.equals("")) && (null == mimeType || mimeType.equals(""))) { in canHandle() 488 return _canHandle(mUniqueId, path, mimeType); in canHandle() 571 public int getDrmObjectType(String path, String mimeType) { in getDrmObjectType() argument [all …]
|
/frameworks/layoutlib/bridge/src/android/graphics/drawable/ |
D | VectorDrawable_Delegate.java | 190 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 …]
|
/frameworks/native/cmds/rawbu/ |
D | backup.cpp | 51 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/base/core/tests/coretests/src/android/app/servertransaction/ |
D | TransactionExecutorTests.java | 96 assertArrayEquals(new int[] {}, path(PRE_ON_CREATE)); in testLifecycleFromPreOnCreate() 97 assertArrayEquals(new int[] {ON_CREATE}, path(ON_CREATE)); in testLifecycleFromPreOnCreate() 98 assertArrayEquals(new int[] {ON_CREATE, ON_START}, path(ON_START)); in testLifecycleFromPreOnCreate() 99 assertArrayEquals(new int[] {ON_CREATE, ON_START, ON_RESUME}, path(ON_RESUME)); in testLifecycleFromPreOnCreate() 100 assertArrayEquals(new int[] {ON_CREATE, ON_START, ON_RESUME, ON_PAUSE}, path(ON_PAUSE)); in testLifecycleFromPreOnCreate() 102 path(ON_STOP)); in testLifecycleFromPreOnCreate() 104 path(ON_DESTROY)); in testLifecycleFromPreOnCreate() 110 assertArrayEquals(new int[] {}, path(ON_CREATE)); in testLifecycleFromOnCreate() 111 assertArrayEquals(new int[] {ON_START}, path(ON_START)); in testLifecycleFromOnCreate() 112 assertArrayEquals(new int[] {ON_START, ON_RESUME}, path(ON_RESUME)); in testLifecycleFromOnCreate() [all …]
|
/frameworks/native/libs/input/ |
D | InputDevice.cpp | 47 static void appendInputDeviceConfigurationFileRelativePath(std::string& path, in appendInputDeviceConfigurationFileRelativePath() argument 49 path += CONFIGURATION_FILE_DIR[type]; in appendInputDeviceConfigurationFileRelativePath() 50 path += name; in appendInputDeviceConfigurationFileRelativePath() 51 path += CONFIGURATION_FILE_EXTENSION[type]; in appendInputDeviceConfigurationFileRelativePath() 87 std::string path; in getInputDeviceConfigurationFilePathByName() local 95 path = rootsForPartition[i]; in getInputDeviceConfigurationFilePathByName() 96 path += "/usr/"; in getInputDeviceConfigurationFilePathByName() 97 appendInputDeviceConfigurationFileRelativePath(path, name, type); in getInputDeviceConfigurationFilePathByName() 100 path.c_str()); in getInputDeviceConfigurationFilePathByName() 102 if (!access(path.c_str(), R_OK)) { in getInputDeviceConfigurationFilePathByName() [all …]
|
/frameworks/compile/mclinker/lib/MC/ |
D | SearchDirs.cpp | 52 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/layoutlib/bridge/src/android/graphics/ |
D | FontFamily_Delegate.java | 263 private static Font loadFont(String path) { in loadFont() argument 264 if (path.startsWith(SYSTEM_FONTS) ) { in loadFont() 265 String relativePath = path.substring(SYSTEM_FONTS.length()); in loadFont() 271 if (path.endsWith(EXTENSION_OTF) && e instanceof FontFormatException) { in loadFont() 297 /*package*/ static boolean addFont(FontFamily thisFontFamily, String path, int ttcIndex, in addFont() argument 304 return delegate != null && delegate.addFont(path, ttcIndex, weight, italic); in addFont() 359 static boolean addFont(long builderPtr, final String path, final int weight, 365 delegate.mPostInitRunnables.add(() -> delegate.addFont(path, weight, italic)); 368 return delegate.addFont(path, weight, italic); 374 …/*package*/ static boolean nAddFontFromAssetManager(long builderPtr, AssetManager mgr, String path, [all …]
|