Home
last modified time | relevance | path

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

12

/hardware/interfaces/audio/2.0/vts/functional/utility/
DAssertOk.h49 Result expected, Result result) { in assertResult() argument
50 return ::testing::AssertionResult(expected == result) in assertResult()
54 << "\nWhich is: " << ::testing::PrintToString(expected); in assertResult()
60 Result expected, in assertResult() argument
63 return assertResult(e_expr, r_expr, expected, Result{ret}); in assertResult()
69 const char* e_expr, const char* r_expr, const std::vector<Result>& expected, in assertResult() argument
71 if (std::find(expected.begin(), expected.end(), result) != expected.end()) { in assertResult()
78 << "\n Which is: " << ::testing::PrintToString(expected); in assertResult()
83 const char* e_expr, const char* r_expr, const std::vector<Result>& expected, in assertResult() argument
86 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/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
DIGnssNavigationMessage.hal43 * expected that the HAL will not generate any updates upon returning
DIGnssMeasurementCallback.hal78 * The expected behavior here is for GNSS HAL to set all the flags that applies.
145 * For local hardware clock, this value is expected to be monotonically
260 * It is expected, esp. during periods where there are few GNSS signals
276 * by calculating or reporting expected measurements based on known or estimated
474 * However, it is expected that the data is only accurate when:
/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/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/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/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/libhardware/tests/hardware/
Dstruct-offset.cpp29 template <size_t actual, size_t expected> void check_member(void) { in check_member()
30 static_assert(actual == expected, ""); in check_member()
/hardware/interfaces/power/1.0/
Dtypes.hal23 * then CPU and GPU load is expected soon, and it may be appropriate
33 * events are incoming. CPU and GPU load may be expected soon,
/hardware/interfaces/usb/1.0/
DIUsbCallback.hal21 * Caller is expected to register the callback object using setCallback method
/hardware/interfaces/vibrator/1.0/
DIVibrator.hal65 * @return lengthMs The length of time the event is expected to take in
/hardware/interfaces/media/omx/1.0/vts/functional/
DREADME.md12 …ds testing these (omx core). Every standard OMX compatible component is expected to pass these tes…
/hardware/interfaces/wifi/1.0/
DIWifiChipEventCallback.hal64 * It is not expected that driver will necessarily always empty the ring
DIWifiChip.hal81 * available combinations, [{STA} <= 1] and [{AP} <= 1] then it is expected
83 * is not expected that both a STA and AP interface could be created. If it
87 * When switching between two available combinations it is expected that
652 * The driver is expected to start maintaining these stats once the chip
/hardware/interfaces/sensors/1.0/vts/functional/
DVtsHalSensorsV1_0TargetTest.cpp666 SensorFlagBits expected = expectedReportModeForType(type); in assertTypeMatchReportMode() local
668 ASSERT_TRUE(expected == (SensorFlagBits) -1 || expected == reportMode) in assertTypeMatchReportMode()
670 << "expected=" << static_cast<int>(expected); in assertTypeMatchReportMode()
/hardware/interfaces/camera/device/3.2/
DICameraDeviceSession.hal124 * This call is expected to be heavyweight and possibly take several hundred
195 * expected to be in flight at once, to maintain full output frame rate.
296 * All requests currently in the HAL are expected to be returned as soon as
335 * 3.1. Call notify with CAMERA3_MSG_ERROR_RESULT if some of the expected
/hardware/interfaces/camera/device/1.0/
DICameraDevicePreviewCallback.hal94 * Set the expected buffering mode for the preview output.
/hardware/interfaces/graphics/bufferqueue/1.0/
DIGraphicBufferProducer.hal155 * buffer to the given slot index, and the client is expected to mirror the
239 * Once the client is done filling this buffer, it is expected to transfer
245 * expected to call requestBuffer immediately.
248 * expected to release all of the mirrored slot->buffer mappings.
366 * expected to release all of the mirrored slot->buffer mappings.
/hardware/interfaces/audio/2.0/
DIStreamIn.hal126 * Audio driver is expected to reset the value to 0 and restart counting
/hardware/interfaces/keymaster/3.0/vts/functional/
Dkeymaster_hidl_hal_test.cpp824 void CheckKm0CryptoParam(TypedTag<tag_type, tag> ttag, ValueT expected) { in CheckKm0CryptoParam() argument
827 EXPECT_TRUE(contains(key_characteristics_.teeEnforced, ttag, expected)); in CheckKm0CryptoParam()
830 EXPECT_TRUE(contains(key_characteristics_.softwareEnforced, ttag, expected)); in CheckKm0CryptoParam()
836 void CheckKm1CryptoParam(TypedTag<tag_type, tag> ttag, ValueT expected) { in CheckKm1CryptoParam() argument
839 EXPECT_TRUE(contains(key_characteristics_.teeEnforced, ttag, expected)); in CheckKm1CryptoParam()
842 EXPECT_TRUE(contains(key_characteristics_.softwareEnforced, ttag, expected)); in CheckKm1CryptoParam()
848 void CheckKm2CryptoParam(TypedTag<tag_type, tag> ttag, ValueT expected) { in CheckKm2CryptoParam() argument
851 EXPECT_TRUE(contains(key_characteristics_.teeEnforced, ttag, expected)); in CheckKm2CryptoParam()
854 EXPECT_TRUE(contains(key_characteristics_.softwareEnforced, ttag, expected)); in CheckKm2CryptoParam()

12