Home
last modified time | relevance | path

Searched refs:getText (Results 1 – 25 of 525) sorted by relevance

12345678910>>...21

/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DExpressionTest.java38 assertEquals("hello", mBinder.textView0.getText().toString()); in testOr()
41 assertEquals("hello", mBinder.textView0.getText().toString()); in testOr()
45 assertEquals("hello", mBinder.textView0.getText().toString()); in testOr()
48 assertEquals("world", mBinder.textView0.getText().toString()); in testOr()
57 assertEquals("hello", mBinder.textView1.getText().toString()); in testAnd()
60 assertEquals("world", mBinder.textView1.getText().toString()); in testAnd()
64 assertEquals("world", mBinder.textView1.getText().toString()); in testAnd()
67 assertEquals("world", mBinder.textView1.getText().toString()); in testAnd()
75 assertEquals("0", mBinder.textView2.getText().toString()); // var1 & var2 in testBinary()
76 assertEquals("0", mBinder.textView3.getText().toString()); // var1 | var2 in testBinary()
[all …]
DBracketTest.java66 assertEquals("Hello World", mBinder.arrayText.getText().toString()); in testBrackets()
67 assertEquals("Hello", mBinder.sparseArrayText.getText().toString()); in testBrackets()
68 assertEquals("World", mBinder.longSparseArrayText.getText().toString()); in testBrackets()
69 assertEquals("100", mBinder.sparseIntArrayText.getText().toString()); in testBrackets()
70 assertEquals("true", mBinder.sparseBooleanArrayText.getText().toString()); in testBrackets()
71 assertEquals("5", mBinder.sparseLongArrayText.getText().toString()); in testBrackets()
78 assertEquals("", mBinder.arrayText.getText().toString()); in testBracketOutOfBounds()
79 assertEquals("", mBinder.sparseArrayText.getText().toString()); in testBracketOutOfBounds()
80 assertEquals("", mBinder.longSparseArrayText.getText().toString()); in testBracketOutOfBounds()
81 assertEquals("0", mBinder.sparseIntArrayText.getText().toString()); in testBracketOutOfBounds()
[all …]
DObservableFieldTest.java45 assertEquals("false", view.getText()); in testBoolean()
50 assertEquals("true", view.getText()); in testBoolean()
56 assertEquals("0", view.getText()); in testByte()
61 assertEquals("1", view.getText()); in testByte()
67 assertEquals("0", view.getText()); in testShort()
72 assertEquals("1", view.getText()); in testShort()
78 assertEquals("\u0000", view.getText()); in testChar()
83 assertEquals("A", view.getText()); in testChar()
89 assertEquals("0", view.getText()); in testInt()
94 assertEquals("1", view.getText()); in testInt()
[all …]
DIncludeTagTest.java40 assertEquals("a", outerText.getText()); in testIncludeTag()
42 assertEquals("modified 3a", innerText.getText().toString()); in testIncludeTag()
47 assertEquals("a hello 3a", textView1.getText().toString()); in testIncludeTag()
48 assertEquals("b hello 3a", textView2.getText().toString()); in testIncludeTag()
52 assertEquals("a goodbye 3a", mergeLayoutBinding.innerTextView1.getText().toString()); in testIncludeTag()
53 assertEquals("b goodbye 3a", mergeLayoutBinding.innerTextView2.getText().toString()); in testIncludeTag()
57 assertEquals("a 1 third 3a", merge1.innerTextView1.getText().toString()); in testIncludeTag()
58 assertEquals("b 1 third 3a", merge1.innerTextView2.getText().toString()); in testIncludeTag()
59 assertEquals("a 2 third 3a", merge2.innerTextView1.getText().toString()); in testIncludeTag()
60 assertEquals("b 2 third 3a", merge2.innerTextView2.getText().toString()); in testIncludeTag()
[all …]
DMultiArgAdapterTest.java47 assertEquals(mBinder.merged.getText().toString(), join(obj1, obj2)); in testMultiArgIsCalled()
48 assertEquals(mBinder.view2.getText().toString(), join(obj2)); in testMultiArgIsCalled()
49 assertEquals(mBinder.view3.getText().toString(), join(obj3)); in testMultiArgIsCalled()
50 assertEquals(mBinder.view4.getText().toString(), join(obj4)); in testMultiArgIsCalled()
51 String prev2 = mBinder.view2.getText().toString(); in testMultiArgIsCalled()
52 String prevValue = mBinder.merged.getText().toString(); in testMultiArgIsCalled()
55 assertEquals(prevValue, mBinder.merged.getText().toString()); in testMultiArgIsCalled()
58 assertEquals(prevValue, mBinder.merged.getText().toString()); in testMultiArgIsCalled()
61 String prev3 = mBinder.view3.getText().toString(); in testMultiArgIsCalled()
62 String prev4 = mBinder.view4.getText().toString(); in testMultiArgIsCalled()
[all …]
DFindMethodTest.java33 assertEquals("no arg", textView.getText().toString()); in testNoArg()
38 assertEquals("1", textView.getText().toString()); in testIntArg()
43 assertEquals("1.25", textView.getText().toString()); in testFloatArg()
48 assertEquals("hello", textView.getText().toString()); in testStringArg()
53 assertEquals("1", textView.getText().toString()); in testBoxedArg()
58 assertEquals("base", textView.getText().toString()); in testInheritedMethod()
63 assertEquals("base 2", textView.getText().toString()); in testInheritedMethodInt()
68 assertEquals("world", textView.getText().toString()); in testStaticMethod()
73 assertEquals("hello world", textView.getText().toString()); in testStaticField()
78 assertEquals("world", textView.getText().toString()); in testImportStaticMethod()
[all …]
DMultiArgAdapterEvaluationTest.java42 assertEquals(mBinder.merged.getText().toString(), join(obj1.getValue(), obj2.getValue())); in testMultiArgIsCalled()
43 assertEquals(mBinder.view2.getText().toString(), join(obj2.getValue())); in testMultiArgIsCalled()
44 assertEquals(mBinder.view2text.getText().toString(), obj2.getValue()); in testMultiArgIsCalled()
46 String prev2 = mBinder.view2.getText().toString(); in testMultiArgIsCalled()
47 String prevValue = mBinder.merged.getText().toString(); in testMultiArgIsCalled()
50 assertEquals(prevValue, mBinder.merged.getText().toString()); in testMultiArgIsCalled()
53 assertEquals(prevValue, mBinder.merged.getText().toString()); in testMultiArgIsCalled()
57 assertEquals(join(obj1, obj2), mBinder.merged.getText().toString()); in testMultiArgIsCalled()
58 assertEquals("obj2 should not be re-evaluated", prev2, mBinder.view2.getText().toString()); in testMultiArgIsCalled()
60 mBinder.view2text.getText().toString()); in testMultiArgIsCalled()
DInstanceAdapterTest.java76 assertEquals("Hello World foo bar baz", mBinder.textView1.getText().toString()); in testOneAttr()
84 assertEquals("Hello World baz foo bar", mBinder.textView2.getText().toString()); in testTwoAttr()
92 assertEquals("Hello null World foo bar", mBinder.textView3.getText().toString()); in testOneAttrOld()
95 assertEquals("Hello World Android foo bar", mBinder.textView3.getText().toString()); in testOneAttrOld()
103 assertEquals("Hello null baz World baz", mBinder.textView4.getText().toString()); in testTwoAttrOld()
106 assertEquals("Hello World baz Android baz", mBinder.textView4.getText().toString()); in testTwoAttrOld()
127 … assertEquals("Hello World foo bar baz", binding.includedLayout.textView1.getText().toString()); in testInclude()
141 assertEquals("Hello World foo bar baz", view.getText().toString()); in testViewStub()
149 assertEquals("World component", mBinder.textView6.getText().toString()); in testOneAttrWithComponentStatic()
157 assertEquals("Hello World component bar baz", mBinder.textView7.getText().toString()); in testOneAttrWithComponentInstance()
[all …]
DResourceTest.java48 assertEquals("Mrs. Doubtfire", view.getText().toString()); in testStringFormat()
52 assertEquals("Mr. Doubtfire", view.getText().toString()); in testStringFormat()
58 assertEquals("oranges", view.getText().toString()); in testQuantityString()
62 assertEquals("orange", view.getText().toString()); in testQuantityString()
68 assertEquals("1.5", view.getText().toString()); in testFractionNoParameters()
74 assertEquals("3.0", view.getText().toString()); in testFractionOneParameter()
80 assertEquals("9.0", view.getText().toString()); in testFractionTwoParameters()
DDefaultBindingTest.java27 assertEquals("Hello World", binding.textView1.getText().toString()); in testDefaultValue()
28 assertEquals("Hello World", binding.textView2.getText().toString()); in testDefaultValue()
29 assertEquals("TestApp", binding.textView3.getText().toString()); in testDefaultValue()
30 assertEquals("Hello ` \"World\"", binding.textView4.getText().toString()); in testDefaultValue()
31 assertEquals("Hello World", binding.textView5.getText().toString()); in testDefaultValue()
33 binding.textView6.getText().toString()); in testDefaultValue()
DGenericAdapterTest.java40 assertEquals("Hello World", getBinder().textView1.getText().toString()); in testGenericArgs()
41 assertEquals("Hello World", getBinder().textView2.getText().toString()); in testGenericArgs()
42 assertEquals("Hello World", getBinder().textView3.getText().toString()); in testGenericArgs()
43 assertEquals("Hello World", getBinder().textView4.getText().toString()); in testGenericArgs()
46 assertEquals("Hello World", getBinder().textView7.getText().toString()); in testGenericArgs()
DMultiThreadTest.java16 assertEquals("a", mBinder.getText()); in testSetOnBackgroundThread()
21 assertEquals("a", mBinder.myTextView.getText().toString()); in testSetOnBackgroundThread()
26 assertEquals("b", mBinder.getText()); in testSetOnBackgroundThread()
30 assertEquals("b", mBinder.myTextView.getText().toString()); in testSetOnBackgroundThread()
DInnerCannotReadDependencyTest.java37 assertEquals("a ", mBinder.textView.getText().toString()); in testBinding()
40 assertEquals("null ", mBinder.textView.getText().toString()); in testBinding()
43 assertEquals("null b", mBinder.textView.getText().toString()); in testBinding()
46 assertEquals("c b", mBinder.textView.getText().toString()); in testBinding()
/frameworks/data-binding/compiler/src/test/java/android/databinding/
DBindingExpressionParserTest.java63 assertEquals("`test`", token.getText()); in testSingleQuoteStringLiteral()
74 assertEquals("\"test\"", token.getText()); in testDoubleQuoteStringLiteral()
84 assertEquals("`\"t\\`est\"`", token.getText()); in testSingleQuoteEscapeStringLiteral()
90 assertEquals("'c'", literal.getText()); in testCharLiteral()
92 assertEquals("'\\u0054'", literal.getText()); in testCharLiteral()
94 assertEquals("'\\''", literal.getText()); in testCharLiteral()
139 String token = literal.getText(); in testNullLiteral()
148 assertEquals("void", primary.classExtraction().getChild(0).getText()); in testVoidExtraction()
155 assertEquals("int", type.getText()); in testPrimitiveClassExtraction()
161 assertEquals("abcdEfg", primary.identifier().getText()); in testIdentifier()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewTest.java44 CharSequence oldText = tv.getText(); in testArray()
47 CharSequence newText = tv.getText(); in testArray()
71 assertEquals(originalText, tv.getText().toString()); in testProcessTextActivityResultNonEditable()
73 Selection.setSelection((Spannable) tv.getText(), 0, tv.getText().length()); in testProcessTextActivityResultNonEditable()
88 assertEquals(originalText, tv.getText().toString()); in testProcessTextActivityResultNonEditable()
96 assertEquals(originalText, tv.getText().toString()); in testProcessTextActivityResultEditable()
98 Selection.setSelection(tv.getText(), 0, tv.getText().length()); in testProcessTextActivityResultEditable()
105 assertEquals(newText, tv.getText().toString()); in testProcessTextActivityResultEditable()
113 assertEquals(originalText, tv.getText().toString()); in testProcessTextActivityResultCancel()
115 Selection.setSelection(tv.getText(), 0, tv.getText().length()); in testProcessTextActivityResultCancel()
[all …]
DEditorCursorTest.java122 assertThat(mEditText.getText().toString(), isEmptyString()); in testCursorIsOnLeft_withFirstStrongLtrAlgorithm()
128 assertThat(mEditText.getText().toString(), isEmptyString()); in testCursorIsOnLeft_withFirstStrongLtrAlgorithm()
133 assertThat(mEditText.getText().toString(), isEmptyString()); in testCursorIsOnLeft_withFirstStrongLtrAlgorithm()
141 assertThat(mEditText.getText().toString(), isEmptyString()); in testCursorIsOnRight_withFirstStrongRtlAlgorithm()
147 assertThat(mEditText.getText().toString(), isEmptyString()); in testCursorIsOnRight_withFirstStrongRtlAlgorithm()
152 assertThat(mEditText.getText().toString(), isEmptyString()); in testCursorIsOnRight_withFirstStrongRtlAlgorithm()
160 assertThat(mEditText.getText().toString(), isEmptyString()); in testCursorIsOnLeft_withLtrAlgorithm()
166 assertThat(mEditText.getText().toString(), isEmptyString()); in testCursorIsOnLeft_withLtrAlgorithm()
171 assertThat(mEditText.getText().toString(), isEmptyString()); in testCursorIsOnLeft_withLtrAlgorithm()
179 assertThat(mEditText.getText().toString(), isEmptyString()); in testCursorIsOnRight_withRtlAlgorithm()
[all …]
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
DClientTest.java70 app_id.getText().toString(), in onCreate()
71 cont.getText().toString(), in onCreate()
72 pkg.getText().toString(), in onCreate()
73 cls.getText().toString(), in onCreate()
80 app_id.getText().toString(), in onCreate()
81 cont.getText().toString(), in onCreate()
82 pkg.getText().toString(), in onCreate()
83 cls.getText().toString(), in onCreate()
105 app_id.getText().toString(), in onCreate()
106 cont.getText().toString(), in onCreate()
[all …]
/frameworks/base/core/java/android/widget/
DDialerFilter.java126 if (mLetters.getText().length() == mDigits.getText().length()) { in onKeyDown()
132 if (mDigits.getText().length() == mLetters.getText().length()) { in onKeyDown()
267 Editable lettersText = mLetters.getText(); in swapPrimaryAndHint()
268 Editable digitsText = mDigits.getText(); in swapPrimaryAndHint()
282 lettersText = mLetters.getText(); in swapPrimaryAndHint()
287 digitsText = mDigits.getText(); in swapPrimaryAndHint()
298 return mLetters.getText(); in getLetters()
306 return mDigits.getText(); in getDigits()
323 mDigits.getText().append(text); in append()
324 mLetters.getText().append(text); in append()
[all …]
DEditText.java83 public Editable getText() { in getText() method in EditText
84 return (Editable) super.getText(); in getText()
96 Selection.setSelection(getText(), start, stop); in setSelection()
103 Selection.setSelection(getText(), index); in setSelection()
110 Selection.selectAll(getText()); in selectAll()
117 Selection.extendSelection(getText(), index); in extendSelection()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DGsmMmiCode.java981 mMessage = mContext.getText(com.android.internal.R.string.mmiError); in processCode()
990 sb.append(mContext.getText(res)); in handlePasswordError()
1008 mMessage = mContext.getText(com.android.internal.R.string.mmiComplete); in onUssdFinished()
1032 mMessage = mContext.getText(com.android.internal.R.string.mmiError); in onUssdFinishedError()
1145 return mContext.getText(com.android.internal.R.string.mmiFdnError); in getErrorMessage()
1148 return mContext.getText(com.android.internal.R.string.stk_cc_ussd_to_dial); in getErrorMessage()
1151 return mContext.getText(com.android.internal.R.string.stk_cc_ussd_to_ss); in getErrorMessage()
1154 return mContext.getText(com.android.internal.R.string.stk_cc_ussd_to_ussd); in getErrorMessage()
1157 return mContext.getText(com.android.internal.R.string.stk_cc_ss_to_dial); in getErrorMessage()
1160 return mContext.getText(com.android.internal.R.string.stk_cc_ss_to_ussd); in getErrorMessage()
[all …]
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/
DExpressionVisitor.java74 String str = ctx.SingleQuoteString().getText(); in visitStringLiteral()
79 javaString = ctx.DoubleQuoteString().getText(); in visitStringLiteral()
106 System.out.println("Error while parsing! " + ctx.getText()); in visitBindingSyntax()
119 ModelClass modelClass = analyzer.findClass(ctx.getText(), mModel.getImports()); in visitDotOp()
122 ctx.Identifier().getSymbol().getText()); in visitDotOp()
176 return mModel.symbol(node.getText(), classType); in visitTerminal()
186 … return mModel.comparison(ctx.op.getText(), ctx.left.accept(this), ctx.right.accept(this)); in visitComparisonOp()
196 return mModel.identifier(ctx.getText()); in visitIdentifier()
222 if (Objects.equal(item.getText(), ",")) { in visitMethodInvocation()
229 ctx.Identifier().getText(), args); in visitMethodInvocation()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneMmiCode.java970 mMessage = mContext.getText(com.android.internal.R.string.mmiError); in processCode()
988 mMessage = mContext.getText(com.android.internal.R.string.mmiComplete); in onUssdFinished()
1012 mMessage = mContext.getText(com.android.internal.R.string.mmiError); in onUssdFinishedError()
1136 return mContext.getText(com.android.internal.R.string.mmiError); in getErrorMessage()
1142 return mContext.getText(com.android.internal.R.string.BaMmi); in getScString()
1144 return mContext.getText(com.android.internal.R.string.CfMmi); in getScString()
1146 return mContext.getText(com.android.internal.R.string.PwdMmi); in getScString()
1148 return mContext.getText(com.android.internal.R.string.CwMmi); in getScString()
1150 return mContext.getText(com.android.internal.R.string.ClipMmi); in getScString()
1152 return mContext.getText(com.android.internal.R.string.ClirMmi); in getScString()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DDropBoxTest.java81 assertEquals("TEST0", e0.getText(80)); in testAddText()
82 assertEquals("TEST1", e1.getText(80)); in testAddText()
83 assertEquals("TES", e2.getText(3)); in testAddText()
105 assertTrue(null == e.getText(80));
161 assertEquals("FILE0", e0.getText(80));
166 assertTrue(null == e2.getText(80));
170 assertTrue(null == e3.getText(80));
213 assertEquals("FUTURE0", e0.getText(80)); in testAddEntriesInTheFuture()
214 assertEquals("FUTURE1", e1.getText(80)); in testAddEntriesInTheFuture()
215 assertEquals("FUTURE2", e2.getText(80)); in testAddEntriesInTheFuture()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DEriManager.java333 mContext.getText(com.android.internal.R.string.roamingText0).toString()); in getEriDisplayInformation()
340 mContext.getText(com.android.internal.R.string.roamingText1).toString()); in getEriDisplayInformation()
347 mContext.getText(com.android.internal.R.string.roamingText2).toString()); in getEriDisplayInformation()
356 mContext.getText(com.android.internal.R.string.roamingText3).toString()); in getEriDisplayInformation()
363 mContext.getText(com.android.internal.R.string.roamingText4).toString()); in getEriDisplayInformation()
370 mContext.getText(com.android.internal.R.string.roamingText5).toString()); in getEriDisplayInformation()
377 mContext.getText(com.android.internal.R.string.roamingText6).toString()); in getEriDisplayInformation()
384 mContext.getText(com.android.internal.R.string.roamingText7).toString()); in getEriDisplayInformation()
391 mContext.getText(com.android.internal.R.string.roamingText8).toString()); in getEriDisplayInformation()
398 mContext.getText(com.android.internal.R.string.roamingText9).toString()); in getEriDisplayInformation()
[all …]
DCdmaMmiCode.java265 mMessage = mContext.getText(com.android.internal.R.string.mmiError); in processCode()
274 sb.append(mContext.getText(res)); in handlePasswordError()
296 return mContext.getText(com.android.internal.R.string.PinMmi); in getScString()
317 sb.append(mContext.getText( in onSetComplete()
320 sb.append(mContext.getText( in onSetComplete()
336 sb.append(mContext.getText( in onSetComplete()
340 sb.append(mContext.getText( in onSetComplete()
343 sb.append(mContext.getText( in onSetComplete()
347 sb.append(mContext.getText(com.android.internal.R.string.enablePin)); in onSetComplete()
350 sb.append(mContext.getText( in onSetComplete()
[all …]

12345678910>>...21