Home
last modified time | relevance | path

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

12345678910>>...12

/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/
DForwardingContentProvider.java53 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/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/httpclient/
DAdServicesHttpsClient.java170 private URLConnection openUrl(@NonNull URL url) throws IOException { in openUrl() argument
171 Objects.requireNonNull(url); in openUrl()
172 return url.openConnection(); in openUrl()
176 private HttpsURLConnection setupConnection(@NonNull URL url, @NonNull DevContext devContext) in setupConnection() argument
178 Objects.requireNonNull(url); in setupConnection()
181 HttpsURLConnection urlConnection = (HttpsURLConnection) openUrl(url); in setupConnection()
185 Uri uri = Uri.parse(url.toString()); in setupConnection()
187 LogUtil.v("Using unsafe HTTPS for url %s", url.toString()); in setupConnection()
203 @NonNull URL url, @NonNull DevContext devContext) throws IOException { in setupPostConnectionWithPlainText()
204 Objects.requireNonNull(url); in setupPostConnectionWithPlainText()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/httpclient/
DAdServicesHttpsClientTest.java180 URL url = server.getUrl(mReportingPath); in testGetAndReadNothingSuccessfulResponse() local
182 assertThat(getAndReadNothing(Uri.parse(url.toString()), DEV_CONTEXT_DISABLED)).isNull(); in testGetAndReadNothingSuccessfulResponse()
189 URL url = server.getUrl(mReportingPath); in testGetAndReadNothingSuccessfulResponse_DevOptionsEnabled() local
191 assertThat(getAndReadNothing(Uri.parse(url.toString()), DEV_CONTEXT_ENABLED)).isNull(); in testGetAndReadNothingSuccessfulResponse_DevOptionsEnabled()
198 URL url = server.getUrl(mReportingPath); in testGetAndReadNothingCorrectPath() local
199 getAndReadNothing(Uri.parse(url.toString()), DEV_CONTEXT_DISABLED); in testGetAndReadNothingCorrectPath()
211 URL url = server.getUrl(mReportingPath); in testGetAndReadNothingFailedResponse() local
216 () -> getAndReadNothing(Uri.parse(url.toString()), DEV_CONTEXT_DISABLED)); in testGetAndReadNothingFailedResponse()
249 URL url = server.getUrl(mFetchPayloadPath); in testFetchPayloadSuccessfulResponse() local
252 fetchPayload(Uri.parse(url.toString()), DEV_CONTEXT_DISABLED); in testFetchPayloadSuccessfulResponse()
[all …]
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/enterprise/
DActionDisabledLearnMoreButtonLauncher.java39 (packageManager, url, userHandle) -> packageManager.resolveActivityAsUser(
40 createLearnMoreIntent(url),
46 PackageManager packageManager, String url, UserHandle userHandle); in canResolveActivityAsUser() argument
70 Context context, String url, UserHandle userHandle) { in setupLearnMoreButtonToLaunchHelpPage() argument
72 requireNonNull(url, "url cannot be null"); in setupLearnMoreButtonToLaunchHelpPage()
74 setLearnMoreButton(() -> showHelpPage(context, url, userHandle)); in setupLearnMoreButtonToLaunchHelpPage()
121 public void showHelpPage(Context context, String url, UserHandle userHandle) { in showHelpPage() argument
122 context.startActivityAsUser(createLearnMoreIntent(url), userHandle); in showHelpPage()
128 String url, in canLaunchHelpPage() argument
131 return resolveActivityChecker.canResolveActivityAsUser(packageManager, url, userHandle); in canLaunchHelpPage()
[all …]
DManagedDeviceActionDisabledByAdminController.java77 String url = mStringProvider.getLearnMoreHelpPageUrl(); in setupLearnMoreButton() local
79 if (!TextUtils.isEmpty(url) in setupLearnMoreButton()
80 && canLaunchHelpPageInPreferredOrCurrentUser(context, url, mPreferredUserHandle)) { in setupLearnMoreButton()
81 setupLearnMoreButtonToLaunchHelpPage(context, url, mPreferredUserHandle); in setupLearnMoreButton()
89 Context context, String url, UserHandle preferredUserHandle) { in canLaunchHelpPageInPreferredOrCurrentUser() argument
92 packageManager, url, preferredUserHandle, mResolveActivityChecker) in canLaunchHelpPageInPreferredOrCurrentUser()
97 packageManager, url, context.getUser(), mResolveActivityChecker); in canLaunchHelpPageInPreferredOrCurrentUser()
106 Context context, String url, UserHandle preferredUserHandle) { in setupLearnMoreButtonToLaunchHelpPage() argument
109 packageManager, url, preferredUserHandle, mResolveActivityChecker) in setupLearnMoreButtonToLaunchHelpPage()
111 mLauncher.setupLearnMoreButtonToLaunchHelpPage(context, url, preferredUserHandle); in setupLearnMoreButtonToLaunchHelpPage()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/
DMeasurementHttpClientTest.java101 final URL url = new URL("https://google.com"); in testOpenAndSetupConnectionDefaultTimeoutValues_success() local
103 final URLConnection urlConnection = mNetworkConnection.setup(url); in testOpenAndSetupConnectionDefaultTimeoutValues_success()
124 final URL url = new URL("https://test.com"); in testSetup_ForComputeFromMappingsFlagTrue_SetsCorrectHeader() local
126 final URLConnection urlConnection = mNetworkConnection.setup(url); in testSetup_ForComputeFromMappingsFlagTrue_SetsCorrectHeader()
148 final URL url = new URL("https://test.com"); in testSetup_ForComputeFromMappingsFlagTrueAndExtServices_SetsCorrectHeader()
150 final URLConnection urlConnection = mNetworkConnection.setup(url); in testSetup_ForComputeFromMappingsFlagTrueAndExtServices_SetsCorrectHeader()
173 final URL url = new URL("https://test.com"); local
174 final URLConnection urlConnection = mNetworkConnection.setup(url);
195 final URL url = new URL("https://test.com"); in testSetup_ForComputeFromMappingsAndVersionAsStartRangeExtS_SetsCorrectHeader()
199 final URLConnection urlConnection2 = mNetworkConnection.setup(url); in testSetup_ForComputeFromMappingsAndVersionAsStartRangeExtS_SetsCorrectHeader()
[all …]
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DSmsProvider.java138 public Cursor query(Uri url, String[] projectionIn, String selection, in query() argument
167 int match = sURLMatcher.match(url); in query()
172 callingPackage + ";SmsProvider.query;" + url, true); in query()
209 qb.appendWhere("(_id = " + url.getPathSegments().get(0) + ")"); in query()
218 qb.appendWhere("(_id = " + url.getPathSegments().get(1) + ")"); in query()
225 threadID = Integer.parseInt(url.getPathSegments().get(1)); in query()
233 + url.getPathSegments().get(1)); in query()
278 "(sms_id = " + url.getPathSegments().get(1) + ")"); in query()
290 qb.appendWhere("(_id = " + url.getPathSegments().get(1) + ")"); in query()
300 subId = Integer.parseInt(url.getPathSegments().get(1)); in query()
[all …]
DSmsChangesProvider.java48 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/QuickSearchBox/src/com/android/quicksearchbox/util/
DHttpHelper.kt25 operator fun get(url: String?, requestHeaders: MutableMap<String, String>?): String? in get()
30 fun post(url: String?, requestHeaders: MutableMap<String, String>?, content: String?): String? in get()
36 var url: String? = null in get() variable in com.android.quicksearchbox.util.HttpHelper.GetRequest
54 constructor(url: String?) { in get()
55 this.url = url in get()
76 constructor(url: String?) : super(url)
89 fun rewrite(url: String): String
DJavaNetHttpHelper.kt45 return get(request?.url, request?.headers) in get()
58 override operator fun get(url: String?, requestHeaders: MutableMap<String, String>?): String? { in get()
61 c = createConnection(url!!, requestHeaders) in get()
75 return post(request?.url, request?.headers, request?.content) in post()
80 url: String?, in post()
91 c = createConnection(url!!, mRequestHeaders) in post()
109 private fun createConnection(url: String, headers: Map<String, String>?): HttpURLConnection { in createConnection()
110 val u = URL(mRewriter.rewrite(url)) in createConnection()
111 if (DBG) Log.d(TAG, "URL=$url rewritten='$u'") in createConnection()
163 override fun rewrite(url: String): String { in rewrite()
[all …]
/packages/apps/Browser2/src/org/chromium/webview_shell/
DWebViewBrowserActivity.java262 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/
DHttpFetcher.java61 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/modules/CaptivePortalLogin/src/com/android/captiveportallogin/
DCaptivePortalLoginActivity.java276 DownloadRequest(@NonNull String url, @NonNull String filename, @NonNull String mimeType, in DownloadRequest() argument
278 mUrl = url; in DownloadRequest()
594 final String url = mUrl.toString(); in onDestroy() local
596 Log.d(TAG, "starting activity with intent ACTION_VIEW for " + url); in onDestroy()
598 startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url))); in onDestroy()
631 String url = getIntent().getStringExtra(ConnectivityManager.EXTRA_CAPTIVE_PORTAL_URL); in getUrl() local
632 if (url == null) { // TODO: Have a metric to know how often empty url happened. in getUrl()
635 url = DEFAULT_CAPTIVE_PORTAL_HTTP_URL; in getUrl()
637 url = mCm.getCaptivePortalServerUrl(); in getUrl()
640 return makeURL(url); in getUrl()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DWnmData.java56 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/modules/DnsResolver/doh/
Dencoding.rs23 use url::Url;
63 pub fn dns_request(base64_query: &str, url: &Url) -> Result<DnsRequest> { in dns_request()
64 let mut path = String::from(url.path()); in dns_request()
72 url.host_str().ok_or_else(|| anyhow!("failed to get host"))?.as_bytes(), in dns_request()
86 use url::Url;
95 let url = Url::parse(LOCALHOST_URL).unwrap(); in make_probe_query_and_request() localVariable
96 let request = super::dns_request(&probe_query, &url).unwrap(); in make_probe_query_and_request()
104 assert_eq!(request[2].value(), url.host_str().unwrap().as_bytes()); in make_probe_query_and_request()
106 let mut path = String::from(url.path()); in make_probe_query_and_request()
Dffi.rs36 use url::Url;
196 url: *const c_char, in doh_net_new()
206 let (url, domain, ip_addr, cert_path) = match unsafe { in doh_net_new()
208 std::ffi::CStr::from_ptr(url).to_str(), in doh_net_new()
214 (Ok(url), Ok(domain), Ok(ip_addr), Ok(cert_path)) => { in doh_net_new()
216 (url, None, ip_addr.to_string(), None) in doh_net_new()
218 (url, Some(domain.to_string()), ip_addr.to_string(), Some(cert_path.to_string())) in doh_net_new()
221 url, in doh_net_new()
234 let (url, ip_addr) = match (Url::parse(url), IpAddr::from_str(&ip_addr)) { in doh_net_new()
235 (Ok(url), Ok(ip_addr)) => (url, ip_addr), in doh_net_new()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherProvider.java168 SqlArguments(Uri url, String where, String[] args) { in SqlArguments() argument
169 if (url.getPathSegments().size() == 1) { in SqlArguments()
170 this.table = url.getPathSegments().get(0); in SqlArguments()
173 } else if (url.getPathSegments().size() != 2) { in SqlArguments()
174 throw new IllegalArgumentException("Invalid URI: " + url); in SqlArguments()
176 throw new UnsupportedOperationException("WHERE clause not supported: " + url); in SqlArguments()
178 this.table = url.getPathSegments().get(0); in SqlArguments()
179 this.where = "_id=" + ContentUris.parseId(url); in SqlArguments()
184 SqlArguments(Uri url) { in SqlArguments() argument
185 if (url.getPathSegments().size() == 1) { in SqlArguments()
[all …]
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/contentpreview/
DHeadlineGeneratorImplTest.kt30 private val url = "http://www.google.com" constant in com.android.intentresolver.contentpreview.HeadlineGeneratorImplTest
35 assertThat(generator.getTextHeadline(url)).isEqualTo("Sharing link") in testTextHeadline()
41 assertThat(generator.getImagesWithTextHeadline(url, 1)).isEqualTo("Sharing image with link") in testImagesWIthTextHeadline()
44 assertThat(generator.getImagesWithTextHeadline(url, 5)) in testImagesWIthTextHeadline()
51 assertThat(generator.getVideosWithTextHeadline(url, 1)).isEqualTo("Sharing video with link") in testVideosWithTextHeadline()
54 assertThat(generator.getVideosWithTextHeadline(url, 5)) in testVideosWithTextHeadline()
61 assertThat(generator.getFilesWithTextHeadline(url, 1)).isEqualTo("Sharing file with link") in testFilesWithTextHeadline()
64 assertThat(generator.getFilesWithTextHeadline(url, 5)) in testFilesWithTextHeadline()
/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/
DWfcWebPortalFragment.java53 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()
118 mWebView.loadUrl(url); in onCreateView()
120 mWebView.postUrl(url, postData.getBytes()); in onCreateView()
/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/qns/
DWfcQnsWebPortalFragment.java44 public static WfcQnsWebPortalFragment newInstance(String url) { in newInstance() argument
48 args.putString(URL_KEY, url); in newInstance()
61 String url = arguments.getString(URL_KEY); in onCreateView() local
70 public boolean shouldOverrideUrlLoading(WebView view, String url) { in onCreateView()
76 public void onPageStarted(WebView webview, String url, Bitmap favicon) { in onCreateView()
86 public void onPageFinished(WebView view, String url) { in onCreateView()
91 super.onPageFinished(view, url); in onCreateView()
101 webView.loadUrl(url); in onCreateView()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DDocumentImagePicker.java82 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/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/events/
DEventUrlHelper.java77 public static EventUrlPayload getEventFromOdpEventUrl(@NonNull String url) throws Exception { in getEventFromOdpEventUrl() argument
78 Uri uri = Uri.parse(url); in getEventFromOdpEventUrl()
80 if (encryptedEvent == null || !isOdpUrl(url)) { in getEventFromOdpEventUrl()
81 throw new IllegalArgumentException("Invalid url: " + url); in getEventFromOdpEventUrl()
91 public static boolean isOdpUrl(@NonNull String url) { in isOdpUrl() argument
92 Uri uri = Uri.parse(url); in isOdpUrl()
/packages/apps/ManagedProvisioning/studio-dev/ManagedProvisioningGradleProject/
Dsettings.gradle.kts19 url = uri("${ANDROID_RELATIVE_TOP}/prebuilts/sdk/current/androidx/m2repository") in <lambda>()
23 url = uri("${ANDROID_RELATIVE_TOP}/prebuilts/sdk/current/androidx-legacy/m2repository") in <lambda>()
27 url = uri("${ANDROID_RELATIVE_TOP}/prebuilts/misc/common/androidx-test") in <lambda>()
31 url = uri("${ANDROID_RELATIVE_TOP}/prebuilts/sdk/current/extras/material-design-x") in <lambda>()
35 url = in <lambda>()
38 maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots") } in <lambda>()
/packages/apps/Car/LinkViewer/src/com/android/car/linkviewer/
DLinkViewerActivity.java60 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/java/com/android/server/wifi/hotspot2/soap/
DHttpsTransport.java36 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()

12345678910>>...12