/hardware/libhardware/tests/input/evdev/ |
D | MouseInputMapper_test.cpp | 27 using ::testing::_; 55 EXPECT_CALL(reportDef, declareUsage(id, INPUT_USAGE_AXIS_X, _, _, _)); in TEST_F() 56 EXPECT_CALL(reportDef, declareUsage(id, INPUT_USAGE_AXIS_Y, _, _, _)); in TEST_F() 57 EXPECT_CALL(reportDef, declareUsages(id, _, 3)) in TEST_F() 71 EXPECT_CALL(reportDef, declareUsage(_, _, _, _, _)).Times(0); in TEST_F() 72 EXPECT_CALL(reportDef, declareUsages(_, _, _)).Times(0); in TEST_F() 84 EXPECT_CALL(reportDef, addCollection(_, _)); in TEST_F() 85 EXPECT_CALL(reportDef, declareUsage(_, _, _, _, _)).Times(2); in TEST_F() 86 EXPECT_CALL(reportDef, declareUsages(_, _, 3)); in TEST_F() 100 EXPECT_CALL(report, reportEvent(_)); in TEST_F() [all …]
|
D | SwitchInputMapper_test.cpp | 27 using ::testing::_; 53 EXPECT_CALL(reportDef, declareUsages(INPUT_COLLECTION_ID_SWITCH, _, 2)) in TEST_F() 64 EXPECT_CALL(reportDef, addCollection(_, _)).Times(0); in TEST_F() 65 EXPECT_CALL(reportDef, declareUsages(_, _, _)).Times(0); in TEST_F() 75 EXPECT_CALL(reportDef, addCollection(_, _)); in TEST_F() 76 EXPECT_CALL(reportDef, declareUsages(_, _, _)); in TEST_F() 88 EXPECT_CALL(report, reportEvent(_)); in TEST_F() 90 EXPECT_CALL(report, reportEvent(_)); in TEST_F()
|
D | InputDevice_test.cpp | 35 using ::testing::_; 47 EXPECT_CALL(mHost, createDeviceIdentifier(_, _, _, _, _)) in SetUp() 57 ON_CALL(mHost, registerDevice(_, _)) in SetUp() 119 EXPECT_CALL(mHost, freeReportDefinition(_)); in TEST_F() 120 EXPECT_CALL(mHost, registerDevice(_, _)); in TEST_F()
|
/hardware/google/pixel/health/test/ |
D | TestBatteryDefender.cpp | 97 using ::testing::_; 112 EXPECT_CALL(*mock, SetProperty(_, _)).Times(AnyNumber()); in SetUp() 113 EXPECT_CALL(*mock, ReadFileToString(_, _, _)).Times(AnyNumber()); in SetUp() 114 EXPECT_CALL(*mock, GetIntProperty(_, _, _, _)).Times(AnyNumber()); in SetUp() 115 EXPECT_CALL(*mock, GetBoolProperty(_, _)).Times(AnyNumber()); in SetUp() 116 EXPECT_CALL(*mock, WriteStringToFile(_, _, _)).Times(AnyNumber()); in SetUp() 118 ON_CALL(*mock, ReadFileToString(_, _, _)) in SetUp() 121 ON_CALL(*mock, WriteStringToFile(_, _, _)).WillByDefault(Return(true)); in SetUp() 146 ON_CALL(*mock, GetIntProperty(kPropChargeLevelVendorStart, _, _, _)).WillByDefault(Return(0)); in enableDefender() 147 ON_CALL(*mock, GetIntProperty(kPropChargeLevelVendorStop, _, _, _)).WillByDefault(Return(100)); in enableDefender() [all …]
|
/hardware/google/camera/common/hal/tests/ |
D | process_block_tests.cc | 29 using ::testing::_; 175 EXPECT_CALL(*session_hwl_, ConfigurePipeline(_, _, _, _, _)).Times(1); in TEST_F() 176 EXPECT_CALL(*session_hwl_, GetConfiguredHalStream(_, _)) in TEST_F() 178 EXPECT_CALL(*session_hwl_, SubmitRequests(_, _)).Times(1); in TEST_F() 184 EXPECT_CALL(*result_processor, AddPendingRequests(_, _)).Times(1); in TEST_F() 185 EXPECT_CALL(*result_processor, ProcessResult(_)).Times(1); in TEST_F() 186 EXPECT_CALL(*result_processor, Notify(_)).Times(1); in TEST_F() 215 EXPECT_CALL(*session_hwl_, ConfigurePipeline(_, _, _, _, _)) in TEST_F() 217 EXPECT_CALL(*session_hwl_, GetConfiguredHalStream(_, _)).Times(num_streams); in TEST_F() 218 EXPECT_CALL(*session_hwl_, SubmitRequests(_, _)).Times(1); in TEST_F() [all …]
|
D | mock_device_session_hwl.cc | 28 using ::testing::_; 298 ON_CALL(*this, ConstructDefaultRequestSettings(_, _)) in DelegateCallsToFakeSession() 303 ON_CALL(*this, ConfigurePipeline(_, _, _, _, _)) in DelegateCallsToFakeSession() 311 ON_CALL(*this, PreparePipeline(_, _)) in DelegateCallsToFakeSession() 315 ON_CALL(*this, GetRequiredIntputStreams(_, _, _)) in DelegateCallsToFakeSession() 320 ON_CALL(*this, GetConfiguredHalStream(_, _)) in DelegateCallsToFakeSession() 329 ON_CALL(*this, SubmitRequests(_, _)) in DelegateCallsToFakeSession() 345 ON_CALL(*this, GetCameraCharacteristics(_)) in DelegateCallsToFakeSession() 350 ON_CALL(*this, GetPhysicalCameraCharacteristics(_, _)) in DelegateCallsToFakeSession()
|
D | camera_device_session_tests.cc | 32 using ::testing::_; 62 /*type=*/_, /*default_settings=*/nullptr)) in TestInvalidDefaultRequestSettingsForType() 80 /*type=*/_, /*default_settings=*/_)) in TestDefaultRequestSettingsForType() 276 EXPECT_CALL(*session_hwl, ConfigurePipeline(/*camera_id=*/_, in TEST_F() 277 /*hwl_pipeline_callback=*/_, in TEST_F() 278 /*request_config=*/_, in TEST_F() 279 /*overall_config=*/_, in TEST_F() 280 /*pipeline_id=*/_)) in TEST_F() 314 EXPECT_CALL(*session_hwl, ConfigurePipeline(_, _, _, _, _)).Times(1); in TEST_F() 315 EXPECT_CALL(*session_hwl, SubmitRequests(_, _)).Times(kNumPreviewRequests); in TEST_F()
|
/hardware/google/pixel/vibrator/drv2624/tests/ |
D | test-vibrator.cpp | 31 using ::testing::_; 136 ON_CALL(*mMockApi, setOlLraPeriod(_)).WillByDefault(Return(true)); in createMock() 137 ON_CALL(*mMockApi, setActivate(_)).WillByDefault(Return(true)); in createMock() 138 ON_CALL(*mMockApi, setDuration(_)).WillByDefault(Return(true)); in createMock() 139 ON_CALL(*mMockApi, setMode(_)).WillByDefault(Return(true)); in createMock() 140 ON_CALL(*mMockApi, setCtrlLoop(_)).WillByDefault(Return(true)); in createMock() 141 ON_CALL(*mMockApi, setLraWaveShape(_)).WillByDefault(Return(true)); in createMock() 142 ON_CALL(*mMockApi, setOdClamp(_)).WillByDefault(Return(true)); in createMock() 145 ON_CALL(*mMockCal, getLraPeriod(_)) in createMock() 147 ON_CALL(*mMockCal, getCloseLoopThreshold(_)) in createMock() [all …]
|
/hardware/libhardware/modules/camera/3_4/metadata/ |
D | metadata_test.cpp | 32 using testing::_; 83 EXPECT_CALL(*component1_, PopulateStaticFields(_)).WillOnce(Return(0)); in TEST_F() 84 EXPECT_CALL(*component2_, PopulateStaticFields(_)).WillOnce(Return(0)); in TEST_F() 134 EXPECT_CALL(*component1_, PopulateStaticFields(_)) in TEST_F() 137 EXPECT_CALL(*component2_, PopulateStaticFields(_)).WillOnce(Return(err)); in TEST_F() 171 EXPECT_CALL(*component1_, SupportsRequestValues(_)).WillOnce(Return(true)); in TEST_F() 172 EXPECT_CALL(*component2_, SupportsRequestValues(_)).WillOnce(Return(true)); in TEST_F() 184 EXPECT_CALL(*component1_, SupportsRequestValues(_)) in TEST_F() 187 EXPECT_CALL(*component2_, SupportsRequestValues(_)).WillOnce(Return(false)); in TEST_F() 200 EXPECT_CALL(*component1_, SupportsRequestValues(_)).Times(0); in TEST_F() [all …]
|
D | v4l2_control_delegate_test.cpp | 27 using testing::_; 49 EXPECT_CALL(*mock_device_, GetControl(control_id_, _)) in TEST_F() 51 EXPECT_CALL(*mock_converter_, V4L2ToMetadata(device_result, _)) in TEST_F() 61 EXPECT_CALL(*mock_device_, GetControl(control_id_, _)) in TEST_F() 64 EXPECT_CALL(*mock_converter_, V4L2ToMetadata(device_result, _)) in TEST_F() 73 EXPECT_CALL(*mock_device_, GetControl(control_id_, _)).WillOnce(Return(err)); in TEST_F() 82 EXPECT_CALL(*mock_converter_, MetadataToV4L2(input, _)) in TEST_F() 84 EXPECT_CALL(*mock_device_, SetControl(control_id_, conversion_result, _)) in TEST_F() 93 EXPECT_CALL(*mock_converter_, MetadataToV4L2(input, _)).WillOnce(Return(err)); in TEST_F() 100 EXPECT_CALL(*mock_converter_, MetadataToV4L2(input, _)) in TEST_F() [all …]
|
D | partial_metadata_factory_test.cpp | 33 using testing::_; 158 EXPECT_CALL(*mock_device_, QueryControl(control_id, _)).WillOnce(Return(-1)); in TEST_F() 174 EXPECT_CALL(*mock_device_, QueryControl(control_id, _)) in TEST_F() 193 EXPECT_CALL(*mock_device_, QueryControl(control_id, _)) in TEST_F() 216 EXPECT_CALL(*mock_device_, QueryControl(control_id, _)) in TEST_F() 240 EXPECT_CALL(*mock_device_, QueryControl(control_id, _)) in TEST_F() 265 EXPECT_CALL(*mock_device_, QueryControl(control_id, _)) in TEST_F() 270 EXPECT_CALL(*mock_converter_, V4L2ToMetadata(kv.first, _)) in TEST_F() 275 EXPECT_CALL(*mock_converter_, V4L2ToMetadata(7, _)).WillOnce(Return(-EINVAL)); in TEST_F() 299 EXPECT_CALL(*mock_device_, QueryControl(control_id, _)) in TEST_F() [all …]
|
D | slider_control_options_test.cpp | 29 using testing::_; 66 EXPECT_CALL(*mock_defaults_, DefaultValueForTemplate(template_index, _)) in TEST_F() 82 EXPECT_CALL(*mock_defaults_, DefaultValueForTemplate(template_index, _)) in TEST_F() 98 EXPECT_CALL(*mock_defaults_, DefaultValueForTemplate(template_index, _)) in TEST_F() 111 EXPECT_CALL(*mock_defaults_, DefaultValueForTemplate(template_index, _)) in TEST_F()
|
D | menu_control_options_test.cpp | 29 using testing::_; 63 EXPECT_CALL(*mock_defaults_, DefaultValueForTemplate(template_index, _)) in TEST_F() 76 EXPECT_CALL(*mock_defaults_, DefaultValueForTemplate(template_index, _)) in TEST_F() 91 EXPECT_CALL(*mock_defaults_, DefaultValueForTemplate(template_index, _)) in TEST_F()
|
D | map_converter_test.cpp | 27 using testing::_; 40 EXPECT_CALL(*converter_, MetadataToV4L2(initial, _)) in ExpectConvertToV4L2() 88 EXPECT_CALL(*converter_, MetadataToV4L2(initial, _)).WillOnce(Return(err)); in TEST_F() 97 EXPECT_CALL(*converter_, V4L2ToMetadata(kv->first, _)) in TEST_F()
|
D | ranged_converter_test.cpp | 27 using testing::_; 41 EXPECT_CALL(*converter_, MetadataToV4L2(initial, _)) in ExpectConvert() 80 EXPECT_CALL(*converter_, MetadataToV4L2(initial, _)).WillOnce(Return(err)); in TEST_F()
|
D | tagged_control_delegate_test.cpp | 27 using testing::_; 59 EXPECT_CALL(*mock_delegate_, GetValue(_)) in TEST_F() 69 EXPECT_CALL(*mock_delegate_, GetValue(_)).WillOnce(Return(err)); in TEST_F()
|
D | control_test.cpp | 33 using testing::_; 151 EXPECT_CALL(*mock_delegate_, GetValue(_)) in TEST_F() 161 EXPECT_CALL(*mock_delegate_, GetValue(_)) in TEST_F() 171 EXPECT_CALL(*mock_delegate_, GetValue(_)) in TEST_F() 179 EXPECT_CALL(*mock_delegate_, GetValue(_)).WillOnce(Return(err)); in TEST_F() 192 EXPECT_CALL(*mock_options_, DefaultValueForTemplate(template_type, _)) in TEST_F() 204 EXPECT_CALL(*mock_options_, DefaultValueForTemplate(template_type, _)) in TEST_F() 217 EXPECT_CALL(*mock_delegate_, GetValue(_)) in TEST_F() 231 EXPECT_CALL(*mock_delegate_, GetValue(_)).WillOnce(Return(err)); in TEST_F() 243 EXPECT_CALL(*mock_options_, DefaultValueForTemplate(template_type, _)) in TEST_F() [all …]
|
D | state_test.cpp | 32 using testing::_; 75 EXPECT_CALL(*mock_delegate_, GetValue(_)) in TEST_F() 88 EXPECT_CALL(*mock_delegate_, GetValue(_)).WillOnce(Return(err)); in TEST_F()
|
D | tagged_control_options_test.cpp | 27 using testing::_; 84 EXPECT_CALL(*mock_options_, DefaultValueForTemplate(template_id, _)) in TEST_F() 95 EXPECT_CALL(*mock_options_, DefaultValueForTemplate(template_id, _)) in TEST_F()
|
/hardware/libhardware/modules/camera/3_4/ |
D | static_properties_test.cpp | 31 using testing::_; 54 EXPECT_CALL(*mock_reader_, Facing(_)) in SetDefaultExpectations() 57 EXPECT_CALL(*mock_reader_, Orientation(_)) in SetDefaultExpectations() 60 EXPECT_CALL(*mock_reader_, MaxInputStreams(_)) in SetDefaultExpectations() 63 EXPECT_CALL(*mock_reader_, MaxOutputStreams(_, _, _)) in SetDefaultExpectations() 69 EXPECT_CALL(*mock_reader_, RequestCapabilities(_)) in SetDefaultExpectations() 73 EXPECT_CALL(*mock_reader_, StreamConfigurations(_)) in SetDefaultExpectations() 76 EXPECT_CALL(*mock_reader_, StreamStallDurations(_)) in SetDefaultExpectations() 79 EXPECT_CALL(*mock_reader_, ReprocessFormats(_)) in SetDefaultExpectations() 212 EXPECT_CALL(*mock_reader_, Facing(_)).WillOnce(Return(99)); in TEST_F() [all …]
|
D | format_metadata_factory_test.cpp | 31 using testing::_; 78 EXPECT_CALL(*mock_device_, GetFormats(_)) in TEST_F() 81 EXPECT_CALL(*mock_device_, GetQualifiedFormats(_)) in TEST_F() 86 EXPECT_CALL(*mock_device_, GetFormatFrameSizes(format, _)) in TEST_F() 90 EXPECT_CALL(*mock_device_, GetFormatFrameDurationRange(format, size, _)) in TEST_F() 139 EXPECT_CALL(*mock_device_, GetFormats(_)) in TEST_F() 145 EXPECT_CALL(*mock_device_, GetQualifiedFormats(_)) in TEST_F() 150 EXPECT_CALL(*mock_device_, GetFormatFrameSizes(format, _)) in TEST_F() 154 EXPECT_CALL(*mock_device_, GetFormatFrameDurationRange(format, size, _)) in TEST_F()
|
/hardware/google/pixel/vibrator/cs40l25/tests/ |
D | test-vibrator.cpp | 34 using ::testing::_; 168 ON_CALL(*mMockApi, getEffectCount(_)) in createMock() 171 ON_CALL(*mMockApi, setEffectIndex(_)) in createMock() 174 ON_CALL(*mMockApi, getEffectDuration(_)) in createMock() 179 ON_CALL(*mMockCal, getVolLevels(_)) in createMock() 225 EXPECT_CALL(*mMockApi, setF0(_)).Times(times); in relaxMock() 226 EXPECT_CALL(*mMockApi, setRedc(_)).Times(times); in relaxMock() 227 EXPECT_CALL(*mMockApi, setQ(_)).Times(times); in relaxMock() 228 EXPECT_CALL(*mMockApi, setActivate(_)).Times(times); in relaxMock() 229 EXPECT_CALL(*mMockApi, setDuration(_)).Times(times); in relaxMock() [all …]
|
/hardware/google/pixel/vibrator/drv2624/bench/ |
D | benchmark.cpp | 105 for (auto _ : state) { 111 for (auto _ : state) { 119 for (auto _ : state) { 125 for (auto _ : state) { 131 for (auto _ : state) { 139 for (auto _ : state) { 178 for (auto _ : state) {
|
/hardware/interfaces/wifi/1.4/default/tests/ |
D | wifi_iface_util_unit_tests.cpp | 67 EXPECT_CALL(*iface_tool_, SetMacAddress(testing::_, testing::_)) in TEST_F() 69 EXPECT_CALL(*iface_tool_, SetUpState(testing::_, testing::_)) in TEST_F()
|
/hardware/interfaces/identity/support/tests/ |
D | cppbor_test.cpp | 29 using ::testing::_; 705 EXPECT_CALL(mpc, itemEnd(_, _, _, _)).Times(0); in TEST() 706 EXPECT_CALL(mpc, error(_, _)).Times(0); in TEST() 721 EXPECT_CALL(mpc, itemEnd(_, _, _, _)).Times(0); in TEST() 722 EXPECT_CALL(mpc, error(_, _)).Times(0); in TEST() 736 EXPECT_CALL(mpc, itemEnd(_, _, _, _)).Times(0); in TEST() 737 EXPECT_CALL(mpc, error(_, _)).Times(0); in TEST() 751 EXPECT_CALL(mpc, itemEnd(_, _, _, _)).Times(0); in TEST() 752 EXPECT_CALL(mpc, error(_, _)).Times(0); in TEST() 766 EXPECT_CALL(mpc, itemEnd(_, _, _, _)).Times(0); in TEST() [all …]
|