Home
last modified time | relevance | path

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

12

/packages/apps/TV/src/com/android/tv/util/images/
DImageLoader.java139 Context context, final String uriString, final int maxWidth, final int maxHeight) { in prefetchBitmap() argument
140 if (DEBUG) Log.d(TAG, "prefetchBitmap() " + uriString); in prefetchBitmap()
142 doLoadBitmap(context, uriString, maxWidth, maxHeight, null, AsyncTask.SERIAL_EXECUTOR); in prefetchBitmap()
150 uriString, in prefetchBitmap()
168 Context context, String uriString, ImageLoaderCallback callback) { in loadBitmap() argument
169 return loadBitmap(context, uriString, Integer.MAX_VALUE, Integer.MAX_VALUE, callback); in loadBitmap()
183 String uriString, in loadBitmap() argument
188 Log.d(TAG, "loadBitmap() " + uriString); in loadBitmap()
191 context, uriString, maxWidth, maxHeight, callback, IMAGE_THREAD_POOL_EXECUTOR); in loadBitmap()
196 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/UnifiedEmail/src/com/android/mail/browse/
DConversationCursor.java912 private void cacheValue(String uriString, String columnName, Object value) { in cacheValue() argument
922 ContentValues map = mCacheMap.get(uriString); in cacheValue()
926 mCacheMap.put(uriString, map); in cacheValue()
935 LogUtils.i(LOG_TAG, "Deleted %s, incremented deleted count=%d", uriString, in cacheValue()
942 LogUtils.i(LOG_TAG, "Undeleted %s, decremented deleted count=%d", uriString, in cacheValue()
949 LogUtils.i(LOG_TAG, "Undeleted %s, IGNORING, deleted count=%d", uriString, in cacheValue()
958 LogUtils.i(LOG_TAG, "Caching value for %s: %s", uriString, columnName); in cacheValue()
1537 String uriString = uriStringFromCachingUri(uri); in deleteLocal() local
1538 conversationCursor.cacheValue(uriString, DELETED_COLUMN, true); in deleteLocal()
1544 String uriString = uriStringFromCachingUri(uri); in undeleteLocal() local
[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.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/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.java103 String uriString = handle.getSchemeSpecificPart(); in processOutgoingCallIntent() local
106 if (PhoneAccount.SCHEME_TEL.equals(scheme) && PhoneNumberUtils.isUriNumber(uriString)) { in processOutgoingCallIntent()
107 handle = Uri.fromParts(PhoneAccount.SCHEME_SIP, uriString, null); in processOutgoingCallIntent()
/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()
/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/Email/emailcommon/src/com/android/emailcommon/provider/
DHostAuth.java528 public void setHostAuthFromString(String uriString) in setHostAuthFromString() argument
530 URI uri = new URI(uriString); in setHostAuthFromString()
565 public static String getProtocolFromString(String uriString) { in getProtocolFromString() argument
566 final Uri uri = Uri.parse(uriString); in getProtocolFromString()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallIntentProcessor.java109 String uriString = handle.getSchemeSpecificPart(); in processOutgoingCallIntent() local
112 if (PhoneAccount.SCHEME_TEL.equals(scheme) && PhoneNumberUtils.isUriNumber(uriString)) { in processOutgoingCallIntent()
113 handle = Uri.fromParts(PhoneAccount.SCHEME_SIP, uriString, null); in processOutgoingCallIntent()

12