Home
last modified time | relevance | path

Searched refs:getScheme (Results 1 – 25 of 119) sorted by relevance

12345

/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/
DScheme.java35 return CONTENT.equals(uri.getScheme()); in isContent()
39 return FILE.equals(uri.getScheme()); in isFile()
43 return HTTP.equals(uri.getScheme()); in isHttp()
47 return HTTPS.equals(uri.getScheme()); in isHttps()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DUriUtils.java120 return ContentResolver.SCHEME_ANDROID_RESOURCE.equals(uri.getScheme()); in isAndroidResourceUri()
152 return uri == null ? false : SCHEME_ACCOUNT_IMAGE.equals(uri.getScheme()); in isAccountImageUri()
200 return ContentResolver.SCHEME_CONTENT.equals(uri.getScheme()) || in isContentUri()
201 ContentResolver.SCHEME_FILE.equals(uri.getScheme()); in isContentUri()
208 return SCHEME_SHORTCUT_ICON_RESOURCE.equals(uri.getScheme()); in isShortcutIconResourceUri()
243 String scheme = resourceUri.getScheme() == null ? null in isWebUri()
244 : resourceUri.getScheme().toLowerCase(); in isWebUri()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DUri_BuilderTest.java28 assertEquals("http", uri.getScheme()); in testBuilderOperations()
38 assertEquals("mailto", uri.getScheme()); in testBuilderOperations()
51 assertEquals("http", uri.getScheme()); in testBuilderOperations()
61 assertEquals("mailto", uri.getScheme()); in testBuilderOperations()
DUriTest.java55 assertEquals("robert", u.getScheme()); in testBuildUpon()
67 assertEquals("foo", b.getScheme()); in testBuildUpon()
76 assertEquals("foo", b.getScheme()); in testBuildUpon()
82 assertEquals("scheme", b.getScheme()); in testBuildUpon()
348 assertEquals("mailto", uri.getScheme()); in testOpaqueUri()
475 assertEquals(scheme, uri.getScheme()); in compareHierarchical()
/packages/apps/Messaging/src/com/android/messaging/util/
DUriUtil.java83 final String scheme = uri.getScheme(); in isLocalResourceUri()
93 final String scheme = uri.getScheme(); in isBugleAppResource()
98 return uri != null && TextUtils.equals(uri.getScheme(), ContentResolver.SCHEME_FILE); in isFileUri()
117 return SUPPORTED_SCHEME.contains(uri.getScheme()); in isLocalUri()
127 return TextUtils.equals(ContentResolver.SCHEME_CONTENT, uri.getScheme()) in isMediaStoreUri()
323 return uri != null && SMS_MMS_SCHEMES.contains(uri.getScheme()); in isSmsMmsUri()
/packages/apps/Nfc/src/com/android/nfc/beam/
DMimeTypeUtil.java32 if (uri.getScheme() == null) return null; in getMimeTypeForUri()
34 if (uri.getScheme().equals(ContentResolver.SCHEME_CONTENT)) { in getMimeTypeForUri()
37 } else if (uri.getScheme().equals(ContentResolver.SCHEME_FILE)) { in getMimeTypeForUri()
/packages/apps/Tag/src/com/android/apps/tag/record/
DUriRecord.java71 String scheme = mUri.getScheme(); in getIntentForUri()
82 String scheme = mUri.getScheme(); in getPrettyUriString()
119 if (mUri.getScheme().equalsIgnoreCase("file")) { in onClick()
177 if (mUri != null && mUri.getScheme().equalsIgnoreCase("file") && in requestPermissionIfNeeded()
/packages/services/BuiltInPrintService/src/com/android/bips/
DLocalPrintJob.java180 if (IPPS_SCHEME.equals(path.getScheme())) { in onPrinterFound()
251 if (IPPS_SCHEME.equals(newUri.getScheme()) && newUri.getPort() > 0 && in deliver()
252 IPP_SCHEME.equals(mPath.getScheme())) { in deliver()
258 if (mCapabilities.certificate != null && !IPPS_SCHEME.equals(mPath.getScheme())) { in deliver()
/packages/services/Telecomm/src/com/android/server/telecom/callredirection/
DCallRedirectionProcessorHelper.java158 return Uri.fromParts(handle.getScheme(), number, null); in formatNumberToE164()
174 return Uri.fromParts(handle.getScheme(), number, null); in removePostDialDigits()
184 .scheme(gatewayUri.getScheme()) in getGatewayInfoFromGatewayUri()
/packages/services/Telephony/tests/src/com/android/services/telephony/
DConferenceParticipantConnectionTest.java79 assertEquals(expected.getScheme(), actual.getScheme()); in assertUrisEqual()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DUriImage.java94 String scheme = mUri.getScheme(); in openOrDownloadInner()
237 return ContentResolver.SCHEME_FILE.equals(mUri.getScheme()); in isSharable()
260 if (ContentResolver.SCHEME_FILE.equals(mUri.getScheme())) { in getDetails()
/packages/apps/Nfc/src/com/android/nfc/
DBeamShareActivity.java132 if (uri.getScheme().equalsIgnoreCase("content") || in tryUri()
133 uri.getScheme().equalsIgnoreCase("file")) { in tryUri()
223 if (uri.getScheme().equalsIgnoreCase("file") && in parseShareIntentAndFinish()
/packages/apps/Gallery/src/com/android/camera/gallery/
DUriImage.java55 if (mUri.getScheme().equals("file")) { in getInputStream()
67 if (mUri.getScheme().equals("file")) { in getPFD()
DBaseImageList.java180 return Util.equals(base.getScheme(), uri.getScheme()) in isChildImageUri()
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiQrCode.java207 public String getScheme() { in getScheme() method in WifiQrCode
239 if (SCHEME_DPP.equals(wifiQrCode.getScheme())) { in getValidWifiDppQrCodeOrNull()
DAdbQrCode.java36 if (!WifiQrCode.SCHEME_ZXING_WIFI_NETWORK_CONFIG.equals(getScheme())) { in AdbQrCode()
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
DManualDiscovery.java102 String givenScheme = printerUri.getScheme(); in addManualPrinter()
107 String scheme = uri.getScheme(); in addManualPrinter()
/packages/apps/Gallery/src/com/android/camera/
DMovieViewControl.java88 String scheme = mUri.getScheme(); in MovieViewControl()
138 String scheme = uri.getScheme(); in uriSupportsBookmarks()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DPackageIconLoader.java110 if (ContentResolver.SCHEME_ANDROID_RESOURCE.equals(uri.getScheme())) { in getIcon()
144 String scheme = uri.getScheme(); in getDrawable()
/packages/apps/Dialer/java/com/android/dialer/precall/impl/
DCallingAccountSelector.java99 switch (builder.getUri().getScheme()) { in runWithUi()
117 "unable to process scheme " + builder.getUri().getScheme()); in runWithUi()
DMalformedNumberRectifier.java56 if (!PhoneAccount.SCHEME_TEL.equals(builder.getUri().getScheme())) { in runWithoutUi()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DDeepLinkUtils.java32 return data != null && SCHEME.equals(data.getScheme()) in isDeepLink()
/packages/services/Telephony/testapps/TestRcsApp/TestApp/src/com/google/android/sample/rcsclient/
DFileUploadActivity.java276 if (uri.getScheme().equals(ContentResolver.SCHEME_FILE)) { in uriToFile()
278 } else if (uri.getScheme().equals(ContentResolver.SCHEME_CONTENT)) { in uriToFile()
/packages/apps/Settings/src/com/android/settings/notification/app/
DNotificationSoundPreference.java68 } else if(ContentResolver.SCHEME_ANDROID_RESOURCE.equals(uri.getScheme())) { in updateRingtoneName()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/inspector/
DGpsCoordinatesTextClassifierTest.java109 wasClassified = "geo".equals(test.getIntent().getData().getScheme()); in assertClassifiedGeo()

12345