Home
last modified time | relevance | path

Searched refs:builder (Results 1 – 25 of 71) sorted by relevance

123

/cts/tests/tests/text/src/android/text/cts/
DSelectionTest.java29 SpannableStringBuilder builder = new SpannableStringBuilder(text); in testGetSelectionStart() local
30 assertEquals(-1, Selection.getSelectionStart(builder)); in testGetSelectionStart()
32 Selection.setSelection(builder, 3, 8); in testGetSelectionStart()
33 assertEquals(3, Selection.getSelectionStart(builder)); in testGetSelectionStart()
35 Selection.setSelection(builder, 3, 9); in testGetSelectionStart()
36 assertEquals(3, Selection.getSelectionStart(builder)); in testGetSelectionStart()
38 Selection.setSelection(builder, 5, 7); in testGetSelectionStart()
39 assertEquals(5, Selection.getSelectionStart(builder)); in testGetSelectionStart()
46 SpannableStringBuilder builder = new SpannableStringBuilder(text); in testGetSelectionEnd() local
47 assertEquals(-1, Selection.getSelectionEnd(builder)); in testGetSelectionEnd()
[all …]
DSpannableStringBuilderTest.java85 SpannableStringBuilder builder = new SpannableStringBuilder("spannable string"); in testGetSpanFlags() local
86 assertEquals(0, builder.getSpanFlags(mUnderlineSpan)); in testGetSpanFlags()
88 builder.setSpan(mUnderlineSpan, 2, 4, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testGetSpanFlags()
89 builder.setSpan(mUnderlineSpan, 0, 1, Spanned.SPAN_EXCLUSIVE_INCLUSIVE); in testGetSpanFlags()
90 builder.setSpan(mStrikethroughSpan, 5, 7, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in testGetSpanFlags()
92 assertEquals(Spanned.SPAN_EXCLUSIVE_INCLUSIVE, builder.getSpanFlags(mUnderlineSpan)); in testGetSpanFlags()
93 assertEquals(Spanned.SPAN_INCLUSIVE_EXCLUSIVE, builder.getSpanFlags(mStrikethroughSpan)); in testGetSpanFlags()
94 assertEquals(0, builder.getSpanFlags(new Object())); in testGetSpanFlags()
98 SpannableStringBuilder builder = new SpannableStringBuilder("spannable string"); in testNextSpanTransition() local
100 builder.setSpan(mUnderlineSpan, 1, 2, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testNextSpanTransition()
[all …]
/cts/tests/uiautomator/test-apps/CtsUiAutomatorApp/src/com/android/cts/uiautomator/
DTest2DetailFragment.java50 AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); in onOptionsItemSelected() local
51 builder.setTitle(R.string.dialog_title_result); in onOptionsItemSelected()
52 builder.setMessage(item.getTitle()); in onOptionsItemSelected()
53 builder.setPositiveButton(R.string.OK, null); in onOptionsItemSelected()
54 AlertDialog diag = builder.create(); in onOptionsItemSelected()
71 AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); in onCreateView()
72 builder.setTitle(R.string.dialog_title_result); in onCreateView()
73 builder.setPositiveButton(R.string.OK, null); in onCreateView()
74 builder.setMessage(R.string.button1); in onCreateView()
75 AlertDialog diag = builder.create(); in onCreateView()
[all …]
DTest3DetailFragment.java62 AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); in onOptionsItemSelected() local
63 builder.setTitle(R.string.dialog_title_result); in onOptionsItemSelected()
64 builder.setMessage(item.getTitle()); in onOptionsItemSelected()
65 builder.setPositiveButton(R.string.OK, null); in onOptionsItemSelected()
66 AlertDialog diag = builder.create(); in onOptionsItemSelected()
102 AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); in onCreateView()
103 builder.setTitle(R.string.test3_dialog_title); in onCreateView()
104 builder.setPositiveButton(R.string.OK, null); in onCreateView()
108 builder.setMessage("" + (mCurrentTime - inputTime)); in onCreateView()
110 builder.setMessage("<NO DATA>"); in onCreateView()
[all …]
/cts/tools/signature-tools/src/signature/model/impl/
DSigConstructor.java35 StringBuilder builder = new StringBuilder(); in toString() local
36 builder.append(super.toString()); in toString()
37 builder.append(" "); in toString()
38 builder.append(Modifier.toString(getModifiers())); in toString()
40 builder.append("<"); in toString()
41 builder.append(ModelUtil.separate(getTypeParameters(), ", ")); in toString()
42 builder.append("> "); in toString()
44 builder.append(getName()); in toString()
45 builder.append("("); in toString()
46 builder.append(getParameters().isEmpty() ? "" : ModelUtil.separate( in toString()
[all …]
DSigMethod.java51 StringBuilder builder = new StringBuilder(); in toString() local
52 builder.append(Modifier.toString(method.getModifiers())); in toString()
53 builder.append(method.getReturnType()); in toString()
54 builder.append(" "); in toString()
57 builder.append("<"); in toString()
58 builder in toString()
61 builder.append("> "); in toString()
63 builder.append(method.getName()); in toString()
64 builder.append("("); in toString()
65 builder.append(method.getParameters().isEmpty() ? "" : ModelUtil in toString()
[all …]
DSigAnnotation.java55 StringBuilder builder = new StringBuilder(); in toString() local
56 builder.append("@"); in toString()
57 builder.append(getType()); in toString()
59 builder.append("{"); in toString()
61 builder.append("\n"); in toString()
62 builder.append(element.toString()); in toString()
64 builder.append("}"); in toString()
66 return builder.toString(); in toString()
DSigField.java63 StringBuilder builder = new StringBuilder(); in toString() local
65 builder.append(super.toString()); in toString()
66 builder.append("\n"); in toString()
68 builder.append(Modifier.toString(getModifiers())); in toString()
69 builder.append(getType().toString()); in toString()
70 builder.append(" "); in toString()
71 builder.append(getName()); in toString()
72 return builder.toString(); in toString()
DSigWildcardType.java85 StringBuilder builder = new StringBuilder(); in toString() local
86 builder.append("?"); in toString()
88 builder.append(" "); in toString()
89 builder.append(" super "); in toString()
90 builder.append(thiz.getLowerBound()); in toString()
93 builder.append(" extends "); in toString()
94 builder.append(thiz.getUpperBounds()); in toString()
96 return builder.toString(); in toString()
DSigParameter.java40 StringBuilder builder = new StringBuilder(); in toString() local
41 builder.append(super.toString()); in toString()
42 builder.append(" "); in toString()
43 builder.append(getType().toString()); in toString()
44 return builder.toString(); in toString()
DSigAnnotationElement.java48 StringBuilder builder = new StringBuilder(); in toString() local
49 builder.append(getDeclaringField().getName()); in toString()
50 builder.append(" = "); in toString()
51 builder.append(getValue()); in toString()
52 return builder.toString(); in toString()
DSigParameterizedType.java110 StringBuilder builder = new StringBuilder(); in toString() local
112 builder.append(type.getOwnerType().toString()); in toString()
113 builder.append("::"); in toString()
115 builder.append(type.getRawType()); in toString()
116 builder.append("<"); in toString()
117 builder.append(ModelUtil.separate(type.getTypeArguments(), ", ")); in toString()
118 builder.append(">"); in toString()
119 return builder.toString(); in toString()
DSigTypeVariableDefinition.java60 StringBuilder builder = new StringBuilder(); in toString() local
61 builder.append(name); in toString()
63 builder.append(ModelUtil.separate(getUpperBounds(), ", ")); in toString()
66 builder.append(getUpperBounds().get(0)); in toString()
69 return builder.toString(); in toString()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/
DChangeDefaultEmulatorActivity.java55 AlertDialog.Builder builder = new AlertDialog.Builder(this); in onServicesSetup() local
56 builder.setTitle("Note"); in onServicesSetup()
57 builder.setMessage(R.string.nfc_hce_change_preinstalled_wallet); in onServicesSetup()
58 builder.setPositiveButton("OK", this); in onServicesSetup()
59 builder.show(); in onServicesSetup()
62 AlertDialog.Builder builder = new AlertDialog.Builder(this); in onServicesSetup() local
63 builder.setTitle("Note"); in onServicesSetup()
64 builder.setMessage(R.string.nfc_hce_change_default_help); in onServicesSetup()
65 builder.setPositiveButton("OK", this); in onServicesSetup()
66 builder.show(); in onServicesSetup()
[all …]
DSinglePaymentEmulatorActivity.java36 AlertDialog.Builder builder = new AlertDialog.Builder(this); in onServicesSetup() local
37 builder.setTitle("Note"); in onServicesSetup()
38 builder.setMessage(R.string.nfc_hce_change_preinstalled_wallet); in onServicesSetup()
39 builder.setPositiveButton("OK", this); in onServicesSetup()
40 builder.show(); in onServicesSetup()
70 AlertDialog.Builder builder = new AlertDialog.Builder(this); in onActivityResult() local
71 builder.setTitle("Test failed."); in onActivityResult()
72 builder.setMessage("PaymentService1 is not the default service according " + in onActivityResult()
75 builder.setPositiveButton("OK", null); in onActivityResult()
76 builder.show(); in onActivityResult()
DDualPaymentEmulatorActivity.java52 AlertDialog.Builder builder = new AlertDialog.Builder(this); in onServicesSetup() local
53 builder.setTitle("Note"); in onServicesSetup()
54 builder.setMessage(R.string.nfc_hce_change_preinstalled_wallet); in onServicesSetup()
55 builder.setPositiveButton("OK", this); in onServicesSetup()
56 builder.show(); in onServicesSetup()
75 AlertDialog.Builder builder = new AlertDialog.Builder(this); in onActivityResult() local
76 builder.setTitle("Test failed."); in onActivityResult()
77 builder.setMessage("PaymentService2 is not the default service according " + in onActivityResult()
80 builder.setPositiveButton("OK", null); in onActivityResult()
81 builder.show(); in onActivityResult()
/cts/tools/dex-tools/src/dex/reader/
DTypeFormatter.java92 StringBuilder builder = new StringBuilder(); in format() local
96 builder.append(separator); in format()
98 builder.append(element.toString()); in format()
101 return builder.toString(); in format()
106 StringBuilder builder = new StringBuilder(); in formatDexFile() local
107 builder.append("----------------DEX_FILE--------------\n\n"); in formatDexFile()
108 builder.append("Filename: ").append(file.getName()); in formatDexFile()
109 builder.append("\n-----------DEFINED_CLASSES------------\n\n"); in formatDexFile()
111 builder.append("\n________________CLASS________________\n\n"); in formatDexFile()
112 builder.append(dexClass); in formatDexFile()
[all …]
DDexAnnotationImpl.java69 StringBuilder builder = new StringBuilder(); in toString() local
70 builder.append("@"); in toString()
71 builder.append(formatter.format(encodedAnnotation.getTypeName())); in toString()
73 builder.append(" ("); in toString()
75 builder.append(value.toString()); in toString()
76 builder.append(" "); in toString()
78 builder.append(")"); in toString()
80 return builder.toString(); in toString()
DDexMethodImpl.java141 StringBuilder builder = new StringBuilder(); in toString() local
142 builder.append(formatter.formatAnnotations(getAnnotations())); in toString()
143 builder.append(Modifier.toString(getModifiers())); in toString()
144 builder.append(" "); in toString()
145 builder.append(formatter.format(getReturnType())); in toString()
146 builder.append(" "); in toString()
147 builder.append(getName()); in toString()
148 builder.append("("); in toString()
151 builder.append(formatter.formatAnnotations(dexParameter in toString()
153 builder.append(formatter.format(dexParameter.getTypeName())); in toString()
[all …]
DDexFieldImpl.java95 StringBuilder builder = new StringBuilder(); in toString() local
96 builder.append(formatter.formatAnnotations(getAnnotations())); in toString()
97 builder.append(Modifier.toString(getModifiers())); in toString()
98 builder.append(" "); in toString()
99 builder.append(formatter.format(getType())); in toString()
100 builder.append(" "); in toString()
101 builder.append(getName()); in toString()
102 return builder.toString(); in toString()
/cts/libs/commonutil/src/com/android/cts/util/
DReportLog.java62 StringBuilder builder = new StringBuilder(); in doPrintArray() local
65 builder.append(getClassMethodNames(mDepth + 1, true) + LOG_ELEM_SEPARATOR + message + in doPrintArray()
69 builder.append(v); in doPrintArray()
70 builder.append(" "); in doPrintArray()
72 mMessages.add(builder.toString()); in doPrintArray()
73 printLog(builder.toString()); in doPrintArray()
123 StringBuilder builder = new StringBuilder(); in generateReport() local
124 builder.append(mSummary); in generateReport()
125 builder.append(SUMMARY_SEPARATOR); in generateReport()
127 builder.append(entry); in generateReport()
[all …]
/cts/tests/tests/holo/src/android/holo/cts/modifiers/
DAlertDialogBuilder.java47 AlertDialog.Builder builder = new AlertDialog.Builder(view.getContext()); in buildDialog() local
51 builder.setTitle("Exit Dialog") in buildDialog()
56 builder.setMessage("Are you sure you want to exit?") in buildDialog()
61 builder.setMessage("Are you sure you want to exit?") in buildDialog()
67 builder.setTitle("Pick a Color") in buildDialog()
71 builder.setTitle("Pick a Color") in buildDialog()
75 builder.setTitle("Pick a Color") in buildDialog()
80 return builder.show(); in buildDialog()
/cts/tools/signature-tools/src/signature/compare/model/impl/
DSigDelta.java81 StringBuilder builder = new StringBuilder(); in toString() local
82 builder.append(getClass().getSimpleName()); in toString()
83 builder.append(":\n"); in toString()
95 builder.append("from: "); in toString()
96 builder.append(from); in toString()
97 builder.append("\nto: "); in toString()
98 builder.append(to); in toString()
99 builder.append("\n"); in toString()
106 builder.append(field.getName()); in toString()
107 builder.append(":\n"); in toString()
[all …]
/cts/tests/tests/net/src/android/net/cts/
DUri_BuilderTest.java26 Builder builder = uri.buildUpon(); in testBuilderOperations() local
27 uri = builder.appendPath("p2").build(); in testBuilderOperations()
33 assertEquals(uri.toString(), builder.toString()); in testBuilderOperations()
36 builder = uri.buildUpon(); in testBuilderOperations()
37 uri = builder.build(); in testBuilderOperations()
40 assertEquals(uri.toString(), builder.toString()); in testBuilderOperations()
/cts/tests/tests/database/src/android/database/cts/
DMatrixCursor_RowBuilderTest.java36 RowBuilder builder = cursor.newRow(); in testAdd() local
37 assertNotNull(builder); in testAdd()
44 builder.add(Integer.MIN_VALUE); in testAdd()
50 builder.add(0); in testAdd()
57 builder.add(Integer.MAX_VALUE); in testAdd()
66 builder.add(1); in testAdd()

123