/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/ |
D | ForwardingContentProvider.java | 53 public synchronized Cursor query(Uri url, String[] projection, String selection, in query() argument 56 return mClient.query(url, projection, selection, selectionArgs, sortOrder); in query() 64 public synchronized Cursor query(Uri url, String[] projection, String selection, in query() argument 67 return mClient.query(url, projection, selection, selectionArgs, sortOrder, in query() 75 public synchronized String getType(Uri url) { in getType() argument 77 return mClient.getType(url); in getType() 84 public synchronized String[] getStreamTypes(Uri url, String mimeTypeFilter) { in getStreamTypes() argument 86 return mClient.getStreamTypes(url, mimeTypeFilter); in getStreamTypes() 93 public synchronized Uri insert(Uri url, ContentValues initialValues) { in insert() argument 95 return mClient.insert(url, initialValues); in insert() [all …]
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | SmsProvider.java | 118 public Cursor query(Uri url, String[] projectionIn, String selection, in query() argument 140 int match = sURLMatcher.match(url); in query() 177 qb.appendWhere("(_id = " + url.getPathSegments().get(0) + ")"); in query() 186 qb.appendWhere("(_id = " + url.getPathSegments().get(1) + ")"); in query() 193 threadID = Integer.parseInt(url.getPathSegments().get(1)); in query() 201 + url.getPathSegments().get(1)); in query() 246 "(sms_id = " + url.getPathSegments().get(1) + ")"); in query() 258 qb.appendWhere("(_id = " + url.getPathSegments().get(1) + ")"); in query() 269 subId = Integer.parseInt(url.getPathSegments().get(1)); in query() 271 throw new IllegalArgumentException("Wrong path segements, uri= " + 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
|
/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 | 147 DownloadRequest(String url, String filename) { in DownloadRequest() argument 148 mUrl = url; in DownloadRequest() 395 final String url = mUrl.toString(); in onDestroy() local 397 Log.d(TAG, "starting activity with intent ACTION_VIEW for " + url); in onDestroy() 399 startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url))); in onDestroy() 431 String url = getIntent().getStringExtra(ConnectivityManager.EXTRA_CAPTIVE_PORTAL_URL); in getUrl() local 432 if (url == null) { // TODO: Have a metric to know how often empty url happened. in getUrl() 435 url = DEFAULT_CAPTIVE_PORTAL_HTTP_URL; in getUrl() 437 url = mCm.getCaptivePortalServerUrl(); in getUrl() 440 return makeURL(url); in getUrl() [all …]
|
D | DownloadService.java | 110 private DownloadTask(int id, Network network, String userAgent, String url, in DownloadTask() argument 115 this.mUrl = url; in DownloadTask() 153 String userAgent, String url, String displayName, Uri outFile) { in makeDownloadIntent() argument 157 intent.putExtra(ARG_URL, url); in makeDownloadIntent() 207 final String url = intent.getStringExtra(ARG_URL); in onStartCommand() local 211 if (network == null || userAgent == null || url == null || filename == null in onStartCommand() 214 + "filename: %s, outFile: %s", network, userAgent, url, filename, outFile)); in onStartCommand() 220 network.getPrivateDnsBypassingCopy(), userAgent, url, filename, outFile, this); in onStartCommand() 283 final URL url = new URL(task.mUrl); in processDownload() local 288 connection = task.mNetwork.openConnection(url); in processDownload()
|
/packages/modules/DnsResolver/ |
D | doh.rs | 36 use url::Url; 99 url: &str, in new() 106 DohDispatcher::new_with_socket(url, ip_addr, mark, cert_path, udp_sk) in new() 110 url: &str, in new_with_socket() 116 let url = Url::parse(&url.to_string())?; in new_with_socket() localVariable 117 if url.domain().is_none() { in new_with_socket() 129 url, ip_addr, mark, &scid in new_with_socket() 132 RUNTIME_STATIC.spawn(doh_handler(url, udp_sk, config, h3_config, scid, cmd_receiver)); in new_with_socket() 147 url: url::Url, in doh_handler() 154 debug!("doh_handler: url={:?}", url); in doh_handler() [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 …]
|
/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/modules/Wifi/service/java/com/android/server/wifi/hotspot2/ |
D | WnmData.java | 56 private WnmData(@WmnEventType int eventType, long bssid, String url, @OsuMethod int method, in WnmData() argument 59 mUrl = url; in WnmData() 75 public static WnmData createRemediationEvent(long bssid, String url, @OsuMethod int method) { in createRemediationEvent() argument 76 return new WnmData(HS20_REMEDIATION_EVENT, bssid, url, method, false, UNDEFINED); in createRemediationEvent() 88 public static WnmData createDeauthImminentEvent(long bssid, String url, boolean ess, in createDeauthImminentEvent() argument 90 return new WnmData(HS20_DEAUTH_IMMINENT_EVENT, bssid, url, UNDEFINED, ess, delay); in createDeauthImminentEvent() 101 public static WnmData createTermsAndConditionsAccetanceRequiredEvent(long bssid, String url) { in createTermsAndConditionsAccetanceRequiredEvent() argument 102 return new WnmData(HS20_TERMS_AND_CONDITIONS_ACCEPTANCE_REQUIRED_EVENT, bssid, url, in createTermsAndConditionsAccetanceRequiredEvent()
|
/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/ |
D | WfcWebPortalFragment.java | 53 public static WfcWebPortalFragment newInstance(String url, String postData) { in newInstance() argument 57 args.putString(KEY_URL_STRING, url); in newInstance() 71 String url = arguments.getString(KEY_URL_STRING, ""); in onCreateView() local 79 public boolean shouldOverrideUrlLoading(WebView view, String url) { in onCreateView() 84 public void onPageStarted(WebView view, String url, Bitmap favicon) { in onCreateView() 89 public void onPageFinished(WebView view, String url) { in onCreateView() 91 super.onPageFinished(view, url); in onCreateView() 115 mWebView.loadUrl(url); in onCreateView() 117 mWebView.postUrl(url, postData.getBytes()); in onCreateView()
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | DocumentImagePicker.java | 82 String url = data.getStringExtra(EXTRA_PHOTO_URL); in onActivityResult() local 83 if (url == null) { in onActivityResult() 86 url = data.getDataString(); in onActivityResult() 87 if (url == null) { in onActivityResult() 92 url = uri.toString(); in onActivityResult() 99 if (url != null) { in onActivityResult() 100 final Uri uri = Uri.parse(url); in onActivityResult()
|
/packages/apps/Car/LinkViewer/src/com/android/car/linkviewer/ |
D | LinkViewerActivity.java | 60 String url = getUrlFromIntent(getIntent()); in onCreate() local 61 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/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/ |
D | VenueUrlElementTest.java | 58 private void appendVenue(ByteArrayOutputStream stream, int venueNumber, String url) in appendVenue() argument 60 byte[] venueBytes = url.getBytes(StandardCharsets.UTF_8); in appendVenue() 86 private byte[] getTestData(int venueNumber, String url) throws IOException { in getTestData() argument 88 appendVenue(stream, venueNumber, url); in getTestData() 138 String url = TEST_VENUE_URL1; in parseBufferWithInvalidLength() local 140 byte[] venueBytes = url.getBytes(StandardCharsets.UTF_8); in parseBufferWithInvalidLength() 185 URL url; in createUrlFromString() local 187 url = new URL(stringUrl); in createUrlFromString() 191 return url; in createUrlFromString()
|
/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 …]
|
/packages/modules/Gki/ |
D | download_boot_prebuilt.py | 61 def download_file(url, dest_filename): argument 62 logger.info("Downloading %s -> %s", url, dest_filename) 63 urllib.request.urlretrieve(url, dest_filename) 70 url = os.path.join(url_base, filename) 72 return url, dest_filename 85 url, dest_filename = get_artifact_download_spec(build_id, device, variant, variant_dir) 86 download_file(url, dest_filename)
|
/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/modules/Wifi/service/java/com/android/server/wifi/hotspot2/soap/ |
D | HttpsTransport.java | 36 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()
|
/packages/modules/NetworkStack/src/com/android/server/connectivity/ |
D | NetworkMonitor.java | 718 private void validationLog(int probeType, Object url, String msg) { in validationLog() argument 720 validationLog(String.format("%s %s %s", probeName, url, msg)); in validationLog() 1682 final URL url = makeURL(mEvaluatingBandwidthUrl); in run() local 1683 urlConnection = makeProbeConnection(url, true /* followRedirects */); in run() 1972 private static boolean isValidTestUrl(@Nullable String url) { in isValidTestUrl() argument 1973 if (TextUtils.isEmpty(url)) return false; in isValidTestUrl() 1977 return Uri.parse(url).getHost().equals("localhost"); in isValidTestUrl() 2384 private CaptivePortalProbeResult sendDnsAndHttpProbes(ProxyInfo proxy, URL url, int probeType) { in sendDnsAndHttpProbes() argument 2388 final String host = (proxy != null) ? proxy.getHost() : url.getHost(); in sendDnsAndHttpProbes() 2402 return sendHttpProbe(url, probeType, null); in sendDnsAndHttpProbes() [all …]
|
/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/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/modules/Wifi/service/java/com/android/server/wifi/hotspot2/anqp/ |
D | VenueUrlElement.java | 75 URL url; in parse() local 77 url = new URL(parsedUrl); in parse() 84 String protocol = url.getProtocol(); in parse() 86 Log.w(TAG, "Non-HTTPS Venue URL dropped: " + url); in parse() 88 venueUrls.put(Integer.valueOf(venueNumber), url); in parse() local
|
/packages/modules/Wifi/OsuLogin/src/com/android/hotspot2/osulogin/ |
D | OsuLoginActivity.java | 216 private String getHost(String url) { in getHost() argument 218 return new URL(url).getHost(); in getHost() 220 Log.e(TAG, "Invalid URL " + url); in getHost() 227 URL url = new URL(urlString); in getHeaderSubtitle() local 228 return url.getProtocol() + "://" + url.getHost(); in getHeaderSubtitle() 251 public void onPageFinished(WebView view, String url) { in onPageFinished() argument
|
/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()
|