Home
last modified time | relevance | path

Searched refs:context (Results 1 – 25 of 6403) sorted by relevance

12345678910>>...257

/external/pdfium/core/fxcodec/gif/
Dcfx_gifcontext_unittest.cpp23 CFX_GifContextForTest context(nullptr, nullptr); in TEST() local
25 context.SetInputBuffer(nullptr, 0); in TEST()
26 EXPECT_EQ(nullptr, context.next_in_); in TEST()
27 EXPECT_EQ(0u, context.avail_in_); in TEST()
28 EXPECT_EQ(0u, context.skip_size_); in TEST()
30 context.SetInputBuffer(nullptr, 100); in TEST()
31 EXPECT_EQ(nullptr, context.next_in_); in TEST()
32 EXPECT_EQ(100u, context.avail_in_); in TEST()
33 EXPECT_EQ(0u, context.skip_size_); in TEST()
36 context.SetInputBuffer(buffer, 0); in TEST()
[all …]
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_plugin_unittest.cc65 GeneratorContext* context, in Generate() argument
67 TryInsert("test.pb.h", "includes", context); in Generate()
68 TryInsert("test.pb.h", "namespace_scope", context); in Generate()
69 TryInsert("test.pb.h", "global_scope", context); in Generate()
70 TryInsert("test.pb.h", "class_scope:foo.Bar", context); in Generate()
71 TryInsert("test.pb.h", "class_scope:foo.Bar.Baz", context); in Generate()
73 TryInsert("test.pb.cc", "includes", context); in Generate()
74 TryInsert("test.pb.cc", "namespace_scope", context); in Generate()
75 TryInsert("test.pb.cc", "global_scope", context); in Generate()
78 TryInsert("test.pb.h", "field_get:foo.Bar.optInt", context); in Generate()
[all …]
/external/mesa3d/src/gallium/state_trackers/va/
Dpicture.c43 vlVaContext *context; in vlVaBeginPicture() local
54 context = handle_table_get(drv->htab, context_id); in vlVaBeginPicture()
55 if (!context) { in vlVaBeginPicture()
60 if (u_reduce_video_profile(context->templat.profile) == PIPE_VIDEO_FORMAT_MPEG12) { in vlVaBeginPicture()
61 context->desc.mpeg12.intra_matrix = NULL; in vlVaBeginPicture()
62 context->desc.mpeg12.non_intra_matrix = NULL; in vlVaBeginPicture()
70 context->target_id = render_target; in vlVaBeginPicture()
72 context->target = surf->buffer; in vlVaBeginPicture()
73 context->mjpeg.sampling_factor = 0; in vlVaBeginPicture()
75 if (!context->decoder) { in vlVaBeginPicture()
[all …]
/external/icu/icu4c/source/i18n/
DdecContext.cpp47 U_CAPI decContext * U_EXPORT2 uprv_decContextClearStatus(decContext *context, uInt mask) { in uprv_decContextClearStatus() argument
48 context->status&=~mask; in uprv_decContextClearStatus()
49 return context; in uprv_decContextClearStatus()
65 U_CAPI decContext * U_EXPORT2 uprv_decContextDefault(decContext *context, Int kind) { in uprv_decContextDefault() argument
67 context->digits=9; /* 9 digits */ in uprv_decContextDefault()
68 context->emax=DEC_MAX_EMAX; /* 9-digit exponents */ in uprv_decContextDefault()
69 context->emin=DEC_MIN_EMIN; /* .. balanced */ in uprv_decContextDefault()
70 context->round=DEC_ROUND_HALF_UP; /* 0.5 rises */ in uprv_decContextDefault()
71 context->traps=DEC_Errors; /* all but informational */ in uprv_decContextDefault()
72 context->status=0; /* cleared */ in uprv_decContextDefault()
[all …]
/external/skia/src/sksl/ir/
DSkSLType.cpp50 const Type& Type::toCompound(const Context& context, int columns, int rows) const { in toCompound() argument
55 if (*this == *context.fFloat_Type || *this == *context.fFloatLiteral_Type) { in toCompound()
59 case 2: return *context.fFloat2_Type; in toCompound()
60 case 3: return *context.fFloat3_Type; in toCompound()
61 case 4: return *context.fFloat4_Type; in toCompound()
66 case 2: return *context.fFloat2x2_Type; in toCompound()
67 case 3: return *context.fFloat3x2_Type; in toCompound()
68 case 4: return *context.fFloat4x2_Type; in toCompound()
73 case 2: return *context.fFloat2x3_Type; in toCompound()
74 case 3: return *context.fFloat3x3_Type; in toCompound()
[all …]
/external/skqp/src/sksl/ir/
DSkSLType.cpp49 const Type& Type::toCompound(const Context& context, int columns, int rows) const { in toCompound() argument
54 if (*this == *context.fFloat_Type) { in toCompound()
58 case 2: return *context.fFloat2_Type; in toCompound()
59 case 3: return *context.fFloat3_Type; in toCompound()
60 case 4: return *context.fFloat4_Type; in toCompound()
65 case 2: return *context.fFloat2x2_Type; in toCompound()
66 case 3: return *context.fFloat3x2_Type; in toCompound()
67 case 4: return *context.fFloat4x2_Type; in toCompound()
72 case 2: return *context.fFloat2x3_Type; in toCompound()
73 case 3: return *context.fFloat3x3_Type; in toCompound()
[all …]
/external/tensorflow/tensorflow/python/framework/
Dconfig.py21 from tensorflow.python.eager import context
35 return context.context().gpu_per_process_memory_fraction
48 context.context().gpu_per_process_memory_fraction = fraction
58 return context.context().gpu_per_process_memory_growth
68 context.context().gpu_per_process_memory_growth = enabled
82 return context.context().intra_op_parallelism_threads
96 context.context().intra_op_parallelism_threads = num_threads
109 return context.context().inter_op_parallelism_threads
122 context.context().inter_op_parallelism_threads = num_threads
137 return context.context().soft_device_placement
[all …]
/external/libchrome/mojo/public/cpp/bindings/tests/
Dvalidation_context_unittest.cc31 internal::ValidationContext context( in TEST() local
34 EXPECT_FALSE(context.IsValidRange( in TEST()
36 EXPECT_FALSE(context.ClaimMemory( in TEST()
47 internal::ValidationContext context(ToPtr(0), 0, num_handles, 0); in TEST() local
49 EXPECT_FALSE(context.ClaimHandle(Handle_Data(0))); in TEST()
50 EXPECT_FALSE(context.ClaimHandle( in TEST()
53 EXPECT_TRUE(context.ClaimHandle( in TEST()
60 internal::ValidationContext context(ToPtr(0), 0, 0, in TEST() local
63 EXPECT_FALSE(context.ClaimAssociatedEndpointHandle( in TEST()
66 context.ClaimAssociatedEndpointHandle(AssociatedEndpointHandle_Data( in TEST()
[all …]
/external/swiftshader/src/OpenGL/compiler/
Dglslang.l76 static int ES2_reserved_ES3_keyword(TParseContext *context, int token);
77 static int ES2_keyword_ES3_reserved(TParseContext *context, int token);
78 static int ES2_identifier_ES3_keyword(TParseContext *context, int token);
79 static int uint_constant(TParseContext *context);
82 static int floatsuffix_check(TParseContext* context);
99 TParseContext* context = yyextra; variable
108 "attribute" { return ES2_keyword_ES3_reserved(context, ATTRIBUTE); }
111 "varying" { return ES2_keyword_ES3_reserved(context, VARYING); }
121 "switch" { return ES2_reserved_ES3_keyword(context, SWITCH); }
122 "case" { return ES2_reserved_ES3_keyword(context, CASE); }
[all …]
Dglslang.y61 %parse-param {TParseContext* context}
105 extern void yyerror(YYLTYPE* lloc, TParseContext* context, void* scanner, const char* reason);
124 if (context->getShaderType() != GL_FRAGMENT_SHADER && \
125 context->getShaderType() != GL_VERTEX_SHADER) { \
126 context->error(L, " supported in vertex/fragment shaders only ", S); \
127 context->recover(); \
132 if (context->getShaderType() != GL_VERTEX_SHADER) { \
133 context->error(L, " supported in vertex shaders only ", S); \
134 context->recover(); \
139 if (context->getShaderType() != GL_FRAGMENT_SHADER) { \
[all …]
/external/tensorflow/tensorflow/lite/kernels/
Dlstm.cc107 void* Init(TfLiteContext* context, const char* buffer, size_t length) { in Init() argument
110 context->AddTensors(context, /*tensors_to_add=*/7, in Init()
116 TfLiteStatus CheckInputTensorDimensions(TfLiteContext* context, in CheckInputTensorDimensions() argument
125 TF_LITE_ENSURE(context, params->cell_clip >= 0); in CheckInputTensorDimensions()
126 TF_LITE_ENSURE(context, params->proj_clip >= 0); in CheckInputTensorDimensions()
129 GetOptionalInputTensor(context, node, kInputToInputWeightsTensor); in CheckInputTensorDimensions()
132 TF_LITE_ENSURE_EQ(context, input_to_input_weights->dims->size, 2); in CheckInputTensorDimensions()
133 TF_LITE_ENSURE_EQ(context, input_to_input_weights->dims->data[0], n_cell); in CheckInputTensorDimensions()
134 TF_LITE_ENSURE_EQ(context, input_to_input_weights->dims->data[1], n_input); in CheckInputTensorDimensions()
138 GetInput(context, node, kInputToForgetWeightsTensor); in CheckInputTensorDimensions()
[all …]
Dbidirectional_sequence_lstm.cc146 void* Init(TfLiteContext* context, const char* buffer, size_t length) { in Init() argument
148 context->AddTensors(context, kNumTemporaryTensors, scratch_tensor_index); in Init()
152 void Free(TfLiteContext* context, void* buffer) { in Free() argument
158 TfLiteContext* context, TfLiteNode* node, int n_input, int n_output, in CheckLstmTensorDimensionsAndTypes() argument
175 TF_LITE_ENSURE(context, params->cell_clip >= 0); in CheckLstmTensorDimensionsAndTypes()
176 TF_LITE_ENSURE(context, params->proj_clip >= 0); in CheckLstmTensorDimensionsAndTypes()
179 GetInput(context, node, input_to_forget_weights_tensor); in CheckLstmTensorDimensionsAndTypes()
180 TF_LITE_ENSURE_EQ(context, input_to_forget_weights->dims->size, 2); in CheckLstmTensorDimensionsAndTypes()
181 TF_LITE_ENSURE_EQ(context, input_to_forget_weights->dims->data[0], n_cell); in CheckLstmTensorDimensionsAndTypes()
182 TF_LITE_ENSURE_EQ(context, input_to_forget_weights->dims->data[1], n_input); in CheckLstmTensorDimensionsAndTypes()
[all …]
Dunidirectional_sequence_lstm.cc89 void* Init(TfLiteContext* context, const char* buffer, size_t length) { in Init() argument
91 context->AddTensors(context, kNumTemporaryTensors, scratch_tensor_index); in Init()
95 void Free(TfLiteContext* context, void* buffer) { in Free() argument
100 TfLiteStatus CheckInputTensorDimensions(TfLiteContext* context, in CheckInputTensorDimensions() argument
108 TF_LITE_ENSURE(context, params->cell_clip >= 0); in CheckInputTensorDimensions()
109 TF_LITE_ENSURE(context, params->proj_clip >= 0); in CheckInputTensorDimensions()
112 GetOptionalInputTensor(context, node, kInputToInputWeightsTensor); in CheckInputTensorDimensions()
114 TF_LITE_ENSURE_EQ(context, input_to_input_weights->dims->size, 2); in CheckInputTensorDimensions()
115 TF_LITE_ENSURE_EQ(context, input_to_input_weights->dims->data[0], n_cell); in CheckInputTensorDimensions()
116 TF_LITE_ENSURE_EQ(context, input_to_input_weights->dims->data[1], n_input); in CheckInputTensorDimensions()
[all …]
/external/tensorflow/tensorflow/core/lib/png/
Dpng_io.cc128 void CommonFreeDecode(DecodeContext* context) { in CommonFreeDecode() argument
129 if (context->png_ptr) { in CommonFreeDecode()
130 png_destroy_read_struct(&context->png_ptr, in CommonFreeDecode()
131 context->info_ptr ? &context->info_ptr : nullptr, in CommonFreeDecode()
133 context->png_ptr = nullptr; in CommonFreeDecode()
134 context->info_ptr = nullptr; in CommonFreeDecode()
141 DecodeContext context; in DecodeHeader() local
150 &context)) { in DecodeHeader()
154 *width = static_cast<int>(context.width); in DecodeHeader()
156 *height = static_cast<int>(context.height); in DecodeHeader()
[all …]
/external/skqp/src/compute/skc/
Dcontext.c31 skc_context_create_cl(skc_context_t * context, in skc_context_create_cl() argument
35 (*context) = malloc(sizeof(**context)); in skc_context_create_cl()
43 err = skc_runtime_cl_12_create(*context,context_cl,device_id_cl); in skc_context_create_cl()
49 skc_context_retain(skc_context_t context) in skc_context_retain() argument
56 skc_context_release(skc_context_t context) in skc_context_release() argument
58 skc_err err = skc_runtime_cl_12_dispose(context); in skc_context_release()
60 free(context); in skc_context_release()
67 skc_context_reset(skc_context_t context) in skc_context_reset() argument
77 skc_context_yield(skc_context_t context) in skc_context_yield() argument
79 return context->yield(context->runtime); in skc_context_yield()
[all …]
/external/skia/src/compute/skc/
Dcontext.c31 skc_context_create_cl(skc_context_t * context, in skc_context_create_cl() argument
35 (*context) = malloc(sizeof(**context)); in skc_context_create_cl()
43 err = skc_runtime_cl_12_create(*context,context_cl,device_id_cl); in skc_context_create_cl()
49 skc_context_retain(skc_context_t context) in skc_context_retain() argument
56 skc_context_release(skc_context_t context) in skc_context_release() argument
58 skc_err err = skc_runtime_cl_12_dispose(context); in skc_context_release()
60 free(context); in skc_context_release()
67 skc_context_reset(skc_context_t context) in skc_context_reset() argument
77 skc_context_yield(skc_context_t context) in skc_context_yield() argument
79 return context->yield(context->runtime); in skc_context_yield()
[all …]
/external/deqp/modules/gles2/functional/
Des2fFboRenderTest.cpp99 …rr::FragmentPacket* packets, const int numPackets, const rr::FragmentShadingContext& context) const in shadeFragments()
107 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, color); in shadeFragments()
157 …rr::FragmentPacket* packets, const int numPackets, const rr::FragmentShadingContext& context) const in shadeFragments()
162 const tcu::Vec4 v_coord = rr::readVarying<float>(packets[packetNdx], context, 0, fragNdx); in shadeFragments()
165 …rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, this->m_uniforms[0].sampler.tex2D->sample(… in shadeFragments()
220 …rr::FragmentPacket* packets, const int numPackets, const rr::FragmentShadingContext& context) const in shadeFragments()
225 const tcu::Vec4 v_coord = rr::readVarying<float>(packets[packetNdx], context, 0, fragNdx); in shadeFragments()
228 …rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, this->m_uniforms[0].sampler.tex2D->sampl… in shadeFragments()
356 …Framebuffer (sglr::Context& context, const FboConfig& config, int width, int height, deUint32 fb…
379 static bool isExtensionSupported (sglr::Context& context, const char* name) in isExtensionSupported() argument
[all …]
/external/tensorflow/tensorflow/contrib/boosted_trees/kernels/
Dstats_accumulator_ops.cc134 OpKernelContext* context) { in SerializeScalarAccumulatorToOutput() argument
137 OP_REQUIRES_OK(context, context->allocate_output("output_partition_ids", in SerializeScalarAccumulatorToOutput()
144 OP_REQUIRES_OK(context, context->allocate_output("output_feature_ids", in SerializeScalarAccumulatorToOutput()
151 context, context->allocate_output( in SerializeScalarAccumulatorToOutput()
157 context, context->allocate_output("output_hessians", in SerializeScalarAccumulatorToOutput()
175 OpKernelContext* context) { in SerializeTensorAccumulatorToOutput() argument
178 OP_REQUIRES_OK(context, context->allocate_output("output_partition_ids", in SerializeTensorAccumulatorToOutput()
184 OP_REQUIRES_OK(context, context->allocate_output("output_feature_ids", in SerializeTensorAccumulatorToOutput()
193 OP_REQUIRES_OK(context, in SerializeTensorAccumulatorToOutput()
194 context->allocate_output("output_gradients", gradient_shape, in SerializeTensorAccumulatorToOutput()
[all …]
/external/deqp-deps/SPIRV-Tools/test/opt/dominator_tree/
Dcommon_dominators.cpp65 BasicBlock* GetBlock(uint32_t id, std::unique_ptr<IRContext>& context) { in GetBlock() argument
66 return context->get_instr_block(context->get_def_use_mgr()->GetDef(id)); in GetBlock()
70 std::unique_ptr<IRContext> context = in TEST() local
73 EXPECT_NE(nullptr, context); in TEST()
76 context->GetDominatorAnalysis(&*context->module()->begin()); in TEST()
78 for (auto& block : *context->module()->begin()) { in TEST()
84 std::unique_ptr<IRContext> context = in TEST() local
87 EXPECT_NE(nullptr, context); in TEST()
90 context->GetDominatorAnalysis(&*context->module()->begin()); in TEST()
93 GetBlock(1u, context), in TEST()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/test/opt/dominator_tree/
Dcommon_dominators.cpp65 BasicBlock* GetBlock(uint32_t id, std::unique_ptr<IRContext>& context) { in GetBlock() argument
66 return context->get_instr_block(context->get_def_use_mgr()->GetDef(id)); in GetBlock()
70 std::unique_ptr<IRContext> context = in TEST() local
73 EXPECT_NE(nullptr, context); in TEST()
76 context->GetDominatorAnalysis(&*context->module()->begin()); in TEST()
78 for (auto& block : *context->module()->begin()) { in TEST()
84 std::unique_ptr<IRContext> context = in TEST() local
87 EXPECT_NE(nullptr, context); in TEST()
90 context->GetDominatorAnalysis(&*context->module()->begin()); in TEST()
93 GetBlock(1u, context), in TEST()
[all …]
/external/brotli/c/tools/
Dbrotli.c662 static BROTLI_BOOL NextFile(Context* context) { in NextFile() argument
667 context->iterator++; in NextFile()
669 context->input_file_length = -1; in NextFile()
672 if (context->input_count == 0) { in NextFile()
673 if (context->iterator > 1) return BROTLI_FALSE; in NextFile()
674 context->current_input_path = NULL; in NextFile()
676 context->current_output_path = context->output_path; in NextFile()
681 while (context->iterator == context->not_input_indices[context->ignore]) { in NextFile()
682 context->iterator++; in NextFile()
683 context->ignore++; in NextFile()
[all …]
/external/tensorflow/tensorflow/core/kernels/
Dfake_quant_ops.cc59 explicit FakeQuantWithMinMaxArgsOp(OpKernelConstruction* context) in FakeQuantWithMinMaxArgsOp() argument
60 : Base::UnaryElementWiseOp(context) { in FakeQuantWithMinMaxArgsOp()
61 OP_REQUIRES_OK(context, context->GetAttr("min", &min_)); in FakeQuantWithMinMaxArgsOp()
62 OP_REQUIRES_OK(context, context->GetAttr("max", &max_)); in FakeQuantWithMinMaxArgsOp()
63 OP_REQUIRES(context, min_ < max_, in FakeQuantWithMinMaxArgsOp()
67 OP_REQUIRES_OK(context, context->GetAttr("num_bits", &num_bits)); in FakeQuantWithMinMaxArgsOp()
69 context, IsNumBitsValid(num_bits), in FakeQuantWithMinMaxArgsOp()
72 OP_REQUIRES_OK(context, context->GetAttr("narrow_range", &narrow_range)); in FakeQuantWithMinMaxArgsOp()
77 void Operate(OpKernelContext* context, const Tensor& input, Tensor* output) { in Operate() argument
79 functor(context->eigen_device<Device>(), input.flat<float>(), min_, max_, in Operate()
[all …]
Dmaxpooling_op.cc59 OpKernelContext* context, Tensor* output, Tensor* output_arg_max, in SpatialMaxPoolWithArgMaxHelper() argument
64 context, include_batch_in_index, in SpatialMaxPoolWithArgMaxHelper()
88 *(context->device()->tensorflow_cpu_worker_threads()); in SpatialMaxPoolWithArgMaxHelper()
214 explicit MaxPoolingGradOp(OpKernelConstruction* context) : OpKernel(context) { in MaxPoolingGradOp() argument
216 OP_REQUIRES_OK(context, context->GetAttr("data_format", &data_format)); in MaxPoolingGradOp()
217 OP_REQUIRES(context, FormatFromString(data_format, &data_format_), in MaxPoolingGradOp()
220 context, data_format_ == FORMAT_NHWC, in MaxPoolingGradOp()
223 DeviceTypeString(context->device_type()))); in MaxPoolingGradOp()
225 if (context->num_inputs() == 3) { in MaxPoolingGradOp()
226 OP_REQUIRES_OK(context, context->GetAttr("ksize", &ksize_)); in MaxPoolingGradOp()
[all …]
/external/swiftshader/src/OpenGL/libGLES_CM/
DlibGLES_CM.cpp55 es1::Context *context = es1::getContext(); in ActiveTexture() local
57 if(context) in ActiveTexture()
64 context->setActiveSampler(texture - GL_TEXTURE0); in ActiveTexture()
87 es1::Context *context = es1::getContext(); in AlphaFunc() local
89 if(context) in AlphaFunc()
91 context->setAlphaFunc(func, clamp01(ref)); in AlphaFunc()
104 es1::Context *context = es1::getContext(); in BindBuffer() local
106 if(context) in BindBuffer()
111 context->bindArrayBuffer(buffer); in BindBuffer()
114 context->bindElementArrayBuffer(buffer); in BindBuffer()
[all …]
/external/deqp/modules/gles3/functional/
Des3fFboRenderTest.cpp140 …Framebuffer (sglr::Context& context, const FboConfig& config, int width, int height, deUint32 f…
193 static bool isExtensionSupported (sglr::Context& context, const char* name) in isExtensionSupported() argument
195 std::istringstream extensions(context.getString(GL_EXTENSIONS)); in isExtensionSupported()
207 static bool isAnyExtensionSupported (sglr::Context& context, const std::vector<std::string>& requir… in isAnyExtensionSupported() argument
216 if (isExtensionSupported(context, extension.c_str())) in isAnyExtensionSupported()
238 static void checkColorFormatSupport (sglr::Context& context, deUint32 sizedFormat) in checkColorFormatSupport() argument
242 if (!isAnyExtensionSupported(context, requiredExts)) in checkColorFormatSupport()
251 Framebuffer::Framebuffer (sglr::Context& context, const FboConfig& config, int width, int height, d… in Framebuffer() argument
253 , m_context (context) in Framebuffer()
259 checkColorFormatSupport(context, config.colorFormat); in Framebuffer()
[all …]

12345678910>>...257