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

12345

/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/
H A DTestShellCallback.java21 public void timedOut(String url); argument
/frameworks/base/core/java/android/webkit/
H A DURLUtil.java55 // bug 762454: strip period off end of url
65 Log.v(LOGTAG, "smartUrlFilter: failed to parse url = " + inUrl);
102 public static byte[] decode(byte[] url) throws IllegalArgumentException { argument
103 if (url.length == 0) {
108 byte[] tempData = new byte[url.length];
111 for (int i = 0; i < url.length; i++) {
112 byte b = url[i];
114 if (url.length - i > 2) {
115 b = (byte) (parseHex(url[i + 1]) * 16
116 + parseHex(url[
140 isAssetUrl(String url) argument
149 isCookielessProxyUrl(String url) argument
156 isFileUrl(String url) argument
165 isAboutUrl(String url) argument
172 isDataUrl(String url) argument
179 isJavaScriptUrl(String url) argument
186 isHttpUrl(String url) argument
195 isHttpsUrl(String url) argument
204 isNetworkUrl(String url) argument
214 isContentUrl(String url) argument
221 isValidUrl(String url) argument
238 stripAnchor(String url) argument
256 guessFileName( String url, String contentDisposition, String mimeType) argument
[all...]
H A DDataLoader.java43 String url = dataUrl.substring("data:".length());
45 int commaIndex = url.indexOf(',');
47 mContentType = url.substring(0, commaIndex);
48 content = url.substring(commaIndex + 1);
50 content = url;
72 * @param url data: URL string optionally containing a mimetype
75 public static void requestUrl(String url, LoadListener loadListener) { argument
76 DataLoader loader = new DataLoader(url, loadListener);
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 DUrlInterceptHandler.java30 * @param url URL string.
33 * @Deprecated Use PluginData getPluginData(String url,
37 public CacheResult service(String url, Map<String, String> headers); argument
44 * @param url URL string.
48 public PluginData getPluginData(String url, Map<String, String> headers); argument
H A DWebIconDatabase.java59 IconResult(String url, Bitmap icon, IconListener l) { argument
60 mUrl = url;
102 String url = msg.getData().getString("url");
103 Bitmap icon = nativeIconForPageUrl(url);
107 new IconResult(url, icon, l)));
145 * @param url The url passed in the request.
146 * @param icon The favicon for the given url.
148 public void onReceivedIcon(String url, Bitma argument
186 requestIconForPageUrl(String url, IconListener listener) argument
199 retainIconForPageUrl(String url) argument
210 releaseIconForPageUrl(String url) argument
248 nativeIconForPageUrl(String url) argument
249 nativeRetainIconForPageUrl(String url) argument
250 nativeReleaseIconForPageUrl(String url) argument
[all...]
H A DWebChromeClient.java93 * @param url The url of the page requesting the dialog.
98 public boolean onJsAlert(WebView view, String url, String message, argument
110 * @param url The url of the page requesting the dialog.
116 public boolean onJsConfirm(WebView view, String url, String message, argument
128 * @param url The url of the page requesting the dialog.
135 public boolean onJsPrompt(WebView view, String url, String message, argument
150 * @param url Th
156 onJsBeforeUnload(WebView view, String url, String message, JsResult result) argument
[all...]
H A DFrameLoader.java98 String url = mListener.url();
100 // Attempt to decode the percent-encoded url.
102 url = new String(URLUtil.decode(url.getBytes()));
104 // Fail with a bad url error if the decode fails.
111 if (URLUtil.isNetworkUrl(url)){
120 } else if (handleLocalFile(url, mListener, mSettings)) {
124 Log.v(LOGTAG, "FrameLoader.executeLoad: url protocol not supported:"
125 + mListener.url());
135 handleLocalFile(String url, LoadListener loadListener, WebSettings settings) argument
[all...]
H A DWebViewClient.java28 * url is about to be loaded in the current WebView. If WebViewClient is not
30 * proper handler for the url. If WebViewClient is provided, return true
31 * means the host application handles the url, while return false means the
32 * current WebView handles the url.
35 * @param url The url to be loaded.
37 * and handle the url itself, otherwise return false.
39 public boolean shouldOverrideUrlLoading(WebView view, String url) { argument
51 * @param url The url t
55 onPageStarted(WebView view, String url, Bitmap favicon) argument
67 onPageFinished(WebView view, String url) argument
77 onLoadResource(WebView view, String url) argument
129 doUpdateVisitedHistory(WebView view, String url, boolean isReload) argument
[all...]
H A DFileLoader.java46 * @param url Full file url pointing to content to be loaded
49 * @param asset true if url points to an asset.
53 FileLoader(String url, LoadListener loadListener, Context context, argument
61 int index = url.indexOf('?');
64 url.substring(URLUtil.ASSET_BASE.length(), index)) :
65 URLUtil.stripAnchor(url.substring(
69 url.substring(URLUtil.FILE_BASE.length(), index)) :
70 URLUtil.stripAnchor(url.substring(
122 * @param url Ful
129 requestUrl(String url, LoadListener loadListener, Context context, boolean asset, boolean allowFileAccess) argument
[all...]
H A DUrlInterceptRegistry.java42 * set the flag to control whether url intercept is enabled or disabled
51 * get the state of the url intercept, enabled or disabled
88 * Given an url, returns the CacheResult of the first
92 * @Deprecated Use PluginData getPluginData( String url,
97 String url, Map<String, String> headers) {
104 CacheResult result = handler.service(url, headers);
113 * Given an url, returns the PluginData of the first
120 String url, Map<String, String> headers) {
127 PluginData data = handler.getPluginData(url, headers);
96 getSurrogate( String url, Map<String, String> headers) argument
119 getPluginData( String url, Map<String, String> headers) argument
/frameworks/base/tests/CoreTests/android/webkit/
H A DCookieTest.java47 String url = "http://www.foo.com";
50 mCookieManager.setCookie(url, "a=b");
51 String cookie = mCookieManager.getCookie(url);
55 mCookieManager.setCookie(url, "c=\"d;\"");
56 cookie = mCookieManager.getCookie(url);
60 mCookieManager.setCookie(url, "; path=/");
61 cookie = mCookieManager.getCookie(url);
67 String url = "http://www.foo.com";
70 mCookieManager.setCookie(url, "a=b");
71 String cookie = mCookieManager.getCookie(url);
[all...]
H A DUrlInterceptRegistryTest.java42 public MockUrlInterceptHandler(PluginData data, String url) { argument
44 mUrl = url;
47 public CacheResult service(String url, Map<String, String> headers) { argument
51 public PluginData getPluginData(String url, argument
54 if (mUrl.equals(url)) {
64 String url = new String("url1");
66 new MockUrlInterceptHandler(data, url);
69 url = new String("url2");
71 new MockUrlInterceptHandler(data, url);
/frameworks/base/awt/org/apache/harmony/awt/gl/image/
H A DURLDecodingImageSource.java36 URL url; field in class:URLDecodingImageSource
38 public URLDecodingImageSource(URL url){ argument
41 security.checkConnect(url.getHost(), url.getPort());
43 Permission p = url.openConnection().getPermission();
48 this.url = url;
56 security.checkConnect(url.getHost(), url.getPort());
68 URLConnection uc = url
[all...]
/frameworks/base/tests/AndroidTests/src/com/android/unit_tests/
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/core/java/android/content/
H A DIContentProvider.java41 public IBulkCursor bulkQuery(Uri url, String[] projection, argument
44 public Cursor query(Uri url, String[] projection, String selection, argument
46 public String getType(Uri url) throws RemoteException; argument
47 public Uri insert(Uri url, ContentValues initialValues) argument
49 public int bulkInsert(Uri url, ContentValues[] initialValues) throws RemoteException; argument
50 public int delete(Uri url, String selection, String[] selectionArgs) argument
52 public int update(Uri url, ContentValues values, String selection, argument
54 public ParcelFileDescriptor openFile(Uri url, String mode) argument
56 public AssetFileDescriptor openAssetFile(Uri url, String mode) argument
H A DSyncableContentProvider.java161 protected abstract int updateInternal(Uri url, ContentValues values, argument
171 protected abstract int deleteInternal(Uri url, String selection, String[] selectionArgs); argument
180 protected abstract Uri insertInternal(Uri url, ContentValues values); argument
190 protected abstract Cursor queryInternal(Uri url, String[] projection, argument
/frameworks/base/test-runner/android/test/mock/
H A DMockContentProvider.java46 public int bulkInsert(Uri url, ContentValues[] initialValues) throws RemoteException { argument
52 public IBulkCursor bulkQuery(Uri url, String[] projection, String selection, argument
59 public int delete(Uri url, String selection, String[] selectionArgs) argument
70 public String getType(Uri url) throws RemoteException { argument
75 public Uri insert(Uri url, ContentValues initialValues) throws RemoteException { argument
80 public ParcelFileDescriptor openFile(Uri url, String mode) throws RemoteException, argument
92 public Cursor query(Uri url, String[] projection, String selection, String[] selectionArgs, argument
98 public int update(Uri url, ContentValues values, String selection, String[] selectionArgs) argument
/frameworks/base/tests/AndroidTests/src/com/android/unit_tests/activity/
H A DLocalProvider.java85 public Cursor query(Uri url, String[] projectionIn, String selection, argument
90 int match = sURLMatcher.match(url);
98 qb.appendWhere(url.getPathSegments().get(1));
101 throw new IllegalArgumentException("Unknown URL " + url);
111 ret.setNotificationUri(getContext().getContentResolver(), url);
118 public String getType(Uri url) { argument
119 int match = sURLMatcher.match(url);
131 public int update(Uri url, ContentValues values, String where, String[] whereArgs) { argument
134 int match = sURLMatcher.match(url);
138 String segment = url
155 insert(Uri url, ContentValues initialValues) argument
160 delete(Uri url, String where, String[] whereArgs) argument
[all...]
/frameworks/base/tests/CoreTests/android/core/
H A DURLTest.java39 URL url = new URL(u);
40 URLConnection cn = url.openConnection();
129 private String request(URL url) throws Exception { argument
130 URLConnection connection = url.openConnection();
150 URL url = new URL("http://localhost:8182");
151 assertEquals("Hello, Android world #0!", request(url));
152 assertEquals("Hello, Android world #1!", request(url));
153 assertEquals("Hello, Android world #2!", request(url));
156 request(url);
172 URL url
[all...]
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DSettingsProvider.java62 SqlArguments(Uri url, String where, String[] args) { argument
63 if (url.getPathSegments().size() == 1) {
64 this.table = url.getPathSegments().get(0);
67 } else if (url.getPathSegments().size() != 2) {
68 throw new IllegalArgumentException("Invalid URI: " + url);
70 throw new UnsupportedOperationException("WHERE clause not supported: " + url);
72 this.table = url.getPathSegments().get(0);
76 this.args = new String[] { url.getPathSegments().get(1) };
78 this.where = "_id=" + ContentUris.parseId(url);
85 SqlArguments(Uri url) { argument
195 query(Uri url, String[] select, String where, String[] whereArgs, String sort) argument
227 getType(Uri url) argument
269 parseProviderList(Uri url, ContentValues initialValues) argument
330 insert(Uri url, ContentValues initialValues) argument
355 delete(Uri url, String where, String[] whereArgs) argument
372 update(Uri url, ContentValues initialValues, String where, String[] whereArgs) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/tests/com/android/layoutlib/bridge/
H A DNinePatchTest.java15 URL url = this.getClass().getClassLoader().getResource("data/button.9.png");
17 mPatch = NinePatch.load(url, false /* convert */);
/frameworks/base/core/java/android/text/util/
H A DLinkify.java42 * Alone with the pattern that is to be matched, a url scheme prefix is also
44 * will have the scheme prepended to the matched text when the clickable url
47 * does not have a url scheme prefix, the supplied scheme will be prepended to
48 * create <code>http://example.com</code> when the clickable url link is
135 public final String transformUrl(final Matcher match, String url) {
147 * support@example.com. So, when matching against a web url pattern you
182 * @param url The text that was matched
186 String transformUrl(final Matcher match, String url); argument
238 applyLink(link.url, link.start, link.end, text);
297 * prepended to the url o
386 applyLink(String url, int start, int end, Spannable text) argument
392 makeUrl(String url, String[] prefixes, Matcher m, TransformFilter filter) argument
538 String url; field in class:LinkSpec
[all...]
/frameworks/base/tests/AndroidTests/src/com/android/unit_tests/content/
H A DMemoryFileProvider.java118 public Cursor query(Uri url, String[] projectionIn, String selection, argument
124 public String getType(Uri url) { argument
125 int match = sURLMatcher.match(url);
137 public AssetFileDescriptor openAssetFile(Uri url, String mode) throws FileNotFoundException { argument
138 int match = sURLMatcher.match(url);
141 String sql = "SELECT _blob FROM data WHERE _id=" + url.getPathSegments().get(1);
142 return getBlobColumnAsAssetFile(url, mode, sql);
150 throw new FileNotFoundException("Error reading " + url + ":" + ex.toString());
158 throw new FileNotFoundException("No files supported by provider at " + url);
162 private AssetFileDescriptor getBlobColumnAsAssetFile(Uri url, Strin argument
198 update(Uri url, ContentValues values, String where, String[] whereArgs) argument
203 insert(Uri url, ContentValues initialValues) argument
208 delete(Uri url, String where, String[] whereArgs) argument
[all...]
/frameworks/base/core/java/android/net/
H A DMailTo.java47 * @param url string to be tested
50 public static boolean isMailTo(String url) { argument
51 if (url != null && url.startsWith(MAILTO_SCHEME)) {
60 * @param url String containing a mailto URL
64 public static MailTo parse(String url) throws ParseException { argument
65 if (url == null) {
68 if (!isMailTo(url)) {
72 String noScheme = url.substring(MAILTO_SCHEME.length());

Completed in 337 milliseconds

12345