Home
last modified time | relevance | path

Searched refs:Utils (Results 1 – 25 of 973) sorted by relevance

12345678910>>...39

/external/deqp/external/openglcts/modules/gl/
Dgl4cShadingLanguage420PackTests.hpp44 class Utils class
360 typedef std::vector<Utils::QUALIFIERS> qualifierSet;
398 …static std::string getBlockVariableDefinition(const Utils::qualifierSet& qualifiers, const glw::GL…
404 …static std::string getVariableDefinition(VARIABLE_FLAVOUR flavour, const Utils::qualifierSet& qual…
407 …static VARIABLE_FLAVOUR getVariableFlavour(Utils::SHADER_STAGES stage, Utils::VARIABLE_STORAGE sto…
408 const Utils::qualifierSet& qualifiers);
410 static std::string getVariableName(Utils::SHADER_STAGES stage, Utils::VARIABLE_STORAGE storage,
415 …static void prepareBlockVariableStrings(Utils::SHADER_STAGES in_stage, Utils::VARIABLE_STORAGE in_…
416 const Utils::qualifierSet& in_qualifiers, const glw::GLchar* in_type_name,
420 …static void prepareVariableStrings(Utils::SHADER_STAGES in_stage, Utils::VARIABLE_STORAGE in_stora…
[all …]
Dgl4cShadingLanguage420PackTests.cpp61 bool Utils::checkUniformBinding(Utils::program& program, const glw::GLchar* name, glw::GLint expect… in checkUniformBinding()
82 bool Utils::checkUniformArrayBinding(Utils::program& program, const glw::GLchar* name, glw::GLuint … in checkUniformArrayBinding()
106 bool Utils::doesContainQualifier(Utils::QUALIFIERS qualifier, const Utils::qualifierSet& qualifiers) in doesContainQualifier()
127 bool Utils::doesStageSupportQualifier(Utils::SHADER_STAGES stage, Utils::VARIABLE_STORAGE storage, in doesStageSupportQualifier()
128 Utils::QUALIFIERS qualifier) in doesStageSupportQualifier()
204 const GLchar* Utils::getQualifierString(Utils::QUALIFIERS qualifier) in getQualifierString()
276 std::string Utils::getQualifiersListString(const qualifierSet& qualifiers) in getQualifiersListString()
292 Utils::replaceToken(token_qual_list, position, qualifier_list, list); in getQualifiersListString()
297 Utils::replaceToken(token_qualifier, position, qualifier_str, list); in getQualifiersListString()
300 Utils::replaceToken(token_qual_list, position, "", list); in getQualifiersListString()
[all …]
Dgl3cGPUShader5Tests.cpp53 Utils::programInfo::programInfo(deqp::Context& context) in programInfo()
62 Utils::programInfo::~programInfo() in ~programInfo()
98 void Utils::programInfo::build(const glw::GLchar* fragment_shader_code, const glw::GLchar* vertex_s… in build()
133 void Utils::programInfo::compile(glw::GLuint shader_id, const glw::GLchar* shader_code) const in compile()
182 void Utils::programInfo::link() const in link()
241 void Utils::programInfo::setUniform(Utils::_variable_type type, const glw::GLchar* name, const glw:… in setUniform()
261 case Utils::VARIABLE_TYPE_FLOAT: in setUniform()
264 case Utils::VARIABLE_TYPE_INT: in setUniform()
267 case Utils::VARIABLE_TYPE_IVEC2: in setUniform()
270 case Utils::VARIABLE_TYPE_IVEC3: in setUniform()
[all …]
Dgl4cEnhancedLayoutsTests.cpp72 namespace Utils namespace
626 const GLuint component_size = Utils::Type::Double == m_basic_type ? 2 : 1; in GetValidComponents()
627 const GLuint n_components_per_location = Utils::Type::Double == m_basic_type ? 2 : 4; in GetValidComponents()
1074 …const std::string& name = Utils::Variable::GetReference(parent_name, desc, Utils::Variable::BASIC,… in verifyVarying()
1123 Utils::Interface* interface = variable.m_descriptor.m_interface; in checkVarying()
1148 Utils::Interface* interface = variable.m_descriptor.m_interface; in checkVarying()
1213 bool checkUniform(Program& program, const Utils::Variable& variable, std::stringstream& stream) in checkUniform()
1223 Utils::Interface* interface = variable.m_descriptor.m_interface; in checkUniform()
1243Utils::Variable::GetReference(interface->m_name, interface->m_members[i], Utils::Variable::BASIC, … in checkUniform()
1245 if (Utils::Variable::INTERFACE == interface->m_members[i].m_type) in checkUniform()
[all …]
Dgl4cEnhancedLayoutsTests.hpp44 namespace Utils namespace
1021 glw::GLuint calculateStride(const Utils::Interface& interface) const;
1022 …void generateData(const Utils::Interface& interface, glw::GLuint offset, std::vector<glw::GLubyte>…
1024 …glw::GLint getLastInputLocation(Utils::Shader::STAGES stage, const Utils::Type& type, glw::GLuint …
1026 …glw::GLint getLastOutputLocation(Utils::Shader::STAGES stage, const Utils::Type& type, glw::GLuint…
1028 Utils::Type getType(glw::GLuint index) const;
1032 …bool isFlatRequired(Utils::Shader::STAGES stage, const Utils::Type& type, Utils::Variable::STORAGE…
1062 Utils::Buffer::BUFFERS m_target;
1073 Utils::Buffer* m_buffer;
1088 …virtual void getCapturedVaryings(glw::GLuint test_case_index, Utils::Program::NameVector& captured…
[all …]
Dgl4cGPUShaderFP64Tests.cpp50 const glw::GLenum Utils::programInfo::ARB_COMPUTE_SHADER = 0x91B9;
56 Utils::programInfo::programInfo(deqp::Context& context) in programInfo()
72 Utils::programInfo::~programInfo() in ~programInfo()
136 void Utils::programInfo::build(const glw::GLchar* compute_shader_code, const glw::GLchar* fragment_… in build()
215 void Utils::programInfo::compile(glw::GLuint shader_id, const glw::GLchar* shader_code) const in compile()
264 void Utils::programInfo::link() const in link()
348 Utils::_variable_type Utils::getBaseVariableType(_variable_type type) in getBaseVariableType()
434 unsigned int Utils::getBaseVariableTypeComponentSize(_variable_type type) in getBaseVariableTypeComponentSize()
473 unsigned char Utils::getComponentAtIndex(unsigned int index) in getComponentAtIndex()
508 Utils::_variable_type Utils::getDoubleVariableType(glw::GLuint n_columns, glw::GLuint n_rows) in getDoubleVariableType()
[all …]
Dgl4cShaderSubroutineTests.cpp48 Utils::buffer::buffer(deqp::Context& context) : m_id(0), m_context(context) in buffer()
55 Utils::buffer::~buffer() in ~buffer()
73 void Utils::buffer::bindRange(glw::GLenum target, glw::GLuint index, glw::GLintptr offset, glw::GLs… in bindRange()
84 void Utils::buffer::generate() in generate()
99 void Utils::buffer::update(glw::GLenum target, glw::GLsizeiptr size, glw::GLvoid* data, glw::GLenum… in update()
114 Utils::framebuffer::framebuffer(deqp::Context& context) : m_id(0), m_context(context) in framebuffer()
122 Utils::framebuffer::~framebuffer() in ~framebuffer()
140 void Utils::framebuffer::attachTexture(glw::GLenum attachment, glw::GLuint texture_id, glw::GLuint … in attachTexture()
161 void Utils::framebuffer::bind() in bind()
173 void Utils::framebuffer::clear(glw::GLenum mask) in clear()
[all …]
Dgl4cShaderSubroutineTests.hpp41 class Utils class
357 Utils::_variable_type variable_type;
367 …std::string getVertexShaderBody(const Utils::_variable_type& variable_type, unsigned int array_siz…
371 bool verifyXFBData(const void* xfb_data, const Utils::_variable_type& variable_type);
464 const glw::GLchar** uniform_names, const Utils::vec4<glw::GLfloat> data[5],
493 …const Utils::vec4<glw::GLfloat> input_data[3], const Utils::vec4<glw::GLfloat>& first_routine_resu…
494 const Utils::vec4<glw::GLfloat>& second_routine_result,
495 const Utils::vec4<glw::GLfloat>& third_routine_result,
496 const Utils::vec4<glw::GLuint>& fourth_routine_result,
497 const Utils::vec4<glw::GLfloat>& first_routine_expected_result,
[all …]
/external/tensorflow/tensorflow/c/experimental/filesystem/plugins/s3/
Daws_logging.cc30 static const std::map<const std::string, const Aws::Utils::Logging::LogLevel>
32 {"off", Aws::Utils::Logging::LogLevel::Off},
33 {"fatal", Aws::Utils::Logging::LogLevel::Fatal},
34 {"error", Aws::Utils::Logging::LogLevel::Error},
35 {"warn", Aws::Utils::Logging::LogLevel::Warn},
36 {"info", Aws::Utils::Logging::LogLevel::Info},
37 {"debug", Aws::Utils::Logging::LogLevel::Debug},
38 {"trace", Aws::Utils::Logging::LogLevel::Trace}};
40 static const std::map<const int, const Aws::Utils::Logging::LogLevel>
41 log_levels_tf_to_aws = {{0, Aws::Utils::Logging::LogLevel::Info},
[all …]
Daws_crypto.cc25 class AWSSha256HMACOpenSSLImpl : public Aws::Utils::Crypto::HMAC {
31 Aws::Utils::Crypto::HashResult Calculate( in Calculate()
32 const Aws::Utils::ByteBuffer& toSign, in Calculate()
33 const Aws::Utils::ByteBuffer& secret) override { in Calculate()
35 Aws::Utils::ByteBuffer digest(length); in Calculate()
47 return Aws::Utils::Crypto::HashResult(std::move(digest)); in Calculate()
51 class AWSSha256OpenSSLImpl : public Aws::Utils::Crypto::Hash {
57 Aws::Utils::Crypto::HashResult Calculate(const Aws::String& str) override { in Calculate()
62 Aws::Utils::ByteBuffer hash(SHA256_DIGEST_LENGTH); in Calculate()
65 return Aws::Utils::Crypto::HashResult(std::move(hash)); in Calculate()
[all …]
Daws_logging.h26 class AWSLogSystem : public Aws::Utils::Logging::LogSystemInterface {
31 explicit AWSLogSystem(Aws::Utils::Logging::LogLevel log_level);
35 Aws::Utils::Logging::LogLevel GetLogLevel(void) const override { in GetLogLevel()
40 void SetLogLevel(Aws::Utils::Logging::LogLevel log_level) { in SetLogLevel()
46 void Log(Aws::Utils::Logging::LogLevel log_level, const char* tag,
50 void LogStream(Aws::Utils::Logging::LogLevel log_level, const char* tag,
57 void LogMessage(Aws::Utils::Logging::LogLevel log_level,
59 std::atomic<Aws::Utils::Logging::LogLevel> log_level_;
/external/tensorflow/tensorflow/core/platform/s3/
Daws_logging.cc29 static const std::map<std::string, Aws::Utils::Logging::LogLevel>
31 {"off", Aws::Utils::Logging::LogLevel::Off},
32 {"fatal", Aws::Utils::Logging::LogLevel::Fatal},
33 {"error", Aws::Utils::Logging::LogLevel::Error},
34 {"warn", Aws::Utils::Logging::LogLevel::Warn},
35 {"info", Aws::Utils::Logging::LogLevel::Info},
36 {"debug", Aws::Utils::Logging::LogLevel::Debug},
37 {"trace", Aws::Utils::Logging::LogLevel::Trace}};
39 static const std::map<int, Aws::Utils::Logging::LogLevel> log_levels_tf_to_aws =
40 {{INFO, Aws::Utils::Logging::LogLevel::Info},
[all …]
Daws_crypto.cc25 class AWSSha256HMACOpenSSLImpl : public Aws::Utils::Crypto::HMAC {
31 virtual Aws::Utils::Crypto::HashResult Calculate( in Calculate()
32 const Aws::Utils::ByteBuffer& toSign, in Calculate()
33 const Aws::Utils::ByteBuffer& secret) override { in Calculate()
35 Aws::Utils::ByteBuffer digest(length); in Calculate()
47 return Aws::Utils::Crypto::HashResult(std::move(digest)); in Calculate()
51 class AWSSha256OpenSSLImpl : public Aws::Utils::Crypto::Hash {
57 virtual Aws::Utils::Crypto::HashResult Calculate( in Calculate()
63 Aws::Utils::ByteBuffer hash(SHA256_DIGEST_LENGTH); in Calculate()
66 return Aws::Utils::Crypto::HashResult(std::move(hash)); in Calculate()
[all …]
Daws_logging.h28 class AWSLogSystem : public Aws::Utils::Logging::LogSystemInterface {
33 explicit AWSLogSystem(Aws::Utils::Logging::LogLevel log_level);
37 Aws::Utils::Logging::LogLevel GetLogLevel(void) const override { in GetLogLevel()
42 void SetLogLevel(Aws::Utils::Logging::LogLevel log_level) { in SetLogLevel()
50 void Log(Aws::Utils::Logging::LogLevel log_level, const char* tag,
54 void LogStream(Aws::Utils::Logging::LogLevel log_level, const char* tag,
61 void LogMessage(Aws::Utils::Logging::LogLevel log_level,
63 std::atomic<Aws::Utils::Logging::LogLevel> log_level_;
/external/opencensus-java/api/src/main/java/io/opencensus/metrics/
DMetricRegistry.java22 import io.opencensus.internal.Utils;
111 Utils.checkListElementNotNull( in addLongGauge()
112 Utils.checkNotNull(labelKeys, "labelKeys"), "labelKey element should not be null."); in addLongGauge()
114 Utils.checkNotNull(name, "name"), in addLongGauge()
115 Utils.checkNotNull(description, "description"), in addLongGauge()
116 Utils.checkNotNull(unit, "unit"), in addLongGauge()
123 Utils.checkListElementNotNull( in addDoubleGauge()
124 Utils.checkNotNull(labelKeys, "labelKeys"), "labelKey element should not be null."); in addDoubleGauge()
126 Utils.checkNotNull(name, "name"), in addDoubleGauge()
127 Utils.checkNotNull(description, "description"), in addDoubleGauge()
[all …]
DDerivedDoubleGauge.java20 import io.opencensus.internal.Utils;
125 Utils.checkNotNull(name, "name"); in NoopDerivedDoubleGauge()
126 Utils.checkNotNull(description, "description"); in NoopDerivedDoubleGauge()
127 Utils.checkNotNull(unit, "unit"); in NoopDerivedDoubleGauge()
128 Utils.checkListElementNotNull( in NoopDerivedDoubleGauge()
129 Utils.checkNotNull(labelKeys, "labelKeys"), "labelKey element should not be null."); in NoopDerivedDoubleGauge()
138 Utils.checkListElementNotNull( in createTimeSeries()
139 Utils.checkNotNull(labelValues, "labelValues"), "labelValue element should not be null."); in createTimeSeries()
140 Utils.checkArgument(labelKeysSize == labelValues.size(), "Incorrect number of labels."); in createTimeSeries()
141 Utils.checkNotNull(function, "function"); in createTimeSeries()
[all …]
DDerivedLongGauge.java20 import io.opencensus.internal.Utils;
123 Utils.checkNotNull(name, "name"); in NoopDerivedLongGauge()
124 Utils.checkNotNull(description, "description"); in NoopDerivedLongGauge()
125 Utils.checkNotNull(unit, "unit"); in NoopDerivedLongGauge()
126 Utils.checkListElementNotNull( in NoopDerivedLongGauge()
127 Utils.checkNotNull(labelKeys, "labelKeys"), "labelKey element should not be null."); in NoopDerivedLongGauge()
136 Utils.checkListElementNotNull( in createTimeSeries()
137 Utils.checkNotNull(labelValues, "labelValues"), "labelValue element should not be null."); in createTimeSeries()
138 Utils.checkArgument(labelKeysSize == labelValues.size(), "Incorrect number of labels."); in createTimeSeries()
139 Utils.checkNotNull(function, "function"); in createTimeSeries()
[all …]
DDoubleGauge.java19 import io.opencensus.internal.Utils;
171 Utils.checkNotNull(name, "name"); in NoopDoubleGauge()
172 Utils.checkNotNull(description, "description"); in NoopDoubleGauge()
173 Utils.checkNotNull(unit, "unit"); in NoopDoubleGauge()
174 Utils.checkListElementNotNull( in NoopDoubleGauge()
175 Utils.checkNotNull(labelKeys, "labelKeys"), "labelKey element should not be null."); in NoopDoubleGauge()
181 Utils.checkListElementNotNull( in getOrCreateTimeSeries()
182 Utils.checkNotNull(labelValues, "labelValues"), "labelValue element should not be null."); in getOrCreateTimeSeries()
183 Utils.checkArgument(labelKeysSize == labelValues.size(), "Incorrect number of labels."); in getOrCreateTimeSeries()
194 Utils.checkNotNull(labelValues, "labelValues"); in removeTimeSeries()
/external/opencensus-java/api/src/test/java/io/opencensus/internal/
DUtilsTest.java42 Utils.checkArgument(true, TEST_MESSAGE); in checkArgument()
45 Utils.checkArgument(false, TEST_MESSAGE); in checkArgument()
52 Utils.checkArgument(false, null); in checkArgument_NullErrorMessage()
59 Utils.checkArgument(false, TEST_MESSAGE_TEMPLATE, TEST_MESSAGE_VALUE); in checkArgument_WithSimpleFormat()
66 Utils.checkArgument(false, TEST_MESSAGE_TEMPLATE, TEST_MESSAGE_VALUE, TEST_MESSAGE_VALUE); in checkArgument_WithComplexFormat()
71 Utils.checkNotNull(true, TEST_MESSAGE); in checkState()
74 Utils.checkState(false, TEST_MESSAGE); in checkState()
81 Utils.checkState(false, null); in checkState_NullErrorMessage()
86 Utils.checkNotNull(new Object(), TEST_MESSAGE); in checkNotNull()
89 Utils.checkNotNull(null, TEST_MESSAGE); in checkNotNull()
[all …]
/external/walt/android/WALT/app/src/test/java/org/chromium/latency/walt/
DUtilsTest.java38 assertThat(Utils.median(arr), is(0d)); in testMedian_singleNumber()
45 assertThat(Utils.median(arr), is(2.5d)); in testMedian_evenSize()
52 assertThat(Utils.median(arr), is(3d)); in testMedian_oddSize()
57 assertThat(Utils.mean(new double[]{-1,1,2,3}), is(1.25d)); in testMean()
62 assertThat(Utils.mean(new double[]{0}), is(0d)); in testMean_singleNumber()
67 assertThat(Utils.mean(new double[]{}), is(NaN)); in testMean_empty()
72 assertThat(Utils.mean(new double[]{5,5,5,5}), is(5d)); in testMean_repeatedNumbers()
77 assertThat(Utils.interp(new double[]{5,6,16,17}, new double[]{0, 10, 12, 18}, in testInterp()
83 assertThat(Utils.interp(new double[]{5}, new double[]{0, 10}, in testInterp_singleNumber()
89 assertThat(Utils.interp(new double[]{0}, new double[]{0, 10}, in testInterp_twoNumbers()
[all …]
/external/opencensus-java/api/src/main/java/io/opencensus/metrics/export/
DDistribution.java23 import io.opencensus.internal.Utils;
63 Utils.checkArgument(count >= 0, "count should be non-negative."); in create()
64 Utils.checkArgument( in create()
67 Utils.checkArgument(sum == 0, "sum should be 0 if count is 0."); in create()
68 Utils.checkArgument( in create()
71 Utils.checkNotNull(bucketOptions, "bucketOptions"); in create()
73 Collections.unmodifiableList(new ArrayList<Bucket>(Utils.checkNotNull(buckets, "buckets"))); in create()
74 Utils.checkListElementNotNull(bucketsCopy, "bucket"); in create()
202 Utils.checkNotNull(bucketBoundaries, "bucketBoundaries"); in create()
211 double previous = Utils.checkNotNull(bucketBoundaries.get(0), "bucketBoundary"); in checkBucketBoundsAreSorted()
[all …]
DSummary.java21 import io.opencensus.internal.Utils;
52 Utils.checkNotNull(snapshot, "snapshot"); in create()
128 Utils.checkNotNull(valueAtPercentiles, "valueAtPercentiles"); in create()
129 Utils.checkListElementNotNull(valueAtPercentiles, "value in valueAtPercentiles"); in create()
171 Utils.checkArgument( in create()
174 Utils.checkArgument(value >= 0, "value must be non-negative"); in create()
181 Utils.checkArgument(count == null || count >= 0, "count must be non-negative."); in checkCountAndSum()
182 Utils.checkArgument(sum == null || sum >= 0, "sum must be non-negative."); in checkCountAndSum()
184 Utils.checkArgument(sum == null || sum == 0, "sum must be 0 if count is 0."); in checkCountAndSum()
/external/deqp/external/openglcts/modules/common/
DglcViewportArrayTests.hpp46 class Utils class
320 …void depthRangeArrayHelper(Utils::DepthFuncWrapper& depthFunc, glw::GLint max_viewports, bool& tes…
324 …void depthRangeIndexedHelper(Utils::DepthFuncWrapper& depthFunc, glw::GLint max_viewports, bool& t…
328 …void getDepthHelper(Utils::DepthFuncWrapper& depthFunc, glw::GLint max_viewports, bool& test_resul…
369 …void depthRangeInitialValuesHelper(Utils::DepthFuncWrapper& depthFunc, glw::GLint max_viewports, b…
495 …void getDepthRanges(Utils::DepthFuncWrapper& depthFunc, glw::GLint max_viewports, std::vector<T>& …
590 …virtual bool checkResults(Utils::texture& texture_0, Utils::texture& texture_1, glw::GLuint draw_c…
601 virtual void prepareTextures(Utils::texture& texture_0, Utils::texture& texture_1);
603 virtual void prepareUniforms(Utils::program& program, glw::GLuint draw_call_index);
605 virtual void setupFramebuffer(Utils::framebuffer& framebuffer, Utils::texture& texture_0,
[all …]
/external/opencensus-java/api/src/main/java/io/opencensus/trace/
DBlankSpan.java19 import io.opencensus.internal.Utils;
47 Utils.checkNotNull(key, "key"); in putAttribute()
48 Utils.checkNotNull(value, "value"); in putAttribute()
54 Utils.checkNotNull(attributes, "attributes"); in putAttributes()
60 Utils.checkNotNull(description, "description"); in addAnnotation()
61 Utils.checkNotNull(attributes, "attributes"); in addAnnotation()
67 Utils.checkNotNull(annotation, "annotation"); in addAnnotation()
78 Utils.checkNotNull(messageEvent, "messageEvent"); in addMessageEvent()
84 Utils.checkNotNull(link, "link"); in addLink()
89 Utils.checkNotNull(status, "status"); in setStatus()
[all …]
/external/opencensus-java/api/src/test/java/io/opencensus/trace/
DNoopSpan.java19 import io.opencensus.internal.Utils;
33 super(Utils.checkNotNull(context, "context"), options); in NoopSpan()
38 Utils.checkNotNull(attributes, "attributes"); in putAttributes()
43 Utils.checkNotNull(description, "description"); in addAnnotation()
44 Utils.checkNotNull(attributes, "attributes"); in addAnnotation()
49 Utils.checkNotNull(annotation, "annotation"); in addAnnotation()
57 Utils.checkNotNull(messageEvent, "messageEvent"); in addMessageEvent()
62 Utils.checkNotNull(link, "link"); in addLink()
67 Utils.checkNotNull(options, "options"); in end()

12345678910>>...39