/frameworks/base/core/java/android/webkit/ |
H A D | URLUtil.java | 62 // bug 762454: strip period off end of url 72 Log.v(LOGTAG, "smartUrlFilter: failed to parse url = " + inUrl); 109 public static byte[] decode(byte[] url) throws IllegalArgumentException { argument 110 if (url.length == 0) { 115 byte[] tempData = new byte[url.length]; 118 for (int i = 0; i < url.length; i++) { 119 byte b = url[i]; 121 if (url.length - i > 2) { 122 b = (byte) (parseHex(url[i + 1]) * 16 123 + parseHex(url[ 139 verifyURLEncoding(String url) argument 173 isAssetUrl(String url) argument 181 isResourceUrl(String url) argument 191 isCookielessProxyUrl(String url) argument 198 isFileUrl(String url) argument 207 isAboutUrl(String url) argument 214 isDataUrl(String url) argument 221 isJavaScriptUrl(String url) argument 228 isHttpUrl(String url) argument 237 isHttpsUrl(String url) argument 246 isNetworkUrl(String url) argument 256 isContentUrl(String url) argument 263 isValidUrl(String url) argument 281 stripAnchor(String url) argument 299 guessFileName( String url, String contentDisposition, String mimeType) argument [all...] |
H A D | WebTextView.java | 43 URL url = null; 45 url = new URL(urlString); 47 Log.e(LOGTAG, "Unable to parse URL "+url); 50 return url != null ? url.getProtocol() + "://" + url.getHost() + url.getPath() : null;
|
H A D | MimeTypeMap.java | 39 * 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 D | BrowserDownloadListener.java | 28 * @param url The full url to the content that should be downloaded 33 * @param referer The referer associated with this url 36 public abstract void onDownloadStart(String url, String userAgent, argument 43 * @param url The full url to the content that should be downloaded 51 public void onDownloadStart(String url, String userAgent, argument 54 onDownloadStart(url, userAgent, contentDisposition, mimetype, null,
|
H A D | DownloadListener.java | 23 * @param url The full url to the content that should be downloaded 30 public void onDownloadStart(String url, String userAgent, argument
|
H A D | WebIconDatabase.java | 37 * @param url The url passed in the request. 38 * @param icon The favicon for the given url. 40 public void onReceivedIcon(String url, Bitmap icon); argument 67 * url. If the icon exists, the listener will be called with the result. 68 * @param url The page's url. 71 public 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 94 releaseIconForPageUrl(String url) argument [all...] |
H A D | UrlInterceptHandler.java | 36 * @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 D | JniUtil.java | 109 private static synchronized long contentUrlSize(String url) { argument 111 if (url.startsWith(ANDROID_CONTENT)) { 116 int mimeIndex = url.lastIndexOf('?'); 118 url = url.substring(0, mimeIndex); 120 Uri uri = Uri.parse(url); 134 Log.e(LOGTAG, "Exception: " + url); 148 private static synchronized InputStream contentUrlStream(String url) { argument 150 if (url.startsWith(ANDROID_CONTENT)) { 157 int mimeIndex = url [all...] |
H A D | CookieManagerClassic.java | 53 public void setCookie(String url, String value) { argument 54 setCookie(url, value, false); 59 * @param url The URL for which the cookie is set 64 void setCookie(String url, String value, boolean privateBrowsing) { argument 67 uri = new WebAddress(url); 69 Log.e(LOGTAG, "Bad address: " + url); 77 public String getCookie(String url) { argument 78 return getCookie(url, false); 82 public String getCookie(String url, boolean privateBrowsing) { argument 85 uri = new WebAddress(url); 174 nativeGetCookie(String url, boolean privateBrowsing) argument 180 nativeSetCookie(String url, String value, boolean privateBrowsing) argument [all...] |
H A D | WebIconDatabaseClassic.java | 60 IconResult(String url, Bitmap icon, IconListener l) { argument 61 mUrl = url; 103 String url = msg.getData().getString("url"); 104 requestIconAndSendResult(url, l); 155 String url = c.getString(0); 156 requestIconAndSendResult(url, listener); 166 private void requestIconAndSendResult(String url, IconListener listener) { argument 167 Bitmap icon = nativeIconForPageUrl(url); 170 new IconResult(url, ico 206 requestIconForPageUrl(String url, IconListener listener) argument 240 retainIconForPageUrl(String url) argument 248 releaseIconForPageUrl(String url) argument 286 nativeIconForPageUrl(String url) argument 287 nativeRetainIconForPageUrl(String url) argument 288 nativeReleaseIconForPageUrl(String url) argument [all...] |
H A D | CookieManager.java | 76 * @param url the URL for which the cookie is set 80 public void setCookie(String url, String value) { argument 87 * @param url the URL for which the cookies are requested 91 public String getCookie(String url) { argument 98 * @param url the URL for which the cookies are requested 104 public String getCookie(String url, boolean privateBrowsing) { argument
|
H A D | WebViewClient.java | 29 * url is about to be loaded in the current WebView. If WebViewClient is not 31 * proper handler for the url. If WebViewClient is provided, return true 32 * means the host application handles the url, while return false means the 33 * current WebView handles the url. 36 * @param url The url to be loaded. 38 * and handle the url itself, otherwise return false. 40 public boolean shouldOverrideUrlLoading(WebView view, String url) { argument 52 * @param url The url t 56 onPageStarted(WebView view, String url, Bitmap favicon) argument 68 onPageFinished(WebView view, String url) argument 78 onLoadResource(WebView view, String url) argument 96 shouldInterceptRequest(WebView view, String url) argument 185 doUpdateVisitedHistory(WebView view, String url, boolean isReload) argument [all...] |
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/ |
H A D | TestShellCallback.java | 22 public void timedOut(String url); argument
|
/frameworks/base/core/tests/coretests/src/android/webkit/ |
H A D | UrlInterceptRegistryTest.java | 42 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/core/java/android/net/http/ |
H A D | SslError.java | 111 * @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 D | SuggestionProvider.java | 63 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 D | IContentProvider.java | 37 public Cursor query(Uri url, String[] projection, String selection, argument 40 public String getType(Uri url) throws RemoteException; argument 41 public Uri insert(Uri url, ContentValues initialValues) argument 43 public int bulkInsert(Uri url, ContentValues[] initialValues) throws RemoteException; argument 44 public int delete(Uri url, String selection, String[] selectionArgs) argument 46 public int update(Uri url, ContentValues values, String selection, argument 48 public ParcelFileDescriptor openFile(Uri url, String mode) argument 50 public AssetFileDescriptor openAssetFile(Uri url, String mode) argument 58 public String[] getStreamTypes(Uri url, String mimeTypeFilter) throws RemoteException; argument 59 public AssetFileDescriptor openTypedAssetFile(Uri url, Strin argument [all...] |
H A D | ContentProviderClient.java | 62 public Cursor query(Uri url, String[] projection, String selection, argument 65 return query(url, projection, selection, selectionArgs, sortOrder, null); 75 public Cursor query(Uri url, String[] projection, String selection, argument 84 return mContentProvider.query(url, projection, selection, selectionArgs, sortOrder, 95 public String getType(Uri url) throws RemoteException { argument 97 return mContentProvider.getType(url); 107 public String[] getStreamTypes(Uri url, String mimeTypeFilter) throws RemoteException { argument 109 return mContentProvider.getStreamTypes(url, mimeTypeFilter); 119 public Uri insert(Uri url, ContentValues initialValues) argument 122 return mContentProvider.insert(url, initialValue 132 bulkInsert(Uri url, ContentValues[] initialValues) argument 144 delete(Uri url, String selection, String[] selectionArgs) argument 157 update(Uri url, ContentValues values, String selection, String[] selectionArgs) argument 176 openFile(Uri url, String mode) argument 195 openAssetFile(Uri url, String mode) argument [all...] |
/frameworks/base/test-runner/src/android/test/mock/ |
H A D | MockIContentProvider.java | 44 public int bulkInsert(Uri url, ContentValues[] initialValues) { argument 49 public int delete(Uri url, String selection, String[] selectionArgs) argument 54 public String getType(Uri url) { argument 59 public Uri insert(Uri url, ContentValues initialValues) throws RemoteException { argument 63 public ParcelFileDescriptor openFile(Uri url, String mode) { argument 75 public Cursor query(Uri url, String[] projection, String selection, String[] selectionArgs, argument 80 public EntityIterator queryEntities(Uri url, String selection, String[] selectionArgs, argument 85 public int update(Uri url, ContentValues values, String selection, String[] selectionArgs) argument 99 public String[] getStreamTypes(Uri url, String mimeTypeFilter) throws RemoteException { argument 103 public AssetFileDescriptor openTypedAssetFile(Uri url, Strin argument [all...] |
H A D | MockContentProvider.java | 62 public int bulkInsert(Uri url, ContentValues[] initialValues) throws RemoteException { argument 63 return MockContentProvider.this.bulkInsert(url, initialValues); 67 public int delete(Uri url, String selection, String[] selectionArgs) argument 69 return MockContentProvider.this.delete(url, selection, selectionArgs); 73 public String getType(Uri url) throws RemoteException { argument 74 return MockContentProvider.this.getType(url); 78 public Uri insert(Uri url, ContentValues initialValues) throws RemoteException { argument 79 return MockContentProvider.this.insert(url, initialValues); 83 public AssetFileDescriptor openAssetFile(Uri url, String mode) throws RemoteException, argument 85 return MockContentProvider.this.openAssetFile(url, mod 89 openFile(Uri url, String mode) argument 95 query(Uri url, String[] projection, String selection, String[] selectionArgs, String sortOrder, ICancellationSignal cancellationSignal) argument 102 update(Uri url, ContentValues values, String selection, String[] selectionArgs) argument 119 getStreamTypes(Uri url, String mimeTypeFilter) argument 124 openTypedAssetFile(Uri url, String mimeType, Bundle opts) argument 228 getStreamTypes(Uri url, String mimeTypeFilter) argument 232 openTypedAssetFile(Uri url, String mimeType, Bundle opts) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
H A D | LocalProvider.java | 84 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 D | MemoryFileProvider.java | 113 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/base/tests/BiDiTests/src/com/android/bidi/ |
H A D | BiDiTestBasic.java | 66 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 D | TestPlayerStub.cpp | 37 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 char *url, const KeyedVector<String8, String8> *headers) argument 191 canBeUsed(const char *url) argument [all...] |
/frameworks/base/core/java/android/text/util/ |
H A D | Linkify.java | 44 * Alone with the pattern that is to be matched, a url scheme prefix is also 46 * will have the scheme prepended to the matched text when the clickable url 49 * does not have a url scheme prefix, the supplied scheme will be prepended to 50 * create <code>http://example.com</code> when the clickable url link is 137 public final String transformUrl(final Matcher match, String url) { 149 * support@example.com. So, when matching against a web url pattern you 184 * @param url The text that was matched 188 String transformUrl(final Matcher match, String url); argument 240 applyLink(link.url, link.start, link.end, text); 299 * prepended to the url o 388 applyLink(String url, int start, int end, Spannable text) argument 394 makeUrl(String url, String[] prefixes, Matcher m, TransformFilter filter) argument 540 String url; field in class:LinkSpec [all...] |