Home
last modified time | relevance | path

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

12345678910>>...15

/development/tools/logblame/
Dtest_logs.py13 text = """[ 03-29 00:46:58.872 1000: 1815: 1816 I/ ]
16 check_parsing(expected, text)
23 text = """[ 03-29 00:46:58.872 1000: 1815: 1816 I/ ]
25 check_parsing(expected, text)
33 text = """[ 03-29 00:46:58.872 1000: 1815: 1816 I/abcd ]
38 check_parsing(expected, text)
45 text = """[ 03-29 00:46:58.872 1000: 1815: 1816 I/abcd ]
51 check_parsing(expected, text)
58 text = """[ 03-29 00:46:58.872 1000: 1815: 1816 I/abcd ]
63 check_parsing(expected, text)
[all …]
Dlogs.py20 tag=None, text=""): argument
28 self.text = text
33 self.pid, self.tid, self.level, self.tag, self.text)
44 and self.text == other.text
49 self.tag, self.text)
57 return 32 + 8 + len(self.tag) + 1 + len(self.text) + 1
64 m = CHATTY_IDENTICAL.match(logLine.text)
151 text=m.group(6)
161 logLine.text += "\n"
167 logLine.text += line
[all …]
Dps.py53 text = subprocess.check_output(["adb", "shell", "ps"])
56 lines = ParsePs(text)
67 text = subprocess.check_output(["adb", "shell", "dumpsys", "package", "--checkin"])
70 lines = ParseUids(text)
112 def ParsePs(text): argument
115 for line in text.splitlines():
126 def ParseUids(text): argument
129 return [(x[2], x[1]) for x in csv.reader(text.split("\n")) if len(x) and x[0] == "pkg"]
132 def ParseUid(text): argument
133 m = ANDROID_UID_RE.match(text)
[all …]
Dtest_ps.py7 text = """USER PID PPID VSIZE RSS WCHAN PC NAME
15 actual = ps.ParsePs(text)
35 text = """vers,1
53 actual = ps.ParseUids(text)
/development/tools/bugreport/src/com/android/bugreport/stacks/
DProcessSnapshotParser.java73 final String text = line.text; in parse() local
74 if (Utils.matches(beginProcessRe, text)) { in parse()
77 } else if (Utils.matches(beginUnmanagedThreadRe, text)) { in parse()
81 } else if (Utils.matches(beginManagedThreadRe, text)) { in parse()
85 } else if (Utils.matches(beginNotAttachedThreadRe, text)) { in parse()
89 } else if (Utils.matches(endProcessRe, text)) { in parse()
91 } else if (Utils.matches(cmdLineRe, text)) { in parse()
95 System.out.println("ProcessSnapshotParser Dropping: " + text); in parse()
104 final String text = line.text; in parse() local
105 if (Utils.matches(beginUnmanagedThreadRe, text) in parse()
[all …]
DThreadSnapshotParser.java121 String text; in parse() local
129 if (Utils.matches(beginUnmanagedThreadRe, line.text)) { in parse()
135 } else if (Utils.matches(beginManagedThreadRe, line.text)) { in parse()
142 } else if (Utils.matches(beginNotAttachedThreadRe, line.text)) { in parse()
154 text = line.text; in parse()
155 if (Utils.matches(heldMutexesRe, text)) { in parse()
158 } else if (Utils.matches(attrRe, text)) { in parse()
160 if (Utils.matches(sysTidAttrRe, text)) { in parse()
163 if (Utils.matches(stateAttrRe, text)) { in parse()
175 text = line.text; in parse()
[all …]
DVmTracesParser.java58 final String text = line.text; in parse() local
59 if (Utils.matches(mBeginProcessRe, text)) { in parse()
67 final String text = line.text; in parse() local
69 if (Utils.matches(mBeginProcessRe, text)) { in parse()
80 System.out.println("VmTracesParser Dropping: " + text); in parse()
/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/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/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()
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()
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()
/development/tools/bugreport/src/com/android/bugreport/util/
DLine.java27 public String text; field in Line
38 public Line(int lineno, String text) { in Line() argument
40 this.text = text; in Line()
/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/tools/bugreport/src/com/android/bugreport/logcat/
DLogcatParser.java57 final String text = line.text; in parse() local
59 if ((m = Utils.match(mBufferBeginRe, text)) != null) { in parse()
64 ll.rawText = text; in parse()
68 } else if ((m = Utils.match(mLogLineRe, text)) != null) { in parse()
73 ll.rawText = text; in parse()
80 ll.text = m.group(13); in parse()
87 + " text=" + ll.text); in parse()
91 System.out.println("\nUNMATCHED: [" + text + "]"); in parse()
/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/tools/bugreport/src/com/android/bugreport/monkey/
DMonkeyLogParser.java56 final String text = line.text; in parse() local
59 final Matcher anrStart = NOT_RESPONDING_RE.matcher(text); in parse()
60 if (Utils.matches(anrStart, text)) { in parse()
90 anrStart.reset(line.text); in extractAnrLines()
93 list.add(new Line(lineno, line.text)); in extractAnrLines()
97 monkeyEnd.reset(line.text); in extractAnrLines()
101 list.add(new Line(lineno, line.text)); in extractAnrLines()
/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/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/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()
/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 …]

12345678910>>...15