Home
last modified time | relevance | path

Searched refs:value (Results 1 – 25 of 308) sorted by relevance

12345678910>>...13

/developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/rich/
DChannelXMLParser.java87 String value = parser.getAttributeValue(i); in parseTvInputDetail() local
89 displayName = value; in parseTvInputDetail()
91 name = value; in parseTvInputDetail()
93 description = value; in parseTvInputDetail()
95 logoThumbUrl = value; in parseTvInputDetail()
97 logoBackgroundUrl = value; in parseTvInputDetail()
128 String value = parser.getAttributeValue(i); in parseChannel() local
132 displayNumber = value; in parseChannel()
133 hashString.append(value).append(";"); in parseChannel()
135 displayName = value; in parseChannel()
[all …]
/developers/build/prebuilts/gradle/LNotifications/Application/src/main/java/com/example/android/lnotifications/
DOtherMetadataFragment.java185 .setPriority(priority.value) in createNotification()
186 .setCategory(category.value) in createNotification()
187 .setContentText(String.format("Category %s, Priority %s", category.value, in createNotification()
315 private final String value; field in OtherMetadataFragment.Category
317 Category(String value) { in Category() argument
318 this.value = value; in Category()
323 return value; in toString()
339 private final int value; field in OtherMetadataFragment.Priority
341 Priority(int value) { in Priority() argument
342 this.value = value; in Priority()
/developers/samples/android/notification/LNotifications/Application/src/main/java/com/example/android/lnotifications/
DOtherMetadataFragment.java185 .setPriority(priority.value) in createNotification()
186 .setCategory(category.value) in createNotification()
187 .setContentText(String.format("Category %s, Priority %s", category.value, in createNotification()
315 private final String value; field in OtherMetadataFragment.Category
317 Category(String value) { in Category() argument
318 this.value = value; in Category()
323 return value; in toString()
339 private final int value; field in OtherMetadataFragment.Priority
341 Priority(int value) { in Priority() argument
342 this.value = value; in Priority()
/developers/build/prebuilts/gradle/AppRestrictionEnforcer/Application/src/main/java/com/example/android/apprestrictionenforcer/
DItemAddFragment.java37 void onItemAdded(String key, String value); in onItemAdded() argument
68 mEditValue = (EditText) view.findViewById(R.id.value); in onViewCreated()
89 String value = mEditValue.getText().toString(); in addItem() local
90 if (TextUtils.isEmpty(value)) { in addItem()
95 mListener.onItemAdded(key, value); in addItem()
/developers/samples/android/admin/AppRestrictionEnforcer/Application/src/main/java/com/example/android/apprestrictionenforcer/
DItemAddFragment.java37 void onItemAdded(String key, String value); in onItemAdded() argument
68 mEditValue = (EditText) view.findViewById(R.id.value); in onViewCreated()
89 String value = mEditValue.getText().toString(); in addItem() local
90 if (TextUtils.isEmpty(value)) { in addItem()
95 mListener.onItemAdded(key, value); in addItem()
/developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/
DImageWorker.java81 BitmapDrawable value = null; in loadImage() local
84 value = mImageCache.getBitmapFromMemCache(String.valueOf(data)); in loadImage()
87 if (value != null) { in loadImage()
89 imageView.setImageDrawable(value); in loadImage()
346 protected void onPostExecute(BitmapDrawable value) { in onPostExecute() argument
351 value = null; in onPostExecute()
355 if (value != null && imageView != null) { in onPostExecute()
360 setImageDrawable(imageView, value); in onPostExecute()
369 protected void onCancelled(BitmapDrawable value) { in onCancelled() argument
370 super.onCancelled(value); in onCancelled()
DImageCache.java180 protected int sizeOf(String key, BitmapDrawable value) { in init()
181 final int bitmapSize = getBitmapSize(value) / 1024; in init()
235 public void addBitmapToCache(String data, BitmapDrawable value) { in addBitmapToCache() argument
237 if (data == null || value == null) { in addBitmapToCache()
243 if (RecyclingBitmapDrawable.class.isInstance(value)) { in addBitmapToCache()
246 ((RecyclingBitmapDrawable) value).setIsCached(true); in addBitmapToCache()
248 mMemoryCache.put(data, value); in addBitmapToCache()
262 value.getBitmap().compress( in addBitmapToCache()
613 public static int getBitmapSize(BitmapDrawable value) { in getBitmapSize() argument
614 Bitmap bitmap = value.getBitmap(); in getBitmapSize()
/developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/
DImageWorker.java81 BitmapDrawable value = null; in loadImage() local
84 value = mImageCache.getBitmapFromMemCache(String.valueOf(data)); in loadImage()
87 if (value != null) { in loadImage()
89 imageView.setImageDrawable(value); in loadImage()
346 protected void onPostExecute(BitmapDrawable value) { in onPostExecute() argument
351 value = null; in onPostExecute()
355 if (value != null && imageView != null) { in onPostExecute()
360 setImageDrawable(imageView, value); in onPostExecute()
369 protected void onCancelled(BitmapDrawable value) { in onCancelled() argument
370 super.onCancelled(value); in onCancelled()
DImageCache.java180 protected int sizeOf(String key, BitmapDrawable value) { in init()
181 final int bitmapSize = getBitmapSize(value) / 1024; in init()
235 public void addBitmapToCache(String data, BitmapDrawable value) { in addBitmapToCache() argument
237 if (data == null || value == null) { in addBitmapToCache()
243 if (RecyclingBitmapDrawable.class.isInstance(value)) { in addBitmapToCache()
246 ((RecyclingBitmapDrawable) value).setIsCached(true); in addBitmapToCache()
248 mMemoryCache.put(data, value); in addBitmapToCache()
262 value.getBitmap().compress( in addBitmapToCache()
613 public static int getBitmapSize(BitmapDrawable value) { in getBitmapSize() argument
614 Bitmap bitmap = value.getBitmap(); in getBitmapSize()
/developers/samples/android/admin/NfcProvisioning/Application/src/main/java/com/example/android/nfcprovisioning/
DNfcProvisioningFragment.java113 String value; in createNdefMessage() local
116 value = e.getValue(); in createNdefMessage()
117 if (!value.startsWith("\"") || !value.endsWith("\"")) { in createNdefMessage()
118 value = "\"" + value + "\""; in createNdefMessage()
121 value = e.getValue(); in createNdefMessage()
123 properties.put(e.getKey(), value); in createNdefMessage() local
DProvisioningValuesLoader.java127 String value = line.substring(position + 1); in loadFromFile() local
128 values.put(key, value); in loadFromFile()
129 Log.d(TAG, key + "=" + value); in loadFromFile()
187 private static <Key, Value> void putIfMissing(HashMap<Key, Value> map, Key key, Value value) { in putIfMissing() argument
189 map.put(key, value); in putIfMissing()
/developers/build/prebuilts/gradle/NfcProvisioning/Application/src/main/java/com/example/android/nfcprovisioning/
DNfcProvisioningFragment.java113 String value; in createNdefMessage() local
116 value = e.getValue(); in createNdefMessage()
117 if (!value.startsWith("\"") || !value.endsWith("\"")) { in createNdefMessage()
118 value = "\"" + value + "\""; in createNdefMessage()
121 value = e.getValue(); in createNdefMessage()
123 properties.put(e.getKey(), value); in createNdefMessage() local
DProvisioningValuesLoader.java127 String value = line.substring(position + 1); in loadFromFile() local
128 values.put(key, value); in loadFromFile()
129 Log.d(TAG, key + "=" + value); in loadFromFile()
187 private static <Key, Value> void putIfMissing(HashMap<Key, Value> map, Key key, Value value) { in putIfMissing() argument
189 map.put(key, value); in putIfMissing()
/developers/samples/android/wearable/wear/JumpingJack/Wearable/src/main/java/com/example/android/wearable/jumpingjack/
DUtils.java48 public static void saveCounterToPreference(Context context, int value) { in saveCounterToPreference() argument
50 if (value < 0) { in saveCounterToPreference()
54 pref.edit().putInt(PREF_KEY_COUNTER, value).apply(); in saveCounterToPreference()
/developers/build/prebuilts/gradle/JumpingJack/Wearable/src/main/java/com/example/android/wearable/jumpingjack/
DUtils.java48 public static void saveCounterToPreference(Context context, int value) { in saveCounterToPreference() argument
50 if (value < 0) { in saveCounterToPreference()
54 pref.edit().putInt(PREF_KEY_COUNTER, value).apply(); in saveCounterToPreference()
/developers/build/prebuilts/gradle/AppRestrictions/Application/src/main/java/com/example/android/apprestrictions/
DCustomRestrictionsFragment.java127 for (String value : entry.getAllSelectedStrings()) { in onActivityCreated()
128 set.add(value); in onActivityCreated()
162 for (String value : values) { in onActivityCreated()
163 set.add(value); in onActivityCreated()
189 for (String value : (Set<String>) newValue) { in onPreferenceChange()
190 selectedStrings[i++] = value; in onPreferenceChange()
/developers/samples/android/content/multiuser/AppRestrictions/Application/src/main/java/com/example/android/apprestrictions/
DCustomRestrictionsFragment.java127 for (String value : entry.getAllSelectedStrings()) { in onActivityCreated()
128 set.add(value); in onActivityCreated()
162 for (String value : values) { in onActivityCreated()
163 set.add(value); in onActivityCreated()
189 for (String value : (Set<String>) newValue) { in onPreferenceChange()
190 selectedStrings[i++] = value; in onPreferenceChange()
/developers/build/prebuilts/gradle/CustomTransition/Application/src/main/java/com/example/android/customtransition/
DChangeColor.java101 Object value = animation.getAnimatedValue(); in createAnimator()
104 if (null != value) { in createAnimator()
105 view.setBackgroundColor((Integer) value); in createAnimator()
/developers/samples/android/ui/transition/CustomTransition/Application/src/main/java/com/example/android/customtransition/
DChangeColor.java101 Object value = animation.getAnimatedValue(); in createAnimator()
104 if (null != value) { in createAnimator()
105 view.setBackgroundColor((Integer) value); in createAnimator()
/developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/
DAlbumArtCache.java63 protected int sizeOf(String key, Bitmap[] value) { in AlbumArtCache()
64 return value[BIG_BITMAP_INDEX].getByteCount() in AlbumArtCache()
65 + value[ICON_BITMAP_INDEX].getByteCount(); in AlbumArtCache()
/developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/
DAlbumArtCache.java63 protected int sizeOf(String key, Bitmap[] value) { in AlbumArtCache()
64 return value[BIG_BITMAP_INDEX].getByteCount() in AlbumArtCache()
65 + value[ICON_BITMAP_INDEX].getByteCount(); in AlbumArtCache()
/developers/build/prebuilts/gradle/RenderScriptIntrinsic/Application/src/main/java/com/example/android/renderscriptintrinsic/
DMainActivity.java177 Allocation outAllocation, Bitmap bitmapOut, float value) { in performFilter() argument
183 mScriptBlur.setRadius(value); in performFilter()
192 float f1 = value; in performFilter()
217 float cos = (float) Math.cos((double) value); in performFilter()
218 float sin = (float) Math.sin((double) value); in performFilter()
/developers/samples/android/renderScript/RenderScriptIntrinsic/Application/src/main/java/com/example/android/renderscriptintrinsic/
DMainActivity.java177 Allocation outAllocation, Bitmap bitmapOut, float value) { in performFilter() argument
183 mScriptBlur.setRadius(value); in performFilter()
192 float f1 = value; in performFilter()
217 float cos = (float) Math.cos((double) value); in performFilter()
218 float sin = (float) Math.sin((double) value); in performFilter()
/developers/build/prebuilts/gradle/MidiScope/Application/src/main/java/com/example/android/midiscope/
DMidiPrinter.java96 Object value = properties.get(key); in formatDeviceInfo() local
97 sb.append(key).append(" = ").append(value).append('\n'); in formatDeviceInfo()
/developers/samples/android/media/MidiScope/Application/src/main/java/com/example/android/midiscope/
DMidiPrinter.java96 Object value = properties.get(key); in formatDeviceInfo() local
97 sb.append(key).append(" = ").append(value).append('\n'); in formatDeviceInfo()

12345678910>>...13