/frameworks/base/core/java/android/app/assist/ |
AssistContent.java | 5 import android.net.Uri; 21 private Uri mUri; 34 * of a web (http or https scheme) URI.</p> 42 Uri uri = intent.getData(); local 43 if (uri != null) { 44 if ("http".equals(uri.getScheme()) || "https".equals(uri.getScheme())) { 45 mUri = uri; 113 * Set a web URI associated with the current data being shown to the user [all...] |
/frameworks/base/core/java/android/preference/ |
RingtonePreference.java | 24 import android.net.Uri; 31 * The chosen ringtone's URI will be persisted as a string. 180 * By default, this saves the ringtone URI to the persistent storage as a 183 * @param ringtoneUri The chosen ringtone's {@link Uri}. Can be null. 185 protected void onSaveRingtone(Uri ringtoneUri) { 193 * By default, this restores the previous ringtone URI from the persistent 198 protected Uri onRestoreRingtone() { 200 return !TextUtils.isEmpty(uriString) ? Uri.parse(uriString) : null; 225 onSaveRingtone(Uri.parse(defaultValue)); 242 Uri uri = data.getParcelableExtra(RingtoneManager.EXTRA_RINGTONE_PICKED_URI) local [all...] |
/frameworks/base/media/mca/tests/src/android/camera/mediaeffects/tests/functional/ |
EffectsVideoCapture.java | 30 import android.net.Uri; 73 Uri uri = Uri.fromFile(file); local 74 verify(getActivity(), uri); local 78 private void verify(CameraEffectsRecordingSample activity, Uri uri) throws Exception { 79 assertNotNull(uri); 82 retriever.setDataSource(activity, uri);
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
RootScanner.java | 20 import android.net.Uri; 74 final Uri uri = DocumentsContract.buildRootsUri(MtpDocumentsProvider.AUTHORITY); local 75 mResolver.notifyChange(uri, null, false);
|
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
DocumentLoaderTest.java | 22 import android.net.Uri; 71 final Uri uri = DocumentsContract.buildChildDocumentsUri( local 85 mResolver.waitForNotification(uri, 1); 96 mResolver.waitForNotification(uri, 2); 104 assertEquals(2, mResolver.getChangeCount(uri)); 159 final Uri uri = DocumentsContract.buildChildDocumentsUri( local 161 assertEquals(0, mResolver.getChangeCount(uri)); 168 assertEquals(0, mResolver.getChangeCount(uri)); [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
CoreSettingsObserver.java | 21 import android.net.Uri; 92 Uri uri = Settings.Secure.getUriFor(setting); local 94 uri, false, this); 98 Uri uri = Settings.System.getUriFor(setting); local 100 uri, false, this); 104 Uri uri = Settings.Global.getUriFor(setting); local 106 uri, false, this) [all...] |
/frameworks/base/tests/OneMedia/src/com/android/onemedia/ |
OnePlayerActivity.java | 29 import android.net.Uri; 114 Uri uri = null; local 116 uri = resultData.getData(); 117 Log.i(TAG, "Uri: " + uri.toString()); 120 mAlbumArtBitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), uri);
|
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/app/ |
SharingReceiverSupport.java | 23 import android.net.Uri; 69 Uri uri = intentReader.getStream(i); local 70 txt.append("Share included stream " + i + ": " + uri + "\n"); 73 getContentResolver().openInputStream(uri)));
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/graphics/ |
PaletteActivity.java | 23 import android.net.Uri; 140 final Uri uri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI.buildUpon() local 145 intent.setData(uri);
|
/frameworks/wilhelm/tests/mimeUri/ |
slesTestGetPositionUri.cpp | 34 * a resource, for instance because a file URI is invalid, or an HTTP server doesn't respond. */ 126 /* Play some audio from a URI and regularly query the position */ 134 SLDataLocator_URI uri; local 178 /* Setup the data source structure for the URI */ 179 uri.locatorType = SL_DATALOCATOR_URI; 180 uri.URI = (SLchar*) path; 186 audioSource.pLocator = (void *)&uri; 200 fprintf(stdout, "URI example: after Realize\n"); 235 /* Play the URI */ [all...] |
slesTestLoopUri.cpp | 44 * a resource, for instance because a file URI is invalid, or an HTTP server doesn't respond. 121 /* Play some music from a URI */ 129 SLDataLocator_URI uri; local 165 /* Setup the data source structure for the URI */ 166 uri.locatorType = SL_DATALOCATOR_URI; 167 uri.URI = (SLchar*) path; 173 audioSource.pLocator = (void *)&uri; 191 fprintf(stdout, "URI example: after Realize\n"); 232 /* Play the URI */ [all...] |
slesTestManyPlayers.cpp | 47 SLDataLocator_URI uri; variable 155 /* Setup the data source structure for the URI */ 158 //uri = { SL_DATALOCATOR_URI /*locatorType*/, (SLchar*) path /*URI*/ }; 161 uri.locatorType = SL_DATALOCATOR_URI; 162 uri.URI = (SLchar*) path; 168 audioSource.pLocator = (void *)&uri; 269 /* Play the URI */
|
slesTestPlayUri.cpp | 124 /* Play some music from a URI */ 132 SLDataLocator_URI uri; local 171 /* Setup the data source structure for the URI */ 172 uri.locatorType = SL_DATALOCATOR_URI; 173 uri.URI = (SLchar*) path; 179 audioSource.pLocator = (void *)&uri; 193 fprintf(stdout, "URI example: after Realize\n"); 239 /* Play the URI */ 272 fprintf(stdout, "URI example: starting to play\n") [all...] |
/frameworks/wilhelm/tests/ |
mimeUri_test.cpp | 98 /* Play some music from a URI */ 106 SLDataLocator_URI uri; local 145 /* Setup the data source structure for the URI */ 146 uri.locatorType = SL_DATALOCATOR_URI; 147 uri.URI = (SLchar*) path; 153 audioSource.pLocator = (void *)&uri; 191 /* Play the URI */
|
/libcore/luni/src/test/java/libcore/java/net/ |
URITest.java | 20 import java.net.URI; 27 URI uri = new URI("http://username:password@host:8080/directory/file?query#ref"); local 28 assertEquals("http", uri.getScheme()); 29 assertEquals("username:password@host:8080", uri.getAuthority()); 30 assertEquals("username:password@host:8080", uri.getRawAuthority()); 31 assertEquals("username:password", uri.getUserInfo()); 32 assertEquals("username:password", uri.getRawUserInfo()); 33 assertEquals("host", uri.getHost()) 87 URI uri = new URI("http:\/\/user:pass@host\/path\/file?query#hash"); local 92 URI uri = new URI("http:\/\/\/path"); local 98 URI uri = new URI("http:\/path"); local 104 URI uri = new URI("http:\/\/host"); local 119 URI uri = new URI("http:\/\/a"); local 133 URI uri = new URI("http:\/\/user@userhost.com:password@host"); local 140 URI uri = new URI("http:\/\/user@host"); local 148 URI uri = new URI("http:\/\/user@"); local 156 URI uri = new URI("http:\/\/user@host:8080"); local 164 URI uri = new URI("http:\/\/user:password@host:8080"); local 172 URI uri = new URI("http:\/\/user:password@:8080"); local 181 URI uri = new URI("http:\/\/user:password@:"); local 190 URI uri = new URI("http:\/\/host\/path"); local 196 URI uri = new URI("http:\/\/host?query"); local 203 URI uri = new URI("http:\/\/host#fragment"); local 211 URI uri = new URI("http:\/\/host\/file@foo"); local 218 URI uri = new URI("http:\/\/host\/file:colon"); local 223 URI uri = new URI("http:\/\/host\/file?query\/path"); local 229 URI uri = new URI("http:\/\/host\/file?query?another"); local 235 URI uri = new URI("http:\/\/host\/file?query@at"); local 241 URI uri = new URI("http:\/\/host\/file?query:colon"); local 247 URI uri = new URI("http:\/\/host\/file#fragment?query"); local 254 URI uri = new URI("http:\/\/host\/file#fragment:80"); local 261 URI uri = new URI("http:\/\/host\/file#fragment\/path"); local 276 URI uri = new URI("http:\/\/host:\/"); local 281 URI uri = new URI("http:\/\/host:x\/"); local 288 URI uri = new URI("http:\/\/host:-2\/"); local 295 URI uri = new URI("http:\/\/host:-1\/"); local 303 URI uri = base.resolve("another"); local 312 URI uri = base.resolve("#another"); local 320 URI uri = new URI("http:\/\/host\/a\/b\/..\/c"); local 450 URI uri = base.resolve("http:g"); local 473 URI uri = new URI("file:\/\/\/\/foo"); local 480 URI uri = new URI("file:\/\/x\/foo"); local 487 URI uri = new URI("http:\/\/\/foo"); local 494 URI uri = new URI("http:\/\/\/\/foo"); local 549 URI uri = new URI("http:\/\/host:-2\/"); local 561 URI uri = new URI("http:\/\/host:+2\/"); local 573 URI uri = new URI("http:\/\/host:???\/"); \/\/ 123 in arabic local 585 URI uri = new URI("http:file"); local 593 URI uri = new URI("http", "user:pa55w?rd", "host", 80, "\/doc|search", local 615 URI uri = new URI("HTTP:\/\/host\/path"); local 620 URI uri = new URI("http:\/\/\/path"); local 626 URI uri = new URI("http:\/\/?query"); local 633 URI uri = new URI("http:\/\/#fragment"); local 725 URI uri = new URI("http:\/\/a_b.c.d.net\/"); local [all...] |
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
DismissAlarmsService.java | 25 import android.net.Uri; 73 Uri uri = CalendarAlerts.CONTENT_URI; local 97 resolver.update(uri, values, selection, null);
|
SnoozeAlarmsService.java | 25 import android.net.Uri; 71 Uri uri = CalendarAlerts.CONTENT_URI; local 76 resolver.update(uri, dismissValues, selection, null); 82 resolver.insert(uri, values);
|
/packages/apps/Camera2/src/com/android/camera/data/ |
PhotoDataFactory.java | 22 import android.net.Uri; 70 Uri uri = PhotoDataQuery.CONTENT_URI.buildUpon().appendPath(String.valueOf(id)).build(); local 79 uri,
|
PlaceholderItem.java | 20 import android.net.Uri; 58 Uri.Builder builder = new Uri.Builder(); 61 Uri uri = builder.build(); local 70 uri,
|
/packages/apps/Camera2/src/com/android/camera/session/ |
PlaceholderManager.java | 25 import android.net.Uri; 48 final Uri outputUri; 51 Placeholder(String title, Uri uri, long timestamp) { 53 outputUri = uri; 72 Uri uri = Storage.addEmptyPlaceholder(size); local 73 return new Placeholder(title, uri, timestamp); 94 Uri uri = Storage.addPlaceholder(placeholder) local [all...] |
/packages/apps/Car/Stream/src/com/android/car/stream/telecom/ |
RecentCallStreamProducer.java | 23 import android.net.Uri; 125 Uri uri = CallLog.Calls.CONTENT_URI.buildUpon() local 129 CursorLoader loader = new CursorLoader(mContext, uri, null, selection,
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
AccountImageHelper.java | 24 import android.net.Uri; 97 final Uri uri = ContentUris.withAppendedId(RawContacts.CONTENT_URI, local 102 intent.setDataAndType(uri, RawContacts.CONTENT_ITEM_TYPE);
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
ContactPickerFragment.java | 19 import android.net.Uri; 102 Uri uri; local 104 uri = ((LegacyContactListAdapter)getAdapter()).getPersonUri(position); 106 uri = ((ContactListAdapter)getAdapter()).getContactUri(position); 108 if (uri == null) { 112 editContact(uri); 115 builder.createContactShortcutIntent(uri); 117 pickContact(uri); 121 public void editContact(Uri contactUri) [all...] |
/packages/apps/Contacts/src/com/android/contacts/vcard/ |
CancelActivity.java | 26 import android.net.Uri; 76 final Uri uri = getIntent().getData(); local 77 mJobId = Integer.parseInt(uri.getQueryParameter(JOB_ID)); 78 mDisplayName = uri.getQueryParameter(DISPLAY_NAME); 79 mType = Integer.parseInt(uri.getQueryParameter(TYPE));
|
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
RawContactTest.java | 20 import android.net.Uri; 81 final Uri uri = Uri.fromParts("content:", "ssp", "fragment"); local 83 return new RawContact.NamedDataItem(uri, values); 90 final Uri uri = Uri.fromParts("content:", "blah", "blah"); local 92 return new RawContact.NamedDataItem(uri, values);
|