/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
AttachmentCommandHandler.java | 22 import android.net.Uri; 33 public void sendCommand(Uri uri, ContentValues params) { 34 startUpdate(0, null, uri, params, null, null);
|
EmlTempFileDeletionService.java | 22 import android.net.Uri; 41 final Uri uri = intent.getData(); local 42 getContentResolver().delete(uri, null, null);
|
/external/glide/library/src/main/java/com/bumptech/glide/load/model/ |
ResourceLoader.java | 6 import android.net.Uri; 18 private final ModelLoader<Uri, T> uriLoader; 21 public ResourceLoader(Context context, ModelLoader<Uri, T> uriLoader) { 25 public ResourceLoader(Resources resources, ModelLoader<Uri, T> uriLoader) { 32 Uri uri = Uri.parse(ContentResolver.SCHEME_ANDROID_RESOURCE + "://" local 37 return uriLoader.getResourceFetcher(uri, width, height);
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowMediaStore.java | 5 import android.net.Uri; 20 public static Bitmap getBitmap(ContentResolver cr, Uri url) { 28 Uri.parse("content://media/external/images/media")); 31 Uri.parse("content://media/internal/images/media")); 34 Uri.parse("content://media/external/video/media")); 37 Uri.parse("content://media/internal/video/media"));
|
/frameworks/base/core/java/android/nfc/ |
BeamShareData.java | 3 import android.net.Uri; 17 public final Uri[] uris; 21 public BeamShareData(NdefMessage msg, Uri[] uris, UserHandle userHandle, int flags) { 49 Uri[] uris = null; 53 uris = new Uri[numUris]; 54 source.readTypedArray(uris, Uri.CREATOR);
|
/frameworks/base/core/java/android/provider/ |
BrowserContract.java | 28 import android.net.Uri; 48 /** A content:// style uri to the authority for the browser provider */ 49 public static final Uri AUTHORITY_URI = Uri.parse("content://" + AUTHORITY); 52 * An optional insert, update or delete URI parameter that allows the caller 56 * {@link ContentResolver#notifyChange(android.net.Uri, android.database.ContentObserver, boolean)}. 252 * The content:// style URI for this table 254 public static final Uri CONTENT_URI = Uri.withAppendedPath(AUTHORITY_URI, "bookmarks"); 300 * The content:// style URI for the default folde [all...] |
/frameworks/base/media/java/android/media/tv/ |
TvContentRatingSystemInfo.java | 22 import android.net.Uri; 34 private final Uri mXmlUri; 48 Uri uri = new Uri.Builder() local 53 return new TvContentRatingSystemInfo(uri, applicationInfo); 56 private TvContentRatingSystemInfo(Uri xmlUri, ApplicationInfo applicationInfo) { 70 * Returns the URI to the XML resource that defines the TV content rating system. 75 public final Uri getXmlUri() {
|
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/services/ |
DeleteJobTest.java | 21 import android.net.Uri; 34 Uri testFile1 = mDocs.createDocument(mSrcRoot, "text/plain", "test1.txt"); 37 Uri testFile2 = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); 50 private final DeleteJob createJob(List<Uri> srcs, Uri srcParent) throws Exception { 51 Uri stack = DocumentsContract.buildDocumentUri(AUTHORITY, mSrcRoot.documentId);
|
AbstractCopyJobTest.java | 21 import android.net.Uri; 34 Uri testFile1 = mDocs.createDocument(mSrcRoot, "text/plain", "test1.txt"); 37 Uri testFile2 = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); 51 Uri testFile = mDocs.createVirtualFile( 65 Uri testFile = mDocs.createVirtualFile( 79 Uri testDir = mDocs.createFolder(mSrcRoot, "emptyDir"); 90 Uri testDir1 = mDocs.createFolder(mSrcRoot, "dir1"); 93 Uri testDir2 = mDocs.createFolder(testDir1, "dir2"); 111 Uri testDir = mDocs.createFolder(mSrcRoot, "someDir"); 125 Uri testDir = mDocs.createFolder(mSrcRoot, "someDir") [all...] |
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
TestContentResolver.java | 20 import android.net.Uri; 33 private final Map<Uri, Phaser> mPhasers = new HashMap<>(); 36 public void notifyChange(Uri uri, ContentObserver observer, boolean syncToNetwork) { 37 getPhaser(uri).arrive(); 41 void waitForNotification(Uri uri, int count) throws InterruptedException, TimeoutException { 42 Assert.assertEquals(count, getPhaser(uri).awaitAdvanceInterruptibly( 46 int getChangeCount(Uri uri) { [all...] |
/packages/apps/Camera2/src_pd/com/android/camera/util/ |
PhotoSphereHelper.java | 23 import android.net.Uri; 71 public Intent showPanorama(Activity activity, Uri uri) { 76 public void showRgbz(Uri uri) { 87 public static PanoramaMetadata getPanoramaMetadata(Context context, Uri uri) { 100 * Get the file path from a Media storage URI. 102 public static String getPathFromURI(ContentResolver contentResolver, Uri contentUri) { 107 * Get the modified time from a Media storage URI [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/ |
ContactUtil.java | 23 import android.net.Uri; 31 private static final Uri URI = ContactsContract.Contacts.CONTENT_URI; 35 Uri uri = ContentUris.withAppendedId(URI, contactId); local 36 resolver.update(uri, values, null, null); 40 Uri uri = ContentUris.withAppendedId(URI, contactId) local 48 Uri uri = ContentUris.withAppendedId(URI, contactId); local 61 Uri uri = ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI, contactId); local [all...] |
/packages/apps/Messaging/src/com/android/messaging/util/ |
UriUtil.java | 22 import android.net.Uri; 62 * Get a Uri representation of the file path of a resource file. 64 public static Uri getUriForResourceFile(final String path) { 65 return TextUtils.isEmpty(path) ? null : Uri.fromFile(new File(path)); 69 * Extract the path from a file:// Uri, or null if the uri is of other scheme. 71 public static String getFilePathFromUri(final Uri uri) { 72 if (!isFileUri(uri)) { 75 return uri.getPath() [all...] |
/device/google/dragon/crash_collector/src/com/android/crashreportprovider/ |
CrashReportProvider.java | 24 import android.net.Uri; 41 public static final Uri URI = Uri.parse("content://com.android.crashreportprovider/"); 66 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, 81 public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException { 83 throw new FileNotFoundException("Cannot to open: " + uri + ", mode = " + mode); 85 List<String> segments = uri.getPathSegments() [all...] |
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
TrackerProvider.java | 26 import android.net.Uri; 37 public static final Uri CONTENT_URI = Uri 86 public int delete(Uri uri, String selection, String[] selectionArgs) { 89 getContext().getContentResolver().notifyChange(uri, null); 94 public String getType(Uri uri) { 99 public Uri insert(Uri uri, ContentValues values) [all...] |
/packages/apps/Email/tests/src/com/android/email/activity/ |
IntentUtilitiesTests.java | 22 import android.net.Uri; 29 final Uri.Builder b = IntentUtilities.createActivityIntentUrlBuilder("/abc"); 35 final Uri u = b.build(); 72 i = new Intent(Intent.ACTION_VIEW, Uri.parse( 79 public void checkGetIdFromIntent(String uri, long expected) { 80 Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(uri.replace("ID", "ACCOUNT_ID"))); 83 i = new Intent(Intent.ACTION_VIEW, Uri.parse(uri.replace("ID", "MAILBOX_ID"))); 86 i = new Intent(Intent.ACTION_VIEW, Uri.parse(uri.replace("ID", "MESSAGE_ID"))) [all...] |
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
MessagingContentProvider.java | 25 import android.net.Uri; 64 public static final Uri CONVERSATIONS_URI = Uri.parse(CONTENT_AUTHORITY + CONVERSATIONS_QUERY); 65 static final Uri PARTS_URI = Uri.parse(CONTENT_AUTHORITY + DatabaseHelper.PARTS_TABLE); 70 static final Uri MESSAGES_URI = Uri.parse(CONTENT_AUTHORITY + MESSAGES_QUERY); 72 public static final Uri CONVERSATION_MESSAGES_URI = Uri.parse(CONTENT_AUTHORITY + 82 static final Uri CONVERSATION_PARTICIPANTS_URI = Uri.parse(CONTENT_AUTHORITY 106 final Uri uri = Uri.parse(CONTENT_AUTHORITY); local 128 final Uri uri = buildConversationParticipantsUri(conversationId); local 182 final Uri uri = buildConversationMessagesUri(conversationId); local 202 final Uri uri = buildConversationMetadataUri(conversationId); local 374 cursor.setNotificationUri(getContext().getContentResolver(), uri); local [all...] |
/packages/apps/Gallery2/src/com/android/photos/data/ |
SQLiteContentProvider.java | 28 import android.net.Uri; 44 private Set<Uri> mChangedUris; 58 mChangedUris = new HashSet<Uri>(); 76 public abstract Uri insertInTransaction(Uri uri, ContentValues values, 83 public abstract int updateInTransaction(Uri uri, ContentValues values, String selection, 90 public abstract int deleteInTransaction(Uri uri, String selection, String[] selectionArgs [all...] |
/frameworks/base/core/java/android/view/inputmethod/ |
InputContentInfo.java | 22 import android.net.Uri; 37 private final Uri mContentUri; 41 private final Uri mLinkUri; 48 * @param contentUri Content URI to be exported from the input method. 55 public InputContentInfo(@NonNull Uri contentUri, @NonNull ClipDescription description) { 56 this(contentUri, description, null /* link Uri */); 60 * Constructs {@link InputContentInfo} object with additional link URI. 62 * @param contentUri Content URI to be exported from the input method. 68 * @param linkUri An optional {@code http} or {@code https} URI. The editor author may provide 72 public InputContentInfo(@NonNull Uri contentUri, @NonNull ClipDescription description [all...] |
/frameworks/base/core/tests/coretests/src/android/app/ |
SuggestionProvider.java | 26 import android.net.Uri; 63 public Cursor query(Uri url, String[] projectionIn, String selection, 86 public String getType(Uri url) { 97 public int update(Uri url, ContentValues values, String where, String[] whereArgs) { 102 public Uri insert(Uri url, ContentValues initialValues) { 107 public int delete(Uri url, String where, String[] whereArgs) {
|
/frameworks/base/core/tests/coretests/src/android/content/ |
MemoryFileProviderTest.java | 19 import android.net.Uri; 38 Uri uri = Uri.parse("content://android.content.MemoryFileProvider/data/1/blob"); local 40 InputStream in = resolver.openInputStream(uri); 56 Uri uri = Uri.parse("content://android.content.MemoryFileProvider/huge"); local 57 InputStream in = resolver.openInputStream(uri); 71 Uri uri = Uri.parse("content://android.content.MemoryFileProvider/file") local [all...] |
/frameworks/base/telecomm/java/android/telecom/ |
ConnectionRequest.java | 19 import android.net.Uri; 32 private final Uri mAddress; 44 Uri handle, 57 Uri handle, 73 Uri handle, 100 public Uri getAddress() { return mAddress; } 136 ? Uri.EMPTY
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
Queries.java | 20 import android.net.Uri; 73 private final Uri mContentFilterUri; 74 private final Uri mContentUri; 87 public Query(String[] projection, Uri contentFilter, Uri content) { 97 public Uri getContentFilterUri() { 101 public Uri getContentUri() {
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
SettingsModel.java | 20 import android.net.Uri; 36 /** The uri of the default ringtone to use for timers until the user explicitly chooses one. */ 37 private Uri mDefaultTimerRingtoneUri; 78 Uri getDefaultTimerRingtoneUri() { 83 mDefaultTimerRingtoneUri = Uri.parse(uriString); 89 Uri getTimerRingtoneUri() { 93 Uri getDefaultAlarmRingtoneUri() { 98 void setDefaultAlarmRingtoneUri(Uri uri) { 99 SettingsDAO.setDefaultAlarmRingtoneUri(mContext, uri); [all...] |
/packages/apps/Dialer/src/com/android/dialer/database/ |
VoicemailArchiveContract.java | 19 import android.net.Uri; 36 /** A content:// style uri for the voicemail archive provider */ 37 public static final Uri AUTHORITY_URI = Uri.parse("content://" + AUTHORITY); 43 public static final Uri CONTENT_URI = Uri.withAppendedPath( 195 public static final Uri buildWithId(int id) { 196 return Uri.withAppendedPath(CONTENT_URI, Integer.toString(id));
|