/frameworks/base/core/java/android/webkit/ |
D | URLUtil.java | 111 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 …]
|
D | MimeTypeMap.java | 43 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 …]
|
D | WebIconDatabase.java | 49 public void onReceivedIcon(String url, Bitmap icon); in onReceivedIcon() argument 74 public abstract void requestIconForPageUrl(String url, IconListener listener); in requestIconForPageUrl() argument 86 public abstract void retainIconForPageUrl(String url); in retainIconForPageUrl() argument 92 public abstract void releaseIconForPageUrl(String url); in releaseIconForPageUrl() argument
|
D | WebViewClient.java | 44 public boolean shouldOverrideUrlLoading(WebView view, String url) { in shouldOverrideUrlLoading() argument 60 public void onPageStarted(WebView view, String url, Bitmap favicon) { in onPageStarted() argument 72 public void onPageFinished(WebView view, String url) { in onPageFinished() argument 82 public void onLoadResource(WebView view, String url) { in onLoadResource() argument 104 String url) { in shouldInterceptRequest() argument 212 public void doUpdateVisitedHistory(WebView view, String url, in doUpdateVisitedHistory() argument
|
/frameworks/base/core/java/android/content/ |
D | ContentProviderClient.java | 112 public Cursor query(Uri url, String[] projection, String selection, in query() argument 114 return query(url, projection, selection, selectionArgs, sortOrder, null); in query() 118 public Cursor query(Uri url, String[] projection, String selection, String[] selectionArgs, in query() argument 128 return mContentProvider.query(mPackageName, url, projection, selection, selectionArgs, in query() 141 public String getType(Uri url) throws RemoteException { in getType() argument 144 return mContentProvider.getType(url); in getType() 156 public String[] getStreamTypes(Uri url, String mimeTypeFilter) throws RemoteException { in getStreamTypes() argument 159 return mContentProvider.getStreamTypes(url, mimeTypeFilter); in getStreamTypes() 171 public final Uri canonicalize(Uri url) throws RemoteException { in canonicalize() argument 174 return mContentProvider.canonicalize(mPackageName, url); in canonicalize() [all …]
|
D | ContentProviderNative.java | 83 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 …]
|
D | IContentProvider.java | 37 public Cursor query(String callingPkg, Uri url, String[] projection, String selection, in query() argument 40 public String getType(Uri url) throws RemoteException; in getType() argument 41 public Uri insert(String callingPkg, Uri url, ContentValues initialValues) in insert() argument 43 public int bulkInsert(String callingPkg, Uri url, ContentValues[] initialValues) in bulkInsert() argument 45 public int delete(String callingPkg, Uri url, String selection, String[] selectionArgs) in delete() argument 47 public int update(String callingPkg, Uri url, ContentValues values, String selection, in update() argument 50 String callingPkg, Uri url, String mode, ICancellationSignal signal, in openFile() argument 54 String callingPkg, Uri url, String mode, ICancellationSignal signal) in openAssetFile() argument 67 public String[] getStreamTypes(Uri url, String mimeTypeFilter) throws RemoteException; in getStreamTypes() argument 68 public AssetFileDescriptor openTypedAssetFile(String callingPkg, Uri url, String mimeType, in openTypedAssetFile() argument
|
/frameworks/base/test-runner/src/android/test/mock/ |
D | MockContentProvider.java | 63 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 …]
|
D | MockIContentProvider.java | 44 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/webview/chromium/java/com/android/webview/chromium/ |
D | CookieManagerAdapter.java | 59 public void setCookie(String url, String value) { in setCookie() argument 61 mChromeCookieManager.setCookie(fixupUrl(url), value); in setCookie() 63 Log.e(LOGTAG, "Not setting cookie due to error parsing URL: " + url, e); in setCookie() 68 public void setCookie(String url, String value, ValueCallback<Boolean> callback) { in setCookie() argument 70 mChromeCookieManager.setCookie(fixupUrl(url), value, callback); in setCookie() 72 Log.e(LOGTAG, "Not setting cookie due to error parsing URL: " + url, e); in setCookie() 77 public String getCookie(String url) { in getCookie() argument 79 return mChromeCookieManager.getCookie(fixupUrl(url)); in getCookie() 81 Log.e(LOGTAG, "Unable to get cookies due to error parsing URL: " + url, e); in getCookie() 87 public String getCookie(String url, boolean privateBrowsing) { in getCookie() argument [all …]
|
D | WebViewContentsClientAdapter.java | 180 public boolean shouldOverrideUrlLoading(WebView view, String url) { in shouldOverrideUrlLoading() argument 184 intent = Intent.parseUri(url, Intent.URI_INTENT_SCHEME); in shouldOverrideUrlLoading() 186 Log.w(TAG, "Bad URI " + url + ": " + ex.getMessage()); in shouldOverrideUrlLoading() 205 Log.w(TAG, "No application can handle " + url); in shouldOverrideUrlLoading() 257 public void doUpdateVisitedHistory(String url, boolean isReload) { in doUpdateVisitedHistory() argument 259 if (TRACE) Log.d(TAG, "doUpdateVisitedHistory=" + url + " reload=" + isReload); in doUpdateVisitedHistory() 260 mWebViewClient.doUpdateVisitedHistory(mWebView, url, isReload); in doUpdateVisitedHistory() 286 return Uri.parse(mParams.url); in getUrl() 316 if (TRACE) Log.d(TAG, "shouldInterceptRequest=" + params.url); in shouldInterceptRequest() 340 public boolean shouldOverrideUrlLoading(String url) { in shouldOverrideUrlLoading() argument [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | LocalProvider.java | 84 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/core/tests/coretests/src/android/content/ |
D | MemoryFileProvider.java | 113 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/ |
D | SslError.java | 113 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/ |
D | MediaPlayerFactory.cpp | 118 const char* url) { in getPlayerType() argument 119 GET_PLAYER_TYPE_IMPL(client, url); in getPlayerType() 213 const char* url, in scoreFactory() argument 215 if (legacyDrm() && !strncasecmp("widevine://", url, 11)) { in scoreFactory() 239 const char* url, in scoreFactory() argument 246 if (!strncasecmp("http://", url, 7) in scoreFactory() 247 || !strncasecmp("https://", url, 8) in scoreFactory() 248 || !strncasecmp("file://", url, 7)) { in scoreFactory() 249 size_t len = strlen(url); in scoreFactory() 250 if (len >= 5 && !strcasecmp(".m3u8", &url[len - 5])) { in scoreFactory() [all …]
|
D | TestPlayerStub.cpp | 53 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/ |
D | SuggestionProvider.java | 63 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/ |
D | IccProvider.java | 89 public Cursor query(Uri url, String[] projection, String selection, in query() argument 93 switch (URL_MATCHER.match(url)) { in query() 98 return loadFromEf(IccConstants.EF_ADN, getRequestSubId(url)); in query() 104 return loadFromEf(IccConstants.EF_FDN, getRequestSubId(url)); in query() 110 return loadFromEf(IccConstants.EF_SDN, getRequestSubId(url)); in query() 116 throw new IllegalArgumentException("Unknown URL " + url); in query() 142 public String getType(Uri url) { in getType() argument 143 switch (URL_MATCHER.match(url)) { in getType() 154 throw new IllegalArgumentException("Unknown URL " + url); in getType() 159 public Uri insert(Uri url, ContentValues initialValues) { in insert() argument [all …]
|
/frameworks/base/core/java/android/text/util/ |
D | Linkify.java | 143 public final String transformUrl(final Matcher match, String url) { 194 String transformUrl(final Matcher match, String url); in transformUrl() argument 244 applyLink(link.url, link.start, link.end, text); in addLinks() 381 String url = makeUrl(m.group(0), new String[] { prefix }, in addLinks() local 384 applyLink(url, start, end, s); in addLinks() 392 private static final void applyLink(String url, int start, int end, Spannable text) { in applyLink() argument 393 URLSpan span = new URLSpan(url); in applyLink() 398 private static final String makeUrl(String url, String[] prefixes, in makeUrl() argument 401 url = filter.transformUrl(m, url); in makeUrl() 407 if (url.regionMatches(true, 0, prefixes[i], 0, in makeUrl() [all …]
|
/frameworks/base/core/java/android/net/ |
D | MailTo.java | 50 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/media/java/android/media/ |
D | MediaHTTPConnection.java | 143 private static final boolean isLocalHost(URL url) { in isLocalHost() argument 144 if (url == null) { in isLocalHost() 148 String host = url.getHost(); in isLocalHost() 173 URL url = mURL; in seekTo() local 176 boolean noProxy = isLocalHost(url); in seekTo() 180 mConnection = (HttpURLConnection)url.openConnection(Proxy.NO_PROXY); in seekTo() 182 mConnection = (HttpURLConnection)url.openConnection(); in seekTo() 226 url = new URL(mURL /* TRICKY: don't use url! */, location); in seekTo() 227 if (!url.getProtocol().equals("https") && in seekTo() 228 !url.getProtocol().equals("http")) { in seekTo() [all …]
|
/frameworks/base/sax/tests/saxtests/src/android/sax/ |
D | SafeSaxTest.java | 246 String url = attributes.getValue("", "url"); in newContentHandler() 247 if (video.thumbnailUrl == null && url.length() > 0) { in newContentHandler() 248 video.thumbnailUrl = url; in newContentHandler() 256 String url = attributes.getValue("", "url"); in newContentHandler() 257 if (url != null) { in newContentHandler() 258 video.videoUrl = url; in newContentHandler() 266 String url = attributes.getValue("", "url"); in newContentHandler() 267 if (url != null) { in newContentHandler() 268 video.playbackUrl = url; in newContentHandler() 390 String url = attributes.getValue("", "url"); in startElement() local [all …]
|
/frameworks/base/tests/BiDiTests/src/com/android/bidi/ |
D | BiDiTestBasic.java | 66 Editable url = urlEdit.getText(); in useSpans() local 67 if (url.length() < 1) { in useSpans() 71 String urlString = url.toString(); in useSpans() 84 url.setSpan(new ForegroundColorSpan(0xfff00fff), in useSpans() 90 url.setSpan(new ForegroundColorSpan(0xff548aff), in useSpans() 96 url.setSpan(new ForegroundColorSpan(0xfff00fff), in useSpans()
|
/frameworks/volley/src/com/android/volley/toolbox/ |
D | HurlStack.java | 90 String url = request.getUrl(); in performRequest() local 95 String rewritten = mUrlRewriter.rewriteUrl(url); in performRequest() 97 throw new IOException("URL blocked by rewriter: " + url); in performRequest() 99 url = rewritten; in performRequest() 101 URL parsedUrl = new URL(url); in performRequest() 151 protected HttpURLConnection createConnection(URL url) throws IOException { in createConnection() argument 152 return (HttpURLConnection) url.openConnection(); in createConnection() 161 private HttpURLConnection openConnection(URL url, Request<?> request) throws IOException { in openConnection() argument 162 HttpURLConnection connection = createConnection(url); in openConnection() 171 if ("https".equals(url.getProtocol()) && mSslSocketFactory != null) { in openConnection()
|
/frameworks/av/media/libstagefright/rtsp/ |
D | SDPLoader.cpp | 51 void SDPLoader::load(const char *url, const KeyedVector<String8, String8> *headers) { in load() argument 55 msg->setString("url", url); in load() 87 AString url; in onLoad() local 88 CHECK(msg->findString("url", &url)); in onLoad() 93 ALOGV("onLoad %s", uriDebugString(url, mFlags & kFlagIncognito).c_str()); in onLoad() 96 err = mHTTPDataSource->connect(url.c_str(), headers); in onLoad()
|