/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/ |
D | NioByteStringTest.java | 62 private final ByteString testString = new NioByteString(backingBuffer); field in NioByteStringTest 65 String actualClassName = getActualClassName(testString); in testExpectedType() 78 stillEqual = (BYTES[i] == testString.byteAt(i)); in testByteAt() 85 ByteString.ByteIterator iter = testString.iterator(); in testByteIterator() 103 for (byte quantum : testString) { in testByteIterable() 113 testString.size()); in testSize() 117 assertEquals(CLASSNAME + " must have depth 0", 0, testString.getTreeDepth()); in testGetTreeDepth() 121 assertTrue(CLASSNAME + " is technically balanced", testString.isBalanced()); in testIsBalanced() 129 testString.copyTo(destination, sourceOffset, destinationOffset, length); in testCopyTo_ByteArrayOffsetLength() 144 testString.copyTo(destination, testString.size() + 1 - length, in testCopyTo_ByteArrayOffsetLengthErrors() [all …]
|
D | RopeByteStringSubstringTest.java | 81 String testString = builder.toString(); in testToString() local 84 testString = testString.substring(2, testString.length() - 6); in testToString() 91 testString, roundTripString); in testToString() 92 ByteString flatString = ByteString.copyFromUtf8(testString); in testToString() 111 String testString = builder.toString(); in testCharsetToString() local 114 testString = testString.substring(2, testString.length() - 6); in testCharsetToString() 121 testString, roundTripString); in testCharsetToString() 122 ByteString flatString = ByteString.copyFromUtf8(testString); in testCharsetToString()
|
D | BoundedByteStringTest.java | 63 String testString = "I love unicode \u1234\u5678 characters"; in testToString() local 64 ByteString unicode = ByteString.wrap(testString.getBytes(Internal.UTF_8)); in testToString() 71 testString.substring(2, testString.length() - 6), roundTripString); in testToString() 76 String testString = "I love unicode \u1234\u5678 characters"; in testCharsetToString() local 77 ByteString unicode = ByteString.wrap(testString.getBytes(Internal.UTF_8)); in testCharsetToString() 84 testString.substring(2, testString.length() - 6), roundTripString); in testCharsetToString()
|
D | RopeByteStringTest.java | 86 ByteString testString = ByteString.copyFrom(testBytes); in testBalance() local 88 concatenated.equals(testString)); in testBalance() 90 testString.equals(concatenated)); in testBalance() 92 testString.hashCode(), concatenated.hashCode()); in testBalance() 108 String testString = builder.toString(); in testToString() local 114 testString, roundTripString); in testToString() 115 ByteString flatString = ByteString.copyFromUtf8(testString); in testToString() 134 String testString = builder.toString(); in testCharsetToString() local 140 testString, roundTripString); in testCharsetToString() 141 ByteString flatString = ByteString.copyFromUtf8(testString); in testCharsetToString()
|
D | ByteStringTest.java | 133 String testString = "I love unicode \u1234\u5678 characters"; in testCopyFrom_StringEncoding() local 134 ByteString byteString = ByteString.copyFrom(testString, UTF_16); in testCopyFrom_StringEncoding() 135 byte[] testBytes = testString.getBytes(UTF_16); in testCopyFrom_StringEncoding() 141 String testString = "I love unicode \u1234\u5678 characters"; in testCopyFrom_Utf8() local 142 ByteString byteString = ByteString.copyFromUtf8(testString); in testCopyFrom_Utf8() 143 byte[] testBytes = testString.getBytes(Internal.UTF_8); in testCopyFrom_Utf8() 404 String testString = "I love unicode \u1234\u5678 characters"; in testToStringUtf8() local 405 byte[] testBytes = testString.getBytes(Internal.UTF_8); in testToStringUtf8() 408 testString, byteString.toStringUtf8()); in testToStringUtf8()
|
D | LiteralByteStringTest.java | 400 String testString = "I love unicode \u1234\u5678 characters"; in testToString() local 401 ByteString unicode = ByteString.wrap(testString.getBytes(Internal.UTF_8)); in testToString() 403 assertEquals(classUnderTest + " unicode must match", testString, roundTripString); in testToString() 407 String testString = "I love unicode \u1234\u5678 characters"; in testCharsetToString() local 408 ByteString unicode = ByteString.wrap(testString.getBytes(Internal.UTF_8)); in testCharsetToString() 410 assertEquals(classUnderTest + " unicode must match", testString, roundTripString); in testCharsetToString()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | MemoryFileTest.java | 55 newFile.writeBytes(testString, 0, 0, testString.length); in testPurge() 59 file.readBytes(testString, 0, 0, testString.length); in testPurge() 77 byte[] buffer = new byte[testString.length]; in testRun() 80 file.writeBytes(testString, 0, 2000, testString.length); in testRun() 81 file.readBytes(buffer, 2000, 0, testString.length); in testRun() 82 compareBuffers(testString, buffer, testString.length); in testRun() 85 buffer = new byte[testString.length]; in testRun() 88 os.write(testString); in testRun() 91 is.mark(testString.length); in testRun() 93 compareBuffers(testString, buffer, testString.length); in testRun() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | GsmAlphabetTest.java | 134 StringBuilder testString = new StringBuilder(300); in testBasic() local 137 for (int i = 0; i < 9; i++, testString.append('@')) { in testBasic() 138 packed = GsmAlphabet.stringToGsm7BitPacked(testString.toString(), 0, 0); in testBasic() 139 assertEquals(testString.toString(), in testBasic() 152 testString.append(c); in testBasic() 159 packed = GsmAlphabet.stringToGsm7BitPacked(testString.toString(), 0, 0); in testBasic() 160 assertEquals(testString.toString(), in testBasic() 165 testString.append(sGsmExtendedChars); in testBasic() 174 packed = GsmAlphabet.stringToGsm7BitPacked(testString.toString(), 0, 0); in testBasic() 175 assertEquals(testString.toString(), in testBasic() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | ApnSettingTest.java | 143 String testString; in testFromString() local 146 testString = "Vodafone IT,web.omnitel.it,,,,,,,,,222,10,,DUN"; in testFromString() 151 assertApnSettingEqual(expectedApn, ApnSetting.fromString(testString)); in testFromString() 154 testString = "[ApnSettingV2] Name,apn,,,,,,,,,123,45,,mms|*,IPV6,IP,true,14"; in testFromString() 160 assertApnSettingEqual(expectedApn, ApnSetting.fromString(testString)); in testFromString() 163 testString = "[ApnSettingV2] Name,apn, ,,,,,,,,123,45,,mms|*,IPV6, IP,true,14"; in testFromString() 168 assertApnSettingEqual(expectedApn, ApnSetting.fromString(testString)); in testFromString() 171 … testString = "[ApnSettingV3] Name,apn,,,,,,,,,123,45,,mms|*,IPV6,IP,true,14,,,,,,,spn,testspn"; in testFromString() 176 assertApnSettingEqual(expectedApn, ApnSetting.fromString(testString)); in testFromString() 179 testString = in testFromString() [all …]
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | StaticLayoutTextMeasuringTest.java | 54 String testString = "a\uFEFF"; in testGetPrimaryHorizontal_zwnbsp() local 55 StaticLayout layout = new StaticLayout(testString, mDefaultPaint, in testGetPrimaryHorizontal_zwnbsp() 65 String testString = "\u0915\u093E"; in testGetPrimaryHorizontal_devanagari() local 66 StaticLayout layout = new StaticLayout(testString, mDefaultPaint, in testGetPrimaryHorizontal_devanagari() 78 String testString = "\uD83C\uDDFA\uD83C\uDDF8\uD83C\uDDFF"; in testGetPrimaryHorizontal_flagEmoji() local 79 StaticLayout layout = new StaticLayout(testString, mDefaultPaint, in testGetPrimaryHorizontal_flagEmoji()
|
D | TextUtilsTest.java | 752 final String testString = "a\uD800\uDC00a"; in testTrimToSize() local 754 testString, TextUtils.trimToSize(testString, 5)); in testTrimToSize() 756 testString, TextUtils.trimToSize(testString, 4)); in testTrimToSize() 758 "a\uD800\uDC00", TextUtils.trimToSize(testString, 3)); in testTrimToSize() 760 "a", TextUtils.trimToSize(testString, 2)); in testTrimToSize() 762 "a", TextUtils.trimToSize(testString, 1)); in testTrimToSize()
|
D | StaticLayoutTest.java | 656 private List<CharSequence> buildTestCharSequences(String testString, Normalizer.Form[] forms) { in buildTestCharSequences() argument 661 normalizedStrings.add(Normalizer.normalize(testString, form)); in buildTestCharSequences() 700 String testString = "\u05DE\u05E1\u05E2\u05D3\u05D4"; // Hebrew Characters in testGetOffset_UNICODE_Hebrew() local 701 for (CharSequence seq: buildTestCharSequences(testString, Normalizer.Form.values())) { in testGetOffset_UNICODE_Hebrew()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | SchedulerTest.cpp | 115 std::string testString; in TEST_F() local 116 ASSERT_NO_FATAL_FAILURE(mScheduler->dump(nullptr, testString)); in TEST_F() 117 EXPECT_TRUE(testString == ""); in TEST_F() 145 std::string testString; in TEST_F() local 147 ASSERT_NO_FATAL_FAILURE(mScheduler->dump(connectionHandle, testString)); in TEST_F() 148 EXPECT_TRUE(testString == ""); in TEST_F() 175 std::string testString("dump"); in TEST_F() local 176 EXPECT_CALL(*mEventThread, dump(testString)).Times(1); in TEST_F() 177 ASSERT_NO_FATAL_FAILURE(mScheduler->dump(mConnectionHandle, testString)); in TEST_F() 178 EXPECT_TRUE(testString != ""); in TEST_F()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
D | RopeByteStringTest.java | 76 ByteString testString = ByteString.copyFrom(testBytes); in testBalance() local 78 concatenated.equals(testString)); in testBalance() 80 testString.equals(concatenated)); in testBalance() 82 testString.hashCode(), concatenated.hashCode()); in testBalance()
|
D | ByteStringTest.java | 132 String testString = "I love unicode \u1234\u5678 characters"; in testCopyFrom_StringEncoding() local 133 ByteString byteString = ByteString.copyFrom(testString, UTF_16); in testCopyFrom_StringEncoding() 134 byte[] testBytes = testString.getBytes(UTF_16); in testCopyFrom_StringEncoding() 140 String testString = "I love unicode \u1234\u5678 characters"; in testCopyFrom_Utf8() local 141 ByteString byteString = ByteString.copyFromUtf8(testString); in testCopyFrom_Utf8() 142 byte[] testBytes = testString.getBytes("UTF-8"); in testCopyFrom_Utf8() 364 String testString = "I love unicode \u1234\u5678 characters"; in testToStringUtf8() local 365 byte[] testBytes = testString.getBytes("UTF-8"); in testToStringUtf8() 368 testString, byteString.toStringUtf8()); in testToStringUtf8()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/chunking/ |
D | SingleStreamDiffScriptWriterTest.java | 79 String testString = "abcd"; in writeChunk_withExistingBytesInBuffer_writesBufferFirst() local 80 writeStringAsBytesToWriter(testString, mDiffScriptWriter); in writeChunk_withExistingBytesInBuffer_writesBufferFirst() 87 String.format("%d\n%s\n%d-%d\n", testString.length(), testString, 0, 19)); in writeChunk_withExistingBytesInBuffer_writesBufferFirst()
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | PaintTest.java | 151 final String testString = in testHasGlyph_variationSelectors() local 157 assertTrue(signature + " is expected to be true", p.hasGlyph(testString)); in testHasGlyph_variationSelectors() 159 assertFalse(signature + " is expected to be false", p.hasGlyph(testString)); in testHasGlyph_variationSelectors()
|
/frameworks/minikin/tests/unittest/ |
D | FontCollectionItemizeTest.cpp | 970 std::string testString; in TEST() member 1267 SCOPED_TRACE("Test for \"" + testCase.testString + "\" with locales " + in TEST() 1270 auto runs = itemize(collection, testCase.testString.c_str(), testCase.requestedLocales); in TEST()
|