Home
last modified time | relevance | path

Searched refs:kInput (Results 1 – 25 of 67) sorted by relevance

123

/external/webrtc/modules/audio_processing/transient/
Dmoving_moments_unittest.cc62 const float kInput[] = {0.f, 0.f, 0.f, 0.f, 0.f}; in TEST_F() local
63 const size_t kInputLength = sizeof(kInput) / sizeof(kInput[0]); in TEST_F()
68 CalculateMomentsAndVerify(kInput, kInputLength, expected_mean, in TEST_F()
73 const float kInput[] = {5.f, 5.f, 5.f, 5.f, 5.f, 5.f, 5.f, 5.f, 5.f, 5.f}; in TEST_F() local
74 const size_t kInputLength = sizeof(kInput) / sizeof(kInput[0]); in TEST_F()
81 CalculateMomentsAndVerify(kInput, kInputLength, expected_mean, in TEST_F()
86 const float kInput[] = {1.f, 2.f, 3.f, 4.f, 5.f, 6.f, 7.f, 8.f, 9.f}; in TEST_F() local
87 const size_t kInputLength = sizeof(kInput) / sizeof(kInput[0]); in TEST_F()
94 CalculateMomentsAndVerify(kInput, kInputLength, expected_mean, in TEST_F()
99 const float kInput[] = {-1.f, -2.f, -3.f, -4.f, -5.f, -6.f, -7.f, -8.f, -9.f}; in TEST_F() local
[all …]
/external/openscreen/cast/streaming/
Drtp_packet_parser_unittest.cc18 const uint8_t kInput[] = { in TEST() local
34 const auto result = parser.Parse(kInput); in TEST()
46 const absl::Span<const uint8_t> expected_payload(kInput + 18, 8); in TEST()
54 const uint8_t kInput[] = { in TEST() local
71 const auto result = parser.Parse(kInput); in TEST()
83 const absl::Span<const uint8_t> expected_payload(kInput + 19, 15); in TEST()
93 const uint8_t kInput[] = { in TEST() local
109 const auto result = parser.Parse(kInput); in TEST()
121 const absl::Span<const uint8_t> expected_payload(kInput + 18, 15); in TEST()
129 const uint8_t kInput[] = { in TEST() local
[all …]
Dpacket_util_unittest.cc93 const uint8_t kInput[] = { in TEST() local
108 const auto result = InspectPacketForRouting(kInput); in TEST()
118 const uint8_t kInput[] = { in TEST() local
133 const auto result = InspectPacketForRouting(kInput); in TEST()
141 const uint8_t kInput[] = { in TEST() local
155 const auto result = InspectPacketForRouting(kInput); in TEST()
161 const uint8_t kInput[] = {}; in TEST() local
164 InspectPacketForRouting(absl::Span<const uint8_t>(kInput, 0)); in TEST()
171 const uint8_t kInput[] = { in TEST() local
179 const auto result = InspectPacketForRouting(kInput); in TEST()
/external/pdfium/core/fdrm/
Dfx_crypt_unittest.cpp194 static const char kInput[] = ""; in TEST() local
199 CRYPT_SHA1Generate(reinterpret_cast<const uint8_t*>(kInput), strlen(kInput), in TEST()
209 static const char kInput[] = "abc"; in TEST() local
214 CRYPT_SHA1Generate(reinterpret_cast<const uint8_t*>(kInput), strlen(kInput), in TEST()
223 static const char kInput[] = in TEST() local
230 CRYPT_SHA1Generate(reinterpret_cast<const uint8_t*>(kInput), strlen(kInput), in TEST()
238 static const char kInput[] = ""; in TEST() local
244 CRYPT_SHA256Generate(reinterpret_cast<const uint8_t*>(kInput), strlen(kInput), in TEST()
252 static const char kInput[] = "abc"; in TEST() local
258 CRYPT_SHA256Generate(reinterpret_cast<const uint8_t*>(kInput), strlen(kInput), in TEST()
[all …]
/external/webrtc/common_audio/
Dfir_filter_unittest.cc27 static const float kInput[] = {1.f, 2.f, 3.f, 4.f, 5.f, variable
29 static const size_t kInputLength = sizeof(kInput) / sizeof(kInput[0]);
45 filter->Filter(kInput, kInputLength, output); in TEST()
47 VerifyOutput(kInput, output, kInputLength); in TEST()
55 filter->Filter(kInput, kInputLength, output); in TEST()
68 filter->Filter(kInput, kInputLength, output); in TEST()
81 filter->Filter(kInput, kInputLength, output); in TEST()
94 filter->Filter(kInput, 2, output); in TEST()
100 filter->Filter(kInput, kCoefficientsLength, output); in TEST()
111 filter->Filter(kInput, 2, output); in TEST()
[all …]
Daudio_util_unittest.cc35 static constexpr int16_t kInput[] = {0, 1, -1, 16384, -16384, 32767, -32768}; in TEST() local
38 static constexpr size_t kSize = arraysize(kInput); in TEST()
41 S16ToFloat(kInput, kSize, output); in TEST()
46 static constexpr float kInput[] = {0.f, 0.4f, 0.5f, -0.4f, in TEST() local
49 static constexpr size_t kSize = arraysize(kInput); in TEST()
52 FloatS16ToS16(kInput, kSize, output); in TEST()
57 static constexpr float kInput[] = {0.f, in TEST() local
68 static constexpr size_t kSize = arraysize(kInput); in TEST()
71 FloatToFloatS16(kInput, kSize, output); in TEST()
76 static constexpr float kInput[] = {0.f, 0.4f, 0.6f, -0.4f, -0.6f, in TEST() local
[all …]
/external/tensorflow/tensorflow/core/kernels/image/
Dmirror_pad_op_test.cc91 const int kInput = 1000; in REGISTER_TEST() local
93 const int kOutput = kInput + 2 * kPad; in REGISTER_TEST()
100 AddInput<float>(TensorShape({1, kInput, kInput, 1}), in REGISTER_TEST()
101 [=](int i) -> float { return i % kInput; }); in REGISTER_TEST()
111 else if (kPad <= i && i < kInput + kPad) in REGISTER_TEST()
113 else if (kInput + kPad <= i && i < kOutput) in REGISTER_TEST()
114 return 2 * kInput + kPad - 2 - i; in REGISTER_TEST()
125 const int kInput = 1000; in TEST_F() local
127 const int kOutput = kInput + 2 * kPad; in TEST_F()
134 AddInput<float>(TensorShape({1, kInput, kInput, 1}), in TEST_F()
[all …]
/external/rust/crates/quiche/deps/boringssl/src/crypto/chacha/
Dchacha_test.cc44 static const uint8_t kInput[] = { variable
221 static_assert(sizeof(kInput) == sizeof(kOutput),
226 for (size_t len = 0; len <= sizeof(kInput); len++) { in TEST()
230 CRYPTO_chacha_20(buf.get(), kInput, len, kKey, kNonce, kCounter); in TEST()
234 OPENSSL_memcpy(buf.get(), kInput, len); in TEST()
247 std::unique_ptr<uint8_t[]> buf(new uint8_t[sizeof(kInput)]); in TEST()
250 CHECK_ABI(ChaCha20_ctr32, buf.get(), kInput, len, key, kCounterNonce); in TEST()
255 CHECK_ABI(ChaCha20_ctr32, buf.get(), kInput, len, key, kCounterNonce); in TEST()
257 CHECK_ABI(ChaCha20_ctr32, buf.get(), kInput, len + 15, key, kCounterNonce); in TEST()
/external/boringssl/src/crypto/chacha/
Dchacha_test.cc44 static const uint8_t kInput[] = { variable
221 static_assert(sizeof(kInput) == sizeof(kOutput),
226 for (size_t len = 0; len <= sizeof(kInput); len++) { in TEST()
230 CRYPTO_chacha_20(buf.get(), kInput, len, kKey, kNonce, kCounter); in TEST()
234 OPENSSL_memcpy(buf.get(), kInput, len); in TEST()
247 std::unique_ptr<uint8_t[]> buf(new uint8_t[sizeof(kInput)]); in TEST()
250 CHECK_ABI(ChaCha20_ctr32, buf.get(), kInput, len, key, kCounterNonce); in TEST()
255 CHECK_ABI(ChaCha20_ctr32, buf.get(), kInput, len, key, kCounterNonce); in TEST()
257 CHECK_ABI(ChaCha20_ctr32, buf.get(), kInput, len + 15, key, kCounterNonce); in TEST()
/external/pdfium/xfa/fxfa/parser/
Dcxfa_document_parser_unittest.cpp36 static const char kInput[] = in TEST_F() local
44 pdfium::as_bytes(pdfium::make_span(kInput))); in TEST_F()
53 static const char kInput[] = in TEST_F() local
62 pdfium::as_bytes(pdfium::make_span(kInput))); in TEST_F()
71 static const char kInput[] = in TEST_F() local
79 pdfium::as_bytes(pdfium::make_span(kInput))); in TEST_F()
88 static const char kInput[] = in TEST_F() local
96 pdfium::as_bytes(pdfium::make_span(kInput))); in TEST_F()
105 static const char kInput[] = in TEST_F() local
116 pdfium::as_bytes(pdfium::make_span(kInput))); in TEST_F()
/external/angle/third_party/abseil-cpp/absl/container/
Dfixed_array_test.cc358 int const kInput[] = {2, 3, 5, 7, 11, 13, 17}; in TEST() local
359 absl::FixedArray<int, ABSL_ARRAYSIZE(kInput) - 1> const fixed( in TEST()
360 kInput, kInput + ABSL_ARRAYSIZE(kInput)); in TEST()
361 ASSERT_EQ(ABSL_ARRAYSIZE(kInput), fixed.size()); in TEST()
362 for (size_t i = 0; i < ABSL_ARRAYSIZE(kInput); ++i) { in TEST()
363 ASSERT_EQ(kInput[i], fixed[i]); in TEST()
368 int const kInput[] = {2, 3, 5, 7, 11, 13, 17}; in TEST() local
369 absl::FixedArray<int, ABSL_ARRAYSIZE(kInput)> const fixed( in TEST()
370 kInput, kInput + ABSL_ARRAYSIZE(kInput)); in TEST()
371 ASSERT_EQ(ABSL_ARRAYSIZE(kInput), fixed.size()); in TEST()
[all …]
/external/libtextclassifier/abseil-cpp/absl/container/
Dfixed_array_test.cc358 int const kInput[] = {2, 3, 5, 7, 11, 13, 17}; in TEST() local
359 absl::FixedArray<int, ABSL_ARRAYSIZE(kInput) - 1> const fixed( in TEST()
360 kInput, kInput + ABSL_ARRAYSIZE(kInput)); in TEST()
361 ASSERT_EQ(ABSL_ARRAYSIZE(kInput), fixed.size()); in TEST()
362 for (size_t i = 0; i < ABSL_ARRAYSIZE(kInput); ++i) { in TEST()
363 ASSERT_EQ(kInput[i], fixed[i]); in TEST()
368 int const kInput[] = {2, 3, 5, 7, 11, 13, 17}; in TEST() local
369 absl::FixedArray<int, ABSL_ARRAYSIZE(kInput)> const fixed( in TEST()
370 kInput, kInput + ABSL_ARRAYSIZE(kInput)); in TEST()
371 ASSERT_EQ(ABSL_ARRAYSIZE(kInput), fixed.size()); in TEST()
[all …]
/external/openscreen/third_party/abseil/src/absl/container/
Dfixed_array_test.cc358 int const kInput[] = {2, 3, 5, 7, 11, 13, 17}; in TEST() local
359 absl::FixedArray<int, ABSL_ARRAYSIZE(kInput) - 1> const fixed( in TEST()
360 kInput, kInput + ABSL_ARRAYSIZE(kInput)); in TEST()
361 ASSERT_EQ(ABSL_ARRAYSIZE(kInput), fixed.size()); in TEST()
362 for (size_t i = 0; i < ABSL_ARRAYSIZE(kInput); ++i) { in TEST()
363 ASSERT_EQ(kInput[i], fixed[i]); in TEST()
368 int const kInput[] = {2, 3, 5, 7, 11, 13, 17}; in TEST() local
369 absl::FixedArray<int, ABSL_ARRAYSIZE(kInput)> const fixed( in TEST()
370 kInput, kInput + ABSL_ARRAYSIZE(kInput)); in TEST()
371 ASSERT_EQ(ABSL_ARRAYSIZE(kInput), fixed.size()); in TEST()
[all …]
/external/abseil-cpp/absl/container/
Dfixed_array_test.cc340 int const kInput[] = {2, 3, 5, 7, 11, 13, 17}; in TEST() local
341 absl::FixedArray<int, ABSL_ARRAYSIZE(kInput) - 1> const fixed( in TEST()
342 kInput, kInput + ABSL_ARRAYSIZE(kInput)); in TEST()
343 ASSERT_EQ(ABSL_ARRAYSIZE(kInput), fixed.size()); in TEST()
344 for (size_t i = 0; i < ABSL_ARRAYSIZE(kInput); ++i) { in TEST()
345 ASSERT_EQ(kInput[i], fixed[i]); in TEST()
350 int const kInput[] = {2, 3, 5, 7, 11, 13, 17}; in TEST() local
351 absl::FixedArray<int, ABSL_ARRAYSIZE(kInput)> const fixed( in TEST()
352 kInput, kInput + ABSL_ARRAYSIZE(kInput)); in TEST()
353 ASSERT_EQ(ABSL_ARRAYSIZE(kInput), fixed.size()); in TEST()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/container/
Dfixed_array_test.cc358 int const kInput[] = {2, 3, 5, 7, 11, 13, 17}; in TEST() local
359 absl::FixedArray<int, ABSL_ARRAYSIZE(kInput) - 1> const fixed( in TEST()
360 kInput, kInput + ABSL_ARRAYSIZE(kInput)); in TEST()
361 ASSERT_EQ(ABSL_ARRAYSIZE(kInput), fixed.size()); in TEST()
362 for (size_t i = 0; i < ABSL_ARRAYSIZE(kInput); ++i) { in TEST()
363 ASSERT_EQ(kInput[i], fixed[i]); in TEST()
368 int const kInput[] = {2, 3, 5, 7, 11, 13, 17}; in TEST() local
369 absl::FixedArray<int, ABSL_ARRAYSIZE(kInput)> const fixed( in TEST()
370 kInput, kInput + ABSL_ARRAYSIZE(kInput)); in TEST()
371 ASSERT_EQ(ABSL_ARRAYSIZE(kInput), fixed.size()); in TEST()
[all …]
/external/webrtc/third_party/abseil-cpp/absl/container/
Dfixed_array_test.cc340 int const kInput[] = {2, 3, 5, 7, 11, 13, 17}; in TEST() local
341 absl::FixedArray<int, ABSL_ARRAYSIZE(kInput) - 1> const fixed( in TEST()
342 kInput, kInput + ABSL_ARRAYSIZE(kInput)); in TEST()
343 ASSERT_EQ(ABSL_ARRAYSIZE(kInput), fixed.size()); in TEST()
344 for (size_t i = 0; i < ABSL_ARRAYSIZE(kInput); ++i) { in TEST()
345 ASSERT_EQ(kInput[i], fixed[i]); in TEST()
350 int const kInput[] = {2, 3, 5, 7, 11, 13, 17}; in TEST() local
351 absl::FixedArray<int, ABSL_ARRAYSIZE(kInput)> const fixed( in TEST()
352 kInput, kInput + ABSL_ARRAYSIZE(kInput)); in TEST()
353 ASSERT_EQ(ABSL_ARRAYSIZE(kInput), fixed.size()); in TEST()
[all …]
/external/openscreen/util/
Dbig_endian_unittest.cc16 const uint8_t kInput[] = { in TEST() local
22 EXPECT_EQ(UINT8_C(0x05), ReadBigEndian<uint8_t>(kInput + 5)); in TEST()
23 EXPECT_EQ(UINT8_C(0xff), ReadBigEndian<uint8_t>(kInput + 16)); in TEST()
24 EXPECT_EQ(7, ReadBigEndian<int8_t>(kInput + 7)); in TEST()
25 EXPECT_EQ(-1, ReadBigEndian<int8_t>(kInput + 17)); in TEST()
27 EXPECT_EQ(UINT16_C(0x0001), ReadBigEndian<uint16_t>(kInput)); in TEST()
28 EXPECT_EQ(UINT16_C(0x0102), ReadBigEndian<uint16_t>(kInput + 1)); in TEST()
29 EXPECT_EQ(UINT16_C(0x0203), ReadBigEndian<uint16_t>(kInput + 2)); in TEST()
30 EXPECT_EQ(-1, ReadBigEndian<int16_t>(kInput + 16)); in TEST()
31 EXPECT_EQ(-2, ReadBigEndian<int16_t>(kInput + 17)); in TEST()
[all …]
/external/webrtc/modules/audio_coding/codecs/opus/test/
Dblocker_unittest.cc130 const float kInput[kNumInputChannels][kNumFrames] = { in TEST_F() local
135 input_cb.SetDataForTesting(kInput[0], sizeof(kInput) / sizeof(**kInput)); in TEST_F()
171 const float kInput[kNumInputChannels][kNumFrames] = { in TEST_F() local
176 input_cb.SetDataForTesting(kInput[0], sizeof(kInput) / sizeof(**kInput)); in TEST_F()
212 const float kInput[kNumInputChannels][kNumFrames] = { in TEST_F() local
217 input_cb.SetDataForTesting(kInput[0], sizeof(kInput) / sizeof(**kInput)); in TEST_F()
/external/skia/src/core/
DSkGlyphBuffer.cpp40 SkDEBUGCODE(fPhase = kInput); in startSource()
68 SkDEBUGCODE(fPhase = kInput); in startBitmapDevice()
98 SkDEBUGCODE(fPhase = kInput); in startGPUDevice()
102 SkASSERT(fPhase == kInput); in dumpInput()
DSkImageFilterTypes.h475 kInput, enumerator
533 static_assert((kU != Usage::kInput) || (kI != Usage::kInput0 && kI != Usage::kInput1), in FilterResult()
536 (kI == kU || kI == Usage::kInput || kI == Usage::kOutput), in FilterResult()
544 static_assert((kU != Usage::kInput) || (kI != Usage::kInput0 && kI != Usage::kInput1), in FilterResult()
547 (kI == kU || kI == Usage::kInput || kI == Usage::kOutput), in FilterResult()
610 const FilterResult<For::kInput>& source) in Context()
657 const FilterResult<For::kInput>& source() const { return fSource; } in source()
705 FilterResult<For::kInput> fSource;
/external/tensorflow/tensorflow/lite/delegates/coreml/builders/
Dfully_connected_op_builder.cc108 const int kInput = 0; in RegisterInputs() local
111 AddInput(inputs->data[kInput]); in RegisterInputs()
148 const int kInput = 0; in IsFullyConnectedOpSupported() local
156 TF_LITE_ENSURE_OK(context, GetInputSafe(context, node, kInput, &input)); in IsFullyConnectedOpSupported()
/external/tensorflow/tensorflow/lite/kernels/
Dexpand_dims.cc30 enum { kInput = 0, kAxis }; enumerator
76 TF_LITE_ENSURE_OK(context, GetInputSafe(context, node, kInput, &input)); in Prepare()
95 TF_LITE_ENSURE_OK(context, GetInputSafe(context, node, kInput, &input)); in Eval()
/external/webrtc/modules/audio_processing/vad/
Dpole_zero_filter_unittest.cc26 static const int16_t kInput[kInputSamples] = { variable
71 my_filter_->Filter(&kInput[n * num_subframe_samples], num_subframe_samples, in FilterSubframes()
/external/pdfium/core/fxcodec/
Dprogressivedecoder_unittest.cpp22 static constexpr uint8_t kInput[] = { in TEST() local
379 auto source = pdfium::MakeRetain<CFX_ReadOnlyMemoryStream>(kInput); in TEST()
/external/tensorflow/tensorflow/lite/delegates/flex/
Dkernel_test.cc233 static constexpr int kInput = 0; member in tflite::flex::testing::MultipleSubgraphsTest
243 SetValues(kInput, input); in PrepareInterpreter()
257 AddTensors(kMaxTensors, {kInput, kOnes, kTwos}, {12}, kTfLiteFloat32, {3}); in TEST_F()
290 AddTensors(kMaxTensors, {kInput, kOnes, kTwos}, {12}, kTfLiteFloat32, {3}); in TEST_F()
326 AddTensors(kMaxTensors, {kInput, kOnes, kTwos}, {12}, kTfLiteFloat32, {3}); in TEST_F()

123