Searched refs:path (Results 1 - 25 of 211) sorted by relevance

123456789

/frameworks/base/core/java/android/os/
H A DStatFs.java26 * filesystem at <var>path</var>. Upon construction, the stat of
30 * @param path A path in the desired file system to state.
32 public StatFs(String path) { native_setup(path); } argument
37 * path, and the new stat values are available upon return.
39 public void restat(String path) { native_restat(path); } argument
71 private native void native_restat(String path); argument
72 private native void native_setup(String path); argument
[all...]
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/media/java/android/media/
H A DIMediaScannerService.aidl28 * @param path the path to the file to be scanned.
34 void requestScanFile(String path, String mimeType, in IMediaScannerListener listener);
39 * @param path the path to the file to be scanned.
43 void scanFile(String path, String mimeType);
H A DMediaScannerClient.java24 public void scanFile(String path, long lastModified, long fileSize); argument
26 public void scanFile(String path, String mimeType, long lastModified, long fileSize); argument
28 public void addNoMediaFolder(String path); argument
H A DIMediaScannerListener.aidl28 * @param path the path to the file that has been scanned.
32 void scanCompleted(String path, in Uri uri);
H A DMediaScanner.java331 // set to true if file path comparisons should be case insensitive.
345 FileCacheEntry(Uri tableUri, long rowId, String path, long lastModified) { argument
348 mPath = path;
360 // hashes file path to FileCacheEntry.
361 // path should be lower case if mCaseInsensitivePaths is true
407 public FileCacheEntry beginFile(String path, String mimeType, long lastModified, long fileSize) { argument
412 int lastSlash = path.lastIndexOf('/');
413 if (lastSlash >= 0 && lastSlash + 2 < path.length()) {
415 if (path.regionMatches(lastSlash + 1, "._", 0, 2)) {
421 if (path
495 scanFile(String path, long lastModified, long fileSize) argument
501 scanFile(String path, String mimeType, long lastModified, long fileSize) argument
505 doScanFile(String path, String mimeType, long lastModified, long fileSize, boolean scanAlways) argument
853 doesPathHaveFilename(String path, String filename) argument
872 addNoMediaFolder(String path) argument
1051 inScanDirectory(String path, String[] directories) argument
1217 scanSingleFile(String path, String volumeName, String mimeType) argument
1322 processM3uPlayList(String path, String playListDirectory, Uri uri, ContentValues values) argument
1353 processPlsPlayList(String path, String playListDirectory, Uri uri, ContentValues values) argument
1426 processWplPlayList(String path, String playListDirectory, Uri uri) argument
1510 processDirectory(String path, String extensions, MediaScannerClient client) argument
1511 processFile(String path, String mimeType, MediaScannerClient client) argument
[all...]
/frameworks/base/core/java/android/os/storage/
H A DMountServiceListener.java36 * @param path The volume mount path.
42 void onStorageStateChange(String path, String oldState, String newState) { argument
H A DStorageEventListener.java33 * @param path the filesystem path for the storage
37 public void onStorageStateChanged(String path, String oldState, String newState) { argument
H A DOnObbStateChangeListener.java80 * @param path path to the OBB file the state change has happened on
83 public void onObbStateChange(String path, int state) { argument
/frameworks/base/services/jni/
H A Dcom_android_server_BatteryService.cpp135 static int readFromFile(const char* path, char* buf, size_t size) argument
137 if (!path)
139 int fd = open(path, O_RDONLY, 0);
141 LOGE("Could not open '%s'", path);
158 static void setBooleanField(JNIEnv* env, jobject obj, const char* path, jfieldID fieldID) argument
164 if (readFromFile(path, buf, SIZE) > 0) {
172 static void setIntField(JNIEnv* env, jobject obj, const char* path, jfieldID fieldID) argument
178 if (readFromFile(path, buf, SIZE) > 0) {
184 static void setVoltageField(JNIEnv* env, jobject obj, const char* path, jfieldID fieldID) argument
190 if (readFromFile(path, bu
231 char path[PATH_MAX]; local
[all...]
/frameworks/base/cmds/dumpstate/
H A Ddumpstate.h24 int dump_file(const char *title, const char* path);
36 pid_t redirect_to_file(FILE *redirect, char *path, int gzip_level);
/frameworks/base/media/libmedia/
H A DMediaScanner.cpp51 const char *path, const char *extensions,
54 int pathLength = strlen(path);
64 strcpy(pathBuffer, path);
83 static bool fileMatchesExtension(const char* path, const char* extensions) { argument
84 char* extension = strrchr(path, '.');
101 char *path, int pathRemaining, const char *extensions,
105 char* fileSpot = path + strlen(path);
111 if (access(path, F_OK) == 0) {
114 client.addNoMediaFolder(path);
50 processDirectory( const char *path, const char *extensions, MediaScannerClient &client, ExceptionCheck exceptionCheck, void *exceptionEnv) argument
100 doProcessDirectory( char *path, int pathRemaining, const char *extensions, MediaScannerClient &client, ExceptionCheck exceptionCheck, void *exceptionEnv) argument
[all...]
/frameworks/base/core/java/android/gesture/
H A DOrientedBoundingBox.java56 Path path = new Path();
64 path.moveTo(point[0], point[1]);
69 path.lineTo(point[0], point[1]);
74 path.lineTo(point[0], point[1]);
79 path.lineTo(point[0], point[1]);
81 path.close();
83 return path;
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/
H A DFileList.java56 String path = (String)map.get("path");
57 if ((new File(path)).isDirectory()) {
58 mPath = path;
62 processFile(path, false);
86 addItem(myData, "!LayoutTests path missing!", "");
96 String path = sb.toString();
97 File c = new File(path);
100 addItem(myData, "<"+files[i]+">", path);
105 addItem(myData, files[i], path);
112 addItem(List<Map> data, String name, String path) argument
157 processDirectory(String path, boolean selection) argument
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DTypeface.java117 * @param path The file name of the font data in the assets directory
120 public static Typeface createFromAsset(AssetManager mgr, String path) { argument
121 return new Typeface(nativeCreateFromAsset(mgr, path));
127 * @param path The path to the font data.
130 public static Typeface createFromFile(File path) { argument
131 return new Typeface(nativeCreateFromFile(path.getAbsolutePath()));
137 * @param path The full path to the font data.
140 public static Typeface createFromFile(String path) { argument
176 nativeCreateFromAsset(AssetManager mgr, String path) argument
177 nativeCreateFromFile(String path) argument
[all...]
H A DPathMeasure.java23 * of a path, and/or to find the position and tangent along it, call
26 * Note that once a path is associated with the measure object, it is
27 * undefined if the path is subsequently modified and the the measure object
28 * is used. If the path is modified, you must call setPath with the path.
35 * Create a PathMeasure object associated with the specified path object
37 * path's length, and the position and tangent of any position along the
38 * path.
40 * Note that once a path is associated with the measure object, it is
41 * undefined if the path i
48 PathMeasure(Path path, boolean forceClosed) argument
58 setPath(Path path, boolean forceClosed) argument
[all...]
/frameworks/base/libs/utils/
H A DAssetManager.cpp93 bool AssetManager::addAssetPath(const String8& path, void** cookie) argument
99 String8 realPath(path);
105 ap.path = realPath;
107 ap.path = path;
108 ap.type = ::getFileType(path.string());
110 LOGW("Asset path %s is neither a directory nor file (type=%d).",
111 path.string(), (int)ap.type);
118 if (mAssetPaths[i].path == ap.path) {
703 String8 path; local
1000 String8 path; local
1126 scanDirLocked(const String8& path) argument
1544 SharedZip(const String8& path, time_t modWhen) argument
1558 get(const String8& path) argument
1674 getZip(const String8& path) argument
1685 getZipResourceTableAsset(const String8& path) argument
1696 setZipResourceTableAsset(const String8& path, Asset* asset) argument
1705 getZipResourceTable(const String8& path) argument
1716 setZipResourceTable(const String8& path, ResTable* res) 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/core/jni/
H A Dandroid_server_BluetoothA2dpService.cpp102 jstring path) {
110 const char *c_path = env->GetStringUTFChars(path, NULL);
115 env->ReleaseStringUTFChars(path, c_path);
133 static jboolean connectSinkNative(JNIEnv *env, jobject object, jstring path) { argument
137 const char *c_path = env->GetStringUTFChars(path, NULL);
138 int len = env->GetStringLength(path) + 1;
146 env->ReleaseStringUTFChars(path, c_path);
154 jstring path) {
158 const char *c_path = env->GetStringUTFChars(path, NULL);
164 env->ReleaseStringUTFChars(path, c_pat
101 getSinkPropertiesNative(JNIEnv *env, jobject object, jstring path) argument
153 disconnectSinkNative(JNIEnv *env, jobject object, jstring path) argument
171 suspendSinkNative(JNIEnv *env, jobject object, jstring path) argument
187 resumeSinkNative(JNIEnv *env, jobject object, jstring path) argument
203 avrcpVolumeUpNative(JNIEnv *env, jobject object, jstring path) argument
219 avrcpVolumeDownNative(JNIEnv *env, jobject object, jstring path) argument
259 jstring path = env->NewStringUTF(c_path); local
284 const char *path = (const char *)user; local
[all...]
H A Dandroid_util_FileObserver.cpp79 jstring path = NULL; local
83 path = env->NewStringUTF(event->name);
86 env->CallVoidMethod(object, method_onEvent, event->wd, event->mask, path);
91 if (path != NULL)
93 env->DeleteLocalRef(path);
113 const char* path = env->GetStringUTFChars(pathString, NULL); local
115 res = inotify_add_watch(fd, path, mask);
117 env->ReleaseStringUTFChars(pathString, path);
/frameworks/base/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/media/
H A Dmediascanner.h36 const char *path, const char *mimeType,
41 const char *path, const char *extensions,
58 char *path, int pathRemaining, const char *extensions,
76 virtual bool scanFile(const char* path, long long lastModified, long long fileSize) = 0;
79 virtual bool addNoMediaFolder(const char* path) = 0;
/frameworks/base/include/utils/
H A DAssetManager.h87 * added asset path will be examined first when searching for assets,
94 bool addAssetPath(const String8& path, void** cookie);
112 * Return an asset path in the manager. 'which' must be between 0 and
152 * path hierarchy, and will not be seen by "AssetDir" or included
176 * Open a directory within a particular path of the asset manager.
223 String8 path; member in struct:android::AssetManager::asset_path
228 const asset_path& path);
230 const asset_path& path);
232 const asset_path& path, const char* locale, const char* vendor);
233 String8 createPathNameLocked(const asset_path& path, cons
[all...]
H A DAssetDir.h80 FileInfo(const String8& path) // useful for e.g. svect.indexOf argument
81 : mFileName(path), mFileType(kFileTypeUnknown)
109 void set(const String8& path, FileType type) { argument
110 mFileName = path;
115 void setFileName(const String8& path) { mFileName = path; } argument
121 void setSourceName(const String8& path) { mSourceName = path; } argument
/frameworks/base/test-runner/src/junit/runner/
H A DTestCaseClassLoader.java25 /** scanned class path */
39 * Constructs a TestCaseLoader. It scans the class path
43 this(System.getProperty("java.class.path"));
47 * Constructs a TestCaseLoader. It scans the class path
56 String separator= System.getProperty("path.separator");
113 String path= (String) fPathItems.elementAt(i);
115 if (isJar(path)) {
116 data= loadJarData(path, fileName);
118 data= loadFileData(path, fileName);
132 private byte[] loadFileData(String path, Strin argument
157 loadJarData(String path, String fileName) argument
[all...]

Completed in 506 milliseconds

123456789