/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/ |
D | ExpressionTest.java | 41 assertEquals("hello", mBinder.textView0.getText().toString()); in testOr() 44 assertEquals("hello", mBinder.textView0.getText().toString()); in testOr() 48 assertEquals("hello", mBinder.textView0.getText().toString()); in testOr() 51 assertEquals("world", mBinder.textView0.getText().toString()); in testOr() 60 assertEquals("hello", mBinder.textView1.getText().toString()); in testAnd() 63 assertEquals("world", mBinder.textView1.getText().toString()); in testAnd() 67 assertEquals("world", mBinder.textView1.getText().toString()); in testAnd() 70 assertEquals("world", mBinder.textView1.getText().toString()); in testAnd() 78 assertEquals("0", mBinder.textView2.getText().toString()); // var1 & var2 in testBinary() 79 assertEquals("0", mBinder.textView3.getText().toString()); // var1 | var2 in testBinary() [all …]
|
D | IncludeTagTest.java | 37 assertEquals("a", outerText.getText()); in testIncludeTag() 39 assertEquals("modified 3a", innerText.getText().toString()); in testIncludeTag() 44 assertEquals("a hello 3a", textView1.getText().toString()); in testIncludeTag() 45 assertEquals("b hello 3a", textView2.getText().toString()); in testIncludeTag() 49 assertEquals("a goodbye 3a", mergeLayoutBinding.innerTextView1.getText().toString()); in testIncludeTag() 50 assertEquals("b goodbye 3a", mergeLayoutBinding.innerTextView2.getText().toString()); in testIncludeTag() 54 assertEquals("a 1 third 3a", merge1.innerTextView1.getText().toString()); in testIncludeTag() 55 assertEquals("b 1 third 3a", merge1.innerTextView2.getText().toString()); in testIncludeTag() 56 assertEquals("a 2 third 3a", merge2.innerTextView1.getText().toString()); in testIncludeTag() 57 assertEquals("b 2 third 3a", merge2.innerTextView2.getText().toString()); in testIncludeTag() [all …]
|
D | ObservableFieldTest.java | 45 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 …]
|
D | MultiArgAdapterTest.java | 47 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 …]
|
D | FindMethodTest.java | 33 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 …]
|
D | MultiArgAdapterEvaluationTest.java | 42 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()
|
D | InstanceAdapterTest.java | 54 assertEquals("Hello World foo bar baz", mBinder.textView1.getText().toString()); in testOneAttr() 62 assertEquals("Hello World baz foo bar", mBinder.textView2.getText().toString()); in testTwoAttr() 70 assertEquals("Hello null World foo bar", mBinder.textView3.getText().toString()); in testOneAttrOld() 73 assertEquals("Hello World Android foo bar", mBinder.textView3.getText().toString()); in testOneAttrOld() 81 assertEquals("Hello null baz World baz", mBinder.textView4.getText().toString()); in testTwoAttrOld() 84 assertEquals("Hello World baz Android baz", mBinder.textView4.getText().toString()); in testTwoAttrOld() 105 … assertEquals("Hello World foo bar baz", binding.includedLayout.textView1.getText().toString()); in testInclude() 119 assertEquals("Hello World foo bar baz", view.getText().toString()); in testViewStub() 127 assertEquals("World component", mBinder.textView6.getText().toString()); in testOneAttrWithComponentStatic() 135 assertEquals("Hello World component bar baz", mBinder.textView7.getText().toString()); in testOneAttrWithComponentInstance() [all …]
|
D | DefaultBindingTest.java | 27 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()
|
D | ResourceTest.java | 48 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()
|
D | BracketTest.java | 65 assertEquals("Hello World", mBinder.arrayText.getText().toString()); in testBrackets() 66 assertEquals("Hello", mBinder.sparseArrayText.getText().toString()); in testBrackets() 67 assertEquals("World", mBinder.longSparseArrayText.getText().toString()); in testBrackets() 68 assertEquals("100", mBinder.sparseIntArrayText.getText().toString()); in testBrackets() 69 assertEquals("true", mBinder.sparseBooleanArrayText.getText().toString()); in testBrackets() 70 assertEquals("5", mBinder.sparseLongArrayText.getText().toString()); in testBrackets()
|
D | GenericAdapterTest.java | 40 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()
|
D | MultiThreadTest.java | 16 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()
|
D | InnerCannotReadDependencyTest.java | 37 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()
|
D | BasicDependantBindingTest.java | 80 assertEquals(textView1, mBinder.textView1.getText().toString()); in assertValues() 81 assertEquals(textView2, mBinder.textView2.getText().toString()); in assertValues() 82 assertEquals(mergedView1, mBinder.mergedTextView1.getText().toString()); in assertValues() 83 assertEquals(mergedView2, mBinder.mergedTextView2.getText().toString()); in assertValues() 84 assertEquals(rawMerge, mBinder.rawStringMerge.getText().toString()); in assertValues()
|
/frameworks/data-binding/compiler/src/test/java/android/databinding/ |
D | BindingExpressionParserTest.java | 63 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/ |
D | TextViewTest.java | 40 CharSequence oldText = tv.getText(); in testArray() 43 CharSequence newText = tv.getText(); in testArray() 66 assertEquals(originalText, tv.getText().toString()); in testProcessTextActivityResultNonEditable() 68 Selection.setSelection((Spannable) tv.getText(), 0, tv.getText().length()); in testProcessTextActivityResultNonEditable() 76 assertEquals(originalText, tv.getText().toString()); in testProcessTextActivityResultNonEditable() 83 assertEquals(originalText, tv.getText().toString()); in testProcessTextActivityResultEditable() 85 Selection.setSelection(tv.getText(), 0, tv.getText().length()); in testProcessTextActivityResultEditable() 92 assertEquals(newText, tv.getText().toString()); in testProcessTextActivityResultEditable() 99 assertEquals(originalText, tv.getText().toString()); in testProcessTextActivityResultCancel() 101 Selection.setSelection(tv.getText(), 0, tv.getText().length()); in testProcessTextActivityResultCancel() [all …]
|
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/ |
D | ClientTest.java | 70 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/ |
D | DialerFilter.java | 126 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 …]
|
D | EditText.java | 78 public Editable getText() { in getText() method in EditText 79 return (Editable) super.getText(); in getText() 91 Selection.setSelection(getText(), start, stop); in setSelection() 98 Selection.setSelection(getText(), index); in setSelection() 105 Selection.selectAll(getText()); in selectAll() 112 Selection.extendSelection(getText(), index); in extendSelection()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
D | GsmMmiCode.java | 981 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/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
D | ImsPhoneMmiCode.java | 912 mMessage = mContext.getText(com.android.internal.R.string.mmiError); in processCode() 930 mMessage = mContext.getText(com.android.internal.R.string.mmiComplete); in onUssdFinished() 954 mMessage = mContext.getText(com.android.internal.R.string.mmiError); in onUssdFinishedError() 1072 return mContext.getText(com.android.internal.R.string.mmiError); in getErrorMessage() 1078 return mContext.getText(com.android.internal.R.string.BaMmi); in getScString() 1080 return mContext.getText(com.android.internal.R.string.CfMmi); in getScString() 1082 return mContext.getText(com.android.internal.R.string.PwdMmi); in getScString() 1084 return mContext.getText(com.android.internal.R.string.CwMmi); in getScString() 1086 return mContext.getText(com.android.internal.R.string.ClipMmi); in getScString() 1088 return mContext.getText(com.android.internal.R.string.ClirMmi); in getScString() [all …]
|
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/ |
D | ExpressionVisitor.java | 73 String str = ctx.SingleQuoteString().getText(); in visitStringLiteral() 78 javaString = ctx.DoubleQuoteString().getText(); in visitStringLiteral() 105 System.out.println("Error while parsing! " + ctx.getText()); in visitBindingSyntax() 118 ModelClass modelClass = analyzer.findClass(ctx.getText(), mModel.getImports()); in visitDotOp() 121 ctx.Identifier().getSymbol().getText()); in visitDotOp() 175 return mModel.symbol(node.getText(), classType); in visitTerminal() 185 … return mModel.comparison(ctx.op.getText(), ctx.left.accept(this), ctx.right.accept(this)); in visitComparisonOp() 195 return mModel.identifier(ctx.getText()); in visitIdentifier() 221 if (ObjectUtils.equals(item.getText(), ",")) { in visitMethodInvocation() 228 ctx.Identifier().getText(), args); in visitMethodInvocation() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | DropBoxTest.java | 79 assertEquals("TEST0", e0.getText(80)); in testAddText() 80 assertEquals("TEST1", e1.getText(80)); in testAddText() 81 assertEquals("TES", e2.getText(3)); in testAddText() 101 assertTrue(null == e.getText(80)); 157 assertEquals("FILE0", e0.getText(80)); 162 assertTrue(null == e2.getText(80)); 166 assertTrue(null == e3.getText(80)); 209 assertEquals("FUTURE0", e0.getText(80)); in testAddEntriesInTheFuture() 210 assertEquals("FUTURE1", e1.getText(80)); in testAddEntriesInTheFuture() 211 assertEquals("FUTURE2", e2.getText(80)); in testAddEntriesInTheFuture() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
D | EriManager.java | 304 mContext.getText(com.android.internal.R.string.roamingText0).toString()); in getEriDisplayInformation() 311 mContext.getText(com.android.internal.R.string.roamingText1).toString()); in getEriDisplayInformation() 318 mContext.getText(com.android.internal.R.string.roamingText2).toString()); in getEriDisplayInformation() 327 mContext.getText(com.android.internal.R.string.roamingText3).toString()); in getEriDisplayInformation() 334 mContext.getText(com.android.internal.R.string.roamingText4).toString()); in getEriDisplayInformation() 341 mContext.getText(com.android.internal.R.string.roamingText5).toString()); in getEriDisplayInformation() 348 mContext.getText(com.android.internal.R.string.roamingText6).toString()); in getEriDisplayInformation() 355 mContext.getText(com.android.internal.R.string.roamingText7).toString()); in getEriDisplayInformation() 362 mContext.getText(com.android.internal.R.string.roamingText8).toString()); in getEriDisplayInformation() 369 mContext.getText(com.android.internal.R.string.roamingText9).toString()); in getEriDisplayInformation() [all …]
|
D | CdmaMmiCode.java | 264 mMessage = mContext.getText(com.android.internal.R.string.mmiError); in processCode() 273 sb.append(mContext.getText(res)); in handlePasswordError() 295 return mContext.getText(com.android.internal.R.string.PinMmi); in getScString() 316 sb.append(mContext.getText( in onSetComplete() 319 sb.append(mContext.getText( in onSetComplete() 335 sb.append(mContext.getText( in onSetComplete() 339 sb.append(mContext.getText( in onSetComplete() 342 sb.append(mContext.getText( in onSetComplete() 346 sb.append(mContext.getText(com.android.internal.R.string.enablePin)); in onSetComplete() 349 sb.append(mContext.getText( in onSetComplete() [all …]
|