/frameworks/minikin/tests/unittest/ |
D | HyphenatorMapTest.cpp | 28 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 …]
|
D | HyphenatorTest.cpp | 46 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 …]
|
D | GreedyLineBreakerTest.cpp | 70 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()
|
D | OptimalLineBreakerTest.cpp | 65 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/ |
D | HyphenatorMap.h | 34 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);
|
D | HyphenatorMap.cpp | 36 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()
|
D | Hyphenator.cpp | 106 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()
|
D | LineBreakerUtil.h | 44 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;
|
D | LineBreakerUtil.cpp | 28 std::vector<HyphenationType> hyphenate(const U16StringPiece& str, const Hyphenator& hyphenator) { in hyphenate()
|
D | Android.bp | 71 "Hyphenator.cpp",
|
D | WordBreaker.cpp | 169 if (Hyphenator::isLineBreakingHyphen(codePoint) || codePoint == CHAR_SOFT_HYPHEN) { in isValidBreak()
|
D | GreedyLineBreaker.cpp | 127 const Hyphenator* mHyphenator = nullptr;
|
/frameworks/minikin/rust/ |
D | minikin.rs | 21 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
|
D | hyphenator.rs | 357 result = Hyphenator::hyphenation_type_based_on_script(c); 543 pub struct Hyphenator { struct 550 impl Hyphenator { impl
|
/frameworks/minikin/tests/perftests/ |
D | Hyphenator.cpp | 31 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()
|
D | Android.bp | 33 "Hyphenator.cpp",
|
/frameworks/minikin/include/minikin/ |
D | Hyphenator.h | 32 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,
|
D | LineBreaker.h | 50 class Hyphenator; variable
|
/frameworks/base/core/java/android/text/ |
D | Hyphenator.java | 24 public class Hyphenator { class 25 private Hyphenator() {} in Hyphenator() method in Hyphenator
|
/frameworks/minikin/app/ |
D | HyphTool.cpp | 12 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/ |
D | hyphenator_fuzzer.cpp | 95 Hyphenator* hyphenator = Hyphenator::loadBinary(&patternData[0], patternData.size(), minPrefix, in LLVMFuzzerTestOneInput()
|
/frameworks/base/core/jni/ |
D | android_text_Hyphenator.cpp | 63 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/ |
D | ZygoteInit.java | 47 import android.text.Hyphenator; 206 Hyphenator.init(); in preloadTextResources()
|
/frameworks/base/core/java/android/text/flags/ |
D | flags.aconfig | 219 # Hyphenator is initialized in Zygote
|
/frameworks/base/boot/ |
D | preloaded-classes | 8082 android.text.Hyphenator
|