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

123456789

/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);
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DSecureSource.java37 public static boolean isSecurePath(String path) { argument
38 return (SECURE_ALBUM == mMatcher.match(Path.fromString(path)));
42 public MediaObject createMediaObject(Path path) { argument
43 switch (mMatcher.match(path)) {
48 return new SecureAlbum(path, mApplication, unlock);
51 return new UnlockImage(path, mApplication);
53 throw new RuntimeException("bad path: " + path);
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 DCameraShortcutImage.java26 public CameraShortcutImage(Path path, GalleryApp application) { argument
27 super(path, application, R.drawable.placeholder_camera);
H A DEmptyAlbumImage.java26 public EmptyAlbumImage(Path path, GalleryApp application) { argument
27 super(path, application, R.drawable.placeholder_empty);
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
82 obj = pid.path.getObject();
85 obj = createMediaObject(pid.path);
87 Log.w(TAG, "cannot create media object: " + pid.path, th);
H A DUnlockImage.java26 public UnlockImage(Path path, GalleryApp application) { argument
27 super(path, application, R.drawable.placeholder_locked);
H A DDataSourceType.java35 Path path = set.getPath();
36 if (MediaSetUtils.isCameraSource(path)) return TYPE_CAMERA;
38 Path prefix = path.getPrefixPath();
H A DDataManager.java49 // 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) { argument
163 return path.getObject();
166 public MediaObject getMediaObject(Path path) { argument
168 MediaObject obj = path.getObject();
171 MediaSource source = mSourceMap.get(path.getPrefix());
173 Log.w(TAG, "cannot find media source for path: " + path);
194 getMediaSet(Path path) argument
244 getSupportedOperations(Path path) argument
248 getPanoramaSupport(Path path, PanoramaSupportCallback callback) argument
252 delete(Path path) argument
256 rotate(Path path, int degrees) argument
260 getContentUri(Path path) argument
264 getMediaType(Path path) argument
[all...]
H A DSnailAlbum.java27 public SnailAlbum(Path path, SnailItem item) { argument
28 super(path, item);
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 DFilterDeleteSet.java25 // void addDeletion(Path path, int index);
26 // void removeDelection(Path path);
40 Path path; field in class:FilterDeleteSet.Request
42 public Request(int type, Path path, int indexHint) { argument
44 this.path = path;
50 Path path; field in class:FilterDeleteSet.Deletion
52 public Deletion(Path path, int index) { argument
53 this.path = path;
67 FilterDeleteSet(Path path, MediaSet baseSet) argument
226 sendRequest(int type, Path path, int indexHint) argument
239 addDeletion(Path path, int indexHint) argument
243 removeDeletion(Path path) argument
[all...]
H A DFilterSource.java61 public MediaObject createMediaObject(Path path) { argument
62 int matchType = mMatcher.match(path);
69 return new FilterTypeSet(path, dataManager, sets[0], mediaType);
74 return new FilterDeleteSet(path, sets[0]);
79 return new FilterEmptyPromptSet(path, sets[0], mEmptyItem);
85 return new SingleItemAlbum(path, mCameraShortcutItem);
91 throw new RuntimeException("bad path: " + path);
H A DImageCacheService.java49 * Gets the cached image data for the given <code>path</code> and <code>type</code>.
57 public boolean getImageData(Path path, int type, BytesBuffer buffer) { argument
58 byte[] key = makeKey(path, type);
79 public void putImageData(Path path, int type, byte[] value) { argument
80 byte[] key = makeKey(path, type);
94 public void clearImageData(Path path, int type) { argument
95 byte[] key = makeKey(path, type);
106 private static byte[] makeKey(Path path, int type) { argument
107 return GalleryUtils.getBytes(path.toString() + "+" + type);
/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.java40 final String path = resUrl.getPath();
41 if (!path.startsWith("file:")) {
42 throw new RuntimeException("Unknown jar path: " + path);
44 final String jarPath = path.substring("file:".length(), path.indexOf('!'));
66 final String path = entry.getName();
67 final int pos = path.lastIndexOf('/');
68 final String dirName = (pos >= 0) ? path.substring(0, pos) : "";
69 final String name = (pos >= 0) ? path
[all...]
/packages/providers/MediaProvider/src/com/android/providers/media/
H A DMediaScannerReceiver.java43 String path = uri.getPath();
46 Log.d(TAG, "action: " + action + " path: " + path);
51 path != null && path.startsWith(externalStoragePath + "/")) {
52 scanFile(context, path);
65 private void scanFile(Context context, String path) { argument
67 args.putString("filepath", path);
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/
H A DTypedUriMatcherImplTest.java39 private String path; field in class:TypedUriMatcherImplTest.TestUriType
41 private TestUriType(String path) { argument
42 this.path = path;
46 public String path() { method in class:TypedUriMatcherImplTest.TestUriType
47 return path;
67 // Incorrect path.
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/setup/
H A DSetupStartIndicatorView.java103 final Path path = mIndicatorPath;
104 path.rewind();
107 path.moveTo(width, 0.0f);
108 path.lineTo(0.0f, halfHeight);
109 path.lineTo(width, height);
112 path.moveTo(0.0f, 0.0f);
113 path.lineTo(width, halfHeight);
114 path.lineTo(0.0f, height);
116 path.close();
120 canvas.drawPath(path, mIndicatorPain
[all...]
/packages/apps/Gallery2/src/com/android/photos/
H A DFullscreenViewer.java32 String path = getIntent().getData().toString();
34 mTextureView.setTileSource(new BitmapRegionTileSource(path));

Completed in 5532 milliseconds

123456789