/packages/providers/ContactsProvider/tests2/src/com/android/providers/contacts/tests2/ |
D | AllUriTest.java | 263 private static Uri getUri(String[] path) { in getUri() argument 264 return Uri.parse(path[0]); in getUri() 267 private static boolean supportsQuery(String[] path) { in supportsQuery() argument 268 if (path.length == 1) { in supportsQuery() 271 return !(path[1].contains("-") || path[1].contains("!")); in supportsQuery() 274 private static boolean supportsInsert(String[] path) { in supportsInsert() argument 275 return (path.length) >= 2 && path[1].contains("i"); in supportsInsert() 278 private static boolean supportsUpdate(String[] path) { in supportsUpdate() argument 279 return (path.length) >= 2 && path[1].contains("u"); in supportsUpdate() 282 private static boolean supportsDelete(String[] path) { in supportsDelete() argument [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
D | FileSystemUtils.java | 137 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 …]
|
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 | 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 | 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 82 obj = pid.path.getObject(); in mapMediaItems() 85 obj = createMediaObject(pid.path); in mapMediaItems() 87 Log.w(TAG, "cannot create media object: " + pid.path, th); in mapMediaItems()
|
D | SecureSource.java | 37 public static boolean isSecurePath(String path) { in isSecurePath() argument 38 return (SECURE_ALBUM == mMatcher.match(Path.fromString(path))); in isSecurePath() 42 public MediaObject createMediaObject(Path path) { in createMediaObject() argument 43 switch (mMatcher.match(path)) { in createMediaObject() 48 return new SecureAlbum(path, mApplication, unlock); in createMediaObject() 51 return new UnlockImage(path, mApplication); in createMediaObject() 53 throw new RuntimeException("bad path: " + path); in createMediaObject()
|
D | ImageCacheService.java | 58 public boolean getImageData(Path path, long timeModified, int type, BytesBuffer buffer) { in getImageData() argument 59 byte[] key = makeKey(path, timeModified, type); in getImageData() 80 public void putImageData(Path path, long timeModified, int type, byte[] value) { in putImageData() argument 81 byte[] key = makeKey(path, timeModified, type); in putImageData() 95 public void clearImageData(Path path, long timeModified, int type) { in clearImageData() argument 96 byte[] key = makeKey(path, timeModified, type); in clearImageData() 107 private static byte[] makeKey(Path path, long timeModified, int type) { in makeKey() argument 108 return GalleryUtils.getBytes(path.toString() + "+" + timeModified + "+" + type); in makeKey()
|
/packages/services/Car/tools/emulator/ |
D | vhal_const_generate.py | 60 import os, os.path 63 script_directory = os.path.join(os.path.dirname(os.path.abspath(__file__))) 64 parent_location = os.path.abspath(os.path.join(script_directory, '..')) 65 sys.path.append(parent_location) 88 vhal_location = os.path.join(android_build_top, 'hardware','interfaces','automotive','vehicle') 90 vhal_location = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), 93 if not(os.path.exists(vhal_location) and os.path.isdir(vhal_location)): 98 vhal_20_file = os.path.join(vhal_location, '2.0', 'types.hal') 99 if not(os.path.exists(vhal_20_file)): 106 vhal_20_file = open(os.path.join(script_directory, 'vhal_consts_2_0.py'), 'w')
|
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/ |
D | DiscoveredPrinter.java | 45 public final Uri path; field in DiscoveredPrinter 64 this.path = paths.get(0); in DiscoveredPrinter() 77 public DiscoveredPrinter(Uri uuid, String name, Uri path, String location) { in DiscoveredPrinter() argument 78 this(uuid, name, Collections.singletonList(path), location); in DiscoveredPrinter() 84 Uri uuid = null, path = null; in DiscoveredPrinter() local 97 path = Uri.parse(reader.nextString()); in DiscoveredPrinter() 106 if (printerName == null || path == null) { in DiscoveredPrinter() 111 this.path = path; in DiscoveredPrinter() 112 this.paths = Collections.singletonList(path); in DiscoveredPrinter() 121 return uuid != null ? uuid : path; in getUri() [all …]
|
/packages/apps/Camera2/src/com/android/camera/ |
D | Storage.java | 124 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/ |
D | CropDrawingUtils.java | 132 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/Contacts/src/com/android/contacts/vcard/ |
D | VCardService.java | 66 public CustomMediaScannerConnectionClient(String path) { in CustomMediaScannerConnectionClient() argument 68 mPath = path; in CustomMediaScannerConnectionClient() 82 public void onScanCompleted(String path, Uri uri) { in onScanCompleted() argument 83 if (DEBUG) { Log.d(LOG_TAG, "scan completed: " + path); } in onScanCompleted() 189 final String path = request.destUri.getEncodedPath(); in handleExportRequest() local 190 if (DEBUG) Log.d(LOG_TAG, "Reserve the path " + path); in handleExportRequest() 191 if (!mReservedDestination.add(path)) { in handleExportRequest() 194 path)); in handleExportRequest() 249 final String path = in handleCancelRequest() local 252 String.format("Cancel reservation for the path %s if appropriate", path)); in handleCancelRequest() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/ |
D | dictionary_structure_with_buffer_policy_factory.cpp | 40 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/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadScanner.java | 52 public final String path; field in DownloadScanner.ScanRequest 56 public ScanRequest(long id, String path, String mimeType) { in ScanRequest() argument 58 this.path = path; in ScanRequest() 64 conn.scanFile(path, mimeType); in exec() 82 public static void requestScanBlocking(Context context, long id, String path, String mimeType) { in requestScanBlocking() argument 85 scanner.requestScan(new ScanRequest(id, path, mimeType)); in requestScanBlocking() 123 if (LOGV) Log.v(TAG, "requestScan() for " + req.path); in requestScan() 125 mPending.put(req.path, req); in requestScan() 149 public void onScanCompleted(String path, Uri uri) { in onScanCompleted() argument 152 req = mPending.remove(path); in onScanCompleted() [all …]
|
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/ |
D | JarUtils.java | 42 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/ThemePicker/src/com/android/customization/model/theme/custom/ |
D | ShapeOptionsProvider.java | 72 Path path = loadPath(mContext.getPackageManager() in loadOptions() local 74 ShapeDrawable shapeDrawable = createShapeDrawable(path); in loadOptions() 77 mOptions.add(new ShapeOption(overlayPackage, label, path, in loadOptions() 78 loadCornerRadius(overlayPackage), shapeDrawable, getShapedIcons(path))); in loadOptions() 88 Path path = loadPath(system, ANDROID_PACKAGE); in addDefault() local 89 ShapeDrawable shapeDrawable = createShapeDrawable(path); in addDefault() 90 mOptions.add(new ShapeOption(null, mContext.getString(R.string.default_theme_title), path, in addDefault() 94 shapeDrawable, getShapedIcons(path))); in addDefault() 97 private ShapeDrawable createShapeDrawable(Path path) { in createShapeDrawable() argument 98 PathShape shape = new PathShape(path, PATH_SIZE, PATH_SIZE); in createShapeDrawable() [all …]
|
/packages/apps/PhoneCommon/src/com/android/phone/common/compat/ |
D | PathInterpolatorCompat.java | 43 public PathInterpolatorBase(Path path) { in PathInterpolatorBase() argument 44 final PathMeasure pathMeasure = new PathMeasure(path, false /* forceClosed */); in PathInterpolatorBase() 106 final Path path = new Path(); in createQuad() local 107 path.moveTo(0.0f, 0.0f); in createQuad() 108 path.quadTo(controlX, controlY, 1.0f, 1.0f); in createQuad() 109 return path; in createQuad() 114 final Path path = new Path(); in createCubic() local 115 path.moveTo(0.0f, 0.0f); in createCubic() 116 path.cubicTo(controlX1, controlY1, controlX2, controlY2, 1.0f, 1.0f); in createCubic() 117 return path; in createCubic()
|
/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/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | MmsProvider.java | 459 String path; in insert() local 472 path = values.getAsString(Part._DATA); in insert() 475 if (!new File(path).getCanonicalPath().startsWith(partsDirPath)) { in insert() 477 + path in insert() 499 path = getContext().getDir(PARTS_DIR_NAME, 0).getPath() in insert() 505 path = DownloadDrmHelper.modifyDrmFwLockFileExtension(path); in insert() 509 finalValues.put(Part._DATA, path); in insert() 511 File partFile = new File(path); in insert() 516 "Unable to create new partFile: " + path); in insert() 521 int result = FileUtils.setPermissions(path, 0666, -1, -1); in insert() [all …]
|
/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/apps/DocumentsUI/src/com/android/documentsui/ |
D | LoadDocStackTask.java | 75 final Path path = mDocs.findDocumentPath(docUri); in run() local 76 if (path != null) { in run() 77 return buildStack(docUri.getAuthority(), path); in run() 94 private DocumentStack buildStack(String authority, Path path) throws Exception { in buildStack() argument 95 final String rootId = path.getRootId(); in buildStack() 100 RootInfo root = mProviders.getRootOneshot(authority, path.getRootId()); in buildStack() 103 " and root ID: " + path.getRootId() + "."); in buildStack() 106 List<DocumentInfo> docs = mDocs.getDocuments(authority, path.getPath()); in buildStack()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
D | FileImageRequestDescriptor.java | 27 public final String path; field in FileImageRequestDescriptor 35 public FileImageRequestDescriptor(final String path, final int desiredWidth, in FileImageRequestDescriptor() argument 38 this(path, desiredWidth, desiredHeight, FileImageRequest.UNSPECIFIED_SIZE, in FileImageRequestDescriptor() 46 public FileImageRequestDescriptor(final String path, final int desiredWidth, in FileImageRequestDescriptor() argument 49 super(UriUtil.getUriForResourceFile(path), desiredWidth, desiredHeight, sourceWidth, in FileImageRequestDescriptor() 53 this.path = path; in FileImageRequestDescriptor()
|