Home
last modified time | relevance | path

Searched refs:Hyphenator (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/minikin/tests/unittest/
DHyphenatorMapTest.cpp28 const Hyphenator* FAKE_ADDRESS = reinterpret_cast<const Hyphenator*>(1);
29 const Hyphenator* AS_HYPHENATOR = FAKE_ADDRESS++;
30 const Hyphenator* BG_HYPHENATOR = FAKE_ADDRESS++;
31 const Hyphenator* BN_HYPHENATOR = FAKE_ADDRESS++;
32 const Hyphenator* CU_HYPHENATOR = FAKE_ADDRESS++;
33 const Hyphenator* CY_HYPHENATOR = FAKE_ADDRESS++;
34 const Hyphenator* DA_HYPHENATOR = FAKE_ADDRESS++;
35 const Hyphenator* DE_1901_HYPHENATOR = FAKE_ADDRESS++;
36 const Hyphenator* DE_1996_HYPHENATOR = FAKE_ADDRESS++;
37 const Hyphenator* DE_CH_1901_HYPHENATOR = FAKE_ADDRESS++;
[all …]
DHyphenatorTest.cpp46 typedef std::function<Hyphenator*(const uint8_t*, size_t, size_t, size_t, const std::string&)>
52 testing::Values(Hyphenator::loadBinary, Hyphenator::loadBinaryForRust),
67 Hyphenator* hyphenator = GetParam()(patternData.data(), patternData.size(), 2, 3, "en"); in TEST_P()
81 Hyphenator* hyphenator = GetParam()(nullptr, 0, 2, 2, "ca"); in TEST_P()
95 Hyphenator* hyphenator = GetParam()(nullptr, 0, 2, 2, "ca"); in TEST_P()
107 Hyphenator* hyphenator = GetParam()(nullptr, 0, 2, 2, "pl"); in TEST_P()
119 Hyphenator* hyphenator = GetParam()(nullptr, 0, 2, 2, "pl"); in TEST_P()
132 Hyphenator* hyphenator = GetParam()(nullptr, 0, 2, 2, "pl"); in TEST_P()
145 Hyphenator* hyphenator = GetParam()(nullptr, 0, 2, 2, "sl"); in TEST_P()
157 Hyphenator* hyphenator = GetParam()(nullptr, 0, 2, 2, "en"); in TEST_P()
[all …]
DGreedyLineBreakerTest.cpp70 Hyphenator* hyphenator = in SetUp()
71 Hyphenator::loadBinary(mHyphenationPattern.data(), mHyphenationPattern.size(), in SetUp()
74 HyphenatorMap::add("pl", Hyphenator::loadBinary(nullptr, 0, 0, 0, "pl")); in SetUp()
DOptimalLineBreakerTest.cpp65 Hyphenator* hyphenator = in SetUp()
66 Hyphenator::loadBinary(mHyphenationPattern.data(), mHyphenationPattern.size(), in SetUp()
69 HyphenatorMap::add("pl", Hyphenator::loadBinary(nullptr, 0, 0, 0, "pl")); in SetUp()
/frameworks/minikin/libs/minikin/
DHyphenatorMap.h34 static void add(const std::string& localeStr, const Hyphenator* hyphenator) { in add()
55 static const Hyphenator* lookup(const Locale& locale) { in lookup()
62 void addInternal(const std::string& localeStr, const Hyphenator* hyphenator);
64 const Hyphenator* lookupInternal(const Locale& locale);
74 const Hyphenator* lookupByIdentifier(uint64_t id) const EXCLUSIVE_LOCKS_REQUIRED(mMutex);
75 const Hyphenator* lookupBySubtag(const Locale& locale, SubtagBits bits) const
78 const Hyphenator* mSoftHyphenOnlyHyphenator;
79 std::map<uint64_t, const Hyphenator*> mMap GUARDED_BY(mMutex);
DHyphenatorMap.cpp36 void addHyphenator(const std::string& localeStr, const Hyphenator* hyphenator) { in addHyphenator()
46 Hyphenator::loadBinary(nullptr, 0, DEFAULT_MIN_PREFIX, DEFAULT_MAX_PREFIX, "")) {} in HyphenatorMap()
48 void HyphenatorMap::addInternal(const std::string& localeStr, const Hyphenator* hyphenator) { in addInternal()
73 const Hyphenator* HyphenatorMap::lookupInternal(const Locale& locale) { in lookupInternal()
76 const Hyphenator* result = lookupByIdentifier(id); in lookupInternal()
115 const Hyphenator* HyphenatorMap::lookupByIdentifier(uint64_t id) const { in lookupByIdentifier()
120 const Hyphenator* HyphenatorMap::lookupBySubtag(const Locale& locale, SubtagBits bits) const { in lookupBySubtag()
DHyphenator.cpp106 class HyphenatorRust : public Hyphenator {
121 ::rust::Box<rust::Hyphenator> mHyphenator;
126 Hyphenator* Hyphenator::loadBinary(const uint8_t* patternData, size_t dataSize, size_t minPrefix, in loadBinary()
140 Hyphenator* Hyphenator::loadBinaryForRust(const uint8_t* /*patternData*/, size_t /*dataSize*/, in loadBinaryForRust()
146 Hyphenator* Hyphenator::loadBinaryForRust(const uint8_t* patternData, size_t dataSize, in loadBinaryForRust()
153 Hyphenator* HyphenatorCXX::loadBinary(const uint8_t* patternData, size_t, size_t minPrefix, in loadBinary()
200 bool Hyphenator::isLineBreakingHyphen(uint32_t c) { in isLineBreakingHyphen()
DLineBreakerUtil.h44 std::vector<HyphenationType> hyphenate(const U16StringPiece& string, const Hyphenator& hypenator);
78 const Hyphenator& hyphenator, // A hyphenator to be used for hyphenation. in populateHyphenationPoints()
221 const Hyphenator* hyphenator = nullptr;
DLineBreakerUtil.cpp28 std::vector<HyphenationType> hyphenate(const U16StringPiece& str, const Hyphenator& hyphenator) { in hyphenate()
DAndroid.bp71 "Hyphenator.cpp",
DWordBreaker.cpp169 if (Hyphenator::isLineBreakingHyphen(codePoint) || codePoint == CHAR_SOFT_HYPHEN) { in isValidBreak()
DGreedyLineBreaker.cpp127 const Hyphenator* mHyphenator = nullptr;
/frameworks/minikin/rust/
Dminikin.rs21 pub use hyphenator::Hyphenator;
33 type Hyphenator; typedef
39 ) -> Box<Hyphenator>; in load_hyphenator() argument
40 fn hyphenate(hyphenator: &Hyphenator, word: &[u16], out: &mut [u8]); in hyphenate() argument
49 ) -> Box<Hyphenator> { in load_hyphenator() argument
50 Box::new(Hyphenator::new(data, min_prefix, min_suffix, &locale)) in load_hyphenator()
53 fn hyphenate(hyphenator: &Hyphenator, word: &[u16], out: &mut [u8]) { in hyphenate() argument
Dhyphenator.rs357 result = Hyphenator::hyphenation_type_based_on_script(c);
543 pub struct Hyphenator { struct
550 impl Hyphenator { impl
/frameworks/minikin/tests/perftests/
DHyphenator.cpp31 Hyphenator* hyphenator = Hyphenator::loadBinary(hyData.data(), hyData.size(), enUsMinPrefix, in BM_Hyphenator_short_word()
45 Hyphenator* hyphenator = Hyphenator::loadBinary(hyData.data(), hyData.size(), enUsMinPrefix, in BM_Hyphenator_long_word()
DAndroid.bp33 "Hyphenator.cpp",
/frameworks/minikin/include/minikin/
DHyphenator.h32 class Hyphenator; variable
37 void addHyphenator(const std::string& localeStr, const Hyphenator* hyphenator);
173 class Hyphenator {
205 static Hyphenator* loadBinary(const uint8_t* patternData, size_t dataSize, size_t minPrefix,
209 static Hyphenator* loadBinaryForRust(const uint8_t* patternData, size_t dataSize,
212 virtual ~Hyphenator() {} in ~Hyphenator()
223 class HyphenatorCXX : public Hyphenator {
246 static Hyphenator* loadBinary(const uint8_t* patternData, size_t dataSize, size_t minPrefix,
DLineBreaker.h50 class Hyphenator; variable
/frameworks/base/core/java/android/text/
DHyphenator.java24 public class Hyphenator { class
25 private Hyphenator() {} in Hyphenator() method in Hyphenator
/frameworks/minikin/app/
DHyphTool.cpp12 using minikin::Hyphenator;
15 Hyphenator* loadHybFile(const char* fn, int minPrefix, int minSuffix, const char* language) { in loadHybFile()
40 Hyphenator* hyph = loadHybFile(argv[1], 2, 3, "fr"); // should also be configurable in main()
/frameworks/minikin/fuzz/hyphenator_fuzzer/
Dhyphenator_fuzzer.cpp95 Hyphenator* hyphenator = Hyphenator::loadBinary(&patternData[0], patternData.size(), minPrefix, in LLVMFuzzerTestOneInput()
/frameworks/base/core/jni/
Dandroid_text_Hyphenator.cpp63 minikin::Hyphenator::loadBinary(nullptr, 0, minPrefix, minSuffix, in addHyphenatorWithoutPatternFile()
74 minikin::Hyphenator::loadBinary(r.first, r.second, minPrefix, minSuffix, in addHyphenator()
/frameworks/base/core/java/com/android/internal/os/
DZygoteInit.java47 import android.text.Hyphenator;
206 Hyphenator.init(); in preloadTextResources()
/frameworks/base/core/java/android/text/flags/
Dflags.aconfig219 # Hyphenator is initialized in Zygote
/frameworks/base/boot/
Dpreloaded-classes8082 android.text.Hyphenator

12