Searched refs:uri (Results 276 - 300 of 610) sorted by relevance

<<11121314151617181920>>

/frameworks/base/tests/OneMedia/src/com/android/onemedia/
H A DOnePlayerActivity.java114 Uri uri = null;
116 uri = resultData.getData();
117 Log.i(TAG, "Uri: " + uri.toString());
120 mAlbumArtBitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), uri);
/frameworks/opt/photoviewer/src/com/android/ex/photo/
H A DPhotoViewCallbacks.java95 public Loader<BitmapResult> onCreateBitmapLoader(int id, Bundle args, String uri); argument
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DCarrierServiceStateTrackerTest.java70 public void notifyChange(Uri uri, ContentObserver observer, boolean syncToNetwork) { argument
71 super.notifyChange(uri, observer, syncToNetwork);
72 logd("onChanged(uri=" + uri + ")" + observer);
74 observer.dispatchChange(false, uri);
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
H A DRGBZ.java48 * Creates an RGBZ from a content uri.
50 * @param uri The uri name of the RGBZ
53 public RGBZ(Uri uri, ContentResolver contentResolver, Context context) throws IOException { argument
54 preview = BitmapFactory.decodeStream(contentResolver.openInputStream(uri));
56 throw new FileNotFoundException(uri.toString());
58 depthImage = DepthImage.createFromXMPMetadata(context, uri);
68 * @param uriImage The uri name of the image
69 * @param uriDepthmap The uri name of the depthmap
/frameworks/support/compat/src/main/java/androidx/core/graphics/
H A DTypefaceCompatApi24Impl.java138 final Uri uri = font.getUri();
139 ByteBuffer buffer = bufferCache.get(uri);
141 buffer = TypefaceCompatUtil.mmap(context, cancellationSignal, uri);
142 bufferCache.put(uri, buffer);
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/graphics/drawable/
H A DIconTest.kt70 val uri = cacheFile.toUri()
71 val icon = uri.toIcon()
/frameworks/support/emoji/core/src/androidTest/java/androidx/emoji/text/
H A DFontRequestEmojiCompatConfigTest.java258 final Uri uri = Uri.fromFile(file);
261 new FontInfo(uri, 0 /* ttc index */, 400 /* weight */,
290 new FontInfo(uri, 0 /* ttc index */, 400 /* weight */,
315 final Uri uri = Uri.fromFile(file);
318 new FontInfo(uri, 0 /* ttc index */, 400 /* weight */,
342 new FontInfo(uri, 0 /* ttc index */, 400 /* weight */,
372 final Uri uri = Uri.fromFile(file);
374 new FontInfo(uri, 0 /* ttc index */, 400 /* weight */,
399 any(Context.class), eq(uri), observerCaptor.capture());
402 new FontInfo(uri,
[all...]
/frameworks/support/leanback/src/main/java/androidx/leanback/media/
H A DMediaPlayerAdapter.java330 * @return Returns <code>true</code> if uri represents a new media; <code>false</code>
334 public boolean setDataSource(Uri uri) { argument
335 if (mMediaSourceUri != null ? mMediaSourceUri.equals(uri) : uri == null) {
338 mMediaSourceUri = uri;
/frameworks/support/media-widget/src/main/java/androidx/media/widget/
H A DRoutePlayer.java154 * Opens the video based on the given uri and updates the media session and item statuses.
155 * @param uri link to the video
157 public void openVideo(Uri uri) { argument
158 mClient.play(uri, "video/mp4", null, 0, null, new ItemActionCallback() {
182 private void playInternal(Uri uri) { argument
183 mClient.play(uri, "video/mp4", null, 0, null, new ItemActionCallback() {
H A DVideoView2.java325 * @param uri the URI of the video.
330 public void setVideoUri(Uri uri) { argument
331 mImpl.setVideoUri(uri, null);
337 * @param uri the URI of the video.
344 public void setVideoUri(Uri uri, @Nullable Map<String, String> headers) { argument
345 mImpl.setVideoUri(uri, headers);
/frameworks/support/slices/builders/src/main/java/androidx/slice/builders/impl/
H A DGridRowBuilder.java43 TemplateBuilderImpl createGridRowBuilder(Uri uri); argument
H A DGridRowBuilderListV1Impl.java78 public TemplateBuilderImpl createGridRowBuilder(Uri uri) { argument
79 return new CellBuilder(uri);
138 public CellBuilder(@NonNull Uri uri) { argument
139 super(new Slice.Builder(uri), null);
/frameworks/wilhelm/tests/mimeUri/
H A DslesTestLoopUri.cpp129 SLDataLocator_URI uri; local
166 uri.locatorType = SL_DATALOCATOR_URI;
167 uri.URI = (SLchar*) path;
173 audioSource.pLocator = (void *)&uri;
H A DslesTestPlayStreamType.cpp58 SLDataLocator_URI uri; local
116 uri.locatorType = SL_DATALOCATOR_URI;
117 uri.URI = (SLchar*) path;
125 audioSource.pLocator = (void*)&uri;
H A DslesTestPlayUri.cpp132 SLDataLocator_URI uri; local
172 uri.locatorType = SL_DATALOCATOR_URI;
173 uri.URI = (SLchar*) path;
179 audioSource.pLocator = (void *)&uri;
H A DslesTest_playStates.cpp57 SLDataLocator_URI uri; local
110 uri.locatorType = SL_DATALOCATOR_URI;
111 uri.URI = (SLchar*) path;
119 audioSource.pLocator = (void*)&uri;
/frameworks/wilhelm/tests/
H A DmimeUri_test.cpp106 SLDataLocator_URI uri; local
146 uri.locatorType = SL_DATALOCATOR_URI;
147 uri.URI = (SLchar*) path;
153 audioSource.pLocator = (void *)&uri;
/frameworks/base/core/java/android/provider/
H A DCallLog.java144 * Content uri used to access call log entries, including voicemail records. You must have
803 final Uri uri = addEntryAndRemoveExpiredEntries(context, userManager,
806 result = uri;
865 final Uri uri = ContentProvider.maybeAddUserId(
870 Log.v(LOG_TAG, String.format("Inserting to %s", uri));
880 final Uri result = resolver.insert(uri, values);
886 resolver.delete(uri, "_id IN " +
897 resolver.delete(uri, "_id IN " +
/frameworks/base/packages/ExtServices/src/android/ext/services/notification/
H A DAssistant.java357 public void onChange(boolean selfChange, Uri uri) { argument
358 update(uri);
361 private void update(Uri uri) { argument
363 if (uri == null || DISMISS_TO_VIEW_RATIO_LIMIT_URI.equals(uri)) {
368 if (uri == null || STREAK_LIMIT_URI.equals(uri)) {
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DDevicePolicyManagerServiceTestable.java101 public void notifyChangeToContentObserver(Uri uri, int userHandle) { argument
102 ContentObserver co = mMockInjector.mContentObservers.get(new Pair<>(uri, userHandle));
104 co.onChange(false, uri, userHandle); // notify synchronously
108 co = mMockInjector.mContentObservers.get(new Pair<>(uri, UserHandle.USER_ALL));
110 co.onChange(false, uri, userHandle); // notify synchronously
119 // Key is a pair of uri and userId
334 void registerContentObserver(Uri uri, boolean notifyForDescendents, argument
336 mContentObservers.put(new Pair<Uri, Integer>(uri, userHandle), observer);
/frameworks/base/core/java/android/nfc/
H A DNdefRecord.java325 * The uri parameter will be normalized with
329 * {@link IllegalArgumentException} may be thrown if the uri
336 * @param uri URI to encode.
338 * @throws IllegalArugmentException if the uri is empty or invalid
340 public static NdefRecord createUri(Uri uri) { argument
341 if (uri == null) throw new NullPointerException("uri is null");
343 uri = uri.normalizeScheme();
344 String uriString = uri
[all...]
/frameworks/base/core/java/android/widget/
H A DSuggestionsAdapter.java574 Uri uri = Uri.parse(drawableId);
575 drawable = getDrawable(uri);
590 private Drawable getDrawable(Uri uri) { argument
592 String scheme = uri.getScheme();
596 mProviderContext.getContentResolver().getResourceId(uri);
600 throw new FileNotFoundException("Resource does not exist: " + uri);
604 InputStream stream = mProviderContext.getContentResolver().openInputStream(uri);
606 throw new FileNotFoundException("Failed to open " + uri);
614 Log.e(LOG_TAG, "Error closing icon stream for " + uri, ex);
619 Log.w(LOG_TAG, "Icon not found: " + uri
[all...]
/frameworks/base/media/java/android/media/session/
H A DMediaController.java737 * @param uri The URI of the requested media.
741 public void prepareFromUri(Uri uri, Bundle extras) { argument
742 if (uri == null || Uri.EMPTY.equals(uri)) {
747 mSessionBinder.prepareFromUri(mContext.getPackageName(), mCbStub, uri, extras);
749 Log.wtf(TAG, "Error calling prepare(" + uri + ").", e);
808 * @param uri The URI of the requested media.
812 public void playFromUri(Uri uri, Bundle extras) { argument
813 if (uri == null || Uri.EMPTY.equals(uri)) {
[all...]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/
H A DTileUtils.java558 Uri uri = Uri.parse(uriString);
559 String method = getMethodFromUri(uri);
563 IContentProvider provider = getProviderFromUri(context, uri, providerMap);
578 private static IContentProvider getProviderFromUri(Context context, Uri uri, argument
580 if (uri == null) {
583 String authority = uri.getAuthority();
588 providerMap.put(authority, context.getContentResolver().acquireUnstableProvider(uri));
593 /** Returns the first path segment of the uri if it exists as the method, otherwise null. */
594 static String getMethodFromUri(Uri uri) { argument
595 if (uri
[all...]
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
H A DSettingsProviderTest.java226 final Uri uri = insertStringViaProviderApi(SETTING_TYPE_SYSTEM, FAKE_SETTING_NAME,
230 assertEquals("Did not get expected Uri.", expectUri, uri);
470 final Uri uri = insertStringViaProviderApi(type, FAKE_SETTING_NAME,
473 assertEquals("Did not get expected Uri.", expectUri, uri);
491 Uri uri = getBaseUriForType(type);
513 final int insertCount = getContext().getContentResolver().bulkInsert(uri, allValues);
544 Uri uri = insertStringViaProviderApi(type,
547 assertEquals("Did not get expected Uri.", expectUri, uri);
666 Uri uri = getBaseUriForType(type);
668 Cursor cursor = getContext().getContentResolver().query(uri, NAME_VALUE_COLUMN
[all...]

Completed in 7689 milliseconds

<<11121314151617181920>>