Home
last modified time | relevance | path

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

1234

/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DSmsProvider.java110 public Cursor query(Uri url, String[] projectionIn, String selection, in query() argument
122 int match = sURLMatcher.match(url); in query()
159 qb.appendWhere("(_id = " + url.getPathSegments().get(0) + ")"); in query()
168 qb.appendWhere("(_id = " + url.getPathSegments().get(1) + ")"); in query()
175 threadID = Integer.parseInt(url.getPathSegments().get(1)); in query()
183 + url.getPathSegments().get(1)); in query()
228 "(sms_id = " + url.getPathSegments().get(1) + ")"); in query()
240 qb.appendWhere("(_id = " + url.getPathSegments().get(1) + ")"); in query()
247 String messageIndexString = url.getPathSegments().get(1); in query()
252 Log.e(TAG, "Invalid request: " + url); in query()
[all …]
DTelephonyProvider.java1630 public synchronized Cursor query(Uri url, String[] projectionIn, String selection, in query() argument
1632 if (VDBG) log("query: url=" + url + ", projectionIn=" + projectionIn + ", selection=" in query()
1642 int match = s_urlMatcher.match(url); in query()
1645 subIdString = url.getLastPathSegment(); in query()
1664 subIdString = url.getLastPathSegment(); in query()
1684 qb.appendWhere("_id = " + url.getPathSegments().get(1)); in query()
1690 subIdString = url.getLastPathSegment(); in query()
1757 ret.setNotificationUri(getContext().getContentResolver(), url); in query() local
1762 public String getType(Uri url) in getType() argument
1764 switch (s_urlMatcher.match(url)) { in getType()
[all …]
/packages/apps/Browser2/src/org/chromium/webview_shell/
DWebViewBrowserActivity.java177 String url = getUrlFromIntent(getIntent()); in onCreate() local
178 if (url != null) { in onCreate()
179 setUrlBarText(url); in onCreate()
204 public void onPageStarted(WebView view, String url, Bitmap favicon) { in createAndInitializeWebView()
205 setUrlBarText(url); in createAndInitializeWebView()
209 public void onPageFinished(WebView view, String url) { in createAndInitializeWebView()
210 setUrlBarText(url); in createAndInitializeWebView()
215 String url = request.getUrl().toString(); in createAndInitializeWebView()
218 if (url.startsWith("about:") || url.startsWith("chrome:")) { in createAndInitializeWebView()
222 return startBrowsingIntent(WebViewBrowserActivity.this, url, allowLaunchingApps); in createAndInitializeWebView()
[all …]
DJankActivity.java32 public boolean shouldOverrideUrlLoading(WebView webView, String url) { in onCreate()
37 String url = getUrlFromIntent(getIntent()); in onCreate() local
38 webView.loadUrl(url); in onCreate()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DHttpHelper.java31 public String get(String url, Map<String,String> requestHeaders) in get() argument
36 public String post(String url, Map<String,String> requestHeaders, String content) in post() argument
58 public GetRequest(String url) { in GetRequest() argument
59 mUrl = url; in GetRequest()
71 public void setUrl(String url) { in setUrl() argument
72 mUrl = url; in setUrl()
105 public PostRequest(String url) { in PostRequest() argument
106 super(url); in PostRequest()
150 public String rewrite(String url); in rewrite() argument
DJavaNetHttpHelper.java81 public String get(String url, Map<String,String> requestHeaders) in get() argument
85 c = createConnection(url, requestHeaders); in get()
101 public String post(String url, Map<String,String> requestHeaders, String content) in post() argument
110 c = createConnection(url, requestHeaders); in post()
127 private HttpURLConnection createConnection(String url, Map<String, String> headers) in createConnection() argument
129 URL u = new URL(mRewriter.rewrite(url)); in createConnection()
130 if (DBG) Log.d(TAG, "URL=" + url + " rewritten='" + u + "'"); in createConnection()
183 public String rewrite(String url) { in rewrite() argument
184 return url; in rewrite()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DDocumentImagePicker.java83 String url = data.getStringExtra(EXTRA_PHOTO_URL); in onActivityResult() local
84 if (url == null) { in onActivityResult()
87 url = data.getDataString(); in onActivityResult()
88 if (url == null) { in onActivityResult()
93 url = uri.toString(); in onActivityResult()
100 if (url != null) { in onActivityResult()
101 final Uri uri = Uri.parse(url); in onActivityResult()
/packages/screensavers/WebView/src/com/android/dreams/web/
DSetURL.java37 String url = intent.getStringExtra(Intent.EXTRA_TEXT); in onCreate() local
39 if (url == null) { in onCreate()
42 set(url); in onCreate()
47 protected void set(String url) { in set() argument
50 editor.putString("url", url); in set()
54 Toast.makeText(this, "WebView dream URL set to: " + url, Toast.LENGTH_SHORT).show(); in set()
DSetURLInteractive.java37 String url = intent.getStringExtra(Intent.EXTRA_TEXT); in onCreate() local
39 if (url == null) { in onCreate()
42 set(url); in onCreate()
47 protected void set(String url) { in set() argument
50 editor.putString("url", url); in set()
54 Toast.makeText(this, "WebView dream URL set to: " + url, Toast.LENGTH_SHORT).show(); in set()
DScreensaver.java51 public boolean shouldOverrideUrlLoading(WebView view, String url) { in shouldOverrideUrlLoading() argument
52 Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url)); in shouldOverrideUrlLoading()
69 final String url = prefs.getString("url", "file:///android_asset/default.html"); in onAttachedToWindow() local
73 url, interactive ? "interactive" : "noninteractive")); in onAttachedToWindow()
82 webview.loadUrl(url); in onAttachedToWindow()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DSuggestionUtils.java100 static String normalizeUrl(String url) { in normalizeUrl() argument
102 if (url != null) { in normalizeUrl()
104 int schemePos = url.indexOf(SCHEME_SEPARATOR); in normalizeUrl()
107 normalized = DEFAULT_SCHEME + SCHEME_SEPARATOR + url; in normalizeUrl()
110 normalized = url; in normalizeUrl()
119 return url; in normalizeUrl()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/uiflows/
DWebActivity.java61 public boolean shouldOverrideUrlLoading(WebView view, String url) { in onCreate()
62 if (extraAllowedUrlBase != null && url.startsWith(extraAllowedUrlBase)) { in onCreate()
63 view.loadUrl(url); in onCreate()
78 public static Intent createIntent(Context context, String url, String allowedUrlBase) { in createIntent() argument
80 intent.putExtra(WebActivity.EXTRA_URL, url); in createIntent()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DDownloadCache.java114 public Entry download(JobContext jc, URL url) { in download() argument
117 String stringUrl = url.toString(); in download()
166 String url = cursor.getString(FREESPACE_INDEX_CONTENT_URL); in freeSomeSpaceIfNeed() local
171 containsKey = mEntryMap.containsKey(url); in freeSomeSpaceIfNeed()
188 private synchronized long insertEntry(String url, File file) { in insertEntry() argument
193 String hashCode = String.valueOf(Utils.crc64Long(url)); in insertEntry()
196 values.put(Columns.CONTENT_URL, url); in insertEntry()
265 public DownloadTask(String url) { in DownloadTask() argument
266 mUrl = Utils.checkNotNull(url); in DownloadTask()
320 URL url = new URL(mUrl); in run() local
[all …]
DDownloadUtils.java34 public static boolean requestDownload(JobContext jc, URL url, File file) { in requestDownload() argument
38 return download(jc, url, fos); in requestDownload()
66 public static boolean download(JobContext jc, URL url, OutputStream output) { in download() argument
69 input = url.openStream(); in download()
/packages/apps/TV/src/com/android/tv/dialog/
DWebDialogFragment.java48 public static WebDialogFragment newInstance(String url, @Nullable String title, in newInstance() argument
52 args.putString(URL, url); in newInstance()
78 String url = getArguments().getString(URL); in onCreateView() local
79 webView.loadUrl(url); in onCreateView()
80 Log.d(TAG, "Loading web content from " + url); in onCreateView()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DLocalSource.java146 String url = data.cursor.getString(dataIndex); in findPosition() local
147 if (url != null && url.equals(data.url)) { in findPosition()
168 data.url = cursor.getString(dataIndex); in unpackImageData()
246 log(TAG, "opening:" + data.url); in getStream()
247 fis = new FileInputStream(data.url); in getStream()
/packages/apps/HTMLViewer/src/com/android/htmlviewer/
DHTMLViewerActivity.java139 public void onPageFinished(WebView view, String url) { in onPageFinished() argument
144 public boolean shouldOverrideUrlLoading(WebView view, String url) { in shouldOverrideUrlLoading() argument
148 intent = Intent.parseUri(url, Intent.URI_INTENT_SCHEME); in shouldOverrideUrlLoading()
150 Log.w(TAG, "Bad URI " + url + ": " + ex.getMessage()); in shouldOverrideUrlLoading()
168 Log.w(TAG, "No application can handle " + url); in shouldOverrideUrlLoading()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarDatabaseHelper.java2492 String url = cursor.getString(1); in upgradeToVersion200() local
2493 String selfUrl = getSelfUrlFromEventsUrl(url); in upgradeToVersion200()
2494 String editUrl = getEditUrlFromEventsUrl(url); in upgradeToVersion200()
2940 String url = cursor.getString(1); in upgradeToVersion56() local
2941 String owner = calendarEmailAddressFromFeedUrl(url); in upgradeToVersion56()
3147 void scheduleSync(Account account, boolean uploadChangesOnly, String url) { in scheduleSync() argument
3152 if (url != null) { in scheduleSync()
3153 extras.putString("feed", url); in scheduleSync()
3300 private static String getAllCalendarsUrlFromEventsUrl(String url) { in getAllCalendarsUrlFromEventsUrl() argument
3301 if (url == null) { in getAllCalendarsUrlFromEventsUrl()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DNetworkUriImageRequest.java59 final URL url = new URL(mDescriptor.uri.toString()); in isGif() local
60 connection = (HttpURLConnection) url.openConnection(); in isGif()
90 final URL url = new URL(mDescriptor.uri.toString()); in loadBitmapInternal() local
91 connection = (HttpURLConnection) url.openConnection(); in loadBitmapInternal()
/packages/apps/Email/src/com/android/email/activity/setup/
DOAuthAuthenticationActivity.java61 public boolean shouldOverrideUrlLoading(WebView wv, String url) { in shouldOverrideUrlLoading() argument
66 int i = url.lastIndexOf('?'); in shouldOverrideUrlLoading()
68 deparameterizedUrl = url; in shouldOverrideUrlLoading()
70 deparameterizedUrl = url.substring(0,i); in shouldOverrideUrlLoading()
74 final Uri uri = Uri.parse(url); in shouldOverrideUrlLoading()
/packages/services/Mms/src/com/android/mms/service/
DMmsHttpClient.java124 final URL url = new URL(urlString); in execute() local
125 maybeWaitForIpv4(requestId, url); in execute()
127 connection = (HttpURLConnection) mNetwork.openConnection(url, proxy); in execute()
222 private void maybeWaitForIpv4(final String requestId, final URL url) { in maybeWaitForIpv4() argument
227 ipv4Literal = (Inet4Address) InetAddress.parseNumericAddress(url.getHost()); in maybeWaitForIpv4()
418 final URL url = new URL(urlString); in redactUrlForNonVerbose() local
419 protocol = url.getProtocol(); in redactUrlForNonVerbose()
420 host = url.getHost(); in redactUrlForNonVerbose()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DSecureConversationViewFragment.java62 public WebResourceResponse shouldInterceptRequest(WebView view, String url) { in shouldInterceptRequest() argument
64 final Uri uri = Uri.parse(url); in shouldInterceptRequest()
71 return super.shouldInterceptRequest(view, url); in shouldInterceptRequest()
75 public void onPageFinished(WebView view, String url) { in onPageFinished() argument
80 LogUtils.d(LOG_TAG, "ignoring SCVF.onPageFinished, url=%s fragment=%s", url, in onPageFinished()
/packages/apps/Messaging/src/com/android/messaging/ui/
DPlainTextEditText.java67 final String url = item.getText().toString(); in onTextContextMenuItem() local
68 sb.replace(selectionStartPrePaste, selectionStart, url); in onTextContextMenuItem()
70 selectionStart = selectionStartPrePaste + url.length(); in onTextContextMenuItem()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DEmlMessageViewFragment.java104 public WebResourceResponse shouldInterceptRequest(WebView view, String url) { in shouldInterceptRequest() argument
106 final Uri uri = Uri.parse(url); in shouldInterceptRequest()
112 return super.shouldInterceptRequest(view, url); in shouldInterceptRequest()
116 public void onPageFinished(WebView view, String url) { in onPageFinished() argument
121 LogUtils.d(LOG_TAG, "ignoring EMLVF.onPageFinished, url=%s fragment=%s", url, in onPageFinished()
/packages/apps/KeyChain/tests/src/com/android/keychain/tests/
DKeyChainTestActivity.java179 URL url = startWebServer(); in doInBackground() local
180 log("Making https request to " + url); in doInBackground()
181 makeHttpsRequest(url); in doInBackground()
207 private void makeHttpsRequest(URL url) throws Exception { in makeHttpsRequest() argument
210 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); in makeHttpsRequest()

1234