/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 | 185 public Cursor query(Uri uri, String[] projection, in query() argument 188 enforceReadPermission(uri); in query() 189 return ContentProvider.this.query(uri, projection, selection, selectionArgs, sortOrder, in query() 194 public String getType(Uri uri) { in getType() argument 195 return ContentProvider.this.getType(uri); in getType() 199 public Uri insert(Uri uri, ContentValues initialValues) { in insert() argument 200 enforceWritePermission(uri); in insert() 201 return ContentProvider.this.insert(uri, initialValues); in insert() 205 public int bulkInsert(Uri uri, ContentValues[] initialValues) { in bulkInsert() argument 206 enforceWritePermission(uri); in bulkInsert() [all …]
|
D | ContentResolver.java | 311 public final Cursor query(Uri uri, String[] projection, in query() argument 313 return query(uri, projection, selection, selectionArgs, sortOrder, null); in query() 351 public final Cursor query(final Uri uri, String[] projection, in query() argument 354 IContentProvider unstableProvider = acquireUnstableProvider(uri); in query() 370 qCursor = unstableProvider.query(uri, projection, in query() 377 stableProvider = acquireProvider(uri); in query() 381 qCursor = stableProvider.query(uri, projection, in query() 390 maybeLogQueryToEventLog(durationMillis, uri, projection, selection, sortOrder); in query() 393 stableProvider != null ? stableProvider : acquireProvider(uri)); in query() 429 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 | 3279 public Intent(String action, Uri uri) { in Intent() argument 3281 mData = uri; in Intent() 3327 public Intent(String action, Uri uri, in Intent() argument 3330 mData = uri; in Intent() 3420 public static Intent getIntent(String uri) throws URISyntaxException { in getIntent() argument 3421 return parseUri(uri, 0); in getIntent() 3445 public static Intent parseUri(String uri, int flags) throws URISyntaxException { in parseUri() argument 3450 if (!uri.startsWith("intent:")) { in parseUri() 3453 intent.setData(Uri.parse(uri)); in parseUri() 3455 throw new URISyntaxException(uri, e.getMessage()); in parseUri() [all …]
|
D | ClipData.java | 226 public Item(Uri uri) { in Item() argument 230 mUri = uri; in Item() 237 public Item(CharSequence text, Intent intent, Uri uri) { in Item() argument 241 mUri = uri; in Item() 250 public Item(CharSequence text, String htmlText, Intent intent, Uri uri) { in Item() argument 258 mUri = uri; in Item() 319 Uri uri = getUri(); in coerceToText() local 320 if (uri != null) { in coerceToText() 329 .openTypedAssetFileDescriptor(uri, "text/*", null); in coerceToText() 362 return uri.toString(); in coerceToText() [all …]
|
D | ContextWrapper.java | 452 public void grantUriPermission(String toPackage, Uri uri, int modeFlags) { in grantUriPermission() argument 453 mBase.grantUriPermission(toPackage, uri, modeFlags); in grantUriPermission() 457 public void revokeUriPermission(Uri uri, int modeFlags) { in revokeUriPermission() argument 458 mBase.revokeUriPermission(uri, modeFlags); in revokeUriPermission() 462 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission() argument 463 return mBase.checkUriPermission(uri, pid, uid, modeFlags); in checkUriPermission() 467 public int checkCallingUriPermission(Uri uri, int modeFlags) { in checkCallingUriPermission() argument 468 return mBase.checkCallingUriPermission(uri, modeFlags); in checkCallingUriPermission() 472 public int checkCallingOrSelfUriPermission(Uri uri, int modeFlags) { in checkCallingOrSelfUriPermission() argument 473 return mBase.checkCallingOrSelfUriPermission(uri, modeFlags); in checkCallingOrSelfUriPermission() [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 | 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 | 385 public ContentValues getConstraints(Uri uri, int action) { in getConstraints() argument 386 if (null == uri || Uri.EMPTY == uri) { in getConstraints() 389 return getConstraints(convertUriToPath(uri), action); in getConstraints() 400 public ContentValues getMetadata(Uri uri) { in getMetadata() argument 401 if (null == uri || Uri.EMPTY == uri) { in getMetadata() 404 return getMetadata(convertUriToPath(uri)); in getMetadata() 471 public boolean canHandle(Uri uri, String mimeType) { in canHandle() argument 472 if ((null == uri || Uri.EMPTY == uri) && (null == mimeType || mimeType.equals(""))) { in canHandle() 475 return canHandle(convertUriToPath(uri), mimeType); in canHandle() 560 public int getDrmObjectType(Uri uri, String mimeType) { in getDrmObjectType() argument [all …]
|
/frameworks/base/cmds/content/src/com/android/commands/content/ |
D | Content.java | 152 Uri uri = null; in parseInsertCommand() local 156 uri = Uri.parse(argumentValueRequired(argument)); in parseInsertCommand() 163 if (uri == null) { in parseInsertCommand() 171 return new InsertCommand(uri, values); in parseInsertCommand() 175 Uri uri = null; in parseDeleteCommand() local 179 uri = Uri.parse(argumentValueRequired(argument)); in parseDeleteCommand() 186 if (uri == null) { in parseDeleteCommand() 190 return new DeleteCommand(uri, where); in parseDeleteCommand() 194 Uri uri = null; in parseUpdateCommand() local 199 uri = Uri.parse(argumentValueRequired(argument)); in parseUpdateCommand() [all …]
|
/frameworks/av/media/libstagefright/ |
D | DataSource.cpp | 133 const char *uri, const KeyedVector<String8, String8> *headers) { in CreateFromURI() argument 134 bool isWidevine = !strncasecmp("widevine://", uri, 11); in CreateFromURI() 137 if (!strncasecmp("file://", uri, 7)) { in CreateFromURI() 138 source = new FileSource(uri + 7); in CreateFromURI() 139 } else if (!strncasecmp("http://", uri, 7) in CreateFromURI() 140 || !strncasecmp("https://", uri, 8) in CreateFromURI() 147 tmp.append(uri + 11); in CreateFromURI() 149 uri = tmp.string(); in CreateFromURI() 152 if (httpSource->connect(uri, headers) != OK) { in CreateFromURI() 175 } else if (!strncasecmp("data:", uri, 5)) { in CreateFromURI() [all …]
|
/frameworks/base/core/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 …]
|
D | SqliteWrapper.java | 68 public static Cursor query(Context context, ContentResolver resolver, Uri uri, in query() argument 71 return resolver.query(uri, projection, selection, selectionArgs, sortOrder); in query() 88 public static int update(Context context, ContentResolver resolver, Uri uri, in update() argument 91 return resolver.update(uri, values, where, selectionArgs); in update() 99 public static int delete(Context context, ContentResolver resolver, Uri uri, in delete() argument 102 return resolver.delete(uri, where, selectionArgs); in delete() 111 Uri uri, ContentValues values) { in insert() argument 113 return resolver.insert(uri, values); in insert()
|
/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/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/base/core/java/android/webkit/ |
D | CookieManagerClassic.java | 65 WebAddress uri; in setCookie() local 67 uri = new WebAddress(url); in setCookie() 73 nativeSetCookie(uri.toString(), value, privateBrowsing); in setCookie() 83 WebAddress uri; in getCookie() local 85 uri = new WebAddress(url); in getCookie() 91 return nativeGetCookie(uri.toString(), privateBrowsing); in getCookie() 95 public synchronized String getCookie(WebAddress uri) { in getCookie() argument 96 return nativeGetCookie(uri.toString(), false); in getCookie()
|
/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()
|
/frameworks/base/core/tests/coretests/src/android/content/ |
D | ContentProviderOperationTest.java | 57 public Uri insert(Uri uri, ContentValues values) { in testInsert() 58 assertEquals(sTestUri1.toString(), uri.toString()); in testInsert() 60 return uri.buildUpon().appendPath("19").build(); in testInsert() 63 assertEquals(sTestUri1.buildUpon().appendPath("19").toString(), result.uri.toString()); in testInsert() 70 public Uri insert(Uri uri, ContentValues values) { in testInsertNoValues() 71 assertEquals(sTestUri1.toString(), uri.toString()); in testInsertNoValues() 73 return uri.buildUpon().appendPath("19").build(); in testInsertNoValues() 76 assertEquals(sTestUri1.buildUpon().appendPath("19").toString(), result.uri.toString()); in testInsertNoValues() 85 public Uri insert(Uri uri, ContentValues values) { in testInsertFailed() 86 assertEquals(sTestUri1.toString(), uri.toString()); in testInsertFailed() [all …]
|