/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 …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | FilterDeleteSet.java | 39 Path path; field in FilterDeleteSet.Request 41 public Request(int type, Path path, int indexHint) { in Request() argument 43 this.path = path; in Request() 49 Path path; field in FilterDeleteSet.Deletion 51 public Deletion(Path path, int index) { in Deletion() argument 52 this.path = path; in Deletion() 67 public FilterDeleteSet(Path path, MediaSet baseSet) { in FilterDeleteSet() argument 68 super(path, INVALID_DATA_VERSION); in FilterDeleteSet() 155 if (mCurrent.get(j).path == r.path) break; in reload() 158 mCurrent.add(new Deletion(r.path, r.indexHint)); in reload() [all …]
|
D | DataManager.java | 150 public MediaObject peekMediaObject(Path path) { in peekMediaObject() argument 151 return path.getObject(); in peekMediaObject() 154 public MediaObject getMediaObject(Path path) { in getMediaObject() argument 155 MediaObject obj = path.getObject(); in getMediaObject() 158 MediaSource source = mSourceMap.get(path.getPrefix()); in getMediaObject() 160 Log.w(TAG, "cannot find media source for path: " + path); in getMediaObject() 165 MediaObject object = source.createMediaObject(path); in getMediaObject() 167 Log.w(TAG, "cannot create media object: " + path); in getMediaObject() 171 Log.w(TAG, "exception in creating media object: " + path, t); in getMediaObject() 180 public MediaSet getMediaSet(Path path) { in getMediaSet() argument [all …]
|
D | MediaSource.java | 41 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 80 MediaObject obj = pid.path.getObject(); in mapMediaItems() 83 obj = createMediaObject(pid.path); in mapMediaItems() 85 Log.w(TAG, "cannot create media object: " + pid.path, th); in mapMediaItems()
|
D | ComboSource.java | 37 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()
|
D | MtpSource.java | 43 public MediaObject createMediaObject(Path path) { in createMediaObject() argument 44 switch (mMatcher.match(path)) { in createMediaObject() 46 return new MtpDeviceSet(path, mApplication, mMtpContext); in createMediaObject() 50 return new MtpDevice(path, mApplication, deviceId, mMtpContext); in createMediaObject() 55 return new MtpImage(path, mApplication, deviceId, objectId, mMtpContext); in createMediaObject() 58 throw new RuntimeException("bad path: " + path); in createMediaObject()
|
D | MtpContext.java | 37 public void scanPath(String path) { in scanPath() argument 40 mScannerConnection.scanFile(path, null); in scanPath() 42 mPaths.add(path); in scanPath() 53 for (String path : mPaths) { in onMediaScannerConnected() 54 mScannerConnection.scanFile(path, null); in onMediaScannerConnected() 62 public void onScanCompleted(String path, Uri uri) { in onScanCompleted() argument 131 String path = importedFile.getAbsolutePath(); in copyAlbum() local 132 if (mClient.importFile(deviceName, child.getObjectHandle(), path)) { in copyAlbum() 133 mScannerClient.scanPath(path); in copyAlbum()
|
D | ClusterSource.java | 60 public MediaObject createMediaObject(Path path) { in createMediaObject() argument 61 int matchType = mMatcher.match(path); in createMediaObject() 71 return new ClusterAlbumSet(path, mApplication, sets[0], matchType); in createMediaObject() 77 MediaSet parent = dataManager.getMediaSet(path.getParent()); in createMediaObject() 80 return new ClusterAlbum(path, dataManager, parent); in createMediaObject() 83 throw new RuntimeException("bad path: " + path); in createMediaObject()
|
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 | FilterSource.java | 41 public MediaObject createMediaObject(Path path) { in createMediaObject() argument 42 int matchType = mMatcher.match(path); in createMediaObject() 49 return new FilterTypeSet(path, dataManager, sets[0], mediaType); in createMediaObject() 54 return new FilterDeleteSet(path, sets[0]); in createMediaObject() 57 throw new RuntimeException("bad path: " + path); in createMediaObject()
|
D | ImageCacheService.java | 57 public boolean getImageData(Path path, int type, BytesBuffer buffer) { in getImageData() argument 58 byte[] key = makeKey(path, type); in getImageData() 79 public void putImageData(Path path, int type, byte[] value) { in putImageData() argument 80 byte[] key = makeKey(path, type); in putImageData() 94 private static byte[] makeKey(Path path, int type) { in makeKey() argument 95 return GalleryUtils.getBytes(path.toString() + "+" + type); in makeKey()
|
/packages/inputmethods/LatinIME/tools/maketext/src/com/android/inputmethod/latin/maketext/ |
D | JarUtils.java | 41 final String path = resUrl.getPath(); in getJarFile() local 42 if (!path.startsWith("file:")) { in getJarFile() 43 throw new RuntimeException("Unknown jar path: " + path); in getJarFile() 45 final String jarPath = path.substring("file:".length(), path.indexOf('!')); in getJarFile() 67 final String path = entry.getName(); in getNameListing() local 68 final int pos = path.lastIndexOf('/'); in getNameListing() 69 final String dirName = (pos >= 0) ? path.substring(0, pos) : ""; in getNameListing() 70 final String name = (pos >= 0) ? path.substring(pos + 1) : path; in getNameListing() 72 result.add(path); in getNameListing()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | VoicemailUriType.java | 30 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/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/apps/Contacts/src/com/android/contacts/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() 227 final String path = request.destUri.getEncodedPath(); in handleExportRequest() local 228 if (DEBUG) Log.d(LOG_TAG, "Reserve the path " + path); in handleExportRequest() 229 if (!mReservedDestination.add(path)) { in handleExportRequest() 232 path)); in handleExportRequest() 284 final String path = in handleCancelRequest() local 287 String.format("Cancel reservation for the path %s if appropriate", path)); in handleCancelRequest() [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaScannerReceiver.java | 45 String path = uri.getPath(); in onReceive() local 48 Log.d(TAG, "action: " + action + " path: " + path); in onReceive() 53 path != null && path.startsWith(externalStoragePath + "/")) { in onReceive() 54 scanFile(context, path); in onReceive() 67 private void scanFile(Context context, String path) { in scanFile() argument 69 args.putString("filepath", path); in scanFile()
|
D | MtpService.java | 78 public void onStorageStateChanged(String path, String oldState, String newState) { 80 Log.d(TAG, "onStorageStateChanged " + path + " " + oldState + " -> " + newState); 82 volumeMountedLocked(path); 84 StorageVolume volume = mVolumeMap.remove(path); 116 String path = volumes[i].getPath(); in onCreate() local 117 String state = mStorageManager.getVolumeState(path); in onCreate() 119 volumeMountedLocked(path); in onCreate() 189 private void volumeMountedLocked(String path) { in volumeMountedLocked() argument 192 if (volume.getPath().equals(path)) { in volumeMountedLocked() 193 mVolumeMap.put(path, volume); in volumeMountedLocked() [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/ |
D | TypedUriMatcherImpl.java | 38 String path = value.path(); in TypedUriMatcherImpl() local 39 if (path != null) { in TypedUriMatcherImpl() 40 addUriType(path, value); in TypedUriMatcherImpl() 48 private void addUriType(String path, T value) { in addUriType() argument 49 mUriMatcher.addURI(mAuthority, path, value.ordinal()); in addUriType()
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/data/ |
D | MockSource.java | 37 public MediaObject createMediaObject(Path path) { in createMediaObject() argument 39 switch (mMatcher.match(path)) { in createMediaObject() 41 return new MockSet(path, mApplication.getDataManager()); in createMediaObject() 43 return new MockItem(path); in createMediaObject() 45 throw new RuntimeException("bad path: " + path); in createMediaObject()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/ |
D | TypedUriMatcherImplTest.java | 42 private String path; field in TypedUriMatcherImplTest.TestUriType 44 private TestUriType(String path) { in TestUriType() argument 45 this.path = path; in TestUriType() 49 public String path() { in path() method in TypedUriMatcherImplTest.TestUriType 50 return path; in path()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | PhotoFallbackEffect.java | 37 public Path path; field in PhotoFallbackEffect.Entry 42 public Entry(Path path, Rect source, RawTexture texture) { in Entry() argument 43 this.path = path; in Entry() 51 public int getItemIndex(Path path); in getItemIndex() argument 66 public void addEntry(Path path, Rect rect, RawTexture texture) { in addEntry() argument 67 mList.add(new Entry(path, rect, texture)); in addEntry() 70 public Entry getEntry(Path path) { in getEntry() argument 73 if (entry.path == path) return entry; in getEntry() 164 entry.index = mPositionProvider.getItemIndex(entry.path); in setPositionProvider()
|
/packages/apps/Email/src/org/apache/james/mime4j/util/ |
D | SimpleTempStorage.java | 122 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/ |
D | CertFile.java | 63 String path = savedStates.getString(CERT_FILE_KEY); in onRestoreInstanceState() local 64 if (path != null) { in onRestoreInstanceState() 65 mCertFile = new File(path); in onRestoreInstanceState() 167 protected boolean isFileAcceptable(String path) { in isFileAcceptable() argument 168 return (path.endsWith(Credentials.EXTENSION_CRT) || in isFileAcceptable() 169 path.endsWith(Credentials.EXTENSION_P12) || in isFileAcceptable() 170 path.endsWith(Credentials.EXTENSION_CER) || in isFileAcceptable() 171 path.endsWith(Credentials.EXTENSION_PFX)); in isFileAcceptable()
|
/packages/apps/Exchange/tests/src/com/android/exchange/provider/ |
D | MockProvider.java | 93 .path(uri.getPath().substring(1)).build(); in uri() 101 String path = uri.getPath(); in delete() local 102 if (mMockStore.containsKey(path)) { in delete() 103 mMockStore.remove(path); in delete() 120 Uri newUri = new Uri.Builder().scheme("content").authority(AUTHORITY).path(table) in insert() 184 String path = uri.getPath(); in update() local 188 String prefix = path + "/"; in update() 196 ContentValues cv = mMockStore.get(path); in update() 223 mMockStore.put(path + "/" + targetValues.getAsLong(ID_COLUMN), targetValues); in update()
|