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

1234567891011>>

/frameworks/base/media/java/android/media/
H A DMediaScannerClient.java24 public void scanFile(String path, long lastModified, long fileSize, argument
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DPathsCacheActivity.java49 Path path = new Path();
50 buildPath(path);
51 return path;
54 private void buildPath(Path path) { argument
55 path.moveTo(0.0f, 0.0f);
56 path.cubicTo(0.0f, 0.0f, 100.0f, 150.0f, 100.0f, 200.0f);
57 path.cubicTo(100.0f, 200.0f, 50.0f, 300.0f, -80.0f, 200.0f);
58 path.cubicTo(-80.0f, 200.0f, 100.0f, 200.0f, 200.0f, 0.0f);
96 Path path = makePath();
99 mPathList.add(path);
[all...]
H A DTextOnPathActivity.java45 Path path = new Path();
46 buildPath(path);
47 return path;
50 private 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/av/include/media/stagefright/
H A DStagefrightMediaScanner.h30 const char *path, const char *mimeType,
40 const char *path, const char *mimeType,
/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/services/java/com/android/server/
H A DSerialService.java42 String path = mSerialPorts[i];
43 if (new File(path).exists()) {
44 ports.add(path);
52 public ParcelFileDescriptor openSerialPort(String path) { argument
54 return native_open(path);
57 private native ParcelFileDescriptor native_open(String path); argument
/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/libs/hwui/
H A DShapeCache.cpp38 SkPath path; local
41 path.addRoundRect(r, rx, ry, SkPath::kCW_Direction);
43 texture = addTexture(entry, &path, paint);
62 SkPath path; local
63 path.addCircle(radius, radius, radius, SkPath::kCW_Direction);
65 texture = addTexture(entry, &path, paint);
84 SkPath path; local
87 path.addOval(r, SkPath::kCW_Direction);
89 texture = addTexture(entry, &path, paint);
150 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/base/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:__anon948
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/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/compile/mclinker/lib/MC/
H A DSearchDirs.cpp61 if (file == entry.path()->stem().native() ) {
62 if(mcld::sys::fs::detail::shared_library_extension == entry.path()->extension().native()) {
63 return entry.path();
74 if (file == entry.path()->stem().native() &&
75 mcld::sys::fs::detail::static_library_extension == entry.path()->extension().native()) {
76 return entry.path();
/frameworks/base/libs/androidfw/
H A DAssetManager.cpp79 String8 path(root);
80 path.appendPath(kIdmapCacheDir);
96 path.appendPath(filename);
97 path.append("@idmap");
99 return path;
155 bool AssetManager::addAssetPath(const String8& path, void** cookie) argument
161 String8 realPath(path);
167 ap.path = realPath;
169 ap.path = path;
956 String8 path; local
1253 String8 path; local
1379 scanDirLocked(const String8& path) argument
1797 SharedZip(const String8& path, time_t modWhen) argument
1811 get(const String8& path) argument
1927 getZip(const String8& path) argument
1938 getZipResourceTableAsset(const String8& path) argument
1949 setZipResourceTableAsset(const String8& path, Asset* asset) argument
1958 getZipResourceTable(const String8& path) argument
1969 setZipResourceTable(const String8& path, ResTable* res) argument
[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 820 milliseconds

1234567891011>>