/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 | 110 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 …]
|
D | TelephonyProvider.java | 1966 public synchronized Cursor query(Uri url, String[] projectionIn, String selection, in query() argument 1968 if (VDBG) log("query: url=" + url + ", projectionIn=" + projectionIn + ", selection=" in query() 1978 int match = s_urlMatcher.match(url); in query() 1981 subIdString = url.getLastPathSegment(); in query() 2000 subIdString = url.getLastPathSegment(); in query() 2020 qb.appendWhere("_id = " + url.getPathSegments().get(1)); in query() 2026 subIdString = url.getLastPathSegment(); in query() 2115 ret.setNotificationUri(getContext().getContentResolver(), url); in query() local 2136 public String getType(Uri url) in getType() argument 2138 switch (s_urlMatcher.match(url)) { in getType() [all …]
|
/packages/apps/Browser2/src/org/chromium/webview_shell/ |
D | WebViewBrowserActivity.java | 177 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 …]
|
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/ |
D | HttpFetcher.java | 62 URL url = reWriteUrl(context, urlString); in sendRequestAsByteArray() local 63 if (url == null) { in sendRequestAsByteArray() 72 conn = (HttpURLConnection) url.openConnection(); in sendRequestAsByteArray() 93 handleBadResponse(url.toString(), baos.toByteArray()); in sendRequestAsByteArray() 124 URL url = reWriteUrl(context, urlString); in sendRequestAsInputStream() local 125 if (url == null) { in sendRequestAsInputStream() 132 httpUrlConnection = (HttpURLConnection) url.openConnection(); in sendRequestAsInputStream() 230 private static URL reWriteUrl(Context context, String url) { in reWriteUrl() argument 232 final UrlRules.Rule rule = rules.matchRule(url); in reWriteUrl() 233 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/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/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/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarDatabaseHelper.java | 2492 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/screensavers/WebView/src/com/android/dreams/web/ |
D | SetURLInteractive.java | 37 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()
|
D | SetURL.java | 37 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()
|
D | Screensaver.java | 51 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/ |
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/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/TV/src/com/android/tv/dialog/ |
D | WebDialogFragment.java | 49 public static WebDialogFragment newInstance(String url, @Nullable String title, in newInstance() argument 53 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/apps/Settings/tests/robotests/src/com/android/settings/core/codeinspection/ |
D | ClassScanner.java | 48 URL url = resources.nextElement(); in getClassesForPackage() local 49 while (url != null) { in getClassesForPackage() 50 final URLConnection connection = url.openConnection(); in getClassesForPackage() 56 loadClassFromDirectory(new File(URLDecoder.decode(url.getPath(), "UTF-8")), in getClassesForPackage() 60 url = resources.nextElement(); in getClassesForPackage()
|
/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 | 127 final URL url = new URL(urlString); in execute() local 128 maybeWaitForIpv4(requestId, url); in execute() 130 connection = (HttpURLConnection) mNetwork.openConnection(url, proxy); in execute() 233 private void maybeWaitForIpv4(final String requestId, final URL url) { in maybeWaitForIpv4() argument 238 ipv4Literal = (Inet4Address) InetAddress.parseNumericAddress(url.getHost()); in maybeWaitForIpv4() 429 final URL url = new URL(urlString); in redactUrlForNonVerbose() local 430 protocol = url.getProtocol(); in redactUrlForNonVerbose() 431 host = url.getHost(); in redactUrlForNonVerbose()
|
/packages/apps/HTMLViewer/src/com/android/htmlviewer/ |
D | HTMLViewerActivity.java | 139 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/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherProvider.java | 1133 SqlArguments(Uri url, String where, String[] args) { in SqlArguments() argument 1134 if (url.getPathSegments().size() == 1) { in SqlArguments() 1135 this.table = url.getPathSegments().get(0); in SqlArguments() 1138 } else if (url.getPathSegments().size() != 2) { in SqlArguments() 1139 throw new IllegalArgumentException("Invalid URI: " + url); in SqlArguments() 1141 throw new UnsupportedOperationException("WHERE clause not supported: " + url); in SqlArguments() 1143 this.table = url.getPathSegments().get(0); in SqlArguments() 1144 this.where = "_id=" + ContentUris.parseId(url); in SqlArguments() 1149 SqlArguments(Uri url) { in SqlArguments() argument 1150 if (url.getPathSegments().size() == 1) { in SqlArguments() [all …]
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
D | OAuthAuthenticationActivity.java | 61 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/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | SecureConversationViewFragment.java | 62 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()
|