/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
UriImageRequestDescriptor.java | 19 import android.net.Uri; 24 public final Uri uri; field in class:UriImageRequestDescriptor 27 public UriImageRequestDescriptor(final Uri uri) { 28 this(uri, UriImageRequest.UNSPECIFIED_SIZE, UriImageRequest.UNSPECIFIED_SIZE, false, false, 32 public UriImageRequestDescriptor(final Uri uri, final int desiredWidth, final int desiredHeight) 34 this(uri, desiredWidth, desiredHeight, false, false, false, 0, 0); 37 public UriImageRequestDescriptor(final Uri uri, final int desiredWidth, final int desiredHeight [all...] |
/packages/apps/Nfc/src/com/android/nfc/beam/ |
BeamTransferRecord.java | 20 import android.net.Uri; 30 public Uri[] uris; 38 boolean remoteActivating, Uri[] uris) { 49 Uri[] uris) { 66 Uri[] uris = null; 68 uris = new Uri[numUris]; 69 in.readTypedArray(uris, Uri.CREATOR);
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
EmlAttachmentProvider.java | 29 import android.net.Uri; 81 private static Uri BASE_URI; 86 * Map that contains a mapping from an attachment list uri to a list of uris. 88 private Map<Uri, List<Uri>> mUriListMap; 91 * Map that contains a mapping from an attachment uri to an {@link Attachment} object. 93 private Map<Uri, Attachment> mUriAttachmentMap; 100 BASE_URI = new Uri.Builder().scheme("content").authority(authority).build(); 118 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs [all...] |
/frameworks/base/core/java/android/content/pm/ |
VerificationParams.java | 19 import android.net.Uri; 38 private final Uri mVerificationURI; 40 /** URI referencing where the package was downloaded from. */ 41 private final Uri mOriginatingURI; 43 /** HTTP referrer URI associated with the originatingURI. */ 44 private final Uri mReferrer; 56 * file. This can be a 'file:' or a 'content:' URI. May be {@code null}. 57 * @param originatingURI URI referencing where the package was downloaded 59 * @param referrer HTTP referrer URI associated with the originatingURI. 64 public VerificationParams(Uri verificationURI, Uri originatingURI, Uri referrer [all...] |
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
IntentUtilities.java | 23 import android.net.Uri; 44 * @return a URI builder for "content://ui.email.android.com/..." 46 public static Uri.Builder createActivityIntentUrlBuilder(String path) { 47 final Uri.Builder b = new Uri.Builder(); 57 public static void setAccountId(Uri.Builder b, long accountId) { 66 public static void setAccountName(Uri.Builder b, String accountName) { 75 public static void setMailboxId(Uri.Builder b, long mailboxId) { 84 public static void setMessageId(Uri.Builder b, long messageId) { 93 public static void setAccountUuid(Uri.Builder b, String mUuid) 132 final Uri uri = intent.getData(); local [all...] |
/packages/apps/TV/usbtuner/src/com/android/usbtuner/ |
UsbTunerPreferenceProvider.java | 27 import android.net.Uri; 58 * Builds a Uri that points to a specific preference. 62 public static Uri buildPreferenceUri(String key) { 74 Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/" + PATH_PREFERENCES); 144 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, 146 if (sUriMatcher.match(uri) != MATCH_PREFERENCE_KEY) { 152 cursor.setNotificationUri(getContext().getContentResolver(), uri); local 157 public String getType(Uri uri) [all...] |
/cts/tests/tests/content/src/android/content/cts/ |
IntentFilter_AuthorityEntryTest.java | 21 import android.net.Uri; 55 Uri uri = Uri.parse("testUri"); local 56 assertEquals(IntentFilter.NO_MATCH_DATA, mAuthorityEntry.match(uri)); 57 uri = Uri.parse("content://contacts/deleted_people"); 58 assertEquals(IntentFilter.NO_MATCH_DATA, mAuthorityEntry.match(uri)); 59 uri = Uri.parse("test") [all...] |
ContentProviderTest.java | 26 import android.net.Uri; 53 Uri uri = Uri.parse(ContentResolver.SCHEME_ANDROID_RESOURCE + local 57 mockContentProvider.openAssetFile(uri, "r"); 113 Uri uri = Uri.parse("content://browser/bookmarks"); local 114 assertEquals(count, mockContentProvider.bulkInsert(uri, values)); 172 Uri uri = Uri.parse("content://test") local 194 Uri uri = Uri.parse("content:\/\/test"); local [all...] |
DummyProvider.java | 26 import android.net.Uri; 49 public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY); 50 public static final Uri CONTENT_URI_MOCK_OPERATION = Uri.withAppendedPath(CONTENT_URI, 93 * @see android.content.ContentProvider#insert(android.net.Uri, 97 public Uri insert(Uri uri, ContentValues values) { 98 String tbName = getTableName(uri); 123 c.setNotificationUri(getContext().getContentResolver(), uri); local [all...] |
/developers/samples/android/content/WidgetData/Application/src/main/java/com/example/android/widgetdata/ |
WeatherDataProvider.java | 23 import android.net.Uri; 47 public static final Uri CONTENT_URI = 48 Uri.parse("content://com.example.android.widgetdata.provider"); 83 public synchronized Cursor query(Uri uri, String[] projection, String selection, 85 assert(uri.getPathSegments().isEmpty()); 99 public String getType(Uri uri) { 104 public Uri insert(Uri uri, ContentValues values) [all...] |
/packages/apps/Camera2/src/com/android/camera/ |
Storage.java | 24 import android.net.Uri; 63 private static HashMap<Uri, Uri> sSessionsToContentUris = new HashMap<>(); 64 private static HashMap<Uri, Uri> sContentUrisToSessions = new HashMap<>(); 65 private static LruCache<Uri, Bitmap> sSessionsToPlaceholderBitmap = 67 new LruCache<Uri, Bitmap>(20 * 1024 * 1024) { 69 protected int sizeOf(Uri key, Bitmap value) { 73 private static HashMap<Uri, Point> sSessionsToSizes = new HashMap<>(); 74 private static HashMap<Uri, Integer> sSessionsToPlaceholderVersions = new HashMap<>() 157 Uri uri = null; local 206 Uri uri = generateUniquePlaceholderUri(); local 245 Uri uri = generateUniquePlaceholderUri(); local [all...] |
/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...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
ContactsMetadataProviderTest.java | 19 import android.net.Uri; 34 /** A content:// style uri to the authority for the contacts metadata */ 35 public static final Uri METADATA_AUTHORITY_URI = Uri.parse( 39 * The content:// style URI for this table. 41 public static final Uri CONTENT_URI = Uri.withAppendedPath(METADATA_AUTHORITY_URI,
|
/developers/build/prebuilts/gradle/BeamLargeFiles/Application/src/main/java/com/example/android/beamlargefiles/ |
BeamLargeFilesFragment.java | 20 import android.net.Uri; 48 /** Content provider URI. */ 71 Log.w(TAG, "NFC available. Setting Beam Push URI callback"); 90 public Uri[] createBeamUris(NfcEvent nfcEvent) { 92 // Images are served using a content:// URI. See AssetProvider for implementation. 93 Uri photoUri = Uri.parse(CONTENT_BASE_URI + FILENAME); 94 Log.i(TAG, "Sending URI: " + photoUri); 95 return new Uri[] {photoUri};
|
/developers/samples/android/connectivity/nfc/BeamLargeFiles/Application/src/main/java/com/example/android/beamlargefiles/ |
BeamLargeFilesFragment.java | 20 import android.net.Uri; 48 /** Content provider URI. */ 71 Log.w(TAG, "NFC available. Setting Beam Push URI callback"); 90 public Uri[] createBeamUris(NfcEvent nfcEvent) { 92 // Images are served using a content:// URI. See AssetProvider for implementation. 93 Uri photoUri = Uri.parse(CONTENT_BASE_URI + FILENAME); 94 Log.i(TAG, "Sending URI: " + photoUri); 95 return new Uri[] {photoUri};
|
/development/samples/browseable/BeamLargeFiles/src/com.example.android.beamlargefiles/ |
BeamLargeFilesFragment.java | 20 import android.net.Uri; 48 /** Content provider URI. */ 71 Log.w(TAG, "NFC available. Setting Beam Push URI callback"); 90 public Uri[] createBeamUris(NfcEvent nfcEvent) { 92 // Images are served using a content:// URI. See AssetProvider for implementation. 93 Uri photoUri = Uri.parse(CONTENT_BASE_URI + FILENAME); 94 Log.i(TAG, "Sending URI: " + photoUri); 95 return new Uri[] {photoUri};
|
/external/ims/rcs/rcsmanager/src/java/com/android/ims/internal/ |
EABContract.java | 31 import android.net.Uri; 57 public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY); 72 public static final Uri CONTENT_URI = Uri.withAppendedPath(EABContract.CONTENT_URI,
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowCursorLoader.java | 4 import android.net.Uri; 13 private Uri uri; field in class:ShadowCursorLoader 23 public void __constructor__(Context context, Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { 25 this.uri = uri; 33 public Uri getUri() { 34 return uri; 38 public void setUri(Uri uri) [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
BridgeContentResolver.java | 23 import android.net.Uri; 84 public void registerContentObserver(Uri uri, boolean notifyForDescendents, 101 public void notifyChange(Uri uri, ContentObserver observer, boolean syncToNetwork) { 109 public void startSync(Uri uri, Bundle extras) { 117 public void cancelSync(Uri uri) {
|
/packages/apps/EmergencyInfo/src/com/android/emergency/preferences/ |
EmergencyContactsPreference.java | 21 import android.net.Uri; 52 private List<Uri> mEmergencyContacts = new ArrayList<Uri>(); 85 Uri newContact = contactPreference.getContactUri(); 87 List<Uri> updatedContacts = new ArrayList<Uri>(mEmergencyContacts); 100 public void addNewEmergencyContact(Uri contactUri) { 102 List<Uri> updatedContacts = new ArrayList<Uri>(mEmergencyContacts); 111 public List<Uri> getEmergencyContacts() [all...] |
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
MediaPickerMessagePartData.java | 20 import android.net.Uri; 26 final Uri contentUri, final int width, final int height) { 31 final String contentType, final Uri contentUri, final int width, final int height) { 37 final Uri contentUri, final int width, final int height, 44 final String contentType, final Uri contentUri, final int width, final int height,
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
HelpUrl.java | 21 import android.net.Uri; 47 public static Uri getHelpUrl(final Context context, Uri helpUri, String topic) { 52 // %locale% is a special variable encoded in the Uri that should be replaced if it exists 54 helpUri = Uri.parse(helpUri.toString().replace("%locale%", getLocale())); 57 final Uri.Builder builder = helpUri.buildUpon();
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/ |
TestUtil.java | 20 import android.net.Uri; 45 public static Uri maybeAddAccountQueryParameters(Uri uri, Account account) { 47 return uri; 49 return uri.buildUpon() 55 public static Uri maybeAddAccountWithDataSetQueryParameters(Uri uri, 58 return uri; [all...] |
/frameworks/base/core/java/android/provider/ |
MediaStore.java | 34 import android.net.Uri; 77 * Name of the (optional) Uri parameter that determines whether to skip deleting 276 * If the EXTRA_OUTPUT is present, then the full-sized image will be written to the Uri 278 * As of {@link android.os.Build.VERSION_CODES#LOLLIPOP}, this uri can also be supplied through 280 * supply the uri through the EXTRA_OUTPUT field for compatibility with old applications. 307 * If the EXTRA_OUTPUT is present, then the full-sized image will be written to the Uri 309 * As of {@link android.os.Build.VERSION_CODES#LOLLIPOP}, this uri can also be supplied through 311 * supply the uri through the EXTRA_OUTPUT field for compatibility with old applications. 330 * written to the standard location for videos, and the Uri of that location will be 331 * returned in the data field of the Uri 746 Uri uri = Uri.parse( local 1705 Uri uri = MediaStore.Audio.Playlists.Members.getContentUri("external", local [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
AsyncPlayerTest.java | 23 import android.net.Uri; 30 final Uri PLAY_URI = Settings.System.DEFAULT_NOTIFICATION_URI; 39 final Uri PLAY_URI = Settings.System.DEFAULT_NOTIFICATION_URI;
|