Home
last modified time | relevance | path

Searched refs:expected (Results 1 – 25 of 105) sorted by relevance

12345

/hardware/libhardware/modules/camera/3_4/metadata/
Dtest_common.h35 const T* expected, in ExpectMetadataEq() argument
43 EXPECT_EQ(data[i], expected[i]); in ExpectMetadataEq()
51 T expected) { in ExpectMetadataEq() argument
52 ExpectMetadataEq(metadata, tag, &expected, 1); in ExpectMetadataEq()
59 const std::vector<T>& expected) { in ExpectMetadataEq() argument
60 ExpectMetadataEq(metadata, tag, expected.data(), expected.size()); in ExpectMetadataEq()
67 const std::array<T, N>& expected) { in ExpectMetadataEq() argument
68 ExpectMetadataEq(metadata, tag, expected.data(), N); in ExpectMetadataEq()
75 const ArrayVector<T, N>& expected) { in ExpectMetadataEq() argument
77 metadata, tag, expected.data(), expected.total_num_elements()); in ExpectMetadataEq()
[all …]
Dslider_control_options_test.cpp49 std::vector<int> expected{min_, max_}; in TEST_F() local
50 EXPECT_EQ(dut_->MetadataRepresentation(), expected); in TEST_F()
64 int expected = max_ - 1; in TEST_F() local
65 ASSERT_TRUE(dut_->IsSupported(expected)); in TEST_F()
67 .WillOnce(DoAll(SetArgPointee<1>(expected), Return(true))); in TEST_F()
68 int actual = expected - 1; in TEST_F()
70 EXPECT_EQ(actual, expected); in TEST_F()
78 int expected = min_; in TEST_F() local
80 ASSERT_TRUE(dut_->IsSupported(expected)); in TEST_F()
86 EXPECT_EQ(actual, expected); in TEST_F()
[all …]
Dmap_converter_test.cpp38 virtual void ExpectConvertToV4L2(int32_t converted, int32_t expected) { in ExpectConvertToV4L2() argument
43 int32_t actual = expected + 1; // Initialize to non-expected value. in ExpectConvertToV4L2()
45 EXPECT_EQ(actual, expected); in ExpectConvertToV4L2()
96 int expected = 99; in TEST_F() local
98 .WillOnce(DoAll(SetArgPointee<1>(expected), Return(0))); in TEST_F()
100 int actual = expected + 1; // Initialize to non-expected value. in TEST_F()
102 EXPECT_EQ(actual, expected); in TEST_F()
Dmetadata_reader_test.cpp75 int expected = translation.second; in TEST_F() local
76 int actual = expected + 1; in TEST_F()
78 EXPECT_EQ(actual, expected); in TEST_F()
139 int32_t expected = 12; in TEST_F() local
141 metadata_.get(), max_inputs_tag_, expected), in TEST_F()
144 int32_t actual = expected + 1; in TEST_F()
146 EXPECT_EQ(actual, expected); in TEST_F()
152 int32_t expected = 0; in TEST_F() local
153 int32_t actual = expected + 1; in TEST_F()
155 EXPECT_EQ(actual, expected); in TEST_F()
[all …]
Dmenu_control_options_test.cpp61 int expected = options_[2]; in TEST_F() local
62 ASSERT_TRUE(dut_->IsSupported(expected)); in TEST_F()
64 .WillOnce(DoAll(SetArgPointee<1>(expected), Return(true))); in TEST_F()
65 int actual = expected - 1; in TEST_F()
67 EXPECT_EQ(actual, expected); in TEST_F()
Dtagged_control_delegate_test.cpp58 uint8_t expected = 3; in TEST_F() local
60 .WillOnce(DoAll(SetArgPointee<0>(expected), Return(0))); in TEST_F()
62 uint8_t actual = expected + 1; // Initialize to an incorrect value. in TEST_F()
64 EXPECT_EQ(actual, expected); in TEST_F()
Dranged_converter_test.cpp39 virtual void ExpectConvert(int32_t converted, int32_t expected) { in ExpectConvert() argument
44 int32_t actual = expected + 1; // Initialize to non-expected value. in ExpectConvert()
46 EXPECT_EQ(actual, expected); in ExpectConvert()
Dstate_test.cpp74 uint8_t expected = 99; in TEST_F() local
76 .WillOnce(DoAll(SetArgPointee<0>(expected), Return(0))); in TEST_F()
83 ExpectMetadataEq(metadata, tag_, expected); in TEST_F()
Dtagged_control_options_test.cpp58 std::vector<uint8_t> expected{3, 4, 5}; in TEST_F() local
60 .WillOnce(Return(expected)); in TEST_F()
62 ASSERT_EQ(dut_->MetadataRepresentation(), expected); in TEST_F()
Dmetadata_test.cpp61 virtual void CompareTags(const std::set<int32_t>& expected, in CompareTags() argument
63 ASSERT_EQ(expected.size(), actual.count); in CompareTags()
65 EXPECT_NE(expected.find(actual.data.i32[i]), expected.end()); in CompareTags()
/hardware/interfaces/audio/common/all-versions/test/utility/include/utility/
DAssertOk.h54 Result expected, Result result) { in assertResult() argument
55 return ::testing::AssertionResult(expected == result) in assertResult()
57 << "\nExpected: " << e_expr << "\nWhich is: " << ::testing::PrintToString(expected); in assertResult()
63 Result expected, const Return<Result>& ret) { in assertResult() argument
65 [&] { return assertResult(e_expr, r_expr, expected, Result{ret}); }); in assertResult()
71 const std::initializer_list<Result>& expected, in assertResult() argument
73 if (std::find(expected.begin(), expected.end(), result) != expected.end()) { in assertResult()
79 << "\n Which is: " << ::testing::PrintToString(expected); in assertResult()
85 const std::initializer_list<Result>& expected, in assertResult() argument
88 [&] { return assertResult(e_expr, r_expr, expected, Result{ret}); }); in assertResult()
[all …]
/hardware/google/pixel/misc_writer/
Dmisc_writer_test.cpp45 void CheckMiscPartitionVendorSpaceContent(size_t offset, const std::string& expected);
51 const std::string& expected) { in CheckMiscPartitionVendorSpaceContent() argument
52 ASSERT_TRUE(MiscWriter::OffsetAndSizeInVendorSpace(offset, expected.size())); in CheckMiscPartitionVendorSpaceContent()
59 std::string content(expected.size(), 0); in CheckMiscPartitionVendorSpaceContent()
62 ASSERT_EQ(expected, content); in CheckMiscPartitionVendorSpaceContent()
69 std::string expected = "theme-dark"; in TEST_F() local
70 CheckMiscPartitionVendorSpaceContent(0, expected); in TEST_F()
74 std::string zeros(expected.size(), 0); in TEST_F()
82 std::string expected = "theme-dark"; in TEST_F() local
83 CheckMiscPartitionVendorSpaceContent(offset, expected); in TEST_F()
[all …]
/hardware/interfaces/confirmationui/support/test/
Dmsg_formatting_test.cpp113 HardwareAuthToken expected, actual; in TEST() local
114 expected.authenticatorId = 0xa1a3a4a5a6a7a8; in TEST()
115 expected.authenticatorType = HardwareAuthenticatorType::NONE; in TEST()
116 expected.challenge = 0xb1b2b3b4b5b6b7b8; in TEST()
117 expected.userId = 0x1122334455667788; in TEST()
118 expected.timestamp = 0xf1f2f3f4f5f6f7f8; in TEST()
119 expected.mac = in TEST()
124 out = write(Message<HardwareAuthToken>(), out, expected); in TEST()
127 ASSERT_EQ(expected, actual); in TEST()
/hardware/libhardware/modules/sensors/tests/
DSensorEventQueue_test.cpp16 bool checkWritableBufferSize(SensorEventQueue* queue, int requested, int expected) { in checkWritableBufferSize() argument
19 if (actual != expected) { in checkWritableBufferSize()
20 printf("Expected buffer size was %d; actual was %d\n", expected, actual); in checkWritableBufferSize()
26 bool checkSize(SensorEventQueue* queue, int expected) { in checkSize() argument
28 if (actual != expected) { in checkSize()
29 printf("Expected queue size was %d; actual was %d\n", expected, actual); in checkSize()
35 bool checkInt(const char* msg, int expected, int actual) { in checkInt() argument
36 if (actual != expected) { in checkInt()
37 printf("%s; expected %d; actual was %d\n", msg, expected, actual); in checkInt()
/hardware/libhardware/modules/camera/3_4/
Drequest_tracker_test.cpp58 bool expected = true) { in AddRequest() argument
61 EXPECT_EQ(dut_->CanAddRequest(*request), expected); in AddRequest()
62 if (expected) { in AddRequest()
65 EXPECT_EQ(dut_->Add(request), expected); in AddRequest()
66 if (expected) { in AddRequest()
88 std::shared_ptr<CaptureRequest> expected = GenerateCaptureRequest(frame, {}); in TEST_F() local
90 expected->input_buffer.reset( in TEST_F()
94 EXPECT_TRUE(dut_->Add(expected)); in TEST_F()
215 std::set<std::shared_ptr<CaptureRequest>> expected; in TEST_F() local
216 expected.insert(request1); in TEST_F()
[all …]
/hardware/google/av/codec2/include/
DC2BufferBase.h83 : expected(consumer | producer) { } in C2MemoryUsage()
86 : expected(expected_) { } in C2MemoryUsage()
88 uint64_t expected; // expected buffer usage member
/hardware/interfaces/renderscript/1.0/vts/functional/
DVtsCopyTests.cpp193 std::vector<float> dataIn(512*512), dataOut(256*256), expected(256*256); in TEST_P() local
214 expected[i*256 + j] = dataIn[(i+128)*512 + (j+128)]; in TEST_P()
217 EXPECT_EQ(expected, dataOut); in TEST_P()
245 std::vector<float> dataIn(128*128*128), dataOut(64*64*64), expected(64*64*64); in TEST_P() local
267 expected[i*64*64 + j*64 + k] = dataIn[(i+32)*128*128 + (j+32)*128 + (k+32)]; in TEST_P()
271 EXPECT_EQ(expected, dataOut); in TEST_P()
294 std::vector<float> dataIn(512*512), dataOut(256*256), expected; in TEST_P() local
325 expected.push_back(i * 512 + j); in TEST_P()
328 EXPECT_EQ(expected, dataOut); in TEST_P()
351 std::vector<uint8_t> dataIn(64*64), dataOut(32*32), expected(32*32); in TEST_P() local
[all …]
DVtsScriptTests.cpp208 std::vector<uint8_t> dataIn(64), dataOut(64), expected(64); in TEST_P() local
210 std::generate(expected.begin(), expected.end(), [](){ static uint8_t val = 1; return val++; }); in TEST_P()
230 EXPECT_EQ(expected, dataOut); in TEST_P()
311 std::vector<int> dataIn(64), dataOut(64), expected(64, 5); in TEST_P() local
321 EXPECT_EQ(expected, dataOut); in TEST_P()
427 std::vector<uint8_t> dataIn(128, 128), dataOut(128, 0), expected(128, 7+1); in TEST_P() local
487 EXPECT_EQ(expected, dataOut); in TEST_P()
504 std::vector<uint8_t> dataIn(128, 128), dataOut(128, 0), expected(128, 128 + 1); in TEST_P() local
547 EXPECT_EQ(expected, dataOut); in TEST_P()
/hardware/interfaces/drm/1.1/vts/functional/include/android/hardware/drm/1.1/vts/
Ddrm_hal_clearkey_test.h146 bool ValueEquals(DrmMetricGroup::ValueType type, const std::string& expected, const CT& actual) { in ValueEquals() argument
147 return type == DrmMetricGroup::ValueType::STRING_TYPE && expected == actual.stringValue; in ValueEquals()
151 bool ValueEquals(DrmMetricGroup::ValueType type, const int64_t expected, const CT& actual) { in ValueEquals() argument
152 return type == DrmMetricGroup::ValueType::INT64_TYPE && expected == actual.int64Value; in ValueEquals()
156 bool ValueEquals(DrmMetricGroup::ValueType type, const double expected, const CT& actual) { in ValueEquals() argument
157 return type == DrmMetricGroup::ValueType::DOUBLE_TYPE && expected == actual.doubleValue; in ValueEquals()
/hardware/interfaces/gnss/1.0/
Dtypes.hal87 * Represents expected horizontal position accuracy, radial, in meters
93 * Represents expected vertical position accuracy in meters
99 * Represents expected speed accuracy in meter per seconds
105 * Represents expected bearing accuracy in degrees
/hardware/interfaces/
DAndroid.bp22 // Lists all dependencies that can *not* be expected on the device.
34 // Lists all system dependencies that can be expected on the device.
/hardware/interfaces/dumpstate/1.1/vts/functional/
DVtsHalDumpstateV1_1TargetTest.cpp103 void AssertStatusForMode(const Return<DumpstateStatus>& status, const DumpstateStatus expected, in AssertStatusForMode() argument
109 ASSERT_EQ(expected, status) in AssertStatusForMode()
111 << "): status should be DumpstateStatus::" << toString(expected) in AssertStatusForMode()
116 ASSERT_TRUE(status == expected || status == DumpstateStatus::UNSUPPORTED_MODE) in AssertStatusForMode()
118 << "): status should be DumpstateStatus::" << toString(expected) in AssertStatusForMode()
122 if (status == expected && additional_assertions != nullptr) { in AssertStatusForMode()
/hardware/interfaces/confirmationui/1.0/vts/functional/
DVtsHalConfirmationUIV1_0TargetTest.cpp218 #define ASSERT_HAL_CALL(expected, call) \ argument
222 ASSERT_EQ(expected, static_cast<decltype(expected)>(result)); \
463 auto expected = hex2str("2377fbcaa7fb3f6c20cfa1d9ebc60e9922cf58c909e25e300f3cb57f7805c886"); in TEST() local
467 hexdump(std::cout, reinterpret_cast<const uint8_t*>(expected.data()), 32) << std::endl; in TEST()
471 support::ByteBufferProxy expected_bytes(expected); in TEST()
473 ASSERT_EQ(expected, result.value()); in TEST()
/hardware/interfaces/automotive/
DREADME.md9 The HALs are not (yet) frozen, as the HAL definition is expected to evolve
/hardware/interfaces/automotive/evs/1.0/
DIEvsDisplay.hal41 * then expected to request the VISIBLE_ON_NEXT_FRAME state, and then begin providing
42 * video. When the display is no longer required, the client is expected to request
77 * buffers are expected to be returned before the IEvsDisplay interface is destroyed.

12345