/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/Car/libs/car-ui-lib/tests/tools/ |
D | quick_rro.py | 54 path = os.path.join(root, file) 55 hash.update(path) 56 with open(path, 'rb') as f: 101 def find_android_jar(path=None): argument 106 if path is not None: 107 if os.path.isfile(path): 108 return path 110 raise Exception('Invalid path: ' + path) 112 framework_res_path = os.path.join(os.environ['OUT'], 'system/framework/framework-res.apk') 113 if os.path.isfile(framework_res_path): [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()
|
/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/Bluetooth/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpCoverArtStorage.java | 54 String path = getImagePath(device, imageHandle); in doesImageExist() 55 if (path == null) return false; in doesImageExist() 56 File file = new File(path); in doesImageExist() 69 String path = getImagePath(device, imageHandle); in getImageFile() 70 if (path == null) return null; in getImageFile() 71 File file = new File(path); in getImageFile() 89 String path = getImagePath(device, imageHandle); in addImage() local 90 if (path == null) { in addImage() 106 FileOutputStream outputStream = new FileOutputStream(path); in addImage() 111 error("Failed to store '" + imageHandle + "' to '" + path + "'"); in addImage() [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/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/ |
D | TmaPublicProvider.java | 65 String path = uri.getPath(); in openFile() local 67 if (TextUtils.isEmpty(path) || !path.startsWith(FILES)) { in openFile() 68 throw new FileNotFoundException(path); in openFile() 71 Log.i(TAG, "TmaAssetProvider#openFile uri: " + uri + " path: " + path); in openFile() 73 File localFile = new File(getContext().getFilesDir(), path); in openFile() 75 downloadFile(localFile, path.substring(FILES.length())); in openFile() 83 String path = uri.getPath(); in openAssetFile() local 84 if (TextUtils.isEmpty(path) || !path.startsWith(ASSETS)) { in openAssetFile() 90 Log.i(TAG, "TmaAssetProvider#openAssetFile uri: " + uri + " path: " + path); in openAssetFile() 98 return getContext().getAssets().openFd(path.substring(ASSETS.length())); in openAssetFile()
|
/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/modules/SdkExtensions/derive_sdk/ |
D | derive_sdk.cpp | 47 std::string path = "/apex/" + name + "/etc/sdkinfo.binarypb"; in main() local 49 if (stat(path.c_str(), &statbuf) == 0) { in main() 50 paths.push_back(path); in main() 55 for (const auto& path : paths) { in main() local 57 if (!android::base::ReadFileToString(path, &contents, true)) { in main() 58 LOG(ERROR) << "failed to read " << path; in main() 63 LOG(ERROR) << "failed to parse " << path; in main() 66 LOG(INFO) << "Read version " << sdk_version.version() << " from " << path; in main()
|
/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/TV/tuner/tests/robotests/javatests/com/android/tv/tuner/exoplayer/tests/ |
D | AssetDataSource.java | 53 String path = dataSpec.uri.getPath(); in open() local 54 if (path.startsWith("/android_asset/")) { in open() 55 path = path.substring(15); in open() 56 } else if (path.startsWith("/")) { in open() 57 path = path.substring(1); in open() 59 mInputStream = mAssetManager.open(path, AssetManager.ACCESS_RANDOM); in open()
|