Searched refs:path (Results 26 - 50 of 165) sorted by relevance

1234567

/packages/apps/Gallery2/src_pd/com/android/gallery3d/picasasource/
H A DPicasaSource.java60 public EmptyAlbumSet(Path path, long version) { argument
61 super(path, version);
76 public MediaObject createMediaObject(Path path) { argument
77 switch (mMatcher.match(path)) {
79 return new EmptyAlbumSet(path, MediaObject.nextVersionNumber());
81 throw new RuntimeException("bad path: " + path);
/packages/apps/CertInstaller/src/com/android/certinstaller/
H A DCertFile.java63 String path = savedStates.getString(CERT_FILE_KEY);
64 if (path != null) {
65 mCertFile = new File(path);
162 protected boolean isFileAcceptable(String path) { argument
163 return (path.endsWith(Credentials.EXTENSION_CRT) ||
164 path.endsWith(Credentials.EXTENSION_P12) ||
165 path.endsWith(Credentials.EXTENSION_CER) ||
166 path.endsWith(Credentials.EXTENSION_PFX));
H A DCertFileList.java158 public void onEvent(int evt, String path) {
159 commonHandler(evt, path);
166 public void onEvent(int evt, String path) {
167 commonHandler(evt, path);
172 private void commonHandler(int evt, String path) { argument
176 if (isFileAcceptable(path)) {
/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/util/
H A DSimpleTempStorage.java122 private File path = null; field in class:SimpleTempStorage.SimpleTempPath
124 private SimpleTempPath(String path) { argument
125 this.path = new File(path);
128 private SimpleTempPath(File path) { argument
129 this.path = path;
162 return path.getAbsolutePath();
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DMediaItem.java47 public MediaItem(Path path, long version) { argument
48 super(path, version);
H A DMediaObject.java64 public MediaObject(Path path, long version) { argument
65 path.setObject(this);
66 mPath = path;
H A DLocalSource.java81 public MediaObject createMediaObject(Path path) { argument
83 switch (mMatcher.match(path)) {
87 return new LocalAlbumSet(path, mApplication);
89 return new LocalAlbum(path, app, mMatcher.getIntVar(0), true);
91 return new LocalAlbum(path, app, mMatcher.getIntVar(0), false);
101 path, comp, new MediaSet[] {imageSet, videoSet});
104 return new LocalImage(path, mApplication, mMatcher.getIntVar(0));
106 return new LocalVideo(path, mApplication, mMatcher.getIntVar(0));
108 throw new RuntimeException("bad path: " + path);
[all...]
H A DLocalAlbumSet.java40 // The path should be "/local/image", "local/video" or "/local/all"
59 // name of where an image or video is in. BUCKET_ID is a hash of the path
99 public LocalAlbumSet(Path path, GalleryApp application) { argument
100 super(path, nextVersionNumber());
102 mType = getTypeFromPath(path);
109 private static int getTypeFromPath(Path path) { argument
110 String name[] = path.split();
112 throw new IllegalArgumentException(path.toString());
117 throw new IllegalArgumentException(path.toString());
210 Path path
[all...]
H A DTagClustering.java47 Path path = item.getPath();
51 untagged.add(path);
61 list.add(path);
H A DFilterSet.java34 public FilterSet(Path path, DataManager dataManager, MediaSet baseSet, argument
36 super(path, INVALID_DATA_VERSION);
108 Path path = item.getPath();
109 buf[index] = path;
H A DComboAlbumSet.java31 public ComboAlbumSet(Path path, GalleryApp application, MediaSet[] mediaSets) { argument
32 super(path, nextVersionNumber());
H A DDownloadEntry.java55 public String path; field in class:DownloadEntry
69 .append("_data").append(path)
H A DLocalAlbum.java54 public LocalAlbum(Path path, GalleryApp application, int bucketId, argument
56 super(path, nextVersionNumber());
82 public LocalAlbum(Path path, GalleryApp application, int bucketId, argument
84 this(path, application, bucketId, isImage,
119 private static MediaItem loadOrUpdateItem(Path path, Cursor cursor, argument
121 LocalMediaItem item = (LocalMediaItem) dataManager.peekMediaObject(path);
124 item = new LocalImage(path, app, cursor);
126 item = new LocalVideo(path, app, cursor);
134 // The pids array are sorted by the (path) id.
137 // get the lower and upper bound of (path) i
[all...]
H A DLocalMediaItem.java48 public LocalMediaItem(Path path, long version) { argument
49 super(path, version);
H A DLocalVideo.java80 public LocalVideo(Path path, GalleryApp application, Cursor cursor) { argument
81 super(path, nextVersionNumber());
86 public LocalVideo(Path path, GalleryApp context, int id) { argument
87 super(path, nextVersionNumber());
93 throw new RuntimeException("cannot get cursor for: " + path);
99 throw new RuntimeException("cannot find data for: " + path);
149 LocalVideoRequest(GalleryApp application, Path path, int type, argument
151 super(application, path, type, LocalImage.getTargetSize(type));
/packages/apps/QuickSearchBox/tests/naughty/src/com/android/quicksearchbox/tests/naughty/
H A DCrashingSuggestionProvider.java52 List<String> path = uri.getPathSegments();
54 if (path.size() > 0) {
55 query = path.get(path.size()-1);
H A DHangingSuggestionProvider.java47 List<String> path = uri.getPathSegments();
49 if (path.size() > 0) {
50 query = path.get(path.size()-1);
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DHighlightDrawer.java38 int height, int rotation, Path path,
58 if (mSelectionManager.isPressedPath(path)) {
60 } else if (path == mHighlightItem) {
37 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
H A DSelectionDrawer.java36 int width, int height, int rotation, Path path,
42 int rotation, Path path, int mediaType, boolean isPanorama) {
43 draw(canvas, content, width, height, rotation, path,
35 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
41 draw(GLCanvas canvas, Texture content, int width, int height, int rotation, Path path, int mediaType, boolean isPanorama) argument
H A DSelectionManager.java50 public void onSelectionChange(Path path, boolean selected); argument
124 public void toggle(Path path) { argument
125 if (mClickedSet.contains(path)) {
126 mClickedSet.remove(path);
129 mClickedSet.add(path);
132 if (mListener != null) mListener.onSelectionChange(path, isItemSelected(path));
138 public void setPressedPath(Path path) { argument
139 mPressedPath = path;
142 public boolean isPressedPath(Path path) { argument
[all...]
H A DMenuExecutor.java188 Path path = getSingleSelectedPath();
189 String mimeType = getMimeType(manager.getMediaType(path));
191 .setDataAndType(manager.getContentUri(path), mimeType);
196 Path path = getSingleSelectedPath();
197 int type = manager.getMediaType(path);
200 intent.setDataAndType(manager.getContentUri(path), mimeType);
254 DataManager manager, JobContext jc, int cmd, Path path) {
256 Log.v(TAG, "Execute cmd: " + cmd + " for " + path);
261 manager.delete(path);
264 manager.rotate(path, 9
253 execute( DataManager manager, JobContext jc, int cmd, Path path) argument
[all...]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadDrmHelper.java89 * @param path Path to the file
95 public static String getOriginalMimeType(Context context, String path, String containingMime) { argument
99 if (drmClient.canHandle(path, null)) {
100 result = drmClient.getOriginalMimeType(path);
104 "Can't get original mime type since path is null or empty string.");
/packages/providers/MediaProvider/src/com/android/providers/media/
H A DMtpService.java78 public void onStorageStateChanged(String path, String oldState, String newState) {
80 Log.d(TAG, "onStorageStateChanged " + path + " " + oldState + " -> " + newState);
82 volumeMountedLocked(path);
84 MtpStorage storage = mStorageMap.remove(path);
115 String path = volumes[i].getPath();
116 String state = mStorageManager.getVolumeState(path);
118 volumeMountedLocked(path);
188 private void volumeMountedLocked(String path) { argument
191 if (volume.getPath().equals(path)) {
196 mStorageMap.put(path, storag
[all...]
/packages/apps/Exchange/tests/src/com/android/exchange/provider/
H A DMockProvider.java93 .path(uri.getPath().substring(1)).build();
101 String path = uri.getPath();
102 if (mMockStore.containsKey(path)) {
103 mMockStore.remove(path);
120 Uri newUri = new Uri.Builder().scheme("content").authority(AUTHORITY).path(table)
184 String path = uri.getPath();
188 String prefix = path + "/";
196 ContentValues cv = mMockStore.get(path);
223 mMockStore.put(path + "/" + targetValues.getAsLong(ID_COLUMN), targetValues);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DProfileAwareUriMatcher.java47 // path with the location specified by the value in the map) is in the profile ID-space.
51 // segment path with the location specified by the value in the map) is the special profile
65 public void addURI(String authority, String path, int code) { argument
66 super.addURI(authority, path, code);
69 if (path != null) {
70 String[] tokens = PATH_SPLIT_PATTERN.split(path);
73 // Keep track of whether we've passed a "lookup" token in the path; wildcards after

Completed in 307 milliseconds

1234567