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

12345678

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DVoicemailUriType.java30 private final String path; field in class:VoicemailUriType
32 private VoicemailUriType(String path) { argument
33 this.path = path;
37 public String path() { method in class:VoicemailUriType
38 return path;
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
H A DUriType.java22 /** Returns the path associated with this URI type. */
23 public String path(); method in interface:UriType
H A DTypedUriMatcherImpl.java38 String path = value.path();
39 if (path != null) {
40 addUriType(path, value);
48 private void addUriType(String path, T value) { argument
49 mUriMatcher.addURI(mAuthority, path, value.ordinal());
/packages/apps/Gallery2/tests/src/com/android/gallery3d/data/
H A DMockSource.java37 public MediaObject createMediaObject(Path path) { argument
39 switch (mMatcher.match(path)) {
41 return new MockSet(path, mApplication.getDataManager());
43 return new MockItem(path);
45 throw new RuntimeException("bad path: " + path);
H A DMockItem.java25 public MockItem(Path path) { argument
26 super(path, nextVersionNumber());
H A DMockSet.java26 public MockSet(Path path, DataManager dataManager) { argument
27 super(path, nextVersionNumber());
31 public MockSet(Path path, DataManager dataManager, argument
33 this(path, dataManager);
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DComboSource.java35 // The only path we accept is "/combo/{set1, set2, ...} and /combo/item/{set1, set2, ...}"
37 public MediaObject createMediaObject(Path path) { argument
38 String[] segments = path.split();
40 throw new RuntimeException("bad path: " + path);
44 switch (mMatcher.match(path)) {
46 return new ComboAlbumSet(path, mApplication,
50 return new ComboAlbum(path,
H A DMediaSource.java41 public abstract MediaObject createMediaObject(Path path); argument
62 public PathId(Path path, int id) { argument
63 this.path = path;
66 public Path path; field in class:MediaSource.PathId
80 MediaObject obj = pid.path.getObject();
83 obj = createMediaObject(pid.path);
85 Log.w(TAG, "cannot create media object: " + pid.path, th);
H A DFilterSource.java41 public MediaObject createMediaObject(Path path) { argument
42 int matchType = mMatcher.match(path);
49 return new FilterTypeSet(path, dataManager, sets[0], mediaType);
54 return new FilterDeleteSet(path, sets[0]);
57 throw new RuntimeException("bad path: " + path);
H A DDataSourceType.java37 Path path = set.getPath();
38 if (MediaSetUtils.isCameraSource(path)) return TYPE_CAMERA;
40 Path prefix = path.getPrefixPath();
H A DClusterSource.java60 public MediaObject createMediaObject(Path path) { argument
61 int matchType = mMatcher.match(path);
71 return new ClusterAlbumSet(path, mApplication, sets[0], matchType);
77 MediaSet parent = dataManager.getMediaSet(path.getParent());
80 return new ClusterAlbum(path, dataManager, parent);
83 throw new RuntimeException("bad path: " + path);
H A DMtpSource.java43 public MediaObject createMediaObject(Path path) { argument
44 switch (mMatcher.match(path)) {
46 return new MtpDeviceSet(path, mApplication, mMtpContext);
50 return new MtpDevice(path, mApplication, deviceId, mMtpContext);
55 return new MtpImage(path, mApplication, deviceId, objectId, mMtpContext);
58 throw new RuntimeException("bad path: " + path);
H A DFilterDeleteSet.java25 // void addDeletion(Path path, int index);
26 // void removeDelection(Path path);
39 Path path; field in class:FilterDeleteSet.Request
41 public Request(int type, Path path, int indexHint) { argument
43 this.path = path;
49 Path path; field in class:FilterDeleteSet.Deletion
51 public Deletion(Path path, int index) { argument
52 this.path = path;
67 FilterDeleteSet(Path path, MediaSet baseSet) argument
222 sendRequest(int type, Path path, int indexHint) argument
235 addDeletion(Path path, int indexHint) argument
239 removeDeletion(Path path) argument
[all...]
H A DDataManager.java48 // path. And it's used to identify a specific media set even if the process is
69 // This is the path for the media set seen by the user at top level.
150 public MediaObject peekMediaObject(Path path) { argument
151 return path.getObject();
154 public MediaObject getMediaObject(Path path) { argument
155 MediaObject obj = path.getObject();
158 MediaSource source = mSourceMap.get(path.getPrefix());
160 Log.w(TAG, "cannot find media source for path: " + path);
165 MediaObject object = source.createMediaObject(path);
180 getMediaSet(Path path) argument
230 getSupportedOperations(Path path) argument
234 delete(Path path) argument
238 rotate(Path path, int degrees) argument
242 getContentUri(Path path) argument
246 getMediaType(Path path) argument
[all...]
H A DSnailSource.java37 // The only path we accept is "/snail/set/id" and "/snail/item/id"
39 public MediaObject createMediaObject(Path path) { argument
41 switch (mMatcher.match(path)) {
46 return new SnailAlbum(path, item);
49 return new SnailItem(path);
H A DMtpContext.java37 public void scanPath(String path) { argument
40 mScannerConnection.scanFile(path, null);
42 mPaths.add(path);
53 for (String path : mPaths) {
54 mScannerConnection.scanFile(path, null);
62 public void onScanCompleted(String path, Uri uri) { argument
131 String path = importedFile.getAbsolutePath();
132 if (mClient.importFile(deviceName, child.getObjectHandle(), path)) {
133 mScannerClient.scanPath(path);
/packages/apps/Email/src/org/apache/commons/io/
H A DFileSystemUtils.java127 * @param path the path to get free space for, not null, not empty on Unix
129 * @throws IllegalArgumentException if the path is invalid
136 public static long freeSpace(String path) throws IOException { argument
137 return INSTANCE.freeSpaceOS(path, OS, false);
158 * @param path the path to get free space for, not null, not empty on Unix
160 * @throws IllegalArgumentException if the path is invalid
165 public static long freeSpaceKb(String path) throws IOException { argument
166 return INSTANCE.freeSpaceOS(path, O
188 freeSpaceOS(String path, int os, boolean kb) argument
215 freeSpaceWindows(String path) argument
251 parseDir(String line, String path) argument
305 freeSpaceUnix(String path, boolean kb, boolean posix) argument
362 parseBytes(String freeSpace, String path) argument
[all...]
H A DFileCleaningTracker.java97 * @param path the full path to the file to be tracked, not null
99 * @throws NullPointerException if the path is null
101 public void track(String path, Object marker) { argument
102 track(path, marker, (FileDeleteStrategy) null);
110 * @param path the full path to the file to be tracked, not null
113 * @throws NullPointerException if the path is null
115 public void track(String path, Object marker, FileDeleteStrategy deleteStrategy) { argument
116 if (path
129 addTracker(String path, Object marker, FileDeleteStrategy deleteStrategy) argument
228 private final String path; field in class:FileCleaningTracker.Tracker
242 Tracker(String path, FileDeleteStrategy deleteStrategy, Object marker, ReferenceQueue<Object> queue) argument
[all...]
H A DFileCleaner.java81 * @param path the full path to the file to be tracked, not null
83 * @throws NullPointerException if the path is null
86 public static void track(String path, Object marker) { argument
87 theInstance.track(path, marker);
95 * @param path the full path to the file to be tracked, not null
98 * @throws NullPointerException if the path is null
101 public static void track(String path, Object marker, FileDeleteStrategy deleteStrategy) { argument
102 theInstance.track(path, marke
[all...]
/packages/inputmethods/LatinIME/tools/maketext/src/com/android/inputmethod/latin/maketext/
H A DJarUtils.java41 final String path = resUrl.getPath();
42 if (!path.startsWith("file:")) {
43 throw new RuntimeException("Unknown jar path: " + path);
45 final String jarPath = path.substring("file:".length(), path.indexOf('!'));
67 final String path = entry.getName();
68 final int pos = path.lastIndexOf('/');
69 final String dirName = (pos >= 0) ? path.substring(0, pos) : "";
70 final String name = (pos >= 0) ? path
[all...]
/packages/providers/MediaProvider/src/com/android/providers/media/
H A DMediaScannerReceiver.java45 String path = uri.getPath();
48 Log.d(TAG, "action: " + action + " path: " + path);
53 path != null && path.startsWith(externalStoragePath + "/")) {
54 scanFile(context, path);
67 private void scanFile(Context context, String path) { argument
69 args.putString("filepath", path);
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/
H A DTypedUriMatcherImplTest.java42 private String path; field in class:TypedUriMatcherImplTest.TestUriType
44 private TestUriType(String path) { argument
45 this.path = path;
49 public String path() { method in class:TypedUriMatcherImplTest.TestUriType
50 return path;
70 // Incorrect path.
/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A DMediaSetUtils.java46 public static boolean isCameraSource(Path path) { argument
47 return CAMERA_PATHS[0] == path || CAMERA_PATHS[1] == path
48 || CAMERA_PATHS[2] == path;
/packages/apps/Mms/src/org/w3c/dom/smil/
H A DSMILAnimateMotionElement.java28 public void setPath(String path) argument
/packages/apps/Browser/tools/
H A Dget_search_engines.py65 self.resdir = os.path.normpath(os.path.join(sys.path[0], '../res'))
178 all_search_engines_path = os.path.join(self.resdir, 'values/all_search_engines.xml')
190 self.generateXmlFromTemplate(os.path.join(sys.path[0], 'all_search_engines.template.xml'),
194 self.writeEngineList(os.path.join(self.resdir, 'values'), "default")
211 dir_path = os.path.join(self.resdir, 'values-' + language + '-r' + country)
216 if os.path.exists(dir_path) and not os.path
[all...]

Completed in 353 milliseconds

12345678