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

1234567

/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.java39 public MediaObject createMediaObject(Path path) { argument
40 int matchType = mMatcher.match(path);
47 return new FilterSet(path, dataManager, sets[0], mediaType);
49 throw new RuntimeException("bad path: " + path);
H A DUriSource.java38 public MediaObject createMediaObject(Path path) { argument
39 String segment[] = path.split();
41 throw new RuntimeException("bad path: " + path);
45 return new UriImage(mApplication, path, Uri.parse(decoded));
H A DDataManager.java46 // path. And it's used to identify a specific media set even if the process is
67 // This is the path for the media set seen by the user at top level.
144 public MediaObject peekMediaObject(Path path) { argument
145 return path.getObject();
148 public MediaSet peekMediaSet(Path path) { argument
149 return (MediaSet) path.getObject();
152 public MediaObject getMediaObject(Path path) { argument
153 MediaObject obj = path.getObject();
156 MediaSource source = mSourceMap.get(path.getPrefix());
158 Log.w(TAG, "cannot find media source for path
173 getMediaSet(Path path) argument
223 getSupportedOperations(Path path) argument
227 delete(Path path) argument
231 rotate(Path path, int degrees) argument
235 getContentUri(Path path) argument
239 getMediaType(Path path) argument
243 getDetails(Path path) argument
247 cache(Path path, int flag) argument
[all...]
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 DImageCacheService.java55 public ImageData getImageData(Path path, int type) { argument
56 byte[] key = makeKey(path, type);
74 public void putImageData(Path path, int type, byte[] value) { argument
75 byte[] key = makeKey(path, type);
89 private static byte[] makeKey(Path path, int type) { argument
90 return GalleryUtils.getBytes(path.toString() + "+" + type);
H A DMtpContext.java39 public void scanPath(String path) { argument
42 mScannerConnection.scanFile(path, null);
44 mPaths.add(path);
55 for (String path : mPaths) {
56 mScannerConnection.scanFile(path, null);
64 public void onScanCompleted(String path, Uri uri) { argument
133 String path = importedFile.getAbsolutePath();
134 if (mClient.importFile(deviceName, child.getObjectHandle(), path)) {
135 mScannerClient.scanPath(path);
/packages/apps/Email/emailcommon/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/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/ui/
H A DStripDrawer.java37 public void setPressedPath(Path path) { argument
38 mPressedPath = path;
41 private boolean isPressedPath(Path path) { argument
42 return path != null && path == mPressedPath;
51 int width, int height, int rotation, Path path,
60 if (isPressedPath(path)) {
50 draw(GLCanvas canvas, Texture content, int width, int height, int rotation, Path path, int dataSourceType, int mediaType, boolean isPanorama, int labelBackgroundHeight, boolean wantCache, boolean isCaching) argument
/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A DMediaSetUtils.java43 public static boolean isCameraSource(Path path) { argument
44 return CAMERA_PATHS[0] == path || CAMERA_PATHS[1] == path
45 || 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...]
/packages/apps/Contacts/src/com/android/contacts/vcard/
H A DVCardService.java80 public CustomMediaScannerConnectionClient(String path) { argument
82 mPath = path;
96 public void onScanCompleted(String path, Uri uri) { argument
97 if (DEBUG) { Log.d(LOG_TAG, "scan completed: " + path); }
229 final String path = request.destUri.getEncodedPath();
230 if (DEBUG) Log.d(LOG_TAG, "Reserve the path " + path);
231 if (!mReservedDestination.add(path)) {
233 String.format("The path %s is already reserved. Reject export request",
234 path));
346 updateMediaScanner(String path) argument
[all...]

Completed in 273 milliseconds

1234567