Home
last modified time | relevance | path

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

12345678910>>...165

/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/libvncserver/common/
Dsha1.c87 int SHA1Reset(SHA1Context *context) in SHA1Reset() argument
89 if (!context) in SHA1Reset()
94 context->Length_Low = 0; in SHA1Reset()
95 context->Length_High = 0; in SHA1Reset()
96 context->Message_Block_Index = 0; in SHA1Reset()
98 context->Intermediate_Hash[0] = 0x67452301; in SHA1Reset()
99 context->Intermediate_Hash[1] = 0xEFCDAB89; in SHA1Reset()
100 context->Intermediate_Hash[2] = 0x98BADCFE; in SHA1Reset()
101 context->Intermediate_Hash[3] = 0x10325476; in SHA1Reset()
102 context->Intermediate_Hash[4] = 0xC3D2E1F0; in SHA1Reset()
[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()
65 context->target_id = render_target; in vlVaBeginPicture()
67 context->target = surf->buffer; in vlVaBeginPicture()
69 if (!context->decoder) { in vlVaBeginPicture()
72 if (context->templat.profile == PIPE_VIDEO_PROFILE_UNKNOWN && in vlVaBeginPicture()
73 context->target->buffer_format != PIPE_FORMAT_B8G8R8A8_UNORM && in vlVaBeginPicture()
74 context->target->buffer_format != PIPE_FORMAT_R8G8B8A8_UNORM && in vlVaBeginPicture()
75 context->target->buffer_format != PIPE_FORMAT_B8G8R8X8_UNORM && in vlVaBeginPicture()
[all …]
Dpicture_hevc.c30 void vlVaHandlePictureParameterBufferHEVC(vlVaDriver *drv, vlVaContext *context, vlVaBuffer *buf) in vlVaHandlePictureParameterBufferHEVC() argument
36 context->desc.h265.pps->sps->chroma_format_idc = hevc->pic_fields.bits.chroma_format_idc; in vlVaHandlePictureParameterBufferHEVC()
37 context->desc.h265.pps->sps->separate_colour_plane_flag = in vlVaHandlePictureParameterBufferHEVC()
39 context->desc.h265.pps->sps->pic_width_in_luma_samples = hevc->pic_width_in_luma_samples; in vlVaHandlePictureParameterBufferHEVC()
40 context->desc.h265.pps->sps->pic_height_in_luma_samples = hevc->pic_height_in_luma_samples; in vlVaHandlePictureParameterBufferHEVC()
41 context->desc.h265.pps->sps->bit_depth_luma_minus8 = hevc->bit_depth_luma_minus8; in vlVaHandlePictureParameterBufferHEVC()
42 context->desc.h265.pps->sps->bit_depth_chroma_minus8 = hevc->bit_depth_chroma_minus8; in vlVaHandlePictureParameterBufferHEVC()
43 context->desc.h265.pps->sps->log2_max_pic_order_cnt_lsb_minus4 = in vlVaHandlePictureParameterBufferHEVC()
45 context->desc.h265.pps->sps->sps_max_dec_pic_buffering_minus1 = in vlVaHandlePictureParameterBufferHEVC()
47 context->desc.h265.pps->sps->log2_min_luma_coding_block_size_minus3 = in vlVaHandlePictureParameterBufferHEVC()
[all …]
Dpicture_mpeg4.c30 void vlVaHandlePictureParameterBufferMPEG4(vlVaDriver *drv, vlVaContext *context, vlVaBuffer *buf) in vlVaHandlePictureParameterBufferMPEG4() argument
40 context->mpeg4.pps = *mpeg4; in vlVaHandlePictureParameterBufferMPEG4()
46 context->desc.mpeg4.short_video_header = in vlVaHandlePictureParameterBufferMPEG4()
49 context->desc.mpeg4.interlaced = mpeg4->vol_fields.bits.interlaced; in vlVaHandlePictureParameterBufferMPEG4()
53 context->desc.mpeg4.quant_type = mpeg4->vol_fields.bits.quant_type; in vlVaHandlePictureParameterBufferMPEG4()
54 context->desc.mpeg4.quarter_sample = mpeg4->vol_fields.bits.quarter_sample; in vlVaHandlePictureParameterBufferMPEG4()
57 context->desc.mpeg4.resync_marker_disable = in vlVaHandlePictureParameterBufferMPEG4()
63 context->desc.mpeg4.vop_coding_type = mpeg4->vop_fields.bits.vop_coding_type; in vlVaHandlePictureParameterBufferMPEG4()
67 context->desc.mpeg4.top_field_first = in vlVaHandlePictureParameterBufferMPEG4()
69 context->desc.mpeg4.alternate_vertical_scan_flag = in vlVaHandlePictureParameterBufferMPEG4()
[all …]
/external/icu/icu4c/source/i18n/
DdecContext.c47 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/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/libmojo/mojo/public/cpp/bindings/tests/
Dvalidation_context_unittest.cc29 internal::ValidationContext context( in TEST() local
32 EXPECT_FALSE(context.IsValidRange( in TEST()
34 EXPECT_FALSE(context.ClaimMemory( in TEST()
42 internal::ValidationContext context(ToPtr(0), 0, num_handles); in TEST() local
44 EXPECT_FALSE(context.ClaimHandle(Handle_Data(0))); in TEST()
45 EXPECT_FALSE(context.ClaimHandle( in TEST()
48 EXPECT_TRUE(context.ClaimHandle( in TEST()
56 internal::ValidationContext context(ToPtr(1234), 100, 0); in TEST() local
59 EXPECT_FALSE(context.IsValidRange(ToPtr(100), 5)); in TEST()
60 EXPECT_FALSE(context.IsValidRange(ToPtr(1230), 50)); in TEST()
[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/swiftshader/src/OpenGL/libGLES_CM/
DlibGLES_CM.cpp89 es1::Context *context = es1::getContext(); in ActiveTexture() local
91 if(context) in ActiveTexture()
98 context->setActiveSampler(texture - GL_TEXTURE0); in ActiveTexture()
121 es1::Context *context = es1::getContext(); in AlphaFunc() local
123 if(context) in AlphaFunc()
125 context->setAlphaFunc(func, clamp01(ref)); in AlphaFunc()
138 es1::Context *context = es1::getContext(); in BindBuffer() local
140 if(context) in BindBuffer()
145 context->bindArrayBuffer(buffer); in BindBuffer()
148 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…
191 static bool isExtensionSupported (sglr::Context& context, const char* name) in isExtensionSupported() argument
193 std::istringstream extensions(context.getString(GL_EXTENSIONS)); in isExtensionSupported()
205 static bool isAnyExtensionSupported (sglr::Context& context, const std::vector<std::string>& requir… in isAnyExtensionSupported() argument
214 if (isExtensionSupported(context, extension.c_str())) in isAnyExtensionSupported()
236 static void checkColorFormatSupport (sglr::Context& context, deUint32 sizedFormat) in checkColorFormatSupport() argument
240 if (!isAnyExtensionSupported(context, requiredExts)) in checkColorFormatSupport()
249 Framebuffer::Framebuffer (sglr::Context& context, const FboConfig& config, int width, int height, d… in Framebuffer() argument
251 , m_context (context) in Framebuffer()
257 checkColorFormatSupport(context, config.colorFormat); in Framebuffer()
[all …]
Des3fAttribLocationTests.cpp40 TestCaseGroup* createAttributeLocationTests (Context& context) in createAttributeLocationTests() argument
88 …TestCaseGroup* const root = new TestCaseGroup (context, "attribute_location", "Attribute location … in createAttributeLocationTests()
92 …TestCaseGroup* const bindAttributeGroup = new TestCaseGroup(context, "bind", "Basic bind attribute… in createAttributeLocationTests()
99 …bindAttributeGroup->addChild(new gls::BindAttributeTest(context.getTestContext(), context.getRende… in createAttributeLocationTests()
105 …TestCaseGroup* const bindMaxAttributeGroup = new TestCaseGroup(context, "bind_max_attributes", "Us… in createAttributeLocationTests()
112 …bindMaxAttributeGroup->addChild(new gls::BindMaxAttributesTest(context.getTestContext(), context.g… in createAttributeLocationTests()
118 …TestCaseGroup* const aliasingGroup = new TestCaseGroup(context, "bind_aliasing", "Test binding ali… in createAttributeLocationTests()
127 …aliasingGroup->addChild(new gls::BindAliasingAttributeTest(context.getTestContext(), context.getRe… in createAttributeLocationTests()
131 …aliasingGroup->addChild(new gls::BindAliasingAttributeTest(context.getTestContext(), context.getRe… in createAttributeLocationTests()
134 …aliasingGroup->addChild(new gls::BindMaxAliasingAttributeTest(context.getTestContext(), context.ge… in createAttributeLocationTests()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/api/
DvktApiNullHandleTests.cpp42 inline void release (Context& context, VkBuffer buffer, const VkAllocationCallbacks* pAllocator) in release() argument
44 context.getDeviceInterface().destroyBuffer(context.getDevice(), buffer, pAllocator); in release()
47 inline void release (Context& context, VkBufferView bufferView, const VkAllocationCallbacks* pAlloc… in release() argument
49 context.getDeviceInterface().destroyBufferView(context.getDevice(), bufferView, pAllocator); in release()
52 inline void release (Context& context, VkCommandPool commandPool, const VkAllocationCallbacks* pAll… in release() argument
54 context.getDeviceInterface().destroyCommandPool(context.getDevice(), commandPool, pAllocator); in release()
57 inline void release (Context& context, VkDescriptorPool descriptorPool, const VkAllocationCallbacks… in release() argument
59context.getDeviceInterface().destroyDescriptorPool(context.getDevice(), descriptorPool, pAllocator… in release()
62 inline void release (Context& context, VkDescriptorSetLayout descriptorSetLayout, const VkAllocatio… in release() argument
64context.getDeviceInterface().destroyDescriptorSetLayout(context.getDevice(), descriptorSetLayout, … in release()
[all …]
/external/apache-xml/src/main/java/org/apache/xml/dtm/ref/
DDTMDefaultBaseTraversers.java211 public int next(int context, int current) in next() argument
226 public int next(int context, int current, int expandedTypeID) in next() argument
256 public int first(int context) in first() argument
258 return context; in first()
273 public int first(int context, int expandedTypeID) in first() argument
275 return (getExpandedTypeID(context) == expandedTypeID) in first()
276 ? context : next(context, context, expandedTypeID); in first()
294 public int next(int context, int current) in next() argument
296 return (context == current) in next()
297 ? getFirstAttribute(context) : getNextAttribute(current); in next()
[all …]
/external/skia/src/sksl/ir/
DSkSLType.cpp40 const Type& Type::toCompound(const Context& context, int columns, int rows) const { in toCompound() argument
45 if (*this == *context.fFloat_Type) { in toCompound()
49 case 2: return *context.fVec2_Type; in toCompound()
50 case 3: return *context.fVec3_Type; in toCompound()
51 case 4: return *context.fVec4_Type; in toCompound()
56 case 2: return *context.fMat2x2_Type; in toCompound()
57 case 3: return *context.fMat3x2_Type; in toCompound()
58 case 4: return *context.fMat4x2_Type; in toCompound()
63 case 2: return *context.fMat2x3_Type; in toCompound()
64 case 3: return *context.fMat3x3_Type; in toCompound()
[all …]
/external/mesa3d/src/gallium/state_trackers/nine/
Dnine_state.c284 return device->context.pipe; in nine_context_get_pipe()
293 return device->context.pipe; in nine_context_get_pipe_multithread()
298 return device->context.pipe; in nine_context_get_pipe_multithread()
305 return device->context.pipe; in nine_context_get_pipe_acquire()
321 DWORD *rs = device->context.rs; in check_multisample()
323 device->context.rt[0]->desc.MultiSampleType >= 1 && in check_multisample()
337 nine_convert_blend_state(&device->context.pipe_data.blend, device->context.rs); in prepare_blend()
338 device->context.commit |= NINE_STATE_COMMIT_BLEND; in prepare_blend()
344 nine_convert_dsa_state(&device->context.pipe_data.dsa, device->context.rs); in prepare_dsa()
345 device->context.commit |= NINE_STATE_COMMIT_DSA; in prepare_dsa()
[all …]
/external/ImageMagick/www/source/
Dpiechart.mvg1 push graphic-context
4 push graphic-context
5 push graphic-context
10 pop graphic-context
11 push graphic-context
16 pop graphic-context
17 push graphic-context
22 pop graphic-context
23 push graphic-context
28 pop graphic-context
[all …]
/external/ipsec-tools/src/racoon/missing/crypto/sha2/
Dsha2.c334 void SHA256_Init(SHA256_CTX* context) { in SHA256_Init() argument
335 if (context == (SHA256_CTX*)0) { in SHA256_Init()
338 bcopy(sha256_initial_hash_value, context->state, SHA256_DIGEST_LENGTH); in SHA256_Init()
339 bzero(context->buffer, SHA256_BLOCK_LENGTH); in SHA256_Init()
340 context->bitcount = 0; in SHA256_Init()
380 void SHA256_Transform(SHA256_CTX* context, const sha2_word32* data) { in SHA256_Transform() argument
385 W256 = (sha2_word32*)context->buffer; in SHA256_Transform()
388 a = context->state[0]; in SHA256_Transform()
389 b = context->state[1]; in SHA256_Transform()
390 c = context->state[2]; in SHA256_Transform()
[all …]
/external/swiftshader/src/Renderer/
DPixelProcessor.cpp69 PixelProcessor::PixelProcessor(Context *context) : context(context) in PixelProcessor() argument
164 context->renderTarget[index] = renderTarget; in setRenderTarget()
169 context->depthBuffer = depthBuffer; in setDepthBuffer()
174 context->stencilBuffer = stencilBuffer; in setStencilBuffer()
181 context->textureStage[stage].setTexCoordIndex(texCoordIndex); in setTexCoordIndex()
190 context->textureStage[stage].setStageOperation(stageOperation); in setStageOperation()
199 context->textureStage[stage].setFirstArgument(firstArgument); in setFirstArgument()
208 context->textureStage[stage].setSecondArgument(secondArgument); in setSecondArgument()
217 context->textureStage[stage].setThirdArgument(thirdArgument); in setThirdArgument()
226 context->textureStage[stage].setStageOperationAlpha(stageOperationAlpha); in setStageOperationAlpha()
[all …]
/external/libtextclassifier/tests/
Dembedding-feature-extractor_test.cc46 TaskContext context; in TEST_F() local
47 context.SetParameter("test_features", ""); in TEST_F()
48 context.SetParameter("test_embedding_names", ""); in TEST_F()
49 context.SetParameter("test_embedding_dims", ""); in TEST_F()
51 ASSERT_TRUE(tefe.Init(&context)); in TEST_F()
56 TaskContext context; in TEST_F() local
60 context.SetParameter("test_features", spec); in TEST_F()
61 context.SetParameter("test_embedding_names", "trigram;quadgram"); in TEST_F()
62 context.SetParameter("test_embedding_dims", "16;24"); in TEST_F()
64 ASSERT_TRUE(tefe.Init(&context)); in TEST_F()
[all …]
/external/skia/tests/
DSkSLMemoryLayoutTest.cpp16 SkSL::Context context; in DEF_TEST() local
20 REPORTER_ASSERT(r, 4 == layout.size(*context.fFloat_Type)); in DEF_TEST()
21 REPORTER_ASSERT(r, 8 == layout.size(*context.fVec2_Type)); in DEF_TEST()
22 REPORTER_ASSERT(r, 12 == layout.size(*context.fVec3_Type)); in DEF_TEST()
23 REPORTER_ASSERT(r, 16 == layout.size(*context.fVec4_Type)); in DEF_TEST()
24 REPORTER_ASSERT(r, 4 == layout.size(*context.fInt_Type)); in DEF_TEST()
25 REPORTER_ASSERT(r, 8 == layout.size(*context.fIVec2_Type)); in DEF_TEST()
26 REPORTER_ASSERT(r, 12 == layout.size(*context.fIVec3_Type)); in DEF_TEST()
27 REPORTER_ASSERT(r, 16 == layout.size(*context.fIVec4_Type)); in DEF_TEST()
28 REPORTER_ASSERT(r, 1 == layout.size(*context.fBool_Type)); in DEF_TEST()
[all …]
/external/swiftshader/src/OpenGL/libGLESv2/
DlibGLESv2.cpp123 es2::Context *context = es2::getContext(); in ActiveTexture() local
125 if(context) in ActiveTexture()
132 context->setActiveSampler(texture - GL_TEXTURE0); in ActiveTexture()
140 es2::Context *context = es2::getContext(); in AttachShader() local
142 if(context) in AttachShader()
144 es2::Program *programObject = context->getProgram(program); in AttachShader()
145 es2::Shader *shaderObject = context->getShader(shader); in AttachShader()
149 if(context->getShader(program)) in AttachShader()
161 if(context->getProgram(shader)) in AttachShader()
196 es2::Context *context = es2::getContext(); in BeginQueryEXT() local
[all …]
/external/python/cpython2/Lib/
Ddecimal.py179 def handle(self, context, *args): argument
218 def handle(self, context, *args): argument
221 return ans._fix_nan(context)
231 def handle(self, context, *args): argument
247 def handle(self, context, sign, *args): argument
258 def handle(self, context, *args): argument
269 def handle(self, context, *args): argument
295 def handle(self, context, *args): argument
343 def handle(self, context, sign, *args): argument
344 if context.rounding in (ROUND_HALF_UP, ROUND_HALF_EVEN,
[all …]
/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyMessage.java66 public IRubyObject initialize(final ThreadContext context, IRubyObject[] args) { in initialize() argument
67 final Ruby runtime = context.runtime; in initialize()
85 final Descriptors.FieldDescriptor fieldDescriptor = findField(context, key); in initialize()
91 final RubyMap map = newMapForField(context, fieldDescriptor); in initialize()
92 map.mergeIntoSelf(context, value); in initialize()
97 … RubyRepeatedField repeatedField = rubyToRepeatedField(context, fieldDescriptor, value); in initialize()
121 public IRubyObject indexSet(ThreadContext context, IRubyObject fieldName, IRubyObject value) { in indexSet() argument
122 Descriptors.FieldDescriptor fieldDescriptor = findField(context, fieldName); in indexSet()
123 return setField(context, fieldDescriptor, value); in indexSet()
134 public IRubyObject index(ThreadContext context, IRubyObject fieldName) { in index() argument
[all …]

12345678910>>...165