Searched defs:uri (Results 76 - 100 of 291) sorted by relevance

1234567891011>>

/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/
H A DDownloadManagerTestApp.java70 * Normalizes a uri to ensure it ends with a "/"
72 * @param uri The uri to normalize (or null)
73 * @return The normalized uri, or null if null was passed in
75 public String normalizeUri(String uri) { argument
76 if (uri != null && !uri.endsWith("/")) {
77 uri += "/";
79 return uri;
/frameworks/base/media/java/android/media/
H A DAsyncPlayer.java40 Uri uri; field in class:AsyncPlayer.Command
47 + " uri=" + uri + " }";
61 player.setDataSource(cmd.context, cmd.uri);
75 Log.w(mTag, "error loading sound for " + cmd.uri, e);
158 * @param uri The URI to play. (see {@link MediaPlayer#setDataSource(Context, Uri)})
165 public void play(Context context, Uri uri, boolean looping, int stream) { argument
166 if (context == null || uri == null) {
170 play(context, uri, looping,
184 * @param uri th
191 play(@onNull Context context, @NonNull Uri uri, boolean looping, @NonNull AudioAttributes attributes) argument
[all...]
H A DMediaScannerConnection.java50 public void scanCompleted(String path, Uri uri) {
53 client.onScanCompleted(path, uri);
67 * @param uri the Uri for the file if the scanning operation succeeded
70 public void onScanCompleted(String path, Uri uri); argument
89 * @param uri the Uri for the file if the scanning operation succeeded
92 public void onScanCompleted(String path, Uri uri); argument
202 public void onScanCompleted(String path, Uri uri) { argument
204 mClient.onScanCompleted(path, uri);
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
H A DObjectViewer.java76 public void onScanCompleted(String path, Uri uri) { argument
80 Intent intent = new Intent(Intent.ACTION_VIEW, uri);
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DDirectoryLoader.java62 public DirectoryLoader(Context context, int type, RootInfo root, DocumentInfo doc, Uri uri, argument
67 mUri = uri;
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
H A DTrackerProvider.java86 public int delete(Uri uri, String selection, String[] selectionArgs) { argument
89 getContext().getContentResolver().notifyChange(uri, null);
94 public String getType(Uri uri) { argument
99 public Uri insert(Uri uri, ContentValues values) { argument
111 public Cursor query(Uri uri, String[] projection, String selection, argument
117 getContext().getContentResolver().notifyChange(uri, null);
122 public int update(Uri uri, ContentValues values, String selection, argument
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeContentProvider.java140 public Uri canonicalize(String callingPkg, Uri uri) throws RemoteException { argument
145 public Uri uncanonicalize(String callingPkg, Uri uri) throws RemoteException { argument
/frameworks/ex/common/java/com/android/common/content/
H A DSQLiteContentProvider.java71 protected abstract Uri insertInTransaction(Uri uri, ContentValues values); argument
76 protected abstract int updateInTransaction(Uri uri, ContentValues values, String selection, argument
82 protected abstract int deleteInTransaction(Uri uri, String selection, String[] selectionArgs); argument
95 public Uri insert(Uri uri, ContentValues values) { argument
102 result = insertInTransaction(uri, values);
113 result = insertInTransaction(uri, values);
122 public int bulkInsert(Uri uri, ContentValues[] values) { argument
128 Uri result = insertInTransaction(uri, values[i]);
148 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { argument
155 count = updateInTransaction(uri, value
176 delete(Uri uri, String selection, String[] selectionArgs) argument
[all...]
/frameworks/opt/bitmap/src/com/android/bitmap/view/
H A DBitmapDrawableImageView.java113 public void setImageURI(final Uri uri) { argument
114 super.setImageURI(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/photoviewer/src/com/android/ex/photo/util/
H A DImageUtils.java92 * @param uri The local URI
96 public static BitmapResult createLocalBitmap(final ContentResolver resolver, final Uri uri, argument
99 final InputStreamFactory factory = createInputStreamFactory(resolver, uri);
206 final Uri uri) {
207 final String scheme = uri.getScheme();
209 return new DataInputStreamFactory(resolver, uri);
211 return new BaseInputStreamFactory(resolver, uri);
232 public BaseInputStreamFactory(final ContentResolver resolver, final Uri uri) { argument
234 mUri = uri;
246 public DataInputStreamFactory(final ContentResolver resolver, final Uri uri) { argument
205 createInputStreamFactory(final ContentResolver resolver, final Uri uri) argument
261 parseDataUri(final Uri uri) argument
[all...]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DSmsNumberUtilsTest.java51 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument
54 logd(" uri = " + uri);
60 if (uri.compareTo(HbpcdLookup.MccIdd.CONTENT_URI) == 0) {
87 } else if (uri.compareTo(HbpcdLookup.MccLookup.CONTENT_URI) == 0) {
105 logd("Unknown URI: " + uri);
H A DSubscriptionControllerTest.java97 public int delete(Uri uri, String selection, String[] selectionArgs) { argument
106 public Uri insert(Uri uri, ContentValues values) { argument
109 return uri;
113 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument
127 public int update(android.net.Uri uri, android.content.ContentValues values, argument
H A DSubscriptionInfoUpdaterTest.java86 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { argument
/frameworks/rs/java/tests/Refocus/src/com/android/rs/test/
H A DRGBZ.java34 * Creates an RGBZ from a content uri.
36 * @param uri The uri name of the RGBZ
39 public RGBZ(Uri uri, ContentResolver contentResolver, Context context) throws IOException { argument
40 preview = BitmapFactory.decodeStream(contentResolver.openInputStream(uri));
42 throw new FileNotFoundException(uri.toString());
44 this.depthImage = new DepthImage(context, uri);
/frameworks/support/core-utils/java/android/support/v4/provider/
H A DDocumentFile.java141 public static boolean isDocumentUri(Context context, Uri uri) { argument
144 return DocumentsContractApi19.isDocumentUri(context, uri);
/frameworks/support/core-utils/tests/java/android/support/v4/provider/
H A DDocumentFileTest.java175 assertEquals("uri", 12, readInt(foo.getUri()));
187 assertEquals("uri", 13, readInt(foo.getUri()));
342 private void writeInt(Uri uri, int value) throws IOException { argument
344 getContext().getContentResolver().openOutputStream(uri));
361 private int readInt(Uri uri) throws IOException { argument
363 getContext().getContentResolver().openInputStream(uri));
/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/mimeUri/
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 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;
/frameworks/av/drm/common/
H A DDrmEngineBase.cpp135 const char* uri, const char* mime) {
137 return onOpenDecryptSession(uniqueId, decryptHandle, uri);
139 return onOpenDecryptSession(uniqueId, decryptHandle, uri, mime);
133 openDecryptSession( int uniqueId, DecryptHandle* decryptHandle, const char* uri, const char* mime) argument
/frameworks/av/drm/libdrmframework/
H A DDrmManagerClient.cpp127 const char* uri, const char* mime) {
130 mUniqueId, uri, mime);
126 openDecryptSession( const char* uri, const char* mime) argument
/frameworks/av/media/libstagefright/
H A DDataSource.cpp195 const char *uri,
203 bool isWidevine = !strncasecmp("widevine://", uri, 11);
206 if (!strncasecmp("file://", uri, 7)) {
207 source = new FileSource(uri + 7);
208 } else if (!strncasecmp("http://", uri, 7)
209 || !strncasecmp("https://", uri, 8)
228 tmp.append(uri + 11);
230 uri = tmp.string();
244 if (httpSource->connect(uri, &nonCacheSpecificHeaders) != OK) {
263 } else if (!strncasecmp("data:", uri,
193 CreateFromURI( const sp<IMediaHTTPService> &httpService, const char *uri, const KeyedVector<String8, String8> *headers, String8 *contentType, HTTPBase *httpSource) argument
[all...]
/frameworks/base/core/java/android/content/
H A DContentProviderClient.java397 public final @Nullable AssetFileDescriptor openTypedAssetFileDescriptor(@NonNull Uri uri, argument
400 return openTypedAssetFileDescriptor(uri, mimeType, opts, null);
404 public final @Nullable AssetFileDescriptor openTypedAssetFileDescriptor(@NonNull Uri uri, argument
407 Preconditions.checkNotNull(uri, "uri");
419 mPackageName, uri, mimeType, opts, remoteSignal);

Completed in 461 milliseconds

1234567891011>>