/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
CursorQueryData.java | 20 import android.net.Uri; 26 * Holds parameters and data (such as content URI) for performing queries on the content provider. 37 protected final Uri mUri; 44 public CursorQueryData(final Context context, final Uri uri, final String[] projection, 47 mUri = uri; 71 public Uri getUri() {
|
MmsFileProvider.java | 20 import android.net.Uri; 39 * Returns a uri that can be used to access a raw mms file. 41 * @return the URI for an raw mms file 43 public static Uri buildRawMmsUri() { 44 final Uri uri = FileProvider.buildFileUri(AUTHORITY, null); local 45 final File file = getFile(uri.getPath()); 49 return uri; 57 public static File getFile(final Uri uri) { [all...] |
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
AvatarRequestDescriptor.java | 20 import android.net.Uri; 30 public AvatarRequestDescriptor(final Uri uri, final int desiredWidth, 32 this(uri, desiredWidth, desiredHeight, true /* cropToCircle */); 35 public AvatarRequestDescriptor(final Uri uri, final int desiredWidth, 37 this(uri, desiredWidth, desiredHeight, cropToCircle, false /* isWearBackground */); 40 public AvatarRequestDescriptor(final Uri uri, final int desiredWidth, 42 super(uri, desiredWidth, desiredHeight, false /* allowCompression */, true /* isStatic */ [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/providers/CalendarProvider/src/com/android/providers/calendar/ |
QueryParameterUtils.java | 19 import android.net.Uri; 23 public static boolean readBooleanQueryParameter(Uri uri, String name, 25 final String flag = getQueryParameter(uri, name); 33 * A fast re-implementation of {@link android.net.Uri#getQueryParameter} 35 public static String getQueryParameter(Uri uri, String parameter) { 36 String query = uri.getEncodedQuery(); 71 return Uri.decode(value);
|
/packages/services/Telecomm/src/com/android/server/telecom/callfiltering/ |
DirectToVoicemailCallFilter.java | 19 import android.net.Uri; 36 final Uri callHandle = call.getHandle(); 40 public void onCallerInfoQueryComplete(Uri handle, CallerInfo info) { 67 public void onContactPhotoQueryComplete(Uri handle, CallerInfo info) {
|
/platform_testing/tests/functional/testapks/applinktestapp/src/com/android/applinktestapp/ |
MainActivity.java | 22 import android.net.Uri;
|
/cts/tests/tests/accounts/common/src/android/accounts/cts/common/ |
AuthenticatorContentProvider.java | 26 import android.net.Uri; 122 Uri uri, 131 public String getType(Uri uri) { 136 public Uri insert(Uri uri, ContentValues values) { 141 public int delete(Uri uri, String selection, String[] selectionArgs) [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStoreIntentsTest.java | 21 import android.net.Uri; 82 final Uri uri = new Uri.Builder().scheme(scheme) local 84 intent.setDataAndType(uri, mime); 100 final Uri uri = new Uri.Builder().scheme(scheme) local 102 intent.setDataAndType(uri, mime); 118 final Uri uri = new Uri.Builder().scheme(scheme local [all...] |
Settings_NameValueTableTest.java | 22 import android.net.Uri; 30 Uri uri = Settings.System.CONTENT_URI; local 35 Cursor c = cr.query(uri, null, null, null, null); 41 MyNameValueTable.putString(cr, uri, name, value); 42 c = cr.query(uri, null, null, null, null); 49 c = cr.query(uri, null, selection, null, null); 58 cr.delete(uri, selection, null); 59 c = cr.query(uri, null, null, null, null); 69 Uri uri = Uri.parse("content://authority/path") local [all...] |
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
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...] |
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/data/ |
VideoContentProvider.java | 25 import android.net.Uri; 64 * When requesting a specific word, the uri alone is required. 70 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, 73 switch (URI_MATCHER.match(uri)) { 75 Log.d(TAG, "search suggest: " + selectionArgs[0] + " URI: " + uri); 78 "selectionArgs must be provided for the Uri: " + uri); 82 throw new IllegalArgumentException("Unknown Uri: " + uri) [all...] |
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowContentProviderOperation.java | 8 import android.net.Uri; 19 private Uri uri; field in class:ShadowContentProviderOperation 25 public static Builder newInsert(Uri uri) { 28 shadowBuilder.setUri(uri); 34 public static Builder newUpdate(Uri uri) { 37 shadowBuilder.setUri(uri); 43 public static Builder newDelete(Uri uri) [all...] |
/frameworks/base/core/java/android/provider/ |
SearchIndexablesProvider.java | 26 import android.net.Uri; 106 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, 108 switch (mMatcher.match(uri)) { 116 throw new UnsupportedOperationException("Unknown Uri " + uri); 154 public String getType(Uri uri) { 155 switch (mMatcher.match(uri)) { 163 throw new IllegalArgumentException("Unknown URI " + uri) [all...] |
SyncStateContract.java | 19 import android.net.Uri; 67 * @param uri the uri of the sync state 73 public static byte[] get(ContentProviderClient provider, Uri uri, 75 Cursor c = provider.query(uri, DATA_PROJECTION, SELECT_BY_ACCOUNT, 97 * @param uri the uri of the sync state 103 public static void set(ContentProviderClient provider, Uri uri, [all...] |
/frameworks/base/core/java/android/service/notification/ |
ConditionProviderService.java | 26 import android.net.Uri; 110 * @param conditionId the Uri describing the criteria of the condition. 112 abstract public void onSubscribe(Uri conditionId); 116 * @param conditionId the Uri describing the criteria of the deleted condition. 118 abstract public void onUnsubscribe(Uri conditionId); 178 public void onSubscribe(Uri conditionId) { 183 public void onUnsubscribe(Uri conditionId) { 204 onSubscribe((Uri)msg.obj); 208 onUnsubscribe((Uri)msg.obj);
|
/packages/apps/Camera2/src/com/android/camera/data/ |
FilmstripItemList.java | 19 import android.net.Uri; 35 * We use this as a way to compare a Uri to LocalData instances inside a 39 private final Uri mUri; 41 public UriWrapper(Uri uri) { 42 mUri = uri; 56 private final HashMap<Uri, FilmstripItem> mUriMap = new HashMap<Uri, FilmstripItem>(); 80 public FilmstripItem get(Uri uri) { [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/ |
Util.java | 24 import android.net.Uri; 47 public static Uri getResourceUri(Context packageContext, int res) { 57 public static Uri getResourceUri(Context context, ApplicationInfo appInfo, int res) { 70 private static Uri getResourceUri(Resources resources, String appPkg, int res) 78 private static Uri makeResourceUri(String appPkg, String resPkg, String type, String name) { 79 Uri.Builder uriBuilder = new Uri.Builder();
|
/packages/apps/QuickSearchBox/tests/partial/src/com/android/quicksearchbox/tests/partial/ |
PartialSuggestionProvider.java | 25 import android.net.Uri; 98 public Cursor query(Uri uri, String[] projectionIn, String selection, 100 Log.d(TAG, "query(" + uri + ")"); 123 public String getType(Uri uri) { 128 public Uri insert(Uri uri, ContentValues values) { 133 public int update(Uri uri, ContentValues values, String selection [all...] |
/packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/ |
EmlMessageLoaderTest.java | 23 import android.net.Uri; 57 final Uri emptyEmlUri = TestProvider.uri( 58 new Uri.Builder().scheme("content").authority("empty").path("empty").build()); 75 private final HashMap<Uri, ParcelFileDescriptor> mFileMap = 76 new HashMap<Uri, ParcelFileDescriptor>(); 82 public ParcelFileDescriptor makePipeForUri(Uri uri) throws IOException { 84 mFileMap.put(uri, descriptors[0]); 89 public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException [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...] |
/development/samples/MySampleRss/src/com/example/codelab/rssexample/ |
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...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/ |
DataUtil.java | 22 import android.net.Uri; 33 private static final Uri URI = ContactsContract.Data.CONTENT_URI; 36 Uri uri = ContentUris.withAppendedId(URI, dataId); local 37 resolver.delete(uri, null, null); 41 Uri uri = ContentUris.withAppendedId(URI, dataId) local [all...] |
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
OpenHelper.java | 32 import android.net.Uri; 81 final Uri localUri = getCursorUri(cursor, COLUMN_LOCAL_URI); 86 final Uri documentUri = DocumentsContract.buildDocumentUri( 96 final Uri remoteUri = getCursorUri(cursor, COLUMN_URI); 112 private static Uri getRefererUri(Context context, long id) { 113 final Uri headersUri = Uri.withAppendedPath( 132 final Uri uri = ContentUris.withAppendedId(ALL_DOWNLOADS_CONTENT_URI, id); local 133 final Cursor cursor = context.getContentResolver().query(uri, new String[]{Constants.UID} [all...] |
/packages/services/Telephony/src/com/android/services/telephony/ |
ConferenceParticipantConnection.java | 22 import android.net.Uri; 36 * RFC5767 states that a SIP URI with an unknown number should use an address of 42 * The user entity URI For the conference participant. 44 private final Uri mUserEntity; 47 * The endpoint URI For the conference participant. 49 private final Uri mEndpoint; 68 Uri address; 139 public Uri getUserEntity() { 148 public Uri getEndpoint() { 165 * information for the caller, otherwise we'll assume that the URI can be shown [all...] |