Home
last modified time | relevance | path

Searched refs:UnsafeArena (Results 1 – 25 of 30) sorted by relevance

12

/external/libtextclassifier/native/utils/base/
Darena.h181 class UnsafeArena : public BaseArena {
184 explicit UnsafeArena(const size_t block_size) in UnsafeArena() function
186 UnsafeArena(const size_t block_size, bool align) in UnsafeArena() function
193 UnsafeArena(char* first_block, const size_t block_size) in UnsafeArena() function
195 UnsafeArena(char* first_block, const size_t block_size, bool align) in UnsafeArena() function
279 UnsafeArena(const UnsafeArena&) = delete;
280 UnsafeArena& operator=(const UnsafeArena&) = delete;
Darena_test.cc201 UnsafeArena ua(buffer, blksize); in DoTest()
254 void TestArena2(UnsafeArena* const arena) { in TestArena2()
348 UnsafeArena arena(512); in TEST()
357 UnsafeArena arena(buffer, 512); in TEST()
382 TestStrndupUnterminated<UnsafeArena>(); in TEST()
Darena_leakage_unittest.cc23 UnsafeArena arena(32); in TEST()
Darena.cc487 char* UnsafeArena::Realloc(char* original, size_t oldsize, size_t newsize) { in AllocNewBlock()
513 void UnsafeArena::UnusedKeyMethod() {} in AllocNewBlock()
/external/libtextclassifier/native/utils/grammar/semantics/
Dvalue.h37 static const SemanticValue* Create(const T value, UnsafeArena* arena) { in Create()
50 const SemanticValue* Create(const StringPiece value, UnsafeArena* arena) { in Create()
56 const SemanticValue* Create(const UnicodeText value, UnsafeArena* arena) { in Create()
64 UnsafeArena* arena) { in Create()
74 UnsafeArena* arena) { in Create()
80 UnsafeArena* arena) { in Create()
86 const T value, UnsafeArena* arena) { in Create()
Dcomposer.h53 UnsafeArena* arena) const;
59 UnsafeArena* arena) const override;
65 UnsafeArena* arena) const;
Dcomposer.cc86 UnsafeArena* arena) const { in Eval()
100 UnsafeArena* arena) const { in Eval()
122 UnsafeArena* arena) const { in Apply()
Devaluator.h37 UnsafeArena* arena) const = 0;
/external/libtextclassifier/native/utils/grammar/parsing/
Dparser.h44 UnsafeArena* arena) const;
61 UnsafeArena* arena) const;
64 void EmitSymbol(const Symbol& symbol, UnsafeArena* arena,
Dmatcher.h59 UnsafeArena* arena) in Matcher()
71 UnsafeArena* arena) in Matcher()
127 UnsafeArena* arena_;
Dparser.cc30 inline bool CheckMemoryUsage(const UnsafeArena* arena) { in CheckMemoryUsage()
83 UnsafeArena* arena) const { in SortedSymbolsForInput()
192 void Parser::EmitSymbol(const Symbol& symbol, UnsafeArena* arena, in EmitSymbol()
255 UnsafeArena* arena) const { in Parse()
Dchart_test.cc33 UnsafeArena arena_;
/external/libtextclassifier/native/utils/grammar/
Danalyzer.h42 const TextContext& input, UnsafeArena* arena,
47 UnsafeArena* arena, bool deduplicate_derivations = true) const;
Danalyzer.cc49 const TextContext& input, UnsafeArena* arena, in Parse()
74 UnsafeArena* arena, bool deduplicate_derivations) const { in Parse()
/external/libtextclassifier/native/utils/grammar/semantics/evaluators/
Darithmetic-eval.cc27 const ArithmeticExpression* expression, UnsafeArena* arena) { in Reduce()
99 UnsafeArena* arena) const { in Apply()
Darithmetic-eval.h40 UnsafeArena* arena) const override;
Dspan-eval.h35 UnsafeArena* arena) const override { in Apply()
Dcompose-eval.h38 UnsafeArena* arena) const override;
Dmerge-values-eval.h42 UnsafeArena* arena) const override;
Dconstituent-eval.h33 UnsafeArena*) const override { in Apply() argument
Dmerge-values-eval.cc23 UnsafeArena* arena) const { in Apply()
Dconst-eval.h36 UnsafeArena* arena) const override { in Apply()
Dparse-number-eval.h40 UnsafeArena* arena) const override { in Apply()
/external/libtextclassifier/native/annotator/grammar/
Dgrammar-annotator.cc207 UnsafeArena arena(/*block_size=*/16 << 10); in Annotate()
238 UnsafeArena arena(/*block_size=*/16 << 10); in SuggestSelection()
294 UnsafeArena arena(/*block_size=*/16 << 10); in ClassifyText()
/external/libtextclassifier/native/annotator/datetime/
Dgrammar-parser.cc58 UnsafeArena arena(/*block_size=*/16 << 10); in Parse()

12