/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/ |
D | ForwardingContentProvider.java | 51 public synchronized Cursor query(Uri url, String[] projection, String selection, in query() argument 54 return mClient.query(url, projection, selection, selectionArgs, sortOrder); in query() 62 public synchronized Cursor query(Uri url, String[] projection, String selection, in query() argument 65 return mClient.query(url, projection, selection, selectionArgs, sortOrder, in query() 73 public synchronized String getType(Uri url) { in getType() argument 75 return mClient.getType(url); in getType() 82 public synchronized String[] getStreamTypes(Uri url, String mimeTypeFilter) { in getStreamTypes() argument 84 return mClient.getStreamTypes(url, mimeTypeFilter); in getStreamTypes() 91 public synchronized Uri insert(Uri url, ContentValues initialValues) { in insert() argument 93 return mClient.insert(url, initialValues); in insert() [all …]
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | SmsProvider.java | 114 public Cursor query(Uri url, String[] projectionIn, String selection, in query() argument 126 int match = sURLMatcher.match(url); in query() 163 qb.appendWhere("(_id = " + url.getPathSegments().get(0) + ")"); in query() 172 qb.appendWhere("(_id = " + url.getPathSegments().get(1) + ")"); in query() 179 threadID = Integer.parseInt(url.getPathSegments().get(1)); in query() 187 + url.getPathSegments().get(1)); in query() 232 "(sms_id = " + url.getPathSegments().get(1) + ")"); in query() 244 qb.appendWhere("(_id = " + url.getPathSegments().get(1) + ")"); in query() 251 String messageIndexString = url.getPathSegments().get(1); in query() 256 Log.e(TAG, "Invalid request: " + url); in query() [all …]
|
D | SmsChangesProvider.java | 48 public String getType(Uri url) { in getType() argument 61 public Cursor query(Uri url, String[] projectionIn, String selection, in query() argument 70 if (!isUrlSupported(url)) { in query() 83 public Uri insert(Uri url, ContentValues initialValues) { in insert() argument 88 public int delete(Uri url, String where, String[] whereArgs) { in delete() argument 95 if (!isUrlSupported(url)) return 0; in delete() 101 private boolean isUrlSupported(Uri url) { in isUrlSupported() argument 102 if (sURLMatcher.match(url) != SMSCHANGES_URL) { in isUrlSupported() 103 Log.e(TAG, "Invalid or Unsupported request: " + url); in isUrlSupported() 110 public int update(Uri url, ContentValues values, String where, String[] whereArgs) { in update() argument
|
D | TelephonyProvider.java | 2810 public synchronized Cursor query(Uri url, String[] projectionIn, String selection, in query() argument 2812 if (VDBG) log("query: url=" + url + ", projectionIn=" + projectionIn + ", selection=" in query() 2824 int match = s_urlMatcher.match(url); in query() 2828 subIdString = url.getLastPathSegment(); in query() 2847 subIdString = url.getLastPathSegment(); in query() 2868 constraints.add("_id = " + url.getPathSegments().get(1)); in query() 2875 subIdString = url.getLastPathSegment(); in query() 2894 subIdString = url.getLastPathSegment(); in query() 2923 String idString = url.getLastPathSegment(); in query() 2962 subIdString = url.getLastPathSegment(); in query() [all …]
|
/packages/apps/Browser2/src/org/chromium/webview_shell/ |
D | WebViewBrowserActivity.java | 262 String url = getUrlFromIntent(getIntent()); in onCreate() local 263 if (url == null) { in onCreate() 265 url = mWebView.getUrl(); in onCreate() 266 if (url != null) { in onCreate() 271 setUrlBarText(url); in onCreate() 283 url = "about:blank"; in onCreate() 285 setUrlBarText(url); in onCreate() 335 public void onPageStarted(WebView view, String url, Bitmap favicon) { in createAndInitializeWebView() 336 setUrlBarText(url); in createAndInitializeWebView() 340 public void onPageFinished(WebView view, String url) { in createAndInitializeWebView() [all …]
|
/packages/modules/CaptivePortalLogin/src/com/android/captiveportallogin/ |
D | CaptivePortalLoginActivity.java | 309 final String url = mUrl.toString(); in onDestroy() local 311 Log.d(TAG, "starting activity with intent ACTION_VIEW for " + url); in onDestroy() 313 startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url))); in onDestroy() 318 String url = getIntent().getStringExtra(ConnectivityManager.EXTRA_CAPTIVE_PORTAL_URL); in getUrl() local 319 if (url == null) { in getUrl() 320 url = mCm.getCaptivePortalServerUrl(); in getUrl() 322 return makeURL(url); in getUrl() 325 private static URL makeURL(String url) { in makeURL() argument 327 return new URL(url); in makeURL() 329 Log.e(TAG, "Invalid URL " + url); in makeURL() [all …]
|
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/ |
D | HttpFetcher.java | 61 URL url = reWriteUrl(context, urlString); in sendRequestAsByteArray() local 62 if (url == null) { in sendRequestAsByteArray() 71 conn = (HttpURLConnection) url.openConnection(); in sendRequestAsByteArray() 92 handleBadResponse(url.toString(), baos.toByteArray()); in sendRequestAsByteArray() 123 URL url = reWriteUrl(context, urlString); in sendRequestAsInputStream() local 124 if (url == null) { in sendRequestAsInputStream() 131 httpUrlConnection = (HttpURLConnection) url.openConnection(); in sendRequestAsInputStream() 227 private static URL reWriteUrl(Context context, String url) { in reWriteUrl() argument 229 final UrlRules.Rule rule = rules.matchRule(url); in reWriteUrl() 230 final String newUrl = rule.apply(url); in reWriteUrl() [all …]
|
D | LocationUrlBuilder.java | 126 String url = String.format(Locale.US, "geo: %s?q=%s", latLong, latLong); in getShowMapIntent() local 131 url += in getShowMapIntent() 134 url += String.format(Locale.US, "(%s)", addressLine1.toString()); in getShowMapIntent() 138 url += in getShowMapIntent() 146 Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url)); in getShowMapIntent()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/ |
D | HttpHelper.java | 31 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
|
D | JavaNetHttpHelper.java | 81 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/ |
D | DocumentImagePicker.java | 85 String url = data.getStringExtra(EXTRA_PHOTO_URL); in onActivityResult() local 86 if (url == null) { in onActivityResult() 89 url = data.getDataString(); in onActivityResult() 90 if (url == null) { in onActivityResult() 95 url = uri.toString(); in onActivityResult() 102 if (url != null) { in onActivityResult() 103 final Uri uri = Uri.parse(url); in onActivityResult()
|
/packages/apps/Car/LinkViewer/src/com/android/car/linkviewer/ |
D | LinkViewerActivity.java | 55 String url = getUrlFromIntent(getIntent()); in onCreate() local 56 if (url == null) { in onCreate() 70 showUrl(url); in onCreate() 77 private void showUrl(String url) { in showUrl() argument 78 mUrlText.setText(url); in showUrl() 82 qrCode = Encoder.encode(url, ErrorCorrectionLevel.H); in showUrl() 84 Log.e(TAG, "Error encoding URL: " + url, e); in showUrl()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | DownloadCache.java | 114 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 …]
|
D | DownloadUtils.java | 34 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/QuickSearchBox/src/com/android/quicksearchbox/ |
D | SuggestionUtils.java | 100 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/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/weblinks/ |
D | WebLinksTestFragment.java | 50 String url = view.getTag().toString(); in onClick() local 52 if (!url.startsWith("http")) { in onClick() 53 url = "http://" + url; in onClick() 55 startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url))); in onClick()
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarDatabaseHelper.java | 2497 String url = cursor.getString(1); in upgradeToVersion200() local 2498 String selfUrl = getSelfUrlFromEventsUrl(url); in upgradeToVersion200() 2499 String editUrl = getEditUrlFromEventsUrl(url); in upgradeToVersion200() 2945 String url = cursor.getString(1); in upgradeToVersion56() local 2946 String owner = calendarEmailAddressFromFeedUrl(url); in upgradeToVersion56() 3152 void scheduleSync(Account account, boolean uploadChangesOnly, String url) { in scheduleSync() argument 3157 if (url != null) { in scheduleSync() 3158 extras.putString("feed", url); in scheduleSync() 3306 private static String getAllCalendarsUrlFromEventsUrl(String url) { in getAllCalendarsUrlFromEventsUrl() argument 3307 if (url == null) { in getAllCalendarsUrlFromEventsUrl() [all …]
|
/packages/apps/TV/src/com/android/tv/dialog/ |
D | WebDialogFragment.java | 48 String url, @Nullable String title, String trackerLabel) { in newInstance() argument 51 args.putString(URL, url); in newInstance() 79 String url = getArguments().getString(URL); in onCreateView() local 80 mWebView.loadUrl(url); in onCreateView() 81 Log.d(TAG, "Loading web content from " + url); in onCreateView()
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | LocalSource.java | 146 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/Test/connectivity/UID/src/com/android/tests/connectivity/uid/ |
D | ConnectivityTestActivity.java | 100 String url = extras.getString(URL); in downloadData() 101 Log.d(TAG, "URL IS: " + url); in downloadData() 103 new DownloadManager.Request(Uri.parse(url)); in downloadData() 107 url, null, MimeTypeMap.getFileExtensionFromUrl(url)); in downloadData()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/ |
D | WebActivity.java | 79 String url = request.getUrl().toString(); in onCreate() 80 if (!URLUtil.isHttpsUrl(url)) { in onCreate() 125 public static Intent createIntent(Context context, String url, int statusBarColor) { in createIntent() argument 126 if (URLUtil.isNetworkUrl(url)) { in createIntent() 128 .putExtra(EXTRA_URL, url) in createIntent()
|
/packages/apps/HTMLViewer/src/com/android/htmlviewer/ |
D | HTMLViewerActivity.java | 108 public void onPageFinished(WebView view, String url) { in onPageFinished() argument 114 String url = request.getUrl().toString(); in shouldOverrideUrlLoading() local 118 intent = Intent.parseUri(url, Intent.URI_INTENT_SCHEME); in shouldOverrideUrlLoading() 120 Log.w(TAG, "Bad URI " + url + ": " + ex.getMessage()); in shouldOverrideUrlLoading() 141 Log.w(TAG, "No application can handle " + url); in shouldOverrideUrlLoading()
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/ |
D | DynamicItemCache.java | 199 String url = retrieveDefaultUrl(pkgName, pm); in loadInstantApp() local 200 if (url == null) { in loadInstantApp() 207 .setData(Uri.parse(url)); in loadInstantApp() 223 String url = null; in retrieveDefaultUrl() local 227 url = resolveInfo.activityInfo.metaData.getString(DEFAULT_URL); in retrieveDefaultUrl() 230 return url; in retrieveDefaultUrl()
|
/packages/services/Mms/src/com/android/mms/service/ |
D | MmsHttpClient.java | 133 final URL url = new URL(urlString); in execute() local 134 maybeWaitForIpv4(requestId, url); in execute() 136 connection = (HttpURLConnection) mNetwork.openConnection(url, proxy); in execute() 248 private void maybeWaitForIpv4(final String requestId, final URL url) { in maybeWaitForIpv4() argument 253 ipv4Literal = (Inet4Address) InetAddress.parseNumericAddress(url.getHost()); in maybeWaitForIpv4() 442 final URL url = new URL(urlString); in redactUrlForNonVerbose() local 443 protocol = url.getProtocol(); in redactUrlForNonVerbose() 444 host = url.getHost(); in redactUrlForNonVerbose()
|
/packages/modules/NetworkStack/src/com/android/server/connectivity/ |
D | NetworkMonitor.java | 527 private void validationLog(int probeType, Object url, String msg) { in validationLog() argument 529 validationLog(String.format("%s %s %s", probeName, url, msg)); in validationLog() 1542 private CaptivePortalProbeResult sendDnsAndHttpProbes(ProxyInfo proxy, URL url, int probeType) { in sendDnsAndHttpProbes() argument 1546 final String host = (proxy != null) ? proxy.getHost() : url.getHost(); in sendDnsAndHttpProbes() 1552 return sendHttpProbe(url, probeType, null); in sendDnsAndHttpProbes() 1596 protected CaptivePortalProbeResult sendHttpProbe(URL url, int probeType, in sendHttpProbe() argument 1605 urlConnection = (HttpURLConnection) mCleartextDnsNetwork.openConnection(url); in sendHttpProbe() 1626 validationLog(probeType, url, "time=" + (responseTimestamp - requestTimestamp) + "ms" in sendHttpProbe() 1640 probeType, url, "PAC fetch 200 response interpreted as 204 response."); in sendHttpProbe() 1647 validationLog(probeType, url, in sendHttpProbe() [all …]
|