Home
last modified time | relevance | path

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

123

/external/libmojo/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/guava/guava-tests/test/com/google/common/base/
DUtf8Test.java38 assertEquals(0, Utf8.encodedLength("")); in testEncodedLength_validStrings()
39 assertEquals(11, Utf8.encodedLength("Hello world")); in testEncodedLength_validStrings()
40 assertEquals(8, Utf8.encodedLength("Résumé")); in testEncodedLength_validStrings()
41 assertEquals(461, Utf8.encodedLength("威廉·莎士比亞(William Shakespeare," in testEncodedLength_validStrings()
48 assertEquals(4, Utf8.encodedLength( in testEncodedLength_validStrings()
74 if (utf8Length != Utf8.encodedLength(sb)) { in testEncodedLength_validStrings2()
79 assertEquals(repro.toString(), utf8Length, Utf8.encodedLength(sb)); in testEncodedLength_validStrings2()
99 Utf8.encodedLength(invalidString); in testEncodedLengthFails()
241 assertTrue(Utf8.isWellFormed(toByteArray(bytes))); in assertWellFormed()
245 assertFalse(Utf8.isWellFormed(toByteArray(bytes))); in assertNotWellFormed()
[all …]
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/
DUtf8Test.java33 assertEquals(0, Utf8.encodedLength("")); in testEncodedLength_validStrings()
34 assertEquals(11, Utf8.encodedLength("Hello world")); in testEncodedLength_validStrings()
35 assertEquals(8, Utf8.encodedLength("Résumé")); in testEncodedLength_validStrings()
36 assertEquals(461, Utf8.encodedLength("威廉·莎士比亞(William Shakespeare," in testEncodedLength_validStrings()
43 assertEquals(4, Utf8.encodedLength( in testEncodedLength_validStrings()
61 Utf8.encodedLength(invalidString); in testEncodedLengthFails()
185 assertTrue(Utf8.isWellFormed(toByteArray(bytes))); in assertWellFormed()
189 assertFalse(Utf8.isWellFormed(toByteArray(bytes))); in assertNotWellFormed()
/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()
DAuthorBox.java22 import com.coremedia.iso.Utf8;
72 return 7 + Utf8.utf8StringLengthInBytes(author); in getContentSize()
86 byteBuffer.put(Utf8.convert(author)); 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()
DCopyrightBox.java22 import com.coremedia.iso.Utf8;
62 return 7 + Utf8.utf8StringLengthInBytes(copyright); in getContentSize()
76 byteBuffer.put(Utf8.convert(copyright)); in getContent()
DDescriptionBox.java21 import com.coremedia.iso.Utf8;
48 return 7 + Utf8.utf8StringLengthInBytes(description); in getContentSize()
62 byteBuffer.put(Utf8.convert(description)); in getContent()
DGenreBox.java21 import com.coremedia.iso.Utf8;
58 return 7 + Utf8.utf8StringLengthInBytes(genre); in getContentSize()
72 byteBuffer.put(Utf8.convert(genre)); in getContent()
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DIsValidUtf8TestUtil.java273 assertEquals(isRoundTrippable, Utf8.isValidUtf8(bytes));
274 assertEquals(isRoundTrippable, Utf8.isValidUtf8(bytes, 0, numBytes));
285 int state1 = Utf8.partialIsValidUtf8(Utf8.COMPLETE, bytes, 0, i);
286 int state2 = Utf8.partialIsValidUtf8(state1, bytes, i, j);
287 int state3 = Utf8.partialIsValidUtf8(state2, bytes, j, numBytes);
288 if (isRoundTrippable != (state3 == Utf8.COMPLETE)) {
292 assertEquals(isRoundTrippable, (state3 == Utf8.COMPLETE));
303 assertEquals(state3, x.partialIsValidUtf8(Utf8.COMPLETE, 0, numBytes));
305 assertEquals(state1, x.partialIsValidUtf8(Utf8.COMPLETE, 0, i));
306 assertEquals(state1, x.substring(0, i).partialIsValidUtf8(Utf8.COMPLETE, 0, i));
/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/v8/src/
Dunicode-inl.h60 unsigned Utf8::EncodeOneByte(char* str, uint8_t c) { in EncodeOneByte()
75 unsigned Utf8::Encode(char* str, in Encode()
113 uchar Utf8::ValueOf(const byte* bytes, size_t length, size_t* cursor) { in ValueOf()
124 unsigned Utf8::Length(uchar c, int previous) { in Length()
140 bool Utf8::IsValidCharacter(uchar c) { in IsValidCharacter()
/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/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()

123