Home
last modified time | relevance | path

Searched refs:url (Results 1 – 25 of 159) sorted by relevance

1234567

/frameworks/base/core/java/android/webkit/
DURLUtil.java113 public static byte[] decode(byte[] url) throws IllegalArgumentException { in decode() argument
114 if (url.length == 0) { in decode()
119 byte[] tempData = new byte[url.length]; in decode()
122 for (int i = 0; i < url.length; i++) { in decode()
123 byte b = url[i]; in decode()
125 if (url.length - i > 2) { in decode()
126 b = (byte) (parseHex(url[i + 1]) * 16 in decode()
127 + parseHex(url[i + 2])); in decode()
144 static boolean verifyURLEncoding(String url) { in verifyURLEncoding() argument
145 int count = url.length(); in verifyURLEncoding()
[all …]
DMimeTypeMap.java46 public static String getFileExtensionFromUrl(String url) { in getFileExtensionFromUrl() argument
47 if (!TextUtils.isEmpty(url)) { in getFileExtensionFromUrl()
48 int fragment = url.lastIndexOf('#'); in getFileExtensionFromUrl()
50 url = url.substring(0, fragment); in getFileExtensionFromUrl()
53 int query = url.lastIndexOf('?'); in getFileExtensionFromUrl()
55 url = url.substring(0, query); in getFileExtensionFromUrl()
58 int filenamePos = url.lastIndexOf('/'); in getFileExtensionFromUrl()
60 0 <= filenamePos ? url.substring(filenamePos + 1) : url; in getFileExtensionFromUrl()
131 /* package */ String remapGenericMimeType(@Nullable String mimeType, String url, in remapGenericMimeType() argument
145 url = filename; in remapGenericMimeType()
[all …]
/frameworks/base/core/tests/coretests/src/android/util/
DPatternsTest.java101 String url = "http://www.android.com"; in testWebUrl_matchesValidUrlWithSchemeAndHostname() local
103 Patterns.WEB_URL.matcher(url).matches()); in testWebUrl_matchesValidUrlWithSchemeAndHostname()
108 String url = "http://www.android.me"; in testWebUrl_matchesValidUrlWithSchemeHostnameAndNewTld() local
110 Patterns.WEB_URL.matcher(url).matches()); in testWebUrl_matchesValidUrlWithSchemeHostnameAndNewTld()
115 String url = "android.me"; in testWebUrl_matchesValidUrlWithHostnameAndNewTld() local
117 Patterns.WEB_URL.matcher(url).matches()); in testWebUrl_matchesValidUrlWithHostnameAndNewTld()
122 String url = "http://xn--fsqu00a.xn--0zwm56d"; in testWebUrl_matchesChinesePunycodeUrlWithProtocol() local
124 Patterns.WEB_URL.matcher(url).matches()); in testWebUrl_matchesChinesePunycodeUrlWithProtocol()
129 String url = "xn--fsqu00a.xn--0zwm56d"; in testWebUrl_matchesChinesePunycodeUrlWithoutProtocol() local
131 Patterns.WEB_URL.matcher(url).matches()); in testWebUrl_matchesChinesePunycodeUrlWithoutProtocol()
[all …]
/frameworks/base/test-mock/src/android/test/mock/
DMockContentProvider.java65 public int bulkInsert(String callingPackage, Uri url, ContentValues[] initialValues) in bulkInsert() argument
67 return MockContentProvider.this.bulkInsert(url, initialValues); in bulkInsert()
71 public int delete(String callingPackage, Uri url, String selection, String[] selectionArgs) in delete() argument
73 return MockContentProvider.this.delete(url, selection, selectionArgs); in delete()
77 public String getType(Uri url) throws RemoteException { in getType() argument
78 return MockContentProvider.this.getType(url); in getType()
82 public Uri insert(String callingPackage, Uri url, ContentValues initialValues) in insert() argument
84 return MockContentProvider.this.insert(url, initialValues); in insert()
89 String callingPackage, Uri url, String mode, ICancellationSignal signal) in openAssetFile() argument
91 return MockContentProvider.this.openAssetFile(url, mode); in openAssetFile()
[all …]
DMockIContentProvider.java46 public int bulkInsert(String callingPackage, Uri url, ContentValues[] initialValues) { in bulkInsert() argument
52 public int delete(String callingPackage, Uri url, String selection, String[] selectionArgs) in delete() argument
58 public String getType(Uri url) { in getType() argument
64 public Uri insert(String callingPackage, Uri url, ContentValues initialValues) in insert() argument
71 String callingPackage, Uri url, String mode, ICancellationSignal signal, in openFile() argument
89 public Cursor query(String callingPackage, Uri url, @Nullable String[] projection, in query() argument
94 public EntityIterator queryEntities(Uri url, String selection, String[] selectionArgs, in queryEntities() argument
100 public int update(String callingPackage, Uri url, ContentValues values, String selection, in update() argument
117 public String[] getStreamTypes(Uri url, String mimeTypeFilter) throws RemoteException { in getStreamTypes() argument
122 public AssetFileDescriptor openTypedAssetFile(String callingPackage, Uri url, String mimeType, in openTypedAssetFile() argument
[all …]
/frameworks/base/core/java/android/content/
DContentProviderClient.java164 public @Nullable Cursor query(@NonNull Uri url, @Nullable String[] projection, in query() argument
167 return query(url, projection, selection, selectionArgs, sortOrder, null); in query()
213 public @Nullable String getType(@NonNull Uri url) throws RemoteException { in getType() argument
214 Preconditions.checkNotNull(url, "url"); in getType()
218 return mContentProvider.getType(url); in getType()
231 public @Nullable String[] getStreamTypes(@NonNull Uri url, @NonNull String mimeTypeFilter) in getStreamTypes() argument
233 Preconditions.checkNotNull(url, "url"); in getStreamTypes()
238 return mContentProvider.getStreamTypes(url, mimeTypeFilter); in getStreamTypes()
251 public final @Nullable Uri canonicalize(@NonNull Uri url) throws RemoteException { in canonicalize() argument
252 Preconditions.checkNotNull(url, "url"); in canonicalize()
[all …]
DContentProviderNative.java86 Uri url = Uri.CREATOR.createFromParcel(data); in onTransact() local
104 … Cursor cursor = query(callingPkg, url, projection, queryArgs, cancellationSignal); in onTransact()
139 Uri url = Uri.CREATOR.createFromParcel(data); in onTransact() local
140 String type = getType(url); in onTransact()
151 Uri url = Uri.CREATOR.createFromParcel(data); in onTransact() local
154 Uri out = insert(callingPkg, url, values); in onTransact()
164 Uri url = Uri.CREATOR.createFromParcel(data); in onTransact() local
167 int count = bulkInsert(callingPkg, url, values); in onTransact()
195 Uri url = Uri.CREATOR.createFromParcel(data); in onTransact() local
199 int count = delete(callingPkg, url, selection, selectionArgs); in onTransact()
[all …]
DIContentProvider.java40 public Cursor query(String callingPkg, Uri url, @Nullable String[] projection, in query() argument
43 public String getType(Uri url) throws RemoteException; in getType() argument
45 public Uri insert(String callingPkg, Uri url, ContentValues initialValues) in insert() argument
48 public int bulkInsert(String callingPkg, Uri url, ContentValues[] initialValues) in bulkInsert() argument
51 public int delete(String callingPkg, Uri url, String selection, String[] selectionArgs) in delete() argument
54 public int update(String callingPkg, Uri url, ContentValues values, String selection, in update() argument
57 String callingPkg, Uri url, String mode, ICancellationSignal signal, in openFile() argument
61 String callingPkg, Uri url, String mode, ICancellationSignal signal) in openAssetFile() argument
90 public boolean refresh(String callingPkg, Uri url, @Nullable Bundle args, in refresh() argument
94 public String[] getStreamTypes(Uri url, String mimeTypeFilter) throws RemoteException; in getStreamTypes() argument
[all …]
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
DWebAsset.java46 private WebAsset(URL url) { in WebAsset() argument
47 int port = url.getPort() != -1 ? url.getPort() : url.getDefaultPort(); in WebAsset()
49 mUrl = new URL(url.getProtocol().toLowerCase(), url.getHost().toLowerCase(), port, ""); in WebAsset()
127 URL url; in create() local
129 url = new URL(asset.optString(Utils.WEB_ASSET_FIELD_SITE)); in create()
134 String scheme = url.getProtocol().toLowerCase(Locale.US); in create()
139 if (url.getUserInfo() != null) { in create()
143 String path = url.getFile(); // This is url.getPath() + url.getQuery(). in create()
149 return new WebAsset(url); in create()
/frameworks/base/core/tests/coretests/src/android/content/
DMemoryFileProvider.java113 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/tests/coretests/src/android/app/activity/
DLocalProvider.java108 public Cursor query(Uri url, String[] projectionIn, String selection, in query() argument
113 int match = sURLMatcher.match(url); in query()
121 qb.appendWhere(url.getPathSegments().get(1)); in query()
124 throw new IllegalArgumentException("Unknown URL " + url); in query()
134 ret.setNotificationUri(getContext().getContentResolver(), url); in query() local
141 public String getType(Uri url) { in getType() argument
142 int match = sURLMatcher.match(url); in getType()
154 public int update(Uri url, ContentValues values, String where, String[] whereArgs) { in update() argument
157 int match = sURLMatcher.match(url); in update()
161 String segment = url.getPathSegments().get(1); in update()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/
DSuggestionProvider.java63 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/base/core/java/android/net/http/
DSslError.java119 public SslError(int error, SslCertificate certificate, String url) { in SslError() argument
121 assert url != null; in SslError()
124 mUrl = url; in SslError()
134 public SslError(int error, X509Certificate certificate, String url) { in SslError() argument
135 this(error, new SslCertificate(certificate), url); in SslError()
146 int error, SslCertificate cert, String url) { in SslErrorFromChromiumErrorCode() argument
151 return new SslError(SSL_IDMISMATCH, cert, url); in SslErrorFromChromiumErrorCode()
153 return new SslError(SSL_DATE_INVALID, cert, url); in SslErrorFromChromiumErrorCode()
155 return new SslError(SSL_UNTRUSTED, cert, url); in SslErrorFromChromiumErrorCode()
157 return new SslError(SSL_INVALID, cert, url); in SslErrorFromChromiumErrorCode()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DIccProvider.java94 public Cursor query(Uri url, String[] projection, String selection, in query() argument
98 switch (URL_MATCHER.match(url)) { in query()
104 return loadFromEf(IccConstants.EF_ADN, getRequestSubId(url)); in query()
111 return loadFromEf(IccConstants.EF_FDN, getRequestSubId(url)); in query()
118 return loadFromEf(IccConstants.EF_SDN, getRequestSubId(url)); in query()
124 throw new IllegalArgumentException("Unknown URL " + url); in query()
151 public String getType(Uri url) { in getType() argument
152 switch (URL_MATCHER.match(url)) { in getType()
163 throw new IllegalArgumentException("Unknown URL " + url); in getType()
168 public Uri insert(Uri url, ContentValues initialValues) { in insert() argument
[all …]
/frameworks/av/media/libmediaplayerservice/
DMediaPlayerFactory.cpp104 const char* url) { in getPlayerType() argument
105 GET_PLAYER_TYPE_IMPL(client, url); in getPlayerType()
173 const char* url, in scoreFactory() argument
180 if (!strncasecmp("http://", url, 7) in scoreFactory()
181 || !strncasecmp("https://", url, 8) in scoreFactory()
182 || !strncasecmp("file://", url, 7)) { in scoreFactory()
183 size_t len = strlen(url); in scoreFactory()
184 if (len >= 5 && !strcasecmp(".m3u8", &url[len - 5])) { in scoreFactory()
188 if (strstr(url,"m3u8")) { in scoreFactory()
192 if ((len >= 4 && !strcasecmp(".sdp", &url[len - 4])) || strstr(url, ".sdp?")) { in scoreFactory()
[all …]
DTestPlayerStub.cpp53 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/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/
DMediaStoreSaver.java68 Uri url = null; in insertImage() local
72 url = cr.insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values); in insertImage()
75 OutputStream imageOut = cr.openOutputStream(url); in insertImage()
82 long id = ContentUris.parseId(url); in insertImage()
88 cr.delete(url, null, null); in insertImage()
89 url = null; in insertImage()
92 if (url != null) { in insertImage()
93 cr.delete(url, null, null); in insertImage()
94 url = null; in insertImage()
98 if (url != null) { in insertImage()
[all …]
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
DMediaStoreSaver.java68 Uri url = null; in insertImage() local
72 url = cr.insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values); in insertImage()
75 OutputStream imageOut = cr.openOutputStream(url); in insertImage()
82 long id = ContentUris.parseId(url); in insertImage()
88 cr.delete(url, null, null); in insertImage()
89 url = null; in insertImage()
92 if (url != null) { in insertImage()
93 cr.delete(url, null, null); in insertImage()
94 url = null; in insertImage()
98 if (url != null) { in insertImage()
[all …]
/frameworks/av/media/libstagefright/httplive/
DHTTPDownloader.cpp81 const char *url, sp<ABuffer> *out, in fetchBlock() argument
93 if (!strncasecmp(url, "file://", 7)) { in fetchBlock()
94 mDataSource = new FileSource(url + 7); in fetchBlock()
95 } else if (strncasecmp(url, "http://", 7) in fetchBlock()
96 && strncasecmp(url, "https://", 8)) { in fetchBlock()
112 status_t err = mHTTPDataSource->connect(url, &headers); in fetchBlock()
213 *actualUrl = url; in fetchBlock()
221 const char *url, sp<ABuffer> *out, String8 *actualUrl) { in fetchFile() argument
222 ssize_t err = fetchBlock(url, out, 0, -1, 0, actualUrl, true /* reconnect */); in fetchFile()
231 const char *url, uint8_t *curPlaylistHash, bool *unchanged) { in fetchPlaylist() argument
[all …]
/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/
DVerificationActivity.java86 Uri url = callingIntent.getData(); in startInstallationService() local
88 if (url != null) { in startInstallationService()
89 sVerifiedUrl = url.toString(); in startInstallationService()
94 if (url != null) { in startInstallationService()
95 intent.setData(url); in startInstallationService()
109 static boolean isVerified(String url) { in isVerified() argument
110 if (url == null) return true; in isVerified()
111 return sVerifiedUrl != null && sVerifiedUrl.equals(url); in isVerified()
/frameworks/base/core/java/android/text/util/
DLinkify.java184 public final String transformUrl(final Matcher match, String url) {
235 String transformUrl(final Matcher match, String url); in transformUrl() argument
331 applyLink(link.url, link.start, link.end, text, urlSpanFactory); in addLinks()
593 String url = makeUrl(m.group(0), schemesCopy, m, transformFilter); in addLinks() local
595 applyLink(url, start, end, spannable, urlSpanFactory); in addLinks()
603 private static void applyLink(String url, int start, int end, Spannable text, in applyLink() argument
608 final URLSpan span = urlSpanFactory.apply(url); in applyLink()
612 private static final String makeUrl(@NonNull String url, @NonNull String[] prefixes, in makeUrl() argument
615 url = filter.transformUrl(matcher, url); in makeUrl()
621 if (url.regionMatches(true, 0, prefixes[i], 0, prefixes[i].length())) { in makeUrl()
[all …]
/frameworks/base/core/java/android/net/
DMailTo.java50 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/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/soap/
DHttpsTransport.java36 private HttpsTransport(@NonNull Network network, @NonNull URL url) { in HttpsTransport() argument
37 super(url.toString()); in HttpsTransport()
39 mUrl = url; in HttpsTransport()
49 public static HttpsTransport createInstance(@NonNull Network network, @NonNull URL url) { in createInstance() argument
50 return new HttpsTransport(network, url); in createInstance()
/frameworks/base/sax/tests/saxtests/src/android/sax/
DSafeSaxTest.java246 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/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DCaptivePortalLoginActivity.java147 final String url = mUrl.toString(); in onDestroy() local
148 if (DBG) logd("starting activity with intent ACTION_VIEW for " + url); in onDestroy()
149 startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url))); in onDestroy()
206 String url = getIntent().getStringExtra(TelephonyManager.EXTRA_REDIRECTION_URL); in getUrlForCaptivePortal() local
207 if (TextUtils.isEmpty(url)) url = mCm.getCaptivePortalServerUrl(); in getUrlForCaptivePortal()
216 if (url.startsWith(portalUrl)) { in getUrlForCaptivePortal()
220 url = null; in getUrlForCaptivePortal()
223 return new URL(url); in getUrlForCaptivePortal()
225 loge("Invalid captive portal URL " + url); in getUrlForCaptivePortal()
349 public void onPageStarted(WebView view, String url, Bitmap favicon) { in onPageStarted() argument
[all …]

1234567