Lines Matching refs:path

49 // path. And it's used to identify a specific media set even if the process is
75 // This is the path for the media set seen by the user at top level.
157 // MediaObject object = peekMediaObject(path);
162 public MediaObject peekMediaObject(Path path) {
163 return path.getObject();
166 public MediaObject getMediaObject(Path path) {
168 MediaObject obj = path.getObject();
171 MediaSource source = mSourceMap.get(path.getPrefix());
173 Log.w(TAG, "cannot find media source for path: " + path);
178 MediaObject object = source.createMediaObject(path);
180 Log.w(TAG, "cannot create media object: " + path);
184 Log.w(TAG, "exception in creating media object: " + path, t);
194 public MediaSet getMediaSet(Path path) {
195 return (MediaSet) getMediaObject(path);
222 // Group the path by the prefix.
225 Path path = list.get(i);
226 String prefix = path.getPrefix();
232 group.add(new PathId(path, i + startIndex));
244 public int getSupportedOperations(Path path) {
245 return getMediaObject(path).getSupportedOperations();
248 public void getPanoramaSupport(Path path, PanoramaSupportCallback callback) {
249 getMediaObject(path).getPanoramaSupport(callback);
252 public void delete(Path path) {
253 getMediaObject(path).delete();
256 public void rotate(Path path, int degrees) {
257 getMediaObject(path).rotate(degrees);
260 public Uri getContentUri(Path path) {
261 return getMediaObject(path).getContentUri();
264 public int getMediaType(Path path) {
265 return getMediaObject(path).getMediaType();
271 Path path = source.findPathByUri(uri, type);
272 if (path != null) return path;
358 Path path = findPathByUri(uri, null);
359 if (path != null) {
360 MediaObject mediaObject = getMediaObject(path);