Home
last modified time | relevance | path

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

12345678910>>...15

/development/samples/browseable/Notifications/Wearable/src/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 …]
/development/samples/ApiDemos/src/com/example/android/apis/accessibility/
DCustomViewAccessibilityActivity.java25 import android.text.Layout;
26 import android.text.StaticLayout;
27 import android.text.TextPaint;
28 import android.text.TextUtils;
98 CharSequence text = getText(); in onInitializeAccessibilityNodeInfo() local
99 if (!TextUtils.isEmpty(text)) { in onInitializeAccessibilityNodeInfo()
100 info.setText(text); in onInitializeAccessibilityNodeInfo()
110 CharSequence text = getText(); in onPopulateAccessibilityEvent() local
111 if (!TextUtils.isEmpty(text)) { in onPopulateAccessibilityEvent()
112 event.getText().add(text); in onPopulateAccessibilityEvent()
[all …]
/development/apps/Development/src/com/android/development/
DLogTextBox.java21 import android.text.method.ScrollingMovementMethod;
22 import android.text.method.MovementMethod;
23 import android.text.method.KeyListener;
24 import android.text.method.TransformationMethod;
25 import android.text.Editable;
69 public void setText(CharSequence text, BufferType type) { in setText() argument
70 super.setText(text, BufferType.EDITABLE); in setText()
DLogViewer.java44 LogTextBox text; field in LogViewer
52 text = (LogTextBox) findViewById(R.id.text); in onCreate()
54 text.setTextSize(10); in onCreate()
55 text.setHorizontallyScrolling(true); in onCreate()
56 text.setTypeface(Typeface.MONOSPACE); in onCreate()
57 text.setGravity(Gravity.BOTTOM | Gravity.LEFT); in onCreate()
72 text.getText().append(builder); in appendThrowable()
161 text.getText().append(message); in run()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DReceiveResult.java25 import android.text.Editable;
116 Editable text = (Editable)mResults.getText(); in onActivityResult() local
122 text.append("(cancelled)"); in onActivityResult()
127 text.append("(okay "); in onActivityResult()
128 text.append(Integer.toString(resultCode)); in onActivityResult()
129 text.append(") "); in onActivityResult()
131 text.append(data.getAction()); in onActivityResult()
135 text.append("\n"); in onActivityResult()
DActionBarTabs.java47 final String text = "Tab " + tabCount; in onAddTab() local
49 .setText(text) in onAddTab()
50 .setTabListener(new TabListener(new TabContentFragment(text)))); in onAddTab()
113 public TabContentFragment(String text) { in TabContentFragment() argument
114 mText = text; in TabContentFragment()
126 TextView text = (TextView) fragView.findViewById(R.id.text); in onCreateView() local
127 text.setText(mText); in onCreateView()
DFragmentReceiveResult.java26 import android.text.Editable;
110 Editable text = (Editable)mResults.getText(); in onActivityResult() local
116 text.append("(cancelled)"); in onActivityResult()
121 text.append("(okay "); in onActivityResult()
122 text.append(Integer.toString(resultCode)); in onActivityResult()
123 text.append(") "); in onActivityResult()
125 text.append(data.getAction()); in onActivityResult()
129 text.append("\n"); in onActivityResult()
/development/samples/ApiDemos/src/com/example/android/apis/text/
DLogTextBox.java17 package com.example.android.apis.text;
21 import android.text.method.ScrollingMovementMethod;
22 import android.text.method.MovementMethod;
23 import android.text.Editable;
61 public void setText(CharSequence text, BufferType type) { in setText() argument
62 super.setText(text, BufferType.EDITABLE); in setText()
DLink.java17 package com.example.android.apis.text;
24 import android.text.Html;
25 import android.text.SpannableString;
26 import android.text.Spanned;
27 import android.text.method.LinkMovementMethod;
28 import android.text.style.StyleSpan;
29 import android.text.style.URLSpan;
/development/samples/Support4Demos/src/com/example/android/supportv4/app/
DFragmentReceiveResultSupport.java30 import android.text.Editable;
87 Editable text = (Editable)mResults.getText();
88 text.append(e.getMessage());
89 text.append("\n");
136 Editable text = (Editable)mResults.getText(); in onActivityResult() local
138 text.append((requestCode == GET_CODE) ? "Activity " : "IntentSender "); in onActivityResult()
144 text.append("(cancelled)"); in onActivityResult()
149 text.append("(okay "); in onActivityResult()
150 text.append(Integer.toString(resultCode)); in onActivityResult()
151 text.append(") "); in onActivityResult()
[all …]
/development/samples/StackWidget/src/com/example/android/stackwidget/
DWidgetItem.java20 public String text; field in WidgetItem
22 public WidgetItem(String text) { in WidgetItem() argument
23 this.text = text; in WidgetItem()
/development/samples/UiAutomator/src/com/android/test/uiautomator/demos/
DSetTwoMinuteAlarm.java63 .childSelector(new UiSelector().text("Apps")); in testDemo()
80 .className(TextView.class.getName()).text("Alarm")); in testDemo()
116 UiObject doneButton = new UiObject(new UiSelector().text("Done")); in setAlarm()
117 UiObject okButton = new UiObject(new UiSelector().text("OK")); in setAlarm()
135 private void clickByDescription(String text) throws UiObjectNotFoundException { in clickByDescription() argument
136 UiObject obj = new UiObject(new UiSelector().description(text)); in clickByDescription()
145 private void clickByText(String text) throws UiObjectNotFoundException { in clickByText() argument
146 UiObject obj = new UiObject(new UiSelector().text(text)); in clickByText()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DMeasureText.java68 private void showText(Canvas canvas, String text, Paint.Align align) { in showText() argument
72 float[] widths = new float[text.length()]; in showText()
74 int count = mPaint.getTextWidths(text, 0, text.length(), widths); in showText()
75 float w = mPaint.measureText(text, 0, text.length()); in showText()
76 mPaint.getTextBounds(text, 0, text.length(), bounds); in showText()
81 canvas.drawText(text, 0, 0, mPaint); in showText()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DList13.java96 TextView text; in getView() local
99text = (TextView)mInflater.inflate(android.R.layout.simple_list_item_1, parent, false); in getView()
101 text = (TextView)convertView; in getView()
105 text.setText(mStrings[position]); in getView()
107 text.setTag(null); in getView()
109 text.setText("Loading..."); in getView()
111 text.setTag(this); in getView()
114 return text; in getView()
DDragAndDropDemo.java36 TextView text = (TextView) findViewById(R.id.drag_text); in onCreate() local
38 dot.setReportView(text); in onCreate()
40 dot.setReportView(text); in onCreate()
42 dot.setReportView(text); in onCreate()
45 mHiddenDot.setReportView(text); in onCreate()
/development/samples/browseable/TextLinkify/src/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;
/development/samples/Support4Demos/src/com/example/android/supportv4/text/
DBidiFormatterSupport.java17 package com.example.android.supportv4.text;
22 import android.support.v4.text.BidiFormatter;
31 private static String text = "%s הוא עסוק"; field in BidiFormatterSupport
40 String formattedText = String.format(text, phone); in onCreate()
47 formattedText = String.format(text, wrappedPhone); in onCreate()
/development/samples/browseable/Notifications/Application/src/com.example.android.support.wearable.notifications/
DNotificationPresets.java25 import android.text.SpannableStringBuilder;
26 import android.text.style.ForegroundColorSpan;
27 import android.text.style.RelativeSizeSpan;
28 import android.text.style.StrikethroughSpan;
29 import android.text.style.StyleSpan;
30 import android.text.style.SubscriptSpan;
31 import android.text.style.SuperscriptSpan;
32 import android.text.style.TypefaceSpan;
33 import android.text.style.UnderlineSpan;
127 SpannableStringBuilder text = new SpannableStringBuilder("Stylized text: "); in buildNotifications() local
[all …]
/development/samples/Support7Demos/src/com/example/android/supportv7/app/
DActionBarTabs.java46 final String text = "Tab " + tabCount; in onAddTab() local
48 .setText(text) in onAddTab()
49 .setTabListener(new TabListener(new TabContentFragment(text)))); in onAddTab()
113 public TabContentFragment(String text) { in TabContentFragment() argument
114 mText = text; in TabContentFragment()
126 TextView text = (TextView) fragView.findViewById(R.id.text); in onCreateView() local
127 text.setText(mText); in onCreateView()
/development/samples/NotePad/src/com/example/android/notepad/
DNoteEditor.java273 String text = String.format(res.getString(R.string.title_edit), title); in onResume() local
274 setTitle(text); in onResume()
348 String text = mText.getText().toString(); in onPause() local
349 int length = text.length(); in onPause()
369 updateNote(text, null); in onPause()
371 updateNote(text, text); in onPause()
437 String text = mText.getText().toString(); in onOptionsItemSelected() local
438 updateNote(text, null); in onOptionsItemSelected()
469 String text=null; in performPaste() local
498 text = orig.getString(colNoteIndex); in performPaste()
[all …]
/development/samples/devbytes/animation/ListViewExpandingCells/src/com/example/android/expandingcells/
DExpandableListItem.java34 public ExpandableListItem(String title, int imgResource, int collapsedHeight, String text) { in ExpandableListItem() argument
39 mText = text; in ExpandableListItem()
71 public void setText(String text) { in setText() argument
72 mText = text; in setText()
/development/samples/browseable/DataLayer/Wearable/src/com.example.android.wearable.datalayer/fragments/
DDataFragment.java55 public void appendItem(String title, String text) { in appendItem() argument
60 mDataItemListAdapter.add(new Event(title, text)); in appendItem()
88 holder.text2.setText(event.text); in getView()
102 String text; field in DataFragment.Event
104 public Event(String title, String text) { in Event() argument
106 this.text = text; in Event()
/development/samples/browseable/ElizaChat/src/com.example.android.wearable.elizachat/
DResponderService.java30 import android.text.TextUtils;
116 private void processIncoming(String text) { in processIncoming() argument
118 Log.d(TAG, "Received: " + text); in processIncoming()
120 mLastResponse = mResponder.elzTalk(text); in processIncoming()
121 String line = TextUtils.isEmpty(text) ? mLastResponse : text + "\n" + mLastResponse; in processIncoming()
125 if (!TextUtils.isEmpty(text)) { in processIncoming()
/development/samples/USB/AdbTest/src/com/android/adb/
DAdbTestActivity.java87 private void appendLog(String text) { in appendLog() argument
91 text = mLog.getText() + "\n" + text; in appendLog()
94 int index = text.lastIndexOf('\n'); in appendLog()
98 index = text.lastIndexOf('\n', index - 1); in appendLog()
103 text = text.substring(index + 1); in appendLog()
105 mLog.setText(text); in appendLog()
/development/samples/SampleSyncAdapter/samplesyncadapter_server/static/css/
Dmain.css26 text-align: left;
54 text-align: left;
58 text-align: center;
62 text-decoration: line-through;
76 text-align: right;

12345678910>>...15