/external/protobuf/src/google/protobuf/compiler/cpp/ |
D | cpp_plugin_unittest.cc | 65 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/ |
D | sha1.c | 87 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/icu/icu4c/source/i18n/ |
D | decContext.c | 47 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/ |
D | glslang.l | 76 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); 100 TParseContext* context = yyextra; variable 118 "attribute" { return ES2_keyword_ES3_reserved(context, ATTRIBUTE); } 121 "varying" { return ES2_keyword_ES3_reserved(context, VARYING); } 131 "switch" { return ES2_reserved_ES3_keyword(context, SWITCH); } 132 "case" { return ES2_reserved_ES3_keyword(context, CASE); } [all …]
|
D | glslang.y | 61 %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/ |
D | validation_context_unittest.cc | 29 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/ |
D | es2fFboRenderTest.cpp | 99 …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 …]
|
D | es2fAttribLocationTests.cpp | 47 TestCaseGroup* createAttributeLocationTests (Context& context) in createAttributeLocationTests() argument 61 …TestCaseGroup* const root = new TestCaseGroup (context, "attribute_location", "Attribute location … in createAttributeLocationTests() 65 …TestCaseGroup* const bindAttributeGroup = new TestCaseGroup(context, "bind", "Basic attribute bind… in createAttributeLocationTests() 72 …bindAttributeGroup->addChild(new gls::BindAttributeTest(context.getTestContext(), context.getRende… in createAttributeLocationTests() 78 …TestCaseGroup* const bindMaxAttributeGroup = new TestCaseGroup(context, "bind_max_attributes", "Te… in createAttributeLocationTests() 85 …bindMaxAttributeGroup->addChild(new gls::BindMaxAttributesTest(context.getTestContext(), context.g… in createAttributeLocationTests() 91 …TestCaseGroup* const aliasingGroup = new TestCaseGroup(context, "bind_aliasing", "Test attribute l… in createAttributeLocationTests() 100 …aliasingGroup->addChild(new gls::BindAliasingAttributeTest(context.getTestContext(), context.getRe… in createAttributeLocationTests() 104 …aliasingGroup->addChild(new gls::BindAliasingAttributeTest(context.getTestContext(), context.getRe… in createAttributeLocationTests() 107 …aliasingGroup->addChild(new gls::BindMaxAliasingAttributeTest(context.getTestContext(), context.ge… in createAttributeLocationTests() [all …]
|
/external/swiftshader/src/OpenGL/libGLES_CM/ |
D | libGLES_CM.cpp | 89 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/ |
D | es3fFboRenderTest.cpp | 140 …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 …]
|
D | es3fAttribLocationTests.cpp | 40 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/apache-xml/src/main/java/org/apache/xml/dtm/ref/ |
D | DTMDefaultBaseTraversers.java | 211 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/deqp/external/vulkancts/modules/vulkan/api/ |
D | vktApiNullHandleTests.cpp | 42 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 59 …context.getDeviceInterface().destroyDescriptorPool(context.getDevice(), descriptorPool, pAllocator… in release() 62 inline void release (Context& context, VkDescriptorSetLayout descriptorSetLayout, const VkAllocatio… in release() argument 64 …context.getDeviceInterface().destroyDescriptorSetLayout(context.getDevice(), descriptorSetLayout, … in release() [all …]
|
/external/ipsec-tools/src/racoon/missing/crypto/sha2/ |
D | sha2.c | 334 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/ImageMagick/www/source/ |
D | piechart.mvg | 1 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/swiftshader/src/Renderer/ |
D | PixelProcessor.cpp | 69 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/skia/src/sksl/ir/ |
D | SkSLType.cpp | 40 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/skia/tests/ |
D | SkSLMemoryLayoutTest.cpp | 16 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/libtextclassifier/tests/ |
D | embedding-feature-extractor_test.cc | 46 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/swiftshader/src/OpenGL/libGLESv2/ |
D | libGLESv2.cpp | 123 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/protobuf/ruby/src/main/java/com/google/protobuf/jruby/ |
D | RubyMessage.java | 66 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 …]
|
/external/deqp/modules/glshared/ |
D | glsLongStressTestUtil.cpp | 126 …gls::ProgramContext context(substitute(vertexTemplate, firstLevelParams).c_str(), substitute(fragm… in generateBufferContext() local 128 context.attributes.push_back(gls::VarSpec("a_position", Vec3(-0.1f), Vec3(0.1f))); in generateBufferContext() 131 …context.attributes.push_back(gls::VarSpec("a_in" + de::toString(i), Vec4(0.0f), Vec4(1.0f / (float… in generateBufferContext() 133 return context; in generateBufferContext() 161 …gls::ProgramContext context(substitute(vertexTemplate).c_str(), substitute(fragmentTemplate).c_str… in generateTextureContext() local 163 …context.attributes.push_back(gls::VarSpec("a_position", Vec3(-positionFactor), Vec3(position… in generateTextureContext() 164 context.attributes.push_back(gls::VarSpec("a_texCoord", Vec2(0.0f), Vec2(1.0f))); in generateTextureContext() 166 context.uniforms.push_back(gls::VarSpec("u_sampler", 0)); in generateTextureContext() 167 …context.uniforms.push_back(gls::VarSpec("u_posTrans", translationMat<4>(positionFactor-1.0f), tr… in generateTextureContext() 170 context.textureSpecs.push_back(gls::TextureSpec(glu::TextureTestUtil::TEXTURETYPE_2D, 0, in generateTextureContext() [all …]
|
/external/swiftshader/src/OpenGL/libGL/ |
D | libGL.cpp | 133 gl::Context *context = gl::getContext(); in glActiveTexture() local 135 if(context) in glActiveTexture() 137 if(context->getListIndex() != 0) in glActiveTexture() 147 context->setActiveSampler(texture - GL_TEXTURE0); in glActiveTexture() 155 gl::Context *context = gl::getContext(); in glAttachShader() local 157 if(context) in glAttachShader() 159 gl::Program *programObject = context->getProgram(program); in glAttachShader() 160 gl::Shader *shaderObject = context->getShader(shader); in glAttachShader() 164 if(context->getShader(program)) in glAttachShader() 176 if(context->getProgram(shader)) in glAttachShader() [all …]
|
/external/google-breakpad/src/processor/ |
D | synth_minidump.cc | 129 Context::Context(const Dump &dump, const MDRawContextX86 &context) in Context() argument 134 assert(((context.context_flags & MD_CONTEXT_CPU_MASK) == 0) || in Context() 135 (context.context_flags & MD_CONTEXT_X86)); in Context() 138 D32(context.context_flags); in Context() 139 D32(context.dr0); in Context() 140 D32(context.dr1); in Context() 141 D32(context.dr2); in Context() 142 D32(context.dr3); in Context() 143 D32(context.dr6); in Context() 144 D32(context.dr7); in Context() [all …]
|
/external/skia/tools/gpu/ |
D | GrContextFactory.cpp | 53 for (Context& context : fContexts) { in destroyContexts() 54 if (context.fTestContext) { in destroyContexts() 55 context.fTestContext->makeCurrent(); in destroyContexts() 57 if (!context.fGrContext->unique()) { in destroyContexts() 58 context.fGrContext->releaseResourcesAndAbandonContext(); in destroyContexts() 59 context.fAbandoned = true; in destroyContexts() 61 context.fGrContext->unref(); in destroyContexts() 62 delete context.fTestContext; in destroyContexts() 68 for (Context& context : fContexts) { in abandonContexts() 69 if (!context.fAbandoned) { in abandonContexts() [all …]
|