Searched refs:uri (Results 1 - 25 of 322) sorted by last modified time

1234567891011>>

/frameworks/support/v4/kitkat/android/support/v4/print/
H A DPrintHelperKitkat.java471 * @param uri location of a valid image
476 private Bitmap loadConstrainedBitmap(Uri uri, int maxSideLength) throws FileNotFoundException { argument
477 if (maxSideLength <= 0 || uri == null || mContext == null) {
483 loadBitmap(uri, opt);
514 return loadBitmap(uri, decodeOptions);
523 * Returns the bitmap from the given uri loaded using the given options.
526 private Bitmap loadBitmap(Uri uri, BitmapFactory.Options o) throws FileNotFoundException { argument
527 if (uri == null || mContext == null) {
532 is = mContext.getContentResolver().openInputStream(uri);
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DSuggestionsAdapter.java508 Uri uri = Uri.parse(drawableId);
509 drawable = getDrawable(uri);
524 private Drawable getDrawable(Uri uri) { argument
526 String scheme = uri.getScheme();
530 return getDrawableFromResourceUri(uri);
532 throw new FileNotFoundException("Resource does not exist: " + uri);
536 InputStream stream = mProviderContext.getContentResolver().openInputStream(uri);
538 throw new FileNotFoundException("Failed to open " + uri);
546 Log.e(LOG_TAG, "Error closing icon stream for " + uri, ex);
551 Log.w(LOG_TAG, "Icon not found: " + uri
674 getDrawableFromResourceUri(Uri uri) argument
[all...]
/frameworks/volley/src/com/android/volley/
H A DRequest.java178 Uri uri = Uri.parse(url);
179 if (uri != null) {
180 String host = uri.getHost();
/frameworks/volley/src/com/android/volley/toolbox/
H A DHttpClientStack.java175 public HttpPatch(final URI uri) { argument
177 setURI(uri);
181 * @throws IllegalArgumentException if the uri is invalid.
183 public HttpPatch(final String uri) { argument
185 setURI(URI.create(uri));
/frameworks/webview/chromium/java/com/android/webview/chromium/
H A DCookieManagerAdapter.java98 public synchronized String getCookie(WebAddress uri) { argument
99 return mChromeCookieManager.getCookie(uri.toString());
H A DWebViewContentsClientAdapter.java934 public void onReceiveValue(Uri uri) {
940 uri == null ? null : new String[] { uri.toString() });
/frameworks/wilhelm/src/android/
H A DAudioPlayer_to_android.cpp41 // bufferqueue and uri/fd playback are moved under the GenericPlayer C++ object
1570 const char *uri = (const char *)pAudioPlayer->mDataSource.mLocator.mURI.URI; local
1571 if (!isDistantProtocol(uri)) {
1572 // don't touch the original uri, we may need it later
1573 const char *pathname = uri;
1594 pAudioPlayer->mAPlayer->setDataSource(uri);
H A Dandroid_GenericMediaPlayer.cpp37 bool isDistantProtocol(const char *uri) argument
40 if (!strncasecmp(uri, kDistantProtocolPrefix[i], strlen(kDistantProtocolPrefix[i]))) {
H A Dandroid_GenericMediaPlayer.h144 bool isDistantProtocol(const char *uri);
H A Dandroid_GenericPlayer.cpp91 void GenericPlayer::setDataSource(const char *uri) { argument
92 SL_LOGV("GenericPlayer::setDataSource(uri=%s)", uri);
95 mDataLocator.uriRef = uri;
H A Dandroid_GenericPlayer.h66 void setDataSource(const char *uri);
H A Dandroid_defs.h188 kDataLocatorUri = 'uri',
201 char* uri; member in union:android::DataLocator
/frameworks/wilhelm/src/desktop/
H A DSndFile.c151 SLchar *uri = dl_uri->URI; local
152 if (NULL == uri) {
155 if (!strncmp((const char *) uri, "file:///", 8)) {
156 uri += 8;
170 thiz->mSndFile.mPathname = uri;
/frameworks/wilhelm/tests/listening/
H A DslesTest_playMuteSolo.cpp173 SLDataLocator_URI uri; local
226 uri.locatorType = SL_DATALOCATOR_URI;
227 uri.URI = (SLchar*) path;
235 audioSource.pLocator = (void*)&uri;
/frameworks/wilhelm/tests/mimeUri/
H A DslesTestGetPositionUri.cpp137 SLDataLocator_URI uri; local
182 uri.locatorType = SL_DATALOCATOR_URI;
183 uri.URI = (SLchar*) path;
189 audioSource.pLocator = (void *)&uri;
H A DslesTestLoopUri.cpp132 SLDataLocator_URI uri; local
169 uri.locatorType = SL_DATALOCATOR_URI;
170 uri.URI = (SLchar*) path;
176 audioSource.pLocator = (void *)&uri;
H A DslesTestManyPlayers.cpp47 SLDataLocator_URI uri; variable
160 //uri = { SL_DATALOCATOR_URI /*locatorType*/, (SLchar*) path /*URI*/ };
163 uri.locatorType = SL_DATALOCATOR_URI;
164 uri.URI = (SLchar*) path;
170 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.cpp135 SLDataLocator_URI uri; local
175 uri.locatorType = SL_DATALOCATOR_URI;
176 uri.URI = (SLchar*) path;
182 audioSource.pLocator = (void *)&uri;
H A DslesTestPlayUri2.cpp73 SLDataLocator_URI uri; local
125 uri.locatorType = SL_DATALOCATOR_URI;
126 uri.URI = (SLchar*) path;
134 audioSource.pLocator = (void *)&uri;
142 uri.URI = (SLchar*) path2;
143 audioSource.pLocator = (void *)&uri;
H A DslesTestSlowDownUri.cpp188 SLDataLocator_URI uri; local
224 uri.locatorType = SL_DATALOCATOR_URI;
225 uri.URI = (SLchar*) path;
231 audioSource.pLocator = (void *)&uri;
H A DslesTest_playStates.cpp58 SLDataLocator_URI uri; local
111 uri.locatorType = SL_DATALOCATOR_URI;
112 uri.URI = (SLchar*) path;
120 audioSource.pLocator = (void*)&uri;
/frameworks/wilhelm/tests/
H A DmimeUri_test.cpp109 SLDataLocator_URI uri; local
149 uri.locatorType = SL_DATALOCATOR_URI;
150 uri.URI = (SLchar*) path;
156 audioSource.pLocator = (void *)&uri;
/frameworks/wilhelm/tests/sandbox/
H A Dxaplay.c297 fprintf(stderr, "usage: %s [-a] [-c] [-d#] [-D#] [-f#] [-F#] [-l] [-n#] [-p#] [-s#] uri\n",
311 const char *uri = argv[i]; local
316 fd = open(uri, O_RDONLY);
318 perror(uri);
325 perror(uri);
329 fprintf(stderr, "%s: not an ordinary file\n", uri);
335 perror(uri);
340 fprintf(stderr, "%s: warning file length %zu is not a multiple of %d\n", uri, filelen,
345 printf("%s has %zu total packets\n", uri, totalPackets);
395 locUri.URI = (XAchar *) uri;
[all...]
/frameworks/support/tests/java/android/support/v4/content/
H A DFileProviderTest.java75 fail("somehow got uri for file outside roots?");
173 final Uri uri = stageFileAndGetUri(file, TEST_DATA);
176 Cursor cursor = mResolver.query(uri, null, null, null, null);
189 final Uri uri = stageFileAndGetUri(file, TEST_DATA);
192 Cursor cursor = mResolver.query(uri, new String[] {
203 cursor = mResolver.query(uri, new String[] {
217 final Uri uri = stageFileAndGetUri(file, TEST_DATA);
220 Cursor cursor = mResolver.query(uri, new String[] {
234 final Uri uri = stageFileAndGetUri(file, TEST_DATA);
236 assertContentsEquals(TEST_DATA, uri);
[all...]

Completed in 258 milliseconds

1234567891011>>