Home
last modified time | relevance | path

Searched refs:context_size (Results 1 – 20 of 20) sorted by relevance

/external/epid-sdk/epid/member/tiny/src/
Dinit.c34 size_t* context_size) { in EpidMemberGetSize() argument
37 if (!params || !context_size) { in EpidMemberGetSize()
40 *context_size = kMinContextSize + SIGRL_HEAP_SIZE + in EpidMemberGetSize()
47 size_t context_size = 0; in EpidMemberInit() local
52 sts = EpidMemberGetSize(params, &context_size); in EpidMemberInit()
57 memset(ctx, 0, context_size); in EpidMemberInit()
/external/epid-sdk/epid/member/src/
Dcontext.c46 EpidStatus EpidMemberGetSize(MemberParams const* params, size_t* context_size) { in EpidMemberGetSize() argument
47 if (!params || !context_size) { in EpidMemberGetSize()
50 *context_size = sizeof(MemberCtx); in EpidMemberGetSize()
161 size_t context_size = 0; in EpidMemberCreate() local
168 sts = EpidMemberGetSize(params, &context_size); in EpidMemberCreate()
170 member_ctx = SAFE_ALLOC(context_size); in EpidMemberCreate()
/external/google-breakpad/src/client/linux/handler/
Dexception_handler.cc391 size_t context_size; member
405 thread_arg->context_size) == false; in ThreadEntry()
487 thread_arg.context_size = sizeof(*context); in GenerateDump()
570 size_t context_size) { in DoDump() argument
574 context_size, in DoDump()
582 context_size, in DoDump()
590 context_size, in DoDump()
Dexception_handler.h244 size_t context_size);
/external/libtextclassifier/annotator/
Dcached-features.cc44 num_extracted_tokens = 2 * options->context_size() + 1; in CalculateOutputFeaturesSize()
92 options_->context_size(), in AppendClickContextFeaturesForClick()
93 options_->context_size()), in AppendClickContextFeaturesForClick()
Dfeature-processor.cc214 tokens[options_->context_size() - result_begin_token_index]; in LabelToSpan()
218 tokens[options_->context_size() + result_end_token_index]; in LabelToSpan()
268 options_->context_size(); // Click is always in the middle. in SpanToLabel()
269 const int padding = options_->context_size() - options_->max_selection_span(); in SpanToLabel()
710 void StripOrPadTokens(TokenSpan relative_click_span, int context_size, in StripOrPadTokens() argument
712 int right_context_needed = relative_click_span.second + context_size; in StripOrPadTokens()
716 context_size, static_cast<int>(*click_pos + right_context_needed + 1 - in StripOrPadTokens()
727 int left_context_needed = relative_click_span.first + context_size; in StripOrPadTokens()
731 std::min(context_size, left_context_needed - *click_pos); in StripOrPadTokens()
Dfeature-processor_test.cc296 options.context_size = 1; in TEST_F()
345 options.context_size = 2; in TEST_F()
370 options.context_size = 1; in TEST_F()
419 options.context_size = 2; in TEST_F()
509 options.context_size = 2; in TEST_F()
617 options.context_size = 2; in TEST_F()
653 options.context_size = 2; in TEST_F()
Dfeature-processor.h67 void StripOrPadTokens(TokenSpan relative_click_span, int context_size,
209 int GetNumContextTokens() const { return options_->context_size() * 2 + 1; } in GetNumContextTokens()
Dannotator.cc1062 const int context_size = in ModelSuggestSelection() local
1063 selection_feature_processor_->GetOptions()->context_size(); in ModelSuggestSelection()
1065 /*num_tokens_left=*/context_size, in ModelSuggestSelection()
1066 /*num_tokens_right=*/context_size); in ModelSuggestSelection()
1171 const int context_size = in ClassifyTextUpperBoundNeededTokens() local
1172 selection_feature_processor_->GetOptions()->context_size(); in ClassifyTextUpperBoundNeededTokens()
1173 return {context_size, context_size}; in ClassifyTextUpperBoundNeededTokens()
1268 const int context_size = in ModelClassifyText() local
1269 classification_feature_processor_->GetOptions()->context_size(); in ModelClassifyText()
1271 /*num_tokens_left=*/context_size, in ModelClassifyText()
[all …]
Dcached-features_test.cc68 options.context_size = 2; in TEST()
Dmodel.fbs518 context_size:int = -1;
/external/epid-sdk/epid/common-testhelper/
Dmember_wrapper-testhelper.cc253 size_t context_size = 0; in CreateMember() local
257 sts = EpidMemberGetSize(params, &context_size); in CreateMember()
265 member_ctx = (MemberCtx*)new (std::nothrow) uint8_t[context_size](); in CreateMember()
269 err << "Failed to allocate " << context_size in CreateMember()
/external/epid-sdk/epid/member/unittests/
Djoin_request-test.cc188 size_t context_size = 0; in TEST_F() local
189 sts = EpidMemberGetSize(&params, &context_size); in TEST_F()
194 member.reset(new uint8_t[context_size]()); in TEST_F()
/external/epid-sdk/epid/member/tiny/unittests/
Djoin_request-test.cc200 size_t context_size = 0; in TEST_F() local
201 sts = EpidMemberGetSize(&params, &context_size); in TEST_F()
206 member.reset(new uint8_t[context_size]()); in TEST_F()
/external/epid-sdk/epid/member/
Dapi.h79 size_t* context_size);
/external/wpa_supplicant_8/src/crypto/
Dcrypto_nettle.c60 ctx = os_malloc(alg->context_size); in nettle_digest_vector()
67 bin_clear_free(ctx, alg->context_size); in nettle_digest_vector()
/external/google-breakpad/src/processor/
Dminidump.cc80 static bool IsContextSizeUnique(uint32_t context_size) { in IsContextSizeUnique() argument
82 if (context_size == sizeof(MDRawContextX86)) in IsContextSizeUnique()
84 if (context_size == sizeof(MDRawContextPPC)) in IsContextSizeUnique()
86 if (context_size == sizeof(MDRawContextPPC64)) in IsContextSizeUnique()
88 if (context_size == sizeof(MDRawContextAMD64)) in IsContextSizeUnique()
90 if (context_size == sizeof(MDRawContextSPARC)) in IsContextSizeUnique()
92 if (context_size == sizeof(MDRawContextARM)) in IsContextSizeUnique()
94 if (context_size == sizeof(MDRawContextARM64)) in IsContextSizeUnique()
96 if (context_size == sizeof(MDRawContextMIPS)) in IsContextSizeUnique()
/external/libtextclassifier/annotator/number/
Dnumber_test.cc57 options.context_size = 1; in BuildFeatureProcessor()
/external/libtextclassifier/annotator/duration/
Dduration_test.cc77 options.context_size = 1; in BuildFeatureProcessor()
/external/libvpx/libvpx/vp9/encoder/
Dvp9_encodeframe.c3136 BLOCK_SIZE context_size; in ml_pruning_partition() local
3162 context_size = xd->above_mi->sb_type; in ml_pruning_partition()
3163 if (context_size < bsize) in ml_pruning_partition()
3165 else if (context_size == bsize) in ml_pruning_partition()
3170 context_size = xd->left_mi->sb_type; in ml_pruning_partition()
3171 if (context_size < bsize) in ml_pruning_partition()
3173 else if (context_size == bsize) in ml_pruning_partition()
3178 context_size = prev_mi[0]->sb_type; in ml_pruning_partition()
3179 if (context_size < bsize) in ml_pruning_partition()
3181 else if (context_size == bsize) in ml_pruning_partition()