/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
BluetoothSharingRestrictionTest.java | 26 import android.net.Uri; 87 final Uri uri = Uri.parse("content://foo/bar"); local 88 result.setDataAndType(uri, "image/*");
|
/cts/hostsidetests/inputmethodservice/deviceside/provider/src/android/inputmethodservice/cts/provider/ |
EventProvider.java | 29 import android.net.Uri; 69 public Cursor query(@NonNull final Uri uri, @Nullable final String[] projection, 72 final UriHelper uriHelper = mUriFactory.newInstance(uri); 75 + " uri=" + uri 88 cursor.setNotificationUri(getContext().getContentResolver(), uri); local 93 public Uri insert(@NonNull final Uri uri, @Nullable final ContentValues values) [all...] |
/cts/tests/JobScheduler/src/android/jobscheduler/ |
DummyJobContentProvider.java | 26 import android.net.Uri; 41 public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY); 82 * @see android.content.ContentProvider#insert(android.net.Uri, 86 public Uri insert(Uri uri, ContentValues values) { 87 String tbName = getTableName(uri); 93 getContext().getContentResolver().notifyChange(uri, null); 94 return uri; 112 c.setNotificationUri(getContext().getContentResolver(), uri); local [all...] |
/cts/tests/tests/content/src/android/content/cts/ |
ContentUrisTest.java | 20 import android.net.Uri; 21 import android.net.Uri.Builder; 32 private Uri uri1 = Uri.parse("content://" + AUTHORITY + "/" + PATH1); 33 private Uri uri2 = Uri.parse("content://" + AUTHORITY + "/" + PATH2); 40 Uri result = ContentUris.withAppendedId(uri1, CODE1); 46 // no code in Uri 47 assertEquals(-1, ContentUris.parseId(Uri.parse(""))); 58 Uri uri = Uri.fromParts("abc", "123", null) local [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStore_Audio_PlaylistsTest.java | 24 import android.net.Uri; 74 Uri uri = mContentResolver.insert(Playlists.EXTERNAL_CONTENT_URI, values); local 75 assertNotNull(uri); 79 Cursor c = mContentResolver.query(uri, null, null, null, null); 97 assertEquals(1, mContentResolver.update(uri, values, null, null)); 98 c = mContentResolver.query(uri, null, null, null, null); 108 assertEquals(1, mContentResolver.delete(uri, null, null)); 121 Uri uri = mContentResolver.insert(Playlists.INTERNAL_CONTENT_URI, values) local [all...] |
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
ContactUtil.java | 23 import android.net.Uri; 34 private static final Uri URI = ContactsContract.Contacts.CONTENT_URI; 38 Uri uri = ContentUris.withAppendedId(URI, contactId); local 39 resolver.update(uri, values, null, null); 43 Uri uri = ContentUris.withAppendedId(URI, contactId) local 51 Uri uri = ContentUris.withAppendedId(URI, contactId); local 64 Uri uri = ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI, contactId); local [all...] |
ContactsContract_DeletedContacts.java | 23 import android.net.Uri; 38 private static final Uri URI = ContactsContract.DeletedContacts.CONTENT_URI; 49 DatabaseAsserts.assertDeleteIsUnsupported(mResolver, URI); 51 Uri uri = ContentUris.withAppendedId(URI, 1L); local 52 DatabaseAsserts.assertDeleteIsUnsupported(mResolver, uri); 56 DatabaseAsserts.assertInsertIsUnsupported(mResolver, URI);
|
RawContactUtil.java | 24 import android.net.Uri; 34 private static final Uri URI = ContactsContract.RawContacts.CONTENT_URI; 38 Uri uri = ContentUris.withAppendedId(URI, rawContactId); local 39 resolver.update(uri, values, null, null); 60 Uri uri = resolver.insert(URI, values) local 66 Uri uri = ContentUris.withAppendedId(URI, rawContactId); local 78 Uri uri = ContentUris.withAppendedId(URI, contactId); local 85 Uri uri = ContentUris.withAppendedId(URI, rawContactId) local [all...] |
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/ |
RGBZ.java | 24 import android.net.Uri; 49 * Creates an RGBZ from a content uri. 51 * @param uri The uri name of the RGBZ 54 public RGBZ(Uri uri, ContentResolver contentResolver, Context context) throws IOException { 55 preview = BitmapFactory.decodeStream(contentResolver.openInputStream(uri)); 57 throw new FileNotFoundException(uri.toString()); 59 depthImage = DepthImage.createFromXMPMetadata(context, uri); 68 * @param uriImage The uri name of the imag [all...] |
/developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/simple/ |
SimpleTvInputSetupActivity.java | 28 import android.net.Uri; 62 Uri uri = TvContract.buildChannelsUriForInput(mInputId); local 65 cursor = getContentResolver().query(uri, null, null, null, null);
|
/developers/build/prebuilts/gradle/BasicContactables/Application/src/main/java/com/example/android/basiccontactables/ |
ContactablesLoaderCallbacks.java | 24 import android.net.Uri; 56 Uri uri = Uri.withAppendedPath( local 71 uri, // URI representing the table/resource to be queried
|
/developers/build/prebuilts/gradle/DataLayer/Wearable/src/main/java/com/example/android/wearable/datalayer/ |
DataLayerListenerService.java | 20 import android.net.Uri; 71 Uri uri = event.getDataItem().getUri(); local 72 String path = uri.getPath(); 75 // the uri. 76 String nodeId = uri.getHost(); 77 // Set the data of the message to be the bytes of the Uri. 78 byte[] payload = uri.toString().getBytes();
|
/developers/samples/android/content/contacts/BasicContactables/Application/src/main/java/com/example/android/basiccontactables/ |
ContactablesLoaderCallbacks.java | 24 import android.net.Uri; 56 Uri uri = Uri.withAppendedPath( local 71 uri, // URI representing the table/resource to be queried
|
/developers/samples/android/wearable/wear/DataLayer/Wearable/src/main/java/com/example/android/wearable/datalayer/ |
DataLayerListenerService.java | 20 import android.net.Uri; 71 Uri uri = event.getDataItem().getUri(); local 72 String path = uri.getPath(); 75 // the uri. 76 String nodeId = uri.getHost(); 77 // Set the data of the message to be the bytes of the Uri. 78 byte[] payload = uri.toString().getBytes();
|
/development/apps/Development/src/com/android/development/ |
DataList.java | 22 import android.net.Uri; 97 Uri uri = null; local 100 uri = Uri.withAppendedPath(getIntent().getData(), mCursor.getString(idCol)); 102 Intent intent = new Intent(Intent.ACTION_VIEW, uri);
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
ActionBarShareActionProviderActivity.java | 22 import android.net.Uri; 85 Uri uri = Uri.fromFile(getFileStreamPath("shared.png")); local 86 shareIntent.putExtra(Intent.EXTRA_STREAM, uri);
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
WindowFocusObserver.java | 21 import android.net.Uri; 73 Uri uri = Uri.fromFile(getFileStreamPath("shared.png")); local 74 shareIntent.putExtra(Intent.EXTRA_STREAM, uri);
|
/development/samples/ContactManager/src/com/example/android/contactmanager/ |
ContactManager.java | 22 import android.net.Uri; 104 Uri uri = ContactsContract.Contacts.CONTENT_URI; local 114 return managedQuery(uri, projection, selection, selectionArgs, sortOrder);
|
/development/samples/MySampleRss/src/com/example/codelab/rssexample/ |
MyRssReader4.java | 31 import android.net.Uri; 130 // Create our content URI by adding the ID of the currently selected item using a 157 Uri uri = getContentResolver().insert( local 160 if(uri != null){
|
RssContentProvider.java | 27 import android.net.Uri; 47 // incoming URI parameter is. 55 // Here's the public URI used to query for RSS items. 56 public static final Uri CONTENT_URI = Uri.parse( "content://my_rss_item/rssitem"); 118 // Convert the URI into a custom MIME type. 119 // Our UriMatcher will parse the URI to decide whether the 120 // URI is for a single item or a list. 122 public String getType(Uri uri) { 165 c.setNotificationUri(getContext().getContentResolver(), uri); local [all...] |
/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/ |
MusicRetriever.java | 22 import android.net.Uri; 33 * resolver). After that, it's ready to retrieve a random song, with its title and URI, upon 55 Uri uri = android.provider.MediaStore.Audio.Media.EXTERNAL_CONTENT_URI; local 57 Log.i(TAG, "URI: " + uri.toString()); 59 // Perform a query on the content resolver. The URI we're passing specifies that we 61 Cursor cur = mContentResolver.query(uri, null, 147 public Uri getURI() {
|
/development/samples/SearchableDictionary/src/com/example/android/searchabledict/ |
WordActivity.java | 25 import android.net.Uri; 48 Uri uri = getIntent().getData(); local 49 Cursor cursor = managedQuery(uri, null, null, null, null);
|
/development/samples/browseable/BasicContactables/src/com.example.android.basiccontactables/ |
ContactablesLoaderCallbacks.java | 24 import android.net.Uri; 56 Uri uri = Uri.withAppendedPath( local 71 uri, // URI representing the table/resource to be queried
|
/development/samples/browseable/DataLayer/Wearable/src/com.example.android.wearable.datalayer/ |
DataLayerListenerService.java | 20 import android.net.Uri; 71 Uri uri = event.getDataItem().getUri(); local 72 String path = uri.getPath(); 75 // the uri. 76 String nodeId = uri.getHost(); 77 // Set the data of the message to be the bytes of the Uri. 78 byte[] payload = uri.toString().getBytes();
|
/device/sample/apps/LeanbackCustomizer/src/com/google/android/leanbacklauncher/partnercustomizer/ |
PartnerReceiver.java | 27 import android.net.Uri; 140 intent.setData(Uri.parse("market://details?id=" + pkgName)); 146 Uri uri = intent.getData(); local 147 String pkg = uri != null ? uri.getSchemeSpecificPart() : null;
|