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

1234567

/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/data-binding/samples/BindingDemo/
H A Dbuild.gradle27 url "$projectDir/../../maven-repo"
41 url "$projectDir/../../../maven-repo"
/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/data-binding/developmentPlugins/bintrayPlugin/
H A Dbuild.gradle31 repository(url: "file://${config.extraPluginsRepoDir}")
/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.java115 public @Nullable Cursor query(@NonNull Uri url, @Nullable String[] projection, argument
118 return query(url, projection, selection, selectionArgs, sortOrder, null);
122 public @Nullable Cursor query(@NonNull Uri url, @Nullable String[] projection, argument
126 Preconditions.checkNotNull(url, "url");
136 return mContentProvider.query(mPackageName, url, projection, selection, selectionArgs,
149 public @Nullable String getType(@NonNull Uri url) throws RemoteException { argument
150 Preconditions.checkNotNull(url, "url");
154 return mContentProvider.getType(url);
166 getStreamTypes(@onNull Uri url, @NonNull String mimeTypeFilter) argument
185 canonicalize(@onNull Uri url) argument
202 uncanonicalize(@onNull Uri url) argument
219 insert(@onNull Uri url, @Nullable ContentValues initialValues) argument
237 bulkInsert(@onNull Uri url, @NonNull ContentValues[] initialValues) argument
256 delete(@onNull Uri url, @Nullable String selection, @Nullable String[] selectionArgs) argument
274 update(@onNull Uri url, @Nullable ContentValues values, @Nullable String selection, @Nullable String[] selectionArgs) argument
298 openFile(@onNull Uri url, @NonNull String mode) argument
310 openFile(@onNull Uri url, @NonNull String mode, @Nullable CancellationSignal signal) argument
341 openAssetFile(@onNull Uri url, @NonNull String mode) argument
353 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/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...]
H A DMediaPlayerFactory.cpp112 const char* url) {
113 GET_PLAYER_TYPE_IMPL(client, url);
213 const char* url,
215 if (legacyDrm() && !strncasecmp("widevine://", url, 11)) {
239 const char* url,
246 if (!strncasecmp("http://", url, 7)
247 || !strncasecmp("https://", url, 8)
248 || !strncasecmp("file://", url, 7)) {
249 size_t len = strlen(url);
250 if (len >= 5 && !strcasecmp(".m3u8", &url[le
111 getPlayerType(const sp<IMediaPlayer>& client, const char* url) argument
212 scoreFactory(const sp<IMediaPlayer>& , const char* url, float ) argument
238 scoreFactory(const sp<IMediaPlayer>& , const char* url, float curScore) argument
291 scoreFactory(const sp<IMediaPlayer>& , const char* url, float ) argument
[all...]
/frameworks/data-binding/developmentPlugins/localizeMavenPlugin/
H A Dbuild.gradle39 repository(url: "file://${config.extraPluginsRepoDir}")
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DIccProvider.java89 public Cursor query(Uri url, String[] projection, String selection, argument
93 switch (URL_MATCHER.match(url)) {
98 return loadFromEf(IccConstants.EF_ADN, getRequestSubId(url));
104 return loadFromEf(IccConstants.EF_FDN, getRequestSubId(url));
110 return loadFromEf(IccConstants.EF_SDN, getRequestSubId(url));
116 throw new IllegalArgumentException("Unknown URL " + url);
142 public String getType(Uri url) { argument
143 switch (URL_MATCHER.match(url)) {
154 throw new IllegalArgumentException("Unknown URL " + url);
159 public Uri insert(Uri url, ContentValue argument
256 delete(Uri url, String where, String[] whereArgs) argument
337 update(Uri url, ContentValues values, String where, String[] whereArgs) argument
538 getRequestSubId(Uri url) argument
[all...]

Completed in 408 milliseconds

1234567