Home
last modified time | relevance | path

Searched refs:decompressor (Results 1 – 25 of 71) sorted by relevance

123

/external/pdfium/core/fxcodec/gif/
Dcfx_lzwdecompressor_unittest.cpp19 auto decompressor = CFX_LZWDecompressor::Create(palette_exp, code_exp); in TEST() local
20 ASSERT_NE(nullptr, decompressor); in TEST()
24 std::vector<uint8_t>* decompressed = decompressor->DecompressedForTest(); in TEST()
26 *(decompressor->DecompressedNextForTest()) = decompressed->size(); in TEST()
30 EXPECT_EQ(0u, decompressor->ExtractDataForTest(des_buf, 0)); in TEST()
34 EXPECT_EQ(10u, *(decompressor->DecompressedNextForTest())); in TEST()
35 for (size_t i = 0; i < *(decompressor->DecompressedNextForTest()); ++i) in TEST()
41 std::vector<uint8_t>* decompressed = decompressor->DecompressedForTest(); in TEST()
43 *(decompressor->DecompressedNextForTest()) = decompressed->size(); in TEST()
47 EXPECT_EQ(5u, decompressor->ExtractDataForTest(des_buf, 5)); in TEST()
[all …]
/external/grpc-grpc-java/core/src/main/java/io/grpc/
DDecompressorRegistry.java79 String previousEncoding = di.decompressor.getMessageEncoding(); in DecompressorRegistry()
82 previousEncoding, new DecompressorInfo(di.decompressor, di.advertised)); in DecompressorRegistry()
138 return info != null ? info.decompressor : null; in lookupDecompressor()
145 final Decompressor decompressor; field in DecompressorRegistry.DecompressorInfo
148 DecompressorInfo(Decompressor decompressor, boolean advertised) { in DecompressorInfo() argument
149 this.decompressor = checkNotNull(decompressor, "decompressor"); in DecompressorInfo()
/external/libtextclassifier/annotator/
Dzlib-utils_test.cc63 std::unique_ptr<ZlibDecompressor> decompressor = ZlibDecompressor::Instance(); in TEST() local
64 ASSERT_TRUE(decompressor != nullptr); in TEST()
66 EXPECT_TRUE(decompressor->MaybeDecompress( in TEST()
70 EXPECT_TRUE(decompressor->MaybeDecompress( in TEST()
74 EXPECT_TRUE(decompressor->MaybeDecompress(compressed_model->datetime_model() in TEST()
82 EXPECT_TRUE(decompressor->MaybeDecompress(compressed_model->datetime_model() in TEST()
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DMessageDeframer.java92 private Decompressor decompressor; field in MessageDeframer
119 Decompressor decompressor, in MessageDeframer() argument
124 this.decompressor = checkNotNull(decompressor, "decompressor"); in MessageDeframer()
140 public void setDecompressor(Decompressor decompressor) { in setDecompressor() argument
142 this.decompressor = checkNotNull(decompressor, "Can't pass an empty decompressor"); in setDecompressor()
147 checkState(decompressor == Codec.Identity.NONE, "per-message decompressor already set"); in setFullStreamDecompressor()
421 if (decompressor == Codec.Identity.NONE) { in getCompressedBody()
430 decompressor.decompress(ReadableBuffers.openStream(nextFrame, true)); in getCompressedBody()
DAbstractClientStream.java318 Decompressor decompressor = decompressorRegistry.lookupDecompressor(messageEncoding); in inboundHeadersReceived() local
319 if (decompressor == null) { in inboundHeadersReceived()
325 } else if (decompressor != Codec.Identity.NONE) { in inboundHeadersReceived()
334 setDecompressor(decompressor); in inboundHeadersReceived()
DApplicationThreadDeframer.java62 public void setDecompressor(Decompressor decompressor) { in setDecompressor() argument
63 deframer.setDecompressor(decompressor); in setDecompressor()
DAbstractStream.java215 protected final void setDecompressor(Decompressor decompressor) { in setDecompressor() argument
216 deframer.setDecompressor(decompressor); in setDecompressor()
DDeframer.java33 void setDecompressor(Decompressor decompressor); in setDecompressor() argument
DAbstractServerStream.java161 public final void setDecompressor(Decompressor decompressor) { in setDecompressor() argument
162 transportState().setDecompressor(Preconditions.checkNotNull(decompressor, "decompressor")); in setDecompressor()
/external/brotli/python/tests/
Ddecompressor_test.py22 self.decompressor = brotli.Decompressor()
25 self.decompressor = None
39 out_file.write(self.decompressor.process(data))
40 self.assertTrue(self.decompressor.is_finished())
/external/libtextclassifier/actions/
Dzlib-utils_test.cc54 std::unique_ptr<ZlibDecompressor> decompressor = ZlibDecompressor::Instance(); in TEST() local
55 ASSERT_TRUE(decompressor != nullptr); in TEST()
57 EXPECT_TRUE(decompressor->MaybeDecompress( in TEST()
61 EXPECT_TRUE(decompressor->MaybeDecompress( in TEST()
Dranker.h33 ZlibDecompressor* decompressor,
47 bool InitializeAndValidate(ZlibDecompressor* decompressor);
Dranker.cc198 const RankingOptions* options, ZlibDecompressor* decompressor, in CreateActionsSuggestionsRanker() argument
203 if (!ranker->InitializeAndValidate(decompressor)) { in CreateActionsSuggestionsRanker()
212 ZlibDecompressor* decompressor) { in InitializeAndValidate() argument
221 decompressor, &lua_ranking_script) && in InitializeAndValidate()
Dactions-suggestions.cc267 std::unique_ptr<ZlibDecompressor> decompressor = ZlibDecompressor::Instance(); in ValidateAndInitialize() local
268 if (!InitializeRules(decompressor.get())) { in ValidateAndInitialize()
291 decompressor.get(), &actions_script) && in ValidateAndInitialize()
300 model_->ranking_options(), decompressor.get(), in ValidateAndInitialize()
420 bool ActionsSuggestions::InitializeRules(ZlibDecompressor* decompressor) { in InitializeRules() argument
422 if (!InitializeRules(decompressor, model_->rules(), &rules_)) { in InitializeRules()
429 if (!InitializeRules(decompressor, model_->low_confidence_rules(), in InitializeRules()
461 ZlibDecompressor* decompressor, const RulesModel* rules, in InitializeRules() argument
467 rules->lazy_regex_compilation(), decompressor); in InitializeRules()
479 rules->lazy_regex_compilation(), decompressor); in InitializeRules()
Dzlib-utils.cc163 ZlibDecompressor* decompressor, std::string* out) { in GetUncompressedString() argument
169 return decompressor->MaybeDecompressOptionallyCompressedBuffer( in GetUncompressedString()
Dzlib-utils.h39 ZlibDecompressor* decompressor, std::string* out);
/external/pdfium/testing/libfuzzer/
Dpdf_lzw_fuzzer.cc19 std::unique_ptr<CFX_LZWDecompressor> decompressor = in LZWFuzz() local
21 if (!decompressor) in LZWFuzz()
31 decompressor->Decode(const_cast<uint8_t*>(src_buf), src_size, in LZWFuzz()
/external/libtextclassifier/utils/zlib/
Dzlib_regex.cc29 ZlibDecompressor* decompressor, std::string* result_pattern_text) { in UncompressMakeRegexPattern() argument
34 if (decompressor == nullptr || in UncompressMakeRegexPattern()
35 !decompressor->MaybeDecompress(compressed_pattern, in UncompressMakeRegexPattern()
Dzlib_regex.h32 ZlibDecompressor* decompressor, std::string* result_pattern_text = nullptr);
/external/python/cpython2/Demo/zlib/
Dzlibdemo.py32 decompressor = zlib.decompressobj()
40 decomp = decomp + decompressor.decompress(comptext[i:i+chunk])
41 decomp=decomp+decompressor.flush()
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DForwardingClientStreamTest.java113 DecompressorRegistry decompressor = in setDecompressorRegistryTest() local
125 forward.setDecompressorRegistry(decompressor); in setDecompressorRegistryTest()
126 verify(mock).setDecompressorRegistry(same(decompressor)); in setDecompressorRegistryTest()
/external/libtextclassifier/utils/
Dresources.cc131 std::unique_ptr<ZlibDecompressor> decompressor = ZlibDecompressor::Instance( in GetResourceContent() local
134 if (decompressor != nullptr && in GetResourceContent()
135 decompressor->MaybeDecompress(resource->compressed_content(), result)) { in GetResourceContent()
/external/libtextclassifier/annotator/datetime/
Dparser.cc31 const CalendarLib& calendarlib, ZlibDecompressor* decompressor) { in Instance() argument
33 new DatetimeParser(model, unilib, calendarlib, decompressor)); in Instance()
42 ZlibDecompressor* decompressor) in DatetimeParser() argument
57 model->lazy_regex_compilation(), decompressor); in DatetimeParser()
78 model->lazy_regex_compilation(), decompressor); in DatetimeParser()
Dparser.h42 const CalendarLib& calendarlib, ZlibDecompressor* decompressor);
70 ZlibDecompressor* decompressor);
/external/zlib/src/doc/
Drfc1950.txt136 Unless otherwise indicated below, a compliant decompressor must be
293 below). The decompressor can use this identifier to determine
353 A compliant decompressor must check CMF, FLG, and ADLER32, and
355 A compliant decompressor must give an error indication if CM is
359 data to be interpreted incorrectly. A compliant decompressor must
361 identifier of a known preset dictionary. A decompressor may
364 decompressor must support all the preset dictionaries specified by
366 dictionary feature, a compliant decompressor must reject any
462 decompressor can be initialized with the appropriate context by
468 The compressor and the decompressor must use exactly the same
[all …]

123