Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 238) 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 …]
DLocalAlbum.java61 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/
DMediaProvider.java688 mPendingThumbs.remove(d.path); in onCreate()
2040 String path = parentFile.toString().toLowerCase(); in computeBucketValues() local
2046 values.put(ImageColumns.BUCKET_ID, path.hashCode()); in computeBucketValues()
2094 String path = c.getString(1); in waitForThumbnailReady() local
2097 MediaThumbRequest req = requestMediaThumbnail(path, origUri, in waitForThumbnailReady()
2971 private long insertDirectory(DatabaseHelper helper, SQLiteDatabase db, String path) { in insertDirectory() argument
2972 if (LOCAL_LOGV) Log.v(TAG, "inserting directory " + path); in insertDirectory()
2975 values.put(FileColumns.DATA, path); in insertDirectory()
2976 values.put(FileColumns.PARENT, getParent(helper, db, path)); in insertDirectory()
2977 values.put(FileColumns.STORAGE_ID, getStorageId(path)); in insertDirectory()
[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()
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/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/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/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/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/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsProvider.java455 String path = getContext().getDir(PARTS_DIR_NAME, 0).getPath() in insert() local
461 path = DownloadDrmHelper.modifyDrmFwLockFileExtension(path); in insert()
464 finalValues.put(Part._DATA, path); in insert()
466 File partFile = new File(path); in insert()
471 "Unable to create new partFile: " + path); in insert()
476 int result = FileUtils.setPermissions(path, 0666, -1, -1); in insert()
483 "Unable to create new partFile: " + path); in insert()
521 String path = getContext().getDir(PARTS_DIR_NAME, 0).getPath() in insert() local
524 finalValues.put("_data", path); in insert()
526 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/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/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/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/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()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadScanner.java50 public final String path; field in DownloadScanner.ScanRequest
54 public ScanRequest(long id, String path, String mimeType) { in ScanRequest() argument
56 this.path = path; in ScanRequest()
62 conn.scanFile(path, mimeType); in exec()
105 mPending.put(req.path, req); in requestScan()
129 public void onScanCompleted(String path, Uri uri) { in onScanCompleted() argument
132 req = mPending.remove(path); in onScanCompleted()
135 Log.w(TAG, "Missing request for path " + path); in onScanCompleted()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppUtility.java152 Uri path = Uri.parse(fileName); in queryTransfersInBatch() local
154 if (path.getScheme() == null) { in queryTransfersInBatch()
155 path = Uri.fromFile(new File(fileName)); in queryTransfersInBatch()
157 uris.add(path.toString()); in queryTransfersInBatch()
158 if (V) Log.d(TAG, "Uri in this batch: " + path.toString()); in queryTransfersInBatch()
190 Uri path = FileProvider.getUriForFile(context, in openReceivedFile() local
193 if (path.getScheme() == null) { in openReceivedFile()
194 path = Uri.fromFile(new File(fileName)); in openReceivedFile()
197 if (isRecognizedFileType(context, path, mimetype)) { in openReceivedFile()
199 activityIntent.setDataAndTypeAndNormalize(path, mimetype); in openReceivedFile()
[all …]

12345678910