Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 242) sorted by relevance

12345678910

/packages/apps/UnifiedEmail/src/org/apache/commons/io/
DFileSystemUtils.java137 public static long freeSpace(String path) throws IOException { in freeSpace() argument
138 return INSTANCE.freeSpaceOS(path, OS, false); in freeSpace()
166 public static long freeSpaceKb(String path) throws IOException { in freeSpaceKb() argument
167 return INSTANCE.freeSpaceOS(path, OS, true); in freeSpaceKb()
189 long freeSpaceOS(String path, int os, boolean kb) throws IOException { in freeSpaceOS() argument
190 if (path == null) { in freeSpaceOS()
195 return (kb ? freeSpaceWindows(path) / 1024 : freeSpaceWindows(path)); in freeSpaceOS()
197 return freeSpaceUnix(path, kb, false); in freeSpaceOS()
199 return freeSpaceUnix(path, kb, true); in freeSpaceOS()
216 long freeSpaceWindows(String path) throws IOException { in freeSpaceWindows() argument
[all …]
DFileCleaningTracker.java101 public void track(String path, Object marker) { in track() argument
102 track(path, marker, (FileDeleteStrategy) null); in track()
115 public void track(String path, Object marker, FileDeleteStrategy deleteStrategy) { in track() argument
116 if (path == null) { in track()
119 addTracker(path, marker, deleteStrategy); in track()
129 …private synchronized void addTracker(String path, Object marker, FileDeleteStrategy deleteStrategy… in addTracker() argument
138 trackers.add(new Tracker(path, deleteStrategy, marker, q)); in addTracker()
228 private final String path; field in FileCleaningTracker.Tracker
242 …Tracker(String path, FileDeleteStrategy deleteStrategy, Object marker, ReferenceQueue<Object> queu… in Tracker() argument
244 this.path = path; in Tracker()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DDataManager.java162 public MediaObject peekMediaObject(Path path) { in peekMediaObject() argument
163 return path.getObject(); in peekMediaObject()
166 public MediaObject getMediaObject(Path path) { in getMediaObject() argument
168 MediaObject obj = path.getObject(); in getMediaObject()
171 MediaSource source = mSourceMap.get(path.getPrefix()); in getMediaObject()
173 Log.w(TAG, "cannot find media source for path: " + path); in getMediaObject()
178 MediaObject object = source.createMediaObject(path); in getMediaObject()
180 Log.w(TAG, "cannot create media object: " + path); in getMediaObject()
184 Log.w(TAG, "exception in creating media object: " + path, t); in getMediaObject()
194 public MediaSet getMediaSet(Path path) { in getMediaSet() argument
[all …]
DFilterDeleteSet.java40 Path path; field in FilterDeleteSet.Request
42 public Request(int type, Path path, int indexHint) { in Request() argument
44 this.path = path; in Request()
50 Path path; field in FilterDeleteSet.Deletion
52 public Deletion(Path path, int index) { in Deletion() argument
53 this.path = path; in Deletion()
67 public FilterDeleteSet(Path path, MediaSet baseSet) { in FilterDeleteSet() argument
68 super(path, INVALID_DATA_VERSION); in FilterDeleteSet()
160 if (mCurrent.get(j).path == r.path) break; in reload()
163 mCurrent.add(new Deletion(r.path, r.indexHint)); in reload()
[all …]
DMediaSource.java41 public abstract MediaObject createMediaObject(Path path); in createMediaObject() argument
62 public PathId(Path path, int id) { in PathId() argument
63 this.path = path; in PathId()
66 public Path path; field in MediaSource.PathId
82 obj = pid.path.getObject(); in mapMediaItems()
85 obj = createMediaObject(pid.path); in mapMediaItems()
87 Log.w(TAG, "cannot create media object: " + pid.path, th); in mapMediaItems()
DSecureSource.java37 public static boolean isSecurePath(String path) { in isSecurePath() argument
38 return (SECURE_ALBUM == mMatcher.match(Path.fromString(path))); in isSecurePath()
42 public MediaObject createMediaObject(Path path) { in createMediaObject() argument
43 switch (mMatcher.match(path)) { in createMediaObject()
48 return new SecureAlbum(path, mApplication, unlock); in createMediaObject()
51 return new UnlockImage(path, mApplication); in createMediaObject()
53 throw new RuntimeException("bad path: " + path); in createMediaObject()
DLocalSource.java83 public MediaObject createMediaObject(Path path) { in createMediaObject() argument
85 switch (mMatcher.match(path)) { in createMediaObject()
89 return new LocalAlbumSet(path, mApplication); in createMediaObject()
91 return new LocalAlbum(path, app, mMatcher.getIntVar(0), true); in createMediaObject()
93 return new LocalAlbum(path, app, mMatcher.getIntVar(0), false); in createMediaObject()
103 path, comp, new MediaSet[] {imageSet, videoSet}, bucketId); in createMediaObject()
106 return new LocalImage(path, mApplication, mMatcher.getIntVar(0)); in createMediaObject()
108 return new LocalVideo(path, mApplication, mMatcher.getIntVar(0)); in createMediaObject()
110 throw new RuntimeException("bad path: " + path); in createMediaObject()
200 Path parent = pid.path.getParent(); in mapMediaItems()
[all …]
DLocalAlbumSet.java61 public LocalAlbumSet(Path path, GalleryApp application) { in LocalAlbumSet() argument
62 super(path, nextVersionNumber()); in LocalAlbumSet()
65 mType = getTypeFromPath(path); in LocalAlbumSet()
71 private static int getTypeFromPath(Path path) { in getTypeFromPath() argument
72 String name[] = path.split(); in getTypeFromPath()
74 throw new IllegalArgumentException(path.toString()); in getTypeFromPath()
139 Path path = parent.getChild(id); in getLocalAlbum() local
140 MediaObject object = manager.peekMediaObject(path); in getLocalAlbum()
144 return new LocalAlbum(path, mApplication, id, true, name); in getLocalAlbum()
146 return new LocalAlbum(path, mApplication, id, false, name); in getLocalAlbum()
[all …]
DImageCacheService.java58 public boolean getImageData(Path path, long timeModified, int type, BytesBuffer buffer) { in getImageData() argument
59 byte[] key = makeKey(path, timeModified, type); in getImageData()
80 public void putImageData(Path path, long timeModified, int type, byte[] value) { in putImageData() argument
81 byte[] key = makeKey(path, timeModified, type); in putImageData()
95 public void clearImageData(Path path, long timeModified, int type) { in clearImageData() argument
96 byte[] key = makeKey(path, timeModified, type); in clearImageData()
107 private static byte[] makeKey(Path path, long timeModified, int type) { in makeKey() argument
108 return GalleryUtils.getBytes(path.toString() + "+" + timeModified + "+" + type); in makeKey()
DFilterSource.java61 public MediaObject createMediaObject(Path path) { in createMediaObject() argument
62 int matchType = mMatcher.match(path); in createMediaObject()
69 return new FilterTypeSet(path, dataManager, sets[0], mediaType); in createMediaObject()
74 return new FilterDeleteSet(path, sets[0]); in createMediaObject()
79 return new FilterEmptyPromptSet(path, sets[0], mEmptyItem); in createMediaObject()
85 return new SingleItemAlbum(path, mCameraShortcutItem); in createMediaObject()
91 throw new RuntimeException("bad path: " + path); in createMediaObject()
DComboSource.java37 public MediaObject createMediaObject(Path path) { in createMediaObject() argument
38 String[] segments = path.split(); in createMediaObject()
40 throw new RuntimeException("bad path: " + path); in createMediaObject()
44 switch (mMatcher.match(path)) { in createMediaObject()
46 return new ComboAlbumSet(path, mApplication, in createMediaObject()
50 return new ComboAlbum(path, in createMediaObject()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaScannerReceiver.java46 String path = uri.getPath(); in onReceive() local
51 path = new File(path).getCanonicalPath(); in onReceive()
53 Log.e(TAG, "couldn't canonicalize " + path); in onReceive()
56 if (path.startsWith(legacyPath)) { in onReceive()
57 path = externalStoragePath + path.substring(legacyPath.length()); in onReceive()
60 Log.d(TAG, "action: " + action + " path: " + path); in onReceive()
65 path != null && path.startsWith(externalStoragePath + "/")) { in onReceive()
66 scanFile(context, path); in onReceive()
79 private void scanFile(Context context, String path) { in scanFile() argument
81 args.putString("filepath", path); in scanFile()
DMtpService.java51 final String path = primary.getPath(); in addStorageDevicesLocked() local
52 if (path != null) { in addStorageDevicesLocked()
53 String state = mStorageManager.getVolumeState(path); in addStorageDevicesLocked()
55 addStorageLocked(mVolumeMap.get(path)); in addStorageDevicesLocked()
67 public void onStorageStateChanged(String path, String oldState, String newState) {
69 Log.d(TAG, "onStorageStateChanged " + path + " " + oldState + " -> " + newState);
71 volumeMountedLocked(path);
73 StorageVolume volume = mVolumeMap.remove(path);
102 String path = volumes[i].getPath(); in onCreate() local
103 String state = mStorageManager.getVolumeState(path); in onCreate()
[all …]
/packages/apps/Camera2/src/com/android/camera/
DStorage.java124 String path = generateFilepath(title, mimeType); in addImage() local
125 long fileLength = writeFile(path, data, exif); in addImage()
128 path, width, height, mimeType); in addImage()
150 Location location, int orientation, long jpegLength, String path, int width, int height, in addImageToMediaStore() argument
154 getContentValuesForData(title, date, location, orientation, jpegLength, path, width, in addImageToMediaStore()
174 String path, int width, int height, String mimeType) { in getContentValuesForData() argument
176 File file = new File(path); in getContentValuesForData()
187 values.put(ImageColumns.DATA, path); in getContentValuesForData()
272 String path = generateFilepath(title, mimeType); in updateImage() local
273 writeFile(path, jpeg, exif); in updateImage()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/
Ddictionary_structure_with_buffer_policy_factory.cpp40 const char *const path, const int bufOffset, const int size, in newPolicyForExistingDictFile() argument
42 if (FileUtils::existsDir(path)) { in newPolicyForExistingDictFile()
44 return newPolicyForDirectoryDict(path, isUpdatable); in newPolicyForExistingDictFile()
47 AKLOGE("One file dictionaries don't support updating. path: %s", path); in newPolicyForExistingDictFile()
51 return newPolicyForFileDict(path, bufOffset, size); in newPolicyForExistingDictFile()
102 const char *const path, const bool isUpdatable) { in newPolicyForDirectoryDict() argument
105 getHeaderFilePathInDictDir(path, headerFilePathBufSize, headerFilePath); in newPolicyForDirectoryDict()
119 AKLOGE("Given path is a directory but the format is version 2xx. path: %s", path); in newPolicyForDirectoryDict()
135 AKLOGE("DICT: dictionary format is unknown, bad magic number. path: %s", path); in newPolicyForDirectoryDict()
170 const char *const path, const int bufOffset, const int size) { in newPolicyForFileDict() argument
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/
DVCardService.java75 public CustomMediaScannerConnectionClient(String path) { in CustomMediaScannerConnectionClient() argument
77 mPath = path; in CustomMediaScannerConnectionClient()
91 public void onScanCompleted(String path, Uri uri) { in onScanCompleted() argument
92 if (DEBUG) { Log.d(LOG_TAG, "scan completed: " + path); } in onScanCompleted()
193 final String path = request.destUri.getEncodedPath(); in handleExportRequest() local
194 if (DEBUG) Log.d(LOG_TAG, "Reserve the path " + path); in handleExportRequest()
195 if (!mReservedDestination.add(path)) { in handleExportRequest()
198 path)); in handleExportRequest()
250 final String path = in handleCancelRequest() local
253 String.format("Cancel reservation for the path %s if appropriate", path)); in handleCancelRequest()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropDrawingUtils.java132 Path path = new Path(); in drawWallpaperSelectionFrame() local
133 path.moveTo(r1.left, r1.top); in drawWallpaperSelectionFrame()
134 path.lineTo(r1.right, r1.top); in drawWallpaperSelectionFrame()
135 path.moveTo(r1.left, r1.top); in drawWallpaperSelectionFrame()
136 path.lineTo(r1.left, r1.bottom); in drawWallpaperSelectionFrame()
137 path.moveTo(r1.left, r1.bottom); in drawWallpaperSelectionFrame()
138 path.lineTo(r1.right, r1.bottom); in drawWallpaperSelectionFrame()
139 path.moveTo(r1.right, r1.top); in drawWallpaperSelectionFrame()
140 path.lineTo(r1.right, r1.bottom); in drawWallpaperSelectionFrame()
141 path.moveTo(r2.left, r2.top); in drawWallpaperSelectionFrame()
[all …]
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/
DJarUtils.java42 final String path = resUrl.getPath(); in getJarFile() local
43 if (!path.startsWith("file:")) { in getJarFile()
44 throw new RuntimeException("Unknown jar path: " + path); in getJarFile()
46 final String jarPath = path.substring("file:".length(), path.indexOf('!')); in getJarFile()
68 final String path = entry.getName(); in getEntryNameListing() local
69 final int pos = path.lastIndexOf('/'); in getEntryNameListing()
70 final String dirName = (pos >= 0) ? path.substring(0, pos) : ""; in getEntryNameListing()
71 final String name = (pos >= 0) ? path.substring(pos + 1) : path; in getEntryNameListing()
73 result.add(path); in getEntryNameListing()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadScanner.java52 public final String path; field in DownloadScanner.ScanRequest
56 public ScanRequest(long id, String path, String mimeType) { in ScanRequest() argument
58 this.path = path; in ScanRequest()
64 conn.scanFile(path, mimeType); in exec()
82 public static void requestScanBlocking(Context context, long id, String path, String mimeType) { in requestScanBlocking() argument
85 scanner.requestScan(new ScanRequest(id, path, mimeType)); in requestScanBlocking()
123 if (LOGV) Log.v(TAG, "requestScan() for " + req.path); in requestScan()
125 mPending.put(req.path, req); in requestScan()
149 public void onScanCompleted(String path, Uri uri) { in onScanCompleted() argument
152 req = mPending.remove(path); in onScanCompleted()
[all …]
/packages/apps/PhoneCommon/src/com/android/phone/common/compat/
DPathInterpolatorCompat.java43 public PathInterpolatorBase(Path path) { in PathInterpolatorBase() argument
44 final PathMeasure pathMeasure = new PathMeasure(path, false /* forceClosed */); in PathInterpolatorBase()
106 final Path path = new Path(); in createQuad() local
107 path.moveTo(0.0f, 0.0f); in createQuad()
108 path.quadTo(controlX, controlY, 1.0f, 1.0f); in createQuad()
109 return path; in createQuad()
114 final Path path = new Path(); in createCubic() local
115 path.moveTo(0.0f, 0.0f); in createCubic()
116 path.cubicTo(controlX1, controlY1, controlX2, controlY2, 1.0f, 1.0f); in createCubic()
117 return path; in createCubic()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/setup/
DSetupStartIndicatorView.java103 final Path path = mIndicatorPath; in onDraw() local
104 path.rewind(); in onDraw()
107 path.moveTo(width, 0.0f); in onDraw()
108 path.lineTo(0.0f, halfHeight); in onDraw()
109 path.lineTo(width, height); in onDraw()
112 path.moveTo(0.0f, 0.0f); in onDraw()
113 path.lineTo(width, halfHeight); in onDraw()
114 path.lineTo(0.0f, height); in onDraw()
116 path.close(); in onDraw()
120 canvas.drawPath(path, mIndicatorPaint); in onDraw()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DFileImageRequestDescriptor.java27 public final String path; field in FileImageRequestDescriptor
35 public FileImageRequestDescriptor(final String path, final int desiredWidth, in FileImageRequestDescriptor() argument
38 this(path, desiredWidth, desiredHeight, FileImageRequest.UNSPECIFIED_SIZE, in FileImageRequestDescriptor()
46 public FileImageRequestDescriptor(final String path, final int desiredWidth, in FileImageRequestDescriptor() argument
49 super(UriUtil.getUriForResourceFile(path), desiredWidth, desiredHeight, sourceWidth, in FileImageRequestDescriptor()
53 this.path = path; in FileImageRequestDescriptor()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DVoicemailUriType.java30 private final String path; field in VoicemailUriType
32 private VoicemailUriType(String path) { in VoicemailUriType() argument
33 this.path = path; in VoicemailUriType()
37 public String path() { in path() method in VoicemailUriType
38 return path; in path()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPhotoFallbackEffect.java39 public Path path; field in PhotoFallbackEffect.Entry
44 public Entry(Path path, Rect source, RawTexture texture) { in Entry() argument
45 this.path = path; in Entry()
53 public int getItemIndex(Path path); in getItemIndex() argument
68 public void addEntry(Path path, Rect rect, RawTexture texture) { in addEntry() argument
69 mList.add(new Entry(path, rect, texture)); in addEntry()
72 public Entry getEntry(Path path) { in getEntry() argument
75 if (entry.path == path) return entry; in getEntry()
166 entry.index = mPositionProvider.getItemIndex(entry.path); in setPositionProvider()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DCallLogPullRequest.java45 public CallLogPullRequest(Context context, String path) { in CallLogPullRequest() argument
47 this.path = path; in CallLogPullRequest()
62 if (path.equals(BluetoothPbapClient.ICH_PATH)) { in onPullComplete()
64 } else if (path.equals(BluetoothPbapClient.OCH_PATH)) { in onPullComplete()
66 } else if (path.equals(BluetoothPbapClient.MCH_PATH)) { in onPullComplete()
69 Log.w(TAG, "Unknown path type:" + path); in onPullComplete()
106 Log.d(TAG, "Failed to update call log for path=" + path, e); in onPullComplete()

12345678910