Searched refs:path (Results 1 - 25 of 201) 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
406 public FileCacheEntry beginFile(String path, String mimeType, long lastModified, long fileSize) { argument
411 int lastSlash = path.lastIndexOf('/');
412 if (lastSlash >= 0 && lastSlash + 2 < path.length()) {
414 if (path.regionMatches(lastSlash + 1, "._", 0, 2)) {
420 if (path
493 scanFile(String path, long lastModified, long fileSize) argument
499 scanFile(String path, String mimeType, long lastModified, long fileSize) argument
503 doScanFile(String path, String mimeType, long lastModified, long fileSize, boolean scanAlways) argument
848 doesPathHaveFilename(String path, String filename) argument
867 addNoMediaFolder(String path) argument
1046 inScanDirectory(String path, String[] directories) argument
1212 scanSingleFile(String path, String volumeName, String mimeType) argument
1317 processM3uPlayList(String path, String playListDirectory, Uri uri, ContentValues values) argument
1348 processPlsPlayList(String path, String playListDirectory, Uri uri, ContentValues values) argument
1421 processWplPlayList(String path, String playListDirectory, Uri uri) argument
1505 processDirectory(String path, String extensions, MediaScannerClient client) argument
1506 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 DIMountServiceListener.aidl36 * @param path The volume mount path.
42 void onStorageStateChanged(String path, String oldState, String newState);
/frameworks/base/core/tests/coretests/src/android/os/storage/
H A DStorageListener.java28 String path; field in class:StorageListener
31 public void onStorageStateChanged(String path, String oldState, String newState) { argument
36 this.path = path;
/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.cpp47 const char *path, const char *extensions,
50 int pathLength = strlen(path);
60 strcpy(pathBuffer, path);
79 static bool fileMatchesExtension(const char* path, const char* extensions) { argument
80 char* extension = strrchr(path, '.');
97 char *path, int pathRemaining, const char *extensions,
101 char* fileSpot = path + strlen(path);
107 if (access(path, F_OK) == 0) {
110 client.addNoMediaFolder(path);
46 processDirectory( const char *path, const char *extensions, MediaScannerClient &client, ExceptionCheck exceptionCheck, void *exceptionEnv) argument
96 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) {
697 String8 path; local
994 String8 path; local
1120 scanDirLocked(const String8& path) argument
1538 SharedZip(const String8& path, time_t modWhen) argument
1552 get(const String8& path) argument
1668 getZip(const String8& path) argument
1679 getZipResourceTableAsset(const String8& path) argument
1690 setZipResourceTableAsset(const String8& path, Asset* asset) argument
1699 getZipResourceTable(const String8& path) argument
1710 setZipResourceTable(const String8& path, ResTable* res) argument
[all...]
/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.h69 * added asset path will be examined first when searching for assets,
76 bool addAssetPath(const String8& path, void** cookie);
94 * Return an asset path in the manager. 'which' must be between 0 and
132 * path hierarchy, and will not be seen by "AssetDir" or included
156 * Open a directory within a particular path of the asset manager.
203 String8 path; member in struct:android::AssetManager::asset_path
208 const asset_path& path);
210 const asset_path& path);
212 const asset_path& path, const char* locale, const char* vendor);
213 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/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
282 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/services/java/com/android/server/
H A DMountService.java140 String path; field in class:MountService.UnmountCallBack
144 UnmountCallBack(String path, boolean force) { argument
146 this.path = path;
151 if (DEBUG_UNMOUNT) Slog.i(TAG, "Unmounting " + path);
152 doUnmountVolume(path, true);
159 UmsEnableCallBack(String path, String method, boolean force) { argument
160 super(path, force);
167 doShareUnshareVolume(path, method, true);
173 ShutdownCallBack(String path, IMountShutdownObserve argument
359 doShareUnshareVolume(String path, String method, boolean enable) argument
373 updatePublicVolumeState(String path, String state) argument
580 notifyVolumeStateChange(String label, String path, int oldState, int newState) argument
680 doMountVolume(String path) argument
737 doUnmountVolume(String path, boolean force) argument
765 doFormatVolume(String path) argument
782 doGetVolumeShared(String path, String method) argument
1064 mountVolume(String path) argument
1071 unmountVolume(String path, boolean force) argument
1089 formatVolume(String path) argument
1096 getStorageUsers(String path) argument
[all...]

Completed in 400 milliseconds

123456789