Home
last modified time | relevance | path

Searched refs:CharsetUtils (Results 1 – 12 of 12) sorted by relevance

/aosp12/frameworks/base/core/tests/coretests/src/android/util/
H A DCharsetUtilsTest.java44 assertEquals(0, CharsetUtils.toModifiedUtf8Bytes("", destPtr, 0, dest.length)); in testModifiedUtf8_Empty()
46 assertEquals("", CharsetUtils.fromModifiedUtf8Bytes(destPtr, 0, 0)); in testModifiedUtf8_Empty()
53 assertEquals("!\0!", CharsetUtils.fromModifiedUtf8Bytes(destPtr, 0, 4)); in testModifiedUtf8_Null()
60 assertEquals("example", CharsetUtils.fromModifiedUtf8Bytes(destPtr, 0, 7)); in testModifiedUtf8_Simple()
65 assertEquals(3, CharsetUtils.toModifiedUtf8Bytes("☃", destPtr, 4, dest.length)); in testModifiedUtf8_Complex()
67 assertEquals("☃", CharsetUtils.fromModifiedUtf8Bytes(destPtr, 4, 3)); in testModifiedUtf8_Complex()
72 assertEquals(-3, CharsetUtils.toModifiedUtf8Bytes("foo", destPtr, 0, 0)); in testModifiedUtf8_Bounds()
73 assertEquals(-3, CharsetUtils.toModifiedUtf8Bytes("foo", destPtr, 0, 2)); in testModifiedUtf8_Bounds()
74 assertEquals(-3, CharsetUtils.toModifiedUtf8Bytes("foo", destPtr, -2, 8)); in testModifiedUtf8_Bounds()
75 assertEquals(-3, CharsetUtils.toModifiedUtf8Bytes("foo", destPtr, 6, 8)); in testModifiedUtf8_Bounds()
[all …]
/aosp12/art/runtime/native/
H A Dlibcore_util_CharsetUtils.cc187 FAST_NATIVE_METHOD(CharsetUtils, asciiBytesToChars, "([BII[C)V"),
188 FAST_NATIVE_METHOD(CharsetUtils, isoLatin1BytesToChars, "([BII[C)V"),
189 FAST_NATIVE_METHOD(CharsetUtils, toAsciiBytes, "(Ljava/lang/String;II)[B"),
190 FAST_NATIVE_METHOD(CharsetUtils, toIsoLatin1Bytes, "(Ljava/lang/String;II)[B"),
191 FAST_NATIVE_METHOD(CharsetUtils, toUtf8Bytes, "(Ljava/lang/String;II)[B"),
/aosp12/frameworks/base/core/java/com/android/internal/util/
H A DFastDataOutput.java20 import android.util.CharsetUtils;
118 int len = CharsetUtils.toModifiedUtf8Bytes(s, mBufferPtr, mBufferPos + 2, mBufferCap); in writeUTF()
133 CharsetUtils.toModifiedUtf8Bytes(s, mRuntime.addressOf(tmp), 0, tmp.length); in writeUTF()
H A DFastDataInput.java20 import android.util.CharsetUtils;
134 final String res = CharsetUtils.fromModifiedUtf8Bytes(mBufferPtr, mBufferPos, len); in readUTF()
140 return CharsetUtils.fromModifiedUtf8Bytes(mRuntime.addressOf(tmp), 0, len); in readUTF()
/aosp12/frameworks/base/apct-tests/perftests/core/src/android/util/
H A DCharsetUtilsPerfTest.java73 CharsetUtils.toModifiedUtf8Bytes(mValue, destPtr, 0, dest.length); in timeLocal_SmallBuffer()
88 CharsetUtils.toModifiedUtf8Bytes(mValue, destPtr, 0, dest.length); in timeLocal_LargeBuffer()
/aosp12/frameworks/base/core/java/android/util/
H A DCharsetUtils.java32 public class CharsetUtils { class
/aosp12/packages/apps/Car/DebuggingRestrictionController/libs/
H A Dhttpcore-4.4.13.jarMETA-INF/MANIFEST.MF META-INF/ org/ org/apache/ org/ ...
/aosp12/art/build/boot/
H A Dpreloaded-classes2082 libcore.util.CharsetUtils
H A Dboot-image-profile.txt11828 Llibcore/util/CharsetUtils;
/aosp12/frameworks/base/config/
H A Dpreloaded-classes13518 libcore.util.CharsetUtils
H A Dboot-image-profile.txt40466 Landroid/util/CharsetUtils;
48098 Llibcore/util/CharsetUtils;
/aosp12/frameworks/base/boot/
H A Dboot-image-profile.txt30802 Landroid/util/CharsetUtils;