Home
last modified time | relevance | path

Searched refs:toString (Results 1 – 25 of 2348) sorted by relevance

12345678910>>...94

/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 …]
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 …]
DIncludeTagTest.java42 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()
67 assertEquals("modified 5b", innerText.getText().toString()); in testIncludeTag()
[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()
/frameworks/base/wifi/java/android/net/wifi/
DWifiLinkLayerStats.java118 public String toString() { in toString() method in WifiLinkLayerStats
129 sbuf.append(" my bss beacon rx: ").append(Integer.toString(this.beacon_rx)).append('\n'); in toString()
130 sbuf.append(" RSSI mgmt: ").append(Integer.toString(this.rssi_mgmt)).append('\n'); in toString()
131 sbuf.append(" BE : ").append(" rx=").append(Long.toString(this.rxmpdu_be)) in toString()
132 .append(" tx=").append(Long.toString(this.txmpdu_be)) in toString()
133 .append(" lost=").append(Long.toString(this.lostmpdu_be)) in toString()
134 .append(" retries=").append(Long.toString(this.retries_be)).append('\n'); in toString()
135 sbuf.append(" BK : ").append(" rx=").append(Long.toString(this.rxmpdu_bk)) in toString()
136 .append(" tx=").append(Long.toString(this.txmpdu_bk)) in toString()
137 .append(" lost=").append(Long.toString(this.lostmpdu_bk)) in toString()
[all …]
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
DWapPushTest.java499 Integer.toString(mAppIdValue), in utAddPackage()
500 Integer.toString(mContentTypeValue), in utAddPackage()
509 assertTrue(wpman.verifyData(Integer.toString(mAppIdValue), in utAddPackage()
510 Integer.toString(mContentTypeValue), in utAddPackage()
536 iwapman.deletePackage(Integer.toString(mAppIdValue), in testAddPackage1()
537 Integer.toString(mContentTypeValue), mPackageName, mClassName); in testAddPackage1()
539 iwapman.deletePackage(Integer.toString(mAppIdValue), in testAddPackage1()
540 Integer.toString(mContentTypeValue), mPackageName, mClassName); in testAddPackage1()
542 iwapman.deletePackage(Integer.toString(mAppIdValue), in testAddPackage1()
543 Integer.toString(mContentTypeValue), mPackageName, mClassName); in testAddPackage1()
[all …]
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/opt/chips/tests/src/com/android/ex/chips/
DChipsTest.java117 public String toString() { in toString() method in ChipsTest.MockRecipientEditTextView
118 return mEditable != null ? mEditable.toString() : ""; in toString()
189 int firstStart = mEditable.toString().indexOf(first); in testSanitizeBetween()
191 int secondStart = mEditable.toString().indexOf(second); in testSanitizeBetween()
196 String editableString = mEditable.toString(); in testSanitizeBetween()
207 firstStart = mEditable.toString().indexOf(first); in testSanitizeBetween()
211 assertEquals(mEditable.toString(), first); in testSanitizeBetween()
226 int firstStart = mEditable.toString().indexOf(first); in testSanitizeEnd()
228 int secondStart = mEditable.toString().indexOf(second); in testSanitizeEnd()
233 String editableString = mEditable.toString(); in testSanitizeEnd()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNativeDaemonConnectorTest.java39 assertEquals("", builder.toString()); in testArgumentNormal()
43 assertEquals("foo", builder.toString()); in testArgumentNormal()
47 assertEquals("foo\\\"bar", builder.toString()); in testArgumentNormal()
51 assertEquals("foo\\\\bar\\\\\\\"baz", builder.toString()); in testArgumentNormal()
59 assertEquals("\"foo bar\"", builder.toString()); in testArgumentWithSpaces()
63 assertEquals("\"foo\\\"bar\\\\baz foo\"", builder.toString()); in testArgumentWithSpaces()
71 assertEquals("\"caf\u00E9 c\u00F6ffee\"", builder.toString()); in testArgumentWithUtf()
81 assertEquals("1 foo bar baz\0", rawBuilder.toString()); in testSensitiveArgs()
82 assertEquals("1 foo bar baz", logBuilder.toString()); in testSensitiveArgs()
87 assertEquals("1 foo bar baz\0", rawBuilder.toString()); in testSensitiveArgs()
[all …]
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
DNetworkState.java125 mTransitionTarget.toString(), in validateNetworkStates()
126 mStateDepository.get(0).toString())); in validateNetworkStates()
128 mTransitionTarget.toString(), in validateNetworkStates()
129 mStateDepository.get(0).toString()); in validateNetworkStates()
146 mReason = str.toString(); in validateNetworkDisconnection()
153 mReason = str.toString(); in validateNetworkDisconnection()
168 preState.toString(), curState.toString())); in validateNetworkDisconnection()
169 mReason = str.toString(); in validateNetworkDisconnection()
173 mReason = str.toString(); in validateNetworkDisconnection()
187 mReason = str.toString(); in validateNetworkConnection()
[all …]
/frameworks/base/tools/aapt2/
DFlags.cpp31 *value = arg.toString(); in requiredFlag()
35 mFlags.push_back(Flag{ name.toString(), description.toString(), func, true, 1, false}); in requiredFlag()
42 value->push_back(arg.toString()); in requiredFlagList()
46 mFlags.push_back(Flag{ name.toString(), description.toString(), func, true, 1, false }); in requiredFlagList()
53 *value = arg.toString(); in optionalFlag()
57 mFlags.push_back(Flag{ name.toString(), description.toString(), func, false, 1, false }); in optionalFlag()
64 value->push_back(arg.toString()); in optionalFlagList()
68 mFlags.push_back(Flag{ name.toString(), description.toString(), func, false, 1, false }); in optionalFlagList()
79 mFlags.push_back(Flag{ name.toString(), description.toString(), func, false, 0, false }); in optionalSwitch()
118 mArgs.push_back(arg.toString()); in parse()
/frameworks/base/core/tests/coretests/src/android/provider/
DSmsProviderTest.java44 Long.toString(new GregorianCalendar(1970, 1, 1, 0, 0, 0).getTimeInMillis()), in testProvider()
45 Long.toString(new GregorianCalendar(1971, 2, 13, 16, 35, 3).getTimeInMillis()), in testProvider()
46 Long.toString(new GregorianCalendar(1978, 10, 22, 0, 1, 0).getTimeInMillis()), in testProvider()
47 Long.toString(new GregorianCalendar(1980, 1, 11, 10, 22, 30).getTimeInMillis()), in testProvider()
48 Long.toString(now - (5 * 24 * 60 * 60 * 1000)), in testProvider()
49 Long.toString(now - (2 * 24 * 60 * 60 * 1000)), in testProvider()
50 Long.toString(now - (5 * 60 * 60 * 1000)), in testProvider()
51 Long.toString(now - (30 * 60 * 1000)), in testProvider()
52 Long.toString(now - (5 * 60 * 1000)), in testProvider()
53 Long.toString(now) in testProvider()
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DAccessibilityNodeInfoDumper.java88 serializer.attribute("", "rotation", Integer.toString(rotation)); in dumpWindowToFile()
92 writer.write(stringWriter.toString()); in dumpWindowToFile()
105 serializer.attribute("", "NAF", Boolean.toString(true)); in dumpNodeRec()
106 serializer.attribute("", "index", Integer.toString(index)); in dumpNodeRec()
112 serializer.attribute("", "checkable", Boolean.toString(node.isCheckable())); in dumpNodeRec()
113 serializer.attribute("", "checked", Boolean.toString(node.isChecked())); in dumpNodeRec()
114 serializer.attribute("", "clickable", Boolean.toString(node.isClickable())); in dumpNodeRec()
115 serializer.attribute("", "enabled", Boolean.toString(node.isEnabled())); in dumpNodeRec()
116 serializer.attribute("", "focusable", Boolean.toString(node.isFocusable())); in dumpNodeRec()
117 serializer.attribute("", "focused", Boolean.toString(node.isFocused())); in dumpNodeRec()
[all …]
DUiObject.java153 throw new UiObjectNotFoundException(getSelector().toString()); in getChildCount()
399 throw new UiObjectNotFoundException(getSelector().toString()); in click()
439 throw new UiObjectNotFoundException(getSelector().toString()); in clickAndWaitForNewWindow()
457 throw new UiObjectNotFoundException(getSelector().toString()); in clickTopLeft()
474 throw new UiObjectNotFoundException(getSelector().toString()); in longClickBottomRight()
491 throw new UiObjectNotFoundException(getSelector().toString()); in clickBottomRight()
508 throw new UiObjectNotFoundException(getSelector().toString()); in longClick()
525 throw new UiObjectNotFoundException(getSelector().toString()); in longClickTopLeft()
542 throw new UiObjectNotFoundException(getSelector().toString()); in getText()
560 throw new UiObjectNotFoundException(getSelector().toString()); in getClassName()
[all …]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/debug/
DLog.java53 public String toString() { in toString() method in Log.Tag
60 android.util.Log.d(tag.toString(), msg); in d()
66 android.util.Log.d(tag.toString(), msg, tr); in d()
72 android.util.Log.e(tag.toString(), msg); in e()
78 android.util.Log.e(tag.toString(), msg, tr); in e()
84 android.util.Log.i(tag.toString(), msg); in i()
90 android.util.Log.i(tag.toString(), msg, tr); in i()
96 android.util.Log.v(tag.toString(), msg); in v()
102 android.util.Log.v(tag.toString(), msg, tr); in v()
108 android.util.Log.w(tag.toString(), msg); in w()
[all …]
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DCharSequencesTest.java31 String copy = toString(forAsciiBytes(bytes)); in testCharSequences()
34 copy = toString(forAsciiBytes(bytes, 0, s.length())); in testCharSequences()
37 String crazy = toString(forAsciiBytes(bytes, 0, 5)); in testCharSequences()
40 String a = toString(forAsciiBytes(bytes, 0, 3).subSequence(2, 3)); in testCharSequences()
43 String empty = toString(forAsciiBytes(bytes, 0, 3).subSequence(3, 3)); in testCharSequences()
55 static String toString(CharSequence charSequence) { in toString() method in CharSequencesTest
56 return new StringBuilder().append(charSequence).toString(); in toString()
/frameworks/base/packages/Osu/src/com/android/hotspot2/asn1/
DAsn1Constructed.java30 private void toString(int level, StringBuilder sb) { in toString() method in Asn1Constructed
31 sb.append(indent(level)).append(super.toString()).append(":\n"); in toString()
34 ((Asn1Constructed) child).toString(level + 1, sb); in toString()
36 sb.append(indent(level + 1)).append(child.toString()).append('\n'); in toString()
48 public String toString() { in toString() method in Asn1Constructed
50 toString(0, sb); in toString()
51 return sb.toString(); in toString()
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/
DEventRecurrenceTest.java684 + ": correct=" + Arrays.toString(correct) in cmp()
685 + " actual=" + Arrays.toString(v)); in cmp()
698 + ": correct=" + Arrays.toString(correct) in cmp()
699 + " actual=" + Arrays.toString(v)); in cmp()
704 + ": correct=" + Arrays.toString(correct) in cmp()
705 + " actual=" + Arrays.toString(v)); in cmp()
740 System.out.println(" bysecond=" + Arrays.toString(bysecond)); in verifyRecurType()
741 System.out.println(" byminute=" + Arrays.toString(byminute)); in verifyRecurType()
742 System.out.println(" byhour=" + Arrays.toString(byhour)); in verifyRecurType()
743 System.out.println(" byday=" + Arrays.toString(byday)); in verifyRecurType()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/
DContentProviderOperationTest.java58 assertEquals(sTestUri1.toString(), uri.toString()); in testInsert()
59 assertEquals(sTestValues1.toString(), values.toString()); in testInsert()
63 assertEquals(sTestUri1.buildUpon().appendPath("19").toString(), result.uri.toString()); in testInsert()
71 assertEquals(sTestUri1.toString(), uri.toString()); in testInsertNoValues()
76 assertEquals(sTestUri1.buildUpon().appendPath("19").toString(), result.uri.toString()); in testInsertNoValues()
86 assertEquals(sTestUri1.toString(), uri.toString()); in testInsertFailed()
87 assertEquals(sTestValues1.toString(), values.toString()); in testInsertFailed()
110 assertEquals(sTestUri1.toString(), uri.toString()); in testInsertWithBackRefs()
114 assertEquals(expected.toString(), values.toString()); in testInsertWithBackRefs()
118 assertEquals(sTestUri1.buildUpon().appendPath("19").toString(), result.uri.toString()); in testInsertWithBackRefs()
[all …]
/frameworks/base/tools/aapt/tests/
DAaptConfig_test.cpp55 EXPECT_EQ(String8(""), config.toString()); in TEST()
58 EXPECT_EQ(String8("fr-land"), config.toString()); in TEST()
63 "xhdpi-keyssoft-qwerty-navexposed-nonav-v13"), config.toString()); in TEST()
69 EXPECT_EQ(String8("en-rUS"), config.toString()); in TEST()
75 EXPECT_EQ(String8("sw600dp-v13"), config.toString()); in TEST()
78 EXPECT_EQ(String8("sw600dp-v13"), config.toString()); in TEST()
93 EXPECT_EQ(String8("round-v23"), config.toString()); in TEST()
99 EXPECT_EQ(String8("notround-v23"), config.toString()); in TEST()

12345678910>>...94