Home
last modified time | relevance | path

Searched refs:mapper (Results 1 – 25 of 123) sorted by relevance

12345

/external/openfst/src/include/fst/
Dmap.h32 void Map(MutableFst<A> *fst, C* mapper) { in Map() argument
33 ArcMap(fst, mapper); in Map()
37 void Map(MutableFst<A> *fst, C mapper) { in Map() argument
38 ArcMap(fst, mapper); in Map()
42 void Map(const Fst<A> &ifst, MutableFst<B> *ofst, C* mapper) { in Map() argument
43 ArcMap(ifst, ofst, mapper); in Map()
47 void Map(const Fst<A> &ifst, MutableFst<B> *ofst, C mapper) { in Map() argument
48 ArcMap(ifst, ofst, mapper); in Map()
61 MapFst(const Fst<A> &fst, const C &mapper, const MapFstOptions& opts) in MapFst() argument
62 : ArcMapFst<A, B, C>(fst, mapper, opts) {} in MapFst()
[all …]
Dstate-map.h90 void StateMap(MutableFst<A> *fst, C* mapper) { in StateMap() argument
94 if (mapper->InputSymbolsAction() == MAP_CLEAR_SYMBOLS) in StateMap()
97 if (mapper->OutputSymbolsAction() == MAP_CLEAR_SYMBOLS) in StateMap()
105 fst->SetStart(mapper->Start()); in StateMap()
108 mapper->SetState(s); in StateMap()
110 for (; !mapper->Done(); mapper->Next()) in StateMap()
111 fst->AddArc(s, mapper->Value()); in StateMap()
112 fst->SetFinal(s, mapper->Final(s)); in StateMap()
115 fst->SetProperties(mapper->Properties(props), kFstProperties); in StateMap()
121 void StateMap(MutableFst<A> *fst, C mapper) { in StateMap() argument
[all …]
Darc-map.h112 void ArcMap(MutableFst<A> *fst, C* mapper) { in ArcMap() argument
116 if (mapper->InputSymbolsAction() == MAP_CLEAR_SYMBOLS) in ArcMap()
119 if (mapper->OutputSymbolsAction() == MAP_CLEAR_SYMBOLS) in ArcMap()
127 MapFinalAction final_action = mapper->FinalAction(); in ArcMap()
138 aiter.SetValue((*mapper)(arc)); in ArcMap()
144 A final_arc = (*mapper)(A(0, 0, fst->Final(s), kNoStateId)); in ArcMap()
155 A final_arc = (*mapper)(A(0, 0, fst->Final(s), kNoStateId)); in ArcMap()
173 A final_arc = (*mapper)(A(0, 0, fst->Final(s), kNoStateId)); in ArcMap()
184 fst->SetProperties(mapper->Properties(props), kFstProperties); in ArcMap()
191 void ArcMap(MutableFst<A> *fst, C mapper) { in ArcMap() argument
[all …]
Dencode.h315 EncodeMapper(const EncodeMapper& mapper) in EncodeMapper() argument
316 : flags_(mapper.flags_), in EncodeMapper()
317 type_(mapper.type_), in EncodeMapper()
318 table_(mapper.table_), in EncodeMapper()
324 EncodeMapper(const EncodeMapper& mapper, EncodeType type) in EncodeMapper() argument
325 : flags_(mapper.flags_), in EncodeMapper()
327 table_(mapper.table_), in EncodeMapper()
328 error_(mapper.error_) { in EncodeMapper()
466 void Encode(MutableFst<A> *fst, EncodeMapper<A>* mapper) { in Encode() argument
467 mapper->SetInputSymbols(fst->InputSymbols()); in Encode()
[all …]
/external/marisa-trie/v0_1_5/lib/marisa_alpha/
Dtrie.cc12 void Trie::mmap(Mapper *mapper, const char *filename, in mmap() argument
14 MARISA_ALPHA_THROW_IF(mapper == NULL, MARISA_ALPHA_PARAM_ERROR); in mmap()
18 temp_mapper.swap(mapper); in mmap()
22 Mapper mapper(ptr, size); in map() local
23 map(mapper); in map()
26 void Trie::map(Mapper &mapper) { in map() argument
28 temp.louds_.map(mapper); in map()
29 temp.labels_.map(mapper); in map()
30 temp.terminal_flags_.map(mapper); in map()
31 temp.link_flags_.map(mapper); in map()
[all …]
Dintvector.cc43 void IntVector::mmap(Mapper *mapper, const char *filename, in mmap() argument
45 MARISA_ALPHA_THROW_IF(mapper == NULL, MARISA_ALPHA_PARAM_ERROR); in mmap()
49 temp_mapper.swap(mapper); in mmap()
53 Mapper mapper(ptr, size); in map() local
54 map(mapper); in map()
57 void IntVector::map(Mapper &mapper) { in map() argument
59 temp.units_.map(mapper); in map()
60 mapper.map(&temp.num_bits_per_int_); in map()
61 mapper.map(&temp.mask_); in map()
62 mapper.map(&temp.size_); in map()
Dbitvector.cc256 void BitVector::mmap(Mapper *mapper, const char *filename, in mmap() argument
258 MARISA_ALPHA_THROW_IF(mapper == NULL, MARISA_ALPHA_PARAM_ERROR); in mmap()
262 temp_mapper.swap(mapper); in mmap()
266 Mapper mapper(ptr, size); in map() local
267 map(mapper); in map()
270 void BitVector::map(Mapper &mapper) { in map() argument
272 temp.blocks_.map(mapper); in map()
273 mapper.map(&temp.size_); in map()
274 temp.ranks_.map(mapper); in map()
275 temp.select0s_.map(mapper); in map()
[all …]
Dtail.cc30 void Tail::mmap(Mapper *mapper, const char *filename, in mmap() argument
32 if (mapper == NULL) { in mmap()
38 temp_mapper.swap(mapper); in mmap()
42 Mapper mapper(ptr, size); in map() local
43 map(mapper); in map()
46 void Tail::map(Mapper &mapper) { in map() argument
48 temp.buf_.map(mapper); in map()
Dvector-inline.h21 void Vector<T>::mmap(Mapper *mapper, const char *filename, in mmap() argument
23 MARISA_ALPHA_THROW_IF(mapper == NULL, MARISA_ALPHA_PARAM_ERROR); in mmap()
27 temp_mapper.swap(mapper); in mmap()
32 Mapper mapper(ptr, size); in map()
33 map(mapper); in map()
37 void Vector<T>::map(Mapper &mapper) { in map() argument
39 mapper.map(&size); in map()
41 mapper.map(&temp.objs_, size); in map()
/external/marisa-trie/lib/marisa/
Dtrie.cc12 void Trie::mmap(Mapper *mapper, const char *filename, in mmap() argument
14 MARISA_THROW_IF(mapper == NULL, MARISA_PARAM_ERROR); in mmap()
18 temp_mapper.swap(mapper); in mmap()
22 Mapper mapper(ptr, size); in map() local
23 map(mapper); in map()
26 void Trie::map(Mapper &mapper) { in map() argument
28 temp.louds_.map(mapper); in map()
29 temp.labels_.map(mapper); in map()
30 temp.terminal_flags_.map(mapper); in map()
31 temp.link_flags_.map(mapper); in map()
[all …]
Dintvector.cc43 void IntVector::mmap(Mapper *mapper, const char *filename, in mmap() argument
45 MARISA_THROW_IF(mapper == NULL, MARISA_PARAM_ERROR); in mmap()
49 temp_mapper.swap(mapper); in mmap()
53 Mapper mapper(ptr, size); in map() local
54 map(mapper); in map()
57 void IntVector::map(Mapper &mapper) { in map() argument
59 temp.units_.map(mapper); in map()
60 mapper.map(&temp.num_bits_per_int_); in map()
61 mapper.map(&temp.mask_); in map()
62 mapper.map(&temp.size_); in map()
Dbitvector.cc256 void BitVector::mmap(Mapper *mapper, const char *filename, in mmap() argument
258 MARISA_THROW_IF(mapper == NULL, MARISA_PARAM_ERROR); in mmap()
262 temp_mapper.swap(mapper); in mmap()
266 Mapper mapper(ptr, size); in map() local
267 map(mapper); in map()
270 void BitVector::map(Mapper &mapper) { in map() argument
272 temp.blocks_.map(mapper); in map()
273 mapper.map(&temp.size_); in map()
274 temp.ranks_.map(mapper); in map()
275 temp.select0s_.map(mapper); in map()
[all …]
Dtail.cc30 void Tail::mmap(Mapper *mapper, const char *filename, in mmap() argument
32 if (mapper == NULL) { in mmap()
38 temp_mapper.swap(mapper); in mmap()
42 Mapper mapper(ptr, size); in map() local
43 map(mapper); in map()
46 void Tail::map(Mapper &mapper) { in map() argument
48 temp.buf_.map(mapper); in map()
Dvector-inline.h21 void Vector<T>::mmap(Mapper *mapper, const char *filename, in mmap() argument
23 MARISA_THROW_IF(mapper == NULL, MARISA_PARAM_ERROR); in mmap()
27 temp_mapper.swap(mapper); in mmap()
32 Mapper mapper(ptr, size); in map()
33 map(mapper); in map()
37 void Vector<T>::map(Mapper &mapper) { in map() argument
39 mapper.map(&size); in map()
41 mapper.map(&temp.objs_, size); in map()
/external/dagger2/compiler/src/test/java/dagger/internal/codegen/
DDependencyRequestMapperTest.java104 DependencyRequestMapper mapper = DependencyRequestMapper.FOR_PROVIDER; in forProvider() local
105 assertThat(mapper.getFrameworkClass(dependencyRequestForInstance())) in forProvider()
107 assertThat(mapper.getFrameworkClass(dependencyRequestForLazy())) in forProvider()
109 assertThat(mapper.getFrameworkClass(dependencyRequestForProvider())) in forProvider()
111 assertThat(mapper.getFrameworkClass(dependencyRequestForMembersInjector())) in forProvider()
116 DependencyRequestMapper mapper = DependencyRequestMapper.FOR_PRODUCER; in forProducer() local
117 assertThat(mapper.getFrameworkClass(dependencyRequestForInstance())) in forProducer()
119 assertThat(mapper.getFrameworkClass(dependencyRequestForLazy())) in forProducer()
121 assertThat(mapper.getFrameworkClass(dependencyRequestForProvider())) in forProducer()
123 assertThat(mapper.getFrameworkClass(dependencyRequestForMembersInjector())) in forProducer()
[all …]
/external/chromium-trace/catapult/third_party/Paste/tests/
Dtest_urlmap.py16 mapper = URLMap({})
17 app = TestApp(mapper)
19 mapper[''] = make_app(text % 'root')
20 mapper['/foo'] = make_app(text % 'foo-only')
21 mapper['/foo/bar'] = make_app(text % 'foo:bar')
22 mapper['/f'] = make_app(text % 'f-only')
48 mapper = URLMap({})
49 app = TestApp(mapper, extra_environ={'HTTP_ACCEPT': 'text/html'})
/external/chromium-trace/catapult/third_party/Paste/paste/
Derrordocument.py155 def __init__(self, app, mapper, global_conf=None, **params): argument
165 self.mapper = mapper
182 new_url = self.mapper(
249 def custom_forward(app, mapper, global_conf=None, **kw): argument
259 return _StatusBasedRedirect(app, mapper, global_conf, **kw)
265 def __init__(self, app, mapper, global_conf=None, **kw): argument
275 self.mapper = mapper
311 new_url = self.mapper(
/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/protorpc/webapp/
Dservice_handlers.py308 def add_request_mapper(self, mapper): argument
310 self.__request_mappers.append(mapper)
462 mapper, argument
467 mapper.build_response(self, status)
468 self.response.headers['content-type'] = mapper.default_content_type
560 for mapper in self.__factory.all_request_mappers():
561 if content_type in mapper.content_types:
573 if http_method not in mapper.http_methods:
590 mapper)
593 request = mapper.build_request(self, method_info.request_type)
[all …]
Dservice_handlers_test.py298 def ExpectRpcError(self, mapper, state, error_message, error_name=None): argument
299 mapper.build_response(self.handler,
874 mapper = service_handlers.RPCMapper(['GET', 'POST'],
878 self.assertEquals(frozenset(['GET', 'POST']), mapper.http_methods)
879 self.assertEquals('my-content-type', mapper.default_content_type)
881 mapper.content_types)
889 mapper = service_handlers.RPCMapper(['GET', 'POST'],
894 self.assertEquals(frozenset(['GET', 'POST']), mapper.http_methods)
895 self.assertEquals('my-content-type', mapper.default_content_type)
897 mapper.content_types)
[all …]
/external/icu/icu4c/source/layout/
DLEFontInstance.cpp50 …le_bool reverse, const LECharMapper *mapper, le_bool filterZeroWidth, LEGlyphStorage &glyphStorage… in mapCharsToGlyphs() argument
71 glyphStorage[out] = mapCharToGlyph(code, mapper, filterZeroWidth); in mapCharsToGlyphs()
80 LEGlyphID LEFontInstance::mapCharToGlyph(LEUnicode32 ch, const LECharMapper *mapper) const in mapCharToGlyph()
82 return mapCharToGlyph(ch, mapper, TRUE); in mapCharToGlyph()
85 LEGlyphID LEFontInstance::mapCharToGlyph(LEUnicode32 ch, const LECharMapper *mapper, le_bool filter… in mapCharToGlyph() argument
87 LEUnicode32 mappedChar = mapper->mapChar(ch); in mapCharToGlyph()
/external/skia/src/core/
DSkBitmapProcState_matrix_template.h25 const SkBitmapProcStateAutoMapper mapper(s, x, y); in NoFilterProc_Scale()
27 *xy++ = TileProc::Y(s, mapper.fixedY(), maxY); in NoFilterProc_Scale()
28 fx = mapper.fractionalIntX(); in NoFilterProc_Scale()
80 const SkBitmapProcStateAutoMapper mapper(s, x, y); in NoFilterProc_Affine()
82 SkFractionalInt fx = mapper.fractionalIntX(); in NoFilterProc_Affine()
83 SkFractionalInt fy = mapper.fractionalIntY(); in NoFilterProc_Affine()
/external/dexmaker/src/dx/java/com/android/dx/ssa/back/
DFirstFitAllocator.java65 BasicRegisterMapper mapper in allocateRegisters() local
101 mapper.addMapping(i, newReg, maxCategory); in allocateRegisters()
104 mapper.addMapping(i, nextNewRegister, maxCategory); in allocateRegisters()
127 mapper.addMapping(j, newReg, maxCategory); in allocateRegisters()
138 return mapper; in allocateRegisters()
/external/chromium-trace/catapult/third_party/mapreduce/mapreduce/
Dstatus.py136 "mapper_input_reader": config.mapper.input_reader,
137 "mapper_handler": config.mapper.handler,
139 if config.mapper.params_validator:
140 out["mapper_params_validator"] = config.mapper.params_validator
141 if config.mapper.params:
143 for param in config.mapper.params:
151 if config.mapper.output_writer:
152 out["mapper_output_writer"] = config.mapper.output_writer
344 "shards": job.mapreduce_spec.mapper.shard_count,
/external/icu/icu4c/source/test/perf/leperf/
DSimpleFontInstance.cpp91 LEGlyphID SimpleFontInstance::mapCharToGlyph(LEUnicode32 ch, const LECharMapper *mapper, le_bool fi… in mapCharToGlyph() argument
93 return LEFontInstance::mapCharToGlyph(ch, mapper, filterZeroWidth); in mapCharToGlyph()
98 LEGlyphID SimpleFontInstance::mapCharToGlyph(LEUnicode32 ch, const LECharMapper *mapper) const in mapCharToGlyph()
100 return LEFontInstance::mapCharToGlyph(ch, mapper); in mapCharToGlyph()
/external/icu/icu4c/source/test/letest/
DSimpleFontInstance.cpp97 LEGlyphID SimpleFontInstance::mapCharToGlyph(LEUnicode32 ch, const LECharMapper *mapper, le_bool fi… in mapCharToGlyph() argument
99 return LEFontInstance::mapCharToGlyph(ch, mapper, filterZeroWidth); in mapCharToGlyph()
104 LEGlyphID SimpleFontInstance::mapCharToGlyph(LEUnicode32 ch, const LECharMapper *mapper) const in mapCharToGlyph()
106 return LEFontInstance::mapCharToGlyph(ch, mapper); in mapCharToGlyph()

12345