Home
last modified time | relevance | path

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

12345678910>>...95

/packages/apps/Settings/src/com/android/settings/slices/
DCustomSliceRegistry.java23 import android.net.Uri;
58 public static final Uri CONTEXTUAL_ADAPTIVE_SLEEP_URI = new Uri.Builder()
68 public static final Uri BLUETOOTH_URI = new Uri.Builder()
78 public static final Uri BLUETOOTH_DEVICES_SLICE_URI = new Uri.Builder()
88 public static final Uri CONTEXTUAL_WIFI_SLICE_URI = new Uri.Builder()
97 public static final Uri ENHANCED_4G_SLICE_URI = new Uri.Builder()
106 public static final Uri FACE_ENROLL_SLICE_URI = new Uri.Builder()
115 public static final Uri FLASHLIGHT_SLICE_URI = new Uri.Builder()
124 public static final Uri LOCATION_SLICE_URI = new Uri.Builder()
133 public static final Uri LOW_STORAGE_SLICE_URI = new Uri.Builder()
[all …]
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DUriTest.java20 import android.net.Uri;
32 parcelAndUnparcel(Uri.parse("foo:bob%20lee")); in testParcelling()
33 parcelAndUnparcel(Uri.fromParts("foo", "bob lee", "fragment")); in testParcelling()
34 parcelAndUnparcel(new Uri.Builder() in testParcelling()
43 private void parcelAndUnparcel(Uri u) { in parcelAndUnparcel()
45 Uri.writeToParcel(p, u); in parcelAndUnparcel()
47 assertEquals(u, Uri.CREATOR.createFromParcel(p)); in parcelAndUnparcel()
51 Uri.writeToParcel(p, u); in parcelAndUnparcel()
53 assertEquals(u, Uri.CREATOR.createFromParcel(p)); in parcelAndUnparcel()
57 Uri u = Uri.parse("bob:lee").buildUpon().scheme("robert").build(); in testBuildUpon()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/qc/
DSettingsQCRegistry.java20 import android.net.Uri;
34 public static final Uri BLUETOOTH_SWITCH_URI = new Uri.Builder()
40 public static final Uri PAIRED_BLUETOOTH_DEVICES_URI = new Uri.Builder()
46 public static final Uri WIFI_TILE_URI = new Uri.Builder()
52 public static final Uri HOTSPOT_TILE_URI = new Uri.Builder()
58 public static final Uri MOBILE_DATA_TILE_URI = new Uri.Builder()
64 public static final Uri WIFI_ROW_URI = new Uri.Builder()
70 public static final Uri HOTSPOT_ROW_URI = new Uri.Builder()
76 public static final Uri HOTSPOT_ROW_WITH_ACTION_URI = new Uri.Builder()
82 public static final Uri MOBILE_DATA_ROW_URI = new Uri.Builder()
[all …]
/packages/services/Telephony/tests/src/com/android/services/telephony/
DImsConferenceTest.java33 import android.net.Uri;
95 Uri.parse("tel:6505551212"), in testPropertyPropagation()
97 Uri.parse("sip:6505551212@testims.com"), in testPropertyPropagation()
101 Uri.parse("tel:6505551213"), in testPropertyPropagation()
103 Uri.parse("sip:6505551213@testims.com"), in testPropertyPropagation()
144 Uri.parse("tel:6505551212"), in testNotifyOnConferenceCapacityChanged()
146 Uri.parse("sip:6505551212@testims.com"), in testNotifyOnConferenceCapacityChanged()
150 Uri.parse("tel:6505551213"), in testNotifyOnConferenceCapacityChanged()
152 Uri.parse("sip:6505551213@testims.com"), in testNotifyOnConferenceCapacityChanged()
189 Uri.parse("tel:6505551212"), in testSinglePartyEmulation()
[all …]
DConferenceParticipantConnectionTest.java23 import android.net.Uri;
38 assertUrisEqual(Uri.parse("tel:+16505551212"), in testParticipantParseSimpleTel()
39 getParticipantAddress(Uri.parse("tel:6505551212"), "US")); in testParticipantParseSimpleTel()
44 assertUrisEqual(Uri.parse("tel:+16505551212"), in testParticipantParseTelExtended()
45 getParticipantAddress(Uri.parse("tel:6505551212;phone-context=blah"), "US")); in testParticipantParseTelExtended()
50 assertUrisEqual(Uri.parse("tel:+16505551212"), in testParticipantParseSip()
51 getParticipantAddress(Uri.parse("sip:16505551212;phone-context=blah.com@host.com"), in testParticipantParseSip()
57 assertUrisEqual(Uri.parse("tel:+12125551212"), in testParticipantParseSip2()
58 getParticipantAddress(Uri.parse("sip:+1-212-555-1212@something.com;user=phone"), in testParticipantParseSip2()
64 assertUrisEqual(Uri.parse("tel:+819066570660"), in testParticipantParseTelJp()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSettingsSliceProviderTest.java44 import android.net.Uri;
104 private static final Uri INTENT_SLICE_URI =
105 new Uri.Builder().scheme(SCHEME_CONTENT)
110 private static final Uri ACTION_SLICE_URI =
111 new Uri.Builder().scheme(SCHEME_CONTENT)
117 private static final Uri URI = Uri.parse("content://com.android.settings.slices/test");
127 private static final List<Uri> SPECIAL_CASE_PLATFORM_URIS = Arrays.asList(
133 private static final List<Uri> SPECIAL_CASE_OEM_URIS = Arrays.asList(
259 final Uri blockedUri = new Uri.Builder() in onBindSlice_requestsBlockedSlice_returnsNull()
301 final Uri testUri = new Uri.Builder() in onBindSlice_guestRestricted_returnsNull()
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/
DAvatarUriUtil.java19 import android.net.Uri;
20 import android.net.Uri.Builder;
84 public static final Uri DEFAULT_BACKGROUND_AVATAR = new Uri.Builder().scheme(SCHEME)
87 private static final Uri BLANK_SIM_INDICATOR_INCOMING_URI = createSimIconUri("",
89 private static final Uri BLANK_SIM_INDICATOR_OUTGOING_URI = createSimIconUri("",
97 public static Uri createAvatarUri(@NonNull final List<ParticipantData> participants) { in createAvatarUri()
106 final ArrayList<Uri> avatarUris = new ArrayList<Uri>(numParticipants); in createAvatarUri()
119 public static Uri joinAvatarUriToGroup(@NonNull final List<Uri> avatarUris) { in joinAvatarUriToGroup()
124 final Uri firstAvatar = avatarUris.get(0); in joinAvatarUriToGroup()
135 final Uri uri = avatarUris.get(i); in joinAvatarUriToGroup()
[all …]
DUriUtil.java22 import android.net.Uri;
67 public static Uri getUriForResourceFile(final String path) { in getUriForResourceFile()
68 return TextUtils.isEmpty(path) ? null : Uri.fromFile(new File(path)); in getUriForResourceFile()
74 public static String getFilePathFromUri(final Uri uri) { in getFilePathFromUri()
84 public static boolean isLocalResourceUri(final Uri uri) { in isLocalResourceUri()
94 public static boolean isBugleAppResource(final Uri uri) { in isBugleAppResource()
100 public static boolean isFileUri(final Uri uri) { in isFileUri()
109 public static Uri getUriForResourceId(final Context context, final int resId) { in getUriForResourceId()
110 return new Uri.Builder() in getUriForResourceId()
120 public static boolean isLocalUri(@NonNull final Uri uri) { in isLocalUri()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DPickerUriResolverTest.java40 import android.net.Uri;
77 private static Uri sTestPickerUri;
87 Cursor queryPickerUri(Uri uri, String[] projection) { in queryPickerUri()
103 File getPickerFileFromUri(Uri uri) { in getPickerFileFromUri()
125 final Uri mediaStoreUriInOtherContext = createTestFileInContext(otherUserContext); in setUp()
140 final Uri providerUriUserImplicit = Uri.parse("content://" + providerSuffix); in wrapProviderUriValid()
142 final Uri providerUriUser0 = Uri.parse("content://0@" + providerSuffix); in wrapProviderUriValid()
143 final Uri mediaUriUser0 = Uri.parse("content://media/picker/0/" + providerSuffix); in wrapProviderUriValid()
145 final Uri providerUriUser10 = Uri.parse("content://10@" + providerSuffix); in wrapProviderUriValid()
146 final Uri mediaUriUser10 = Uri.parse("content://media/picker/10/" + providerSuffix); in wrapProviderUriValid()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/util/
DWebTest.java22 import android.net.Uri;
38 private static final Uri HTTPS_PRIVATE_DOMAIN_COM_PUBLIC_SUFFIX =
39 Uri.parse(
42 private static final Uri HTTPS_PRIVATE_DOMAIN_BLOGSPOT_COM_PUBLIC_SUFFIX =
43 Uri.parse(
47 private static final Uri HTTPS_SUBDOMAIN_PRIVATE_DOMAIN_COM_PUBLIC_SUFFIX =
48 Uri.parse(
52 private static final Uri HTTPS_SUBDOMAIN_PRIVATE_DOMAIN_BLOGSPOT_COM_PUBLIC_SUFFIX =
53 Uri.parse(
60 private static final Uri HTTPS_PRIVATE_DOMAIN_COM_PUBLIC_SUFFIX_PORT =
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DCreativeWallpaperInfo.java29 import android.net.Uri;
62 private Uri mConfigPreviewUri;
63 private Uri mCleanPreviewUri;
64 private Uri mDeleteUri;
65 private Uri mThumbnailUri;
66 private Uri mShareUri;
79 private Uri mClearActionsUri;
80 private Uri mEffectsUri = null;
84 @Nullable String description, String contentDescription, Uri configPreviewUri, in CreativeWallpaperInfo()
85 Uri cleanPreviewUri, Uri deleteUri, Uri thumbnailUri, Uri shareUri, String groupName, in CreativeWallpaperInfo()
[all …]
/packages/apps/Messaging/src/com/android/messaging/mmslib/util/
DPduCache.java22 import android.net.Uri;
30 public final class PduCache extends AbstractCache<Uri, PduCacheEntry> {
74 private final SparseArray<HashSet<Uri>> mMessageBoxes;
75 private final SimpleArrayMap<Long, HashSet<Uri>> mThreads;
76 private final HashSet<Uri> mUpdating;
79 mMessageBoxes = new SparseArray<HashSet<Uri>>(); in PduCache()
80 mThreads = new SimpleArrayMap<Long, HashSet<Uri>>(); in PduCache()
81 mUpdating = new HashSet<Uri>(); in PduCache()
95 public synchronized boolean put(Uri uri, PduCacheEntry entry) { in put()
97 HashSet<Uri> msgBox = mMessageBoxes.get(msgBoxId); in put()
[all …]
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/services/
DJobErrorHandlingTest.java23 import android.net.Uri;
38 Uri invalidUri1 = Uri.parse("content://poodles/chuckleberry/ham"); in testRecoversFromInvalidUri()
39 Uri validUri = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in testRecoversFromInvalidUri()
40 Uri invalidUri2 = Uri.parse("content://poodles/chuckleberry/ham"); in testRecoversFromInvalidUri()
53 Uri invalidUri1 = Uri.parse("content://poodles/chuckleberry/ham"); in testRecordsInvalidUris()
54 Uri validUri = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in testRecordsInvalidUris()
55 Uri invalidUri2 = Uri.parse("content://poodles/chuckleberry/ham"); in testRecordsInvalidUris()
67 Uri invalidUri1 = Uri.parse("content://poodles/chuckleberry/ham"); in testReportsCorrectFailureCount()
68 Uri validUri = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in testReportsCorrectFailureCount()
69 Uri invalidUri2 = Uri.parse("content://poodles/chuckleberry/ham"); in testReportsCorrectFailureCount()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DContactLoaderTest.java20 import android.net.Uri;
88 private Contact assertLoadContact(Uri uri) { in assertLoadContact()
99 Contact result = assertLoadContact(Uri.EMPTY); in testEmptyUri()
104 Contact result = assertLoadContact(Uri.parse("content://wtf")); in testInvalidUri()
110 final Uri baseUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, CONTACT_ID); in testLoadContactWithContactIdUri()
111 final Uri entityUri = Uri.withAppendedPath(baseUri, Contacts.Entity.CONTENT_DIRECTORY); in testLoadContactWithContactIdUri()
112 final Uri lookupUri = ContentUris.withAppendedId( in testLoadContactWithContactIdUri()
113 Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI, LOOKUP_KEY), in testLoadContactWithContactIdUri()
134 final Uri legacyUri = ContentUris.withAppendedId( in testLoadContactWithOldStyleUri()
135 Uri.parse("content://contacts"), RAW_CONTACT_ID); in testLoadContactWithOldStyleUri()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DMessagingContentProvider.java25 import android.net.Uri;
64 public static final Uri CONVERSATIONS_URI = Uri.parse(CONTENT_AUTHORITY + CONVERSATIONS_QUERY);
65 static final Uri PARTS_URI = Uri.parse(CONTENT_AUTHORITY + DatabaseHelper.PARTS_TABLE);
70 static final Uri MESSAGES_URI = Uri.parse(CONTENT_AUTHORITY + MESSAGES_QUERY);
72 public static final Uri CONVERSATION_MESSAGES_URI = Uri.parse(CONTENT_AUTHORITY +
82 static final Uri CONVERSATION_PARTICIPANTS_URI = Uri.parse(CONTENT_AUTHORITY +
85 public static final Uri PARTICIPANTS_URI = Uri.parse(CONTENT_AUTHORITY + PARTICIPANTS_QUERY);
90 public static final Uri CONVERSATION_IMAGES_URI = Uri.parse(CONTENT_AUTHORITY +
95 public static final Uri DRAFT_IMAGES_URI = Uri.parse(CONTENT_AUTHORITY +
106 final Uri uri = Uri.parse(CONTENT_AUTHORITY); in notifyEverythingChanged()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/enrollment/
DEnrollmentDaoTest.java32 import android.net.Uri;
267 Uri.parse("https://us.5test.com/source")); in getEnrollmentDataFromMeasurementUrl_ForOriginMatchAndSameOrigin_isMatch()
271 Uri.parse("https://us.5test.com")); in getEnrollmentDataFromMeasurementUrl_ForOriginMatchAndSameOrigin_isMatch()
275 Uri.parse("https://us.5test.com/anotherPath")); in getEnrollmentDataFromMeasurementUrl_ForOriginMatchAndSameOrigin_isMatch()
279 Uri.parse("https://us.5test2.com/source")); in getEnrollmentDataFromMeasurementUrl_ForOriginMatchAndSameOrigin_isMatch()
283 Uri.parse("https://us.5test.com/trigger")); in getEnrollmentDataFromMeasurementUrl_ForOriginMatchAndSameOrigin_isMatch()
299 Uri.parse("https://port-test.5test3.com:443/source")); in getEnrollmentDataFromMeasurementUrl_ForOriginMatchAndSamePort_isMatch()
302 Uri.parse("https://port-test.5test3.com:443/trigger")); in getEnrollmentDataFromMeasurementUrl_ForOriginMatchAndSamePort_isMatch()
315 Uri.parse("https://port-test.5test3.com:8080/source")); in getEnrollmentDataFromMeasurementUrl_ForOriginMatchAndDifferentPort_isNotMatch()
318 Uri.parse("https://port-test.5test3.com:8080/trigger")); in getEnrollmentDataFromMeasurementUrl_ForOriginMatchAndDifferentPort_isNotMatch()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/registration/
DEnqueueAsyncRegistrationTest.java34 import android.net.Uri;
64 private static final Uri REGISTRATION_URI_1 = Uri.parse("https://foo.test/bar?ad=134");
65 private static final Uri REGISTRATION_URI_2 = Uri.parse("https://foo.test/bar?ad=256");
103 sSourceParamsList, Uri.parse("android-app://example.test/aD1"))
104 .setWebDestination(Uri.parse("android-app://example.test/aD1"))
105 .setAppDestination(Uri.parse("android-app://example.test/aD1"))
106 .setVerifiedDestination(Uri.parse("android-app://example.test/aD1"))
111 sTriggerParamsList, Uri.parse("android-app://test.e.abc"))
144 Uri.parse("http://baz.test"), in testAppSourceRegistrationRequest_event_isValid()
153 Uri.parse("android-app://test.destination"), in testAppSourceRegistrationRequest_event_isValid()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/
DPickerUriResolver.java32 import android.net.Uri;
64 public static final Uri PICKER_URI = MediaStore.AUTHORITY_URI.buildUpon().
70 public static final Uri PICKER_INTERNAL_URI = MediaStore.AUTHORITY_URI.buildUpon().
92 public ParcelFileDescriptor openFile(Uri uri, String mode, CancellationSignal signal, in openFile()
115 public AssetFileDescriptor openTypedAssetFile(Uri uri, String mimeTypeFilter, Bundle opts, in openTypedAssetFile()
135 public Cursor query(Uri uri, String[] projection, int callingPid, int callingUid, in query()
149 private Cursor queryInternal(Uri uri, String[] projection) { in queryInternal()
166 public String getType(@NonNull Uri uri, int callingPid, int callingUid) { in getType()
184 public static Uri getMediaUri(String authority) { in getMediaUri()
185 return Uri.parse("content://" + authority + "/" in getMediaUri()
[all …]
/packages/apps/Camera2/src/com/android/camera/
DStorage.java26 import android.net.Uri;
60 private HashMap<Uri, Uri> sSessionsToContentUris = new HashMap<>();
61 private HashMap<Uri, Uri> sContentUrisToSessions = new HashMap<>();
62 private LruCache<Uri, Bitmap> sSessionsToPlaceholderBitmap =
64 new LruCache<Uri, Bitmap>(20 * 1024 * 1024) {
66 protected int sizeOf(Uri key, Bitmap value) {
70 private HashMap<Uri, Point> sSessionsToSizes = new HashMap<>();
71 private HashMap<Uri, Integer> sSessionsToPlaceholderVersions = new HashMap<>();
100 public Uri addImage(ContentResolver resolver, String title, long date, in addImage()
129 public Uri addImage(ContentResolver resolver, String title, long date, in addImage()
[all …]
/packages/apps/Camera2/src/com/android/camera/session/
DCaptureSessionManager.java21 import android.net.Uri;
38 public void onSessionQueued(Uri mediaUri); in onSessionQueued()
44 public void onSessionUpdated(Uri mediaUri); in onSessionUpdated()
56 public void onSessionDone(Uri mediaUri); in onSessionDone()
59 … public void onSessionFailed(Uri mediaUri, int failureMessageId, boolean removeFromFilmstrip); in onSessionFailed()
62 public void onSessionCanceled(Uri mediaUri); in onSessionCanceled()
65 public void onSessionProgress(Uri mediaUri, int progress); in onSessionProgress()
68 public void onSessionProgressText(Uri mediaUri, int messageId); in onSessionProgressText()
105 public CaptureSession getSession(Uri sessionUri); in getSession()
118 public void putSession(Uri sessionUri, CaptureSession session); in putSession()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/
DIMeasurementDao.java20 import android.net.Uri;
69 Pair<List<Uri>, List<Uri>> getSourceDestinations(@NonNull String sourceId) in getSourceDestinations()
88 @NonNull Uri attributionDestination, @EventSurfaceType int destinationType) in getNumAggregateReportsPerDestination()
99 @NonNull Uri attributionDestination, @EventSurfaceType int destinationType) in getNumEventReportsPerDestination()
109 long getNumSourcesPerPublisher(Uri publisherUri, @EventSurfaceType int publisherType) in getNumSourcesPerPublisher()
113 long getNumTriggersPerDestination(Uri destination, @EventSurfaceType int destinationType) in getNumTriggersPerDestination()
121 Uri sourceSite, in countDistinctEnrollmentsPerPublisherXDestinationInAttribution()
122 Uri destination, in countDistinctEnrollmentsPerPublisherXDestinationInAttribution()
133 Uri publisher, in countDistinctDestinationsPerPublisherXEnrollmentInActiveSource()
136 List<Uri> excludedDestinations, in countDistinctDestinationsPerPublisherXEnrollmentInActiveSource()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/registration/
DAsyncRegistration.java20 import android.net.Uri;
40 private final Uri mOsDestination;
41 private final Uri mWebDestination;
42 private final Uri mRegistrationUri;
43 private final Uri mVerifiedDestination;
44 private final Uri mTopOrigin;
45 private final Uri mRegistrant;
128 public Uri getOsDestination() { in getOsDestination()
134 public Uri getWebDestination() { in getWebDestination()
140 public Uri getRegistrationUri() { in getRegistrationUri()
[all …]
/packages/modules/AdServices/adservices/framework/java/android/adservices/measurement/
DWebSourceRegistrationRequest.java21 import android.net.Uri;
54 @NonNull private final Uri mTopOriginUri;
68 @Nullable private final Uri mAppDestination;
76 @Nullable private final Uri mWebDestination;
79 @Nullable private final Uri mVerifiedDestination;
102 mTopOriginUri = Uri.CREATOR.createFromParcel(in); in WebSourceRegistrationRequest()
109 mAppDestination = Uri.CREATOR.createFromParcel(in); in WebSourceRegistrationRequest()
114 mWebDestination = Uri.CREATOR.createFromParcel(in); in WebSourceRegistrationRequest()
119 mVerifiedDestination = Uri.CREATOR.createFromParcel(in); in WebSourceRegistrationRequest()
157 public Uri getTopOriginUri() { in getTopOriginUri()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/enterprise/
DEnterprisePolicyGuardTest.java22 import android.net.Uri;
58 private static final Uri URI_CONTACTS_ID_PHOTO =
59 Uri.parse("content://com.android.contacts/contacts/" + CONTACT_ID + "/photo");
60 private static final Uri URI_CONTACTS_ID_DISPLAY_PHOTO = Uri
62 private static final Uri URI_CONTACTS_FILTER =
63 Uri.parse("content://com.android.contacts/contacts/filter/" + CONTACT_NAME);
64 private static final Uri URI_PHONES_FILTER = Uri
66 private static final Uri URI_CALLABLES_FILTER = Uri.parse(
68 private static final Uri URI_EMAILS_FILTER = Uri
70 private static final Uri URI_EMAILS_LOOKUP =
[all …]
/packages/apps/Gallery2/src/com/android/photos/data/
DSQLiteContentProvider.java28 import android.net.Uri;
44 private Set<Uri> mChangedUris;
58 mChangedUris = new HashSet<Uri>(); in onCreate()
76 public abstract Uri insertInTransaction(Uri uri, ContentValues values, in insertInTransaction()
83 public abstract int updateInTransaction(Uri uri, ContentValues values, String selection, in updateInTransaction()
90 public abstract int deleteInTransaction(Uri uri, String selection, String[] selectionArgs, in deleteInTransaction()
97 protected void postNotifyUri(Uri uri) { in postNotifyUri()
103 public boolean isCallerSyncAdapter(Uri uri) { in isCallerSyncAdapter()
116 public Uri insert(Uri uri, ContentValues values) { in insert()
117 Uri result = null; in insert()
[all …]

12345678910>>...95