Home
last modified time | relevance | path

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

12345678910>>...23

/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/native/cmds/installd/tests/
Dinstalld_utils_test.cpp52 android_app_dir.path = TEST_APP_DIR; in SetUp()
55 android_app_private_dir.path = TEST_APP_PRIVATE_DIR; in SetUp()
58 android_data_dir.path = TEST_DATA_DIR; in SetUp()
61 android_asec_dir.path = TEST_ASEC_DIR; in SetUp()
67 android_system_dirs.dirs[0].path = TEST_SYSTEM_DIR1; in SetUp()
70 android_system_dirs.dirs[1].path = TEST_SYSTEM_DIR2; in SetUp()
244 EXPECT_STREQ("/mnt/asec/", test1.path) in TEST_F()
248 free(test1.path); in TEST_F()
255 EXPECT_STREQ("/data/app/", test3.path) in TEST_F()
259 free(test3.path); in TEST_F()
[all …]
/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.java64 Path path = new Path(); in getRandomPath() local
65 path.moveTo(left, top); in getRandomPath()
66 path.lineTo(right, top); in getRandomPath()
67 path.lineTo(right, bottom); in getRandomPath()
68 path.lineTo(left, bottom); in getRandomPath()
69 path.close(); in getRandomPath()
70 return path; in getRandomPath()
82 Path path; in onDraw() local
84 path = getRandomPath(); in onDraw()
86 canvas.drawPath(path, strokePaint); in onDraw()
[all …]
DTextOnPathActivity.java45 Path path = new Path(); in makePath() local
46 buildPath(path); in makePath()
47 return path; in makePath()
50 private static void buildPath(Path path) { in buildPath() argument
51 path.moveTo(0.0f, 0.0f); in buildPath()
52 path.cubicTo(0.0f, 0.0f, 100.0f, 150.0f, 100.0f, 200.0f); in buildPath()
53 path.cubicTo(100.0f, 200.0f, 50.0f, 300.0f, -80.0f, 200.0f); in buildPath()
54 path.cubicTo(-80.0f, 200.0f, 100.0f, 200.0f, 200.0f, 0.0f); in buildPath()
58 Path path = new Path(); in makeStraightPath() local
59 buildStraightPath(path); in makeStraightPath()
[all …]
/frameworks/base/core/java/android/database/sqlite/
DSQLiteDatabaseConfiguration.java51 public final String path; field in SQLiteDatabaseConfiguration
99 public SQLiteDatabaseConfiguration(String path, int openFlags) { in SQLiteDatabaseConfiguration() argument
100 if (path == null) { in SQLiteDatabaseConfiguration()
104 this.path = path; in SQLiteDatabaseConfiguration()
105 label = stripPathForLogs(path); in SQLiteDatabaseConfiguration()
123 this.path = other.path; in SQLiteDatabaseConfiguration()
138 if (!path.equals(other.path)) { in updateParametersFrom()
156 return path.equalsIgnoreCase(MEMORY_DB_PATH); in isInMemoryDb()
159 private static String stripPathForLogs(String path) { in stripPathForLogs() argument
160 if (path.indexOf('@') == -1) { in stripPathForLogs()
[all …]
/frameworks/webview/chromium/tools/
Dmerge_from_chromium.py40 def _ReadGitFile(sha1, path, git_url=None, git_branch=None): argument
53 return merge_common.GetCommandStdout(['git', 'show', '%s:%s' % (sha1, path)])
111 for path in projects:
113 if len(path) > 0:
114 upstream_path = os.path.join('src', path)
124 'updated.' % path)
128 logging.debug(' Got URL %s and SHA1 %s for project %s', url, sha1, path)
129 result[path] = {'url': url, 'sha1': sha1}
169 for path in merge_info:
171 local_mirrored = path == 'third_party/WebKit'
[all …]
Dmerge_to_master.py40 for path in merge_common.PROJECTS_WITH_FLAT_HISTORY:
41 dest_dir = os.path.join(merge_common.REPOSITORY_ROOT, path)
56 merge_log = os.path.join(dest_dir, '.merged-revisions')
57 if os.path.exists(merge_log):
59 os.path.join(dest_dir, '.git', 'info', 'grafts'))
62 logging.debug('Merging project %s ...', path)
67 dirs_to_prune = merge_common.PRUNE_WHEN_FLATTENING.get(path, [])
85 logging.debug('No new commits to merge in project %s', path)
87 for path in merge_common.PROJECTS_WITH_FULL_HISTORY:
88 dest_dir = os.path.join(merge_common.REPOSITORY_ROOT, path)
[all …]
/frameworks/base/libs/androidfw/
DAssetManager.cpp92 String8 path(root); in idmapPathForPackagePath() local
93 path.appendPath(kIdmapCacheDir); in idmapPathForPackagePath()
109 path.appendPath(filename); in idmapPathForPackagePath()
110 path.append("@idmap"); in idmapPathForPackagePath()
112 return path; in idmapPathForPackagePath()
168 bool AssetManager::addAssetPath(const String8& path, void** cookie) in addAssetPath() argument
174 String8 realPath(path); in addAssetPath()
180 ap.path = realPath; in addAssetPath()
182 ap.path = path; in addAssetPath()
183 ap.type = ::getFileType(path.string()); in addAssetPath()
[all …]
/frameworks/native/cmds/installd/
Dutils.c21 int create_pkg_path_in_dir(char path[PKG_PATH_MAX], in create_pkg_path_in_dir()
41 char *dst = path; in create_pkg_path_in_dir()
44 if (append_and_increment(&dst, dir->path, &dst_size) < 0 in create_pkg_path_in_dir()
58 int create_pkg_path(char path[PKG_PATH_MAX], in create_pkg_path()
80 if (append_and_increment(&dst, android_data_dir.path, &dst_size) < 0 in create_pkg_path()
95 dir.path = prefix; in create_pkg_path()
98 return create_pkg_path_in_dir(path, &dir, pkgname, postfix); in create_pkg_path()
105 int create_user_path(char path[PKG_PATH_MAX], in create_user_path()
118 char *dst = path; in create_user_path()
121 if (append_and_increment(&dst, android_data_dir.path, &dst_size) < 0 in create_user_path()
[all …]
/frameworks/base/libs/hwui/
DPathCache.cpp85 bool PathCache::canDrawAsConvexPath(SkPath* path, SkPaint* paint) { in canDrawAsConvexPath() argument
87 return paint->getPathEffect() == NULL && path->getConvexity() == SkPath::kConvex_Convexity; in canDrawAsConvexPath()
90 void PathCache::computePathBounds(const SkPath* path, const SkPaint* paint, in computePathBounds() argument
92 const SkRect& bounds = path->getBounds(); in computePathBounds()
128 static void drawPath(const SkPath *path, const SkPaint* paint, SkBitmap& bitmap, in drawPath() argument
137 canvas.drawPath(*path, pathPaint); in drawPath()
263 PathTexture* PathCache::addTexture(const PathDescription& entry, const SkPath *path, in addTexture() argument
269 computePathBounds(path, paint, left, top, offset, width, height); in addTexture()
276 drawPath(path, paint, bitmap, left, top, offset, width, height); in addTexture()
279 path->getGenerationID()); in addTexture()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/storage/
DStorageManagerBaseTest.java171 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/base/packages/Keyguard/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/include/androidfw/
DAssetManager.h95 bool addAssetPath(const String8& path, void** cookie);
224 String8 path; member
230 const asset_path& path);
232 const asset_path& path);
234 const asset_path& path, const char* locale, const char* vendor);
235 String8 createPathNameLocked(const asset_path& path, const char* locale,
237 String8 createPathNameLocked(const asset_path& path, const char* rootDir);
241 ZipFileRO* getZipFileLocked(const asset_path& path);
247 const asset_path& path, const char* rootDir, const char* dirName);
248 SortedVector<AssetDir::FileInfo>* scanDirLocked(const String8& path);
[all …]
/frameworks/native/libs/input/
DInputDevice.cpp43 static void appendInputDeviceConfigurationFileRelativePath(String8& path, in appendInputDeviceConfigurationFileRelativePath() argument
45 path.append(CONFIGURATION_FILE_DIR[type]); in appendInputDeviceConfigurationFileRelativePath()
51 path.append(&ch, 1); in appendInputDeviceConfigurationFileRelativePath()
53 path.append(CONFIGURATION_FILE_EXTENSION[type]); in appendInputDeviceConfigurationFileRelativePath()
89 String8 path; in getInputDeviceConfigurationFilePathByName() local
90 path.setTo(getenv("ANDROID_ROOT")); in getInputDeviceConfigurationFilePathByName()
91 path.append("/usr/"); in getInputDeviceConfigurationFilePathByName()
92 appendInputDeviceConfigurationFileRelativePath(path, name, type); in getInputDeviceConfigurationFilePathByName()
94 ALOGD("Probing for system provided input device configuration file: path='%s'", path.string()); in getInputDeviceConfigurationFilePathByName()
96 if (!access(path.string(), R_OK)) { in getInputDeviceConfigurationFilePathByName()
[all …]
/frameworks/base/drm/java/android/drm/
DDrmManagerClient.java368 public ContentValues getConstraints(String path, int action) { in getConstraints() argument
369 if (null == path || path.equals("") || !DrmStore.Action.isValid(action)) { in getConstraints()
372 return _getConstraints(mUniqueId, path, action); in getConstraints()
383 public ContentValues getMetadata(String path) { in getMetadata() argument
384 if (null == path || path.equals("")) { in getMetadata()
387 return _getMetadata(mUniqueId, path); in getMetadata()
470 public boolean canHandle(String path, String mimeType) { in canHandle() argument
471 if ((null == path || path.equals("")) && (null == mimeType || mimeType.equals(""))) { in canHandle()
474 return _canHandle(mUniqueId, path, mimeType); in canHandle()
557 public int getDrmObjectType(String path, String mimeType) { in getDrmObjectType() argument
[all …]
/frameworks/compile/mclinker/unittests/
DMemoryAreaTest.cpp50 Path path(TOPDIR); in TEST_F() local
51 path.append("unittests/test3.txt"); in TEST_F()
54 MemoryArea* area = AreaFactory->produce(path, FileHandle::ReadOnly); in TEST_F()
65 Path path(TOPDIR); in TEST_F() local
66 path.append("unittests/test2.txt"); in TEST_F()
68 MemoryArea* area = AreaFactory->produce(path, FileHandle::ReadOnly); in TEST_F()
80 area->handler()->open(path, FileHandle::ReadOnly); in TEST_F()
93 Path path(TOPDIR) ; in TEST_F() local
94 path.append("unittests/test3.txt") ; in TEST_F()
96 MemoryArea* area = AreaFactory->produce(path, FileHandle::ReadOnly) ; in TEST_F()
[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 != 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/base/test-runner/src/junit/runner/
DTestCaseClassLoader.java113 String path= (String) fPathItems.elementAt(i); in lookupClassData() local
115 if (isJar(path)) { in lookupClassData()
116 data= loadJarData(path, fileName); in lookupClassData()
118 data= loadFileData(path, fileName); in lookupClassData()
132 private byte[] loadFileData(String path, String fileName) { in loadFileData() argument
133 File file= new File(path, fileName); in loadFileData()
157 private byte[] loadJarData(String path, String fileName) { in loadJarData() argument
160 File archive= new File(path); in loadJarData()
216 String path= p.getProperty(key); in readExcludedPackages() local
217 path= path.trim(); in readExcludedPackages()
[all …]
/frameworks/av/drm/common/
DDrmEngineBase.cpp30 int uniqueId, const String8* path, int action) { in getConstraints() argument
31 return onGetConstraints(uniqueId, path, action); in getConstraints()
34 DrmMetadata* DrmEngineBase::getMetadata(int uniqueId, const String8* path) { in getMetadata() argument
35 return onGetMetadata(uniqueId, path); in getMetadata()
51 bool DrmEngineBase::canHandle(int uniqueId, const String8& path) { in canHandle() argument
52 return onCanHandle(uniqueId, path); in canHandle()
69 String8 DrmEngineBase::getOriginalMimeType(int uniqueId, const String8& path, int fd) { in getOriginalMimeType() argument
70 return onGetOriginalMimeType(uniqueId, path, fd); in getOriginalMimeType()
73 int DrmEngineBase::getDrmObjectType(int uniqueId, const String8& path, const String8& mimeType) { in getDrmObjectType() argument
74 return onGetDrmObjectType(uniqueId, path, mimeType); in getDrmObjectType()
[all …]
/frameworks/compile/mclinker/lib/MC/
DSearchDirs.cpp55 if (exists(dir->path()) && is_directory(dir->path())) { in insert()
92 if (file == entry.path()->stem().native() ) { in find()
93 … if(mcld::sys::fs::detail::shared_library_extension == entry.path()->extension().native()) { in find()
94 return entry.path(); in find()
105 if (file == entry.path()->stem().native() && in find()
106 mcld::sys::fs::detail::static_library_extension == entry.path()->extension().native()) { in find()
107 return entry.path(); in find()
136 if (file == entry.path()->stem().native() ) { in find()
137 … if(mcld::sys::fs::detail::shared_library_extension == entry.path()->extension().native()) { in find()
138 return entry.path(); in find()
[all …]
/frameworks/base/media/java/android/media/
DMediaScanner.java361 FileEntry(long rowId, String path, long lastModified, int format) { in FileEntry() argument
363 mPath = path; in FileEntry()
376 String path; field in MediaScanner.PlaylistEntry
442 public FileEntry beginFile(String path, String mimeType, long lastModified, in beginFile() argument
450 if (!noMedia && isNoMediaFile(path)) { in beginFile()
462 MediaFile.MediaFileType mediaFileType = MediaFile.getFileType(path); in beginFile()
472 mFileType = getFileTypeFromDrm(path); in beginFile()
476 FileEntry entry = makeEntryFor(path); in beginFile()
484 entry = new FileEntry(0, path, lastModified, in beginFile()
506 mPath = path; in beginFile()
[all …]
/frameworks/av/drm/libdrmframework/
DDrmManagerClient.cpp42 DrmConstraints* DrmManagerClient::getConstraints(const String8* path, const int action) { in getConstraints() argument
43 return mDrmManagerClientImpl->getConstraints(mUniqueId, path, action); in getConstraints()
46 DrmMetadata* DrmManagerClient::getMetadata(const String8* path) { in getMetadata() argument
47 return mDrmManagerClientImpl->getMetadata(mUniqueId, path); in getMetadata()
50 bool DrmManagerClient::canHandle(const String8& path, const String8& mimeType) { in canHandle() argument
51 return mDrmManagerClientImpl->canHandle(mUniqueId, path, mimeType); in canHandle()
67 String8 DrmManagerClient::getOriginalMimeType(const String8& path, int fd) { in getOriginalMimeType() argument
68 return mDrmManagerClientImpl->getOriginalMimeType(mUniqueId, path, fd); in getOriginalMimeType()
71 int DrmManagerClient::getDrmObjectType(const String8& path, const String8& mimeType) { in getDrmObjectType() argument
72 return mDrmManagerClientImpl->getDrmObjectType( mUniqueId, path, mimeType); in getDrmObjectType()
[all …]
DDrmManagerClientImpl.cpp90 int uniqueId, const String8* path, const int action) { in getConstraints() argument
92 if ((NULL != path) && (EMPTY_STRING != *path)) { in getConstraints()
94 getDrmManagerService()->getConstraints(uniqueId, path, action); in getConstraints()
99 DrmMetadata* DrmManagerClientImpl::getMetadata(int uniqueId, const String8* path) { in getMetadata() argument
101 if ((NULL != path) && (EMPTY_STRING != *path)) { in getMetadata()
102 drmMetadata = getDrmManagerService()->getMetadata(uniqueId, path); in getMetadata()
108 int uniqueId, const String8& path, const String8& mimeType) { in canHandle() argument
110 if ((EMPTY_STRING != path) || (EMPTY_STRING != mimeType)) { in canHandle()
111 retCode = getDrmManagerService()->canHandle(uniqueId, path, mimeType); in canHandle()
141 int uniqueId, const String8& path, int fd) { in getOriginalMimeType() argument
[all …]
/frameworks/wilhelm/tests/sandbox/
DAndroid.mk10 $(call include-path-for, wilhelm)
39 $(call include-path-for, wilhelm)
66 $(call include-path-for, wilhelm) \
67 $(call include-path-for, wilhelm-ut)
98 $(call include-path-for, wilhelm) \
99 $(call include-path-for, wilhelm-ut)
130 $(call include-path-for, wilhelm)
157 $(call include-path-for, wilhelm)
188 $(call include-path-for, wilhelm)
219 $(call include-path-for, wilhelm) \
[all …]

12345678910>>...23