Home
last modified time | relevance | path

Searched refs:text (Results 1 – 25 of 648) sorted by relevance

12345678910>>...26

/developers/build/prebuilts/gradle/RecipeAssistant/Application/src/main/assets/
Dbeef-brisket-chili.json5 text: "Place the cinnamon stick, cumin, paprika and oregano in a pestle and mortar. Bash and grind …
9 text: "Score the beef and rub the spice mix into the cuts. ",
13 text: "Season the beef and drizzle with olive oil. Brown in a hot pan. ",
17 text: "Finely slice the onion and fry in a little olive oil together with the chillies, finely slic…
21 text: "Add the browned brisket to the pan with the onions and chillies and fry on a low heat."
24 text: "Place the bell peppers, roughly sliced, the bay leaves and chopped tomatoes in a large cover…
28 text: "Bring back to the boil, cover and allow to simmer on a low heat for 4 hours."
31 text: "Remove the brisket from the pot, place on a large plate and use two forks to pull the beef a…
35 text: "Remove the bay leaves and add the pulled beef and coriander back to the pot, together with t…
38 text: "Bring back to the boil and simmer gently for a further 15 - 20 mins."
[all …]
Dnorthern-irish-vegetable-soup.json5 text: "Place the beef in a large stock pot, cover with water and stew for 1 - 2 hours."
8 text: "Allow the stock to cool, skim off any fat."
11 text: "Add the soup mix to the stock, bring to the boil and simmer for 1 hour."
14 text: "Roughly chop the leeks (green and white parts), onion, carrots, celery and parsley. Add to t…
25 text: "2 lbs beef shin or similar beef on bone"
28 text: "60g soup mix (30g barley, 15g red lentils, 15g split peas)"
31 text: "3 carrots"
34 text: "1 white onion"
37 text: "field celery or 1 stalk celery, plus any leaves on the bunch"
40 text: "2 leeks"
[all …]
Dguacamole.json5 text: "Use a spoon to scoop the flesh of the avocados into a bowl."
8 text: "Mash with a fork until fairly smooth and creamy. Preserve some small solid chunks to add tex…
11 text: "Add the juice of the lime. ",
15 text: "Add the cilantro."
18 text: "Mix thoroughly."
27 text: "2 ripe avocados"
30 text: "1 lime"
33 text: "2 tbsp cilantro"
/developers/samples/android/deprecated/wearable/wear/RecipeAssistant/Application/src/main/assets/
Dbeef-brisket-chili.json5 text: "Place the cinnamon stick, cumin, paprika and oregano in a pestle and mortar. Bash and grind …
9 text: "Score the beef and rub the spice mix into the cuts. ",
13 text: "Season the beef and drizzle with olive oil. Brown in a hot pan. ",
17 text: "Finely slice the onion and fry in a little olive oil together with the chillies, finely slic…
21 text: "Add the browned brisket to the pan with the onions and chillies and fry on a low heat."
24 text: "Place the bell peppers, roughly sliced, the bay leaves and chopped tomatoes in a large cover…
28 text: "Bring back to the boil, cover and allow to simmer on a low heat for 4 hours."
31 text: "Remove the brisket from the pot, place on a large plate and use two forks to pull the beef a…
35 text: "Remove the bay leaves and add the pulled beef and coriander back to the pot, together with t…
38 text: "Bring back to the boil and simmer gently for a further 15 - 20 mins."
[all …]
Dnorthern-irish-vegetable-soup.json5 text: "Place the beef in a large stock pot, cover with water and stew for 1 - 2 hours."
8 text: "Allow the stock to cool, skim off any fat."
11 text: "Add the soup mix to the stock, bring to the boil and simmer for 1 hour."
14 text: "Roughly chop the leeks (green and white parts), onion, carrots, celery and parsley. Add to t…
25 text: "2 lbs beef shin or similar beef on bone"
28 text: "60g soup mix (30g barley, 15g red lentils, 15g split peas)"
31 text: "3 carrots"
34 text: "1 white onion"
37 text: "field celery or 1 stalk celery, plus any leaves on the bunch"
40 text: "2 leeks"
[all …]
Dguacamole.json5 text: "Use a spoon to scoop the flesh of the avocados into a bowl."
8 text: "Mash with a fork until fairly smooth and creamy. Preserve some small solid chunks to add tex…
11 text: "Add the juice of the lime. ",
15 text: "Add the cilantro."
18 text: "Mix thoroughly."
27 text: "2 ripe avocados"
30 text: "1 lime"
33 text: "2 tbsp cilantro"
/developers/samples/android/ui/text/TextStyling-Kotlin/app/src/main/java/com/android/example/text/styling/renderer/
DMarkdownBuilder.kt16 package com.android.example.text.styling.renderer in <lambda>()
20 import android.text.SpannableStringBuilder in <lambda>()
21 import android.text.SpannedString in <lambda>()
22 import android.text.style.LeadingMarginSpan in <lambda>()
23 import android.text.style.RelativeSizeSpan in <lambda>()
24 import android.text.style.StyleSpan in <lambda>()
25 import androidx.text.buildSpannedString in <lambda>()
26 import androidx.text.inSpans in <lambda>()
27 import com.android.example.text.styling.parser.Element in <lambda>()
28 import com.android.example.text.styling.parser.Parser in <lambda>()
[all …]
/developers/samples/android/ui/text/TextStyling-Kotlin/app/src/test/java/com/android/example/text/styling/parser/
DParserTest.kt16 package com.android.example.text.styling.parser
55 assertEquals(elements[0].text, "Bullet points:\n") in simpleBulletPoints()
57 assertEquals(elements[1].text, "One\n") in simpleBulletPoints()
59 assertEquals(elements[2].text, "Two\n") in simpleBulletPoints()
61 assertEquals(elements[3].text, "Three") in simpleBulletPoints()
91 val text = "Complex:\n> Quote\nWith points:\n+ bullet `one`\n* bullet `two` is `long`" in quoteBulletPointsCode() constant
93 val elements = Parser.parse(text).elements in quoteBulletPointsCode()
97 assertEquals(elements[0].text, "Complex:\n") in quoteBulletPointsCode()
99 assertEquals(elements[1].text, "Quote\n") in quoteBulletPointsCode()
101 assertEquals(elements[2].text, "With points:\n") in quoteBulletPointsCode()
[all …]
/developers/samples/android/notification/Bubbles/app/src/main/java/com/example/android/bubbles/data/
DContact.kt31 override fun reply(text: String) = buildReply().apply { this.text = "Meow" } in <lambda>()
34 override fun reply(text: String) = buildReply().apply { this.text = "Woof woof!!" } in <lambda>()
37 override fun reply(text: String) = buildReply().apply { this.text = text } in <lambda>()
40 override fun reply(text: String) = buildReply().apply { in <lambda>()
41 this.text = "Look at me!" in <lambda>()
53 abstract fun reply(text: String): Message.Builder in reply()
/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/model/
DMessage.java26 private String text; field in Message
34 text = message.getText(); in Message()
40 text = builder.text; in Message()
56 return text; in getText()
79 private String text; field in Message.Builder
93 public Builder text(String val) { in text() method in Message.Builder
94 text = val; in text()
132 return text != null ? text.equals(message.text) : message.text == null; in equals()
145 result = 31 * result + (text != null ? text.hashCode() : 0); in hashCode()
159 dest.writeString(this.text); in writeToParcel()
[all …]
/developers/build/prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/model/
DMessage.java26 private String text; field in Message
34 text = message.getText(); in Message()
40 text = builder.text; in Message()
56 return text; in getText()
79 private String text; field in Message.Builder
93 public Builder text(String val) { in text() method in Message.Builder
94 text = val; in text()
132 return text != null ? text.equals(message.text) : message.text == null; in equals()
145 result = 31 * result + (text != null ? text.hashCode() : 0); in hashCode()
159 dest.writeString(this.text); in writeToParcel()
[all …]
/developers/samples/android/ui/text/TextStyling-Java/app/src/main/java/com/android/example/text/styling/parser/
DElement.java16 package com.android.example.text.styling.parser;
33 private final String text; field in Element
38 public Element(@NonNull final Type type, @NonNull final String text, in Element() argument
41 this.text = text; in Element()
52 return text; in getText()
62 return type + " " + text; in toString()
DParser.java16 package com.android.example.text.styling.parser;
20 import com.android.example.text.styling.parser.Element.Type;
77 String text = string.substring(lastStartIndex, startIndex); in parse() local
78 parents.addAll(findElements(text, pattern)); in parse()
88 String text = string.substring(lastStartIndex, string.length()); in parse() local
89 parents.addAll(findElements(text, pattern)); in parse()
124 String text; in findElements() local
131 text = string.substring(endIndex, endOfBulletPoint); in findElements()
134 List<Element> subMarks = findElements(text, pattern); in findElements()
135 Element bulletPoint = new Element(Type.BULLET_POINT, text, subMarks); in findElements()
[all …]
/developers/build/prebuilts/gradle/Notifications/Wearable/src/main/java/com/example/android/support/wearable/notifications/
DNotificationPresets.java28 import android.text.SpannableStringBuilder;
29 import android.text.style.ForegroundColorSpan;
30 import android.text.style.RelativeSizeSpan;
31 import android.text.style.StrikethroughSpan;
32 import android.text.style.StyleSpan;
33 import android.text.style.SubscriptSpan;
34 import android.text.style.SuperscriptSpan;
35 import android.text.style.TypefaceSpan;
36 import android.text.style.UnderlineSpan;
123 SpannableStringBuilder text = new SpannableStringBuilder("Stylized text: "); in buildNotification() local
[all …]
/developers/samples/android/deprecated/wearable/wear/Notifications/Wearable/src/main/java/com/example/android/support/wearable/notifications/
DNotificationPresets.java28 import android.text.SpannableStringBuilder;
29 import android.text.style.ForegroundColorSpan;
30 import android.text.style.RelativeSizeSpan;
31 import android.text.style.StrikethroughSpan;
32 import android.text.style.StyleSpan;
33 import android.text.style.SubscriptSpan;
34 import android.text.style.SuperscriptSpan;
35 import android.text.style.TypefaceSpan;
36 import android.text.style.UnderlineSpan;
123 SpannableStringBuilder text = new SpannableStringBuilder("Stylized text: "); in buildNotification() local
[all …]
/developers/samples/android/ui/text/TextStyling-Kotlin/app/src/main/java/com/android/example/text/styling/parser/
DParser.kt16 package com.android.example.text.styling.parser
57 val text = string.subSequence(lastStartIndex, startIndex) in parse() constant
58 parents.addAll(findElements(text, pattern)) in parse()
69 val text = string.subSequence(lastStartIndex, string.length) in parse() constant
70 parents.addAll(findElements(text, pattern)) in parse()
104 val text: CharSequence in findElements() constant
110 text = string.subSequence(endIndex, endOfBulletPoint) in findElements()
113 val subMarks = findElements(text, pattern) in findElements()
114 val bulletPoint = Element(Element.Type.BULLET_POINT, text, subMarks) in findElements()
124 text = string.substring(startIndex, markEnd) in findElements()
[all …]
/developers/samples/android/ui/text/RoundedBackground-Kotlin/lib/src/main/java/com/android/example/text/styling/roundedbg/
DTextRoundedBgHelper.kt16 package com.android.example.text.styling.roundedbg in <lambda>()
20 import android.text.Annotation in <lambda>()
21 import android.text.Layout in <lambda>()
22 import android.text.Spanned in <lambda>()
79 fun draw(canvas: Canvas, text: Spanned, layout: Layout) { in <lambda>()
82 val spans = text.getSpans(0, text.length, Annotation::class.java) in <lambda>()
85 val spanStart = text.getSpanStart(span) in <lambda>()
86 val spanEnd = text.getSpanEnd(span) in <lambda>()
/developers/samples/android/ui/text/TextStyling-Java/app/src/main/java/com/android/example/text/styling/renderer/
DMarkdownBuilder.java16 package com.android.example.text.styling.renderer;
22 import android.text.SpannableStringBuilder;
23 import android.text.Spanned;
24 import android.text.SpannedString;
25 import android.text.style.LeadingMarginSpan;
26 import android.text.style.RelativeSizeSpan;
27 import android.text.style.StyleSpan;
29 import com.android.example.text.styling.parser.Element;
30 import com.android.example.text.styling.parser.Parser;
31 import com.android.example.text.styling.parser.TextMarkdown;
[all …]
/developers/samples/android/ui/text/TextStyling-Java/
DREADME.md3 This sample shows how to style text on Android using spans, in Java.
8 Parse some hardcoded text and do the following:
12 To update the text, modify the value of `R.string.display_text`.
16text is parsed in the [`Parser.parse`](https://github.com/googlesamples/android-text/blob/master/T…
17text/blob/master/TextStyling-Java/app/src/main/java/com/android/example/text/styling/renderer/Mark…
20text/blob/master/TextStyling-Java/app/src/test/java/com/android/example/text/styling/parser/Parser…
45 - Stack Overflow: http://stackoverflow.com/questions/tagged/android-text
48 https://github.com/googlesamples/android-text/issues
/developers/build/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/
DRemoteViewsHelper.java28 public static RemoteViews viewsWithAuth(String packageName, String text) { in viewsWithAuth() argument
29 return simpleRemoteViews(packageName, text, R.drawable.ic_lock_black_24dp); in viewsWithAuth()
32 public static RemoteViews viewsWithNoAuth(String packageName, String text) { in viewsWithNoAuth() argument
33 return simpleRemoteViews(packageName, text, R.drawable.ic_person_black_24dp); in viewsWithNoAuth()
40 presentation.setTextViewText(R.id.text, remoteViewsText); in simpleRemoteViews()
/developers/samples/android/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/
DRemoteViewsHelper.java28 public static RemoteViews viewsWithAuth(String packageName, String text) { in viewsWithAuth() argument
29 return simpleRemoteViews(packageName, text, R.drawable.ic_lock_black_24dp); in viewsWithAuth()
32 public static RemoteViews viewsWithNoAuth(String packageName, String text) { in viewsWithNoAuth() argument
33 return simpleRemoteViews(packageName, text, R.drawable.ic_person_black_24dp); in viewsWithNoAuth()
40 presentation.setTextViewText(R.id.text, remoteViewsText); in simpleRemoteViews()
/developers/samples/android/ui/text/TextStyling-Java/app/src/main/java/com/android/example/text/styling/renderer/spans/
DBulletPointSpan.java16 package com.android.example.text.styling.renderer.spans;
24 import android.text.Layout;
25 import android.text.Spanned;
26 import android.text.style.BulletSpan;
27 import android.text.style.LeadingMarginSpan;
55 CharSequence text, int start, int end, in drawLeadingMargin() argument
57 if (((Spanned) text).getSpanStart(this) == start) { in drawLeadingMargin()
/developers/build/prebuilts/gradle/TextLinkify/Application/src/main/java/com/example/android/textlinkify/
DMainActivity.java22 import android.text.Html;
23 import android.text.SpannableString;
24 import android.text.Spanned;
25 import android.text.method.LinkMovementMethod;
26 import android.text.style.StyleSpan;
27 import android.text.style.URLSpan;
/developers/samples/android/views/TextLinkify/Application/src/main/java/com/example/android/textlinkify/
DMainActivity.java22 import android.text.Html;
23 import android.text.SpannableString;
24 import android.text.Spanned;
25 import android.text.method.LinkMovementMethod;
26 import android.text.style.StyleSpan;
27 import android.text.style.URLSpan;
/developers/samples/android/ui/text/TextStyling-Kotlin/app/src/androidTest/java/com/android/example/text/styling/renderer/spans/
DBulletPointSpanTest.kt1 package com.android.example.text.styling.renderer.spans
7 import android.text.Layout
8 import android.text.SpannableString
9 import android.text.Spanned
22 private val text = SpannableString("text") constant
40 span.drawLeadingMargin(canvas, paint, 0, 0, 0, 0, 0, text, 0, 0, true, in drawLeadingMarginWithoutText()
57 text.setSpan(span, 0, 2, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE) in drawLeadingMarginHardwareAccelerated()
61 span.drawLeadingMargin(canvas, paint, x, dir, top, 0, bottom, text, 0, 0, true, in drawLeadingMarginHardwareAccelerated()
83 text.setSpan(span, 0, 2, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE) in drawLeadingMarginNotHardwareAccelerated()
87 span.drawLeadingMargin(canvas, paint, x, dir, top, 0, bottom, text, 0, 0, true, in drawLeadingMarginNotHardwareAccelerated()

12345678910>>...26