Searched refs:uri (Results 1 - 25 of 322) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/content/
H A DContentProviderResult.java27 * to have exactly one of {@link #uri} or {@link #count} set.
30 public final Uri uri; field in class:ContentProviderResult
33 public ContentProviderResult(Uri uri) { argument
34 if (uri == null) throw new IllegalArgumentException("uri must not be null");
35 this.uri = uri;
41 this.uri = null;
48 uri = null;
51 uri
[all...]
H A DEntity.java28 * corresponds to that RawContact. The uri refers to the Data table uri for each row.
47 public void addSubValue(Uri uri, ContentValues values) { argument
48 mSubValues.add(new Entity.NamedContentValues(uri, values));
52 public final Uri uri; field in class:Entity.NamedContentValues
55 public NamedContentValues(Uri uri, ContentValues values) { argument
56 this.uri = uri;
65 sb.append("\n ").append(namedValue.uri);
H A DContentProvider.java200 public Cursor query(String callingPkg, Uri uri, String[] projection, argument
203 validateIncomingUri(uri);
204 uri = getUriWithoutUserId(uri);
205 if (enforceReadPermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) {
206 return rejectQuery(uri, projection, selection, selectionArgs, sortOrder,
212 uri, projection, selection, selectionArgs, sortOrder,
220 public String getType(Uri uri) { argument
221 validateIncomingUri(uri);
222 uri
227 insert(String callingPkg, Uri uri, ContentValues initialValues) argument
243 bulkInsert(String callingPkg, Uri uri, ContentValues[] initialValues) argument
304 delete(String callingPkg, Uri uri, String selection, String[] selectionArgs) argument
319 update(String callingPkg, Uri uri, ContentValues values, String selection, String[] selectionArgs) argument
335 openFile( String callingPkg, Uri uri, String mode, ICancellationSignal cancellationSignal, IBinder callerToken) argument
351 openAssetFile( String callingPkg, Uri uri, String mode, ICancellationSignal cancellationSignal) argument
377 getStreamTypes(Uri uri, String mimeTypeFilter) argument
384 openTypedAssetFile(String callingPkg, Uri uri, String mimeType, Bundle opts, ICancellationSignal cancellationSignal) argument
404 canonicalize(String callingPkg, Uri uri) argument
420 uncanonicalize(String callingPkg, Uri uri) argument
435 enforceFilePermission(String callingPkg, Uri uri, String mode, IBinder callerToken) argument
450 enforceReadPermission(String callingPkg, Uri uri, IBinder callerToken) argument
459 enforceWritePermission(String callingPkg, Uri uri, IBinder callerToken) argument
477 enforceReadPermissionInner(Uri uri, IBinder callerToken) argument
545 enforceWritePermissionInner(Uri uri, IBinder callerToken) argument
827 rejectQuery(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder, CancellationSignal cancellationSignal) argument
897 query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument
963 query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder, CancellationSignal cancellationSignal) argument
987 getType(Uri uri) argument
1049 rejectInsert(Uri uri, ContentValues values) argument
1070 insert(Uri uri, ContentValues values) argument
1087 bulkInsert(Uri uri, ContentValues[] values) argument
1115 delete(Uri uri, String selection, String[] selectionArgs) argument
1134 update(Uri uri, ContentValues values, String selection, String[] selectionArgs) argument
1194 openFile(Uri uri, String mode) argument
1264 openFile(Uri uri, String mode, CancellationSignal signal) argument
1320 openAssetFile(Uri uri, String mode) argument
1383 openAssetFile(Uri uri, String mode, CancellationSignal signal) argument
1402 openFileHelper(Uri uri, String mode) argument
1449 getStreamTypes(Uri uri, String mimeTypeFilter) argument
1498 openTypedAssetFile(Uri uri, String mimeTypeFilter, Bundle opts) argument
1565 openTypedAssetFile( Uri uri, String mimeTypeFilter, Bundle opts, CancellationSignal signal) argument
1589 writeDataToPipe(ParcelFileDescriptor output, Uri uri, String mimeType, Bundle opts, T args) argument
1610 openPipeHelper(final Uri uri, final String mimeType, final Bundle opts, final T args, final PipeDataWriter<T> func) argument
1790 validateIncomingUri(Uri uri) argument
1829 getUserIdFromUri(Uri uri, int defaultUserId) argument
1835 getUserIdFromUri(Uri uri) argument
1852 getUriWithoutUserId(Uri uri) argument
1860 uriHasUserId(Uri uri) argument
1866 maybeAddUserId(Uri uri, int userId) argument
[all...]
H A DContentResolver.java404 * @param uri The URI, using the content:// scheme, for the content to
420 public final Cursor query(Uri uri, String[] projection, argument
422 return query(uri, projection, selection, selectionArgs, sortOrder, null);
440 * @param uri The URI, using the content:// scheme, for the content to
459 public final Cursor query(final Uri uri, String[] projection, argument
462 IContentProvider unstableProvider = acquireUnstableProvider(uri);
478 qCursor = unstableProvider.query(mPackageName, uri, projection,
485 stableProvider = acquireProvider(uri);
489 qCursor = stableProvider.query(mPackageName, uri, projection,
499 maybeLogQueryToEventLog(durationMillis, uri, projectio
628 openInputStream(Uri uri) argument
660 openOutputStream(Uri uri) argument
684 openOutputStream(Uri uri, String mode) argument
731 openFileDescriptor(Uri uri, String mode) argument
776 openFileDescriptor(Uri uri, String mode, CancellationSignal cancellationSignal) argument
846 openAssetFileDescriptor(Uri uri, String mode) argument
902 openAssetFileDescriptor(Uri uri, String mode, CancellationSignal cancellationSignal) argument
1025 openTypedAssetFileDescriptor( Uri uri, String mimeType, Bundle opts) argument
1061 openTypedAssetFileDescriptor(Uri uri, String mimeType, Bundle opts, CancellationSignal cancellationSignal) argument
1151 getResourceId(Uri uri) argument
1325 update(Uri uri, ContentValues values, String where, String[] selectionArgs) argument
1360 call(Uri uri, String method, String arg, Bundle extras) argument
1389 acquireProvider(Uri uri) argument
1408 acquireExistingProvider(Uri uri) argument
1436 acquireUnstableProvider(Uri uri) argument
1468 acquireContentProviderClient(Uri uri) argument
1513 acquireUnstableContentProviderClient(Uri uri) argument
1560 registerContentObserver(Uri uri, boolean notifyForDescendents, ContentObserver observer) argument
1567 registerContentObserver(Uri uri, boolean notifyForDescendents, ContentObserver observer, int userHandle) argument
1606 notifyChange(Uri uri, ContentObserver observer) argument
1626 notifyChange(Uri uri, ContentObserver observer, boolean syncToNetwork) argument
1635 notifyChange(Uri uri, ContentObserver observer, boolean syncToNetwork, int userHandle) argument
1656 takePersistableUriPermission(Uri uri, @Intent.AccessUriMode int modeFlags) argument
1672 releasePersistableUriPermission(Uri uri, @Intent.AccessUriMode int modeFlags) argument
1734 startSync(Uri uri, Bundle extras) argument
1847 cancelSync(Uri uri) argument
2374 maybeLogQueryToEventLog(long durationMillis, Uri uri, String[] projection, String selection, String sortOrder) argument
2415 maybeLogUpdateToEventLog( long durationMillis, Uri uri, String operation, String selection) argument
2524 resolveUserId(Uri uri) argument
[all...]
H A DSearchRecentSuggestionsProvider.java225 public int delete(Uri uri, String selection, String[] selectionArgs) { argument
228 final int length = uri.getPathSegments().size();
233 final String base = uri.getPathSegments().get(0);
240 getContext().getContentResolver().notifyChange(uri, null);
249 public String getType(Uri uri) { argument
250 if (mUriMatcher.match(uri) == URI_MATCH_SUGGEST) {
253 int length = uri.getPathSegments().size();
255 String base = uri.getPathSegments().get(0);
272 public Uri insert(Uri uri, ContentValues values) { argument
275 int length = uri
319 query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument
393 update(Uri uri, ContentValues values, String selection, String[] selectionArgs) argument
[all...]
/frameworks/av/media/libmediaplayerservice/
H A DActivityManager.h27 extern int openContentProviderFile(const String16& uri);
H A DActivityManager.cpp31 int openContentProviderFile(const String16& uri) argument
40 data.writeString16(uri);
53 String8(uri).string(), exceptionCode);
/frameworks/base/core/tests/coretests/src/android/net/
H A DUriTest.java39 Uri uri = builder.build();
40 assertEquals("//foo", uri.toString());
169 Uri uri = Uri.parse("http://localhost:42");
170 assertEquals("localhost", uri.getHost());
171 assertEquals(42, uri.getPort());
173 uri = Uri.parse("http://bob@localhost:42");
174 assertEquals("bob", uri.getUserInfo());
175 assertEquals("localhost", uri.getHost());
176 assertEquals(42, uri.getPort());
178 uri
370 testOpaqueUri(Uri uri) argument
495 compareHierarchical(String uriString, String ssp, Uri uri, String scheme, String authority, String path, String query, String fragment) argument
[all...]
/frameworks/base/core/java/android/database/
H A DContentObserver.java120 * public void onChange(boolean selfChange, Uri uri) {
127 * @param uri The Uri of the changed content, or null if unknown.
129 public void onChange(boolean selfChange, Uri uri) { argument
138 * @param uri The Uri of the changed content, or null if unknown.
144 public void onChange(boolean selfChange, Uri uri, int userId) { argument
145 onChange(selfChange, uri);
175 * @param uri The Uri of the changed content, or null if unknown.
177 public final void dispatchChange(boolean selfChange, Uri uri) { argument
178 dispatchChange(selfChange, uri, UserHandle.getCallingUserId());
191 * @param uri Th
194 dispatchChange(boolean selfChange, Uri uri, int userId) argument
208 NotificationRunnable(boolean selfChange, Uri uri, int userId) argument
228 onChange(boolean selfChange, Uri uri, int userId) argument
[all...]
H A DIContentObserver.aidl32 oneway void onChange(boolean selfUpdate, in Uri uri, int userId);
/frameworks/base/sax/java/android/sax/
H A DChildren.java30 Element getOrCreate(Element parent, String uri, String localName) { argument
31 int hash = uri.hashCode() * 31 + localName.hashCode();
37 current = new Child(parent, uri, localName, parent.depth + 1, hash);
45 && current.uri.compareTo(uri) == 0
56 current = new Child(parent, uri, localName, parent.depth + 1, hash);
65 Element get(String uri, String localName) { argument
66 int hash = uri.hashCode() * 31 + localName.hashCode();
75 && current.uri.compareTo(uri)
91 Child(Element parent, String uri, String localName, int depth, int hash) argument
[all...]
H A DElement.java32 final String uri; field in class:Element
46 Element(Element parent, String uri, String localName, int depth) { argument
48 this.uri = uri;
64 public Element getChild(String uri, String localName) { argument
74 return children.getOrCreate(this, uri, localName);
92 public Element requireChild(String uri, String localName) { argument
93 Element child = getChild(uri, localName);
166 return toString(uri, localName);
169 static String toString(String uri, Strin argument
[all...]
H A DRootElement.java73 * @param uri the namespace
76 public RootElement(String uri, String localName) { argument
77 super(null, uri, localName, 0);
110 public void startElement(String uri, String localName, String qName, argument
116 startRoot(uri, localName, attributes);
132 Element child = children.get(uri, localName);
140 void startRoot(String uri, String localName, Attributes attributes) argument
143 if (root.uri.compareTo(uri) != 0
147 + Element.toString(uri, localNam
178 endElement(String uri, String localName, String qName) argument
[all...]
/frameworks/base/media/java/android/media/
H A DIMediaScannerListener.aidl29 * @param uri the Uri for the file if the scanning operation succeeded
32 void scanCompleted(String path, in Uri uri);
H A DIRingtonePlayer.aidl28 void play(IBinder token, in Uri uri, in AudioAttributes aa);
33 void playAsync(in Uri uri, in UserHandle user, boolean looping, in AudioAttributes aa);
/frameworks/base/core/tests/coretests/EnabledTestApp/src/com/android/frameworks/coretests/enabled_app/
H A DDisabledProvider.java34 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument
39 public String getType(Uri uri) { argument
43 public Uri insert(Uri uri, ContentValues values) { argument
47 public int delete(Uri uri, String selection, String[] selectionArgs) { argument
51 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { argument
H A DEnabledProvider.java34 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument
39 public String getType(Uri uri) { argument
43 public Uri insert(Uri uri, ContentValues values) { argument
47 public int delete(Uri uri, String selection, String[] selectionArgs) { argument
51 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { argument
/frameworks/base/core/tests/coretests/apks/install_complete_package_info/src/com/android/frameworks/coretests/
H A DTestProvider.java33 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument
39 public String getType(Uri uri) { argument
44 public Uri insert(Uri uri, ContentValues values) { argument
49 public int delete(Uri uri, String selection, String[] selectionArgs) { argument
54 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { argument
H A DTestReceiver.java33 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument
39 public String getType(Uri uri) { argument
44 public Uri insert(Uri uri, ContentValues values) { argument
49 public int delete(Uri uri, String selection, String[] selectionArgs) { argument
54 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { argument
/frameworks/base/core/tests/coretests/apks/version/src/com/android/frameworks/coretests/version_test/
H A DNullProvider.java15 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument
21 public Uri insert(Uri uri, ContentValues values) { argument
26 public int delete(Uri uri, String selection, String[] selectionArgs) { argument
31 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { argument
36 public String getType(Uri uri) { argument
/frameworks/base/core/tests/coretests/apks/version_nosys/src/com/android/frameworks/coretests/version_test/
H A DNullProvider.java15 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument
21 public Uri insert(Uri uri, ContentValues values) { argument
26 public int delete(Uri uri, String selection, String[] selectionArgs) { argument
31 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { argument
36 public String getType(Uri uri) { argument
/frameworks/base/core/java/android/provider/
H A DDocumentsProvider.java475 public final Cursor query(Uri uri, String[] projection, String selection, argument
478 switch (mMatcher.match(uri)) {
482 return queryRecentDocuments(getRootId(uri), projection);
485 getRootId(uri), getSearchDocumentsQuery(uri), projection);
488 enforceTree(uri);
489 return queryDocument(getDocumentId(uri), projection);
492 enforceTree(uri);
493 if (DocumentsContract.isManageMode(uri)) {
495 getDocumentId(uri), projectio
514 getType(Uri uri) argument
545 canonicalize(Uri uri) argument
562 getCallingOrSelfUriPermissionModeFlags(Context context, Uri uri) argument
588 insert(Uri uri, ContentValues values) argument
599 delete(Uri uri, String selection, String[] selectionArgs) argument
608 update( Uri uri, ContentValues values, String selection, String[] selectionArgs) argument
711 openFile(Uri uri, String mode) argument
722 openFile(Uri uri, String mode, CancellationSignal signal) argument
735 openAssetFile(Uri uri, String mode) argument
749 openAssetFile(Uri uri, String mode, CancellationSignal signal) argument
762 openTypedAssetFile(Uri uri, String mimeTypeFilter, Bundle opts) argument
779 openTypedAssetFile( Uri uri, String mimeTypeFilter, Bundle opts, CancellationSignal signal) argument
[all...]
H A DSyncStateContract.java67 * @param uri the uri of the sync state
73 public static byte[] get(ContentProviderClient provider, Uri uri, argument
75 Cursor c = provider.query(uri, DATA_PROJECTION, SELECT_BY_ACCOUNT,
97 * @param uri the uri of the sync state
103 public static void set(ContentProviderClient provider, Uri uri, argument
109 provider.insert(uri, values);
112 public static Uri insert(ContentProviderClient provider, Uri uri, argument
118 return provider.insert(uri, value
121 update(ContentProviderClient provider, Uri uri, byte[] data) argument
128 getWithUri(ContentProviderClient provider, Uri uri, Account account) argument
158 newSetOperation(Uri uri, Account account, byte[] data) argument
178 newUpdateOperation(Uri uri, byte[] data) argument
[all...]
H A DSearchIndexablesProvider.java104 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument
106 switch (mMatcher.match(uri)) {
114 throw new UnsupportedOperationException("Unknown Uri " + uri);
152 public String getType(Uri uri) { argument
153 switch (mMatcher.match(uri)) {
161 throw new IllegalArgumentException("Unknown URI " + uri);
169 public final Uri insert(Uri uri, ContentValues values) { argument
177 public final int delete(Uri uri, String selection, String[] selectionArgs) { argument
186 Uri uri, ContentValues values, String selection, String[] selectionArgs) {
185 update( Uri uri, ContentValues values, String selection, String[] selectionArgs) argument
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
H A DSingleUserProvider.java35 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument
41 public String getType(Uri uri) { argument
46 public Uri insert(Uri uri, ContentValues values) { argument
51 public int delete(Uri uri, String selection, String[] selectionArgs) { argument
56 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { argument

Completed in 450 milliseconds

1234567891011>>