/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 | 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
|
D | TelephonyProvider.java | 2883 public synchronized Cursor query(Uri url, String[] projectionIn, String selection, in query() argument 2885 if (VDBG) log("query: url=" + url + ", projectionIn=" + projectionIn + ", selection=" in query() 2895 int match = s_urlMatcher.match(url); in query() 2899 subIdString = url.getLastPathSegment(); in query() 2920 subIdString = url.getLastPathSegment(); in query() 2941 constraints.add("_id = " + url.getPathSegments().get(1)); in query() 2948 subIdString = url.getLastPathSegment(); in query() 2967 subIdString = url.getLastPathSegment(); in query() 2999 String idString = url.getLastPathSegment(); in query() 3038 subIdString = url.getLastPathSegment(); in query() [all …]
|
/packages/modules/CaptivePortalLogin/src/com/android/captiveportallogin/ |
D | CaptivePortalLoginActivity.java | 143 DownloadRequest(String url, String filename) { in DownloadRequest() argument 144 mUrl = url; in DownloadRequest() 378 final String url = mUrl.toString(); in onDestroy() local 380 Log.d(TAG, "starting activity with intent ACTION_VIEW for " + url); in onDestroy() 382 startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url))); in onDestroy() 414 String url = getIntent().getStringExtra(ConnectivityManager.EXTRA_CAPTIVE_PORTAL_URL); in getUrl() local 415 if (url == null) { // TODO: Have a metric to know how often empty url happened. in getUrl() 418 url = DEFAULT_CAPTIVE_PORTAL_HTTP_URL; in getUrl() 420 url = mCm.getCaptivePortalServerUrl(); in getUrl() 423 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/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/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 | 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 | 51 String url = getUrlFromIntent(getIntent()); in onCreate() local 52 if (url == null) { in onCreate() 61 showUrl(url); in onCreate() 68 private void showUrl(String url) { in showUrl() argument 69 mUrlText.setText(url); in showUrl() 73 qrCode = Encoder.encode(url, ErrorCorrectionLevel.H); in showUrl() 75 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 …]
|
/packages/modules/NetworkStack/src/com/android/server/connectivity/ |
D | NetworkMonitor.java | 715 private void validationLog(int probeType, Object url, String msg) { in validationLog() argument 717 validationLog(String.format("%s %s %s", probeName, url, msg)); in validationLog() 1646 final URL url = makeURL(mEvaluatingBandwidthUrl); in run() local 1647 urlConnection = makeProbeConnection(url, true /* followRedirects */); in run() 1936 private static boolean isValidTestUrl(@Nullable String url) { in isValidTestUrl() argument 1937 if (TextUtils.isEmpty(url)) return false; in isValidTestUrl() 1941 return Uri.parse(url).getHost().equals("localhost"); in isValidTestUrl() 2348 private CaptivePortalProbeResult sendDnsAndHttpProbes(ProxyInfo proxy, URL url, int probeType) { in sendDnsAndHttpProbes() argument 2352 final String host = (proxy != null) ? proxy.getHost() : url.getHost(); in sendDnsAndHttpProbes() 2366 return sendHttpProbe(url, probeType, null); in sendDnsAndHttpProbes() [all …]
|
/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/modules/Cronet/tests/apitest/src/org/chromium/net/test/ |
D | CronetApiTest.java | 85 VerifyUrlRequestCallback(@NonNull String url) { in VerifyUrlRequestCallback() argument 86 this.mUrl = url; in VerifyUrlRequestCallback() 128 String url = HTTPS_PREFIX + TEST_DOMAIN; in testUrlGet() local 129 VerifyUrlRequestCallback callback = new VerifyUrlRequestCallback(url); in testUrlGet() 130 UrlRequest.Builder builder = mCronetEngine.newUrlRequestBuilder(url, callback, mExecutor); in testUrlGet() 132 assertTrue(url + " but not complete after " + TIMEOUT_MS + "ms.", in testUrlGet()
|
/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/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/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/ |
D | DynamicItemCache.java | 200 String url = retrieveDefaultUrl(pkgName, pm); in loadInstantApp() local 201 if (url == null) { in loadInstantApp() 208 .setData(Uri.parse(url)); in loadInstantApp() 224 String url = null; in retrieveDefaultUrl() local 228 url = resolveInfo.activityInfo.metaData.getString(DEFAULT_URL); in retrieveDefaultUrl() 231 return url; in retrieveDefaultUrl()
|