Home
last modified time | relevance | path

Searched refs:uriString (Results 1 – 25 of 47) sorted by relevance

12

/packages/apps/TV/src/com/android/tv/util/images/
DImageLoader.java143 Context context, final String uriString, final int maxWidth, final int maxHeight) { in prefetchBitmap() argument
144 if (DEBUG) Log.d(TAG, "prefetchBitmap() " + uriString); in prefetchBitmap()
146 doLoadBitmap(context, uriString, maxWidth, maxHeight, null, AsyncTask.SERIAL_EXECUTOR); in prefetchBitmap()
154 uriString, in prefetchBitmap()
172 Context context, String uriString, ImageLoaderCallback<T> callback) { in loadBitmap() argument
173 return loadBitmap(context, uriString, Integer.MAX_VALUE, Integer.MAX_VALUE, callback); in loadBitmap()
187 String uriString, in loadBitmap() argument
192 Log.d(TAG, "loadBitmap() " + uriString); in loadBitmap()
195 context, uriString, maxWidth, maxHeight, callback, IMAGE_THREAD_POOL_EXECUTOR); in loadBitmap()
200 String uriString, in doLoadBitmap() argument
[all …]
DBitmapUtils.java109 Context context, String uriString, int reqWidth, int reqHeight) { in decodeSampledBitmapFromUriString() argument
110 if (TextUtils.isEmpty(uriString)) { in decodeSampledBitmapFromUriString()
114 Uri uri = Uri.parse(uriString).normalizeScheme(); in decodeSampledBitmapFromUriString()
126 urlConnection = getUrlConnection(uriString); in decodeSampledBitmapFromUriString()
141 if (DEBUG) Log.i(TAG, "Failed to rewind stream: " + uriString, e); in decodeSampledBitmapFromUriString()
148 urlConnection = getUrlConnection(uriString); in decodeSampledBitmapFromUriString()
161 return new ScaledBitmapInfo(uriString, bitmap, options.inSampleSize); in decodeSampledBitmapFromUriString()
165 Log.w(TAG, "Failed to open stream: " + uriString, e); in decodeSampledBitmapFromUriString()
169 Log.e(TAG, "Failed to open stream: " + uriString, e); in decodeSampledBitmapFromUriString()
177 private static URLConnection getUrlConnection(String uriString) throws IOException { in getUrlConnection() argument
[all …]
/packages/apps/PhoneCommon/src/com/android/phone/common/util/
DSettingsUtil.java64 String uriString = prefs.getString(key, DEFAULT_NOTIFICATION_URI_STRING); in updateRingtoneName() local
65 if (TextUtils.isEmpty(uriString)) { in updateRingtoneName()
69 if (uriString.equals(DEFAULT_NOTIFICATION_URI_STRING)) { in updateRingtoneName()
76 ringtoneUri = Uri.parse(uriString); in updateRingtoneName()
/packages/apps/Dialer/java/com/android/dialer/util/
DSettingsUtil.java56 String uriString = prefs.getString(key, DEFAULT_NOTIFICATION_URI_STRING); in updateRingtoneName() local
57 if (TextUtils.isEmpty(uriString)) { in updateRingtoneName()
61 if (uriString.equals(DEFAULT_NOTIFICATION_URI_STRING)) { in updateRingtoneName()
68 ringtoneUri = Uri.parse(uriString); in updateRingtoneName()
DUriUtils.java43 public static Uri parseUriOrNull(String uriString) { in parseUriOrNull() argument
44 if (uriString == null) { in parseUriOrNull()
47 return Uri.parse(uriString); in parseUriOrNull()
/packages/apps/DeskClock/src/com/android/deskclock/data/
DSettingsDAO.kt175 val uriString: String? = prefs.getString(SettingsActivity.KEY_TIMER_RINGTONE, null) in getTimerRingtoneUri() constant
176 return if (uriString == null) defaultUri else Uri.parse(uriString) in getTimerRingtoneUri()
205 val uriString: String? = prefs.getString(KEY_DEFAULT_ALARM_RINGTONE_URI, null) in getDefaultAlarmRingtoneUri() constant
206 return if (uriString == null) { in getDefaultAlarmRingtoneUri()
209 Uri.parse(uriString) in getDefaultAlarmRingtoneUri()
DSettingsDAO.java186 final String uriString = prefs.getString(SettingsActivity.KEY_TIMER_RINGTONE, null); in getTimerRingtoneUri() local
187 return uriString == null ? defaultUri : Uri.parse(uriString); in getTimerRingtoneUri()
216 final String uriString = prefs.getString(KEY_DEFAULT_ALARM_RINGTONE_URI, null); in getDefaultAlarmRingtoneUri() local
217 return uriString == null ? Settings.System.DEFAULT_ALARM_ALERT_URI : Uri.parse(uriString); in getDefaultAlarmRingtoneUri()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/
DImageRequestTest.java53 final String uriString = ContentResolver.SCHEME_ANDROID_RESOURCE + "://" + in testLoadImageUnspecifiedSize() local
55 final Uri uri = Uri.parse(uriString); in testLoadImageUnspecifiedSize()
81 final String uriString = ContentResolver.SCHEME_ANDROID_RESOURCE + "://" + in testLoadImageWithDownsampling() local
83 final Uri uri = Uri.parse(uriString); in testLoadImageWithDownsampling()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterysaver/
DBatterySaverSettings.java127 public SupportPageLearnMoreSpan(Fragment fragment, String uriString) { in SupportPageLearnMoreSpan() argument
132 mUriString = uriString; in SupportPageLearnMoreSpan()
158 public static CharSequence linkify(Spannable msg, Fragment fragment, String uriString) { in linkify() argument
165 new SupportPageLearnMoreSpan(fragment, uriString); in linkify()
/packages/apps/Car/LensPicker/src/com/android/support/car/lenspicker/
DLensPickerUtils.java73 String uriString = launchIntent.toUri(Intent.URI_INTENT_SCHEME); in launch() local
74 editor.putString(LAST_LAUNCHED_INTENT_KEY, uriString); in launch()
92 String uriString = launchIntent.toUri(Intent.URI_INTENT_SCHEME); in saveLastLaunchedAppInfo() local
93 editor.putString(LAST_LAUNCHED_INTENT_KEY, uriString); in saveLastLaunchedAppInfo()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/slices/
DSliceRelayReceiver.java34 final String uriString = intent.getStringExtra(SliceBroadcastRelay.EXTRA_URI); in onReceive() local
35 if (!TextUtils.isEmpty(uriString)) { in onReceive()
36 final Uri uri = Uri.parse(uriString); in onReceive()
/packages/apps/Settings/src/com/android/settings/slices/
DSliceRelayReceiver.java34 final String uriString = intent.getStringExtra(SliceBroadcastRelay.EXTRA_URI); in onReceive() local
35 if (!TextUtils.isEmpty(uriString)) { in onReceive()
36 final Uri uri = Uri.parse(uriString); in onReceive()
/packages/apps/Gallery/src/com/android/camera/
DImageManager.java342 String uriString = (uri != null) ? uri.toString() : ""; in makeImageList() local
344 if (uriString.startsWith("content://media/external/video")) { in makeImageList()
347 } else if (isSingleImageMode(uriString)) { in makeImageList()
356 static boolean isSingleImageMode(String uriString) { in isSingleImageMode() argument
357 return !uriString.startsWith( in isSingleImageMode()
359 && !uriString.startsWith( in isSingleImageMode()
/packages/apps/TV/src/com/android/tv/util/
DOnboardingUtils.java36 String uriString = uiFlags.moreChannelsUrl(); in createOnlineStoreIntent() local
37 return TextUtils.isEmpty(uriString) in createOnlineStoreIntent()
39 : new Intent(Intent.ACTION_VIEW, Uri.parse(uriString)); in createOnlineStoreIntent()
/packages/services/BuiltInPrintService/src/com/android/bips/ui/
DAddManualPrinterDialog.java137 String uriString = mHostnameView.getText().toString(); in addPrinter() local
139 if (uriString.contains("://")) { in addPrinter()
140 printerUri = Uri.parse(uriString); in addPrinter()
143 printerUri = Uri.parse("://" + uriString); in addPrinter()
/packages/apps/Contacts/src/com/android/contacts/util/
DUriUtils.java43 public static Uri parseUriOrNull(String uriString) { in parseUriOrNull() argument
44 if (uriString == null) { in parseUriOrNull()
47 return Uri.parse(uriString); in parseUriOrNull()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/model/
DCandidateSuggestion.java261 final String uriString = metadata.getString(META_DATA_PREFERENCE_SUMMARY_URI); in getOverrideData() local
262 final Bundle bundle = getBundleFromUri(uriString); in getOverrideData()
269 private Bundle getBundleFromUri(String uriString) { in getBundleFromUri() argument
270 final Uri uri = Uri.parse(uriString); in getBundleFromUri()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DRingtonePreference.java197 final String uriString = getPersistedString(null); in onRestoreRingtone() local
198 return !TextUtils.isEmpty(uriString) ? Uri.parse(uriString) : null; in onRestoreRingtone()
/packages/apps/Settings/src/com/android/settings/
DRingtonePreference.java197 final String uriString = getPersistedString(null); in onRestoreRingtone() local
198 return !TextUtils.isEmpty(uriString) ? Uri.parse(uriString) : null; in onRestoreRingtone()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/quickcontact/
DQuickContactTestsActivity.java88 final String uriString = sharedPreferences.getString(PREF_SETTING_URI, null); in onCreate() local
89 if (uriString != null) { in onCreate()
90 mContactUri = Uri.parse(uriString); in onCreate()
/packages/services/Telecomm/src/com/android/server/telecom/components/
DUserCallIntentProcessor.java102 String uriString = handle.getSchemeSpecificPart(); in processOutgoingCallIntent() local
105 if (PhoneAccount.SCHEME_TEL.equals(scheme) && PhoneNumberUtils.isUriNumber(uriString)) { in processOutgoingCallIntent()
106 handle = Uri.fromParts(PhoneAccount.SCHEME_SIP, uriString, null); in processOutgoingCallIntent()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DAvrcpItem.java187 String uriString = coverArtUri != null ? coverArtUri.toString() : null; in toMediaMetadata() local
197 metaDataBuilder.putString(MediaMetadataCompat.METADATA_KEY_DISPLAY_ICON_URI, uriString); in toMediaMetadata()
198 metaDataBuilder.putString(MediaMetadataCompat.METADATA_KEY_ART_URI, uriString); in toMediaMetadata()
199 metaDataBuilder.putString(MediaMetadataCompat.METADATA_KEY_ALBUM_ART_URI, uriString); in toMediaMetadata()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DOpenHelper.java202 final String uriString = cursor.getString(cursor.getColumnIndexOrThrow(column)); in getCursorUri() local
203 return uriString == null ? null : Uri.parse(uriString); in getCursorUri()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowTileUtils.java38 protected static String getTextFromUri(Context context, String uriString, in getTextFromUri() argument
45 String uriString, Map<String, IContentProvider> providerMap) { in getIconFromUri() argument
/packages/apps/TV/src/com/android/tv/data/
DChannelImpl.java599 String uriString = getImageUriString(type); in prefetchImage() local
600 if (!TextUtils.isEmpty(uriString)) { in prefetchImage()
601 ImageLoader.prefetchBitmap(context, uriString, maxWidth, maxHeight); in prefetchImage()
626 String uriString = getImageUriString(type); in loadBitmap() local
627 ImageLoader.loadBitmap(context, uriString, maxWidth, maxHeight, callback); in loadBitmap()

12