Home
last modified time | relevance | path

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

1234

/packages/apps/Email/src/org/apache/commons/io/
DFileSystemUtils.java136 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 …]
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()
227 private final String path; field in FileCleaningTracker.Tracker
241 … Tracker(String path, FileDeleteStrategy deleteStrategy, Object marker, ReferenceQueue queue) { in Tracker() argument
243 this.path = path; in Tracker()
[all …]
DFileCleaner.java86 public static void track(String path, Object marker) { in track() argument
87 theInstance.track(path, marker); in track()
101 public static void track(String path, Object marker, FileDeleteStrategy deleteStrategy) { in track() argument
102 theInstance.track(path, marker, deleteStrategy); in track()
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/Browser/tools/
Dget_search_engines.py66 self.resdir = os.path.normpath(os.path.join(sys.path[0], '../res'))
179 all_search_engines_path = os.path.join(self.resdir, 'values/all_search_engines.xml')
191 self.generateXmlFromTemplate(os.path.join(sys.path[0], 'all_search_engines.template.xml'),
195 self.writeEngineList(os.path.join(self.resdir, 'values'), "default")
212 dir_path = os.path.join(self.resdir, 'values-' + language + '-r' + country)
217 if os.path.exists(dir_path) and not os.path.isdir(dir_path):
239 self.generateXmlFromTemplate(os.path.join(sys.path[0], 'search_engines.template.xml'),
240 os.path.join(dir_path, 'search_engines.xml'),
253 dir_path = os.path.dirname(out_path)
254 if not os.path.exists(dir_path):
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaScannerReceiver.java46 String path = uri.getPath(); in onReceive() local
48 externalStoragePath.equals(path)) { in onReceive()
51 path != null && path.startsWith(externalStoragePath + "/")) { in onReceive()
52 scanFile(context, path); in onReceive()
65 private void scanFile(Context context, String path) { in scanFile() argument
67 args.putString("filepath", path); in scanFile()
DMediaScannerService.java191 private Uri scanFile(String path, String mimeType) { in scanFile() argument
195 if (path.startsWith(externalStoragePath)) { in scanFile()
200 return scanner.scanSingleFile(path, volumeName, mimeType); in scanFile()
211 public void requestScanFile(String path, String mimeType, IMediaScannerListener listener)
214 Log.d(TAG, "IMediaScannerService.scanFile: " + path + " mimeType: " + mimeType);
217 args.putString("filepath", path);
226 public void scanFile(String path, String mimeType) {
227 requestScanFile(path, mimeType, null);
DMediaProvider.java356 mPendingThumbs.remove(d.path); in onCreate()
1123 String path = parentFile.toString().toLowerCase(); in computeBucketValues() local
1129 values.put(ImageColumns.BUCKET_ID, path.hashCode()); in computeBucketValues()
1179 String path = c.getString(1); in waitForThumbnailReady() local
1182 MediaThumbRequest req = requestMediaThumbnail(path, origUri, in waitForThumbnailReady()
1890 String path = values.getAsString("_data"); in insertInternal() local
1895 s, s, path, 0, null, artistCache, uri); in insertInternal()
1915 albumhash = path.substring(0, path.lastIndexOf('/')).hashCode(); in insertInternal()
1921 s, cacheName, path, albumhash, artist, albumCache, uri); in insertInternal()
2090 … private MediaThumbRequest requestMediaThumbnail(String path, Uri uri, int priority, long magic) { in requestMediaThumbnail() argument
[all …]
/packages/apps/Email/src/org/apache/james/mime4j/util/
DSimpleTempStorage.java122 private File path = null; field in SimpleTempStorage.SimpleTempPath
124 private SimpleTempPath(String path) { in SimpleTempPath() argument
125 this.path = new File(path); in SimpleTempPath()
128 private SimpleTempPath(File path) { in SimpleTempPath() argument
129 this.path = path; in SimpleTempPath()
162 return path.getAbsolutePath(); in getAbsolutePath()
/packages/apps/CertInstaller/src/com/android/certinstaller/
DCertFileList.java150 public void onEvent(int evt, String path) { in SdCardMonitor()
151 commonHandler(evt, path); in SdCardMonitor()
158 public void onEvent(int evt, String path) { in SdCardMonitor()
159 commonHandler(evt, path); in SdCardMonitor()
164 private void commonHandler(int evt, String path) { in commonHandler() argument
168 if (isFileAcceptable(path)) { in commonHandler()
DCertFile.java67 String path = savedStates.getString(CERT_FILE_KEY); in onRestoreInstanceState() local
68 if (path != null) mCertFile = new File(path); in onRestoreInstanceState()
156 protected boolean isFileAcceptable(String path) { in isFileAcceptable() argument
157 return (path.endsWith(PKCS12_EXT) || path.endsWith(CERT_EXT)); in isFileAcceptable()
/packages/apps/Settings/src/com/android/settings/vpn/
DUtil.java60 static void deleteFile(String path) { in deleteFile() argument
61 deleteFile(new File(path)); in deleteFile()
64 static void deleteFile(String path, boolean toDeleteSelf) { in deleteFile() argument
65 deleteFile(new File(path), toDeleteSelf); in deleteFile()
79 static boolean isFileOrEmptyDirectory(String path) { in isFileOrEmptyDirectory() argument
80 File f = new File(path); in isFileOrEmptyDirectory()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DPackageIconLoader.java175 List<String> path = uri.getPathSegments(); in getResourceId() local
176 if (path == null) { in getResourceId()
179 int len = path.size(); in getResourceId()
183 id = Integer.parseInt(path.get(0)); in getResourceId()
188 id = r.getIdentifier(path.get(1), path.get(0), authority); in getResourceId()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppUtility.java141 Uri path = Uri.parse(fileName); in queryTransfersInBatch() local
143 if (path.getScheme() == null) { in queryTransfersInBatch()
144 path = Uri.fromFile(new File(fileName)); in queryTransfersInBatch()
146 uris.add(path.toString()); in queryTransfersInBatch()
147 if (V) Log.d(TAG, "Uri in this batch: " + path.toString()); in queryTransfersInBatch()
179 Uri path = Uri.parse(fileName); in openReceivedFile() local
181 if (path.getScheme() == null) { in openReceivedFile()
182 path = Uri.fromFile(new File(fileName)); in openReceivedFile()
185 if (isRecognizedFileType(context, path, mimetype)) { in openReceivedFile()
187 activityIntent.setDataAndType(path, mimetype); in openReceivedFile()
[all …]
/packages/apps/Browser/src/com/android/browser/
DOpenDownloadReceiver.java57 Uri path = Uri.parse(filename); in onReceive() local
59 if (path.getScheme() == null) { in onReceive()
60 path = Uri.fromFile(new File(filename)); in onReceive()
62 launchIntent.setDataAndType(path, mimetype); in onReceive()
DWebStorageSizeManager.java137 public StatFsDiskInfo(String path) { in StatFsDiskInfo() argument
138 mFs = new StatFs(path); in StatFsDiskInfo()
169 public WebKitAppCacheInfo(String path) { in WebKitAppCacheInfo() argument
170 mAppCachePath = path; in WebKitAppCacheInfo()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DDownloadManagerFunctionalTest.java47 String path = "/download_manager_test_path"; in testBasicRequest() local
48 Uri downloadUri = requestDownload(path); in testBasicRequest()
55 assertEquals(path, request.getPath()); in testBasicRequest()
133 private Uri requestDownload(String path) throws MalformedURLException { in requestDownload() argument
135 values.put(Downloads.COLUMN_URI, getServerUri(path)); in requestDownload()
DAbstractPublicApiTest.java103 protected DownloadManager.Request getRequest(String path) { in getRequest() argument
104 return new DownloadManager.Request(Uri.parse(path)); in getRequest()
/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/Mms/src/com/android/mms/model/
DAudioModel.java74 String path; in initModelFromUri() local
81 path = c.getString(c.getColumnIndexOrThrow(Part._DATA)); in initModelFromUri()
84 path = c.getString(c.getColumnIndexOrThrow(Audio.Media.DATA)); in initModelFromUri()
99 mSrc = path.substring(path.lastIndexOf('/') + 1); in initModelFromUri()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DHelpers.java115 String path = Uri.parse(hint).getPath(); in getPathForFileUri() local
116 if (new File(path).exists()) { in getPathForFileUri()
117 Log.d(Constants.TAG, "File already exists: " + path); in getPathForFileUri()
121 if (getAvailableBytes(getFilesystemRoot(path)) < contentLength) { in getPathForFileUri()
126 return path; in getPathForFileUri()
132 public static File getFilesystemRoot(String path) { in getFilesystemRoot() argument
134 if (path.startsWith(cache.getPath())) { in getFilesystemRoot()
138 if (path.startsWith(external.getPath())) { in getFilesystemRoot()
141 throw new IllegalArgumentException("Cannot determine filesystem root for " + path); in getFilesystemRoot()
808 …/* package */ static void deleteFile(ContentResolver resolver, long id, String path, String mimeTy… in deleteFile() argument
[all …]
DDownloadReceiver.java135 Uri path = Uri.parse(filename); in openDownload() local
137 if (path.getScheme() == null) { in openDownload()
138 path = Uri.fromFile(new File(filename)); in openDownload()
142 activityIntent.setDataAndType(path, mimetype); in openDownload()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DMemory.java119 public void onStorageStateChanged(String path, String oldState, String newState) {
121 path + " changed state from " + oldState +
289 File path = Environment.getExternalStorageDirectory();
290 StatFs stat = new StatFs(path.getPath());
335 File path = Environment.getDataDirectory();
336 StatFs stat = new StatFs(path.getPath());
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsProvider.java390 String path = getContext().getDir("parts", 0).getPath() in insert() local
393 finalValues.put(Part._DATA, path); in insert()
395 File partFile = new File(path); in insert()
400 "Unable to create new partFile: " + path); in insert()
405 "Unable to create new partFile: " + path); in insert()
443 String path = getContext().getDir("parts", 0).getPath() in insert() local
446 finalValues.put("_data", path); in insert()
448 File partFile = new File(path); in insert()
453 "Unable to create new file: " + path); in insert()
458 "Unable to create new file: " + path); in insert()
[all …]
/packages/apps/Gallery/src/com/android/camera/gallery/
DBaseImageList.java169 String path = uri.getPath(); in getPathWithoutId() local
170 Matcher matcher = sPathWithId.matcher(path); in getPathWithoutId()
171 return matcher.matches() ? matcher.group(1) : path; in getPathWithoutId()

1234