Searched refs:buf (Results 126 - 150 of 406) sorted by last modified time

1234567891011>>

/frameworks/minikin/include/minikin/
H A DGraphemeBreak.h37 static bool isGraphemeBreak(const uint16_t* buf, size_t start, size_t count, size_t offset);
41 static size_t getTextRunCursor(const uint16_t* buf, size_t start, size_t count,
H A DLayout.h41 uint8_t* buf; member in class:minikin::Bitmap
93 void doLayout(const uint16_t* buf, size_t start, size_t count, size_t bufSize,
96 static float measureText(const uint16_t* buf, size_t start, size_t count, size_t bufSize,
120 // The i parameter is an offset within the buf relative to start, it is < count, where
138 static float doLayoutRunCached(const uint16_t* buf, size_t runStart, size_t runLength,
143 static float doLayoutWord(const uint16_t* buf, size_t start, size_t count, size_t bufSize,
148 void doLayoutRun(const uint16_t* buf, size_t start, size_t count, size_t bufSize,
H A DMeasurement.h24 float getRunAdvance(const float* advances, const uint16_t* buf, size_t start, size_t count,
27 size_t getOffsetForAdvance(const float* advances, const uint16_t* buf, size_t start, size_t count,
/frameworks/minikin/libs/minikin/
H A DFontLanguage.cpp31 FontLanguage::FontLanguage(const char* buf, size_t length) : FontLanguage() { argument
34 char c = buf[i];
38 mLanguage = buf[0] | (buf[1] << 8) | ((i == 3) ? (buf[2] << 16) : 0);
49 char c = buf[next];
52 if (next - i == 4 && 'A' <= buf[i] && buf[i] <= 'Z') {
53 mScript = SCRIPT_TAG(buf[i], buf[
109 char buf[16]; local
[all...]
H A DFontLanguage.h41 FontLanguage(const char* buf, size_t length);
H A DGraphemeBreak.cpp69 bool GraphemeBreak::isGraphemeBreak(const uint16_t* buf, size_t start, size_t count, argument
80 if (U16_IS_TRAIL(buf[offset])) {
82 return !U16_IS_LEAD(buf[offset - 1]);
87 U16_PREV(buf, start, offset_back, c1);
88 U16_NEXT(buf, offset, start + count, c2);
124 U16_PREV(buf, start, offset_back, c1);
156 U16_PREV(buf, start, offset_back, c0);
159 U16_PREV(buf, start, offset_back, c0);
170 U16_PREV(buf, start, offset_back, c1);
180 size_t GraphemeBreak::getTextRunCursor(const uint16_t* buf, size_ argument
[all...]
H A DHbFontCache.cpp121 const void* buf = minikinFont->GetFontData(); local
122 if (buf == nullptr) {
126 hb_blob_t* blob = hb_blob_create(reinterpret_cast<const char*>(buf), size,
H A DHyphenator.cpp75 const uint8_t* buf(uint32_t entry) const { function in struct:android::Pattern
211 // into the buf pool. This is the pattern for the substring (i..j) we just matched,
217 const uint8_t* pat_buf = pattern->buf(pat_entry);
H A DLayout.cpp51 buf = new uint8_t[width * height]();
55 delete[] buf;
62 o.write((const char *)buf, width * height);
76 uint8_t* dst = buf + y0 * width;
475 BidiText(const uint16_t* buf, size_t start, size_t count, size_t bufSize, int bidiFlags);
543 BidiText::BidiText(const uint16_t* buf, size_t start, size_t count, size_t bufSize, int bidiFlags) argument
562 ubidi_setPara(mBidi, buf, mBufSize, bidiReq, NULL, &status);
579 void Layout::doLayout(const uint16_t* buf, size_t start, size_t count, size_t bufSize, argument
590 for (const BidiText::Iter::RunInfo& runInfo : BidiText(buf, start, count, bufSize, bidiFlags)) {
591 doLayoutRunCached(buf, runInf
597 measureText(const uint16_t* buf, size_t start, size_t count, size_t bufSize, int bidiFlags, const FontStyle &style, const MinikinPaint &paint, const FontCollection* collection, float* advances) argument
617 doLayoutRunCached(const uint16_t* buf, size_t start, size_t count, size_t bufSize, bool isRtl, LayoutContext* ctx, size_t dstStart, const FontCollection* collection, Layout* layout, float* advances) argument
656 doLayoutWord(const uint16_t* buf, size_t start, size_t count, size_t bufSize, bool isRtl, LayoutContext* ctx, size_t bufStart, const FontCollection* collection, Layout* layout, float* advances) argument
705 doLayoutRun(const uint16_t* buf, size_t start, size_t count, size_t bufSize, bool isRtl, LayoutContext* ctx) argument
[all...]
H A DMeasurement.cpp31 static float getRunAdvance(const float* advances, const uint16_t* buf, size_t layoutStart, argument
56 if (GraphemeBreak::isGraphemeBreak(buf, start, count, i)) {
70 float getRunAdvance(const float* advances, const uint16_t* buf, size_t start, size_t count, argument
72 return getRunAdvance(advances, buf, start, start, count, offset);
83 size_t getOffsetForAdvance(const float* advances, const uint16_t* buf, size_t start, size_t count, argument
88 if (GraphemeBreak::isGraphemeBreak(buf, start, count, i)) {
105 if (GraphemeBreak::isGraphemeBreak(buf, start, count, i)) {
106 // "getRunAdvance(layout, buf, start, count, i) - advance" but more efficient
107 float delta = getRunAdvance(advances, buf, start, searchStart, count - searchStart, i)
H A DMinikinFontFreeType.cpp61 FT_Byte* buf = reinterpret_cast<FT_Byte*>(malloc(ftsize)); local
62 if (buf == nullptr) {
65 error = FT_Load_Sfnt_Table(mTypeface, tag, 0, buf, &ftsize);
67 free(buf);
72 return buf;
H A DWordBreaker.cpp68 * Determine whether a line break at position i within the buffer buf is valid. This
72 static bool isBreakValid(const uint16_t* buf, size_t bufEnd, size_t i) { argument
75 U16_PREV(buf, 0, prev_offset, codePoint);
89 U16_NEXT(buf, next_offset, bufEnd, next_codepoint);
111 U16_PREV(buf, 0, prev_offset, codePoint);
/frameworks/minikin/sample/
H A DMinikinSkia.cpp58 void* buf = malloc(tableSize);
59 if (buf == nullptr) {
62 mTypeface->getTableData(tag, 0, tableSize, buf);
64 return buf;
/frameworks/minikin/tests/
H A DFontCollectionItemizeTest.cpp62 uint16_t buf[BUF_SIZE]; local
66 ParseUnicode(buf, BUF_SIZE, str, &len, NULL);
68 collection->itemize(buf, len, style, result);
H A DGraphemeBreakTests.cpp25 uint16_t buf[BUF_SIZE]; local
28 ParseUnicode(buf, BUF_SIZE, src, &size, &offset);
29 return GraphemeBreak::isGraphemeBreak(buf, 0, size, offset);
H A DLayoutUtilsTest.cpp26 uint16_t buf[BUF_SIZE]; local
30 ParseUnicode(buf, BUF_SIZE, query_str, &size, &expected_breakpoint);
32 getNextWordBreakForCache(buf, offset_in, size))
38 uint16_t buf[BUF_SIZE]; local
42 ParseUnicode(buf, BUF_SIZE, query_str, &size, &expected_breakpoint);
44 getPrevWordBreakForCache(buf, offset_in, size))
H A DMinikinFontForTest.cpp56 void* buf = malloc(tableSize); local
57 if (buf == nullptr) {
60 mTypeface->getTableData(tag, 0, tableSize, buf);
62 return buf;
H A DUnicodeUtils.cpp23 void ParseUnicode(uint16_t* buf, size_t buf_size, const char* src, size_t* result_size, argument
37 buf[output_ix++] = (uint16_t)src[input_ix++];
56 buf[output_ix++] = codepoint;
60 buf[output_ix++] = U16_LEAD(codepoint);
61 buf[output_ix++] = U16_TRAIL(codepoint);
86 uint16_t buf[BUF_SIZE]; local
89 ParseUnicode(buf, BUF_SIZE, "U+000D U+1F431 | 'a'", &size, &offset);
92 EXPECT_EQ(buf[0], 0x000D);
93 EXPECT_EQ(buf[1], 0xD83D);
94 EXPECT_EQ(buf[
[all...]
H A DUnicodeUtils.h17 void ParseUnicode(uint16_t* buf, size_t buf_size, const char* src, size_t* result_size,
H A DWordBreakerTests.cpp39 uint16_t buf[] = {'h', 'e', 'l', 'l' ,'o', ' ', 'w', 'o', 'r', 'l', 'd'}; local
42 breaker.setText(buf, NELEM(buf));
49 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end
57 uint16_t buf[] = {'h', 'e', 'l', 0x00AD, 'l' ,'o', ' ', 'w', 'o', 'r', 'l', 'd'}; local
60 breaker.setText(buf, NELEM(buf));
66 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end
73 uint16_t buf[] = {'U', 'S', 0x00A2, ' ', 'J', 'P', 0x00A5}; // US¢ JP¥ local
76 breaker.setText(buf, NELE
89 uint16_t buf[] = {0x1004, 0x103A, 0x1039, 0x1000, 0x102C}; // NGA, ASAT, VIRAMA, KA, UU local
102 uint16_t buf[] = { local
131 uint16_t buf[] = { local
148 uint16_t buf[] = {0x00A1, 0x00A1, 'h', 'e', 'l', 'l' ,'o', ',', ' ', 'w', 'o', 'r', 'l', 'd', local
165 uint16_t buf[] = {'f', 'o', 'o', '@', 'e', 'x', 'a', 'm', 'p', 'l', 'e', '.', 'c', 'o', 'm', local
184 uint16_t buf[] = {'m', 'a', 'i', 'l', 't', 'o', ':', 'f', 'o', 'o', '@', local
208 uint16_t buf[] = {'f', 'o', 'o', '@', 'e', 'x', 'a', 'm', 'p', 'l', 'e', '.', 'c', 'o', 'm', local
227 uint16_t buf[] = {'f', 'o', 'o', '@', 'e', 'x', 'a', 'm', 'p', 'l', 'e', '.', 'c', 'o', 'm', local
246 uint16_t buf[] = {'a', ' ', '@', ' ', 'b'}; local
265 uint16_t buf[] = {'h', 't', 't', 'p', ':', '/', '/', 'e', 'x', 'a', 'm', 'p', 'l', 'e', local
291 uint16_t buf[] = {'h', 't', 't', 'p', ':', '/', '/', 'a', '.', 'b', '/', '~', 'c', ',', 'd', local
351 uint16_t buf[] = {'h', 't', 't', 'p', ':', '/', '/', 'a', '-', '/', 'b'}; local
367 uint16_t buf[] = {'h', 't', 't', 'p', ':', '/', '/', 'a', '/'}; local
383 uint16_t buf[] = {'/', 'a', '@', 'b'}; local
[all...]
/frameworks/compile/slang/
H A Dslang_rs_reflection_cpp.cpp431 unsigned char buf[16]; local
435 while ((read_length = fread(buf, 1, sizeof(buf), pfin)) > 0) {
439 snprintf(buf2, sizeof(buf2), "0x%02x,", buf[i]);
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/store/
H A DLayoutFileParser.java447 byte[] buf = new byte[4096];
449 while ((nread = fin.read(buf)) > 0 && !universalDetector.isDone()) {
450 universalDetector.handleData(buf, 0, nread);
/frameworks/compile/libbcc/bcinfo/BitReader_2_7/
H A DBitcodeReader.cpp3438 unsigned char buf[16]; local
3439 if (Bytes.readBytes(buf, 16, 0) != 16)
3442 if (!isBitcode(buf, buf + 16))
3445 if (isBitcodeWrapper(buf, buf + 4)) {
3446 const unsigned char *bitcodeStart = buf;
3447 const unsigned char *bitcodeEnd = buf + 16;
3449 Bytes.dropLeadingBytes(bitcodeStart - buf);
/frameworks/compile/libbcc/bcinfo/BitReader_3_0/
H A DBitcodeReader.cpp3775 unsigned char buf[16]; local
3776 if (Bytes.readBytes(buf, 16, 0) != 16)
3779 if (!isBitcode(buf, buf + 16))
3782 if (isBitcodeWrapper(buf, buf + 4)) {
3783 const unsigned char *bitcodeStart = buf;
3784 const unsigned char *bitcodeEnd = buf + 16;
3786 Bytes.dropLeadingBytes(bitcodeStart - buf);
/frameworks/compile/libbcc/include/bcc/Support/
H A DProperties.h29 char buf[PROPERTY_VALUE_MAX]; local
30 property_get(str, buf, "0");
31 return atoi(buf);

Completed in 2821 milliseconds

1234567891011>>