Home
last modified time | relevance | path

Searched refs:Utf8 (Results 1 – 25 of 76) sorted by relevance

1234

/external/libchrome/base/android/jni_generator/
DtestMotionEvent.javap724 #10 = Utf8 PointerProperties
25 #11 = Utf8 InnerClasses
27 #13 = Utf8 PointerCoords
28 #14 = Utf8 INVALID_POINTER_ID
29 #15 = Utf8 I
30 #16 = Utf8 ConstantValue
32 #18 = Utf8 ACTION_MASK
34 #20 = Utf8 ACTION_DOWN
36 #22 = Utf8 ACTION_UP
38 #24 = Utf8 ACTION_MOVE
[all …]
/external/okio/okio/src/jvmTest/java/okio/
DUtf8Test.java198 assertEquals(0, Utf8.size("")); in size()
199 assertEquals(3, Utf8.size("abc")); in size()
200 assertEquals(16, Utf8.size("təˈranəˌsôr")); in size()
204 assertEquals(0, Utf8.size("", 0, 0)); in sizeWithBounds()
205 assertEquals(0, Utf8.size("abc", 0, 0)); in sizeWithBounds()
206 assertEquals(1, Utf8.size("abc", 1, 2)); in sizeWithBounds()
207 assertEquals(2, Utf8.size("abc", 0, 2)); in sizeWithBounds()
208 assertEquals(3, Utf8.size("abc", 0, 3)); in sizeWithBounds()
209 assertEquals(16, Utf8.size("təˈranəˌsôr", 0, 11)); in sizeWithBounds()
210 assertEquals(5, Utf8.size("təˈranəˌsôr", 3, 7)); in sizeWithBounds()
[all …]
/external/guava/guava-tests/test/com/google/common/base/
DUtf8Test.java63 assertEquals(0, Utf8.encodedLength("")); in testEncodedLength_validStrings()
64 assertEquals(11, Utf8.encodedLength("Hello world")); in testEncodedLength_validStrings()
65 assertEquals(8, Utf8.encodedLength("Résumé")); in testEncodedLength_validStrings()
68 Utf8.encodedLength( in testEncodedLength_validStrings()
76 assertEquals(4, Utf8.encodedLength(newString(MIN_HIGH_SURROGATE, MIN_LOW_SURROGATE))); in testEncodedLength_validStrings()
100 if (utf8Length != Utf8.encodedLength(sb)) { in testEncodedLength_validStrings2()
105 assertEquals(repro.toString(), utf8Length, Utf8.encodedLength(sb)); in testEncodedLength_validStrings2()
121 Utf8.encodedLength(invalidString); in testEncodedLengthFails()
267 assertTrue(Utf8.isWellFormed(toByteArray(bytes))); in assertWellFormed()
271 assertFalse(Utf8.isWellFormed(toByteArray(bytes))); in assertNotWellFormed()
[all …]
/external/guava/android/guava-tests/test/com/google/common/base/
DUtf8Test.java63 assertEquals(0, Utf8.encodedLength("")); in testEncodedLength_validStrings()
64 assertEquals(11, Utf8.encodedLength("Hello world")); in testEncodedLength_validStrings()
65 assertEquals(8, Utf8.encodedLength("Résumé")); in testEncodedLength_validStrings()
68 Utf8.encodedLength( in testEncodedLength_validStrings()
76 assertEquals(4, Utf8.encodedLength(newString(MIN_HIGH_SURROGATE, MIN_LOW_SURROGATE))); in testEncodedLength_validStrings()
100 if (utf8Length != Utf8.encodedLength(sb)) { in testEncodedLength_validStrings2()
105 assertEquals(repro.toString(), utf8Length, Utf8.encodedLength(sb)); in testEncodedLength_validStrings2()
121 Utf8.encodedLength(invalidString); in testEncodedLengthFails()
267 assertTrue(Utf8.isWellFormed(toByteArray(bytes))); in assertWellFormed()
271 assertFalse(Utf8.isWellFormed(toByteArray(bytes))); in assertNotWellFormed()
[all …]
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/ultraviolet/
DBaseLocationBox.java20 import com.coremedia.iso.Utf8;
67 content.get(new byte[256 - Utf8.utf8StringLengthInBytes(baseLocation) - 1]); in _parseDetails()
69 content.get(new byte[256 - Utf8.utf8StringLengthInBytes(purchaseLocation) - 1]); in _parseDetails()
76 byteBuffer.put(Utf8.convert(baseLocation)); in getContent()
77 …byteBuffer.put(new byte[256 - Utf8.utf8StringLengthInBytes(baseLocation)]); // string plus term ze… in getContent()
78 byteBuffer.put(Utf8.convert(purchaseLocation)); in getContent()
79 …byteBuffer.put(new byte[256 - Utf8.utf8StringLengthInBytes(purchaseLocation)]); // string plus ter… in getContent()
DAssetInformationBox.java20 import com.coremedia.iso.Utf8;
38 return Utf8.utf8StringLengthInBytes(apid) + 9; in getContentSize()
45 byteBuffer.put(Utf8.convert(profileVersion), 0, 4); in getContent()
46 byteBuffer.put(Utf8.convert(apid)); in getContent()
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/threegpp26244/
DLocationInformationBox.java5 import com.coremedia.iso.Utf8;
94 …return 22 + Utf8.convert(name).length + Utf8.convert(astronomicalBody).length + Utf8.convert(addit… in getContentSize()
115 byteBuffer.put(Utf8.convert(name)); in getContent()
121 byteBuffer.put(Utf8.convert(astronomicalBody)); in getContent()
123 byteBuffer.put(Utf8.convert(additionalNotes)); in getContent()
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/
DDataEntryUrnBox.java20 import com.coremedia.iso.Utf8;
48 return Utf8.utf8StringLengthInBytes(name) + 1 + Utf8.utf8StringLengthInBytes(location) + 1; in getContentSize()
60 byteBuffer.put(Utf8.convert(name)); in getContent()
62 byteBuffer.put(Utf8.convert(location)); in getContent()
DKeywordsBox.java21 import com.coremedia.iso.Utf8;
58 contentSize += 1 + Utf8.utf8StringLengthInBytes(keyword) + 1; in getContentSize()
81 IsoTypeWriter.writeUInt8(byteBuffer, Utf8.utf8StringLengthInBytes(keyword) + 1); in getContent()
82 byteBuffer.put(Utf8.convert(keyword)); in getContent()
DXmlBox.java4 import com.coremedia.iso.Utf8;
30 return 4 + Utf8.utf8StringLengthInBytes(xml); in getContentSize()
42 byteBuffer.put(Utf8.convert(xml)); in getContent()
DTitleBox.java21 import com.coremedia.iso.Utf8;
68 return 7 + Utf8.utf8StringLengthInBytes(title); in getContentSize()
75 byteBuffer.put(Utf8.convert(title)); in getContent()
DCopyrightBox.java22 import com.coremedia.iso.Utf8;
62 return 7 + Utf8.utf8StringLengthInBytes(copyright); in getContentSize()
76 byteBuffer.put(Utf8.convert(copyright)); in getContent()
DPerformerBox.java21 import com.coremedia.iso.Utf8;
57 return 6 + Utf8.utf8StringLengthInBytes(performer) + 1; in getContentSize()
64 byteBuffer.put(Utf8.convert(performer)); in getContent()
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DIsValidUtf8TestUtil.java279 assertEquals(isRoundTrippable, Utf8.isValidUtf8(bytes));
280 assertEquals(isRoundTrippable, Utf8.isValidUtf8(bytes, 0, numBytes));
283 assertEquals(s, Utf8.decodeUtf8(bytes, 0, numBytes));
300 int state1 = Utf8.partialIsValidUtf8(Utf8.COMPLETE, bytes, 0, i);
301 int state2 = Utf8.partialIsValidUtf8(state1, bytes, i, j);
302 int state3 = Utf8.partialIsValidUtf8(state2, bytes, j, numBytes);
303 if (isRoundTrippable != (state3 == Utf8.COMPLETE)) {
307 assertEquals(isRoundTrippable, (state3 == Utf8.COMPLETE));
319 assertEquals(state3, x.partialIsValidUtf8(Utf8.COMPLETE, 0, numBytes));
321 assertEquals(state1, x.partialIsValidUtf8(Utf8.COMPLETE, 0, i));
[all …]
DUtf8Test.java43 private static final Utf8.Processor safeProcessor = new Utf8.SafeProcessor();
44 private static final Utf8.Processor unsafeProcessor = new Utf8.UnsafeProcessor();
202 private static byte[] encodeToByteArray(String message, int length, Utf8.Processor processor) { in encodeToByteArray()
209 String message, int length, boolean direct, Utf8.Processor processor) { in encodeToByteBuffer()
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/apple/
DAppleCustomGenreBox.java3 import com.coremedia.iso.Utf8;
22 appleDataBox.setData(Utf8.convert(genre)); in setGenre()
26 return Utf8.convert(appleDataBox.getData()); in getGenre()
DAppleMeanBox.java4 import com.coremedia.iso.Utf8;
23 return 4 + Utf8.utf8StringLengthInBytes(meaning); in getContentSize()
35 byteBuffer.put(Utf8.convert(meaning)); in getContent()
DAppleNameBox.java4 import com.coremedia.iso.Utf8;
23 return 4 + Utf8.convert(name).length; in getContentSize()
43 byteBuffer.put(Utf8.convert(name)); in getContent()
/external/flatbuffers/java/com/google/flatbuffers/
DUtf8.java25 public abstract class Utf8 { class
55 private static Utf8 DEFAULT;
61 public static Utf8 getDefault() { in getDefault()
72 public static void setDefault(Utf8 instance) { in setDefault()
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/vodafone/
DLyricsUriBox.java20 import com.coremedia.iso.Utf8;
47 return Utf8.utf8StringLengthInBytes(lyricsUri) + 5; in getContentSize()
59 byteBuffer.put(Utf8.convert(lyricsUri)); in getContent()
DCoverUriBox.java20 import com.coremedia.iso.Utf8;
46 return Utf8.utf8StringLengthInBytes(coverUri) + 5; in getContentSize()
58 byteBuffer.put(Utf8.convert(coverUri)); in getContent()
DContentDistributorIdBox.java21 import com.coremedia.iso.Utf8;
48 return 2 + Utf8.utf8StringLengthInBytes(contentDistributorId) + 5; in getContentSize()
62 byteBuffer.put(Utf8.convert(contentDistributorId)); in getContent()
DAlbumArtistBox.java22 import com.coremedia.iso.Utf8;
58 return 6 + Utf8.utf8StringLengthInBytes(albumArtist) + 1; in getContentSize()
71 byteBuffer.put(Utf8.convert(albumArtist)); in getContent()
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/sampleentry/
DVisualSampleEntry.java21 import com.coremedia.iso.Utf8;
158 compressorname = Utf8.convert(bytes); in _parseDetails()
199 IsoTypeWriter.writeUInt8(byteBuffer, Utf8.utf8StringLengthInBytes(getCompressorname())); in getContent()
200 byteBuffer.put(Utf8.convert(getCompressorname())); in getContent()
201 int a = Utf8.utf8StringLengthInBytes(getCompressorname()); in getContent()
/external/rust/crates/protobuf/src/
Derror.rs64 Utf8(str::Utf8Error), enumerator
86 &ProtobufError::Utf8(ref e) => write!(f, "{}", e), in fmt()
110 &ProtobufError::Utf8(ref e) => &e.description(), in description()
118 &ProtobufError::Utf8(ref e) => Some(e), in cause()
133 ProtobufError::Utf8(err) in from()

1234