Home
last modified time | relevance | path

Searched refs:url (Results 1 – 25 of 236) sorted by relevance

12345678910

/frameworks/base/core/java/android/webkit/
DURLUtil.java111 public static byte[] decode(byte[] url) throws IllegalArgumentException { in decode() argument
112 if (url.length == 0) { in decode()
117 byte[] tempData = new byte[url.length]; in decode()
120 for (int i = 0; i < url.length; i++) { in decode()
121 byte b = url[i]; in decode()
123 if (url.length - i > 2) { in decode()
124 b = (byte) (parseHex(url[i + 1]) * 16 in decode()
125 + parseHex(url[i + 2])); in decode()
141 static boolean verifyURLEncoding(String url) { in verifyURLEncoding() argument
142 int count = url.length(); in verifyURLEncoding()
[all …]
DMimeTypeMap.java43 public static String getFileExtensionFromUrl(String url) { in getFileExtensionFromUrl() argument
44 if (!TextUtils.isEmpty(url)) { in getFileExtensionFromUrl()
45 int fragment = url.lastIndexOf('#'); in getFileExtensionFromUrl()
47 url = url.substring(0, fragment); in getFileExtensionFromUrl()
50 int query = url.lastIndexOf('?'); in getFileExtensionFromUrl()
52 url = url.substring(0, query); in getFileExtensionFromUrl()
55 int filenamePos = url.lastIndexOf('/'); in getFileExtensionFromUrl()
57 0 <= filenamePos ? url.substring(filenamePos + 1) : url; in getFileExtensionFromUrl()
126 /* package */ String remapGenericMimeType(String mimeType, String url, in remapGenericMimeType() argument
140 url = filename; in remapGenericMimeType()
[all …]
/frameworks/support/compat/tests/java/android/support/v4/util/
DPatternsCompatTest.java77 String url = "http://www.android.com"; in testWebUrl_matchesValidUrlWithSchemeAndHostname() local
79 PatternsCompat.WEB_URL.matcher(url).matches()); in testWebUrl_matchesValidUrlWithSchemeAndHostname()
84 String url = "http://www.android.me"; in testWebUrl_matchesValidUrlWithSchemeHostnameAndNewTld() local
86 PatternsCompat.WEB_URL.matcher(url).matches()); in testWebUrl_matchesValidUrlWithSchemeHostnameAndNewTld()
91 String url = "android.me"; in testWebUrl_matchesValidUrlWithHostnameAndNewTld() local
93 PatternsCompat.WEB_URL.matcher(url).matches()); in testWebUrl_matchesValidUrlWithHostnameAndNewTld()
98 String url = "http://xn--fsqu00a.xn--0zwm56d"; in testWebUrl_matchesChinesePunycodeUrlWithProtocol() local
100 PatternsCompat.WEB_URL.matcher(url).matches()); in testWebUrl_matchesChinesePunycodeUrlWithProtocol()
105 String url = "xn--fsqu00a.xn--0zwm56d"; in testWebUrl_matchesChinesePunycodeUrlWithoutProtocol() local
107 PatternsCompat.WEB_URL.matcher(url).matches()); in testWebUrl_matchesChinesePunycodeUrlWithoutProtocol()
[all …]
/frameworks/base/core/tests/coretests/src/android/util/
DPatternsTest.java101 String url = "http://www.android.com"; in testWebUrl_matchesValidUrlWithSchemeAndHostname() local
103 Patterns.WEB_URL.matcher(url).matches()); in testWebUrl_matchesValidUrlWithSchemeAndHostname()
108 String url = "http://www.android.me"; in testWebUrl_matchesValidUrlWithSchemeHostnameAndNewTld() local
110 Patterns.WEB_URL.matcher(url).matches()); in testWebUrl_matchesValidUrlWithSchemeHostnameAndNewTld()
115 String url = "android.me"; in testWebUrl_matchesValidUrlWithHostnameAndNewTld() local
117 Patterns.WEB_URL.matcher(url).matches()); in testWebUrl_matchesValidUrlWithHostnameAndNewTld()
122 String url = "http://xn--fsqu00a.xn--0zwm56d"; in testWebUrl_matchesChinesePunycodeUrlWithProtocol() local
124 Patterns.WEB_URL.matcher(url).matches()); in testWebUrl_matchesChinesePunycodeUrlWithProtocol()
129 String url = "xn--fsqu00a.xn--0zwm56d"; in testWebUrl_matchesChinesePunycodeUrlWithoutProtocol() local
131 Patterns.WEB_URL.matcher(url).matches()); in testWebUrl_matchesChinesePunycodeUrlWithoutProtocol()
[all …]
/frameworks/support/compat/tests/java/android/support/v4/text/util/
DLinkifyCompatTest.java63 public final String transformUrl(final Matcher match, String url) {
306 String url = "name@gmail.com"; in testAddLinks_shouldNotAddEmailAddressAsUrl() local
307 assertAddLinksWithWebUrlFails("Should not recognize email address as URL", url); in testAddLinks_shouldNotAddEmailAddressAsUrl()
311 String url = "https://android.com/path?ll=37.4221,-122.0836&z=17&pll=37.4221,-122.0836"; in testAddLinks_acceptsUrlsWithCommasInRequestParameterValues() local
312 assertAddLinksWithWebUrlSucceeds("Should accept commas", url); in testAddLinks_acceptsUrlsWithCommasInRequestParameterValues()
317 String url = "http://android/#notld///a/n/d/r/o/i/d&p1=1&p2=2"; in testAddLinks_addsLinksForUrlWithProtocolWithoutTld() local
319 " have TLD", url); in testAddLinks_addsLinksForUrlWithProtocolWithoutTld()
324 String url = "hTtP://android.com"; in testAddLinks_matchesProtocolCaseInsensitive() local
325 assertAddLinksWithWebUrlSucceeds("Protocol matching should be case insensitive", url); in testAddLinks_matchesProtocolCaseInsensitive()
330 String url = "http://www.android.com"; in testAddLinks_matchesValidUrlWithSchemeAndHostname() local
[all …]
/frameworks/base/core/java/android/content/
DContentProviderClient.java124 public @Nullable Cursor query(@NonNull Uri url, @Nullable String[] projection, in query() argument
127 return query(url, projection, selection, selectionArgs, sortOrder, null); in query()
131 public @Nullable Cursor query(@NonNull Uri url, @Nullable String[] projection, in query() argument
135 Preconditions.checkNotNull(url, "url"); in query()
145 final Cursor cursor = mContentProvider.query(mPackageName, url, projection, selection, in query()
168 public @Nullable String getType(@NonNull Uri url) throws RemoteException { in getType() argument
169 Preconditions.checkNotNull(url, "url"); in getType()
173 return mContentProvider.getType(url); in getType()
185 public @Nullable String[] getStreamTypes(@NonNull Uri url, @NonNull String mimeTypeFilter) in getStreamTypes() argument
187 Preconditions.checkNotNull(url, "url"); in getStreamTypes()
[all …]
DContentProviderNative.java83 Uri url = Uri.CREATOR.createFromParcel(data); in onTransact() local
112 Cursor cursor = query(callingPkg, url, projection, selection, selectionArgs, in onTransact()
148 Uri url = Uri.CREATOR.createFromParcel(data); in onTransact() local
149 String type = getType(url); in onTransact()
160 Uri url = Uri.CREATOR.createFromParcel(data); in onTransact() local
163 Uri out = insert(callingPkg, url, values); in onTransact()
173 Uri url = Uri.CREATOR.createFromParcel(data); in onTransact() local
176 int count = bulkInsert(callingPkg, url, values); in onTransact()
202 Uri url = Uri.CREATOR.createFromParcel(data); in onTransact() local
206 int count = delete(callingPkg, url, selection, selectionArgs); in onTransact()
[all …]
DIContentProvider.java38 public Cursor query(String callingPkg, Uri url, String[] projection, String selection, in query() argument
41 public String getType(Uri url) throws RemoteException; in getType() argument
42 public Uri insert(String callingPkg, Uri url, ContentValues initialValues) in insert() argument
44 public int bulkInsert(String callingPkg, Uri url, ContentValues[] initialValues) in bulkInsert() argument
46 public int delete(String callingPkg, Uri url, String selection, String[] selectionArgs) in delete() argument
48 public int update(String callingPkg, Uri url, ContentValues values, String selection, in update() argument
51 String callingPkg, Uri url, String mode, ICancellationSignal signal, in openFile() argument
55 String callingPkg, Uri url, String mode, ICancellationSignal signal) in openAssetFile() argument
69 public String[] getStreamTypes(Uri url, String mimeTypeFilter) throws RemoteException; in getStreamTypes() argument
70 public AssetFileDescriptor openTypedAssetFile(String callingPkg, Uri url, String mimeType, in openTypedAssetFile() argument
/frameworks/base/test-runner/src/android/test/mock/
DMockContentProvider.java63 public int bulkInsert(String callingPackage, Uri url, ContentValues[] initialValues) in bulkInsert() argument
65 return MockContentProvider.this.bulkInsert(url, initialValues); in bulkInsert()
69 public int delete(String callingPackage, Uri url, String selection, String[] selectionArgs) in delete() argument
71 return MockContentProvider.this.delete(url, selection, selectionArgs); in delete()
75 public String getType(Uri url) throws RemoteException { in getType() argument
76 return MockContentProvider.this.getType(url); in getType()
80 public Uri insert(String callingPackage, Uri url, ContentValues initialValues) in insert() argument
82 return MockContentProvider.this.insert(url, initialValues); in insert()
87 String callingPackage, Uri url, String mode, ICancellationSignal signal) in openAssetFile() argument
89 return MockContentProvider.this.openAssetFile(url, mode); in openAssetFile()
[all …]
DMockIContentProvider.java44 public int bulkInsert(String callingPackage, Uri url, ContentValues[] initialValues) { in bulkInsert() argument
49 public int delete(String callingPackage, Uri url, String selection, String[] selectionArgs) in delete() argument
54 public String getType(Uri url) { in getType() argument
59 public Uri insert(String callingPackage, Uri url, ContentValues initialValues) in insert() argument
65 String callingPackage, Uri url, String mode, ICancellationSignal signal, in openFile() argument
80 public Cursor query(String callingPackage, Uri url, String[] projection, String selection, in query() argument
86 public EntityIterator queryEntities(Uri url, String selection, String[] selectionArgs, in queryEntities() argument
91 public int update(String callingPackage, Uri url, ContentValues values, String selection, in update() argument
105 public String[] getStreamTypes(Uri url, String mimeTypeFilter) throws RemoteException { in getStreamTypes() argument
109 public AssetFileDescriptor openTypedAssetFile(String callingPackage, Uri url, String mimeType, in openTypedAssetFile() argument
/frameworks/base/core/tests/coretests/src/android/app/activity/
DLocalProvider.java84 public Cursor query(Uri url, String[] projectionIn, String selection, in query() argument
89 int match = sURLMatcher.match(url); in query()
97 qb.appendWhere(url.getPathSegments().get(1)); in query()
100 throw new IllegalArgumentException("Unknown URL " + url); in query()
110 ret.setNotificationUri(getContext().getContentResolver(), url); in query() local
117 public String getType(Uri url) { in getType() argument
118 int match = sURLMatcher.match(url); in getType()
130 public int update(Uri url, ContentValues values, String where, String[] whereArgs) { in update() argument
133 int match = sURLMatcher.match(url); in update()
137 String segment = url.getPathSegments().get(1); in update()
[all …]
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
DWebAsset.java46 private WebAsset(URL url) { in WebAsset() argument
47 int port = url.getPort() != -1 ? url.getPort() : url.getDefaultPort(); in WebAsset()
49 mUrl = new URL(url.getProtocol().toLowerCase(), url.getHost().toLowerCase(), port, ""); in WebAsset()
127 URL url; in create() local
129 url = new URL(asset.optString(Utils.WEB_ASSET_FIELD_SITE)); in create()
134 String scheme = url.getProtocol().toLowerCase(Locale.US); in create()
139 if (url.getUserInfo() != null) { in create()
143 String path = url.getFile(); // This is url.getPath() + url.getQuery(). in create()
149 return new WebAsset(url); in create()
/frameworks/base/core/tests/coretests/src/android/content/
DMemoryFileProvider.java113 public Cursor query(Uri url, String[] projectionIn, String selection, in query() argument
119 public String getType(Uri url) { in getType() argument
120 int match = sURLMatcher.match(url); in getType()
132 public ParcelFileDescriptor openFile(Uri url, String mode) throws FileNotFoundException { in openFile() argument
133 int match = sURLMatcher.match(url); in openFile()
136 String sql = "SELECT _blob FROM data WHERE _id=" + url.getPathSegments().get(1); in openFile()
137 return getBlobColumnAsFile(url, mode, sql); in openFile()
142 throw new FileNotFoundException("Error reading " + url + ":" + ex.toString()); in openFile()
148 throw new FileNotFoundException("No files supported by provider at " + url); in openFile()
152 private ParcelFileDescriptor getBlobColumnAsFile(Uri url, String mode, String sql) in getBlobColumnAsFile() argument
[all …]
/frameworks/base/core/java/android/net/http/
DSslError.java113 public SslError(int error, SslCertificate certificate, String url) { in SslError() argument
115 assert url != null; in SslError()
118 mUrl = url; in SslError()
128 public SslError(int error, X509Certificate certificate, String url) { in SslError() argument
129 this(error, new SslCertificate(certificate), url); in SslError()
140 int error, SslCertificate cert, String url) { in SslErrorFromChromiumErrorCode() argument
145 return new SslError(SSL_IDMISMATCH, cert, url); in SslErrorFromChromiumErrorCode()
147 return new SslError(SSL_DATE_INVALID, cert, url); in SslErrorFromChromiumErrorCode()
149 return new SslError(SSL_UNTRUSTED, cert, url); in SslErrorFromChromiumErrorCode()
151 return new SslError(SSL_INVALID, cert, url); in SslErrorFromChromiumErrorCode()
/frameworks/av/media/libmediaplayerservice/
DMediaPlayerFactory.cpp105 const char* url) { in getPlayerType() argument
106 GET_PLAYER_TYPE_IMPL(client, url); in getPlayerType()
175 const char* url, in scoreFactory() argument
182 if (!strncasecmp("http://", url, 7) in scoreFactory()
183 || !strncasecmp("https://", url, 8) in scoreFactory()
184 || !strncasecmp("file://", url, 7)) { in scoreFactory()
185 size_t len = strlen(url); in scoreFactory()
186 if (len >= 5 && !strcasecmp(".m3u8", &url[len - 5])) { in scoreFactory()
190 if (strstr(url,"m3u8")) { in scoreFactory()
194 if ((len >= 4 && !strcasecmp(".sdp", &url[len - 4])) || strstr(url, ".sdp?")) { in scoreFactory()
[all …]
DTestPlayerStub.cpp53 bool isTestUrl(const char *url) in isTestUrl() argument
55 return url && strncmp(url, kTestUrlScheme, strlen(kTestUrlScheme)) == 0; in isTestUrl()
117 const char *url, in setDataSource() argument
119 if (!isTestUrl(url) || NULL != mHandle) { in setDataSource()
123 mUrl = strdup(url); in setDataSource()
193 /* static */ bool TestPlayerStub::canBeUsed(const char *url) in canBeUsed() argument
195 return isTestBuild() && isTestUrl(url); in canBeUsed()
/frameworks/base/core/tests/coretests/src/android/app/
DSuggestionProvider.java63 public Cursor query(Uri url, String[] projectionIn, String selection, in query() argument
65 int match = sURLMatcher.match(url); in query()
68 String query = url.getLastPathSegment(); in query()
76 throw new IllegalArgumentException("Unknown URL: " + url); in query()
86 public String getType(Uri url) { in getType() argument
87 int match = sURLMatcher.match(url); in getType()
92 throw new IllegalArgumentException("Unknown URL: " + url); in getType()
97 public int update(Uri url, ContentValues values, String where, String[] whereArgs) { in update() argument
102 public Uri insert(Uri url, ContentValues initialValues) { in insert() argument
107 public int delete(Uri url, String where, String[] whereArgs) { in delete() argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DIccProvider.java88 public Cursor query(Uri url, String[] projection, String selection, in query() argument
92 switch (URL_MATCHER.match(url)) { in query()
98 return loadFromEf(IccConstants.EF_ADN, getRequestSubId(url)); in query()
105 return loadFromEf(IccConstants.EF_FDN, getRequestSubId(url)); in query()
112 return loadFromEf(IccConstants.EF_SDN, getRequestSubId(url)); in query()
118 throw new IllegalArgumentException("Unknown URL " + url); in query()
144 public String getType(Uri url) { in getType() argument
145 switch (URL_MATCHER.match(url)) { in getType()
156 throw new IllegalArgumentException("Unknown URL " + url); in getType()
161 public Uri insert(Uri url, ContentValues initialValues) { in insert() argument
[all …]
/frameworks/rs/java/tests/RsCameraDemo/src/com/android/example/rscamera/
DMediaStoreSaver.java68 Uri url = null; in insertImage() local
72 url = cr.insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values); in insertImage()
75 OutputStream imageOut = cr.openOutputStream(url); in insertImage()
82 long id = ContentUris.parseId(url); in insertImage()
88 cr.delete(url, null, null); in insertImage()
89 url = null; in insertImage()
92 if (url != null) { in insertImage()
93 cr.delete(url, null, null); in insertImage()
94 url = null; in insertImage()
98 if (url != null) { in insertImage()
[all …]
/frameworks/av/media/libstagefright/httplive/
DHTTPDownloader.cpp81 const char *url, sp<ABuffer> *out, in fetchBlock() argument
93 if (!strncasecmp(url, "file://", 7)) { in fetchBlock()
94 mDataSource = new FileSource(url + 7); in fetchBlock()
95 } else if (strncasecmp(url, "http://", 7) in fetchBlock()
96 && strncasecmp(url, "https://", 8)) { in fetchBlock()
112 status_t err = mHTTPDataSource->connect(url, &headers); in fetchBlock()
207 *actualUrl = url; in fetchBlock()
215 const char *url, sp<ABuffer> *out, String8 *actualUrl) { in fetchFile() argument
216 ssize_t err = fetchBlock(url, out, 0, -1, 0, actualUrl, true /* reconnect */); in fetchFile()
225 const char *url, uint8_t *curPlaylistHash, bool *unchanged) { in fetchPlaylist() argument
[all …]
/frameworks/base/core/java/android/text/util/
DLinkify.java158 public final String transformUrl(final Matcher match, String url) {
209 String transformUrl(final Matcher match, String url); in transformUrl() argument
264 applyLink(link.url, link.start, link.end, text); in addLinks()
466 String url = makeUrl(m.group(0), schemesCopy, m, transformFilter); in addLinks() local
468 applyLink(url, start, end, spannable); in addLinks()
476 private static final void applyLink(String url, int start, int end, Spannable text) { in applyLink() argument
477 URLSpan span = new URLSpan(url); in applyLink()
482 private static final String makeUrl(@NonNull String url, @NonNull String[] prefixes, in makeUrl() argument
485 url = filter.transformUrl(matcher, url); in makeUrl()
491 if (url.regionMatches(true, 0, prefixes[i], 0, prefixes[i].length())) { in makeUrl()
[all …]
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
DHTTPHandler.java85 public OSUResponse exchangeSOAP(URL url, String message) throws IOException { in exchangeSOAP() argument
86 HTTPResponse response = exchangeWithRetry(url, message, HTTPMessage.Method.POST, in exchangeSOAP()
103 public ByteBuffer exchangeBinary(URL url, String message, String contentType) in exchangeBinary() argument
106 exchangeWithRetry(url, message, HTTPMessage.Method.POST, contentType); in exchangeBinary()
110 public InputStream doGet(URL url) throws IOException { in doGet() argument
111 HTTPResponse response = exchangeWithRetry(url, null, HTTPMessage.Method.GET, null); in doGet()
115 public HTTPResponse doGetHTTP(URL url) throws IOException { in doGetHTTP() argument
116 return exchangeWithRetry(url, null, HTTPMessage.Method.GET, null); in doGetHTTP()
119 private HTTPResponse exchangeWithRetry(URL url, String message, HTTPMessage.Method method, in exchangeWithRetry() argument
125 response = httpExchange(url, message, method, contentType); in exchangeWithRetry()
[all …]
/frameworks/support/compat/java/android/support/v4/text/util/
DLinkifyCompat.java136 applyLink(link.url, link.start, link.end, text); in addLinks()
329 String url = makeUrl(m.group(0), schemesCopy, m, transformFilter); in addLinks() local
331 applyLink(url, start, end, spannable); in addLinks()
349 private static String makeUrl(@NonNull String url, @NonNull String[] prefixes, in makeUrl() argument
352 url = filter.transformUrl(matcher, url); in makeUrl()
358 if (url.regionMatches(true, 0, prefixes[i], 0, prefixes[i].length())) { in makeUrl()
362 if (!url.regionMatches(false, 0, prefixes[i], 0, prefixes[i].length())) { in makeUrl()
363 url = prefixes[i] + url.substring(prefixes[i].length()); in makeUrl()
371 url = prefixes[0] + url; in makeUrl()
374 return url; in makeUrl()
[all …]
/frameworks/base/core/java/android/net/
DMailTo.java50 public static boolean isMailTo(String url) { in isMailTo() argument
51 if (url != null && url.startsWith(MAILTO_SCHEME)) { in isMailTo()
64 public static MailTo parse(String url) throws ParseException { in parse() argument
65 if (url == null) { in parse()
68 if (!isMailTo(url)) { in parse()
72 String noScheme = url.substring(MAILTO_SCHEME.length()); in parse()
/frameworks/base/packages/CaptivePortalLogin/src/com/android/captiveportallogin/
DCaptivePortalLoginActivity.java236 final String url = mUrl.toString(); in onDestroy() local
238 Log.d(TAG, "starting activity with intent ACTION_VIEW for " + url); in onDestroy()
240 startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url))); in onDestroy()
245 String url = getIntent().getStringExtra(ConnectivityManager.EXTRA_CAPTIVE_PORTAL_URL); in getUrl() local
246 if (url == null) { in getUrl()
247 url = mCm.getCaptivePortalServerUrl(); in getUrl()
250 return new URL(url); in getUrl()
252 Log.e(TAG, "Invalid captive portal URL " + url); in getUrl()
307 public void onPageStarted(WebView view, String url, Bitmap favicon) { in onPageStarted() argument
308 if (url.contains(mBrowserBailOutToken)) { in onPageStarted()
[all …]

12345678910