Searched refs:path (Results 26 - 50 of 464) sorted by relevance

1234567891011>>

/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/
H A DFileList.java57 String path = (String)map.get("path");
58 if ((new File(path)).isDirectory()) {
59 mPath = path;
63 processFile(path, false);
87 addItem(myData, "!LayoutTests path missing!", "");
97 String path = sb.toString();
98 File c = new File(path);
101 addItem(myData, "<"+files[i]+">", path);
106 addItem(myData, files[i], path);
113 addItem(List<Map> data, String name, String path) argument
158 processDirectory(String path, boolean selection) argument
[all...]
/frameworks/av/include/media/stagefright/
H A DStagefrightMediaScanner.h30 const char *path, const char *mimeType,
40 const char *path, const char *mimeType,
/frameworks/av/media/libmediaplayerservice/
H A DSharedLibrary.cpp28 SharedLibrary::SharedLibrary(const String8 &path) { argument
29 mLibHandle = dlopen(path.string(), RTLD_NOW);
/frameworks/base/tools/aapt/tests/
H A DMockCacheUpdater.h18 // Make sure all the directories along this path exist
19 virtual void ensureDirectoriesExist(String8 path) argument
25 virtual void deleteFile(String8 path) { argument
H A DMockDirectoryWalker.h19 // entries. It takes a path and a map of filenames and their modification times.
24 StringDirectoryWalker(String8& path, Vector< pair<String8,time_t> >& data) argument
25 : mPos(0), mBasePath(path), mData(data) {
31 virtual bool openDir(String8 path) { argument
34 return path == mBasePath;
36 virtual bool openDir(const char* path) { argument
37 String8 p(path);
79 // Base path
/frameworks/compile/libbcc/tools/build/
H A Dgen-sha1-stamp.py28 def compute_sha1(h, path):
29 f = open(path, 'rb')
37 """The result is a list of pair of file path and its SHA-1 digest"""
40 for path in path_list:
42 compute_sha1(h, path)
43 result.append((path, h.digest()))
46 """For each path like /xxx/libfoo.so, generate a symbol named libfoo_so_SHA1"""
47 def get_symbol_name(path):
48 return os.path.basename(path)
[all...]
H A Dgen-build-info.py32 if not os.path.exists(os.path.join(repo_dir, '.git')):
60 def compute_sha1(path, global_hasher = None):
61 f = open(path, 'rb')
76 for path in paths:
77 sha1sums.append(compute_sha1(path, hasher))
120 for i, path in enumerate(lib_list):
121 lib_list_str += ' %s %s\n' % (sha1sum_list[i], path)
147 """ % (os.path.abspath(repo_dir),
/frameworks/av/include/media/
H A Dmediascanner.h49 const char *path, const char *mimeType, MediaScannerClient &client) = 0;
52 const char *path, MediaScannerClient &client);
69 char *path, int pathRemaining, MediaScannerClient &client, bool noMedia);
71 char *path, int pathRemaining, MediaScannerClient &client, bool noMedia,
74 bool shouldSkipDirectory(char *path);
91 virtual status_t scanFile(const char* path, long long lastModified,
/frameworks/base/tools/aapt/
H A DDirectoryWalker.h28 virtual bool openDir(String8 path) = 0;
29 virtual bool openDir(const char* path) = 0;
44 // Base path
57 virtual bool openDir(String8 path) { argument
58 mBasePath = path;
67 virtual bool openDir(const char* path) { argument
68 String8 p(path);
/frameworks/compile/mclinker/unittests/
H A DMCRegionFragmentTest.cpp46 Path path(TOPDIR);
47 path.append("unittests/test3.txt");
49 MemoryArea* area = areaFactory->produce(path, MemoryArea::ReadWrite);
61 Path path(TOPDIR);
62 path.append("unittests/test3.txt");
64 MemoryArea* area = areaFactory->produce(path, MemoryArea::ReadWrite);
/frameworks/base/core/java/android/os/
H A DFileObserver.java91 public int startWatching(String path, int mask, FileObserver observer) { argument
92 int wfd = startWatching(m_fd, path, mask);
108 public void onEvent(int wfd, int mask, String path) { argument
125 observer.onEvent(mask, path);
134 private native int startWatching(int fd, String path, int mask); argument
151 * Equivalent to FileObserver(path, FileObserver.ALL_EVENTS).
153 public FileObserver(String path) { argument
154 this(path, ALL_EVENTS);
162 * @param path The file or directory to monitor
165 public FileObserver(String path, in argument
212 onEvent(int event, String path) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/os/storage/
H A DStorageManagerBaseTest.java81 * @param obbFilePath path to the OBB image file
82 * @param pathToContentsFile path to a file on the mounted OBB volume to open after the OBB
88 assertTrue("path to contents file cannot be null!", pathToContentsFile != null);
100 // the official OBB file path and the mount-request file path should be the same, but
140 * Returns the official path of the OBB file that was mounted
142 * This is not the mount path, but the normalized path to the actual OBB file
144 * @return a {@link String} representation of the path to the OBB file that was mounted
171 public void onObbStateChange(String path, in argument
465 doValidateIntContents(String path, String filename, int start, int end) argument
495 doValidateTextContents(String path, String filename, String contents) argument
530 doValidateZeroLongFile(String path, String filename, long size, boolean checkContents) argument
[all...]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DTextOnPathActivity.java45 Path path = new Path();
46 buildPath(path);
47 return path;
50 private static void buildPath(Path path) { argument
51 path.moveTo(0.0f, 0.0f);
52 path.cubicTo(0.0f, 0.0f, 100.0f, 150.0f, 100.0f, 200.0f);
53 path.cubicTo(100.0f, 200.0f, 50.0f, 300.0f, -80.0f, 200.0f);
54 path.cubicTo(-80.0f, 200.0f, 100.0f, 200.0f, 200.0f, 0.0f);
58 Path path = new Path();
59 buildStraightPath(path);
63 buildStraightPath(Path path) argument
[all...]
/frameworks/compile/mclinker/lib/MC/
H A DSearchDirs.cpp55 if (exists(dir->path()) && is_directory(dir->path())) {
92 if (file == entry.path()->stem().native() ) {
93 if(mcld::sys::fs::detail::shared_library_extension == entry.path()->extension().native()) {
94 return entry.path();
105 if (file == entry.path()->stem().native() &&
106 mcld::sys::fs::detail::static_library_extension == entry.path()->extension().native()) {
107 return entry.path();
136 if (file == entry.path()->stem().native() ) {
137 if(mcld::sys::fs::detail::shared_library_extension == entry.path()
[all...]
/frameworks/base/libs/hwui/
H A DPathCache.cpp85 bool PathCache::canDrawAsConvexPath(SkPath* path, SkPaint* paint) { argument
87 return paint->getPathEffect() == NULL && path->getConvexity() == SkPath::kConvex_Convexity;
90 void PathCache::computePathBounds(const SkPath* path, const SkPaint* paint, argument
92 const SkRect& bounds = path->getBounds();
128 static void drawPath(const SkPath *path, const SkPaint* paint, SkBitmap& bitmap, argument
137 canvas.drawPath(*path, pathPaint);
248 PathTexture* PathCache::addTexture(const PathDescription& entry, const SkPath *path, argument
254 computePathBounds(path, paint, left, top, offset, width, height);
261 drawPath(path, paint, bitmap, left, top, offset, width, height);
264 path
371 removeDeferred(SkPath* path) argument
393 getSourcePath(SkPath* path) argument
401 get(SkPath* path, SkPaint* paint) argument
439 precache(SkPath* path, SkPaint* paint) argument
497 SkPath path; local
519 SkPath path; local
540 SkPath path; local
563 SkPath path; local
590 SkPath path; local
[all...]
/frameworks/av/media/libstagefright/id3/
H A Dtestid3.cpp71 void scanFile(const char *path) { argument
72 sp<FileSource> file = new FileSource(path);
77 printf("FAIL %s\n", path);
79 printf("SUCCESS %s\n", path);
112 void scan(const char *path) { argument
114 if (stat(path, &st) == 0 && S_ISREG(st.st_mode)) {
115 scanFile(path);
119 DIR *dir = opendir(path);
134 strcpy(newPath, path);
/frameworks/base/include/androidfw/
H A DAssetManager.h88 * added asset path will be examined first when searching for assets,
95 bool addAssetPath(const String8& path, void** cookie);
113 * Return an asset path in the manager. 'which' must be between 0 and
153 * path hierarchy, and will not be seen by "AssetDir" or included
177 * Open a directory within a particular path of the asset manager.
224 String8 path; member in struct:android::AssetManager::asset_path
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, cons
[all...]
/frameworks/base/packages/DefaultContainerService/jni/
H A Dcom_android_defcontainer_MeasurementUtils.cpp35 const char* path = env->GetStringUTFChars(directory, NULL); local
36 if (path == NULL) {
40 int dirfd = open(path, O_DIRECTORY, O_RDONLY);
42 ALOGI("error opening: %s: %s", path, strerror(errno));
48 env->ReleaseStringUTFChars(directory, path);
/frameworks/native/cmds/installd/
H A Dutils.c21 int create_pkg_path_in_dir(char path[PKG_PATH_MAX], argument
41 char *dst = path;
44 if (append_and_increment(&dst, dir->path, &dst_size) < 0
47 ALOGE("Error building APK path");
55 * Create the package path name for a given package name with a postfix for
58 int create_pkg_path(char path[PKG_PATH_MAX], argument
79 if (append_and_increment(&dst, android_data_dir.path, &dst_size) < 0
81 ALOGE("Error building prefix for APK path");
88 ALOGW("Error appending UID to APK path");
94 dir.path
104 create_persona_path(char path[PKG_PATH_MAX], uid_t persona) argument
144 create_persona_media_path(char path[PATH_MAX], userid_t userid) argument
151 create_move_path(char path[PKG_PATH_MAX], const char* pkgname, const char* leaf, uid_t persona) argument
671 create_dir_path(char path[PATH_MAX], cache_dir_t* dir) argument
688 delete_cache_dir(char path[PATH_MAX], cache_dir_t* dir) argument
730 char path[PATH_MAX]; local
799 validate_system_app_path(const char* path) argument
822 const char* path = getenv(var); local
837 get_path_from_string(dir_rec_t* rec, const char* path) argument
906 validate_apk_path(const char *path) argument
997 char path[PATH_MAX]; local
[all...]
H A Dinstalld.h79 #define PKG_PATH_MAX 256 /* max size of any path we use */
87 char* path; member in struct:__anon1322
133 int create_pkg_path_in_dir(char path[PKG_PATH_MAX],
138 int create_pkg_path(char path[PKG_PATH_MAX],
143 int create_persona_path(char path[PKG_PATH_MAX],
146 int create_persona_media_path(char path[PKG_PATH_MAX], userid_t userid);
148 int create_move_path(char path[PKG_PATH_MAX],
155 int create_cache_path(char path[PKG_PATH_MAX], const char *src);
175 int validate_system_app_path(const char* path);
179 int get_path_from_string(dir_rec_t* rec, const char* path);
[all...]
/frameworks/ex/carousel/java/com/android/ex/carousel/
H A DCarouselViewUtilities.java24 File path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);
25 File file = new File(path, filename);
28 path.mkdirs();
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DCsimFileHandler.java49 String path = getCommonIccEFPath(efid);
50 if (path == null) {
53 // the global 3g phone book path.
56 return path;
/frameworks/base/libs/androidfw/
H A DAssetManager.cpp91 String8 path(root);
92 path.appendPath(kIdmapCacheDir);
108 path.appendPath(filename);
109 path.append("@idmap");
111 return path;
167 bool AssetManager::addAssetPath(const String8& path, void** cookie) argument
173 String8 realPath(path);
179 ap.path = realPath;
181 ap.path = path;
970 String8 path; local
1267 String8 path; local
1393 scanDirLocked(const String8& path) argument
1811 SharedZip(const String8& path, time_t modWhen) argument
1825 get(const String8& path) argument
1941 getZip(const String8& path) argument
1952 getZipResourceTableAsset(const String8& path) argument
1963 setZipResourceTableAsset(const String8& path, Asset* asset) argument
1972 getZipResourceTable(const String8& path) argument
1983 setZipResourceTable(const String8& path, ResTable* res) argument
[all...]
/frameworks/base/tests/DumpRenderTree2/assets/
H A Drun_layout_tests.py9 run_layout_tests.py --show-results-in-browser test-relative-path
28 def main(path, options):
35 # Run the tests in path
41 cmd += "-e path \"" + path + "\" "
60 summary_txt_tmp_path = os.path.join(tmpdir, SUMMARY_TXT)
66 details_html_tmp_path = os.path.join(tmpdir, DETAILS_HTML)
82 option_parser = optparse.OptionParser(usage="Usage: %prog [options] test-relative-path")
93 logging.fatal("Usage: run_layout_tests.py [options] test-relative-path")
96 path variable
98 path = args[0] variable
[all...]
/frameworks/av/drm/libdrmframework/include/
H A DDrmManagerService.h62 DrmConstraints* getConstraints(int uniqueId, const String8* path, const int action);
64 DrmMetadata* getMetadata(int uniqueId, const String8* path);
66 bool canHandle(int uniqueId, const String8& path, const String8& mimeType);
75 String8 getOriginalMimeType(int uniqueId, const String8& path, int fd);
77 int getDrmObjectType(int uniqueId, const String8& path, const String8& mimeType);
79 int checkRightsStatus(int uniqueId, const String8& path,int action);
86 bool validateAction(int uniqueId, const String8& path,
89 status_t removeRights(int uniqueId, const String8& path);

Completed in 633 milliseconds

1234567891011>>