Home
last modified time | relevance | path

Searched refs:binaryFormat (Results 1 – 25 of 80) sorted by relevance

1234

/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/trace/propagation/
DBinaryFormatImplTest.java52 private final BinaryFormat binaryFormat = new BinaryFormatImpl(); field in BinaryFormatImplTest
56 binaryFormat.fromByteArray(binaryFormat.toByteArray(spanContext)); in testSpanContextConversion()
76 binaryFormat.toByteArray(null); in toBinaryValue_NullSpanContext()
81 assertThat(binaryFormat.toByteArray(SpanContext.INVALID)) in toBinaryValue_InvalidSpanContext()
90 assertThat(binaryFormat.fromByteArray(EXAMPLE_BYTES)).isEqualTo(EXAMPLE_SPAN_CONTEXT); in fromBinaryValue_BinaryExampleValue()
95 binaryFormat.fromByteArray(null); in fromBinaryValue_NullInput()
102 binaryFormat.fromByteArray(new byte[0]); in fromBinaryValue_EmptyInput()
109 binaryFormat.fromByteArray( in fromBinaryValue_UnsupportedVersionId()
121 binaryFormat.fromByteArray( in fromBinaryValue_UnsupportedFieldIdFirst()
133 binaryFormat.fromByteArray( in fromBinaryValue_UnsupportedFieldIdSecond()
[all …]
/external/opencensus-java/api/src/test/java/io/opencensus/trace/propagation/
DBinaryFormatTest.java30 private static final BinaryFormat binaryFormat = BinaryFormat.getNoopBinaryFormat(); field in BinaryFormatTest
34 binaryFormat.toBinaryValue(null); in toBinaryValue_NullSpanContext()
39 assertThat(binaryFormat.toBinaryValue(SpanContext.INVALID)).isEqualTo(new byte[0]); in toBinaryValue_NotNullSpanContext()
44 binaryFormat.toByteArray(null); in toByteArray_NullSpanContext()
49 assertThat(binaryFormat.toByteArray(SpanContext.INVALID)).isEqualTo(new byte[0]); in toByteArray_NotNullSpanContext()
54 binaryFormat.fromBinaryValue(null); in fromBinaryValue_NullInput()
59 assertThat(binaryFormat.fromBinaryValue(new byte[0])).isEqualTo(SpanContext.INVALID); in fromBinaryValue_NotNullInput()
64 binaryFormat.fromByteArray(null); in fromByteArray_NullInput()
69 assertThat(binaryFormat.fromByteArray(new byte[0])).isEqualTo(SpanContext.INVALID); in fromByteArray_NotNullInput()
/external/opencensus-java/impl_core/src/jmh/java/io/opencensus/implcore/trace/propagation/
DBinaryFormatImplBenchmark.java41 private BinaryFormat binaryFormat; field in BinaryFormatImplBenchmark.Data
47 binaryFormat = new BinaryFormatImpl(); in setup()
55 spanContextBinary = binaryFormat.toByteArray(spanContext); in setup()
67 return data.binaryFormat.toByteArray(data.spanContext); in toBinarySpanContext()
77 return data.binaryFormat.fromByteArray(data.spanContextBinary); in fromBinarySpanContext()
88 return data.binaryFormat.fromByteArray(data.binaryFormat.toByteArray(data.spanContext)); in toFromBinarySpanContext()
/external/angle/src/tests/gl_tests/
DProgramBinaryTest.cpp88 GLenum binaryFormat = 0; in saveAndLoadProgram() local
94 glGetProgramBinaryOES(programToSave, programLength, &writtenLength, &binaryFormat, in saveAndLoadProgram()
103 glProgramBinaryOES(loadedProgram, binaryFormat, binary.data(), writtenLength); in saveAndLoadProgram()
249 GLenum binaryFormat = GL_NONE; in TEST_P() local
251 glGetProgramBinaryOES(mProgram, length, &readLength, &binaryFormat, binaryBlob.data()); in TEST_P()
257 ANGLE_GL_BINARY_OES_PROGRAM(binaryProgram, binaryBlob, binaryFormat); in TEST_P()
352 GLenum binaryFormat = GL_NONE; in testBinaryAndUBOBlockIndexes() local
354 glGetProgramBinary(program.get(), programLength, &readLength, &binaryFormat, binary.data()); in testBinaryAndUBOBlockIndexes()
360 ANGLE_GL_BINARY_ES3_PROGRAM(binaryProgram, binary, binaryFormat); in testBinaryAndUBOBlockIndexes()
477 GLenum binaryFormat = GL_NONE; in TEST_P() local
[all …]
/external/angle/src/tests/test_utils/
Dgl_raii.h180 void makeBinaryOES(const std::vector<uint8_t> &binary, GLenum binaryFormat) in makeBinaryOES() argument
182 mHandle = LoadBinaryProgramOES(binary, binaryFormat); in makeBinaryOES()
185 void makeBinaryES3(const std::vector<uint8_t> &binary, GLenum binaryFormat) in makeBinaryES3() argument
187 mHandle = LoadBinaryProgramES3(binary, binaryFormat); in makeBinaryES3()
225 #define ANGLE_GL_BINARY_OES_PROGRAM(name, binary, binaryFormat) \ argument
227 name.makeBinaryOES(binary, binaryFormat); \
230 #define ANGLE_GL_BINARY_ES3_PROGRAM(name, binary, binaryFormat) \ argument
232 name.makeBinaryES3(binary, binaryFormat); \
/external/fonttools/Lib/fontTools/ttLib/tables/
DBitmapGlyphMetrics.py38 for metricName in sstruct.getformat(self.__class__.binaryFormat)[1]:
45 metricNames = set(sstruct.getformat(self.__class__.binaryFormat)[1])
58 binaryFormat = bigGlyphMetricsFormat variable in BigGlyphMetrics
61 binaryFormat = smallGlyphMetricsFormat variable in SmallGlyphMetrics
/external/skqp/src/gpu/gl/builders/
DGrGLProgramBuilder.cpp185 GrGLenum binaryFormat; in storeShaderInCache() local
187 GL_CALL(GetProgramBinary(programID, length, &length, &binaryFormat, binary.get())); in storeShaderInCache()
188 size_t dataLength = sizeof(inputs) + sizeof(binaryFormat) + length; in storeShaderInCache()
193 memcpy(data.get() + offset, &binaryFormat, sizeof(binaryFormat)); in storeShaderInCache()
194 offset += sizeof(binaryFormat); in storeShaderInCache()
253 int binaryFormat; in finalize() local
254 memcpy(&binaryFormat, bytes + offset, sizeof(binaryFormat)); in finalize()
255 offset += sizeof(binaryFormat); in finalize()
258 ProgramBinary(programID, binaryFormat, (void*) (bytes + offset), in finalize()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/trace/propagation/
DPropagationComponentImpl.java25 private final BinaryFormat binaryFormat = new BinaryFormatImpl(); field in PropagationComponentImpl
30 return binaryFormat; in getBinaryFormat()
/external/angle/util/
Dshader_utils.cpp246 GLuint LoadBinaryProgramOES(const std::vector<uint8_t> &binary, GLenum binaryFormat) in LoadBinaryProgramOES() argument
249 glProgramBinaryOES(program, binaryFormat, binary.data(), static_cast<GLint>(binary.size())); in LoadBinaryProgramOES()
253 GLuint LoadBinaryProgramES3(const std::vector<uint8_t> &binary, GLenum binaryFormat) in LoadBinaryProgramES3() argument
256 glProgramBinary(program, binaryFormat, binary.data(), static_cast<GLint>(binary.size())); in LoadBinaryProgramES3()
Dshader_utils.h43 GLenum binaryFormat);
45 GLenum binaryFormat);
/external/deqp/framework/opengl/
DgluShaderProgram.hpp212 …(const glw::Functions& gl, std::vector<Shader*>& shaders, glw::GLenum binaryFormat, const void* bi…
444 glw::GLenum binaryFormat; member
446 ProgramBinaries (void) : binaryFormat(GL_SHADER_BINARY_FORMAT_SPIR_V_ARB) {} in ProgramBinaries()
447 ProgramBinaries (glw::GLenum binaryFormat_) : binaryFormat(binaryFormat_) {} in ProgramBinaries()
DgluShaderProgram.cpp477 setBinary(gl, shaders, binaries.binaryFormat, binary, length); in init()
509 …(const glw::Functions& gl, std::vector<Shader*>& shaders, glw::GLenum binaryFormat, const void* bi… in setBinary() argument
515 …gl.shaderBinary((glw::GLsizei)shaderVec.size(), shaderVec.data(), binaryFormat, binaryData, length… in setBinary()
/external/skia/src/gpu/gl/builders/
DGrGLProgramBuilder.cpp176 GrGLenum binaryFormat; in storeShaderInCache() local
177 GL_CALL(GetProgramBinary(programID, length, &length, &binaryFormat, binary)); in storeShaderInCache()
178 writer.write32(binaryFormat); in storeShaderInCache()
273 GrGLenum binaryFormat = reader.readU32(); in finalize() local
276 ProgramBinary(programID, binaryFormat, in finalize()
/external/angle/src/libANGLE/
Dcapture_gles_3_0_params.cpp359 GLenum *binaryFormat, in CaptureGetProgramBinary_length() argument
374 GLenum *binaryFormat, in CaptureGetProgramBinary_binaryFormat() argument
386 GLenum *binaryFormat, in CaptureGetProgramBinary_binary() argument
630 GLenum binaryFormat, in CaptureProgramBinary_binary() argument
Dcapture_gles_3_0_autogen.h271 GLenum *binaryFormat,
385 GLenum binaryFormat,
788 GLenum *binaryFormat,
796 GLenum *binaryFormat,
804 GLenum *binaryFormat,
943 GLenum binaryFormat,
DContext_gles_3_0_autogen.h78 GLenum *binaryFormat, void *binary); \
106 void programBinary(ShaderProgramID programPacked, GLenum binaryFormat, const void *binary, \
DvalidationES3_autogen.h198 const GLenum *binaryFormat,
276 GLenum binaryFormat,
/external/angle/extensions/
DANGLE_program_binary.txt49 Accepted by the <binaryFormat> parameter of ProgramBinaryOES:
/external/angle/src/libANGLE/renderer/gl/
DProgramGL.cpp65 GLenum binaryFormat = stream->readInt<GLenum>(); in load() local
71 mFunctions->programBinary(mProgramID, binaryFormat, binary, binaryLength); in load()
91 GLenum binaryFormat = GL_NONE; in save() local
92 mFunctions->getProgramBinary(mProgramID, binaryLength, &binaryLength, &binaryFormat, in save()
95 stream->writeInt(binaryFormat); in save()
/external/mesa3d/src/mesa/main/
Dshaderapi.h250 GLenum *binaryFormat, GLvoid *binary);
253 _mesa_ProgramBinary(GLuint program, GLenum binaryFormat,
/external/angle/src/libGL/
Dentry_points_gl_4_1_autogen.cpp263 GLenum *binaryFormat, in GetProgramBinary() argument
271 CID(context), program, bufSize, (uintptr_t)length, (uintptr_t)binaryFormat, in GetProgramBinary()
280 length, binaryFormat, binary)); in GetProgramBinary()
283 context->getProgramBinary(programPacked, bufSize, length, binaryFormat, binary); in GetProgramBinary()
286 binaryFormat, binary); in GetProgramBinary()
421 GLenum binaryFormat, in ProgramBinary() argument
429 CID(context), program, GLenumToString(GLenumGroup::DefaultGroup, binaryFormat), in ProgramBinary()
438 ValidateProgramBinary(context, programPacked, binaryFormat, binary, length)); in ProgramBinary()
441 context->programBinary(programPacked, binaryFormat, binary, length); in ProgramBinary()
443 ANGLE_CAPTURE(ProgramBinary, isCallValid, context, programPacked, binaryFormat, binary, in ProgramBinary()
Dentry_points_gl_4_1_autogen.h35 GLenum *binaryFormat,
49 GLenum binaryFormat,
/external/deqp/modules/gles3/functional/
Des3fNegativeShaderApiTests.cpp385 GLenum binaryFormat = -1; in init()
399 glGetProgramBinary (program.getProgram(), 0, &binaryLength, &binaryFormat, &binaryPtr); in init()
403 glGetProgramBinary (program.getProgram(), bufSize-1, &binaryLength, &binaryFormat, &binaryPtr); in init()
416 …glGetProgramBinary (programInvalid.getProgram(), bufSize, &binaryLength, &binaryFormat, &binaryPtr… in init()
425 GLenum binaryFormat = -1; in init()
441 …glGetProgramBinary (srcProgram.getProgram(), bufSize, &binaryLength, &binaryFormat, &binaryBuf[0]); in init()
445 glProgramBinary (dummyShader, binaryFormat, &binaryBuf[0], binaryLength); in init()
/external/angle/src/libGLESv2/
Dentry_points_gles_3_0_autogen.cpp1125 GLenum *binaryFormat, in GetProgramBinary() argument
1133 CID(context), program, bufSize, (uintptr_t)length, (uintptr_t)binaryFormat, in GetProgramBinary()
1142 length, binaryFormat, binary)); in GetProgramBinary()
1145 context->getProgramBinary(programPacked, bufSize, length, binaryFormat, binary); in GetProgramBinary()
1148 binaryFormat, binary); in GetProgramBinary()
1706 GLenum binaryFormat, in ProgramBinary() argument
1714 CID(context), program, GLenumToString(GLenumGroup::DefaultGroup, binaryFormat), in ProgramBinary()
1723 ValidateProgramBinary(context, programPacked, binaryFormat, binary, length)); in ProgramBinary()
1726 context->programBinary(programPacked, binaryFormat, binary, length); in ProgramBinary()
1728 ANGLE_CAPTURE(ProgramBinary, isCallValid, context, programPacked, binaryFormat, binary, in ProgramBinary()
Dentry_points_gles_3_0_autogen.h140 GLenum *binaryFormat,
186 GLenum binaryFormat,

1234