Searched defs:url (Results 51 - 75 of 110) sorted by path

12345

/frameworks/base/core/tests/coretests/src/android/app/activity/
H A DLocalProvider.java108 public Cursor query(Uri url, String[] projectionIn, String selection, argument
113 int match = sURLMatcher.match(url);
121 qb.appendWhere(url.getPathSegments().get(1));
124 throw new IllegalArgumentException("Unknown URL " + url);
134 ret.setNotificationUri(getContext().getContentResolver(), url);
141 public String getType(Uri url) { argument
142 int match = sURLMatcher.match(url);
154 public int update(Uri url, ContentValues values, String where, String[] whereArgs) { argument
157 int match = sURLMatcher.match(url);
161 String segment = url
178 insert(Uri url, ContentValues initialValues) argument
183 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/base/media/java/android/media/
H A DMediaHTTPConnection.java154 private static final boolean isLocalHost(URL url) { argument
155 if (url == null) {
159 String host = url.getHost();
184 URL url = mURL;
187 boolean noProxy = isLocalHost(url);
191 mConnection = (HttpURLConnection)url.openConnection(Proxy.NO_PROXY);
193 mConnection = (HttpURLConnection)url.openConnection();
238 url = new URL(mURL /* TRICKY: don't use url! */, location);
239 if (!url
[all...]
H A DTimedText.java342 * @param url the linked-to URL.
345 public HyperText(int startChar, int endChar, String url, String alt) { argument
348 this.URL = url;
656 byte[] url = parcel.createByteArray();
657 final String urlString = new String(url, 0, len);
/frameworks/base/media/tests/players/
H A Dinvoke_mock_media_player.cpp62 const char *url,
64 ALOGV("setDataSource %s", url);
66 if (strncmp(url, kPing, strlen(kPing)) == 0) {
60 setDataSource( const sp<IMediaHTTPService>& , const char *url, const KeyedVector<String8, String8> *) argument
/frameworks/base/packages/CaptivePortalLogin/src/com/android/captiveportallogin/
H A DCaptivePortalLoginActivity.java86 // getUrl() failed to parse the url provided in the intent: bail out in a way that
246 final String url = mUrl.toString();
248 Log.d(TAG, "starting activity with intent ACTION_VIEW for " + url);
250 startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));
255 String url = getIntent().getStringExtra(ConnectivityManager.EXTRA_CAPTIVE_PORTAL_URL);
256 if (url == null) {
257 url = mCm.getCaptivePortalServerUrl();
259 return makeURL(url);
262 private static URL makeURL(String url) { argument
264 return new URL(url);
331 onPageStarted(WebView view, String url, Bitmap favicon) argument
351 onPageFinished(WebView view, String url) argument
450 shouldOverrideUrlLoading(WebView view, String url) argument
[all...]
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
H A DCaptivePortalLoginActivity.java142 final String url = mUrl.toString();
143 if (DBG) logd("starting activity with intent ACTION_VIEW for " + url);
144 startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));
191 String url = getIntent().getStringExtra(TelephonyIntents.EXTRA_REDIRECTION_URL_KEY);
192 if (url.isEmpty()) {
193 url = mCm.getCaptivePortalServerUrl();
203 if (url.startsWith(portalUrl)) {
207 url = null;
210 return new URL(url);
212 loge("Invalid captive portal URL " + url);
322 onPageStarted(WebView view, String url, Bitmap favicon) argument
344 onPageFinished(WebView view, String url) argument
407 shouldOverrideUrlLoading(WebView view, String url) argument
[all...]
/frameworks/base/packages/Osu/src/com/android/hotspot2/
H A DAppBridge.java15 public static final String DEAUTH_URL = "deauth-url";
49 public void showDeauth(String spName, boolean ess, int delay, String url) { argument
54 intent.putExtra(DEAUTH_URL, url);
/frameworks/base/packages/Osu/src/com/android/hotspot2/app/
H A DMainActivity.java176 private void showDeauth(String spName, boolean ess, int delay, String url) { argument
182 "Please visit %s for details", spName, delayReadable, url));
186 "Please visit %s for details", spName, url));
193 spName, delayReadable, url));
/frameworks/base/packages/Osu/src/com/android/hotspot2/flow/
H A DFlowService.java76 public void remediate(String spFqdn, String url, boolean policy, Network network) { argument
77 FlowService.this.remediate(spFqdn, url, policy, network);
98 * @param url The URL of the remediation server
102 public void remediate(String spFqdn, String url, boolean policy, Network network) { argument
103 Log.d(OSUManager.TAG, "Starting remediation for " + spFqdn + " to " + url);
112 mOSUFlowManager.appendFlow(new OSUFlowManager.OSUFlow(network, url,
127 mOSUFlowManager.appendFlow(new OSUFlowManager.OSUFlow(network, url,
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
H A DHTTPHandler.java85 public OSUResponse exchangeSOAP(URL url, String message) throws IOException { argument
86 HTTPResponse response = exchangeWithRetry(url, message, HTTPMessage.Method.POST,
103 public ByteBuffer exchangeBinary(URL url, String message, String contentType) argument
106 exchangeWithRetry(url, message, HTTPMessage.Method.POST, contentType);
110 public InputStream doGet(URL url) throws IOException { argument
111 HTTPResponse response = exchangeWithRetry(url, null, HTTPMessage.Method.GET, null);
115 public HTTPResponse doGetHTTP(URL url) throws IOException { argument
116 return exchangeWithRetry(url, null, HTTPMessage.Method.GET, null);
119 private HTTPResponse exchangeWithRetry(URL url, String message, HTTPMessage.Method method, argument
125 response = httpExchange(url, messag
145 httpExchange(URL url, String message, HTTPMessage.Method method, String contentType) argument
[all...]
H A DOSUManager.java247 public void deauth(long bssid, boolean ess, int delay, String url) argument
250 ess ? "ess" : "bss", delay, url));
254 mAppBridge.showDeauth(spName, ess, delay, url);
257 public void wnmRemediate(final long bssid, final String url, PasspointMatch match) { argument
258 mRemediationHandler.wnmReceived(bssid, url);
H A DOSUSocketFactory.java81 Network network, URL url, KeyManager km,
85 if (enforceSecurity && !url.getProtocol().equalsIgnoreCase(SecureHTTP)) {
86 throw new IOException("Protocol '" + url.getProtocol() + "' is not secure");
88 return new OSUSocketFactory(ks, homeSP, flowType, network, url, km);
93 URL url, KeyManager km) throws GeneralSecurityException, IOException {
98 switch (url.getProtocol()) {
101 port = url.getPort() > 0 ? url.getPort() : 80;
108 port = url.getPort() > 0 ? url
79 getSocketFactory(KeyStore ks, HomeSP homeSP, OSUFlowManager.FlowType flowType, Network network, URL url, KeyManager km, boolean enforceSecurity) argument
91 OSUSocketFactory(KeyStore ks, HomeSP homeSP, OSUFlowManager.FlowType flowType, Network network, URL url, KeyManager km) argument
171 getOSUCertificate(URL url) argument
[all...]
H A DUserInputListener.java43 * @param url a URL to which to redirect the user
45 public void deAuthNotification(String spIdentity, boolean ess, int delay, URL url); argument
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/service/
H A DRemediationHandler.java133 public void wnmReceived(long bssid, String url) { argument
134 PendingUpdate update = new PendingUpdate(bssid, url);
140 "received, adding to outstanding remediations", url, bssid));
141 mOutstanding.addFirst(new PendingUpdate(bssid, url));
144 "received, remediating now", url, bssid));
148 "does not meet restriction", url, bssid));
484 private PendingUpdate(HomeSP homeSP, String url, boolean policy) { argument
488 mUrl = url;
491 private PendingUpdate(long bssid, String url) { argument
493 mUrl = url;
566 remediate(final String spFqdn, final String url, final boolean policy, final Network network) argument
[all...]
/frameworks/base/packages/Osu/src/com/android/hotspot2/utils/
H A DHTTPRequest.java31 public HTTPRequest(Method method, URL url) { argument
32 this(null, null, method, url, null, false);
35 public HTTPRequest(String payload, Charset charset, Method method, URL url, String contentType, argument
41 if (url.getPort() != HTTPS_PORT) {
42 mHeaderFields.put(HostHeader, url.getHost() + ':' + url.getPort());
44 mHeaderFields.put(HostHeader, url.getHost());
58 mMethodLine = method.name() + ' ' + url.getPath() + ' ' + HTTPVersion + CRLF;
62 URL url, int sequence) throws IOException, GeneralSecurityException {
64 generateAuthAnswer(httpResponse, userName, password, url, sequenc
61 doAuthenticate(HTTPResponse httpResponse, String userName, byte[] password, URL url, int sequence) argument
67 generateAuthAnswer(HTTPResponse httpResponse, String userName, byte[] password, URL url, int sequence) 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/base/packages/services/PacProcessor/jni/
H A Dcom_android_pacprocessor_PacNative.cpp107 jstring url, jstring host) {
108 String16 url16 = jstringToString16(env, url);
106 com_android_pacprocessor_PacNative_makeProxyRequestNativeLocked(JNIEnv* env, jobject, jstring url, jstring host) argument
/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/connectivity/
H A DNetworkMonitor.java88 // TODO: append a random length parameter to the default HTTPS url.
321 private void validationLog(int probeType, Object url, String msg) { argument
323 validationLog(String.format("%s %s %s", probeName, url, msg));
690 Log.e(TAG, String.format("could not create any url from %s", joinedUrls));
709 mNextFallbackUrlIndex += new Random().nextInt(); // randomely change url without memory.
777 private CaptivePortalProbeResult sendDnsAndHttpProbes(ProxyInfo proxy, URL url, int probeType) { argument
781 final String host = (proxy != null) ? proxy.getHost() : url.getHost();
783 return sendHttpProbe(url, probeType);
819 protected CaptivePortalProbeResult sendHttpProbe(URL url, int probeType) { argument
826 urlConnection = (HttpURLConnection) mNetworkAgentInfo.network.openConnection(url);
977 makeURL(String url) argument
[all...]
/frameworks/base/services/core/java/com/android/server/location/
H A DGpsXtraDownloader.java113 protected byte[] doDownload(String url) { argument
114 if (DEBUG) Log.d(TAG, "Downloading XTRA data from " + url);
118 connection = (HttpURLConnection) (new URL(url)).openConnection();
/frameworks/base/test-runner/src/android/test/mock/
H A DMockContentProvider.java64 public int bulkInsert(String callingPackage, Uri url, ContentValues[] initialValues) argument
66 return MockContentProvider.this.bulkInsert(url, initialValues);
70 public int delete(String callingPackage, Uri url, String selection, String[] selectionArgs) argument
72 return MockContentProvider.this.delete(url, selection, selectionArgs);
76 public String getType(Uri url) throws RemoteException { argument
77 return MockContentProvider.this.getType(url);
81 public Uri insert(String callingPackage, Uri url, ContentValues initialValues) argument
83 return MockContentProvider.this.insert(url, initialValues);
88 String callingPackage, Uri url, String mode, ICancellationSignal signal)
90 return MockContentProvider.this.openAssetFile(url, mod
87 openAssetFile( String callingPackage, Uri url, String mode, ICancellationSignal signal) argument
94 openFile( String callingPackage, Uri url, String mode, ICancellationSignal signal, IBinder callerToken) argument
101 query(String callingPackage, Uri url, @Nullable String[] projection, @Nullable Bundle queryArgs, @Nullable ICancellationSignal cancellationSignal) argument
109 update(String callingPackage, Uri url, ContentValues values, String selection, String[] selectionArgs) argument
126 getStreamTypes(Uri url, String mimeTypeFilter) argument
131 openTypedAssetFile(String callingPackage, Uri url, String mimeType, Bundle opts, ICancellationSignal signal) argument
153 refresh(String callingPkg, Uri url, Bundle args, ICancellationSignal cancellationSignal) argument
253 getStreamTypes(Uri url, String mimeTypeFilter) argument
258 openTypedAssetFile(Uri url, String mimeType, Bundle opts) argument
265 refresh(Uri url, Bundle args) argument
[all...]
H A DMockIContentProvider.java46 public int bulkInsert(String callingPackage, Uri url, ContentValues[] initialValues) { argument
52 public int delete(String callingPackage, Uri url, String selection, String[] selectionArgs) argument
58 public String getType(Uri url) { argument
64 public Uri insert(String callingPackage, Uri url, ContentValues initialValues) argument
71 String callingPackage, Uri url, String mode, ICancellationSignal signal,
89 public Cursor query(String callingPackage, Uri url, @Nullable String[] projection, argument
94 public EntityIterator queryEntities(Uri url, String selection, String[] selectionArgs, argument
100 public int update(String callingPackage, Uri url, ContentValues values, String selection, argument
117 public String[] getStreamTypes(Uri url, String mimeTypeFilter) throws RemoteException { argument
122 public AssetFileDescriptor openTypedAssetFile(String callingPackage, Uri url, Strin argument
70 openFile( String callingPackage, Uri url, String mode, ICancellationSignal signal, IBinder callerToken) argument
143 refresh(String callingPkg, Uri url, Bundle args, ICancellationSignal cancellationSignal) argument
[all...]

Completed in 1051 milliseconds

12345