Searched refs:url (Results 1 - 25 of 182) sorted by relevance

12345678

/frameworks/base/core/java/android/webkit/
H A DURLUtil.java64 // bug 762454: strip period off end of url
74 Log.v(LOGTAG, "smartUrlFilter: failed to parse url = " + inUrl);
111 public static byte[] decode(byte[] url) throws IllegalArgumentException { argument
112 if (url.length == 0) {
117 byte[] tempData = new byte[url.length];
120 for (int i = 0; i < url.length; i++) {
121 byte b = url[i];
123 if (url.length - i > 2) {
124 b = (byte) (parseHex(url[i + 1]) * 16
125 + parseHex(url[
141 verifyURLEncoding(String url) argument
175 isAssetUrl(String url) argument
183 isResourceUrl(String url) argument
193 isCookielessProxyUrl(String url) argument
200 isFileUrl(String url) argument
209 isAboutUrl(String url) argument
216 isDataUrl(String url) argument
223 isJavaScriptUrl(String url) argument
230 isHttpUrl(String url) argument
239 isHttpsUrl(String url) argument
248 isNetworkUrl(String url) argument
258 isContentUrl(String url) argument
265 isValidUrl(String url) argument
283 stripAnchor(String url) argument
301 guessFileName( String url, String contentDisposition, String mimeType) argument
[all...]
H A DMimeTypeMap.java39 * extension of a url and has undefined results for other Strings.
40 * @param url
41 * @return The file extension of the given url.
43 public static String getFileExtensionFromUrl(String url) { argument
44 if (!TextUtils.isEmpty(url)) {
45 int fragment = url.lastIndexOf('#');
47 url = url.substring(0, fragment);
50 int query = url.lastIndexOf('?');
52 url
126 remapGenericMimeType(String mimeType, String url, String contentDisposition) argument
[all...]
H A DDownloadListener.java23 * @param url The full url to the content that should be downloaded
30 public void onDownloadStart(String url, String userAgent, argument
H A DWebIconDatabase.java46 * @param url The url passed in the request.
47 * @param icon The favicon for the given url.
49 public void onReceivedIcon(String url, Bitmap icon); argument
70 * url. If the icon exists, the listener will be called with the result.
71 * @param url The page's url.
74 public abstract void requestIconForPageUrl(String url, IconListener listener); argument
83 * Retain the icon for the given page url.
84 * @param url Th
86 retainIconForPageUrl(String url) argument
92 releaseIconForPageUrl(String url) argument
[all...]
H A DUrlInterceptHandler.java36 * @param url URL string.
44 public CacheResult service(String url, Map<String, String> headers); argument
51 * @param url URL string.
59 public PluginData getPluginData(String url, Map<String, String> headers); argument
H A DCookieManager.java94 * @param url the URL for which the cookie is to be set
98 public abstract void setCookie(String url, String value); argument
114 * @param url the URL for which the cookie is to be set
119 public abstract void setCookie(String url, String value, ValueCallback<Boolean> callback); argument
124 * @param url the URL for which the cookies are requested
128 public abstract String getCookie(String url); argument
133 * @param url the URL for which the cookies are requested
140 public abstract String getCookie(String url, boolean privateBrowsing); argument
H A DUrlInterceptRegistry.java48 * set the flag to control whether url intercept is enabled or disabled
62 * get the state of the url intercept, enabled or disabled
114 * Given an url, returns the CacheResult of the first
125 String url, Map<String, String> headers) {
132 CacheResult result = handler.service(url, headers);
141 * Given an url, returns the PluginData of the first
153 String url, Map<String, String> headers) {
160 PluginData data = handler.getPluginData(url, headers);
124 getSurrogate( String url, Map<String, String> headers) argument
152 getPluginData( String url, Map<String, String> headers) argument
/frameworks/base/core/tests/coretests/src/android/util/
H A DPatternsTest.java101 String url = "http://www.android.com";
103 Patterns.WEB_URL.matcher(url).matches());
108 String url = "http://www.android.me";
110 Patterns.WEB_URL.matcher(url).matches());
115 String url = "android.me";
117 Patterns.WEB_URL.matcher(url).matches());
122 String url = "http://xn--fsqu00a.xn--0zwm56d";
124 Patterns.WEB_URL.matcher(url).matches());
129 String url = "xn--fsqu00a.xn--0zwm56d";
131 Patterns.WEB_URL.matcher(url)
[all...]
/frameworks/support/compat/tests/java/android/support/v4/util/
H A DPatternsCompatTest.java77 String url = "http://www.android.com";
79 PatternsCompat.WEB_URL.matcher(url).matches());
84 String url = "http://www.android.me";
86 PatternsCompat.WEB_URL.matcher(url).matches());
91 String url = "android.me";
93 PatternsCompat.WEB_URL.matcher(url).matches());
98 String url = "http://xn--fsqu00a.xn--0zwm56d";
100 PatternsCompat.WEB_URL.matcher(url).matches());
105 String url = "xn--fsqu00a.xn--0zwm56d";
107 PatternsCompat.WEB_URL.matcher(url)
[all...]
/frameworks/base/core/java/android/net/http/
H A DSslError.java111 * @param url The associated URL
113 public SslError(int error, SslCertificate certificate, String url) { argument
115 assert url != null;
118 mUrl = url;
126 * @param url The associated URL
128 public SslError(int error, X509Certificate certificate, String url) { argument
129 this(error, new SslCertificate(certificate), url);
136 * @param url The associated URL.
140 int error, SslCertificate cert, String url) {
145 return new SslError(SSL_IDMISMATCH, cert, url);
139 SslErrorFromChromiumErrorCode( int error, SslCertificate cert, String url) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/app/
H A DSuggestionProvider.java63 public Cursor query(Uri url, String[] projectionIn, String selection, argument
65 int match = sURLMatcher.match(url);
68 String query = url.getLastPathSegment();
76 throw new IllegalArgumentException("Unknown URL: " + url);
86 public String getType(Uri url) { argument
87 int match = sURLMatcher.match(url);
92 throw new IllegalArgumentException("Unknown URL: " + url);
97 public int update(Uri url, ContentValues values, String where, String[] whereArgs) { argument
102 public Uri insert(Uri url, ContentValues initialValues) { argument
107 public int delete(Uri url, Strin argument
[all...]
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
H A DWebAsset.java46 private WebAsset(URL url) { argument
47 int port = url.getPort() != -1 ? url.getPort() : url.getDefaultPort();
49 mUrl = new URL(url.getProtocol().toLowerCase(), url.getHost().toLowerCase(), port, "");
127 URL url;
129 url = new URL(asset.optString(Utils.WEB_ASSET_FIELD_SITE));
134 String scheme = url.getProtocol().toLowerCase(Locale.US);
139 if (url
[all...]
/frameworks/base/packages/services/PacProcessor/com/android/net/
H A DIProxyService.aidl21 String resolvePacFile(String host, String url);
/frameworks/base/test-runner/src/android/test/mock/
H A DMockIContentProvider.java44 public int bulkInsert(String callingPackage, Uri url, ContentValues[] initialValues) { argument
49 public int delete(String callingPackage, Uri url, String selection, String[] selectionArgs) argument
54 public String getType(Uri url) { argument
59 public Uri insert(String callingPackage, Uri url, ContentValues initialValues) argument
65 String callingPackage, Uri url, String mode, ICancellationSignal signal,
80 public Cursor query(String callingPackage, Uri url, String[] projection, String selection, argument
86 public EntityIterator queryEntities(Uri url, String selection, String[] selectionArgs, argument
91 public int update(String callingPackage, Uri url, ContentValues values, String selection, argument
105 public String[] getStreamTypes(Uri url, String mimeTypeFilter) throws RemoteException { argument
109 public AssetFileDescriptor openTypedAssetFile(String callingPackage, Uri url, Strin argument
64 openFile( String callingPackage, Uri url, String mode, ICancellationSignal signal, IBinder callerToken) argument
[all...]
H A DMockContentProvider.java63 public int bulkInsert(String callingPackage, Uri url, ContentValues[] initialValues) argument
65 return MockContentProvider.this.bulkInsert(url, initialValues);
69 public int delete(String callingPackage, Uri url, String selection, String[] selectionArgs) argument
71 return MockContentProvider.this.delete(url, selection, selectionArgs);
75 public String getType(Uri url) throws RemoteException { argument
76 return MockContentProvider.this.getType(url);
80 public Uri insert(String callingPackage, Uri url, ContentValues initialValues) argument
82 return MockContentProvider.this.insert(url, initialValues);
87 String callingPackage, Uri url, String mode, ICancellationSignal signal)
89 return MockContentProvider.this.openAssetFile(url, mod
86 openAssetFile( String callingPackage, Uri url, String mode, ICancellationSignal signal) argument
93 openFile( String callingPackage, Uri url, String mode, ICancellationSignal signal, IBinder callerToken) argument
100 query(String callingPackage, Uri url, String[] projection, String selection, String[] selectionArgs, String sortOrder, ICancellationSignal cancellationSignal) argument
108 update(String callingPackage, Uri url, ContentValues values, String selection, String[] selectionArgs) argument
125 getStreamTypes(Uri url, String mimeTypeFilter) argument
130 openTypedAssetFile(String callingPackage, Uri url, String mimeType, Bundle opts, ICancellationSignal signal) argument
245 getStreamTypes(Uri url, String mimeTypeFilter) argument
249 openTypedAssetFile(Uri url, String mimeType, Bundle opts) argument
[all...]
/frameworks/base/core/java/android/content/
H A DContentProviderClient.java124 public @Nullable Cursor query(@NonNull Uri url, @Nullable String[] projection, argument
127 return query(url, projection, selection, selectionArgs, sortOrder, null);
131 public @Nullable Cursor query(@NonNull Uri url, @Nullable String[] projection, argument
135 Preconditions.checkNotNull(url, "url");
145 final Cursor cursor = mContentProvider.query(mPackageName, url, projection, selection,
168 public @Nullable String getType(@NonNull Uri url) throws RemoteException { argument
169 Preconditions.checkNotNull(url, "url");
173 return mContentProvider.getType(url);
185 getStreamTypes(@onNull Uri url, @NonNull String mimeTypeFilter) argument
204 canonicalize(@onNull Uri url) argument
221 uncanonicalize(@onNull Uri url) argument
238 insert(@onNull Uri url, @Nullable ContentValues initialValues) argument
256 bulkInsert(@onNull Uri url, @NonNull ContentValues[] initialValues) argument
275 delete(@onNull Uri url, @Nullable String selection, @Nullable String[] selectionArgs) argument
293 update(@onNull Uri url, @Nullable ContentValues values, @Nullable String selection, @Nullable String[] selectionArgs) argument
317 openFile(@onNull Uri url, @NonNull String mode) argument
329 openFile(@onNull Uri url, @NonNull String mode, @Nullable CancellationSignal signal) argument
360 openAssetFile(@onNull Uri url, @NonNull String mode) argument
372 openAssetFile(@onNull Uri url, @NonNull String mode, @Nullable CancellationSignal signal) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/app/activity/
H A DLocalProvider.java84 public Cursor query(Uri url, String[] projectionIn, String selection, argument
89 int match = sURLMatcher.match(url);
97 qb.appendWhere(url.getPathSegments().get(1));
100 throw new IllegalArgumentException("Unknown URL " + url);
110 ret.setNotificationUri(getContext().getContentResolver(), url);
117 public String getType(Uri url) { argument
118 int match = sURLMatcher.match(url);
130 public int update(Uri url, ContentValues values, String where, String[] whereArgs) { argument
133 int match = sURLMatcher.match(url);
137 String segment = url
154 insert(Uri url, ContentValues initialValues) argument
159 delete(Uri url, String where, String[] whereArgs) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/content/
H A DMemoryFileProvider.java113 public Cursor query(Uri url, String[] projectionIn, String selection, argument
119 public String getType(Uri url) { argument
120 int match = sURLMatcher.match(url);
132 public ParcelFileDescriptor openFile(Uri url, String mode) throws FileNotFoundException { argument
133 int match = sURLMatcher.match(url);
136 String sql = "SELECT _blob FROM data WHERE _id=" + url.getPathSegments().get(1);
137 return getBlobColumnAsFile(url, mode, sql);
142 throw new FileNotFoundException("Error reading " + url + ":" + ex.toString());
148 throw new FileNotFoundException("No files supported by provider at " + url);
152 private ParcelFileDescriptor getBlobColumnAsFile(Uri url, Strin argument
163 update(Uri url, ContentValues values, String where, String[] whereArgs) argument
168 insert(Uri url, ContentValues initialValues) argument
173 delete(Uri url, String where, String[] whereArgs) argument
[all...]
/frameworks/support/compat/tests/java/android/support/v4/text/util/
H A DLinkifyCompatTest.java63 public final String transformUrl(final Matcher match, String url) {
306 String url = "name@gmail.com";
307 assertAddLinksWithWebUrlFails("Should not recognize email address as URL", url);
311 String url = "https://android.com/path?ll=37.4221,-122.0836&z=17&pll=37.4221,-122.0836";
312 assertAddLinksWithWebUrlSucceeds("Should accept commas", url);
317 String url = "http://android/#notld///a/n/d/r/o/i/d&p1=1&p2=2";
319 " have TLD", url);
324 String url = "hTtP://android.com";
325 assertAddLinksWithWebUrlSucceeds("Protocol matching should be case insensitive", url);
330 String url
774 assertAddLinksWithWebUrlSucceeds(String msg, String url) argument
778 assertAddLinksWithWebUrlFails(String msg, String url) argument
782 assertAddLinksWithWebUrlPartiallyMatches(String msg, String expected, String url) argument
787 assertAddLinksWithEmailSucceeds(String msg, String url) argument
791 assertAddLinksWithEmailFails(String msg, String url) argument
795 assertAddLinksWithEmailPartiallyMatches(String msg, String expected, String url) argument
[all...]
/frameworks/rs/java/tests/RsCameraDemo/src/com/android/example/rscamera/
H A DMediaStoreSaver.java68 Uri url = null;
72 url = cr.insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values);
75 OutputStream imageOut = cr.openOutputStream(url);
82 long id = ContentUris.parseId(url);
88 cr.delete(url, null, null);
89 url = null;
92 if (url != null) {
93 cr.delete(url, null, null);
94 url = null;
98 if (url !
[all...]
/frameworks/base/packages/services/PacProcessor/src/com/android/pacprocessor/
H A DPacNative.java36 private native String makeProxyRequestNativeLocked(String url, String host); argument
74 public synchronized String makeProxyRequest(String url, String host) { argument
75 String ret = makeProxyRequestNativeLocked(url, host);
/frameworks/base/tests/BiDiTests/src/com/android/bidi/
H A DBiDiTestBasic.java66 Editable url = urlEdit.getText();
67 if (url.length() < 1) {
71 String urlString = url.toString();
84 url.setSpan(new ForegroundColorSpan(0xfff00fff),
90 url.setSpan(new ForegroundColorSpan(0xff548aff),
96 url.setSpan(new ForegroundColorSpan(0xfff00fff),
/frameworks/av/media/libmediaplayerservice/
H A DTestPlayerStub.cpp37 const char *kUrlParam = "url=";
52 // @return true if the url scheme is 'test:'
53 bool isTestUrl(const char *url) argument
55 return url && strncmp(url, kTestUrlScheme, strlen(kTestUrlScheme)) == 0;
79 // * The url to be passed to the real setDataSource impl.
83 // test:<name of the .so>?url=<url for setDataSource>
85 // The value of the url parameter is treated as a string (no
114 // Call setDataSource on the test player with the url i
115 setDataSource( const sp<IMediaHTTPService> &httpService, const char *url, const KeyedVector<String8, String8> *headers) argument
193 canBeUsed(const char *url) argument
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWnmData.java36 // %012x HS20-SUBSCRIPTION-REMEDIATION "%u %s", osu_method, url
37 // %012x HS20-DEAUTH-IMMINENT-NOTICE "%u %u %s", code, reauth_delay, url
71 private WnmData(long bssid, String url, int method) { argument
73 mUrl = url;
80 private WnmData(long bssid, String url, boolean ess, int delay) { argument
82 mUrl = url;
/frameworks/volley/src/main/java/com/android/volley/toolbox/
H A DJsonArrayRequest.java37 * @param url URL to fetch the JSON from
41 public JsonArrayRequest(String url, Listener<JSONArray> listener, ErrorListener errorListener) { argument
42 super(Method.GET, url, null, listener, errorListener);
48 * @param url URL to fetch the JSON from
54 public JsonArrayRequest(int method, String url, JSONArray jsonRequest, argument
56 super(method, url, (jsonRequest == null) ? null : jsonRequest.toString(), listener,

Completed in 529 milliseconds

12345678