Searched refs:path (Results 51 - 75 of 226) sorted by relevance

12345678910

/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
H A Dmmapped_buffer.h32 static MmappedBufferPtr openBuffer(const char *const path,
36 static MmappedBufferPtr openBuffer(const char *const path, const bool isUpdatable);
/packages/apps/Camera2/src/com/android/camera/
H A DStorage.java102 * The path will be automatically generated according to the title.
124 String path = generateFilepath(title, mimeType);
125 long fileLength = writeFile(path, data, exif);
128 path, width, height, mimeType);
150 Location location, int orientation, long jpegLength, String path, int width, int height,
154 getContentValuesForData(title, date, location, orientation, jpegLength, path, width,
174 String path, int width, int height, String mimeType) {
176 File file = new File(path);
187 values.put(ImageColumns.DATA, path);
272 String path
149 addImageToMediaStore(ContentResolver resolver, String title, long date, Location location, int orientation, long jpegLength, String path, int width, int height, String mimeType) argument
172 getContentValuesForData(String title, long date, Location location, int orientation, long jpegLength, String path, int width, int height, String mimeType) argument
303 writeFile(String path, byte[] jpeg, ExifInterface exif) argument
353 writeFile(String path, byte[] data) argument
395 updateImage(Uri imageUri, ContentResolver resolver, String title, long date, Location location, int orientation, int jpegLength, String path, int width, int height, String mimeType) argument
[all...]
H A DMediaSaverImpl.java110 public void addVideo(String path, ContentValues values, OnMediaSavedListener l) { argument
113 new VideoSaveTask(path, values, l, mContentResolver).execute();
205 private String path; field in class:MediaSaverImpl.VideoSaveTask
210 public VideoSaveTask(String path, ContentValues values, OnMediaSavedListener l, argument
212 this.path = path;
230 if (new File(path).renameTo(finalFile)) {
231 path = finalName;
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DUriSource.java44 public MediaObject createMediaObject(Path path) { argument
45 String segment[] = path.split();
47 throw new RuntimeException("bad path: " + path);
52 return new UriImage(mApplication, path, Uri.parse(uri), type);
H A DLocalAlbumSet.java37 // The path should be "/local/image", "local/video" or "/local/all"
61 public LocalAlbumSet(Path path, GalleryApp application) { argument
62 super(path, nextVersionNumber());
65 mType = getTypeFromPath(path);
71 private static int getTypeFromPath(Path path) { argument
72 String name[] = path.split();
74 throw new IllegalArgumentException(path.toString());
139 Path path = parent.getChild(id);
140 MediaObject object = manager.peekMediaObject(path);
144 return new LocalAlbum(path, mApplicatio
[all...]
H A DLocalSource.java83 public MediaObject createMediaObject(Path path) { argument
85 switch (mMatcher.match(path)) {
89 return new LocalAlbumSet(path, mApplication);
91 return new LocalAlbum(path, app, mMatcher.getIntVar(0), true);
93 return new LocalAlbum(path, app, mMatcher.getIntVar(0), false);
103 path, comp, new MediaSet[] {imageSet, videoSet}, bucketId);
106 return new LocalImage(path, mApplication, mMatcher.getIntVar(0));
108 return new LocalVideo(path, mApplication, mMatcher.getIntVar(0));
110 throw new RuntimeException("bad path: " + path);
[all...]
H A DMediaObject.java79 public MediaObject(Path path, long version) { argument
80 path.setObject(this);
81 mPath = path;
111 Log.e(TAG, "The object was created from path: " + getPath());
H A DTagClustering.java48 Path path = item.getPath();
52 untagged.add(path);
62 list.add(path);
H A DFilterTypeSet.java32 public FilterTypeSet(Path path, DataManager dataManager, MediaSet baseSet, argument
34 super(path, INVALID_DATA_VERSION);
107 Path path = item.getPath();
108 buf[index] = path;
H A DSecureAlbum.java56 public SecureAlbum(Path path, GalleryApp application, MediaItem unlock) { argument
57 super(path, nextVersionNumber());
77 Path path = pathBase.getChild(id);
78 if (!mAllItems.contains(path)) {
79 mAllItems.add(path);
177 Path path = mAllItems.get(i);
179 int id = Integer.parseInt(path.getSuffix());
181 if (videoIds.contains(id)) mExistingItems.add(path);
183 if (imageIds.contains(id)) mExistingItems.add(path);
H A DLocalAlbum.java61 public LocalAlbum(Path path, GalleryApp application, int bucketId, argument
63 super(path, nextVersionNumber());
89 public LocalAlbum(Path path, GalleryApp application, int bucketId, argument
91 this(path, application, bucketId, isImage,
144 private static MediaItem loadOrUpdateItem(Path path, Cursor cursor, argument
147 LocalMediaItem item = (LocalMediaItem) dataManager.peekMediaObject(path);
150 item = new LocalImage(path, app, cursor);
152 item = new LocalVideo(path, app, cursor);
161 // The pids array are sorted by the (path) id.
164 // get the lower and upper bound of (path) i
[all...]
H A DComboAlbumSet.java32 public ComboAlbumSet(Path path, GalleryApp application, MediaSet[] mediaSets) { argument
33 super(path, nextVersionNumber());
H A DDownloadEntry.java55 public String path; field in class:DownloadEntry
69 .append("_data").append(path)
H A DLocalVideo.java75 public LocalVideo(Path path, GalleryApp application, Cursor cursor) { argument
76 super(path, nextVersionNumber());
81 public LocalVideo(Path path, GalleryApp context, int id) { argument
82 super(path, nextVersionNumber());
88 throw new RuntimeException("cannot get cursor for: " + path);
94 throw new RuntimeException("cannot find data for: " + path);
162 LocalVideoRequest(GalleryApp application, Path path, long timeModified, argument
164 super(application, path, timeModified, type,
/packages/apps/Gallery2/src/com/android/photos/shims/
H A DLoaderCompatShim.java29 void deleteItemWithPath(Object path); argument
/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/Settings/src/com/android/settings/
H A DManualDisplayActivity.java50 final String path = SystemProperties.get(PROPERTY_MANUAL_PATH, DEFAULT_MANUAL_PATH);
51 if (TextUtils.isEmpty(path)) {
57 final File file = new File(path);
59 Log.e(TAG, "Manual file " + path + " does not exist");
/packages/apps/Messaging/src/com/android/messaging/mmslib/util/
H A DDownloadDrmHelper.java90 * @param path Path to the file
96 public static String getOriginalMimeType(Context context, String path, String containingMime) { argument
100 if (drmClient.canHandle(path, null)) {
101 result = drmClient.getOriginalMimeType(path);
105 "Can't get original mime type since path is null or empty string.");
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/
H A Ddictionary_structure_with_buffer_policy_factory.h33 newPolicyForExistingDictFile(const char *const path, const int bufOffset,
50 newPolicyForDirectoryDict(const char *const path, const bool isUpdatable);
58 newPolicyForFileDict(const char *const path, const int bufOffset, const int size);
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DPhotoFallbackEffect.java39 public Path path; field in class:PhotoFallbackEffect.Entry
44 public Entry(Path path, Rect source, RawTexture texture) { argument
45 this.path = path;
53 public int getItemIndex(Path path); argument
68 public void addEntry(Path path, Rect rect, RawTexture texture) { argument
69 mList.add(new Entry(path, rect, texture));
72 public Entry getEntry(Path path) { argument
75 if (entry.path == path) retur
[all...]
/packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/
H A DTestProvider.java96 .path(uri.getPath().substring(1)).build();
104 String path = uri.getPath();
105 if (mMockStore.containsKey(path)) {
106 mMockStore.remove(path);
123 Uri newUri = new Uri.Builder().scheme("content").authority(AUTHORITY).path(table)
187 String path = uri.getPath();
191 String prefix = path + "/";
199 ContentValues cv = mMockStore.get(path);
228 mMockStore.put(path + "/" + targetValues.getAsLong(ID_COLUMN), targetValues);
231 mMockStore.put(path, targetValue
[all...]
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/animation/
H A DTranslationAnimationCreator.java52 Path path = new Path();
53 path.moveTo(startX, 0);
54 path.lineTo(endX, 0);
56 ObjectAnimator.ofFloat(view, View.TRANSLATION_X, View.TRANSLATION_Y, path);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/
H A DDumpFileProvider.java67 /** @return the path part of a URI, without the beginning "/". */
69 final String path = uri.getPath();
70 return path.startsWith("/") ? path.substring(1) : path;
107 // Just return the requested path as the display name. We don't care if the file
/packages/apps/Camera2/src/com/android/camera/data/
H A DVideoRotationMetadataLoader.java35 final String path = data.getData().getFilePath();
38 retriever.setDataSource(path);

Completed in 863 milliseconds

12345678910