Home
last modified time | relevance | path

Searched refs:num_types (Results 1 – 25 of 60) sorted by relevance

123

/external/icing/icing/testing/
Dschema-generator.h50 SchemaProto GenerateSchema(int num_types, int max_num_properties) { in GenerateSchema() argument
53 while (--num_types >= 0) { in GenerateSchema()
55 SetType(schema.add_types(), "Type" + std::to_string(num_types), in GenerateSchema()
83 SchemaProto GenerateSchema(int num_types) { in GenerateSchema() argument
85 while (--num_types >= 0) { in GenerateSchema()
86 SetType(schema.add_types(), "Type" + std::to_string(num_types), in GenerateSchema()
/external/icing/icing/monkey_test/
Dicing-monkey-test-runner.h32 explicit IcingMonkeyTestRunnerConfiguration(uint32_t seed, int num_types, in IcingMonkeyTestRunnerConfiguration()
36 num_types(num_types), in IcingMonkeyTestRunnerConfiguration()
42 int num_types; member
Dmonkey-test-generators.cc21 int num_types, const std::vector<int>& possible_num_properties) const { in GenerateSchema() argument
24 while (num_types > 0) { in GenerateSchema()
27 "MonkeyTestType" + std::to_string(num_types), num_properties); in GenerateSchema()
28 --num_types; in GenerateSchema()
/external/cronet/third_party/brotli/enc/
Dmetablock_inc.h102 ++split->num_types; in FN()
123 if (split->num_types < BROTLI_MAX_NUMBER_OF_BLOCK_TYPES && in FN()
128 split->types[self->num_blocks_] = (uint8_t)split->num_types; in FN()
130 self->last_histogram_ix_[0] = (uint8_t)split->num_types; in FN()
134 ++split->num_types; in FN()
159 if (split->num_types == 1) { in FN()
170 *self->histograms_size_ = split->num_types; in FN()
Dmetablock.c200 BROTLI_ALLOC(m, ContextType, mb->literal_split.num_types); in BrotliBuildMetaBlock()
202 for (i = 0; i < mb->literal_split.num_types; ++i) { in BrotliBuildMetaBlock()
208 mb->literal_split.num_types * literal_context_multiplier; in BrotliBuildMetaBlock()
215 mb->distance_split.num_types << BROTLI_DISTANCE_CONTEXT_BITS; in BrotliBuildMetaBlock()
222 mb->command_histograms_size = mb->command_split.num_types; in BrotliBuildMetaBlock()
236 mb->literal_split.num_types << BROTLI_LITERAL_CONTEXT_BITS; in BrotliBuildMetaBlock()
255 for (i = mb->literal_split.num_types; i != 0;) { in BrotliBuildMetaBlock()
267 mb->distance_split.num_types << BROTLI_DISTANCE_CONTEXT_BITS; in BrotliBuildMetaBlock()
406 ++split->num_types; in ContextBlockSplitterFinishBlock()
442 if (split->num_types < self->max_block_types_ && in ContextBlockSplitterFinishBlock()
[all …]
Dbrotli_bit_stream.c763 const size_t num_types, in BuildAndStoreBlockSplitCode() argument
772 memset(type_histo, 0, (num_types + 2) * sizeof(type_histo[0])); in BuildAndStoreBlockSplitCode()
780 StoreVarLenUint8(num_types - 1, storage_ix, storage); in BuildAndStoreBlockSplitCode()
781 if (num_types > 1) { /* TODO(eustas): else? could StoreBlockSwitch occur? */ in BuildAndStoreBlockSplitCode()
782 BuildAndStoreHuffmanTree(&type_histo[0], num_types + 2, num_types + 2, tree, in BuildAndStoreBlockSplitCode()
795 size_t num_types, in StoreTrivialContextMap() argument
800 StoreVarLenUint8(num_types - 1, storage_ix, storage); in StoreTrivialContextMap()
801 if (num_types > 1) { in StoreTrivialContextMap()
804 size_t alphabet_size = num_types + repeat_code; in StoreTrivialContextMap()
813 histogram[repeat_code] = (uint32_t)num_types; in StoreTrivialContextMap()
[all …]
Dblock_splitter.h23 size_t num_types; /* Amount of distinct types */ member
/external/brotli/c/enc/
Dmetablock_inc.h99 ++split->num_types; in FN()
121 if (split->num_types < BROTLI_MAX_NUMBER_OF_BLOCK_TYPES && in FN()
126 split->types[self->num_blocks_] = (uint8_t)split->num_types; in FN()
128 self->last_histogram_ix_[0] = (uint8_t)split->num_types; in FN()
132 ++split->num_types; in FN()
157 if (split->num_types == 1) { in FN()
168 *self->histograms_size_ = split->num_types; in FN()
Dmetablock.c198 BROTLI_ALLOC(m, ContextType, mb->literal_split.num_types); in BrotliBuildMetaBlock()
200 for (i = 0; i < mb->literal_split.num_types; ++i) { in BrotliBuildMetaBlock()
206 mb->literal_split.num_types * literal_context_multiplier; in BrotliBuildMetaBlock()
213 mb->distance_split.num_types << BROTLI_DISTANCE_CONTEXT_BITS; in BrotliBuildMetaBlock()
220 mb->command_histograms_size = mb->command_split.num_types; in BrotliBuildMetaBlock()
234 mb->literal_split.num_types << BROTLI_LITERAL_CONTEXT_BITS; in BrotliBuildMetaBlock()
253 for (i = mb->literal_split.num_types; i != 0;) { in BrotliBuildMetaBlock()
265 mb->distance_split.num_types << BROTLI_DISTANCE_CONTEXT_BITS; in BrotliBuildMetaBlock()
404 ++split->num_types; in ContextBlockSplitterFinishBlock()
440 if (split->num_types < self->max_block_types_ && in ContextBlockSplitterFinishBlock()
[all …]
Dbrotli_bit_stream.c759 const size_t num_types, in BuildAndStoreBlockSplitCode() argument
768 memset(type_histo, 0, (num_types + 2) * sizeof(type_histo[0])); in BuildAndStoreBlockSplitCode()
776 StoreVarLenUint8(num_types - 1, storage_ix, storage); in BuildAndStoreBlockSplitCode()
777 if (num_types > 1) { /* TODO: else? could StoreBlockSwitch occur? */ in BuildAndStoreBlockSplitCode()
778 BuildAndStoreHuffmanTree(&type_histo[0], num_types + 2, num_types + 2, tree, in BuildAndStoreBlockSplitCode()
790 static void StoreTrivialContextMap(size_t num_types, in StoreTrivialContextMap() argument
795 StoreVarLenUint8(num_types - 1, storage_ix, storage); in StoreTrivialContextMap()
796 if (num_types > 1) { in StoreTrivialContextMap()
799 size_t alphabet_size = num_types + repeat_code; in StoreTrivialContextMap()
808 histogram[repeat_code] = (uint32_t)num_types; in StoreTrivialContextMap()
[all …]
Dblock_splitter.h23 size_t num_types; /* Amount of distinct types */ member
/external/mesa3d/src/gallium/frontends/xvmc/tests/
Dtestlib.c60 int num_types; in GetPort() local
73 …XvMCSurfaceInfo *surface_info = XvMCListSurfaceTypes(display, adaptor_info[i].base_id, &num_types); in GetPort()
77 for (j = 0; j < num_types && !found_port; ++j) in GetPort()
/external/drm_hwcomposer/backend/
DBackend.cpp26 HWC2::Error Backend::ValidateDisplay(HwcDisplay *display, uint32_t *num_types, in ValidateDisplay() argument
28 *num_types = 0; in ValidateDisplay()
59 *num_types = client_size; in ValidateDisplay()
65 return *num_types != 0 ? HWC2::Error::HasChanges : HWC2::Error::None; in ValidateDisplay()
DBackendClient.cpp24 uint32_t *num_types, in ValidateDisplay() argument
28 ++*num_types; in ValidateDisplay()
DBackendClient.h26 HWC2::Error ValidateDisplay(HwcDisplay *display, uint32_t *num_types,
DBackendManager.h46 HWC2::Error ValidateDisplay(HwcDisplay *display, uint32_t *num_types,
/external/selinux/checkpolicy/test/
Ddismod.c117 unsigned int i, num_types; in display_type_set() local
126 num_types = 0; in display_type_set()
128 num_types++; in display_type_set()
135 num_types++; in display_type_set()
136 if (num_types > 1) in display_type_set()
140 if (num_types <= 1) { in display_type_set()
145 num_types++; in display_type_set()
146 if (num_types > 1) in display_type_set()
151 if (num_types > 1) in display_type_set()
172 if (num_types > 1) in display_type_set()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_test_conv.c396 const unsigned num_types = ARRAY_SIZE(conv_types); variable
407 for(src_type = conv_types; src_type < &conv_types[num_types]; ++src_type) { in test_all()
408 for(dst_type = conv_types; dst_type < &conv_types[num_types]; ++dst_type) { in test_all()
436 src_type = &conv_types[rand() % num_types]; in test_some()
439 dst_type = &conv_types[rand() % num_types]; in test_some()
/external/wpa_supplicant_8/src/eap_peer/
Deap_tls_common.h141 size_t *num_types, int use_machine_cred);
142 int eap_peer_tls_phase2_nak(struct eap_method_type *types, size_t num_types,
Deap_tls_common.c1111 size_t *num_types, int use_machine_cred) in eap_peer_select_phase2_methods() argument
1184 *num_types = num_methods; in eap_peer_select_phase2_methods()
1198 int eap_peer_tls_phase2_nak(struct eap_method_type *types, size_t num_types, in eap_peer_tls_phase2_nak() argument
1207 (u8 *) types, num_types * sizeof(struct eap_method_type)); in eap_peer_tls_phase2_nak()
1208 *resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_NAK, num_types, in eap_peer_tls_phase2_nak()
1213 for (i = 0; i < num_types; i++) { in eap_peer_tls_phase2_nak()
/external/catch2/include/internal/
Dcatch_test_registry.h208 constexpr auto num_types = sizeof(types_list) / sizeof(types_list[0]);\
209 …{ Name " - " + std::string(tmpl_types[index / num_types]) + "<" + std::string(types_list[index % n…
336 constexpr auto num_types = sizeof(types_list) / sizeof(types_list[0]);\
337 …{ Name " - " + std::string(tmpl_types[index / num_types]) + "<" + std::string(types_list[index % n…
/external/icing/icing/
Dicing-search-engine_flush_benchmark.cc147 int num_types = kAvgNumNamespaces * kAvgNumTypes; in BM_FlushBenchmark() local
153 schema_generator.GenerateSchema(num_types, kMaxNumProperties); in BM_FlushBenchmark()
Dicing-search-engine_benchmark.cc214 int num_types = kAvgNumNamespaces * kAvgNumTypes; in BM_IndexLatency() local
218 SchemaProto schema = schema_generator.GenerateSchema(num_types); in BM_IndexLatency()
254 int num_types = kAvgNumNamespaces * kAvgNumTypes; in BM_QueryLatency() local
258 SchemaProto schema = schema_generator.GenerateSchema(num_types); in BM_QueryLatency()
301 int num_types = kAvgNumNamespaces * kAvgNumTypes; in BM_IndexThroughput() local
305 SchemaProto schema = schema_generator.GenerateSchema(num_types); in BM_IndexThroughput()
367 int num_types = kAvgNumNamespaces * kAvgNumTypes; in BM_MutlipleIndices() local
373 schema_generator.GenerateSchema(num_types, kMaxNumProperties); in BM_MutlipleIndices()
/external/libxkbcommon/src/xkbcomp/
Dtypes.c677 unsigned num_types; in CopyKeyTypesToKeymap() local
680 num_types = darray_empty(info->types) ? 1 : darray_size(info->types); in CopyKeyTypesToKeymap()
681 types = calloc(num_types, sizeof(*types)); in CopyKeyTypesToKeymap()
701 for (unsigned i = 0; i < num_types; i++) { in CopyKeyTypesToKeymap()
715 keymap->num_types = num_types; in CopyKeyTypesToKeymap()
/external/mesa3d/src/gallium/frontends/xvmc/
Dcontext.c55 int num_types; in Validate() local
84 surface_info = XvMCListSurfaceTypes(dpy, adaptor_info[j].base_id, &num_types); in Validate()
90 for (int l = 0; l < num_types && !found_surface; ++l) { in Validate()

123