/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowIntentFilterTest.java | 6 import android.net.Uri; 91 Uri uriTest1 = Uri.parse("http://testHost1:1"); in matchDataAuthority_matchHostAndPort() 92 Uri uriTest2 = Uri.parse("http://testHost2:2"); in matchDataAuthority_matchHostAndPort() 103 Uri uriTest1 = Uri.parse("http://testHost1:100"); in matchDataAuthority_matchHostWithNoPort() 104 Uri uriTest2 = Uri.parse("http://testHost2:200"); in matchDataAuthority_matchHostWithNoPort() 116 Uri uriTest1 = Uri.parse("http://testHost1:2"); in matchDataAuthority_NoMatch() 118 Uri uriTest2 = Uri.parse("http://testHost3:2"); in matchDataAuthority_NoMatch() 132 Uri uriTest1 = Uri.parse("http://testHost1:1"); in matchData_MatchAll() 143 Uri uriTest1 = Uri.parse("http://testHost1:1"); in matchData_MatchType() 153 Uri uriTest1 = Uri.parse("http://testHost1:1"); in matchData_MatchScheme() [all …]
|
D | ShadowContentResolverTest.java | 32 import android.net.Uri; 66 private Uri uri21; 67 private Uri uri22; 74 uri21 = Uri.parse(EXTERNAL_CONTENT_URI.toString() + "/21"); in setUp() 75 uri22 = Uri.parse(EXTERNAL_CONTENT_URI.toString() + "/22"); in setUp() 100 …@Override public Cursor query(Uri uri, String[] projection, String selection, String[] selectionAr… in getType_shouldReturnProviderValue() 103 @Override public Uri insert(Uri uri, ContentValues values) { in getType_shouldReturnProviderValue() 106 @Override public int delete(Uri uri, String selection, String[] selectionArgs) { in getType_shouldReturnProviderValue() 109 …@Override public int update(Uri uri, ContentValues values, String selection, String[] selectionArg… in getType_shouldReturnProviderValue() 112 @Override public String getType(Uri uri) { in getType_shouldReturnProviderValue() [all …]
|
D | ShadowContentProviderOperationBuilderTest.java | 10 import android.net.Uri; 21 Uri uri = Uri.parse("content://authority/path"); in build() 42 public Cursor query(Uri uri, String[] projection, String selection, in build() 48 public String getType(Uri uri) { in build() 53 public Uri insert(Uri uri, ContentValues values) { in build() 58 public int delete(Uri uri, String selection, String[] selectionArgs) { in build() 63 public int update(Uri uri, ContentValues values, String selection, in build() 86 Uri uri;
|
D | ShadowContentUrisTest.java | 6 import android.net.Uri; 14 Uri URI; 18 URI = Uri.parse("content://foo.com"); in setUp() 22 assertThat(ContentUris.withAppendedId(URI, 1)).isEqualTo(Uri.parse("content://foo.com/1")); in canAppendId() 31 assertThat(ContentUris.parseId(Uri.withAppendedPath(URI, "1"))).isEqualTo(1L); in canParseId() 37 ContentUris.parseId(Uri.withAppendedPath(URI, "bar")); in parseIdThrowsNumberFormatException() 42 ContentUris.parseId(Uri.parse("mailto:bar@foo.com")); in parseIdThrowsUnsupportedException()
|
/external/exoplayer/tree/library/hls/src/main/java/com/google/android/exoplayer2/source/hls/playlist/ |
D | HlsPlaylistTracker.java | 18 import android.net.Uri; 83 boolean onPlaylistError(Uri url, long blacklistDurationMs); in onPlaylistError() 90 public final Uri url; 97 public PlaylistStuckException(Uri url) { in PlaylistStuckException() 106 public final Uri url; 113 public PlaylistResetException(Uri url) { in PlaylistResetException() 130 Uri initialPlaylistUri, EventDispatcher eventDispatcher, PrimaryPlaylistListener listener); in start() 175 HlsMediaPlaylist getPlaylistSnapshot(Uri url, boolean isForPlayback); in getPlaylistSnapshot() 191 boolean isSnapshotValid(Uri url); in isSnapshotValid() 208 void maybeThrowPlaylistRefreshError(Uri url) throws IOException; in maybeThrowPlaylistRefreshError() [all …]
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | URI.cpp | 181 llvm::StringRef Uri = OrigUri; in parse() local 183 auto Pos = Uri.find(':'); in parse() 186 auto SchemeStr = Uri.substr(0, Pos); in parse() 190 Uri = Uri.substr(Pos + 1); in parse() 191 if (Uri.consume_front("//")) { in parse() 192 Pos = Uri.find('/'); in parse() 193 U.Authority = percentDecode(Uri.substr(0, Pos)); in parse() 194 Uri = Uri.substr(Pos); in parse() 196 U.Body = percentDecode(Uri); in parse() 202 auto Uri = URI::parse(FileURI); in resolve() local [all …]
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowContentResolver.java | 24 import android.net.Uri; 63 private Map<Uri, BaseCursor> uriCursorMap = new HashMap<>(); 64 private Map<Uri, InputStream> inputStreamMap = new HashMap<>(); 65 private Map<Uri, OutputStream> outputStreamMap = new HashMap<>(); 88 public final Uri uri; 92 private ContentObserverEntry(Uri uri, boolean notifyForDescendents, ContentObserver observer) { in ContentObserverEntry() 102 public boolean matches(Uri test) { in matches() 119 public final Uri uri; 123 public NotifiedUri(Uri uri, ContentObserver observer, boolean syncToNetwork) { in NotifiedUri() 138 public void registerInputStream(Uri uri, InputStream inputStream) { in registerInputStream() [all …]
|
D | ShadowContentProviderClient.java | 13 import android.net.Uri; 38 protected String getType(Uri uri) throws RemoteException { in getType() 43 protected String[] getStreamTypes(Uri uri, String mimeTypeFilter) { in getStreamTypes() 49 Uri url, String[] projection, String selection, String[] selectionArgs, String sortOrder) in query() 56 Uri url, in query() 67 protected Uri insert(Uri url, ContentValues initialValues) throws RemoteException { in insert() 72 protected int bulkInsert(Uri url, ContentValues[] initialValues) throws RemoteException { in bulkInsert() 77 protected int delete(Uri url, String selection, String[] selectionArgs) throws RemoteException { in delete() 82 protected int update(Uri url, ContentValues values, String selection, String[] selectionArgs) in update() 88 protected ParcelFileDescriptor openFile(Uri url, String mode) in openFile() [all …]
|
D | ShadowSliceManager.java | 9 import android.net.Uri; 23 private static final Map<Integer, Collection<Uri>> packageUidsToPermissionGrantedSliceUris = 33 protected synchronized void grantSlicePermission(String toPackage, Uri uri) { in grantSlicePermission() 35 Collection<Uri> uris = packageUidsToPermissionGrantedSliceUris.get(packageUid); in grantSlicePermission() 44 protected synchronized void revokeSlicePermission(String toPackage, Uri uri) { in revokeSlicePermission() 46 Collection<Uri> uris = packageUidsToPermissionGrantedSliceUris.get(packageUid); in revokeSlicePermission() 56 protected synchronized int checkSlicePermission(Uri uri, int pid, int uid) { in checkSlicePermission() 60 Collection<Uri> uris = packageUidsToPermissionGrantedSliceUris.get(uid); in checkSlicePermission()
|
/external/exoplayer/tree/library/core/src/androidTest/java/com/google/android/exoplayer2/upstream/ |
D | ContentDataSourceTest.java | 26 import android.net.Uri; 82 Uri contentUri = TestContentProvider.buildUri("does/not.exist", false); in readInvalidUri() 96 Uri contentUri = TestContentProvider.buildUri(DATA_PATH, pipeMode); in assertData() 119 public static Uri buildUri(String filePath, boolean pipeMode) { in buildUri() 120 Uri.Builder builder = new Uri.Builder() in buildUri() 137 Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { in query() 142 public AssetFileDescriptor openAssetFile(Uri uri, String mode) throws FileNotFoundException { in openAssetFile() 163 public String getType(Uri uri) { in getType() 168 public Uri insert(Uri uri, ContentValues values) { in insert() 173 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() [all …]
|
/external/exoplayer/tree/library/hls/src/main/java/com/google/android/exoplayer2/source/hls/ |
D | FullSegmentEncryptionKeyCache.java | 18 import android.net.Uri; 31 private final LinkedHashMap<Uri, byte[]> backingMap; 35 new LinkedHashMap<Uri, byte[]>( in FullSegmentEncryptionKeyCache() 38 protected boolean removeEldestEntry(Map.Entry<Uri, byte[]> eldest) { in FullSegmentEncryptionKeyCache() 49 public byte[] get(@Nullable Uri uri) { in get() 62 public byte[] put(Uri uri, byte[] encryptionKey) { in put() 71 public boolean containsUri(Uri uri) { in containsUri() 82 public byte[] remove(Uri uri) { in remove()
|
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/upstream/cache/ |
D | CacheUtilTest.java | 24 import android.net.Uri; 109 assertThat(CacheUtil.generateKey(Uri.EMPTY)).isNotNull(); in generateKey() 111 Uri testUri = Uri.parse("test"); in generateKey() 119 assertThat(key.equals(CacheUtil.generateKey(Uri.parse("test2")))).isFalse(); in generateKey() 124 Uri testUri = Uri.parse("test"); in defaultCacheKeyFactory_buildCacheKey() 142 new DataSpec(Uri.parse("test")), mockCache, /* cacheKeyFactory= */ null); in getCachedNoData() 154 new DataSpec(Uri.parse("test")), mockCache, /* cacheKeyFactory= */ null); in getCachedDataUnknownLength() 165 new DataSpec(Uri.parse("test")), mockCache, /* cacheKeyFactory= */ null); in getCachedNoDataKnownLength() 177 new DataSpec(Uri.parse("test")), mockCache, /* cacheKeyFactory= */ null); in getCached() 189 new DataSpec(Uri.parse("test"), /* position= */ 100, /* length= */ C.LENGTH_UNSET), in getCachedFromNonZeroPosition() [all …]
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/telephony/ |
D | MmsFileProvider.java | 22 import android.net.Uri; 41 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() 48 public Uri insert(Uri uri, ContentValues values) { in insert() 54 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() 60 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() 66 public String getType(Uri uri) { in getType() 72 public ParcelFileDescriptor openFile(Uri uri, String fileMode) throws FileNotFoundException { in openFile()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/testing/ |
D | TestContentProvider2.java | 6 import android.net.Uri; 11 public int delete(Uri arg0, String arg1, String[] arg2) { in delete() 16 public String getType(Uri arg0) { in getType() 21 public Uri insert(Uri arg0, ContentValues arg1) { in insert() 31 public Cursor query(Uri arg0, String[] arg1, String arg2, String[] arg3, String arg4) { in query() 36 public int update(Uri arg0, ContentValues arg1, String arg2, String[] arg3) { in update()
|
D | TestContentProvider1.java | 6 import android.net.Uri; 27 …public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String… in query() 33 public String getType(Uri uri) { in getType() 38 public Uri insert(Uri uri, ContentValues values) { in insert() 43 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() 48 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update()
|
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/util/ |
D | UriUtilTest.java | 22 import android.net.Uri; 107 Uri uri = Uri.parse("http://uri?query=value"); in removeOnlyQueryParameter() 113 Uri uri = Uri.parse("http://uri?query=value&second=value2"); in removeFirstQueryParameter() 119 Uri uri = Uri.parse("http://uri?first=value1&query=value&last=value2"); in removeMiddleQueryParameter() 126 Uri uri = Uri.parse("http://uri?first=value1&query=value"); in removeLastQueryParameter() 132 Uri uri = Uri.parse("http://uri"); in removeNonExistentQueryParameter() 134 uri = Uri.parse("http://uri?query=value"); in removeNonExistentQueryParameter()
|
/external/glide/library/src/main/java/com/bumptech/glide/load/model/ |
D | StringLoader.java | 3 import android.net.Uri; 16 private final ModelLoader<Uri, T> uriLoader; 18 public StringLoader(ModelLoader<Uri, T> uriLoader) { in StringLoader() argument 24 Uri uri; in getResourceFetcher() 28 uri = Uri.parse(model); in getResourceFetcher() 38 private static Uri toFileUri(String path) { in toFileUri() 39 return Uri.fromFile(new File(path)); in toFileUri()
|
/external/glide/library/src/main/java/com/bumptech/glide/load/data/ |
D | MediaStoreThumbFetcher.java | 6 import android.net.Uri; 30 private final Uri mediaStoreUri; 37 …public MediaStoreThumbFetcher(Context context, Uri mediaStoreUri, DataFetcher<InputStream> default… in MediaStoreThumbFetcher() 42 …MediaStoreThumbFetcher(Context context, Uri mediaStoreUri, DataFetcher<InputStream> defaultFetcher… in MediaStoreThumbFetcher() 89 private static boolean isMediaStoreUri(Uri uri) { in isMediaStoreUri() 95 private static boolean isMediaStoreVideo(Uri uri) { in isMediaStoreVideo() 114 Cursor query(Context context, Uri uri); in query() 131 public InputStream open(Context context, Uri uri) throws FileNotFoundException { in open() 132 Uri thumbnailUri = null; in open() 142 thumbnailUri = Uri.fromFile(file); in open() [all …]
|
/external/dagger2/javatests/dagger/android/support/functional/ |
D | TestContentProvider.java | 21 import android.net.Uri; 33 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() 40 public String getType(Uri uri) { in getType() 46 public Uri insert(Uri uri, ContentValues values) { in insert() 51 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() 56 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update()
|
/external/exoplayer/tree/library/hls/src/test/java/com/google/android/exoplayer2/source/hls/playlist/ |
D | HlsMediaPlaylistParserTest.java | 21 import android.net.Uri; 43 Uri playlistUri = Uri.parse("https://example.com/test.m3u8"); in parseMediaPlaylist() 154 Uri playlistUri = Uri.parse("https://example.com/test.m3u8"); in parseSampleAesMethod() 183 Uri playlistUri = Uri.parse("https://example.com/test.m3u8"); in parseSampleAesCencMethod() 207 Uri playlistUri = Uri.parse("https://example.com/test.m3u8"); in parseSampleAesCtrMethod() 231 Uri playlistUri = Uri.parse("https://example.com/test.m3u8"); in multipleExtXKeysForSingleSegment() 308 Uri playlistUri = Uri.parse("https://example.com/test2.m3u8"); in gapTag() 343 Uri playlistUri = Uri.parse("https://example.com/test3.m3u8"); in mapTag() 373 Uri playlistUri = Uri.parse("https://example.com/test3.m3u8"); in noExplicitInitSegmentInIFrameOnly_infersInitSegment() 407 Uri playlistUri = Uri.parse("https://example.com/test3.m3u8"); in encryptedMapTag() [all …]
|
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/ |
D | FakeDataSet.java | 18 import android.net.Uri; 134 @Nullable public final Uri uri; 139 private FakeData(FakeDataSet dataSet, @Nullable Uri uri) { in FakeData() 229 private final HashMap<Uri, FakeData> dataMap; 244 return setRandomData(Uri.parse(uri), length); in setRandomData() 248 public FakeDataSet setRandomData(Uri uri, int length) { in setRandomData() 254 return setData(Uri.parse(uri), data); in setData() 258 public FakeDataSet setData(Uri uri, byte[] data) { in setData() 264 return newData(Uri.parse(uri)); in newData() 268 public FakeData newData(Uri uri) { in newData() [all …]
|
/external/glide/library/src/main/java/com/bumptech/glide/ |
D | RequestManager.java | 4 import android.net.Uri; 265 public DrawableTypeRequest<Uri> load(Uri uri) { in load() 266 return (DrawableTypeRequest<Uri>) fromUri().load(uri); in load() 287 public DrawableTypeRequest<Uri> fromUri() { in fromUri() 288 return loadGeneric(Uri.class); in fromUri() 316 …public DrawableTypeRequest<Uri> loadFromMediaStore(Uri uri, String mimeType, long dateModified, in… in loadFromMediaStore() 318 return (DrawableTypeRequest<Uri>) loadFromMediaStore(uri).signature(signature); in loadFromMediaStore() 329 public DrawableTypeRequest<Uri> loadFromMediaStore(Uri uri) { in loadFromMediaStore() 330 return (DrawableTypeRequest<Uri>) fromMediaStore().load(uri); in loadFromMediaStore() 361 public DrawableTypeRequest<Uri> fromMediaStore() { in fromMediaStore() [all …]
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/ |
D | ParameterizedRobolectricTestRunnerClassLoaderTest.java | 5 import android.net.Uri; 18 private final Uri uri; 20 public ParameterizedRobolectricTestRunnerClassLoaderTest(Uri uri) { in ParameterizedRobolectricTestRunnerClassLoaderTest() 27 Uri currentUri = Uri.parse("http://host/"); in parse() 34 { Uri.parse("http://host/") } in getTestData()
|
/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/upstream/ |
D | DataSpec.java | 18 import android.net.Uri; 42 @Nullable private Uri uri; 85 this.uri = Uri.parse(uriString); in setUri() 95 public Builder setUri(Uri uri) { in setUri() 302 public final Uri uri; 394 public DataSpec(Uri uri) { in DataSpec() 405 public DataSpec(Uri uri, long position, long length) { in DataSpec() 428 public DataSpec(Uri uri, @Flags int flags) { in DataSpec() 443 public DataSpec(Uri uri, long position, long length, @Nullable String key) { in DataSpec() 459 public DataSpec(Uri uri, long position, long length, @Nullable String key, @Flags int flags) { in DataSpec() [all …]
|
/external/ims/rcs/rcsservice/src/com/android/service/ims/presence/ |
D | PresenceUtils.java | 31 import android.net.Uri; 56 public static Uri convertContactNumber(String number) { in convertContactNumber() 58 Uri possibleNumber = Uri.parse(number); in convertContactNumber() 64 return Uri.fromParts(TEL_SCHEME, number, null); in convertContactNumber() 67 public static String getNumber(Uri numberUri) { in getNumber()
|