/frameworks/support/transition/tests/src/android/support/transition/ |
D | ArcMotionTest.java | 38 Path path = arcMotion.getPath(0, 100, 100, 0); in test90Quadrants() local 39 assertPathMatches(expected, path); in test90Quadrants() 42 path = arcMotion.getPath(100, 0, 0, -100); in test90Quadrants() 43 assertPathMatches(expected, path); in test90Quadrants() 46 path = arcMotion.getPath(0, -100, -100, 0); in test90Quadrants() 47 assertPathMatches(expected, path); in test90Quadrants() 50 path = arcMotion.getPath(-100, 0, 0, 100); in test90Quadrants() 51 assertPathMatches(expected, path); in test90Quadrants() 60 Path path; in test345Triangles() local 63 path = arcMotion.getPath(0, 120, 160, 0); in test345Triangles() [all …]
|
/frameworks/rs/ |
D | build_rs.py | 29 THIS_DIR = os.path.realpath(os.path.dirname(__file__)) 34 out_dir = os.path.realpath(os.path.join(THIS_DIR, '../..', *args)) 43 if not os.path.isabs(top_out): 44 top_out = os.path.realpath(top_out) 45 out_dir = os.path.join(top_out, *args) 97 install_dir = os.path.join(install_host_dir, package_name) 101 if os.path.exists(install_host_dir): 107 package_path = os.path.join(dist_dir, tarball_name) + '.tar.bz2' 135 lib_path = os.path.join(mingw_dir, 'x86_64-w64-mingw32/lib32', lib_name) 137 lib_install = os.path.join(install_dir, 'bin', lib_name) [all …]
|
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/ |
D | PathPerfTest.java | 36 Path path = new Path(); in testReset() local 38 path.reset(); in testReset() 45 Path path = new Path(); in testAddReset() local 47 path.addRect(0, 0, 100, 100, Path.Direction.CW); in testAddReset() 48 path.reset(); in testAddReset() 55 Path path = new Path(); in testRewind() local 57 path.rewind(); in testRewind() 64 Path path = new Path(); in testAddRewind() local 66 path.addRect(0, 0, 100, 100, Path.Direction.CW); in testAddRewind() 67 path.rewind(); in testAddRewind() [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/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/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/core/java/android/database/sqlite/ |
D | SQLiteDatabaseConfiguration.java | 51 public final String path; field in SQLiteDatabaseConfiguration 120 public SQLiteDatabaseConfiguration(String path, int openFlags) { in SQLiteDatabaseConfiguration() argument 121 if (path == null) { in SQLiteDatabaseConfiguration() 125 this.path = path; in SQLiteDatabaseConfiguration() 126 label = stripPathForLogs(path); in SQLiteDatabaseConfiguration() 144 this.path = other.path; in SQLiteDatabaseConfiguration() 159 if (!path.equals(other.path)) { in updateParametersFrom() 180 return path.equalsIgnoreCase(MEMORY_DB_PATH); in isInMemoryDb() 183 private static String stripPathForLogs(String path) { in stripPathForLogs() argument 184 if (path.indexOf('@') == -1) { in stripPathForLogs() [all …]
|
/frameworks/base/tools/aapt2/ |
D | Source.h | 34 std::string path; member 39 inline Source(const android::StringPiece& path) : path(path.to_string()) { // NOLINT(implicit) in Source() 42 inline Source(const android::StringPiece& path, size_t line) in Source() 43 : path(path.to_string()), line(line) {} in Source() 45 inline Source WithLine(size_t line) const { return Source(path, line); } in WithLine() 53 out << source.path; 61 return lhs.path == rhs.path && lhs.line == rhs.line; 65 int cmp = lhs.path.compare(rhs.path);
|
D | LoadedApk.cpp | 29 const android::StringPiece& path) { in LoadApkFromPath() argument 30 Source source(path); in LoadApkFromPath() 32 std::unique_ptr<io::ZipFileCollection> apk = io::ZipFileCollection::Create(path, &error); in LoadApkFromPath() 74 referenced_resources.insert(*file_ref->path); in WriteToArchive() 85 std::string path = file->GetSource().path; in WriteToArchive() local 87 path = path.substr(path.find("@") + 1); in WriteToArchive() 90 if (path.find("res/") == 0 && referenced_resources.find(path) == referenced_resources.end()) { in WriteToArchive() 93 << "Removing resource '" << path << "' from APK."); in WriteToArchive() 98 if (!filters->Keep(path)) { in WriteToArchive() 100 context->GetDiagnostics()->Note(DiagMessage() << "Filtered '" << path << "' from APK."); in WriteToArchive() [all …]
|
/frameworks/native/cmds/installd/ |
D | utils.cpp | 132 int create_pkg_path(char path[PKG_PATH_MAX], const char *pkgname, in create_pkg_path() 135 path[0] = '\0'; in create_pkg_path() 142 path[0] = '\0'; in create_pkg_path() 145 strcpy(path, tmp); in create_pkg_path() 216 return StringPrintf("%s/cur/%u", android_profiles_dir.path, userid); in create_primary_cur_profile_dir_path() 227 return StringPrintf("%s/ref", android_profiles_dir.path); in create_primary_ref_profile_dir_path() 232 return StringPrintf("%s/ref/%s", android_profiles_dir.path, package_name.c_str()); in create_primary_reference_profile_package_dir_path() 302 std::string path(create_data_path(volume_uuid) + "/" + SECONDARY_USER_PREFIX); in get_known_users() local 303 DIR* dir = opendir(path.c_str()); in get_known_users() 306 PLOG(ERROR) << "Failed to opendir " << path; in get_known_users() [all …]
|
D | globals.cpp | 68 if (android_system_dirs.dirs[i].path != NULL) { in free_globals() 69 free(android_system_dirs.dirs[i].path); in free_globals() 136 android_system_dirs.dirs[0].path = build_string2(android_root_dir.path, APP_SUBDIR); in init_globals_from_data_and_root() 137 android_system_dirs.dirs[0].len = strlen(android_system_dirs.dirs[0].path); in init_globals_from_data_and_root() 139 android_system_dirs.dirs[1].path = build_string2(android_root_dir.path, PRIV_APP_SUBDIR); in init_globals_from_data_and_root() 140 android_system_dirs.dirs[1].len = strlen(android_system_dirs.dirs[1].path); in init_globals_from_data_and_root() 142 android_system_dirs.dirs[2].path = strdup("/vendor/app/"); in init_globals_from_data_and_root() 143 android_system_dirs.dirs[2].len = strlen(android_system_dirs.dirs[2].path); in init_globals_from_data_and_root() 145 android_system_dirs.dirs[3].path = strdup("/oem/app/"); in init_globals_from_data_and_root() 146 android_system_dirs.dirs[3].len = strlen(android_system_dirs.dirs[3].path); in init_globals_from_data_and_root()
|
/frameworks/base/core/tests/coretests/src/android/os/storage/ |
D | StorageManagerBaseTest.java | 171 public void onObbStateChange(String path, int state) { in onObbStateChange() argument 175 Log.i(LOG_TAG, "OfficialPath is now: " + path); in onObbStateChange() 177 mOfficialPath = path; in onObbStateChange() 278 String path = mSm.getMountedObbPath(obbPath); in openFileOnMountedObb() local 279 assertTrue("Path should not be null!", path != null); in openFileOnMountedObb() 281 File inFile = new File(path, fileName); in openFileOnMountedObb() 285 Log.i(LOG_TAG, "Opened file: " + fileName + " for read at path: " + path); in openFileOnMountedObb() 465 protected void doValidateIntContents(String path, String filename, int start, int end) { in doValidateIntContents() argument 466 File inFile = new File(path, filename); in doValidateIntContents() 468 Log.i(LOG_TAG, "Validating file " + filename + " at " + path); in doValidateIntContents() [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 …]
|
D | InputCmd.cpp | 106 sys::fs::Path path; in activate() local 112 path = script.sysroot(); in activate() 113 path.append(token->name()); in activate() 116 path.assign(token->name()); in activate() 117 if (!sys::fs::exists(path)) { in activate() 122 path = *p; in activate() 126 if (!sys::fs::exists(path)) in activate() 127 fatal(diag::err_cannot_open_input) << path.filename() << path; in activate() 130 path.filename().native(), path, Input::Unknown); in activate() 134 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/libs/androidfw/ |
D | AssetManager.cpp | 86 String8 path(root); in idmapPathForPackagePath() local 87 path.appendPath(kResourceCache); in idmapPathForPackagePath() 103 path.appendPath(filename); in idmapPathForPackagePath() 104 path.append("@idmap"); in idmapPathForPackagePath() 106 return path; in idmapPathForPackagePath() 161 const String8& path, int32_t* cookie, bool appAsLib, bool isSystemAsset) { in addAssetPath() argument 166 String8 realPath(path); in addAssetPath() 172 ap.path = realPath; in addAssetPath() 174 ap.path = path; in addAssetPath() 175 ap.type = ::getFileType(path.string()); in addAssetPath() [all …]
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | AssetManager.h | 90 bool addAssetPath(const String8& path, int32_t* cookie, 92 bool addOverlayPath(const String8& path, int32_t* cookie); 200 asset_path() : path(""), type(kFileTypeRegular), idmap(""), in asset_path() 202 String8 path; member 210 const asset_path& path); 211 String8 createPathNameLocked(const asset_path& path, const char* rootDir); 215 ZipFileRO* getZipFileLocked(const asset_path& path); 221 const asset_path& path, const char* rootDir, const char* dirName); 222 SortedVector<AssetDir::FileInfo>* scanDirLocked(const String8& path); 224 const asset_path& path, const char* rootDir, const char* dirName); [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 | 178 VFullPath_Delegate path = VNativeObject.getDelegate(pathPtr); in nGetFullPathProperties() local 183 properties.putFloat(VFullPath_Delegate.STROKE_WIDTH_INDEX * 4, path.getStrokeWidth()); in nGetFullPathProperties() 184 properties.putInt(VFullPath_Delegate.STROKE_COLOR_INDEX * 4, path.getStrokeColor()); in nGetFullPathProperties() 185 properties.putFloat(VFullPath_Delegate.STROKE_ALPHA_INDEX * 4, path.getStrokeAlpha()); in nGetFullPathProperties() 186 properties.putInt(VFullPath_Delegate.FILL_COLOR_INDEX * 4, path.getFillColor()); in nGetFullPathProperties() 187 properties.putFloat(VFullPath_Delegate.FILL_ALPHA_INDEX * 4, path.getStrokeAlpha()); in nGetFullPathProperties() 188 properties.putFloat(VFullPath_Delegate.TRIM_PATH_START_INDEX * 4, path.getTrimPathStart()); in nGetFullPathProperties() 189 properties.putFloat(VFullPath_Delegate.TRIM_PATH_END_INDEX * 4, path.getTrimPathEnd()); in nGetFullPathProperties() 191 path.getTrimPathOffset()); in nGetFullPathProperties() 192 properties.putInt(VFullPath_Delegate.STROKE_LINE_CAP_INDEX * 4, path.getStrokeLineCap()); in nGetFullPathProperties() [all …]
|
/frameworks/native/libs/input/ |
D | InputDevice.cpp | 44 static void appendInputDeviceConfigurationFileRelativePath(String8& path, in appendInputDeviceConfigurationFileRelativePath() argument 46 path.append(CONFIGURATION_FILE_DIR[type]); in appendInputDeviceConfigurationFileRelativePath() 52 path.append(&ch, 1); in appendInputDeviceConfigurationFileRelativePath() 54 path.append(CONFIGURATION_FILE_EXTENSION[type]); in appendInputDeviceConfigurationFileRelativePath() 90 String8 path; in getInputDeviceConfigurationFilePathByName() local 95 path.setTo(rootsForPartition[i]); in getInputDeviceConfigurationFilePathByName() 96 path.append("/usr/"); in getInputDeviceConfigurationFilePathByName() 97 appendInputDeviceConfigurationFileRelativePath(path, name, type); in getInputDeviceConfigurationFilePathByName() 100 path.string()); in getInputDeviceConfigurationFilePathByName() 102 if (!access(path.string(), R_OK)) { in getInputDeviceConfigurationFilePathByName() [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 != NULL) { in wipe() 152 strcpy(nameBuffer, path); in wipe() 236 static int write_header(FILE* fh, int type, const char* path, const struct stat* st) in write_header() argument [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/base/libs/hwui/ |
D | PathCache.cpp | 120 return shape.path.mGenerationID == rhs.shape.path.mGenerationID; in operator ==() 128 static void computePathBounds(const SkPath* path, const SkPaint* paint, PathTexture* texture, in computePathBounds() argument 130 const SkRect& bounds = path->getBounds(); in computePathBounds() 154 static sk_sp<Bitmap> drawPath(const SkPath* path, const SkPaint* paint, PathTexture* texture, in drawPath() argument 157 computePathBounds(path, paint, texture, width, height); in drawPath() 173 canvas.drawPath(*path, pathPaint); in drawPath() 267 PathTexture* PathCache::addTexture(const PathDescription& entry, const SkPath *path, in addTexture() argument 271 PathTexture* texture = new PathTexture(Caches::getInstance(), path->getGenerationID()); in addTexture() 272 sk_sp<Bitmap> bitmap(drawPath(path, paint, texture, mMaxTextureSize)); in addTexture() 324 t->setResult(drawPath(&t->path, &t->paint, t->texture, mMaxTextureSize)); in onProcess() [all …]
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | FontFamily_Delegate.java | 219 private static Font loadFont(String path) { in loadFont() argument 220 if (path.startsWith(SYSTEM_FONTS) ) { in loadFont() 221 String relativePath = path.substring(SYSTEM_FONTS.length()); in loadFont() 227 if (path.endsWith(EXTENSION_OTF) && e instanceof FontFormatException) { in loadFont() 253 /*package*/ static boolean addFont(FontFamily thisFontFamily, String path, int ttcIndex, in addFont() argument 260 return delegate != null && delegate.addFont(path, ttcIndex, weight, italic); in addFont() 311 static boolean addFont(long builderPtr, final String path, final int weight, 317 delegate.mPostInitRunnables.add(() -> delegate.addFont(path, weight, italic)); 320 return delegate.addFont(path, weight, italic); 326 …/*package*/ static boolean nAddFontFromAssetManager(long builderPtr, AssetManager mgr, String path, [all …]
|