Home
last modified time | relevance | path

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

12345678910>>...46

/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/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/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/ex/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/core/tests/coretests/src/android/provider/
DSmsProviderTest.java42 Long.toString(new GregorianCalendar(1970, 1, 1, 0, 0, 0).getTimeInMillis()), in testProvider()
43 Long.toString(new GregorianCalendar(1971, 2, 13, 16, 35, 3).getTimeInMillis()), in testProvider()
44 Long.toString(new GregorianCalendar(1978, 10, 22, 0, 1, 0).getTimeInMillis()), in testProvider()
45 Long.toString(new GregorianCalendar(1980, 1, 11, 10, 22, 30).getTimeInMillis()), in testProvider()
46 Long.toString(now - (5 * 24 * 60 * 60 * 1000)), in testProvider()
47 Long.toString(now - (2 * 24 * 60 * 60 * 1000)), in testProvider()
48 Long.toString(now - (5 * 60 * 60 * 1000)), in testProvider()
49 Long.toString(now - (30 * 60 * 1000)), in testProvider()
50 Long.toString(now - (5 * 60 * 1000)), in testProvider()
51 Long.toString(now) in testProvider()
/frameworks/testing/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.java154 throw new UiObjectNotFoundException(getSelector().toString()); in getChildCount()
377 throw new UiObjectNotFoundException(getSelector().toString()); in click()
417 throw new UiObjectNotFoundException(getSelector().toString()); in clickAndWaitForNewWindow()
435 throw new UiObjectNotFoundException(getSelector().toString()); in clickTopLeft()
452 throw new UiObjectNotFoundException(getSelector().toString()); in longClickBottomRight()
469 throw new UiObjectNotFoundException(getSelector().toString()); in clickBottomRight()
486 throw new UiObjectNotFoundException(getSelector().toString()); in longClick()
503 throw new UiObjectNotFoundException(getSelector().toString()); in longClickTopLeft()
520 throw new UiObjectNotFoundException(getSelector().toString()); in getText()
538 throw new UiObjectNotFoundException(getSelector().toString()); in getClassName()
[all …]
/frameworks/base/core/tests/coretests/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()
DIndentingPrintWriterTest.java59 assertEquals("Hello\n World\n And\n Goodbye\nWorld\n", mStream.toString()); in testMultipleIndents()
70 assertEquals("Hello\n World\n", mStream.toString()); in testAdjustIndentAfterNewline()
82 assertEquals("dog cat \ncow meow ", mStream.toString()); in testWrapping()
96 assertEquals(" dog \n meow \n a b \n cow ", mStream.toString()); in testWrappingIndented()
107 + " nsectetu\n r \n adipisci\n ng elit.\n", mStream.toString()); in testWrappingEmbeddedNewlines()
118 + " ectetur \n adipisci\n ng elit.\n", mStream.toString()); in testWrappingSingleGiant()
130 + " ectetur \n adipisci\n ng elit.\n", mStream.toString()); in testWrappingPrefixedGiant()
/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/opt/telephony/src/java/com/android/internal/telephony/cdma/
DEriManager.java80 public String toString() { in toString() method in EriManager.EriDisplayInformation
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()
[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/core/tests/coretests/src/android/text/
DTextUtilsTest.java55 assertEquals("foo", TextUtils.concat(foo).toString()); in testBasic()
56 assertEquals("foobar", TextUtils.concat(foo, bar).toString()); in testBasic()
57 assertEquals("foobarbaz", TextUtils.concat(foo, bar, baz).toString()); in testBasic()
79 result.toString()); in testTemplateString()
84 result.toString()); in testTemplateString()
87 assertEquals("^", result.toString()); in testTemplateString()
90 assertEquals("^", result.toString()); in testTemplateString()
93 assertEquals("^^", result.toString()); in testTemplateString()
96 assertEquals("shorter a values .", result.toString()); in testTemplateString()
113 assertEquals("one value given, and nine used.", result.toString()); in testTemplateString()
[all …]
DHtmlTest.java73 String spanned = Html.fromHtml("© > &lt").toString(); in testSymbols()
107 assertEquals(c.toString(), colors[0].getTextColor().toString()); in testResourceColor()
112 assertEquals(c.toString(), colors[0].getTextColor().toString()); in testResourceColor()
117 assertEquals(c.toString(), colors[0].getTextColor().toString()); in testResourceColor()
122 assertEquals(c.toString(), colors[0].getTextColor().toString()); in testResourceColor()
128 assertEquals(c.toString(), colors[0].getTextColor().toString()); in testResourceColor()
151 assertEquals("foo\nbar", Html.fromHtml("foo<br>bar").toString()); in testParagraphs()
152 assertEquals("foo\nbar", Html.fromHtml("foo<br>\nbar").toString()); in testParagraphs()
153 assertEquals("foo\nbar", Html.fromHtml("foo<br>\n \nbar").toString()); in testParagraphs()
/frameworks/base/test-runner/src/android/test/
DTestPrinter.java89 mFailedTests.add(test.toString()); in failed()
90 failed(test.toString(), t); in failed()
102 finished(test.toString()); in endTest()
103 if (!mFailedTests.contains(test.toString())) { in endTest()
104 passed(test.toString()); in endTest()
106 mFailedTests.remove(test.toString()); in endTest()
110 started(test.toString()); in startTest()
/frameworks/base/core/java/android/text/util/
DRfc822Tokenizer.java66 out.add(new Rfc822Token(name.toString(), in tokenize()
67 address.toString(), in tokenize()
68 comment.toString())); in tokenize()
71 name.toString(), in tokenize()
72 comment.toString())); in tokenize()
151 out.add(new Rfc822Token(name.toString(), in tokenize()
152 address.toString(), in tokenize()
153 comment.toString())); in tokenize()
156 name.toString(), in tokenize()
157 comment.toString())); in tokenize()
/frameworks/base/opengl/java/android/opengl/
DGLLogWrapper.java52 String errorMessage = "glError: " + Integer.toString(glError); in checkError()
98 arg(name, Boolean.toString(value)); in arg()
102 arg(name, Integer.toString(value)); in arg()
106 arg(name, Float.toString(value)); in arg()
115 returns(Integer.toString(result)); in returns()
119 arg(name, toString(n, FORMAT_INT, arr, offset)); in arg()
123 arg(name, toString(n, arr, offset)); in arg()
127 arg(name, toString(n, arr, offset)); in arg()
144 private String toString(int n, int format, int[] arr, int offset) { in toString() method in GLLogWrapper
159 return buf.toString(); in toString()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/pm/
DVerifierDeviceIdentityTest.java79 TEST_1_ENCODED, id1.toString()); in testVerifierDeviceIdentity_ToString_Success()
86 TEST_MAXVALUE_ENCODED, id1.toString()); in testVerifierDeviceIdentity_ToString_Largest()
93 TEST_ZERO_ENCODED, id1.toString()); in testVerifierDeviceIdentity_ToString_Zero()
100 TEST_NEGONE_ENCODED, id1.toString()); in testVerifierDeviceIdentity_ToString_NegOne()
107 TEST_MINVALUE_ENCODED, id1.toString()); in testVerifierDeviceIdentity_ToString_MinValue()
233 id1.toString(), id2.toString()); in testVerifierDeviceIdentity_Parse_SquashToUppercase()
244 id1.toString(), id2.toString()); in testVerifierDeviceIdentity_Parse_1I_And_0O_Substitution()
/frameworks/base/core/tests/coretests/src/android/util/
DJsonWriterTest.java125 assertEquals("{\"a\":null}", stringWriter.toString()); in testNullStringValue()
193 + "2.718281828459045]", stringWriter.toString()); in testDoubles()
211 + "9223372036854775807]", stringWriter.toString()); in testLongs()
227 + "3.141592653589793238462643383]", stringWriter.toString()); in testNumbers()
237 assertEquals("[true,false]", stringWriter.toString()); in testBooleans()
246 assertEquals("[null]", stringWriter.toString()); in testNulls()
289 + "\"\\u0019\"]", stringWriter.toString()); in testStrings()
298 assertEquals("[\"\\u2028 \\u2029\"]", stringWriter.toString()); in testUnicodeLineBreaksEscaped()
306 assertEquals("[]", stringWriter.toString()); in testEmptyArray()
314 assertEquals("{}", stringWriter.toString()); in testEmptyObject()
[all …]
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DNetworkState.java131 mReason += " Transition state from " + preState.toString() + " to " + in transitToDisconnection()
132 curState.toString() + " is not valid."; in transitToDisconnection()
163 mReason += " Transition state from " + preState.toString() + " to " + in transitToConnection()
164 curState.toString() + " is not valid."; in transitToConnection()
183 stateBuilder.append(" ").append(mStateDepository.get(i).toString()).append("->"); in printStates()
185 return stateBuilder.toString(); in printStates()
189 public String toString() { in toString() method in NetworkState
191 builder.append("mTransitionDirection: ").append(Integer.toString(mTransitionDirection)). in toString()
194 return builder.toString(); in toString()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneNumberWatcherTest.java37 assertEquals(formatted1, number.toString()); in testAppendChars()
48 assertEquals(formatted2, number.toString()); in testAppendChars()
64 assertEquals(result1, number.toString()); in testRemoveLastChars()
73 assertEquals(result2, number.toString()); in testRemoveLastChars()
89 assertEquals(expected1, number.toString()); in testInsertChars()
100 assertEquals(expected2, number.toString()); in testInsertChars()
117 assertEquals(expected1, number.toString()); in testStopFormatting()
130 assertEquals(expected2, number.toString()); in testStopFormatting()
143 assertEquals(expected3, number.toString()); in testStopFormatting()
160 assertEquals(expected1, number.toString()); in testRestartFormatting()
[all …]
DGsmAlphabetTest.java138 packed = GsmAlphabet.stringToGsm7BitPacked(testString.toString(), 0, 0); in testBasic()
139 assertEquals(testString.toString(), in testBasic()
159 packed = GsmAlphabet.stringToGsm7BitPacked(testString.toString(), 0, 0); in testBasic()
160 assertEquals(testString.toString(), in testBasic()
174 packed = GsmAlphabet.stringToGsm7BitPacked(testString.toString(), 0, 0); in testBasic()
175 assertEquals(testString.toString(), in testBasic()
185 packed = GsmAlphabet.stringToGsm7BitPacked(testString.toString(), 0, 0); in testBasic()
186 assertEquals(testString.toString(), in testBasic()
193 GsmAlphabet.stringToGsm7BitPacked(testString.toString(), 0, 0); in testBasic()
206 packed = GsmAlphabet.stringToGsm7BitPacked(testString.toString(), 0, 0); in testBasic()
[all …]
/frameworks/base/services/java/com/android/server/pm/
DInstaller.java201 return execute(builder.toString()); in install()
211 return execute(builder.toString()); in dexopt()
220 return execute(builder.toString()); in movedex()
227 return execute(builder.toString()); in rmdex()
236 return execute(builder.toString()); in remove()
245 return execute(builder.toString()); in rename()
256 return execute(builder.toString()); in fixUid()
265 return execute(builder.toString()); in deleteCacheFiles()
276 return execute(builder.toString()); in createUserData()
283 return execute(builder.toString()); in removeUserDataDirs()
[all …]
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
DKMLFormatter.java33 return builder.toString(); in getHeader()
40 return builder.toString(); in getFooter()
66 return builder.toString(); in getOutput()
82 public String toString() { in toString() method in KMLFormatter.LineBuilder
83 return mBuilder.toString(); in toString()

12345678910>>...46