Home
last modified time | relevance | path

Searched refs:type (Results 1 – 25 of 62) sorted by relevance

123

/developers/samples/android/ui/text/TextStyling-Kotlin/app/src/test/java/com/android/example/text/styling/parser/
DParserTest.kt54 assertEquals(elements[0].type, Element.Type.TEXT) in simpleBulletPoints()
56 assertEquals(elements[1].type, Element.Type.BULLET_POINT) in simpleBulletPoints()
58 assertEquals(elements[2].type, Element.Type.BULLET_POINT) in simpleBulletPoints()
60 assertEquals(elements[3].type, Element.Type.BULLET_POINT) in simpleBulletPoints()
96 assertEquals(elements[0].type, Element.Type.TEXT) in quoteBulletPointsCode()
98 assertEquals(elements[1].type, Element.Type.QUOTE) in quoteBulletPointsCode()
100 assertEquals(elements[2].type, Element.Type.TEXT) in quoteBulletPointsCode()
103 assertEquals(elements[3].type, Element.Type.BULLET_POINT) in quoteBulletPointsCode()
107 assertEquals(subElements1[0].type, Element.Type.TEXT) in quoteBulletPointsCode()
109 assertEquals(subElements1[1].type, Element.Type.CODE_BLOCK) in quoteBulletPointsCode()
[all …]
/developers/samples/android/ui/text/TextStyling-Java/app/src/main/java/com/android/example/text/styling/parser/
DElement.java30 private final Type type; field in Element
38 public Element(@NonNull final Type type, @NonNull final String text, in Element() argument
40 this.type = type; in Element()
47 return type; in getType()
62 return type + " " + text; in toString()
/developers/samples/android/wearable/wear/WearComplicationProvidersTestSuite/Wearable/src/main/java/com/example/android/wearable/wear/wearcomplicationproviderstestsuite/
DLongTextProviderService.java34 public void onComplicationUpdate(int complicationId, int type, ComplicationManager manager) { in onComplicationUpdate() argument
35 if (type != ComplicationData.TYPE_LONG_TEXT) { in onComplicationUpdate()
55 new ComplicationData.Builder(type) in onComplicationUpdate()
64 new ComplicationData.Builder(type) in onComplicationUpdate()
79 new ComplicationData.Builder(type) in onComplicationUpdate()
94 new ComplicationData.Builder(type) in onComplicationUpdate()
105 new ComplicationData.Builder(type) in onComplicationUpdate()
115 new ComplicationData.Builder(type) in onComplicationUpdate()
DShortTextProviderService.java34 public void onComplicationUpdate(int complicationId, int type, ComplicationManager manager) { in onComplicationUpdate() argument
35 if (type != ComplicationData.TYPE_SHORT_TEXT) { in onComplicationUpdate()
55 new ComplicationData.Builder(type) in onComplicationUpdate()
64 new ComplicationData.Builder(type) in onComplicationUpdate()
76 new ComplicationData.Builder(type) in onComplicationUpdate()
89 new ComplicationData.Builder(type) in onComplicationUpdate()
DIconProviderService.java33 public void onComplicationUpdate(int complicationId, int type, ComplicationManager manager) { in onComplicationUpdate() argument
34 if (type != ComplicationData.TYPE_ICON) { in onComplicationUpdate()
55 new ComplicationData.Builder(type) in onComplicationUpdate()
67 new ComplicationData.Builder(type) in onComplicationUpdate()
77 new ComplicationData.Builder(type) in onComplicationUpdate()
DRangedValueProviderService.java37 public void onComplicationUpdate(int complicationId, int type, ComplicationManager manager) { in onComplicationUpdate() argument
38 if (type != ComplicationData.TYPE_RANGED_VALUE) { in onComplicationUpdate()
64 new ComplicationData.Builder(type) in onComplicationUpdate()
76 new ComplicationData.Builder(type) in onComplicationUpdate()
92 new ComplicationData.Builder(type) in onComplicationUpdate()
106 new ComplicationData.Builder(type) in onComplicationUpdate()
DSmallImageProviderService.java33 public void onComplicationUpdate(int complicationId, int type, ComplicationManager manager) { in onComplicationUpdate() argument
34 if (type != ComplicationData.TYPE_SMALL_IMAGE) { in onComplicationUpdate()
55 new ComplicationData.Builder(type) in onComplicationUpdate()
65 new ComplicationData.Builder(type) in onComplicationUpdate()
DLargeImageProviderService.java33 public void onComplicationUpdate(int complicationId, int type, ComplicationManager manager) { in onComplicationUpdate() argument
34 if (type != ComplicationData.TYPE_LARGE_IMAGE) { in onComplicationUpdate()
59 new ComplicationData.Builder(type) in onComplicationUpdate()
66 new ComplicationData.Builder(type) in onComplicationUpdate()
DNoDataProviderService.java25 public void onComplicationUpdate(int complicationId, int type, ComplicationManager manager) { in onComplicationUpdate() argument
/developers/samples/android/content/ShareActionProvider/Application/src/main/java/com/example/android/shareactionprovider/content/
DContentItem.java44 public ContentItem(int type, int resourceId) { in ContentItem() argument
45 contentType = type; in ContentItem()
56 public ContentItem(int type, String assetFilePath) { in ContentItem() argument
57 contentType = type; in ContentItem()
/developers/build/templates/CardStream/_MODULE_/src/template/java/_PACKAGE_/cardstream/
DCard.java.ftl86 * This "type" can be used as a UI hint.
178 * Set the type of progress indicator.
179 * The progress type can only be changed if the Card was initially build with a progress
197 * Return the progress indicator type. A value of either {@link #PROGRESS_TYPE_NORMAL},
211 * {@link #PROGRESS_TYPE_NORMAL} progress type.
225 * {@link #PROGRESS_TYPE_NORMAL} progress type.
236 * Set the label text for the progress if the card has a progress type of
251 * the card has a progress type of
271 * @param type
273 private void addAction(String label, int id, int type) {
[all …]
/developers/samples/android/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/util/
DUtil.java72 public static String getTypeAsString(int type) { in getTypeAsString() argument
73 switch (type) { in getTypeAsString()
167 public static String getSaveTypeAsString(int type) { in getSaveTypeAsString() argument
169 if ((type & SaveInfo.SAVE_DATA_TYPE_ADDRESS) != 0) { in getSaveTypeAsString()
172 if ((type & SaveInfo.SAVE_DATA_TYPE_CREDIT_CARD) != 0) { in getSaveTypeAsString()
175 if ((type & SaveInfo.SAVE_DATA_TYPE_EMAIL_ADDRESS) != 0) { in getSaveTypeAsString()
178 if ((type & SaveInfo.SAVE_DATA_TYPE_USERNAME) != 0) { in getSaveTypeAsString()
181 if ((type & SaveInfo.SAVE_DATA_TYPE_PASSWORD) != 0) { in getSaveTypeAsString()
185 return "UNKNOWN(" + type + ")"; in getSaveTypeAsString()
/developers/samples/android/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/
DAutofillHintProperties.java85 public boolean isValidType(int type) { in isValidType() argument
86 return mValidTypes.contains(type); in isValidType()
/developers/samples/android/input/autofill/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/datasource/
DSharedPrefsAutofillRepository.kt47 val type = object : TypeToken<FilledAutofillFieldCollection>() {}.type in <lambda>() constant
49 gson.fromJson<FilledAutofillFieldCollection>(clientFormDataString, type)?.let { in <lambda>()
/developers/build/templates/ActivityCards/
DActivityCardsCommon.ftli17 <#macro make_activity_res activity type>${(activity.class!"activity_class")?lower_case}_${type}</#m…
/developers/samples/android/input/autofill/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/view/autofillable/
DCustomVirtualView.java118 + ": expectedType=" + Util.getAutofillTypeAsString(item.type) in autofill()
119 + "(" + item.type + "), value=" + value); in autofill()
122 if (value.isText() && item.type == AUTOFILL_TYPE_TEXT) { in autofill()
125 } else if (value.isDate() && item.type == AUTOFILL_TYPE_DATE) { in autofill()
160 child.setAutofillType(item.type); in onProvideAutofillVirtualStructure()
DAbstractCustomVirtualView.java228 public final int type; field in AbstractCustomVirtualView.Item
234 Item(Line line, int id, String idEntry, String[] hints, int type, CharSequence text, in Item() argument
243 this.type = type; in Item()
249 + (type == AUTOFILL_TYPE_DATE ? date : text) // TODO: use DateFormat for date in toString()
250 + " (" + Util.getAutofillTypeAsString(type) + ")" in toString()
261 switch (type) { in getAutofillValue()
/developers/samples/android/common/src/java/com/example/android/common/media/
DCameraHelper.java155 public static File getOutputMediaFile(int type){ in getOutputMediaFile() argument
178 if (type == MEDIA_TYPE_IMAGE){ in getOutputMediaFile()
181 } else if(type == MEDIA_TYPE_VIDEO) { in getOutputMediaFile()
/developers/samples/android/ui/text/TextStyling-Kotlin/app/src/main/java/com/android/example/text/styling/parser/
DMarkdown.kt27 data class Element(val type: Type, constant in com.android.example.text.styling.parser.Element
/developers/samples/android/media/Camera2Basic/kotlinApp/
Dbuild.gradle20 task clean(type: Delete) {
/developers/samples/android/background/JobScheduler/kotlinApp/
Dbuild.gradle20 task clean(type: Delete) {
/developers/samples/android/ui/window/MultiWindowPlayground/kotlinApp/
Dbuild.gradle20 task clean(type: Delete) {
/developers/samples/android/media/Camera2Video/kotlinApp/
Dbuild.gradle20 task clean(type: Delete) {
/developers/samples/android/ui/views/NavigationDrawer/kotlinApp/
Dbuild.gradle27 task clean(type: Delete) {
/developers/samples/android/media/PictureInPicture/kotlinApp/
Dbuild.gradle20 task clean(type: Delete) {

123