Searched defs:url (Results 1 - 25 of 119) sorted by relevance

12345

/frameworks/base/core/java/android/webkit/
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.java38 * @param url URL string.
47 CacheResult service(String url, @Nullable Map<String, String> headers); argument
54 * @param url URL string.
63 PluginData getPluginData(String url, @Nullable Map<String, String> headers); argument
H A DMimeTypeMap.java42 * extension of a url and has undefined results for other Strings.
43 * @param url
44 * @return The file extension of the given url.
46 public static String getFileExtensionFromUrl(String url) { argument
47 if (!TextUtils.isEmpty(url)) {
48 int fragment = url.lastIndexOf('#');
50 url = url.substring(0, fragment);
53 int query = url.lastIndexOf('?');
55 url
131 remapGenericMimeType(@ullable String mimeType, String url, String contentDisposition) argument
[all...]
H A DUrlInterceptRegistry.java49 * set the flag to control whether url intercept is enabled or disabled
63 * get the state of the url intercept, enabled or disabled
115 * Given an url, returns the CacheResult of the first
127 String url, Map<String, String> headers) {
134 CacheResult result = handler.service(url, headers);
143 * Given an url, returns the PluginData of the first
156 String url, Map<String, String> headers) {
163 PluginData data = handler.getPluginData(url, headers);
126 getSurrogate( String url, Map<String, String> headers) argument
155 getPluginData( String url, Map<String, String> headers) 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...]
/frameworks/layoutlib/bridge/tests/src/android/content/res/
H A DResources_DelegateTest.java34 @NonNull ResourceType type, @Nullable ResourceUrl url) {
35 assertNotNull(url);
36 assertEquals(type, url.type);
37 assertEquals(pkg, url.namespace);
38 assertEquals(name, url.name);
33 assertResourceUrl(@ullable String pkg, @NonNull String name, @NonNull ResourceType type, @Nullable ResourceUrl url) argument
/frameworks/support/webkit-codegen/src/test/resources/codegen/
H A DWebKitTypeAsMethodParameter.java24 public void urlCall(String url) { argument
/frameworks/support/webkit-codegen/src/test/resources/codegen-expected/
H A DWebKitTypeAsMethodParameterBoundaryInterface.java10 void urlCall(String url); argument
/frameworks/support/browser/src/androidTest/java/androidx/browser/browseractions/
H A DBrowserActionsIntentTest.java44 private static final String CUSTOM_ITEM_TITLE = "Share url";
102 static PendingIntent createCustomItemAction(String url) { argument
104 Intent customIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
/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());
/frameworks/base/core/java/android/text/style/
H A DURLSpan.java32 * Implementation of the {@link ClickableSpan} that allows setting a url string. When
34 * will try to open the url, by launching an an Activity with an {@link Intent#ACTION_VIEW} intent.
38 * SpannableString string = new SpannableString("Text with a url span");
49 * Constructs a {@link URLSpan} from a url string.
51 * @param url the url string
53 public URLSpan(String url) { argument
54 mURL = url;
92 * Get the url string for this span.
94 * @return the url strin
[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);
H A DPacService.java73 public String resolvePacFile(String host, String url) throws RemoteException { argument
78 if (url == null) {
82 new URL(url);
88 return mPacNative.makeProxyRequest(url, host);
/frameworks/base/services/core/java/com/android/server/location/
H A DGpsXtraDownloader.java114 protected byte[] doDownload(String url) { argument
115 if (DEBUG) Log.d(TAG, "Downloading XTRA data from " + url);
119 connection = (HttpURLConnection) (new URL(url)).openConnection();
/frameworks/support/webkit/src/main/java/androidx/webkit/
H A DWebViewClientCompat.java109 * @param url The URL corresponding to the page navigation that triggered this callback.
112 public void onPageCommitVisible(@NonNull WebView view, @NonNull String url) { argument
263 * url is about to be loaded in the current WebView. If WebViewClient is not
265 * proper handler for the url. If WebViewClient is provided, return {@code true}
266 * means the host application handles the url, while return {@code false} means the
267 * current WebView handles the url.
274 * with the request's url from inside the method and then return {@code true},
275 * as this will make WebView to attempt loading a non-http url, and thus fail.</li>
285 * and handle the url itself, otherwise return {@code false}.
/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...]
H A DMediaPlayerFactory.cpp104 const char* url) {
105 GET_PLAYER_TYPE_IMPL(client, url);
173 const char* url,
180 if (!strncasecmp("http://", url, 7)
181 || !strncasecmp("https://", url, 8)
182 || !strncasecmp("file://", url, 7)) {
183 size_t len = strlen(url);
184 if (len >= 5 && !strcasecmp(".m3u8", &url[len - 5])) {
188 if (strstr(url,"m3u8")) {
192 if ((len >= 4 && !strcasecmp(".sdp", &url[le
103 getPlayerType(const sp<IMediaPlayer>& client, const char* url) argument
172 scoreFactory(const sp<IMediaPlayer>& , const char* url, float curScore) argument
225 scoreFactory(const sp<IMediaPlayer>& , const char* url, float ) argument
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DSDPLoader.cpp51 void SDPLoader::load(const char *url, const KeyedVector<String8, String8> *headers) { argument
55 msg->setString("url", url);
87 AString url; local
88 CHECK(msg->findString("url", &url));
93 ALOGV("onLoad %s", uriDebugString(url, mFlags & kFlagIncognito).c_str());
96 err = mHTTPDataSource->connect(url.c_str(), headers);
/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 DURLFetcher.java50 * Fetches the specified url and returns the content and ttl.
60 public WebContent getWebContentFromUrlWithRetry(URL url, long fileSizeLimit, argument
68 return getWebContentFromUrl(url, fileSizeLimit, connectionTimeoutMillis);
84 * Fetches the specified url and returns the content and ttl.
90 public WebContent getWebContentFromUrl(URL url, long fileSizeLimit, int connectionTimeoutMillis) argument
92 final String scheme = url.getProtocol().toLowerCase(Locale.US);
94 throw new IllegalArgumentException("The url protocol should be on http or https.");
99 connection = (HttpURLConnection) url.openConnection();
113 Log.e(TAG, "The content size of the url is larger than " + fileSizeLimit);
146 throw new AssociationServiceException("The content size of the url i
[all...]
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/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
H A DWnmData.java33 public WnmData(long bssid, String url, int method) { argument
35 mUrl = url;
42 public WnmData(long bssid, String url, boolean ess, int delay) { argument
44 mUrl = url;
/frameworks/support/browser/src/androidTest/java/androidx/browser/customtabs/
H A DTestCustomTabsService.java46 Uri url, Bundle extras, List<Bundle> otherLikelyBundles) {
45 mayLaunchUrl(CustomTabsSessionToken sessionToken, Uri url, Bundle extras, List<Bundle> otherLikelyBundles) argument
/frameworks/av/media/libstagefright/httplive/
H A DHTTPDownloader.cpp71 * | `url` file |<--------- buffer size --------->|<--- `block_size` -->| | |
81 const char *url, sp<ABuffer> *out,
93 if (!strncasecmp(url, "file://", 7)) {
94 mDataSource = new FileSource(url + 7);
95 } else if (strncasecmp(url, "http://", 7)
96 && strncasecmp(url, "https://", 8)) {
112 status_t err = mHTTPDataSource->connect(url, &headers);
207 *actualUrl = url;
215 const char *url, sp<ABuffer> *out, String8 *actualUrl) {
216 ssize_t err = fetchBlock(url, ou
80 fetchBlock( const char *url, sp<ABuffer> *out, int64_t range_offset, int64_t range_length, uint32_t block_size, String8 *actualUrl, bool reconnect ) argument
214 fetchFile( const char *url, sp<ABuffer> *out, String8 *actualUrl) argument
224 fetchPlaylist( const char *url, uint8_t *curPlaylistHash, bool *unchanged) argument
[all...]

Completed in 234 milliseconds

12345