Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 235) 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 …]
DFilenameUtils.java423 public static String separatorsToUnix(String path) { in separatorsToUnix() argument
424 if (path == null || path.indexOf(WINDOWS_SEPARATOR) == -1) { in separatorsToUnix()
425 return path; in separatorsToUnix()
427 return path.replace(WINDOWS_SEPARATOR, UNIX_SEPARATOR); in separatorsToUnix()
436 public static String separatorsToWindows(String path) { in separatorsToWindows() argument
437 if (path == null || path.indexOf(UNIX_SEPARATOR) == -1) { in separatorsToWindows()
438 return path; in separatorsToWindows()
440 return path.replace(UNIX_SEPARATOR, WINDOWS_SEPARATOR); in separatorsToWindows()
449 public static String separatorsToSystem(String path) { in separatorsToSystem() argument
450 if (path == null) { in separatorsToSystem()
[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 …]
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 …]
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java676 mPendingThumbs.remove(d.path); in onCreate()
2025 String path = parentFile.toString().toLowerCase(); in computeBucketValues() local
2031 values.put(ImageColumns.BUCKET_ID, path.hashCode()); in computeBucketValues()
2079 String path = c.getString(1); in waitForThumbnailReady() local
2082 MediaThumbRequest req = requestMediaThumbnail(path, origUri, in waitForThumbnailReady()
2948 private long insertDirectory(DatabaseHelper helper, SQLiteDatabase db, String path) { in insertDirectory() argument
2949 if (LOCAL_LOGV) Log.v(TAG, "inserting directory " + path); in insertDirectory()
2952 values.put(FileColumns.DATA, path); in insertDirectory()
2953 values.put(FileColumns.PARENT, getParent(helper, db, path)); in insertDirectory()
2954 values.put(FileColumns.STORAGE_ID, getStorageId(path)); in insertDirectory()
[all …]
DMtpService.java55 final String path = primary.getPath(); in addStorageDevicesLocked() local
56 if (path != null) { in addStorageDevicesLocked()
57 String state = mStorageManager.getVolumeState(path); in addStorageDevicesLocked()
59 addStorageLocked(mVolumeMap.get(path)); in addStorageDevicesLocked()
97 public void onStorageStateChanged(String path, String oldState, String newState) {
99 Log.d(TAG, "onStorageStateChanged " + path + " " + oldState + " -> " + newState);
101 volumeMountedLocked(path);
103 StorageVolume volume = mVolumeMap.remove(path);
133 String path = volumes[i].getPath(); in onCreate() local
134 String state = mStorageManager.getVolumeState(path); in onCreate()
[all …]
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()
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/
DVCardService.java80 public CustomMediaScannerConnectionClient(String path) { in CustomMediaScannerConnectionClient() argument
82 mPath = path; in CustomMediaScannerConnectionClient()
96 public void onScanCompleted(String path, Uri uri) { in onScanCompleted() argument
97 if (DEBUG) { Log.d(LOG_TAG, "scan completed: " + path); } in onScanCompleted()
236 final String path = request.destUri.getEncodedPath(); in handleExportRequest() local
237 if (DEBUG) Log.d(LOG_TAG, "Reserve the path " + path); in handleExportRequest()
238 if (!mReservedDestination.add(path)) { in handleExportRequest()
241 path)); in handleExportRequest()
293 final String path = in handleCancelRequest() local
296 String.format("Cancel reservation for the path %s if appropriate", path)); in handleCancelRequest()
[all …]
/packages/apps/Camera2/src/com/android/camera/
DStorage.java113 String path = generateFilepath(title); in addImage() local
114 long fileLength = writeFile(path, data, exif); in addImage()
117 path, width, height, mimeType); in addImage()
139 Location location, int orientation, long jpegLength, String path, int width, int height, in addImageToMediaStore() argument
143 getContentValuesForData(title, date, location, orientation, jpegLength, path, width, in addImageToMediaStore()
163 String path, int width, int height, String mimeType) { in getContentValuesForData() argument
165 File file = new File(path); in getContentValuesForData()
176 values.put(ImageColumns.DATA, path); in getContentValuesForData()
241 String path = generateFilepath(title); in updateImage() local
242 writeFile(path, jpeg, exif); in updateImage()
[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/apps/Browser/tools/
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.isdir(dir_path):
238 self.generateXmlFromTemplate(os.path.join(sys.path[0], 'search_engines.template.xml'),
239 os.path.join(dir_path, 'donottranslate-search_engines.xml'),
252 dir_path = os.path.dirname(out_path)
253 if not os.path.exists(dir_path):
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/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()
118 AKLOGE("Given path is a directory but the format is version 2. path: %s", path); in newPolicyForDirectoryDict()
134 AKLOGE("DICT: dictionary format is unknown, bad magic number. path: %s", path); in newPolicyForDirectoryDict()
169 const char *const path, const int bufOffset, const int size) { in newPolicyForFileDict() argument
[all …]
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsProvider.java432 String path = getContext().getDir(PARTS_DIR_NAME, 0).getPath() in insert() local
438 path = DownloadDrmHelper.modifyDrmFwLockFileExtension(path); in insert()
441 finalValues.put(Part._DATA, path); in insert()
443 File partFile = new File(path); in insert()
448 "Unable to create new partFile: " + path); in insert()
453 int result = FileUtils.setPermissions(path, 0666, -1, -1); in insert()
460 "Unable to create new partFile: " + path); in insert()
498 String path = getContext().getDir(PARTS_DIR_NAME, 0).getPath() in insert() local
501 finalValues.put("_data", path); in insert()
503 File partFile = new File(path); in insert()
[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/apps/Gallery2/src/com/android/gallery3d/app/
DPhotoDataAdapter.java295 private void updateScreenNail(Path path, Future<ScreenNail> future) { in updateScreenNail() argument
296 ImageEntry entry = mImageCache.get(path); in updateScreenNail()
320 if (path == getPath(mCurrentIndex + i)) { in updateScreenNail()
330 private void updateFullImage(Path path, Future<BitmapRegionDecoder> future) { in updateFullImage() argument
331 ImageEntry entry = mImageCache.get(path); in updateFullImage()
341 if (path == getPath(mCurrentIndex)) { in updateFullImage()
576 public void setCurrentPhoto(Path path, int indexHint) { in setCurrentPhoto() argument
577 if (mItemPath == path) return; in setCurrentPhoto()
578 mItemPath = path; in setCurrentPhoto()
586 if (item != null && item.getPath() != path) { in setCurrentPhoto()
[all …]
/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/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/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DStorageMeasurement.java386 final String path = mVolume != null ? mVolume.getPath() in measureApproximateStorage() local
389 final long[] stats = imcs.getFileSystemStats(path); in measureApproximateStorage()
424 final File path = currentEnv.getExternalStoragePublicDirectory(type); in measureExactStorage() local
425 final long size = getDirectorySize(imcs, path); in measureExactStorage()
432 final File path = mIsInternal ? currentEnv.getExternalStorageDirectory() in measureExactStorage() local
434 details.miscSize = measureMisc(imcs, path); in measureExactStorage()
468 private static long getDirectorySize(IMediaContainerService imcs, File path) { in getDirectorySize() argument
470 final long size = imcs.calculateDirectorySize(path.toString()); in getDirectorySize()
471 Log.d(TAG, "getDirectorySize(" + path + ") returned " + size); in getDirectorySize()
474 Log.w(TAG, "Could not read memory from default container service for " + path, e); in getDirectorySize()
[all …]
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageMeasurement.java380 final String path = mVolume != null ? mVolume.getPath() in measureApproximateStorage() local
383 final long[] stats = imcs.getFileSystemStats(path); in measureApproximateStorage()
418 final File path = currentEnv.getExternalStoragePublicDirectory(type); in measureExactStorage() local
419 final long size = getDirectorySize(imcs, path); in measureExactStorage()
426 final File path = mIsInternal ? currentEnv.getExternalStorageDirectory() in measureExactStorage() local
428 details.miscSize = measureMisc(imcs, path); in measureExactStorage()
462 private static long getDirectorySize(IMediaContainerService imcs, File path) { in getDirectorySize() argument
464 final long size = imcs.calculateDirectorySize(path.toString()); in getDirectorySize()
465 Log.d(TAG, "getDirectorySize(" + path + ") returned " + size); in getDirectorySize()
468 Log.w(TAG, "Could not read memory from default container service for " + path, e); in getDirectorySize()
[all …]
/packages/experimental/procstatlog/
Dprocstatreport.py160 files_dir = "%s_files" % os.path.splitext(filename)[0]
161 files_url = os.path.basename(files_dir)
162 if not os.path.isdir(files_dir): os.makedirs(files_dir)
197 os.path.join(files_dir, "total_cpu.csv"))
239 os.path.join(files_dir, "cpu_speed.csv"))
270 os.path.join(files_dir, "context_switches.csv"))
335 os.path.join(files_dir, "total_faults.csv"))
366 os.path.join(files_dir, "binder_calls.csv"))
418 os.path.join(files_dir, "net%d.csv" % num))
471 os.path.join(files_dir, "yaffs%d.csv" % num))
[all …]
/packages/apps/Camera2/src/com/android/camera/data/
DLocalMediaData.java85 long dateTakenInMilliSeconds, long dateModifiedInSeconds, String path, in LocalMediaData() argument
93 mPath = path; in LocalMediaData()
377 String path, int orientation, int width, int height, in PhotoData() argument
380 path, width, height, sizeInBytes, latitude, longitude); in PhotoData()
396 String path = c.getString(COL_DATA); in buildFromCursor() local
402 + path + ":" + width + "x" + height); in buildFromCursor()
405 BitmapFactory.decodeFile(path, opts); in buildFromCursor()
410 Log.w(TAG, "Dimension decode failed for " + path); in buildFromCursor()
411 Bitmap b = BitmapFactory.decodeFile(path); in buildFromCursor()
414 + " Decoding " + path + "failed."); in buildFromCursor()
[all …]
/packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/
DTestProvider.java96 .path(uri.getPath().substring(1)).build(); in uri()
104 String path = uri.getPath(); in delete() local
105 if (mMockStore.containsKey(path)) { in delete()
106 mMockStore.remove(path); in delete()
123 Uri newUri = new Uri.Builder().scheme("content").authority(AUTHORITY).path(table) in insert()
187 String path = uri.getPath(); in update() local
191 String prefix = path + "/"; in update()
199 ContentValues cv = mMockStore.get(path); in update()
228 mMockStore.put(path + "/" + targetValues.getAsLong(ID_COLUMN), targetValues); in update()
231 mMockStore.put(path, targetValues); in update()

12345678910