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

1234567891011>>

/frameworks/base/core/tests/coretests/src/android/provider/
H A DTestFontsProvider.java76 public Cursor query(@NonNull Uri uri, @Nullable String[] projection, @Nullable String selection, argument
96 public ParcelFileDescriptor openFile(Uri uri, String mode) { argument
106 public String getType(@NonNull Uri uri) { argument
111 public Uri insert(@NonNull Uri uri, @Nullable ContentValues values) { argument
116 public int delete(@NonNull Uri uri, @Nullable String selection, argument
122 public int update(@NonNull Uri uri, @Nullable ContentValues values, @Nullable String selection, argument
/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.java41 Uri uri; field in class:AsyncPlayer.Command
48 + " uri=" + uri + " }";
62 player.setDataSource(cmd.context, cmd.uri);
76 Log.w(mTag, "error loading sound for " + cmd.uri, e);
159 * @param uri The URI to play. (see {@link MediaPlayer#setDataSource(Context, Uri)})
166 public void play(Context context, Uri uri, boolean looping, int stream) { argument
168 if (context == null || uri == null) {
172 play(context, uri, looping,
186 * @param uri th
193 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/SystemUI/src/com/android/systemui/tuner/
H A DTunerServiceImpl.java165 Uri uri = Settings.Secure.getUriFor(key);
166 if (!mListeningUris.containsKey(uri)) {
167 mListeningUris.put(uri, key);
168 mContentResolver.registerContentObserver(uri, false, mObserver, mCurrentUser);
190 for (Uri uri : mListeningUris.keySet()) {
191 mContentResolver.registerContentObserver(uri, false, mObserver, mCurrentUser);
195 private void reloadSetting(Uri uri) { argument
196 String key = mListeningUris.get(uri);
236 public void onChange(boolean selfChange, Uri uri, int userId) { argument
238 reloadSetting(uri);
[all...]
/frameworks/base/services/core/java/com/android/server/job/
H A DGrantedUriPermissions.java111 private static GrantedUriPermissions grantUri(IActivityManager am, Uri uri, argument
115 int sourceUserId = ContentProvider.getUserIdFromUri(uri,
117 uri = ContentProvider.getUriWithoutUserId(uri);
122 uri, grantFlags, sourceUserId, targetUserId);
123 curPerms.mUris.add(uri);
/frameworks/base/services/net/java/android/net/util/
H A DMultinetworkPolicyTracker.java103 for (Uri uri : mSettingsUris) {
104 mResolver.registerContentObserver(uri, false, mSettingObserver);
187 public void onChange(boolean selfChange, Uri uri) { argument
188 if (!mSettingsUris.contains(uri)) {
189 Slog.wtf(TAG, "Unexpected settings observation: " + 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.java52 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument
55 logd(" uri = " + uri);
61 if (uri.compareTo(HbpcdLookup.MccIdd.CONTENT_URI) == 0) {
88 } else if (uri.compareTo(HbpcdLookup.MccLookup.CONTENT_URI) == 0) {
106 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.java84 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { argument
/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/java/android/support/v4/graphics/drawable/
H A DIconCompat.java149 * @param uri A uri referring to local content:// or file:// image data.
152 public static IconCompat createWithContentUri(String uri) { argument
153 if (uri == null) {
157 rep.mObj1 = uri;
164 * @param uri A uri referring to local content:// or file:// image data.
167 public static IconCompat createWithContentUri(Uri uri) { argument
168 if (uri == null) {
171 return createWithContentUri(uri
[all...]
/frameworks/support/core-utils/java/android/support/v4/provider/
H A DDocumentFile.java139 public static boolean isDocumentUri(Context context, Uri uri) { argument
141 return DocumentsContractApi19.isDocumentUri(context, uri);
/frameworks/support/core-utils/tests/java/android/support/v4/provider/
H A DDocumentFileTest.java176 assertEquals("uri", 12, readInt(foo.getUri()));
188 assertEquals("uri", 13, readInt(foo.getUri()));
343 private void writeInt(Uri uri, int value) throws IOException { argument
345 getContext().getContentResolver().openOutputStream(uri));
362 private int readInt(Uri uri) throws IOException { argument
364 getContext().getContentResolver().openInputStream(uri));
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DAppCompatImageButton.java111 public void setImageURI(@Nullable Uri uri) { argument
112 super.setImageURI(uri);
H A DAppCompatImageView.java121 public void setImageURI(@Nullable Uri uri) { argument
122 super.setImageURI(uri);
/frameworks/wilhelm/src/desktop/
H A DSndFile.cpp151 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;

Completed in 7799 milliseconds

1234567891011>>