Home
last modified time | relevance | path

Searched refs:Uri (Results 1 – 25 of 294) sorted by relevance

12345678910>>...12

/frameworks/base/core/tests/coretests/src/android/net/
DUriTest.java33 Uri.Builder builder = new Uri.Builder(); in testToStringWithPathOnly()
37 Uri uri = builder.build(); in testToStringWithPathOnly()
43 parcelAndUnparcel(Uri.parse("foo:bob%20lee")); in testParcelling()
44 parcelAndUnparcel(Uri.fromParts("foo", "bob lee", "fragment")); in testParcelling()
45 parcelAndUnparcel(new Uri.Builder() in testParcelling()
54 private void parcelAndUnparcel(Uri u) { in parcelAndUnparcel()
57 Uri.writeToParcel(p, u); in parcelAndUnparcel()
59 assertEquals(u, Uri.CREATOR.createFromParcel(p)); in parcelAndUnparcel()
63 Uri.writeToParcel(p, u); in parcelAndUnparcel()
65 assertEquals(u, Uri.CREATOR.createFromParcel(p)); in parcelAndUnparcel()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/
DObserverNodeTest.java24 import android.net.Uri;
37 Uri[] uris = new Uri[] { in testUri()
38 Uri.parse("content://c/a/"), in testUri()
39 Uri.parse("content://c/"), in testUri()
40 Uri.parse("content://x/"), in testUri()
41 Uri.parse("content://c/b/"), in testUri()
42 Uri.parse("content://c/a/a1/1/"), in testUri()
43 Uri.parse("content://c/a/a1/2/"), in testUri()
44 Uri.parse("content://c/b/1/"), in testUri()
45 Uri.parse("content://c/b/2/"), in testUri()
[all …]
/frameworks/base/core/java/com/google/android/mms/util/
DPduCache.java22 import android.net.Uri;
29 public final class PduCache extends AbstractCache<Uri, PduCacheEntry> {
74 private final HashMap<Integer, HashSet<Uri>> mMessageBoxes;
75 private final HashMap<Long, HashSet<Uri>> mThreads;
76 private final HashSet<Uri> mUpdating;
79 mMessageBoxes = new HashMap<Integer, HashSet<Uri>>(); in PduCache()
80 mThreads = new HashMap<Long, HashSet<Uri>>(); in PduCache()
81 mUpdating = new HashSet<Uri>(); in PduCache()
95 synchronized public boolean put(Uri uri, PduCacheEntry entry) { in put()
97 HashSet<Uri> msgBox = mMessageBoxes.get(msgBoxId); in put()
[all …]
/frameworks/base/core/java/android/provider/
DTelephony.java27 import android.net.Uri;
198 public static final Uri CONTENT_URI =
199 Uri.parse("content://sms");
219 public static Uri addMessageToUri(ContentResolver resolver, in addMessageToUri()
220 Uri uri, String address, String body, String subject, in addMessageToUri()
240 public static Uri addMessageToUri(ContentResolver resolver, in addMessageToUri()
241 Uri uri, String address, String body, String subject, in addMessageToUri()
270 Uri uri, int folder, int error) { in moveMessageToFolder()
325 public static final Uri CONTENT_URI =
326 Uri.parse("content://sms/inbox");
[all …]
DMediaStore.java33 import android.net.Uri;
333 public static Uri getContentUri(String volumeName) { in getContentUri()
334 return Uri.parse(CONTENT_AUTHORITY_SLASH + volumeName + in getContentUri()
346 public static final Uri getContentUri(String volumeName, in getContentUri()
348 return Uri.parse(CONTENT_AUTHORITY_SLASH + volumeName in getContentUri()
356 public static Uri getMtpObjectsUri(String volumeName) { in getMtpObjectsUri()
357 return Uri.parse(CONTENT_AUTHORITY_SLASH + volumeName + in getMtpObjectsUri()
365 public static final Uri getMtpObjectsUri(String volumeName, in getMtpObjectsUri()
367 return Uri.parse(CONTENT_AUTHORITY_SLASH + volumeName in getMtpObjectsUri()
375 public static final Uri getMtpReferencesUri(String volumeName, in getMtpReferencesUri()
[all …]
DBrowserContract.java28 import android.net.Uri;
49 public static final Uri AUTHORITY_URI = Uri.parse("content://" + AUTHORITY);
254 public static final Uri CONTENT_URI = Uri.withAppendedPath(AUTHORITY_URI, "bookmarks");
303 public static final Uri CONTENT_URI_DEFAULT_FOLDER =
304 Uri.withAppendedPath(CONTENT_URI, "folder");
323 public static final Uri buildFolderUri(long folderId) { in buildFolderUri()
410 public static final Uri CONTENT_URI =
447 public static final Uri CONTENT_URI = Uri.withAppendedPath(AUTHORITY_URI, "history");
470 public static final Uri CONTENT_URI = Uri.withAppendedPath(AUTHORITY_URI, "searches");
518 public static final Uri CONTENT_URI =
[all …]
DContactsContract.java37 import android.net.Uri;
117 public static final Uri AUTHORITY_URI = Uri.parse("content://" + AUTHORITY);
443 public static final Uri CONTENT_URI =
444 Uri.withAppendedPath(AUTHORITY_URI, "directories");
647 public static final Uri CONTENT_URI =
648 Uri.withAppendedPath(AUTHORITY_URI, CONTENT_DIRECTORY);
661 public static Pair<Uri, byte[]> getWithUri(ContentProviderClient provider, Account account) in getWithUri()
701 public static final Uri CONTENT_URI =
702 Uri.withAppendedPath(Profile.CONTENT_URI, CONTENT_DIRECTORY);
715 public static Pair<Uri, byte[]> getWithUri(ContentProviderClient provider, Account account) in getWithUri()
[all …]
DContacts.java28 import android.net.Uri;
60 public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY);
153 public static final Uri CONTENT_URI =
154 Uri.parse("content://contacts/settings");
354 public static final Uri CONTENT_URI =
355 Uri.parse("content://contacts/people");
363 public static final Uri CONTENT_FILTER_URI =
364 Uri.parse("content://contacts/people/filter");
372 public static final Uri DELETED_CONTENT_URI =
373 Uri.parse("content://contacts/deleted_people");
[all …]
DCallLog.java27 import android.net.Uri;
42 public static final Uri CONTENT_URI =
43 Uri.parse("content://" + AUTHORITY);
52 public static final Uri CONTENT_URI =
53 Uri.parse("content://call_log/calls");
58 public static final Uri CONTENT_FILTER_URI =
59 Uri.parse("content://call_log/calls/filter");
80 public static final Uri CONTENT_URI_WITH_VOICEMAIL = CONTENT_URI.buildUpon()
264 public static Uri addCall(CallerInfo ci, Context context, String number, in addCall()
317 Uri.withAppendedPath(Callable.CONTENT_FILTER_URI, in addCall()
[all …]
/frameworks/base/test-runner/src/android/test/mock/
DMockContentProvider.java30 import android.net.Uri;
62 public int bulkInsert(Uri url, ContentValues[] initialValues) throws RemoteException { in bulkInsert()
67 public int delete(Uri url, String selection, String[] selectionArgs) in delete()
73 public String getType(Uri url) throws RemoteException { in getType()
78 public Uri insert(Uri url, ContentValues initialValues) throws RemoteException { in insert()
83 public AssetFileDescriptor openAssetFile(Uri url, String mode) throws RemoteException, in openAssetFile()
89 public ParcelFileDescriptor openFile(Uri url, String mode) throws RemoteException, in openFile()
95 public Cursor query(Uri url, String[] projection, String selection, String[] selectionArgs, in query()
102 public int update(Uri url, ContentValues values, String selection, String[] selectionArgs) in update()
119 public String[] getStreamTypes(Uri url, String mimeTypeFilter) throws RemoteException { in getStreamTypes()
[all …]
DMockIContentProvider.java26 import android.net.Uri;
44 public int bulkInsert(Uri url, ContentValues[] initialValues) { in bulkInsert()
49 public int delete(Uri url, String selection, String[] selectionArgs) in delete()
54 public String getType(Uri url) { in getType()
59 public Uri insert(Uri url, ContentValues initialValues) throws RemoteException { in insert()
63 public ParcelFileDescriptor openFile(Uri url, String mode) { in openFile()
67 public AssetFileDescriptor openAssetFile(Uri uri, String mode) { in openAssetFile()
75 public Cursor query(Uri url, String[] projection, String selection, String[] selectionArgs, in query()
80 public EntityIterator queryEntities(Uri url, String selection, String[] selectionArgs, in queryEntities()
85 public int update(Uri url, ContentValues values, String selection, String[] selectionArgs) in update()
[all …]
/frameworks/base/core/java/android/content/
DIContentProvider.java21 import android.net.Uri;
37 public Cursor query(Uri url, String[] projection, String selection, in query()
40 public String getType(Uri url) throws RemoteException; in getType()
41 public Uri insert(Uri url, ContentValues initialValues) in insert()
43 public int bulkInsert(Uri url, ContentValues[] initialValues) throws RemoteException; in bulkInsert()
44 public int delete(Uri url, String selection, String[] selectionArgs) in delete()
46 public int update(Uri url, ContentValues values, String selection, in update()
48 public ParcelFileDescriptor openFile(Uri url, String mode) in openFile()
50 public AssetFileDescriptor openAssetFile(Uri url, String mode) in openAssetFile()
58 public String[] getStreamTypes(Uri url, String mimeTypeFilter) throws RemoteException; in getStreamTypes()
[all …]
DContentProvider.java28 import android.net.Uri;
185 public Cursor query(Uri uri, String[] projection, in query()
194 public String getType(Uri uri) { in getType()
199 public Uri insert(Uri uri, ContentValues initialValues) { in insert()
205 public int bulkInsert(Uri uri, ContentValues[] initialValues) { in bulkInsert()
226 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete()
232 public int update(Uri uri, ContentValues values, String selection, in update()
239 public ParcelFileDescriptor openFile(Uri uri, String mode) in openFile()
247 public AssetFileDescriptor openAssetFile(Uri uri, String mode) in openAssetFile()
260 public String[] getStreamTypes(Uri uri, String mimeTypeFilter) { in getStreamTypes()
[all …]
DContentProviderNative.java28 import android.net.Uri;
84 Uri url = Uri.CREATOR.createFromParcel(data); in onTransact()
134 Uri url = Uri.CREATOR.createFromParcel(data); in onTransact()
145 Uri url = Uri.CREATOR.createFromParcel(data); in onTransact()
148 Uri out = insert(url, values); in onTransact()
150 Uri.writeToParcel(reply, out); in onTransact()
157 Uri url = Uri.CREATOR.createFromParcel(data); in onTransact()
184 Uri url = Uri.CREATOR.createFromParcel(data); in onTransact()
198 Uri url = Uri.CREATOR.createFromParcel(data); in onTransact()
213 Uri url = Uri.CREATOR.createFromParcel(data); in onTransact()
[all …]
DContentUris.java19 import android.net.Uri;
84 public static long parseId(Uri contentUri) { in parseId()
97 public static Uri.Builder appendId(Uri.Builder builder, long id) { in appendId()
109 public static Uri withAppendedId(Uri contentUri, long id) { in withAppendedId()
DContentProviderClient.java20 import android.net.Uri;
62 public Cursor query(Uri url, String[] projection, String selection, in query()
75 public Cursor query(Uri url, String[] projection, String selection, in query()
95 public String getType(Uri url) throws RemoteException { in getType()
107 public String[] getStreamTypes(Uri url, String mimeTypeFilter) throws RemoteException { in getStreamTypes()
119 public Uri insert(Uri url, ContentValues initialValues) in insert()
132 public int bulkInsert(Uri url, ContentValues[] initialValues) throws RemoteException { in bulkInsert()
144 public int delete(Uri url, String selection, String[] selectionArgs) in delete()
157 public int update(Uri url, ContentValues values, String selection, in update()
176 public ParcelFileDescriptor openFile(Uri url, String mode) in openFile()
[all …]
/frameworks/base/media/java/android/media/
DMediaInserter.java21 import android.net.Uri;
35 private final HashMap<Uri, List<ContentValues>> mRowMap =
36 new HashMap<Uri, List<ContentValues>>();
37 private final HashMap<Uri, List<ContentValues>> mPriorityRowMap =
38 new HashMap<Uri, List<ContentValues>>();
48 public void insert(Uri tableUri, ContentValues values) throws RemoteException { in insert()
52 public void insertwithPriority(Uri tableUri, ContentValues values) throws RemoteException { in insertwithPriority()
56 … private void insert(Uri tableUri, ContentValues values, boolean priority) throws RemoteException { in insert()
57 HashMap<Uri, List<ContentValues>> rowmap = priority ? mPriorityRowMap : mRowMap; in insert()
72 for (Uri tableUri : mRowMap.keySet()){ in flushAll()
[all …]
DRingtoneManager.java28 import android.net.Uri;
395 public Uri getRingtoneUri(int position) { in getRingtoneUri()
405 private static Uri getUriFromCursor(Cursor cursor) { in getUriFromCursor()
406 return ContentUris.withAppendedId(Uri.parse(cursor.getString(URI_COLUMN_INDEX)), cursor in getUriFromCursor()
416 public int getRingtonePosition(Uri ringtoneUri) { in getRingtonePosition()
428 Uri currentUri = null; in getRingtonePosition()
433 currentUri = Uri.parse(uriString); in getRingtonePosition()
456 public static Uri getValidRingtoneUri(Context context) { in getValidRingtoneUri()
459 Uri uri = getValidRingtoneUriFromCursorAndClose(context, rm.getInternalRingtones()); in getValidRingtoneUri()
472 private static Uri getValidRingtoneUriFromCursorAndClose(Context context, Cursor cursor) { in getValidRingtoneUriFromCursorAndClose()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeContentProvider.java26 import android.net.Uri;
50 public int bulkInsert(Uri arg0, ContentValues[] arg1) throws RemoteException { in bulkInsert()
62 public int delete(Uri arg0, String arg1, String[] arg2) throws RemoteException { in delete()
68 public String getType(Uri arg0) throws RemoteException { in getType()
74 public Uri insert(Uri arg0, ContentValues arg1) throws RemoteException { in insert()
80 public AssetFileDescriptor openAssetFile(Uri arg0, String arg1) throws RemoteException, in openAssetFile()
87 public ParcelFileDescriptor openFile(Uri arg0, String arg1) throws RemoteException, in openFile()
94 public Cursor query(Uri arg0, String[] arg1, String arg2, String[] arg3, String arg4, in query()
101 public int update(Uri arg0, ContentValues arg1, String arg2, String[] arg3) in update()
114 public String[] getStreamTypes(Uri arg0, String arg1) throws RemoteException { in getStreamTypes()
[all …]
/frameworks/base/core/tests/coretests/EnabledTestApp/src/com/android/frameworks/coretests/enabled_app/
DEnabledProvider.java22 import android.net.Uri;
34 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query()
39 public String getType(Uri uri) { in getType()
43 public Uri insert(Uri uri, ContentValues values) { in insert()
47 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete()
51 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update()
DDisabledProvider.java22 import android.net.Uri;
34 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query()
39 public String getType(Uri uri) { in getType()
43 public Uri insert(Uri uri, ContentValues values) { in insert()
47 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete()
51 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DMediaInserterTest.java22 import android.net.Uri;
48 private static final Uri sAudioUri = Audio.Media.getContentUri(sVolumeName);
49 private static final Uri sVideoUri = Video.Media.getContentUri(sVolumeName);
50 private static final Uri sImagesUri = Images.Media.getContentUri(sVolumeName);
51 private static final Uri sFilesUri = Files.getContentUri(sVolumeName);
54 private Uri mUri;
56 private MediaUriMatcher(Uri uri) { in MediaUriMatcher()
62 if (!(argument instanceof Uri)) { in matches()
66 Uri actualUri = (Uri) argument; in matches()
76 private static Uri expectMediaUri(Uri in) { in expectMediaUri()
[all …]
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
DTrackerProvider.java26 import android.net.Uri;
37 public static final Uri CONTENT_URI = Uri
86 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete()
94 public String getType(Uri uri) { in getType()
99 public Uri insert(Uri uri, ContentValues values) { in insert()
103 Uri addedUri = ContentUris.withAppendedId(CONTENT_URI, rowId); in insert()
111 public Cursor query(Uri uri, String[] projection, String selection, in query()
122 public int update(Uri uri, ContentValues values, String selection, in update()
/frameworks/ex/common/java/com/android/common/content/
DSQLiteContentProvider.java28 import android.net.Uri;
71 protected abstract Uri insertInTransaction(Uri uri, ContentValues values); in insertInTransaction()
76 protected abstract int updateInTransaction(Uri uri, ContentValues values, String selection, in updateInTransaction()
82 protected abstract int deleteInTransaction(Uri uri, String selection, String[] selectionArgs); in deleteInTransaction()
95 public Uri insert(Uri uri, ContentValues values) { in insert()
96 Uri result = null; in insert()
122 public int bulkInsert(Uri uri, ContentValues[] values) { in bulkInsert()
128 Uri result = insertInTransaction(uri, values[i]); in bulkInsert()
148 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update()
176 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete()
/frameworks/base/core/tests/coretests/src/android/app/
DDownloadManagerFunctionalTest.java22 import android.net.Uri;
75 public void doErrorTest(Uri uri, int error) throws Exception { in doErrorTest()
157 Uri uri = getServerUri(DEFAULT_FILENAME); in testDownloadToExternal_fileExists()
160 Uri localUri = Uri.fromFile(existentFile); in testDownloadToExternal_fileExists()
195 Uri uri = getServerUri(DEFAULT_FILENAME); in testDownloadToExternal()
198 Uri localUri = Uri.fromFile(downloadedFile); in testDownloadToExternal()
226 Uri uri = getServerUri(DEFAULT_FILENAME); in testDownloadToProhibitedDirectory()
229 Uri localUri = Uri.fromFile(downloadedFile); in testDownloadToProhibitedDirectory()
267 Uri uri = getServerUri(DEFAULT_FILENAME); in testErrorTooManyRedirects()
283 Uri uri = getServerUri(DEFAULT_FILENAME); in testErrorUnhandledHttpCode()
[all …]

12345678910>>...12