/hardware/libhardware/modules/camera/3_4/metadata/ |
D | metadata_reader_test.cpp | 76 int actual = expected + 1; in TEST_F() local 77 EXPECT_EQ(dut_->Facing(&actual), 0); in TEST_F() 78 EXPECT_EQ(actual, expected); in TEST_F() 88 int actual = 0; in TEST_F() local 89 EXPECT_EQ(dut_->Facing(&actual), -EINVAL); in TEST_F() 94 int actual = 0; in TEST_F() local 95 EXPECT_EQ(dut_->Facing(&actual), -ENOENT); in TEST_F() 105 int actual = orientation + 1; in TEST_F() local 106 EXPECT_EQ(dut_->Orientation(&actual), 0); in TEST_F() 107 EXPECT_EQ(actual, orientation); in TEST_F() [all …]
|
D | default_option_delegate_test.cpp | 41 int actual = 0; in TEST_F() local 43 dut_->DefaultValueForTemplate(CAMERA3_TEMPLATE_STILL_CAPTURE, &actual)); in TEST_F() 44 EXPECT_EQ(actual, defaults_[CAMERA3_TEMPLATE_STILL_CAPTURE]); in TEST_F() 48 int actual = 0; in TEST_F() local 51 &actual)); in TEST_F() 52 EXPECT_EQ(actual, defaults_[OTHER_TEMPLATES]); in TEST_F() 57 int actual = 0; in TEST_F() local 59 &actual)); in TEST_F()
|
D | slider_control_options_test.cpp | 68 int actual = expected - 1; in TEST_F() local 69 EXPECT_EQ(dut_->DefaultValueForTemplate(template_index, &actual), 0); in TEST_F() 70 EXPECT_EQ(actual, expected); in TEST_F() 84 int actual = default_val; in TEST_F() local 85 EXPECT_EQ(dut_->DefaultValueForTemplate(template_index, &actual), 0); in TEST_F() 86 EXPECT_EQ(actual, expected); in TEST_F() 100 int actual = default_val; in TEST_F() local 101 EXPECT_EQ(dut_->DefaultValueForTemplate(template_index, &actual), 0); in TEST_F() 102 EXPECT_EQ(actual, expected); in TEST_F() 107 int actual = min_ - 1; in TEST_F() local [all …]
|
D | menu_control_options_test.cpp | 65 int actual = expected - 1; in TEST_F() local 66 EXPECT_EQ(dut_->DefaultValueForTemplate(template_index, &actual), 0); in TEST_F() 67 EXPECT_EQ(actual, expected); in TEST_F() 79 int actual = default_val; in TEST_F() local 80 EXPECT_EQ(dut_->DefaultValueForTemplate(template_index, &actual), 0); in TEST_F() 82 EXPECT_TRUE(dut_->IsSupported(actual)); in TEST_F() 87 int actual = -1; in TEST_F() local 88 ASSERT_FALSE(dut_->IsSupported(actual)); in TEST_F() 95 EXPECT_EQ(dut_->DefaultValueForTemplate(template_index, &actual), 0); in TEST_F() 96 EXPECT_TRUE(dut_->IsSupported(actual)); in TEST_F()
|
D | ignored_control_delegate_test.cpp | 28 int32_t actual = 0; in TEST() local 29 ASSERT_EQ(control.GetValue(&actual), 0); in TEST() 30 EXPECT_EQ(actual, value); in TEST() 38 int32_t actual = 0; in TEST() local 39 ASSERT_EQ(control.GetValue(&actual), 0); in TEST() 41 EXPECT_EQ(actual, value); in TEST()
|
D | no_effect_control_delegate_test.cpp | 28 int32_t actual = 0; in TEST() local 29 ASSERT_EQ(control.GetValue(&actual), 0); in TEST() 30 EXPECT_EQ(actual, value); in TEST() 38 int32_t actual = 0; in TEST() local 39 ASSERT_EQ(control.GetValue(&actual), 0); in TEST() 40 EXPECT_EQ(actual, new_value); in TEST()
|
D | map_converter_test.cpp | 43 int32_t actual = expected + 1; // Initialize to non-expected value. in ExpectConvertToV4L2() local 44 ASSERT_EQ(dut_->MetadataToV4L2(initial, &actual), 0); in ExpectConvertToV4L2() 45 EXPECT_EQ(actual, expected); in ExpectConvertToV4L2() 100 int actual = expected + 1; // Initialize to non-expected value. in TEST_F() local 101 ASSERT_EQ(dut_->V4L2ToMetadata(kv->second, &actual), 0); in TEST_F() 102 EXPECT_EQ(actual, expected); in TEST_F()
|
D | ranged_converter_test.cpp | 44 int32_t actual = expected + 1; // Initialize to non-expected value. in ExpectConvert() local 45 ASSERT_EQ(dut_->MetadataToV4L2(initial, &actual), 0); in ExpectConvert() 46 EXPECT_EQ(actual, expected); in ExpectConvert()
|
/hardware/interfaces/automotive/vehicle/2.0/utils/tests/ |
D | UserHalHelper_test.cpp | 93 auto actual = toInitialUserInfoRequest(propValue); in TEST() local 95 ASSERT_TRUE(actual.ok()) << actual.error().message(); in TEST() 96 EXPECT_THAT(actual.value(), Eq(expected)); in TEST() 111 auto actual = toInitialUserInfoRequest(propValue); in TEST() local 113 ASSERT_TRUE(actual.ok()) << actual.error().message(); in TEST() 114 EXPECT_THAT(actual.value(), Eq(expected)); in TEST() 132 auto actual = toInitialUserInfoRequest(propValue); in TEST() local 134 ASSERT_TRUE(actual.ok()) << actual.error().message(); in TEST() 135 EXPECT_THAT(actual.value(), Eq(expected)); in TEST() 146 auto actual = toInitialUserInfoRequest(propValue); in TEST() local [all …]
|
/hardware/interfaces/automotive/vehicle/aidl/impl/fake_impl/userhal/test/ |
D | UserHalHelper_test.cpp | 108 auto actual = toInitialUserInfoRequest(propValue); in TEST() local 110 ASSERT_TRUE(actual.ok()) << actual.error().message(); in TEST() 111 EXPECT_THAT(actual.value(), Eq(expected)); in TEST() 127 auto actual = toInitialUserInfoRequest(propValue); in TEST() local 129 ASSERT_TRUE(actual.ok()) << actual.error().message(); in TEST() 130 EXPECT_THAT(actual.value(), Eq(expected)); in TEST() 140 auto actual = toInitialUserInfoRequest(propValue); in TEST() local 142 EXPECT_FALSE(actual.ok()) << "No error returned on invalid user flags"; in TEST() 152 auto actual = toInitialUserInfoRequest(propValue); in TEST() local 154 EXPECT_FALSE(actual.ok()) << "No error returned on mismatching property type"; in TEST() [all …]
|
/hardware/google/pixel/vibrator/drv2624/tests/ |
D | test-hwcal.cpp | 83 uint32_t actual = ~expect; in TEST_F() local 89 EXPECT_TRUE(mHwCal->getCloseLoopThreshold(&actual)); in TEST_F() 90 EXPECT_EQ(expect, actual); in TEST_F() 96 uint32_t actual = ~expect; in TEST_F() local 102 EXPECT_TRUE(mHwCal->getCloseLoopThreshold(&actual)); in TEST_F() 103 EXPECT_EQ(expect, actual); in TEST_F() 109 bool actual = !expect; in TEST_F() local 115 EXPECT_TRUE(mHwCal->getDynamicConfig(&actual)); in TEST_F() 116 EXPECT_EQ(expect, actual); in TEST_F() 122 bool actual = !expect; in TEST_F() local [all …]
|
/hardware/google/pixel/vibrator/cs40l25/tests/ |
D | test-hwcal.cpp | 74 uint32_t actual = ~expect; in TEST_F() local 80 EXPECT_TRUE(mHwCal->getF0(&actual)); in TEST_F() 81 EXPECT_EQ(expect, actual); in TEST_F() 85 uint32_t actual; in TEST_F() local 89 EXPECT_FALSE(mHwCal->getF0(&actual)); in TEST_F() 94 uint32_t actual = ~expect; in TEST_F() local 100 EXPECT_TRUE(mHwCal->getRedc(&actual)); in TEST_F() 101 EXPECT_EQ(expect, actual); in TEST_F() 105 uint32_t actual; in TEST_F() local 109 EXPECT_FALSE(mHwCal->getRedc(&actual)); in TEST_F() [all …]
|
D | test-hwapi.cpp | 115 std::string actual = std::string(std::istreambuf_iterator<char>(file), in verifyContents() local 117 EXPECT_EQ(expect, actual) << a.first; in verifyContents() 174 bool actual = !expect; in TEST_P() local 178 EXPECT_TRUE(func(*mHwApi, &actual)); in TEST_P() 179 EXPECT_EQ(expect, actual); in TEST_P() 187 bool actual = !expect; in TEST_P() local 191 EXPECT_TRUE(func(*mHwApi, &actual)); in TEST_P() 192 EXPECT_EQ(expect, actual); in TEST_P() 217 uint32_t actual = ~expect; in TEST_P() local 221 EXPECT_TRUE(func(*mHwApi, &actual)); in TEST_P() [all …]
|
/hardware/google/pixel/vibrator/cs40l26/tests/ |
D | test-hwcal.cpp | 76 std::string actual = std::to_string(~randInput); in TEST_F() local 82 EXPECT_TRUE(mHwCal->getF0(&actual)); in TEST_F() 83 EXPECT_EQ(expect, actual); in TEST_F() 87 std::string actual; in TEST_F() local 91 EXPECT_FALSE(mHwCal->getF0(&actual)); in TEST_F() 97 std::string actual = std::to_string(~randInput); in TEST_F() local 103 EXPECT_TRUE(mHwCal->getRedc(&actual)); in TEST_F() 104 EXPECT_EQ(expect, actual); in TEST_F() 108 std::string actual; in TEST_F() local 112 EXPECT_FALSE(mHwCal->getRedc(&actual)); in TEST_F() [all …]
|
/hardware/google/gfxstream/guest/OpenglSystemCommon/ |
D | QemuPipeStream.cpp | 158 ssize_t actual = 0; in commitBufferAndReadFully() local 161 actual = qemu_pipe_read(m_sock, m_buf, maxRead); in commitBufferAndReadFully() 163 if (actual > 0) { in commitBufferAndReadFully() 164 m_read = m_readLeft = actual; in commitBufferAndReadFully() 167 if (actual == 0) { in commitBufferAndReadFully() 185 actual = qemu_pipe_read(m_sock, m_buf, kReadSize); in commitBufferAndReadFully() 187 if (actual == 0) { in commitBufferAndReadFully() 192 if (actual > 0) { in commitBufferAndReadFully() 193 m_read = m_readLeft = actual; in commitBufferAndReadFully() 197 if (!qemu_pipe_try_again(actual)) { in commitBufferAndReadFully()
|
/hardware/libhardware/modules/sensors/tests/ |
D | SensorEventQueue_test.cpp | 18 int actual = queue->getWritableRegion(requested, &buffer); in checkWritableBufferSize() local 19 if (actual != expected) { in checkWritableBufferSize() 20 printf("Expected buffer size was %d; actual was %d\n", expected, actual); in checkWritableBufferSize() 27 int actual = queue->getSize(); in checkSize() local 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/google/gfxstream/guest/mesa/src/util/ |
D | u_atomic.h | 293 uint8_t actual = p_atomic_read(v); in p_atomic_xchg_8() local 296 expected = actual; in p_atomic_xchg_8() 297 actual = p_atomic_cmpxchg(v, expected, i); in p_atomic_xchg_8() 298 } while (expected != actual); in p_atomic_xchg_8() 299 return actual; in p_atomic_xchg_8() 304 uint16_t actual = p_atomic_read(v); in p_atomic_xchg_16() local 307 expected = actual; in p_atomic_xchg_16() 308 actual = p_atomic_cmpxchg(v, expected, i); in p_atomic_xchg_16() 309 } while (expected != actual); in p_atomic_xchg_16() 310 return actual; in p_atomic_xchg_16() [all …]
|
/hardware/google/gfxstream/guest/mesa/src/util/tests/ |
D | dag_test.cpp | 33 struct util_dynarray expect, actual; member in dag_test 41 util_dynarray_init(&actual, mem_ctx); in dag_test() 143 #define TEST_CHECK() EXPECT_PRED_FORMAT2(int_dynarrays_equal_pred, &expect, &actual) 159 dag_traverse_bottom_up(dag, output_cb, &actual); in TEST_F() 176 dag_traverse_bottom_up(dag, output_cb, &actual); in TEST_F() 202 dag_traverse_bottom_up(dag, output_cb, &actual); in TEST_F() 226 dag_traverse_bottom_up(dag, output_cb, &actual); in TEST_F() 254 dag_traverse_bottom_up(dag, output_cb, &actual); in TEST_F() 280 dag_traverse_bottom_up(dag, output_cb, &actual); in TEST_F()
|
D | process_test.c | 42 expect_equal_str(const char *expected, const char *actual, const char *test) in expect_equal_str() argument 44 if (strcmp(expected, actual)) { in expect_equal_str() 47 test, expected, actual); in expect_equal_str()
|
/hardware/google/gfxstream/guest/mesa/bin/ |
D | gen_calendar_entries_test.py | 183 actual = gen_calendar_entries.read_calendar() 185 assert actual == expected 202 actual = gen_calendar_entries.read_calendar() 211 assert actual == expected 228 actual = gen_calendar_entries.read_calendar() 238 assert actual == expected 254 actual = gen_calendar_entries.read_calendar() 265 assert actual == expected 300 actual = gen_calendar_entries.read_calendar() 302 assert actual == expected [all …]
|
/hardware/google/aemu/base/include/aemu/base/testing/ |
D | GTestUtils.h | 38 const Range2& actual) { in RangesMatch() argument 41 const auto actualSize = std::distance(std::begin(actual), std::end(actual)); in RangesMatch() 49 for (const auto& act : actual) { in RangesMatch()
|
/hardware/google/gfxstream/host/gl/ |
D | EmulatedEglFenceSync.cpp | 62 … EmulatedEglFenceSync* actual = EmulatedEglFenceSync::getFromHandle((uint64_t)(uintptr_t)fence); in sweep() local 63 if (!actual) return true; in sweep() 67 if (!actual->decRef() && in sweep() 68 actual->shouldDestroyWhenSignaled()) { in sweep() 69 actual->decRef(); in sweep()
|
/hardware/google/gfxstream/common/end2end/ |
D | GfxstreamEnd2EndTests.cpp | 645 Image actual; in AsImage() local 646 actual.width = ahb.GetWidth(); in AsImage() 647 if (actual.width == 0) { in AsImage() 650 actual.height = ahb.GetHeight(); in AsImage() 651 if (actual.height == 0) { in AsImage() 654 actual.pixels.resize(actual.width * actual.height); in AsImage() 664 std::memcpy(actual.pixels.data(), ahbPixels, actual.pixels.size() * sizeof(uint32_t)); in AsImage() 669 for (uint32_t& pixel : actual.pixels) { in AsImage() 675 return actual; in AsImage() 711 bool GfxstreamEnd2EndTest::AreImagesSimilar(const Image& expected, const Image& actual) { in AreImagesSimilar() argument [all …]
|
/hardware/google/gfxstream/guest/GoldfishAddressSpace/ |
D | AddressSpaceStream.cpp | 186 ssize_t actual = 0; in readFully() local 189 actual = speculativeRead(m_readBuf, maxRead); in readFully() 192 if (actual > 0) { in readFully() 193 m_read = m_readLeft = actual; in readFully() 196 if (actual == 0) { in readFully() 214 actual = speculativeRead(m_readBuf, kReadSize); in readFully() 216 if (actual == 0) { in readFully() 221 if (actual > 0) { in readFully() 222 m_read = m_readLeft = actual; in readFully() 234 ssize_t actual = speculativeRead(dst, wanted); in read() local [all …]
|
/hardware/google/gfxstream/host/tests/ |
D | GLSnapshotTesting.cpp | 48 T actual, in compareValue() argument 50 if (expected != actual) { in compareValue() 53 << testing::PrintToString(actual) << "\n\t expected:\t" in compareValue() 117 const std::vector<T>& actual, in compareVector() argument 120 if (expected.size() != actual.size()) { in compareVector() 121 message << " (!) sizes do not match (actual " << actual.size() in compareVector() 127 if (i >= actual.size()) { in compareVector() 137 } else if (expected[i] != actual[i]) { in compareVector() 141 << testing::PrintToString(actual[i]) in compareVector() 157 << " actual: " << testing::PrintToString(actual) << "\n" in compareVector()
|