Home
last modified time | relevance | path

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

123

/hardware/libhardware/modules/camera/3_4/metadata/
Dtest_common.h36 const T* expected, in ExpectMetadataEq() argument
44 EXPECT_EQ(data[i], expected[i]); in ExpectMetadataEq()
52 T expected) { in ExpectMetadataEq() argument
53 ExpectMetadataEq(metadata, tag, &expected, 1); in ExpectMetadataEq()
60 const std::vector<T>& expected) { in ExpectMetadataEq() argument
61 ExpectMetadataEq(metadata, tag, expected.data(), expected.size()); in ExpectMetadataEq()
68 const std::array<T, N>& expected) { in ExpectMetadataEq() argument
69 ExpectMetadataEq(metadata, tag, expected.data(), N); in ExpectMetadataEq()
76 const ArrayVector<T, N>& expected) { in ExpectMetadataEq() argument
78 metadata, tag, expected.data(), expected.total_num_elements()); in ExpectMetadataEq()
[all …]
Dslider_control_options_test.cpp50 std::vector<int> expected{min_, max_}; in TEST_F() local
51 EXPECT_EQ(dut_->MetadataRepresentation(), expected); in TEST_F()
65 int expected = max_ - 1; in TEST_F() local
66 ASSERT_TRUE(dut_->IsSupported(expected)); in TEST_F()
68 .WillOnce(DoAll(SetArgPointee<1>(expected), Return(true))); in TEST_F()
69 int actual = expected - 1; in TEST_F()
71 EXPECT_EQ(actual, expected); in TEST_F()
79 int expected = min_; in TEST_F() local
81 ASSERT_TRUE(dut_->IsSupported(expected)); in TEST_F()
87 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.cpp79 int expected = translation.second; in TEST_F() local
80 int actual = expected + 1; in TEST_F()
82 EXPECT_EQ(actual, expected); in TEST_F()
143 int32_t expected = 12; in TEST_F() local
145 metadata_.get(), max_inputs_tag_, expected), in TEST_F()
148 int32_t actual = expected + 1; in TEST_F()
150 EXPECT_EQ(actual, expected); in TEST_F()
156 int32_t expected = 0; in TEST_F() local
157 int32_t actual = expected + 1; in TEST_F()
159 EXPECT_EQ(actual, expected); in TEST_F()
[all …]
Dmenu_control_options_test.cpp62 int expected = options_[2]; in TEST_F() local
63 ASSERT_TRUE(dut_->IsSupported(expected)); in TEST_F()
65 .WillOnce(DoAll(SetArgPointee<1>(expected), Return(true))); in TEST_F()
66 int actual = expected - 1; in TEST_F()
68 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.cpp62 virtual void CompareTags(const std::set<int32_t>& expected, in CompareTags() argument
64 ASSERT_EQ(expected.size(), actual.count); in CompareTags()
66 EXPECT_NE(expected.find(actual.data.i32[i]), expected.end()); in CompareTags()
Dcontrol_test.cpp130 std::vector<uint8_t> expected{1, 10, 20}; in TEST_F() local
132 .WillOnce(Return(expected)); in TEST_F()
134 ExpectOptions(expected); in TEST_F()
/hardware/interfaces/audio/common/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()
62 Result expected, const Return<Result>& ret) { in assertResult() argument
64 [&] { return assertResult(e_expr, r_expr, expected, Result{ret}); }); in assertResult()
69 const std::vector<Result>& expected, Result result) { in assertResult() argument
70 if (std::find(expected.begin(), expected.end(), result) != expected.end()) { in assertResult()
76 << "\n Which is: " << ::testing::PrintToString(expected); in assertResult()
81 const std::vector<Result>& expected, in assertResult() argument
84 [&] { return assertResult(e_expr, r_expr, expected, Result{ret}); }); in assertResult()
[all …]
/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.cpp60 bool expected = true) { in AddRequest() argument
63 EXPECT_EQ(dut_->CanAddRequest(*request), expected); in AddRequest()
64 if (expected) { in AddRequest()
67 EXPECT_EQ(dut_->Add(request), expected); in AddRequest()
68 if (expected) { in AddRequest()
90 std::shared_ptr<CaptureRequest> expected = GenerateCaptureRequest(frame, {}); in TEST_F() local
92 expected->input_buffer.reset( in TEST_F()
96 EXPECT_TRUE(dut_->Add(expected)); in TEST_F()
217 std::set<std::shared_ptr<CaptureRequest>> expected; in TEST_F() local
218 expected.insert(request1); in TEST_F()
[all …]
/hardware/interfaces/renderscript/1.0/vts/functional/
DVtsCopyTests.cpp193 std::vector<float> dataIn(512*512), dataOut(256*256), expected(256*256); in TEST_F() local
214 expected[i*256 + j] = dataIn[(i+128)*512 + (j+128)]; in TEST_F()
217 EXPECT_EQ(expected, dataOut); in TEST_F()
245 std::vector<float> dataIn(128*128*128), dataOut(64*64*64), expected(64*64*64); in TEST_F() local
267 expected[i*64*64 + j*64 + k] = dataIn[(i+32)*128*128 + (j+32)*128 + (k+32)]; in TEST_F()
271 EXPECT_EQ(expected, dataOut); in TEST_F()
294 std::vector<float> dataIn(512*512), dataOut(256*256), expected; in TEST_F() local
325 expected.push_back(i * 512 + j); in TEST_F()
328 EXPECT_EQ(expected, dataOut); in TEST_F()
351 std::vector<uint8_t> dataIn(64*64), dataOut(32*32), expected(32*32); in TEST_F() local
[all …]
DVtsScriptTests.cpp208 std::vector<uint8_t> dataIn(64), dataOut(64), expected(64); in TEST_F() local
210 std::generate(expected.begin(), expected.end(), [](){ static uint8_t val = 1; return val++; }); in TEST_F()
230 EXPECT_EQ(expected, dataOut); in TEST_F()
311 std::vector<int> dataIn(64), dataOut(64), expected(64, 5); in TEST_F() local
321 EXPECT_EQ(expected, dataOut); in TEST_F()
427 std::vector<uint8_t> dataIn(128, 128), dataOut(128, 0), expected(128, 7+1); in TEST_F() local
487 EXPECT_EQ(expected, dataOut); in TEST_F()
504 std::vector<uint8_t> dataIn(128, 128), dataOut(128, 0), expected(128, 128 + 1); in TEST_F() local
547 EXPECT_EQ(expected, dataOut); in TEST_F()
/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.bp18 // Lists all dependencies that can *not* be expected on the device.
24 // Lists all system dependencies that can be expected on the device.
/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.
/hardware/interfaces/automotive/vehicle/2.0/default/common/include/vhal_v2_0/
DVehicleObjectPool.h219 bool check(hidl_vec<VecType>* vec, bool expected) { in check() argument
220 return vec->size() == (expected ? mVectorSize : 0); in check()
/hardware/interfaces/automotive/vehicle/2.0/default/tests/
DVehicleHalTestUtils.h189 std::initializer_list<T> expected, in assertAllExistsAnyOrder() argument
192 std::set<T> expectedSet = expected; in assertAllExistsAnyOrder()
/hardware/intel/common/libmix/mix_video/src/
Dmixframemanager.c320 guint64 expected, guint64 tolerance, guint64 *frametimestamp) { in get_expected_frame_from_array() argument
330 if (!array || !expected || !tolerance || !frametimestamp || expected < tolerance) { in get_expected_frame_from_array()
375 if (lowest_timestamp <= expected + tolerance) in get_expected_frame_from_array()
/hardware/libhardware/tests/keymaster/
Dkeymaster_test.cpp546 Unique_EVP_PKEY expected(EVP_PKCS82PKEY(expectedPkcs8.get())); in TEST_F() local
548 ASSERT_EQ(1, EVP_PKEY_cmp(expected.get(), actual.get())) in TEST_F()
582 Unique_EVP_PKEY expected(EVP_PKCS82PKEY(expectedPkcs8.get())); in TEST_F() local
584 ASSERT_EQ(1, EVP_PKEY_cmp(expected.get(), actual.get())) in TEST_F()
932 Unique_EVP_PKEY expected(d2i_PUBKEY((EVP_PKEY**) NULL, &tmp, in TEST_F() local
935 Unique_EC_KEY ecKey(EVP_PKEY_get1_EC_KEY(expected.get())); in TEST_F()
/hardware/interfaces/vibrator/1.1/
DIVibrator.hal31 * @return lengthMs The length of time the event is expected to take in
/hardware/libhardware/tests/hardware/
Dstruct-offset.cpp28 template <size_t actual, size_t expected> void check_member(void) { in check_member()
29 static_assert(actual == expected, ""); in check_member()

123