Home
last modified time | relevance | path

Searched refs:kValue (Results 1 – 25 of 73) sorted by relevance

123

/external/webrtc/api/units/
Dtimestamp_unittest.cc19 constexpr int64_t kValue = 12345; in TEST() local
24 constexpr Timestamp kTimestampSeconds = Timestamp::Seconds(kValue); in TEST()
25 constexpr Timestamp kTimestampMs = Timestamp::Millis(kValue); in TEST()
26 constexpr Timestamp kTimestampUs = Timestamp::Micros(kValue); in TEST()
28 static_assert(kTimestampSeconds.seconds_or(0) == kValue, ""); in TEST()
29 static_assert(kTimestampMs.ms_or(0) == kValue, ""); in TEST()
30 static_assert(kTimestampUs.us_or(0) == kValue, ""); in TEST()
34 EXPECT_EQ(kTimestampSeconds.seconds(), kValue); in TEST()
35 EXPECT_EQ(kTimestampMs.ms(), kValue); in TEST()
36 EXPECT_EQ(kTimestampUs.us(), kValue); in TEST()
[all …]
Ddata_rate_unittest.cc27 constexpr int64_t kValue = 12345; in TEST() local
35 constexpr DataRate kDataRateBps = DataRate::BitsPerSec(kValue); in TEST()
36 constexpr DataRate kDataRateKbps = DataRate::KilobitsPerSec(kValue); in TEST()
37 static_assert(kDataRateBps.bps<double>() == kValue, ""); in TEST()
38 static_assert(kDataRateBps.bps_or(0) == kValue, ""); in TEST()
39 static_assert(kDataRateKbps.kbps_or(0) == kValue, ""); in TEST()
43 const int64_t kValue = 123 * 8; in TEST() local
44 EXPECT_EQ(DataRate::BitsPerSec(kValue).bps(), kValue); in TEST()
45 EXPECT_EQ(DataRate::KilobitsPerSec(kValue).kbps(), kValue); in TEST()
49 const int64_t kValue = 123 * 8000; in TEST() local
[all …]
Dtime_delta_unittest.cc20 constexpr int64_t kValue = -12345; in TEST() local
31 constexpr TimeDelta kTimeDeltaSeconds = TimeDelta::Seconds(kValue); in TEST()
32 constexpr TimeDelta kTimeDeltaMs = TimeDelta::Millis(kValue); in TEST()
33 constexpr TimeDelta kTimeDeltaUs = TimeDelta::Micros(kValue); in TEST()
35 static_assert(kTimeDeltaSeconds.seconds_or(0) == kValue, ""); in TEST()
36 static_assert(kTimeDeltaMs.ms_or(0) == kValue, ""); in TEST()
37 static_assert(kTimeDeltaUs.us_or(0) == kValue, ""); in TEST()
41 const int64_t kValue = 499; in TEST() local
43 int64_t value = kValue * sign; in TEST()
53 const int64_t kValue = 3000000; in TEST() local
[all …]
Ddata_size_unittest.cc21 constexpr int64_t kValue = 12345; in TEST() local
29 constexpr DataSize kDataSize = DataSize::Bytes(kValue); in TEST()
30 static_assert(kDataSize.bytes_or(-1) == kValue, ""); in TEST()
32 EXPECT_EQ(kDataSize.bytes(), kValue); in TEST()
36 const int64_t kValue = 123 * 8; in TEST() local
37 EXPECT_EQ(DataSize::Bytes(kValue).bytes(), kValue); in TEST()
41 const int64_t kValue = 3000; in TEST() local
43 EXPECT_FALSE(DataSize::Bytes(kValue).IsZero()); in TEST()
47 EXPECT_FALSE(DataSize::Bytes(kValue).IsInfinite()); in TEST()
50 EXPECT_TRUE(DataSize::Bytes(kValue).IsFinite()); in TEST()
[all …]
Dfrequency_unittest.cc30 const int64_t kValue = 31; in TEST() local
31 EXPECT_EQ(Frequency::Hertz(kValue).hertz<int64_t>(), kValue); in TEST()
36 const int64_t kValue = 30000; in TEST() local
37 EXPECT_EQ(Frequency::MilliHertz(kValue).hertz<int64_t>(), kValue / 1000); in TEST()
38 EXPECT_EQ(Frequency::Hertz(kValue).millihertz(), kValue * 1000); in TEST()
39 EXPECT_EQ(Frequency::KiloHertz(kValue).hertz(), kValue * 1000); in TEST()
43 const int64_t kValue = 31; in TEST() local
45 EXPECT_FALSE(Frequency::Hertz(kValue).IsZero()); in TEST()
50 EXPECT_FALSE(Frequency::Hertz(kValue).IsInfinite()); in TEST()
54 EXPECT_TRUE(Frequency::Hertz(kValue).IsFinite()); in TEST()
[all …]
/external/webrtc/rtc_base/units/
Dunit_base_unittest.cc53 constexpr int64_t kValue = -12345; in TEST() local
64 constexpr TestUnit kTestUnitKilo = TestUnit::FromKilo(kValue); in TEST()
65 constexpr TestUnit kTestUnitValue = TestUnit::FromValue(kValue); in TEST()
67 static_assert(kTestUnitKilo.ToKiloOr(0) == kValue, ""); in TEST()
68 static_assert(kTestUnitValue.ToValueOr(0) == kValue, ""); in TEST()
69 static_assert(TestUnitAddKilo(kTestUnitValue, 2).ToValue() == kValue + 2000, in TEST()
74 const int64_t kValue = 499; in TEST() local
76 int64_t value = kValue * sign; in TEST()
84 const int64_t kValue = 3000000; in TEST() local
85 EXPECT_EQ(TestUnit::FromValue(kValue).ToKilo(), kValue / 1000); in TEST()
[all …]
/external/angle/src/libANGLE/
Dentry_points_utils.h31 static constexpr GLint kValue = -1;
38 static constexpr GLuint kValue = 0;
44 static constexpr GLboolean kValue = GL_FALSE;
50 static constexpr ShaderProgramID kValue = {0};
57 static constexpr const PointerType *kValue = nullptr;
63 static constexpr PointerType *kValue = nullptr;
70 static constexpr GLuint kValue = GL_INVALID_INDEX;
77 static constexpr GLenum kValue = GL_WAIT_FAILED;
84 static constexpr GLboolean kValue = GL_TRUE;
90 return DefaultReturnValue<EP, ReturnType>::kValue;
/external/skqp/src/gpu/
DGrTRecorder.h96 return &ptr[length_of<TItem>::kValue]; in GetDataForItem()
100 return &ptr[length_of<TItem>::kValue]; in GetDataForItem()
105 enum { kValue = (sizeof(TItem) + sizeof(TAlign) - 1) / sizeof(TAlign) }; enumerator
120 sk_malloc_throw(sizeof(TAlign) * (length_of<MemBlock>::kValue + length))); in Alloc()
146 return reinterpret_cast<TAlign*>(this)[length_of<MemBlock>::kValue + i];
175 reinterpret_cast<TAlign*>(fLastItem) - length_of<Header>::kValue); in pop_back()
193 fLastItem = &(*fTailBlock)[fTailBlock->fBack - lastItemLength + length_of<Header>::kValue]; in pop_back()
204 reinterpret_cast<TAlign*>(fLastItem) - length_of<Header>::kValue); in alloc_back()
208 const int totalLength = length_of<Header>::kValue + length_of<TItem>::kValue + dataLength; in alloc_back()
223 void* rawPtr = &(*fTailBlock)[fTailBlock->fBack + length_of<Header>::kValue]; in alloc_back()
[all …]
/external/webrtc/modules/audio_coding/neteq/
Dbuffer_level_filter_unittest.cc58 const int kValue = 100; in TEST() local
62 filter.Update(kValue, 0 /* time_stretched_samples */); in TEST()
72 filter.Update(kValue, 0 /* time_stretched_samples */); in TEST()
82 filter.Update(kValue, 0 /* time_stretched_samples */); in TEST()
95 const int kValue = 100; in TEST() local
98 filter.Update(kValue, 0); in TEST()
/external/pigweed/pw_tokenizer/public/pw_tokenizer/internal/
Dargument_types.h119 static constexpr pw_tokenizer_ArgTypes kValue = PW_TOKENIZER_ARG_TYPE_DOUBLE;
124 static constexpr pw_tokenizer_ArgTypes kValue = PW_TOKENIZER_ARG_TYPE_STRING;
129 static constexpr pw_tokenizer_ArgTypes kValue = PW_TOKENIZER_ARG_TYPE_INT64;
134 static constexpr pw_tokenizer_ArgTypes kValue = PW_TOKENIZER_ARG_TYPE_INT;
139 return SelectVarargsType<typename std::decay<T>::type>::kValue;
/external/webrtc/modules/audio_processing/aec3/
Decho_remover_metrics_unittest.cc102 constexpr float kValue = 10.f; in TEST() local
104 metric.Update(kValue); in TEST()
106 EXPECT_FLOAT_EQ(kValue * kNumValues, metric.sum_value); in TEST()
107 EXPECT_FLOAT_EQ(kValue, metric.ceil_value); in TEST()
108 EXPECT_FLOAT_EQ(kValue, metric.floor_value); in TEST()
/external/llvm-project/clang/test/SemaCXX/
Dms-inline-asm.cpp10 enum { kValue = 42 }; enumerator
39 __asm mov eax, A::B::kValue in test_field_lookup()
43 __asm mov eax, asdf::a_global.a3.kValue in test_field_lookup()
/external/clang/test/SemaCXX/
Dms-inline-asm.cpp10 enum { kValue = 42 }; enumerator
39 __asm mov eax, A::B::kValue in test_field_lookup()
43 __asm mov eax, asdf::a_global.a3.kValue in test_field_lookup()
/external/skia/modules/svg/include/
DSkSVGTypes.h33 kValue, enumerator
45 explicit SkSVGProperty(const T& value) : fState(SkSVGPropertyState::kValue) { in SkSVGProperty()
49 explicit SkSVGProperty(T&& value) : fState(SkSVGPropertyState::kValue) { in SkSVGProperty()
55 fState = SkSVGPropertyState::kValue; in init()
61 bool isValue() const { return fState == SkSVGPropertyState::kValue; } in isValue()
69 if (fState != SkSVGPropertyState::kValue) { in set()
75 fState = SkSVGPropertyState::kValue; in set()
80 fState = SkSVGPropertyState::kValue; in set()
85 SkASSERT(fState == SkSVGPropertyState::kValue);
91 SkASSERT(fState == SkSVGPropertyState::kValue);
/external/libtextclassifier/abseil-cpp/absl/memory/
Dmemory_exception_safety_test.cc32 constexpr int kValue = 321; in TEST() local
34 .WithInitialValue(Thrower(kValue)) in TEST()
/external/abseil-cpp/absl/memory/
Dmemory_exception_safety_test.cc32 constexpr int kValue = 321; in TEST() local
34 .WithInitialValue(Thrower(kValue)) in TEST()
/external/openscreen/third_party/abseil/src/absl/memory/
Dmemory_exception_safety_test.cc32 constexpr int kValue = 321; in TEST() local
34 .WithInitialValue(Thrower(kValue)) in TEST()
/external/angle/third_party/abseil-cpp/absl/memory/
Dmemory_exception_safety_test.cc32 constexpr int kValue = 321; in TEST() local
34 .WithInitialValue(Thrower(kValue)) in TEST()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/memory/
Dmemory_exception_safety_test.cc32 constexpr int kValue = 321; in TEST() local
34 .WithInitialValue(Thrower(kValue)) in TEST()
/external/webrtc/third_party/abseil-cpp/absl/memory/
Dmemory_exception_safety_test.cc32 constexpr int kValue = 321; in TEST() local
34 .WithInitialValue(Thrower(kValue)) in TEST()
/external/gemmlowp/internal/
Dkernel.h236 static constexpr std::uint8_t kValue = 0;
241 static constexpr std::uint8_t kValue = 128;
246 static constexpr std::uint8_t kValue = 0;
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dcppcoreguidelines-interfaces-global-init.cpp72 static constexpr const char kValue[] = "value"; variable
74 static int kFingerprint = Fingerprint(kValue);
/external/pigweed/pw_ring_buffer/size_report/
Dring_buffer_simple.cc20 constexpr std::byte kValue = (std::byte)0xFF; variable
21 constexpr std::byte kData[1] = {kValue};
/external/ruy/ruy/
Dkernel_avx2_fma.cc113 if ((params.dst_type_id == DstTypeId<std::int8_t>::kValue) ||
114 (params.dst_type_id == DstTypeId<std::uint8_t>::kValue)) {
116 } else if (params.dst_type_id == DstTypeId<std::int16_t>::kValue) {
118 } else if (params.dst_type_id == DstTypeId<std::int32_t>::kValue) {
345 if (params.dst_type_id != DstTypeId<std::int32_t>::kValue) {
542 if (params.dst_type_id == DstTypeId<std::int8_t>::kValue) {
589 } else if (params.dst_type_id == DstTypeId<std::uint8_t>::kValue) {
636 } else if (params.dst_type_id == DstTypeId<std::int16_t>::kValue) {
683 } else if (params.dst_type_id == DstTypeId<std::int32_t>::kValue) {
857 if (params.dst_type_id != DstTypeId<std::int32_t>::kValue) {
[all …]
Dkernel_common.h76 static constexpr int kValue = RUY_ASM_TYPE_ID_UINT8;
81 static constexpr int kValue = RUY_ASM_TYPE_ID_INT8;
86 static constexpr int kValue = RUY_ASM_TYPE_ID_INT16;
91 static constexpr int kValue = RUY_ASM_TYPE_ID_INT32;
200 params->dst_type_id = DstTypeId<DstScalar>::kValue;

123