Home
last modified time | relevance | path

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

12345

/developers/samples/android/ui/graphics/PdfRendererBasic/kotlinApp/Application/src/androidTest/java/com/example/android/pdfrendererbasic/
DPdfRendererBasicViewModelTest.kt39 assertThat(viewModel.pageInfo.value).isEqualTo(0 to 10) in allPages()
40 assertThat(viewModel.previousEnabled.value).isFalse() in allPages()
41 assertThat(viewModel.nextEnabled.value).isTrue() in allPages()
42 assertThat(viewModel.pageBitmap.value).isNotNull() in allPages()
44 assertThat(viewModel.pageInfo.value).isEqualTo(9 to 10) in allPages()
45 assertThat(viewModel.previousEnabled.value).isTrue() in allPages()
46 assertThat(viewModel.nextEnabled.value).isFalse() in allPages()
47 assertThat(viewModel.pageBitmap.value).isNotNull() in allPages()
/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/samples/android/notification/Bubbles/app/src/main/java/com/example/android/bubbles/ui/chat/
DChatViewModel.kt44 set(value) { in <lambda>()
45 field = value in <lambda>()
46 chatId.value?.let { id -> in <lambda>()
47 if (value) { in <lambda>()
75 value = repository.canBubble() in <lambda>()
80 chatId.value = id in <lambda>()
89 val id = chatId.value in <lambda>()
96 chatId.value?.let { id -> in <lambda>()
102 chatId.value?.let { id -> repository.deactivateChat(id) } in <lambda>()
/developers/build/prebuilts/gradle/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/
DCommonUtil.kt35 val value = data.get(key) in bundleToString() constant
36 if (value is Bundle) { in bundleToString()
37 bundleToString(builder, value) in bundleToString()
39 val string = if (value is Array<*>) Arrays.toString(value) else value in bundleToString()
/developers/samples/android/input/autofill/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/
DCommonUtil.kt35 val value = data.get(key) in bundleToString() constant
36 if (value is Bundle) { in bundleToString()
37 bundleToString(builder, value) in bundleToString()
39 val string = if (value is Array<*>) Arrays.toString(value) else value in bundleToString()
/developers/samples/android/input/autofill/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/
DUtil.java43 Object value = data.get(key); in bundleToString() local
44 if ((value instanceof Bundle)) { in bundleToString()
45 bundleToString(builder, (Bundle) value); in bundleToString()
47 builder.append((value instanceof Object[]) in bundleToString()
48 ? Arrays.toString((Object[]) value) : value); in bundleToString()
79 private static String getAutofillValueAndTypeAsString(AutofillValue value) { in getAutofillValueAndTypeAsString() argument
80 if (value == null) return "null"; in getAutofillValueAndTypeAsString()
82 StringBuilder builder = new StringBuilder(value.toString()).append('('); in getAutofillValueAndTypeAsString()
83 if (value.isText()) { in getAutofillValueAndTypeAsString()
85 } else if (value.isDate()) { in getAutofillValueAndTypeAsString()
[all …]
/developers/build/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/
DUtil.java43 Object value = data.get(key); in bundleToString() local
44 if ((value instanceof Bundle)) { in bundleToString()
45 bundleToString(builder, (Bundle) value); in bundleToString()
47 builder.append((value instanceof Object[]) in bundleToString()
48 ? Arrays.toString((Object[]) value) : value); in bundleToString()
79 private static String getAutofillValueAndTypeAsString(AutofillValue value) { in getAutofillValueAndTypeAsString() argument
80 if (value == null) return "null"; in getAutofillValueAndTypeAsString()
82 StringBuilder builder = new StringBuilder(value.toString()).append('('); in getAutofillValueAndTypeAsString()
83 if (value.isText()) { in getAutofillValueAndTypeAsString()
85 } else if (value.isDate()) { in getAutofillValueAndTypeAsString()
[all …]
/developers/samples/android/input/autofill/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/view/autofillable/
DCreditCardExpirationDatePickerView.java91 AutofillValue value = AutofillValue.forDate(c.getTimeInMillis()); in getAutofillValue() local
92 if (DEBUG) Log.d(TAG, "getAutofillValue(): " + value); in getAutofillValue()
93 return value; in getAutofillValue()
97 public void autofill(AutofillValue value) { in autofill() argument
98 if (value == null || !value.isDate()) { in autofill()
99 Log.w(TAG, "autofill(): invalid value " + value); in autofill()
102 long time = value.getDateValue(); in autofill()
106 if (DEBUG) Log.d(TAG, "autofill(" + value + "): " + month + "/" + year); in autofill()
/developers/build/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/view/autofillable/
DCreditCardExpirationDatePickerView.java91 AutofillValue value = AutofillValue.forDate(c.getTimeInMillis()); in getAutofillValue() local
92 if (DEBUG) Log.d(TAG, "getAutofillValue(): " + value); in getAutofillValue()
93 return value; in getAutofillValue()
97 public void autofill(AutofillValue value) { in autofill() argument
98 if (value == null || !value.isDate()) { in autofill()
99 Log.w(TAG, "autofill(): invalid value " + value); in autofill()
102 long time = value.getDateValue(); in autofill()
106 if (DEBUG) Log.d(TAG, "autofill(" + value + "): " + month + "/" + year); in autofill()
/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/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/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/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/source/local/db/
DConverters.java36 public static IntList storedStringToIntList(String value) { in storedStringToIntList() argument
37 List<String> strings = Arrays.asList(value.split("\\s*,\\s*")); in storedStringToIntList()
60 public static StringList storedStringToStringList(String value) { in storedStringToStringList() argument
61 List<String> strings = Arrays.asList(value.split("\\s*,\\s*")); in storedStringToStringList()
/developers/build/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/source/local/db/
DConverters.java36 public static IntList storedStringToIntList(String value) { in storedStringToIntList() argument
37 List<String> strings = Arrays.asList(value.split("\\s*,\\s*")); in storedStringToIntList()
60 public static StringList storedStringToStringList(String value) { in storedStringToStringList() argument
61 List<String> strings = Arrays.asList(value.split("\\s*,\\s*")); in storedStringToStringList()
/developers/build/prebuilts/gradle/LNotifications/Application/src/main/java/com/example/android/lnotifications/
DOtherMetadataFragment.java182 .setPriority(priority.value) in createNotification()
183 .setCategory(category.value) in createNotification()
184 .setContentText(String.format("Category %s, Priority %s", category.value, in createNotification()
311 private final String value; field in OtherMetadataFragment.Category
313 Category(String value) { in Category() argument
314 this.value = value; in Category()
319 return value; in toString()
334 private final int value; field in OtherMetadataFragment.Priority
336 Priority(int value) { in Priority() argument
337 this.value = value; in Priority()
/developers/samples/android/notification/LNotifications/Application/src/main/java/com/example/android/lnotifications/
DOtherMetadataFragment.java182 .setPriority(priority.value) in createNotification()
183 .setCategory(category.value) in createNotification()
184 .setContentText(String.format("Category %s, Priority %s", category.value, in createNotification()
311 private final String value; field in OtherMetadataFragment.Category
313 Category(String value) { in Category() argument
314 this.value = value; in Category()
319 return value; in toString()
334 private final int value; field in OtherMetadataFragment.Priority
336 Priority(int value) { in Priority() argument
337 this.value = value; in Priority()
/developers/build/prebuilts/gradle/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/provider/
DComplicationToggleReceiver.java53 int value = sharedPreferences.getInt(preferenceKey, 0); in onReceive() local
56 value = (value + 1) % MAX_NUMBER; in onReceive()
59 editor.putInt(preferenceKey, value); in onReceive()
/developers/samples/android/wearable/wear/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/provider/
DComplicationToggleReceiver.java53 int value = sharedPreferences.getInt(preferenceKey, 0); in onReceive() local
56 value = (value + 1) % MAX_NUMBER; in onReceive()
59 editor.putInt(preferenceKey, value); in onReceive()
/developers/build/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/util/
DUtil.java52 Object value = data.get(key); in bundleToString() local
53 if ((value instanceof Bundle)) { in bundleToString()
54 bundleToString(builder, (Bundle) value); in bundleToString()
56 builder.append((value instanceof Object[]) in bundleToString()
57 ? Arrays.toString((Object[]) value) : value); in bundleToString()
88 private static String getAutofillValueAndTypeAsString(AutofillValue value) { in getAutofillValueAndTypeAsString() argument
89 if (value == null) return "null"; in getAutofillValueAndTypeAsString()
91 StringBuilder builder = new StringBuilder(value.toString()).append('('); in getAutofillValueAndTypeAsString()
92 if (value.isText()) { in getAutofillValueAndTypeAsString()
94 } else if (value.isDate()) { in getAutofillValueAndTypeAsString()
[all …]
/developers/samples/android/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/util/
DUtil.java52 Object value = data.get(key); in bundleToString() local
53 if ((value instanceof Bundle)) { in bundleToString()
54 bundleToString(builder, (Bundle) value); in bundleToString()
56 builder.append((value instanceof Object[]) in bundleToString()
57 ? Arrays.toString((Object[]) value) : value); in bundleToString()
88 private static String getAutofillValueAndTypeAsString(AutofillValue value) { in getAutofillValueAndTypeAsString() argument
89 if (value == null) return "null"; in getAutofillValueAndTypeAsString()
91 StringBuilder builder = new StringBuilder(value.toString()).append('('); in getAutofillValueAndTypeAsString()
92 if (value.isText()) { in getAutofillValueAndTypeAsString()
94 } else if (value.isDate()) { in getAutofillValueAndTypeAsString()
[all …]
/developers/samples/android/wearable/wear/WearComplicationProvidersTestSuite/Wearable/src/main/java/com/example/android/wearable/wear/wearcomplicationproviderstestsuite/
DRangedValueProviderService.java59 float value = (float) Math.random() * (maxValue - minValue) + minValue; in onComplicationUpdate() local
67 .setValue(value) in onComplicationUpdate()
79 .setValue(value) in onComplicationUpdate()
95 .setValue(value) in onComplicationUpdate()
109 .setValue(value) in onComplicationUpdate()
/developers/build/prebuilts/gradle/WearComplicationProvidersTestSuite/Wearable/src/main/java/com/example/android/wearable/wear/wearcomplicationproviderstestsuite/
DRangedValueProviderService.java59 float value = (float) Math.random() * (maxValue - minValue) + minValue; in onComplicationUpdate() local
67 .setValue(value) in onComplicationUpdate()
79 .setValue(value) in onComplicationUpdate()
95 .setValue(value) in onComplicationUpdate()
109 .setValue(value) in onComplicationUpdate()
/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()
/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()

12345