/packages/apps/DocumentsUI/src/com/android/documentsui/services/ |
ResolvedResourcesJob.java | 21 import android.net.Uri; 47 final List<Uri> mAcquiredArchivedUris = new ArrayList<>(); 66 Iterable<Uri> uris = mResourceUris.getUris(appContext); 67 for (Uri uri : uris) { 69 if (ArchivesProvider.AUTHORITY.equals(uri.getAuthority())) { 70 ArchivesProvider.acquireArchive(getClient(uri), uri); local 71 mAcquiredArchivedUris.add(uri); 99 for (Uri uri : mAcquiredArchivedUris) 101 ArchivesProvider.releaseArchive(getClient(uri), uri); local [all...] |
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ |
ContextMenuUiTest.java | 21 import android.net.Uri; 61 Uri uri = mDocsHelper.createFolder(rootDir0, dirName1); local 62 mDocsHelper.createFolder(uri, childDir1);
|
/packages/apps/Email/src/com/android/email/activity/ |
EventViewer.java | 23 import android.net.Uri; 38 Uri uri = getIntent().getData(); local 39 long messageId = Long.parseLong(uri.getLastPathSegment()); 65 uri = ContentUris.withAppendedId(CalendarContract.Events.CONTENT_URI, eventId); 74 uri = Uri.parse("content://com.android.calendar/time/" + time); 77 intent.setData(uri);
|
/packages/apps/Email/tests/src/com/android/email/activity/setup/ |
EmailPreferenceActivityTests.java | 22 import android.net.Uri; 74 Uri uri = ContentUris.withAppendedId(Account.CONTENT_URI, mAccountId); local 75 mContext.getContentResolver().delete(uri, null, null);
|
/packages/apps/EmergencyInfo/tests/src/com/android/emergency/ |
ContactTestUtils.java | 22 import android.net.Uri; 35 Uri contactUri = Uri.withAppendedPath(ContactsContract.PhoneLookup.CONTENT_FILTER_URI, 36 Uri.encode(phone)); 46 Uri uri = Uri.withAppendedPath(ContactsContract.Contacts.CONTENT_LOOKUP_URI, local 48 contentResolver.delete(uri, null, null); 63 public static Uri createContact(ContentResolver contentResolver, 67 Uri rawContactUri = contentResolver.insert(ContactsContract.RawContacts.CONTENT_URI [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
DeleteImage.java | 24 import android.net.Uri; 36 private ArrayList<Uri> mUriList; // a list of image uri 73 Uri uri = mUriList.get(mIndex++); local 76 mContentResolver.delete(uri, null, null);
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/parser/ |
DisclaimersParser.java | 24 import android.net.Uri; 69 final Uri uri = disclaimerBundle.getParcelable(EXTRA_PROVISIONING_DISCLAIMER_CONTENT); local 75 if (uri == null) { 76 ProvisionLogger.logw("Null disclaimer content uri in " + i + " element"); 80 File disclaimerFile = saveDisclaimerContentIntoFile(uri, i); 83 ProvisionLogger.logw("Failed to copy disclaimer uri in " + i + " element"); 94 * @return {@link File} if the uri content is saved into the file successfully. Otherwise, 97 private File saveDisclaimerContentIntoFile(Uri uri, int index) [all...] |
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/ |
UriBitmap.java | 20 import android.net.Uri; 27 * Test helper class to simplify testing cases where drawables are handled as Uri's. 31 private final Uri mUri; 34 private UriBitmap(Bitmap bitmap, Uri uri, File tempFile) { 36 mUri = uri; 44 public Uri getUri() { 49 * @return an instance encapsulating a sample {@link Bitmap} and a {@link Uri} pointing to it 54 Uri uri = bitmapToUri(bitmap, tempFile) local [all...] |
/packages/apps/Messaging/src/com/android/messaging/sms/ |
MmsSmsUtils.java | 21 import android.net.Uri; 138 private static final Uri THREAD_ID_CONTENT_URI = Uri.parse( 140 public static final Uri CONTENT_URI = Uri.withAppendedPath( 171 final Uri.Builder uriBuilder = THREAD_ID_CONTENT_URI.buildUpon(); 181 final Uri uri = uriBuilder.build(); local 182 //if (DEBUG) Rlog.v(TAG, "getOrCreateThreadId uri: " + uri); [all...] |
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
DocumentImagePicker.java | 21 import android.net.Uri; 93 final Uri uri = (Uri) extras.getParcelable(Intent.EXTRA_STREAM); local 94 if (uri != null) { 95 url = uri.toString(); 101 // Guard against null uri cases for when the activity returns a null/invalid intent. 103 final Uri uri = Uri.parse(url) local [all...] |
/packages/apps/Messaging/src/com/android/messaging/util/ |
YouTubeUtil.java | 18 import android.net.Uri; 45 // Apparently the url is not an RFC 2396 compliant uri without the port 48 final Uri uri = Uri.parse(urlString); local 49 final String host = uri.getHost(); 55 final String videoId = getYouTubeVideoId(uri); 64 private static String getYouTubeVideoId(Uri uri) { 65 final String urlPath = uri.getPath() [all...] |
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/ |
ImageRequestTest.java | 20 import android.net.Uri; 55 final Uri uri = Uri.parse(uriString); local 57 new UriImageRequestDescriptor(uri)); 83 final Uri uri = Uri.parse(uriString); local 85 new UriImageRequestDescriptor(uri, DOWNSAMPLE_IMAGE_SIZE, DOWNSAMPLE_IMAGE_SIZE,
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/ |
AppManagementActivity.java | 20 import android.net.Uri; 36 final Uri uri = getIntent().getData(); local 37 if (uri == null) { 38 Log.wtf(TAG, "No app to inspect (missing data uri in intent)"); 42 final String packageName = uri.getSchemeSpecificPart();
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
ConversationMessage.java | 22 import android.net.Uri; 56 public ConversationMessage(Context context, MimeMessage mimeMessage, Uri emlFileUri) 80 return Objects.hashCode(uri, getAttachmentsStateHashCode()); 86 final Uri uri = a.getIdentifierUri(); local 87 hash += (uri != null ? uri.hashCode() : 0);
|
/packages/providers/ContactsProvider/test_common/src/com/android/providers/contacts/testutil/ |
DataUtil.java | 22 import android.net.Uri; 32 private static final Uri URI = ContactsContract.Data.CONTENT_URI; 35 Uri uri = ContentUris.withAppendedId(URI, dataId); local 36 resolver.delete(uri, null, null); 40 Uri uri = ContentUris.withAppendedId(URI, dataId) local [all...] |
/packages/providers/MediaProvider/src/com/android/providers/media/ |
MediaScannerReceiver.java | 23 import android.net.Uri; 37 final Uri uri = intent.getData(); local 44 if (uri.getScheme().equals("file")) { 46 String path = uri.getPath();
|
/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStore_Audio_Genres_MembersTest.java | 24 import android.net.Uri; 44 Uri uri = Audio1.getInstance().insertToExternal(mContentResolver); local 45 Cursor c = mContentResolver.query(uri, null, null, null, null); 50 uri = Audio2.getInstance().insertToExternal(mContentResolver); 51 c = mContentResolver.query(uri, null, null, null, null); 93 Uri uri = mContentResolver.insert(Genres.EXTERNAL_CONTENT_URI, values); local 94 Cursor c = mContentResolver.query(uri, null, null, null, null); 101 // verify that the Uri has the correct format and genre valu 311 Uri uri = mContentResolver.insert(Genres.INTERNAL_CONTENT_URI, values); local [all...] |
/frameworks/base/core/java/android/app/ |
RemoteInput.java | 22 import android.net.Uri; 300 * Map<String, Uri> results = 303 * Uri data = results.get(MIME_TYPE_OF_INTEREST); 311 public static Map<String, Uri> getDataResultsFromIntent( 317 Map<String, Uri> results = new HashMap<>(); 330 results.put(mimeType, Uri.parse(uriStr)); 393 * @param results A map of mime type to the Uri result for that mime type. 396 Map<String, Uri> results) { 401 for (Map.Entry<String, Uri> entry : results.entrySet()) { 403 Uri uri = entry.getValue() local [all...] |
/frameworks/support/compat/jellybean/android/support/v4/app/ |
RemoteInputCompatJellybean.java | 22 import android.net.Uri; 118 static Map<String, Uri> getDataResultsFromIntent(Intent intent, String remoteInputResultKey) { 123 Map<String, Uri> results = new HashMap<>(); 136 results.put(mimeType, Uri.parse(uriStr)); 167 * @param results A map of mime type to the Uri result for that mime type. 170 Map<String, Uri> results) { 175 for (Map.Entry<String, Uri> entry : results.entrySet()) { 177 Uri uri = entry.getValue(); local 186 resultsBundle.putString(remoteInput.getResultKey(), uri.toString()) [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
BluetoothMapAppObserver.java | 29 import android.net.Uri; 154 * The key for the observer is the uri as string 155 * @param uri uri for the package that supports MAP email 159 Uri uri = BluetoothMapContract.buildAccountUri(app.getProviderAuthority()); local 160 if (V) Log.d(TAG, "registerObserver for URI "+uri.toString()+"\n"); 168 public void onChange(boolean selfChange, Uri uri) { 185 Uri uri = BluetoothMapContract.buildAccountUri(app.getProviderAuthority()); local [all...] |
/packages/apps/Messaging/tests/src/com/android/messaging/ |
FakeContentProvider.java | 25 import android.net.Uri; 39 private final String uri; field in class:FakeContentProvider.ContentOverride 45 ContentOverride(final String uri, final String where, final String args, 47 this.uri = uri; 54 boolean match(final String uri, final String where, final String[] args) { 55 if (!this.uri.equals(uri) || !TextUtils.equals(this.where, where)) { 71 private final Uri mUri; 73 public FakeContentProvider(final Context context, final Uri uri, final boolean canDelegate) [all...] |
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
ContentResolverTest.java | 28 import android.net.Uri; 40 private Uri uri21; 41 private Uri uri22; 48 uri21 = Uri.parse(EXTERNAL_CONTENT_URI.toString() + "/21"); 49 uri22 = Uri.parse(EXTERNAL_CONTENT_URI.toString() + "/22"); 167 assertThat(testCursor.uri, equalTo(uri21)); 186 contentResolver.notifyChange(Uri.parse("foo"), null, true); 187 contentResolver.notifyChange(Uri.parse("bar"), null); 190 ShadowContentResolver.NotifiedUri uri = shadowContentResolver.getNotifiedUris().get(0); local 192 assertThat(uri.uri.toString(), equalTo("foo")) 214 Uri uri = Uri.parse("content:\/\/com.xtremelabs.robolectric"); local 341 final Uri uri = Uri.parse("content:\/\/"+AUTHORITY+"\/some\/path"); local 356 public Uri uri; field in class:ContentResolverTest.QueryParamTrackingTestCursor [all...] |
/art/tools/ahat/src/ |
Summarizer.java | 22 import java.net.URI; 75 URI objTarget = DocString.formattedUri("object?id=%d", inst.getId()); 110 URI uri = DocString.formattedUri("bitmap?id=%d", bitmap.getId()); local 111 formatted.appendThumbnail(uri, "bitmap image"); 140 URI uri = DocString.formattedUri("site?id=%d&depth=%d", site.getId(), site.getDepth()); local 141 return DocString.link(uri, text);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/ |
MockTvInputSetupActivity.java | 29 import android.net.Uri; 67 final Uri uri = TvContract.buildChannelsUriForInput(inputId); local 69 try (Cursor cursor = getContentResolver().query(uri, projection, null, null, null)) { 93 Uri channelUri = getContentResolver().insert(uri, values); 97 channelUri = getContentResolver().insert(uri, values);
|
/cts/hostsidetests/appsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/ |
GrantUriPermission.java | 23 import android.net.Uri; 37 public static final String EXTRA_URI = "uri"; 48 final Uri uri = intent.getParcelableExtra(EXTRA_URI); local 49 context.grantUriPermission(intent.getStringExtra(EXTRA_PACKAGE_NAME), uri, local 53 final Uri uri = intent.getParcelableExtra(EXTRA_URI); local 54 context.revokeUriPermission(uri, intent.getIntExtra(EXTRA_MODE, 0)); 81 final Uri uri = intent.getParcelableExtra(EXTRA_URI) local [all...] |