Home
last modified time | relevance | path

Searched refs:Uri (Results 1 – 25 of 788) sorted by relevance

12345678910>>...32

/frameworks/base/core/tests/coretests/src/android/net/
DUriTest.java36 Uri.Builder builder = new Uri.Builder(); in testToStringWithPathOnly()
40 Uri uri = builder.build(); in testToStringWithPathOnly()
46 parcelAndUnparcel(Uri.parse("foo:bob%20lee")); in testParcelling()
47 parcelAndUnparcel(Uri.fromParts("foo", "bob lee", "fragment")); in testParcelling()
48 parcelAndUnparcel(new Uri.Builder() in testParcelling()
57 private void parcelAndUnparcel(Uri u) { in parcelAndUnparcel()
60 Uri.writeToParcel(p, u); in parcelAndUnparcel()
62 assertEquals(u, Uri.CREATOR.createFromParcel(p)); in parcelAndUnparcel()
66 Uri.writeToParcel(p, u); in parcelAndUnparcel()
68 assertEquals(u, Uri.CREATOR.createFromParcel(p)); in parcelAndUnparcel()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/pm/
DVerificationParamsTest.java19 import android.net.Uri;
39 private final static Uri VERIFICATION_URI = Uri.parse(VERIFICATION_URI_STRING);
40 private final static Uri ORIGINATING_URI = Uri.parse(ORIGINATING_URI_STRING);
41 private final static Uri REFERRER = Uri.parse(REFERRER_STRING);
69 Uri.parse(VERIFICATION_URI_STRING), Uri.parse(ORIGINATING_URI_STRING), in testEquals_Success()
70 Uri.parse(REFERRER_STRING), ORIGINATING_UID); in testEquals_Success()
80 Uri.parse("http://a.different.uri/"), Uri.parse(ORIGINATING_URI_STRING), in testEquals_VerificationUri_Failure()
81 Uri.parse(REFERRER_STRING), ORIGINATING_UID); in testEquals_VerificationUri_Failure()
91 Uri.parse(VERIFICATION_URI_STRING), Uri.parse("http://a.different.uri/"), in testEquals_OriginatingUri_Failure()
92 Uri.parse(REFERRER_STRING), ORIGINATING_UID); in testEquals_OriginatingUri_Failure()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/content/
DObserverNodeTest.java22 import android.net.Uri;
47 Uri[] uris = new Uri[] { in testUri()
48 Uri.parse("content://c/a/"), in testUri()
49 Uri.parse("content://c/"), in testUri()
50 Uri.parse("content://x/"), in testUri()
51 Uri.parse("content://c/b/"), in testUri()
52 Uri.parse("content://c/a/a1/1/"), in testUri()
53 Uri.parse("content://c/a/a1/2/"), in testUri()
54 Uri.parse("content://c/b/1/"), in testUri()
55 Uri.parse("content://c/b/2/"), in testUri()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/
DContentProviderTest.java25 import android.net.Uri;
60 assertEquals(Uri.parse("content://com.example/"), in testValidateIncomingUri_Normal()
61 mCp.validateIncomingUri(Uri.parse("content://com.example/"))); in testValidateIncomingUri_Normal()
62 assertEquals(Uri.parse("content://com.example/foo/bar"), in testValidateIncomingUri_Normal()
63 mCp.validateIncomingUri(Uri.parse("content://com.example/foo/bar"))); in testValidateIncomingUri_Normal()
64 assertEquals(Uri.parse("content://com.example/foo%2Fbar"), in testValidateIncomingUri_Normal()
65 mCp.validateIncomingUri(Uri.parse("content://com.example/foo%2Fbar"))); in testValidateIncomingUri_Normal()
66 assertEquals(Uri.parse("content://com.example/foo%2F%2Fbar"), in testValidateIncomingUri_Normal()
67 mCp.validateIncomingUri(Uri.parse("content://com.example/foo%2F%2Fbar"))); in testValidateIncomingUri_Normal()
72 assertEquals(Uri.parse("content://com.example/"), in testValidateIncomingUri_Shady()
[all …]
/frameworks/base/telephony/java/android/provider/
DTelephony.java36 import android.net.Uri;
293 public static final Uri CONTENT_URI = Uri.parse("content://sms-changes");
395 public static final Uri CONTENT_URI = Uri.parse("content://sms");
417 public static Uri addMessageToUri(ContentResolver resolver, in addMessageToUri()
418 Uri uri, String address, String body, String subject, in addMessageToUri()
440 public static Uri addMessageToUri(int subId, ContentResolver resolver, in addMessageToUri()
441 Uri uri, String address, String body, String subject, in addMessageToUri()
463 public static Uri addMessageToUri(ContentResolver resolver, in addMessageToUri()
464 Uri uri, String address, String body, String subject, in addMessageToUri()
488 public static Uri addMessageToUri(int subId, ContentResolver resolver, in addMessageToUri()
[all …]
/frameworks/opt/telephony/src/java/com/google/android/mms/util/
DPduCache.java22 import android.net.Uri;
29 public final class PduCache extends AbstractCache<Uri, PduCacheEntry> {
74 private final HashMap<Integer, HashSet<Uri>> mMessageBoxes;
75 private final HashMap<Long, HashSet<Uri>> mThreads;
76 private final HashSet<Uri> mUpdating;
79 mMessageBoxes = new HashMap<Integer, HashSet<Uri>>(); in PduCache()
80 mThreads = new HashMap<Long, HashSet<Uri>>(); in PduCache()
81 mUpdating = new HashSet<Uri>(); in PduCache()
95 synchronized public boolean put(Uri uri, PduCacheEntry entry) { in put()
97 HashSet<Uri> msgBox = mMessageBoxes.get(msgBoxId); in put()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DHbpcdLookup.java19 import android.net.Uri;
28 public static final Uri CONTENT_URI =
29 Uri.parse("content://" + AUTHORITY);
46 public static final Uri CONTENT_URI =
47 Uri.parse("content://" + AUTHORITY + "/" + PATH_MCC_IDD);
59 public static final Uri CONTENT_URI =
60 Uri.parse("content://" + AUTHORITY + "/" + PATH_MCC_LOOKUP_TABLE);
79 public static final Uri CONTENT_URI =
80 Uri.parse("content://" + AUTHORITY + "/" + PATH_MCC_SID_CONFLICT);
92 public static final Uri CONTENT_URI =
[all …]
/frameworks/base/core/java/android/content/
DContentInterface.java23 import android.net.Uri;
43 public @Nullable Cursor query(@NonNull Uri uri, @Nullable String[] projection, in query()
47 public @Nullable String getType(@NonNull Uri uri) throws RemoteException; in getType()
49 public @Nullable String[] getStreamTypes(@NonNull Uri uri, @NonNull String mimeTypeFilter) in getStreamTypes()
52 public @Nullable Uri canonicalize(@NonNull Uri uri) throws RemoteException; in canonicalize()
54 public @Nullable Uri uncanonicalize(@NonNull Uri uri) throws RemoteException; in uncanonicalize()
56 public boolean refresh(@NonNull Uri uri, @Nullable Bundle args, in refresh()
59 public @Nullable Uri insert(@NonNull Uri uri, @Nullable ContentValues initialValues) in insert()
62 public int bulkInsert(@NonNull Uri uri, @NonNull ContentValues[] initialValues) in bulkInsert()
65 public int delete(@NonNull Uri uri, @Nullable String selection, in delete()
[all …]
DIContentProvider.java23 import android.net.Uri;
40 public Cursor query(String callingPkg, Uri url, @Nullable String[] projection, in query()
43 public String getType(Uri url) throws RemoteException; in getType()
45 public Uri insert(String callingPkg, Uri url, ContentValues initialValues) in insert()
48 public int bulkInsert(String callingPkg, Uri url, ContentValues[] initialValues) in bulkInsert()
51 public int delete(String callingPkg, Uri url, String selection, String[] selectionArgs) in delete()
54 public int update(String callingPkg, Uri url, ContentValues values, String selection, in update()
57 String callingPkg, Uri url, String mode, ICancellationSignal signal, in openFile()
61 String callingPkg, Uri url, String mode, ICancellationSignal signal) in openAssetFile()
87 public Uri canonicalize(String callingPkg, Uri uri) throws RemoteException; in canonicalize()
[all …]
DContentUris.java20 import android.net.Uri;
87 public static long parseId(@NonNull Uri contentUri) { in parseId()
100 public static @NonNull Uri.Builder appendId(@NonNull Uri.Builder builder, long id) { in appendId()
112 public static @NonNull Uri withAppendedId(@NonNull Uri contentUri, long id) { in withAppendedId()
124 public static @NonNull Uri removeId(@NonNull Uri contentUri) { in removeId()
134 final Uri.Builder builder = contentUri.buildUpon(); in removeId()
DContentProviderNative.java28 import android.net.Uri;
86 Uri url = Uri.CREATOR.createFromParcel(data); in onTransact()
139 Uri url = Uri.CREATOR.createFromParcel(data); in onTransact()
151 Uri url = Uri.CREATOR.createFromParcel(data); in onTransact()
154 Uri out = insert(callingPkg, url, values); in onTransact()
156 Uri.writeToParcel(reply, out); in onTransact()
164 Uri url = Uri.CREATOR.createFromParcel(data); in onTransact()
195 Uri url = Uri.CREATOR.createFromParcel(data); in onTransact()
210 Uri url = Uri.CREATOR.createFromParcel(data); in onTransact()
226 Uri url = Uri.CREATOR.createFromParcel(data); in onTransact()
[all …]
/frameworks/base/test-mock/src/android/test/mock/
DMockContentProvider.java31 import android.net.Uri;
64 public int bulkInsert(String callingPackage, Uri url, ContentValues[] initialValues) in bulkInsert()
70 public int delete(String callingPackage, Uri url, String selection, String[] selectionArgs) in delete()
76 public String getType(Uri url) throws RemoteException { in getType()
81 public Uri insert(String callingPackage, Uri url, ContentValues initialValues) in insert()
88 String callingPackage, Uri url, String mode, ICancellationSignal signal) in openAssetFile()
95 String callingPackage, Uri url, String mode, ICancellationSignal signal, in openFile()
101 public Cursor query(String callingPackage, Uri url, @Nullable String[] projection, in query()
109 public int update(String callingPackage, Uri url, ContentValues values, String selection, in update()
126 public String[] getStreamTypes(Uri url, String mimeTypeFilter) throws RemoteException { in getStreamTypes()
[all …]
DMockIContentProvider.java27 import android.net.Uri;
46 public int bulkInsert(String callingPackage, Uri url, ContentValues[] initialValues) { in bulkInsert()
52 public int delete(String callingPackage, Uri url, String selection, String[] selectionArgs) in delete()
58 public String getType(Uri url) { in getType()
64 public Uri insert(String callingPackage, Uri url, ContentValues initialValues) in insert()
71 String callingPackage, Uri url, String mode, ICancellationSignal signal, in openFile()
78 String callingPackage, Uri uri, String mode, ICancellationSignal signal) { in openAssetFile()
89 public Cursor query(String callingPackage, Uri url, @Nullable String[] projection, in query()
94 public EntityIterator queryEntities(Uri url, String selection, String[] selectionArgs, in queryEntities()
100 public int update(String callingPackage, Uri url, ContentValues values, String selection, in update()
[all …]
/frameworks/base/core/java/android/provider/
DBrowserContract.java29 import android.net.Uri;
51 public static final Uri AUTHORITY_URI = Uri.parse("content://" + AUTHORITY);
257 public static final Uri CONTENT_URI = Uri.withAppendedPath(AUTHORITY_URI, "bookmarks");
307 public static final Uri CONTENT_URI_DEFAULT_FOLDER =
308 Uri.withAppendedPath(CONTENT_URI, "folder");
328 public static final Uri buildFolderUri(long folderId) { in buildFolderUri()
416 public static final Uri CONTENT_URI =
454 public static final Uri CONTENT_URI = Uri.withAppendedPath(AUTHORITY_URI, "history");
477 public static final Uri CONTENT_URI = Uri.withAppendedPath(AUTHORITY_URI, "searches");
525 public static final Uri CONTENT_URI =
[all …]
DContactsContract.java46 import android.net.Uri;
123 public static final Uri AUTHORITY_URI = Uri.parse("content://" + AUTHORITY);
417 public static final Uri CONTENT_URI =
418 Uri.withAppendedPath(AUTHORITY_URI, "directories");
432 public static final Uri ENTERPRISE_CONTENT_URI = Uri.withAppendedPath(AUTHORITY_URI,
445 public static final Uri ENTERPRISE_FILE_URI = Uri.withAppendedPath(AUTHORITY_URI,
708 public static final Uri CONTENT_URI =
709 Uri.withAppendedPath(AUTHORITY_URI, CONTENT_DIRECTORY);
722 public static Pair<Uri, byte[]> getWithUri(ContentProviderClient provider, Account account) in getWithUri()
762 public static final Uri CONTENT_URI =
[all …]
DDocumentsContract.java39 import android.net.Uri;
869 public static Uri buildRootsUri(String authority) { in buildRootsUri()
870 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildRootsUri()
880 public static Uri buildRootUri(String authority, String rootId) { in buildRootUri()
881 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildRootUri()
893 public static Uri buildRecentDocumentsUri(String authority, String rootId) { in buildRecentDocumentsUri()
894 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT) in buildRecentDocumentsUri()
905 public static Uri buildTreeDocumentUri(String authority, String documentId) { in buildTreeDocumentUri()
906 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT).authority(authority) in buildTreeDocumentUri()
918 public static Uri buildDocumentUri(String authority, String documentId) { in buildDocumentUri()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeContentProvider.java26 import android.net.Uri;
51 public int bulkInsert(String callingPackage, Uri arg0, ContentValues[] arg1) in bulkInsert()
65 public int delete(String callingPackage, Uri arg0, String arg1, String[] arg2) in delete()
72 public String getType(Uri arg0) throws RemoteException { in getType()
78 public Uri insert(String callingPackage, Uri arg0, ContentValues arg1) throws RemoteException { in insert()
85 String callingPackage, Uri arg0, String arg1, ICancellationSignal signal) in openAssetFile()
93 String callingPackage, Uri arg0, String arg1, ICancellationSignal signal, IBinder token) in openFile()
100 public Cursor query(String callingPackage, Uri arg0, String[] arg1, in query()
107 public int update(String callingPackage, Uri arg0, ContentValues arg1, String arg2, in update()
120 public String[] getStreamTypes(Uri arg0, String arg1) throws RemoteException { in getStreamTypes()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/
DIMms.aidl21 import android.net.Uri;
41 void sendMessage(int subId, String callingPkg, in Uri contentUri, in sendMessage()
59 in Uri contentUri, in Bundle configOverrides, in downloadMessage()
81 Uri importTextMessage(String callingPkg, String address, int type, String text, in importTextMessage()
95 Uri importMultimediaMessage(String callingPkg, in Uri contentUri, String messageId, in importMultimediaMessage()
105 boolean deleteStoredMessage(String callingPkg, in Uri messageUri); in deleteStoredMessage()
125 boolean updateStoredMessageStatus(String callingPkg, in Uri messageUri, in updateStoredMessageStatus()
146 Uri addTextMessageDraft(String callingPkg, String address, String text); in addTextMessageDraft()
155 Uri addMultimediaMessageDraft(String callingPkg, in Uri contentUri); in addMultimediaMessageDraft()
171 void sendStoredMessage(int subId, String callingPkg, in Uri messageUri, in sendStoredMessage()
/frameworks/base/telecomm/java/android/telecom/
DGatewayInfo.java19 import android.net.Uri;
40 private final Uri mGatewayAddress;
41 private final Uri mOriginalAddress;
43 public GatewayInfo(String packageName, Uri gatewayUri, Uri originalAddress) { in GatewayInfo()
61 public Uri getGatewayAddress() { in getGatewayAddress()
68 public Uri getOriginalAddress() { in getOriginalAddress()
89 Uri gatewayUri = Uri.CREATOR.createFromParcel(source);
90 Uri originalAddress = Uri.CREATOR.createFromParcel(source);
/frameworks/base/media/java/android/media/
DMediaInserter.java22 import android.net.Uri;
36 private final HashMap<Uri, List<ContentValues>> mRowMap =
37 new HashMap<Uri, List<ContentValues>>();
38 private final HashMap<Uri, List<ContentValues>> mPriorityRowMap =
39 new HashMap<Uri, List<ContentValues>>();
49 public void insert(Uri tableUri, ContentValues values) throws RemoteException { in insert()
53 public void insertwithPriority(Uri tableUri, ContentValues values) throws RemoteException { in insertwithPriority()
57 … private void insert(Uri tableUri, ContentValues values, boolean priority) throws RemoteException { in insert()
58 HashMap<Uri, List<ContentValues>> rowmap = priority ? mPriorityRowMap : mRowMap; in insert()
74 for (Uri tableUri : mRowMap.keySet()){ in flushAll()
[all …]
/frameworks/base/core/java/android/app/slice/
DISliceManager.aidl20 import android.net.Uri;
24 void pinSlice(String pkg, in Uri uri, in SliceSpec[] specs, in IBinder token); in pinSlice()
25 void unpinSlice(String pkg, in Uri uri, in IBinder token); in unpinSlice()
27 SliceSpec[] getPinnedSpecs(in Uri uri, String pkg); in getPinnedSpecs()
28 Uri[] getPinnedSlices(String pkg); in getPinnedSlices()
34 void grantSlicePermission(String callingPkg, String toPkg, in Uri uri); in grantSlicePermission()
35 void revokeSlicePermission(String callingPkg, String toPkg, in Uri uri); in revokeSlicePermission()
36 int checkSlicePermission(in Uri uri, String callingPkg, String pkg, int pid, int uid, in checkSlicePermission()
38 void grantPermissionFromUser(in Uri uri, String pkg, String callingPkg, boolean allSlices); in grantPermissionFromUser()
DSliceProvider.java35 import android.net.Uri;
215 public Slice onBindSlice(Uri sliceUri, Set<SliceSpec> supportedSpecs) { in onBindSlice()
224 public Slice onBindSlice(Uri sliceUri, List<SliceSpec> supportedSpecs) { in onBindSlice()
246 public void onSlicePinned(Uri sliceUri) { in onSlicePinned()
257 public void onSliceUnpinned(Uri sliceUri) { in onSliceUnpinned()
270 public @NonNull Collection<Uri> onGetSliceDescendants(@NonNull Uri uri) { in onGetSliceDescendants()
287 public @NonNull Uri onMapIntentToUri(Intent intent) { in onMapIntentToUri()
305 public @NonNull PendingIntent onCreatePermissionRequest(Uri sliceUri) { in onCreatePermissionRequest()
310 public final int update(Uri uri, ContentValues values, String selection, in update()
317 public final int delete(Uri uri, String selection, String[] selectionArgs) { in delete()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ims/
DRcsMessageStoreUtil.java24 import android.net.Uri;
40 int getIntValueFromTableRow(Uri tableUri, String valueColumn, String idColumn, in getIntValueFromTableRow()
52 long getLongValueFromTableRow(Uri tableUri, String valueColumn, String idColumn, in getLongValueFromTableRow()
64 double getDoubleValueFromTableRow(Uri tableUri, String valueColumn, String idColumn, in getDoubleValueFromTableRow()
76 String getStringValueFromTableRow(Uri tableUri, String valueColumn, String idColumn, in getStringValueFromTableRow()
88 Uri getUriValueFromTableRow(Uri tableUri, String valueColumn, String idColumn, in getUriValueFromTableRow()
95 return Uri.parse(uriAsString); in getUriValueFromTableRow()
105 void updateValueOfProviderUri(Uri uri, String valueColumn, int value, String errorMessage) in updateValueOfProviderUri()
112 void updateValueOfProviderUri(Uri uri, String valueColumn, double value, String errorMessage) in updateValueOfProviderUri()
119 void updateValueOfProviderUri(Uri uri, String valueColumn, long value, String errorMessage) in updateValueOfProviderUri()
[all …]
/frameworks/base/media/java/android/media/tv/
DTvContract.java32 import android.net.Uri;
476 public static Uri buildChannelUri(long channelId) { in buildChannelUri()
486 public static Uri buildChannelUriForPassthroughInput(String inputId) { in buildChannelUriForPassthroughInput()
487 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT).authority(AUTHORITY) in buildChannelUriForPassthroughInput()
496 public static Uri buildChannelLogoUri(long channelId) { in buildChannelLogoUri()
505 public static Uri buildChannelLogoUri(Uri channelUri) { in buildChannelLogoUri()
509 return Uri.withAppendedPath(channelUri, Channels.Logo.CONTENT_DIRECTORY); in buildChannelLogoUri()
518 public static Uri buildChannelsUriForInput(@Nullable String inputId) { in buildChannelsUriForInput()
533 public static Uri buildChannelsUriForInput(@Nullable String inputId, in buildChannelsUriForInput()
535 Uri.Builder builder = Channels.CONTENT_URI.buildUpon(); in buildChannelsUriForInput()
[all …]
/frameworks/base/core/java/android/view/inputmethod/
DInputContentInfo.java24 import android.net.Uri;
46 private final Uri mContentUri;
60 private final Uri mLinkUri;
74 public InputContentInfo(@NonNull Uri contentUri, @NonNull ClipDescription description) { in InputContentInfo()
91 public InputContentInfo(@NonNull Uri contentUri, @NonNull ClipDescription description, in InputContentInfo()
92 @Nullable Uri linkUri) { in InputContentInfo()
124 private static boolean validateInternal(@NonNull Uri contentUri, in validateInternal()
125 @NonNull ClipDescription description, @Nullable Uri linkUri, boolean throwException) { in validateInternal()
163 public Uri getContentUri() { in getContentUri()
184 public Uri getLinkUri() { return mLinkUri; } in getLinkUri()
[all …]

12345678910>>...32