/developers/samples/android/ui/text/TextStyling-Kotlin/app/src/test/java/com/android/example/text/styling/parser/ |
D | ParserTest.kt | 54 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/ |
D | Element.java | 30 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/build/prebuilts/gradle/WearComplicationProvidersTestSuite/Wearable/src/main/java/com/example/android/wearable/wear/wearcomplicationproviderstestsuite/ |
D | LongTextProviderService.java | 34 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()
|
D | ShortTextProviderService.java | 34 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()
|
D | IconProviderService.java | 33 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()
|
D | RangedValueProviderService.java | 37 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()
|
D | SmallImageProviderService.java | 33 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()
|
D | LargeImageProviderService.java | 33 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()
|
/developers/samples/android/wearable/wear/WearComplicationProvidersTestSuite/Wearable/src/main/java/com/example/android/wearable/wear/wearcomplicationproviderstestsuite/ |
D | LongTextProviderService.java | 34 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()
|
D | ShortTextProviderService.java | 34 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()
|
D | IconProviderService.java | 33 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()
|
D | RangedValueProviderService.java | 37 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()
|
D | LargeImageProviderService.java | 33 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()
|
D | SmallImageProviderService.java | 33 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()
|
/developers/build/prebuilts/gradle/ShareActionProvider/Application/src/main/java/com/example/android/shareactionprovider/content/ |
D | ContentItem.java | 44 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/samples/android/content/ShareActionProvider/Application/src/main/java/com/example/android/shareactionprovider/content/ |
D | ContentItem.java | 44 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/ |
D | Card.java.ftl | 86 * 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/ |
D | Util.java | 72 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/build/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/util/ |
D | Util.java | 72 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/build/prebuilts/gradle/BatchStepSensor/Application/src/main/java/com/example/android/batchstepsensor/cardstream/ |
D | Card.java | 273 private void addAction(String label, int id, int type) { in addAction() argument 277 cardAction.type = type; in addAction() 422 public Builder addAction(String label, int id, int type) { in addAction() argument 423 mCard.addAction(label, id, type); in addAction() 553 switch (action.type) { in initializeActionViews() 614 public int type; field in Card.CardAction 621 actionClone.type = type; in createShallowClone() 704 public void setProgressType(int type) { in setProgressType() argument 705 progressType = type; in setProgressType() 707 switch (type) { in setProgressType()
|
/developers/samples/android/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/ |
D | AutofillHintProperties.java | 85 public boolean isValidType(int type) { in isValidType() argument 86 return mValidTypes.contains(type); in isValidType()
|
/developers/build/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/ |
D | AutofillHintProperties.java | 85 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/ |
D | SharedPrefsAutofillRepository.kt | 47 val type = object : TypeToken<FilledAutofillFieldCollection>() {}.type in <lambda>() constant 49 gson.fromJson<FilledAutofillFieldCollection>(clientFormDataString, type)?.let { in <lambda>()
|
/developers/build/prebuilts/gradle/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/datasource/ |
D | SharedPrefsAutofillRepository.kt | 47 val type = object : TypeToken<FilledAutofillFieldCollection>() {}.type in <lambda>() constant 49 gson.fromJson<FilledAutofillFieldCollection>(clientFormDataString, type)?.let { in <lambda>()
|
/developers/build/templates/ActivityCards/ |
D | ActivityCardsCommon.ftli | 17 <#macro make_activity_res activity type>${(activity.class!"activity_class")?lower_case}_${type}</#m…
|