Home
last modified time | relevance | path

Searched refs:lastChar (Results 1 – 19 of 19) sorted by relevance

/frameworks/support/core-utils/java/android/support/v4/text/
DBidiFormatter.java618 private char lastChar; field in BidiFormatter.DirectionalityEstimator
815 lastChar = text.charAt(charIndex); in dirTypeForward()
816 if (Character.isHighSurrogate(lastChar)) { in dirTypeForward()
822 byte dirType = getCachedDirectionality(lastChar); in dirTypeForward()
825 if (lastChar == '<') { in dirTypeForward()
827 } else if (lastChar == '&') { in dirTypeForward()
845 lastChar = text.charAt(charIndex - 1); in dirTypeBackward()
846 if (Character.isLowSurrogate(lastChar)) { in dirTypeBackward()
852 byte dirType = getCachedDirectionality(lastChar); in dirTypeBackward()
855 if (lastChar == '>') { in dirTypeBackward()
[all …]
/frameworks/base/core/java/android/text/
DBidiFormatter.java599 private char lastChar; field in BidiFormatter.DirectionalityEstimator
796 lastChar = text.charAt(charIndex); in dirTypeForward()
797 if (Character.isHighSurrogate(lastChar)) { in dirTypeForward()
803 byte dirType = getCachedDirectionality(lastChar); in dirTypeForward()
806 if (lastChar == '<') { in dirTypeForward()
808 } else if (lastChar == '&') { in dirTypeForward()
826 lastChar = text.charAt(charIndex - 1); in dirTypeBackward()
827 if (Character.isLowSurrogate(lastChar)) { in dirTypeBackward()
833 byte dirType = getCachedDirectionality(lastChar); in dirTypeBackward()
836 if (lastChar == '>') { in dirTypeBackward()
[all …]
/frameworks/base/tools/aapt2/compile/
DPseudolocaleGenerator_test.cpp42 EXPECT_EQ(3u, newString->value->spans[0].lastChar); in TEST()
46 EXPECT_EQ(7u, newString->value->spans[1].lastChar); in TEST()
50 EXPECT_EQ(10u, newString->value->spans[2].lastChar); in TEST()
63 EXPECT_EQ(4u, newString->value->spans[0].lastChar); in TEST()
66 EXPECT_EQ(8u, newString->value->spans[1].lastChar); in TEST()
69 EXPECT_EQ(11u, newString->value->spans[2].lastChar); in TEST()
72 EXPECT_EQ(12u, newString->value->spans[3].lastChar); in TEST()
DPseudolocaleGenerator.cpp39 localized.spans.push_back(Span{ *span.name, span.firstChar, span.lastChar }); in pseudolocalizeStyledString()
78 iter = std::lower_bound(ranges.begin(), ranges.end(), span.lastChar, cmp); in pseudolocalizeStyledString()
79 if (iter != ranges.end() && iter->start == span.lastChar) { in pseudolocalizeStyledString()
80 iter->updateEnd = &localized.spans[i].lastChar; in pseudolocalizeStyledString()
83 Range{ span.lastChar, nullptr, &localized.spans[i].lastChar }); in pseudolocalizeStyledString()
/frameworks/minikin/libs/minikin/
DWordBreaker.cpp170 uint16_t lastChar = mText[mLast]; in next() local
173 if (breakAfter(lastChar)) { in next()
177 if (lastChar == '/' && i >= mLast + 2 && mText[i - 2] == '/') { in next()
182 if (lastChar != '-') { in next()
187 if (thisChar == '/' && lastChar != '/' && in next()
192 lastChar = thisChar; in next()
DFontCollection.cpp85 vector<uint32_t> lastChar; in FontCollection() local
108 lastChar.push_back(coverage->nextSetBit(0)); in FontCollection()
128 if (lastChar[j] < (i + 1) << kLogCharsPerPage) { in FontCollection()
136 lastChar[j] = nextChar; in FontCollection()
/frameworks/base/tools/aapt2/
DStringPool.h35 uint32_t lastChar; member
112 uint32_t lastChar; member
DStringPool_test.cpp157 EXPECT_EQ(6u, span.lastChar); in TEST()
238 EXPECT_EQ(1u, span->lastChar); in TEST()
244 EXPECT_EQ(3u, span->lastChar); in TEST()
DStringPool.cpp171 span.firstChar, span.lastChar}); in makeRef()
190 styleEntry->spans.emplace_back(Span{ makeRef(*span.name), span.firstChar, span.lastChar }); in makeRef()
377 span->lastChar = s.lastChar; in flatten()
DResourceValues.cpp182 return *a.name == *b.name && a.firstChar == b.firstChar && a.lastChar == b.lastChar; in equals()
208 *out << " "<< *span.name << ":" << span.firstChar << "," << span.lastChar; in print()
DResourceParser.cpp155 spanStack.back().lastChar = builder.str().size() - 1; in flattenXmlSubtree()
/frameworks/rs/api/
DGenerateTestFiles.cpp32 char lastChar = s[last]; in convertToRsType() local
33 if (lastChar >= '1' && lastChar <= '4') { in convertToRsType()
35 *vectorSize = lastChar; in convertToRsType()
976 char lastChar = p->variableName.back(); in writeRsSection() local
977 if (lastChar >= '0' && lastChar <= '9') { in writeRsSection()
DSpecification.cpp128 const char lastChar = type[last]; in getVectorSizeAndBaseType() local
129 if (lastChar >= '0' && lastChar <= '9') { in getVectorSizeAndBaseType()
134 vectorSize = lastChar; in getVectorSizeAndBaseType()
/frameworks/base/tools/aapt/
DStringPool.cpp221 span.span.lastChar = end; in addStyleSpan()
530 span->lastChar = htodl(ent.spans[i].span.lastChar); in writeStringBlock()
DXMLNode.cpp302 span.span.firstChar = span.span.lastChar = outString->size(); in parseStyledString()
353 span.span.lastChar = outString->size()-1; in parseStyledString()
354 if (span.span.lastChar >= span.span.firstChar) { in parseStyledString()
/frameworks/base/tools/aapt2/proto/
DTableProtoDeserializer.cpp191 spans->lastChar in deserializeItemFromPb()
/frameworks/base/tools/aapt2/unflatten/
DBinaryResourceParser.cpp402 spans->lastChar in parseValue()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhone.java1548 char lastChar = codes[0].charAt(codeStringLength - 1); in processDisconnectReason() local
1549 if (Character.isLetterOrDigit(lastChar)) { in processDisconnectReason()
/frameworks/base/include/androidfw/
DResourceTypes.h480 uint32_t firstChar, lastChar; member