/frameworks/base/core/tests/coretests/src/android/net/ |
D | UriTest.java | 37 Uri uri = builder.build(); in testToStringWithPathOnly() local 38 assertEquals("//foo", uri.toString()); in testToStringWithPathOnly() 167 Uri uri = Uri.parse("http://localhost:42"); in testAuthorityParsing() local 168 assertEquals("localhost", uri.getHost()); in testAuthorityParsing() 169 assertEquals(42, uri.getPort()); in testAuthorityParsing() 171 uri = Uri.parse("http://bob@localhost:42"); in testAuthorityParsing() 172 assertEquals("bob", uri.getUserInfo()); in testAuthorityParsing() 173 assertEquals("localhost", uri.getHost()); in testAuthorityParsing() 174 assertEquals(42, uri.getPort()); in testAuthorityParsing() 176 uri = Uri.parse("http://bob%20lee@localhost:42"); in testAuthorityParsing() [all …]
|
/frameworks/base/core/java/android/content/ |
D | ContentProvider.java | 191 public Cursor query(String callingPkg, Uri uri, String[] projection, in query() argument 194 if (enforceReadPermission(callingPkg, uri) != AppOpsManager.MODE_ALLOWED) { in query() 195 return rejectQuery(uri, projection, selection, selectionArgs, sortOrder, in query() 201 uri, projection, selection, selectionArgs, sortOrder, in query() 209 public String getType(Uri uri) { in getType() argument 210 return ContentProvider.this.getType(uri); in getType() 214 public Uri insert(String callingPkg, Uri uri, ContentValues initialValues) { in insert() argument 215 if (enforceWritePermission(callingPkg, uri) != AppOpsManager.MODE_ALLOWED) { in insert() 216 return rejectInsert(uri, initialValues); in insert() 220 return ContentProvider.this.insert(uri, initialValues); in insert() [all …]
|
D | ContentResolver.java | 402 public final Cursor query(Uri uri, String[] projection, in query() argument 404 return query(uri, projection, selection, selectionArgs, sortOrder, null); in query() 442 public final Cursor query(final Uri uri, String[] projection, in query() argument 445 IContentProvider unstableProvider = acquireUnstableProvider(uri); in query() 461 qCursor = unstableProvider.query(mPackageName, uri, projection, in query() 468 stableProvider = acquireProvider(uri); in query() 472 qCursor = stableProvider.query(mPackageName, uri, projection, in query() 482 maybeLogQueryToEventLog(durationMillis, uri, projection, selection, sortOrder); in query() 486 stableProvider != null ? stableProvider : acquireProvider(uri)); in query() 611 public final InputStream openInputStream(Uri uri) in openInputStream() argument [all …]
|
D | ContentProviderResult.java | 28 public final Uri uri; field in ContentProviderResult 31 public ContentProviderResult(Uri uri) { in ContentProviderResult() argument 32 if (uri == null) throw new IllegalArgumentException("uri must not be null"); in ContentProviderResult() 33 this.uri = uri; in ContentProviderResult() 39 this.uri = null; in ContentProviderResult() 46 uri = null; in ContentProviderResult() 49 uri = Uri.CREATOR.createFromParcel(source); in ContentProviderResult() 54 if (uri == null) { in writeToParcel() 59 uri.writeToParcel(dest, 0); in writeToParcel() 79 if (uri != null) { in toString() [all …]
|
D | SearchRecentSuggestionsProvider.java | 225 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument 228 final int length = uri.getPathSegments().size(); in delete() 233 final String base = uri.getPathSegments().get(0); in delete() 240 getContext().getContentResolver().notifyChange(uri, null); in delete() 249 public String getType(Uri uri) { in getType() argument 250 if (mUriMatcher.match(uri) == URI_MATCH_SUGGEST) { in getType() 253 int length = uri.getPathSegments().size(); in getType() 255 String base = uri.getPathSegments().get(0); in getType() 272 public Uri insert(Uri uri, ContentValues values) { in insert() argument 275 int length = uri.getPathSegments().size(); in insert() [all …]
|
D | AsyncQueryHandler.java | 49 public Uri uri; field in AsyncQueryHandler.WorkerArgs 79 cursor = resolver.query(args.uri, args.projection, in handleMessage() 96 args.result = resolver.insert(args.uri, args.values); in handleMessage() 100 args.result = resolver.update(args.uri, args.values, args.selection, in handleMessage() 105 args.result = resolver.delete(args.uri, args.selection, args.selectionArgs); in handleMessage() 164 public void startQuery(int token, Object cookie, Uri uri, in startQuery() argument 173 args.uri = uri; in startQuery() 207 public final void startInsert(int token, Object cookie, Uri uri, in startInsert() argument 215 args.uri = uri; in startInsert() 233 public final void startUpdate(int token, Object cookie, Uri uri, in startUpdate() argument [all …]
|
D | Entity.java | 50 public void addSubValue(Uri uri, ContentValues values) { in addSubValue() argument 51 mSubValues.add(new Entity.NamedContentValues(uri, values)); in addSubValue() 55 public final Uri uri; field in Entity.NamedContentValues 58 public NamedContentValues(Uri uri, ContentValues values) { in NamedContentValues() argument 59 this.uri = uri; in NamedContentValues() 68 sb.append("\n ").append(namedValue.uri); in toString()
|
D | Intent.java | 3791 public Intent(String action, Uri uri) { in Intent() argument 3793 mData = uri; in Intent() 3839 public Intent(String action, Uri uri, in Intent() argument 3842 mData = uri; in Intent() 3932 public static Intent getIntent(String uri) throws URISyntaxException { in getIntent() argument 3933 return parseUri(uri, 0); in getIntent() 3957 public static Intent parseUri(String uri, int flags) throws URISyntaxException { in parseUri() argument 3962 if (!uri.startsWith("intent:")) { in parseUri() 3965 intent.setData(Uri.parse(uri)); in parseUri() 3967 throw new URISyntaxException(uri, e.getMessage()); in parseUri() [all …]
|
D | ClipData.java | 227 public Item(Uri uri) { in Item() argument 231 mUri = uri; in Item() 238 public Item(CharSequence text, Intent intent, Uri uri) { in Item() argument 242 mUri = uri; in Item() 251 public Item(CharSequence text, String htmlText, Intent intent, Uri uri) { in Item() argument 259 mUri = uri; in Item() 320 Uri uri = getUri(); in coerceToText() local 321 if (uri != null) { in coerceToText() 330 .openTypedAssetFileDescriptor(uri, "text/*", null); in coerceToText() 363 return uri.toString(); in coerceToText() [all …]
|
/frameworks/base/sax/java/android/sax/ |
D | Children.java | 30 Element getOrCreate(Element parent, String uri, String localName) { in getOrCreate() argument 31 int hash = uri.hashCode() * 31 + localName.hashCode(); in getOrCreate() 37 current = new Child(parent, uri, localName, parent.depth + 1, hash); in getOrCreate() 45 && current.uri.compareTo(uri) == 0 in getOrCreate() 56 current = new Child(parent, uri, localName, parent.depth + 1, hash); in getOrCreate() 65 Element get(String uri, String localName) { in get() argument 66 int hash = uri.hashCode() * 31 + localName.hashCode(); in get() 75 && current.uri.compareTo(uri) == 0 in get() 91 Child(Element parent, String uri, String localName, int depth, in Child() argument 93 super(parent, uri, localName, depth); in Child()
|
D | Element.java | 34 final String uri; field in Element 48 Element(Element parent, String uri, String localName, int depth) { in Element() argument 50 this.uri = uri; in Element() 66 public Element getChild(String uri, String localName) { in getChild() argument 76 return children.getOrCreate(this, uri, localName); in getChild() 94 public Element requireChild(String uri, String localName) { in requireChild() argument 95 Element child = getChild(uri, localName); in requireChild() 168 return toString(uri, localName); in toString() 171 static String toString(String uri, String localName) { in toString() argument 172 return "'" + (uri.equals("") ? localName : uri + ":" + localName) + "'"; in toString()
|
D | RootElement.java | 76 public RootElement(String uri, String localName) { in RootElement() argument 77 super(null, uri, localName, 0); in RootElement() 110 public void startElement(String uri, String localName, String qName, in startElement() argument 116 startRoot(uri, localName, attributes); in startElement() 132 Element child = children.get(uri, localName); in startElement() 140 void startRoot(String uri, String localName, Attributes attributes) in startRoot() argument 143 if (root.uri.compareTo(uri) != 0 in startRoot() 147 + Element.toString(uri, localName), locator); in startRoot() 178 public void endElement(String uri, String localName, String qName) in endElement() argument
|
/frameworks/base/core/java/android/provider/ |
D | DocumentsProvider.java | 411 public final Cursor query(Uri uri, String[] projection, String selection, in query() argument 414 switch (mMatcher.match(uri)) { in query() 418 return queryRecentDocuments(getRootId(uri), projection); in query() 421 getRootId(uri), getSearchDocumentsQuery(uri), projection); in query() 423 return queryDocument(getDocumentId(uri), projection); in query() 425 if (DocumentsContract.isManageMode(uri)) { in query() 427 getDocumentId(uri), projection, sortOrder); in query() 429 return queryChildDocuments(getDocumentId(uri), projection, sortOrder); in query() 432 throw new UnsupportedOperationException("Unsupported Uri " + uri); in query() 446 public final String getType(Uri uri) { in getType() argument [all …]
|
D | SyncStateContract.java | 73 public static byte[] get(ContentProviderClient provider, Uri uri, in get() argument 75 Cursor c = provider.query(uri, DATA_PROJECTION, SELECT_BY_ACCOUNT, in get() 103 public static void set(ContentProviderClient provider, Uri uri, in set() argument 109 provider.insert(uri, values); in set() 112 public static Uri insert(ContentProviderClient provider, Uri uri, in insert() argument 118 return provider.insert(uri, values); in insert() 121 public static void update(ContentProviderClient provider, Uri uri, byte[] data) in update() argument 125 provider.update(uri, values, null, null); in update() 128 public static Pair<Uri, byte[]> getWithUri(ContentProviderClient provider, Uri uri, in getWithUri() argument 130 Cursor c = provider.query(uri, DATA_PROJECTION, SELECT_BY_ACCOUNT, in getWithUri() [all …]
|
/frameworks/base/drm/java/android/drm/ |
D | DrmManagerClient.java | 399 public ContentValues getConstraints(Uri uri, int action) { in getConstraints() argument 400 if (null == uri || Uri.EMPTY == uri) { in getConstraints() 403 return getConstraints(convertUriToPath(uri), action); in getConstraints() 414 public ContentValues getMetadata(Uri uri) { in getMetadata() argument 415 if (null == uri || Uri.EMPTY == uri) { in getMetadata() 418 return getMetadata(convertUriToPath(uri)); in getMetadata() 485 public boolean canHandle(Uri uri, String mimeType) { in canHandle() argument 486 if ((null == uri || Uri.EMPTY == uri) && (null == mimeType || mimeType.equals(""))) { in canHandle() 489 return canHandle(convertUriToPath(uri), mimeType); in canHandle() 574 public int getDrmObjectType(Uri uri, String mimeType) { in getDrmObjectType() argument [all …]
|
/frameworks/opt/mms/src/java/com/google/android/mms/util/ |
D | PduCache.java | 95 synchronized public boolean put(Uri uri, PduCacheEntry entry) { in put() argument 110 Uri finalKey = normalizeKey(uri); in put() 116 setUpdating(uri, false); in put() 120 synchronized public void setUpdating(Uri uri, boolean updating) { in setUpdating() argument 122 mUpdating.add(uri); in setUpdating() 124 mUpdating.remove(uri); in setUpdating() 128 synchronized public boolean isUpdating(Uri uri) { in isUpdating() argument 129 return mUpdating.contains(uri); in isUpdating() 133 synchronized public PduCacheEntry purge(Uri uri) { in purge() argument 134 int match = URI_MATCHER.match(uri); in purge() [all …]
|
/frameworks/base/cmds/content/src/com/android/commands/content/ |
D | Content.java | 168 Uri uri = null; in parseInsertCommand() local 173 uri = Uri.parse(argumentValueRequired(argument)); in parseInsertCommand() 182 if (uri == null) { in parseInsertCommand() 190 return new InsertCommand(uri, userId, values); in parseInsertCommand() 194 Uri uri = null; in parseDeleteCommand() local 199 uri = Uri.parse(argumentValueRequired(argument)); in parseDeleteCommand() 208 if (uri == null) { in parseDeleteCommand() 212 return new DeleteCommand(uri, userId, where); in parseDeleteCommand() 216 Uri uri = null; in parseUpdateCommand() local 222 uri = Uri.parse(argumentValueRequired(argument)); in parseUpdateCommand() [all …]
|
/frameworks/ex/common/java/com/android/common/content/ |
D | SQLiteContentProvider.java | 71 protected abstract Uri insertInTransaction(Uri uri, ContentValues values); in insertInTransaction() argument 76 protected abstract int updateInTransaction(Uri uri, ContentValues values, String selection, in updateInTransaction() argument 82 protected abstract int deleteInTransaction(Uri uri, String selection, String[] selectionArgs); in deleteInTransaction() argument 95 public Uri insert(Uri uri, ContentValues values) { in insert() argument 102 result = insertInTransaction(uri, values); in insert() 113 result = insertInTransaction(uri, values); in insert() 122 public int bulkInsert(Uri uri, ContentValues[] values) { in bulkInsert() argument 128 Uri result = insertInTransaction(uri, values[i]); in bulkInsert() 148 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument 155 count = updateInTransaction(uri, values, selection, selectionArgs); in update() [all …]
|
/frameworks/base/core/java/android/database/ |
D | ContentObserver.java | 128 public void onChange(boolean selfChange, Uri uri) { in onChange() argument 161 public final void dispatchChange(boolean selfChange, Uri uri) { in dispatchChange() argument 163 onChange(selfChange, uri); in dispatchChange() 165 mHandler.post(new NotificationRunnable(selfChange, uri)); in dispatchChange() 173 public NotificationRunnable(boolean selfChange, Uri uri) { in NotificationRunnable() argument 175 mUri = uri; in NotificationRunnable() 192 public void onChange(boolean selfChange, Uri uri) { in onChange() argument 195 contentObserver.dispatchChange(selfChange, uri); in onChange()
|
/frameworks/av/media/libstagefright/ |
D | DataSource.cpp | 183 const char *uri, const KeyedVector<String8, String8> *headers) { in CreateFromURI() argument 184 bool isWidevine = !strncasecmp("widevine://", uri, 11); in CreateFromURI() 187 if (!strncasecmp("file://", uri, 7)) { in CreateFromURI() 188 source = new FileSource(uri + 7); in CreateFromURI() 189 } else if (!strncasecmp("http://", uri, 7) in CreateFromURI() 190 || !strncasecmp("https://", uri, 8) in CreateFromURI() 197 tmp.append(uri + 11); in CreateFromURI() 199 uri = tmp.string(); in CreateFromURI() 202 if (httpSource->connect(uri, headers) != OK) { in CreateFromURI() 225 } else if (!strncasecmp("data:", uri, 5)) { in CreateFromURI() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/ |
D | DownloadManagerFunctionalTest.java | 75 public void doErrorTest(Uri uri, int error) throws Exception { in doErrorTest() argument 76 Request request = new Request(uri); in doErrorTest() 157 Uri uri = getServerUri(DEFAULT_FILENAME); in testDownloadToExternal_fileExists() local 158 Request request = new Request(uri); in testDownloadToExternal_fileExists() 195 Uri uri = getServerUri(DEFAULT_FILENAME); in testDownloadToExternal() local 196 Request request = new Request(uri); in testDownloadToExternal() 226 Uri uri = getServerUri(DEFAULT_FILENAME); in testDownloadToProhibitedDirectory() local 227 Request request = new Request(uri); in testDownloadToProhibitedDirectory() 267 Uri uri = getServerUri(DEFAULT_FILENAME); in testErrorTooManyRedirects() local 272 resp.setHeader("Location", uri.toString()); in testErrorTooManyRedirects() [all …]
|
/frameworks/support/tests/java/android/support/v4/content/ |
D | FileProviderTest.java | 171 final Uri uri = stageFileAndGetUri(file, TEST_DATA); in testQueryProjectionNull() local 174 Cursor cursor = mResolver.query(uri, null, null, null, null); in testQueryProjectionNull() 187 final Uri uri = stageFileAndGetUri(file, TEST_DATA); in testQueryProjectionOrder() local 190 Cursor cursor = mResolver.query(uri, new String[] { in testQueryProjectionOrder() 201 cursor = mResolver.query(uri, new String[] { in testQueryProjectionOrder() 215 final Uri uri = stageFileAndGetUri(file, TEST_DATA); in testQueryExtraColumn() local 218 Cursor cursor = mResolver.query(uri, new String[] { in testQueryExtraColumn() 232 final Uri uri = stageFileAndGetUri(file, TEST_DATA); in testReadFile() local 234 assertContentsEquals(TEST_DATA, uri); in testReadFile() 239 final Uri uri = stageFileAndGetUri(file, TEST_DATA); in testWriteFile() local [all …]
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
D | RecentsProvider.java | 172 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument 175 switch (sMatcher.match(uri)) { in query() 181 final String authority = uri.getPathSegments().get(1); in query() 182 final String rootId = uri.getPathSegments().get(2); in query() 183 final String documentId = uri.getPathSegments().get(3); in query() 188 final String packageName = uri.getPathSegments().get(1); in query() 192 throw new UnsupportedOperationException("Unsupported Uri " + uri); in query() 197 public String getType(Uri uri) { in getType() argument 202 public Uri insert(Uri uri, ContentValues values) { in insert() argument 205 switch (sMatcher.match(uri)) { in insert() [all …]
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/ |
D | ImageUtils.java | 99 public static BitmapResult createLocalBitmap(final ContentResolver resolver, final Uri uri, in createLocalBitmap() argument 102 final InputStreamFactory factory = createInputStreamFactory(resolver, uri); in createLocalBitmap() 207 final Uri uri) { in createInputStreamFactory() argument 208 final String scheme = uri.getScheme(); in createInputStreamFactory() 210 return new HttpInputStreamFactory(resolver, uri); in createInputStreamFactory() 212 return new DataInputStreamFactory(resolver, uri); in createInputStreamFactory() 214 return new BaseInputStreamFactory(resolver, uri); in createInputStreamFactory() 235 public BaseInputStreamFactory(final ContentResolver resolver, final Uri uri) { in BaseInputStreamFactory() argument 237 mUri = uri; in BaseInputStreamFactory() 249 public DataInputStreamFactory(final ContentResolver resolver, final Uri uri) { in DataInputStreamFactory() argument [all …]
|
/frameworks/base/core/java/android/database/sqlite/ |
D | SqliteWrapper.java | 56 public static Cursor query(Context context, ContentResolver resolver, Uri uri, in query() argument 59 return resolver.query(uri, projection, selection, selectionArgs, sortOrder); in query() 76 public static int update(Context context, ContentResolver resolver, Uri uri, in update() argument 79 return resolver.update(uri, values, where, selectionArgs); in update() 87 public static int delete(Context context, ContentResolver resolver, Uri uri, in delete() argument 90 return resolver.delete(uri, where, selectionArgs); in delete() 99 Uri uri, ContentValues values) { in insert() argument 101 return resolver.insert(uri, values); in insert()
|