/packages/apps/Email/src/org/apache/commons/io/ |
D | FileSystemUtils.java | 136 public static long freeSpace(String path) throws IOException { in freeSpace() argument 137 return INSTANCE.freeSpaceOS(path, OS, false); in freeSpace() 165 public static long freeSpaceKb(String path) throws IOException { in freeSpaceKb() argument 166 return INSTANCE.freeSpaceOS(path, OS, true); in freeSpaceKb() 188 long freeSpaceOS(String path, int os, boolean kb) throws IOException { in freeSpaceOS() argument 189 if (path == null) { in freeSpaceOS() 194 return (kb ? freeSpaceWindows(path) / 1024 : freeSpaceWindows(path)); in freeSpaceOS() 196 return freeSpaceUnix(path, kb, false); in freeSpaceOS() 198 return freeSpaceUnix(path, kb, true); in freeSpaceOS() 215 long freeSpaceWindows(String path) throws IOException { in freeSpaceWindows() argument [all …]
|
D | FileCleaningTracker.java | 101 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 …]
|
D | FilenameUtils.java | 423 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/ |
D | DataManager.java | 162 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 …]
|
D | FilterDeleteSet.java | 40 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 …]
|
D | LocalSource.java | 83 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 …]
|
D | LocalAlbumSet.java | 61 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 …]
|
D | LocalAlbum.java | 61 public LocalAlbum(Path path, GalleryApp application, int bucketId, in LocalAlbum() argument 63 super(path, nextVersionNumber()); in LocalAlbum() 89 public LocalAlbum(Path path, GalleryApp application, int bucketId, in LocalAlbum() argument 91 this(path, application, bucketId, isImage, in LocalAlbum() 144 private static MediaItem loadOrUpdateItem(Path path, Cursor cursor, in loadOrUpdateItem() argument 147 LocalMediaItem item = (LocalMediaItem) dataManager.peekMediaObject(path); in loadOrUpdateItem() 150 item = new LocalImage(path, app, cursor); in loadOrUpdateItem() 152 item = new LocalVideo(path, app, cursor); in loadOrUpdateItem() 314 String path = GalleryUtils.searchDirForPath(extStorage, bucketId); in getRelativePath() local 315 if (path == null) { in getRelativePath() [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaProvider.java | 635 mPendingThumbs.remove(d.path); in onCreate() 1956 String path = parentFile.toString().toLowerCase(); in computeBucketValues() local 1962 values.put(ImageColumns.BUCKET_ID, path.hashCode()); in computeBucketValues() 2012 String path = c.getString(1); in waitForThumbnailReady() local 2015 MediaThumbRequest req = requestMediaThumbnail(path, origUri, in waitForThumbnailReady() 2792 private long insertDirectory(DatabaseHelper helper, SQLiteDatabase db, String path) { in insertDirectory() argument 2793 if (LOCAL_LOGV) Log.v(TAG, "inserting directory " + path); in insertDirectory() 2796 values.put(FileColumns.DATA, path); in insertDirectory() 2797 values.put(FileColumns.PARENT, getParent(helper, db, path)); in insertDirectory() 2798 values.put(FileColumns.STORAGE_ID, getStorageId(path)); in insertDirectory() [all …]
|
D | MtpService.java | 55 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 …]
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/ |
D | VCardService.java | 79 public CustomMediaScannerConnectionClient(String path) { in CustomMediaScannerConnectionClient() argument 81 mPath = path; in CustomMediaScannerConnectionClient() 95 public void onScanCompleted(String path, Uri uri) { in onScanCompleted() argument 96 if (DEBUG) { Log.d(LOG_TAG, "scan completed: " + path); } in onScanCompleted() 235 final String path = request.destUri.getEncodedPath(); in handleExportRequest() local 236 if (DEBUG) Log.d(LOG_TAG, "Reserve the path " + path); in handleExportRequest() 237 if (!mReservedDestination.add(path)) { in handleExportRequest() 240 path)); in handleExportRequest() 292 final String path = in handleCancelRequest() local 295 String.format("Cancel reservation for the path %s if appropriate", path)); in handleCancelRequest() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
D | CropDrawingUtils.java | 114 Path path = new Path(); in drawWallpaperSelectionFrame() local 115 path.moveTo(r1.left, r1.top); in drawWallpaperSelectionFrame() 116 path.lineTo(r1.right, r1.top); in drawWallpaperSelectionFrame() 117 path.moveTo(r1.left, r1.top); in drawWallpaperSelectionFrame() 118 path.lineTo(r1.left, r1.bottom); in drawWallpaperSelectionFrame() 119 path.moveTo(r1.left, r1.bottom); in drawWallpaperSelectionFrame() 120 path.lineTo(r1.right, r1.bottom); in drawWallpaperSelectionFrame() 121 path.moveTo(r1.right, r1.top); in drawWallpaperSelectionFrame() 122 path.lineTo(r1.right, r1.bottom); in drawWallpaperSelectionFrame() 123 path.moveTo(r2.left, r2.top); in drawWallpaperSelectionFrame() [all …]
|
/packages/apps/Browser/tools/ |
D | get_search_engines.py | 65 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/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | MmsProvider.java | 414 String path = getContext().getDir("parts", 0).getPath() in insert() local 420 path = DownloadDrmHelper.modifyDrmFwLockFileExtension(path); in insert() 423 finalValues.put(Part._DATA, path); in insert() 425 File partFile = new File(path); in insert() 430 "Unable to create new partFile: " + path); in insert() 435 int result = FileUtils.setPermissions(path, 0666, -1, -1); in insert() 442 "Unable to create new partFile: " + path); in insert() 480 String path = getContext().getDir("parts", 0).getPath() in insert() local 483 finalValues.put("_data", path); in insert() 485 File partFile = new File(path); in insert() [all …]
|
/packages/inputmethods/LatinIME/tools/maketext/src/com/android/inputmethod/latin/maketext/ |
D | JarUtils.java | 40 final String path = resUrl.getPath(); in getJarFile() local 41 if (!path.startsWith("file:")) { in getJarFile() 42 throw new RuntimeException("Unknown jar path: " + path); in getJarFile() 44 final String jarPath = path.substring("file:".length(), path.indexOf('!')); in getJarFile() 66 final String path = entry.getName(); in getNameListing() local 67 final int pos = path.lastIndexOf('/'); in getNameListing() 68 final String dirName = (pos >= 0) ? path.substring(0, pos) : ""; in getNameListing() 69 final String name = (pos >= 0) ? path.substring(pos + 1) : path; in getNameListing() 71 result.add(path); in getNameListing()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | PhotoDataAdapter.java | 295 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/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | StorageManager.java | 119 void verifySpaceBeforeWritingToFile(int destination, String path, long length) in verifySpaceBeforeWritingToFile() argument 126 verifySpace(destination, path, length); in verifySpaceBeforeWritingToFile() 129 void verifySpace(int destination, String path, long length) throws StopRequestException { in verifySpace() argument 134 ", path: " + path + ", length: " + length); in verifySpace() 136 if (path == null) { in verifySpace() 152 if (path.startsWith(mExternalStorageDir.getPath())) { in verifySpace() 154 } else if (path.startsWith(mDownloadDataDir.getPath())) { in verifySpace() 156 } else if (path.startsWith(mSystemCacheDir.getPath())) { in verifySpace() 163 ", path: " + path); in verifySpace() 402 final String path = file.getAbsolutePath(); in removeSpuriousFiles() local [all …]
|
D | Helpers.java | 83 String path; in generateSaveFile() local 86 path = Uri.parse(hint).getPath(); in generateSaveFile() 90 path = chooseFilename(url, hint, contentDisposition, contentLocation, in generateSaveFile() 93 storageManager.verifySpace(destination, path, contentLength); in generateSaveFile() 95 path = DownloadDrmHelper.modifyDrmFwLockFileExtension(path); in generateSaveFile() 97 path = getFullPath(path, mimeType, destination, base); in generateSaveFile() 98 return path; in generateSaveFile() 136 final String path = chooseUniqueFilenameLocked( in getFullPath() 142 new File(path).createNewFile(); in getFullPath() 145 "Failed to create target file " + path, e); in getFullPath() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/setup/ |
D | SetupStartIndicatorView.java | 103 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/ |
D | PhotoFallbackEffect.java | 39 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/experimental/procstatlog/ |
D | procstatreport.py | 160 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/Settings/src/com/android/settings/deviceinfo/ |
D | StorageMeasurement.java | 380 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/apps/Browser/src/com/android/browser/ |
D | TabBar.java | 408 private void setTabPath(Path path, int l, int t, int r, int b) { in setTabPath() argument 409 path.reset(); in setTabPath() 410 path.moveTo(l, b); in setTabPath() 411 path.lineTo(l, t); in setTabPath() 412 path.lineTo(r - mTabSliceWidth, t); in setTabPath() 413 path.lineTo(r, b); in setTabPath() 414 path.close(); in setTabPath() 417 private void setFocusPath(Path path, int l, int t, int r, int b) { in setFocusPath() argument 418 path.reset(); in setFocusPath() 419 path.moveTo(l, b); in setFocusPath() [all …]
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | BlobCache.java | 133 public BlobCache(String path, int maxEntries, int maxBytes, boolean reset) in BlobCache() argument 135 this(path, maxEntries, maxBytes, reset, 0); in BlobCache() 138 public BlobCache(String path, int maxEntries, int maxBytes, boolean reset, in BlobCache() argument 140 mIndexFile = new RandomAccessFile(path + ".idx", "rw"); in BlobCache() 141 mDataFile0 = new RandomAccessFile(path + ".0", "rw"); in BlobCache() 142 mDataFile1 = new RandomAccessFile(path + ".1", "rw"); in BlobCache() 159 public static void deleteFiles(String path) { in deleteFiles() argument 160 deleteFileSilently(path + ".idx"); in deleteFiles() 161 deleteFileSilently(path + ".0"); in deleteFiles() 162 deleteFileSilently(path + ".1"); in deleteFiles() [all …]
|
/packages/apps/Mms/src/com/android/mms/util/ |
D | BlobCache.java | 132 public BlobCache(String path, int maxEntries, int maxBytes, boolean reset) in BlobCache() argument 134 this(path, maxEntries, maxBytes, reset, 0); in BlobCache() 137 public BlobCache(String path, int maxEntries, int maxBytes, boolean reset, in BlobCache() argument 139 mIndexFile = new RandomAccessFile(path + ".idx", "rw"); in BlobCache() 140 mDataFile0 = new RandomAccessFile(path + ".0", "rw"); in BlobCache() 141 mDataFile1 = new RandomAccessFile(path + ".1", "rw"); in BlobCache() 158 public static void deleteFiles(String path) { in deleteFiles() argument 159 deleteFileSilently(path + ".idx"); in deleteFiles() 160 deleteFileSilently(path + ".0"); in deleteFiles() 161 deleteFileSilently(path + ".1"); in deleteFiles() [all …]
|