Home
last modified time | relevance | path

Searched refs:V2_1 (Results 1 – 25 of 166) sorted by relevance

1234567

/hardware/interfaces/sensors/common/utils/
DconvertV2_1.h27 namespace V2_1 {
30 static_assert(sizeof(V1_0::Event) == sizeof(V2_1::Event),
32 static_assert(sizeof(V1_0::SensorInfo) == sizeof(V2_1::SensorInfo),
38 inline const V1_0::Event& convertToOldEvent(const V2_1::Event& event) { in convertToOldEvent()
42 inline const std::vector<V1_0::Event>& convertToOldEvents(const std::vector<V2_1::Event>& events) { in convertToOldEvents()
46 inline V1_0::Event* convertToOldEvent(V2_1::Event* event) { in convertToOldEvent()
50 inline const V2_1::SensorInfo& convertToNewSensorInfo(const V1_0::SensorInfo& info) { in convertToNewSensorInfo()
51 return reinterpret_cast<const V2_1::SensorInfo&>(info); in convertToNewSensorInfo()
54 inline const V1_0::SensorInfo& convertToOldSensorInfo(const V2_1::SensorInfo& info) { in convertToOldSensorInfo()
58 inline const V2_1::Event& convertToNewEvent(const V1_0::Event& event) { in convertToNewEvent()
[all …]
DEventMessageQueueWrapper.h33 namespace V2_1 {
43 virtual bool read(V2_1::Event* events, size_t numToRead) = 0;
44 virtual bool write(const V2_1::Event* events, size_t numToWrite) = 0;
45 virtual bool write(const std::vector<V2_1::Event>& events) = 0;
46 virtual bool writeBlocking(const V2_1::Event* events, size_t count, uint32_t readNotification,
71 virtual bool read(V2_1::Event* events, size_t numToRead) override { in read()
75 bool write(const V2_1::Event* events, size_t numToWrite) override { in write()
79 virtual bool write(const std::vector<V2_1::Event>& events) override { in write()
84 bool writeBlocking(const V2_1::Event* events, size_t count, uint32_t readNotification, in writeBlocking()
99 using EventMessageQueue = MessageQueue<V2_1::Event, kSynchronizedReadWrite>;
[all …]
DISensorsCallbackWrapper.h37 namespace V2_1 {
49 const hidl_vec<V2_1::SensorInfo>& sensorInfos) = 0;
60 const hidl_vec<V2_1::SensorInfo>& sensorInfos) override { in onDynamicSensorsConnected()
80 : public SensorsCallbackWrapperBase<hardware::sensors::V2_1::ISensorsCallback> {
82 ISensorsCallbackWrapperV2_1(sp<hardware::sensors::V2_1::ISensorsCallback> sensorsCallback) in ISensorsCallbackWrapperV2_1()
85 Return<void> onDynamicSensorsConnected(const hidl_vec<V2_1::SensorInfo>& sensorInfos) override { in onDynamicSensorsConnected()
/hardware/interfaces/soundtrigger/2.1/default/
DSoundTriggerHw.h27 namespace V2_1 {
43 Return<void> loadSoundModel_2_1(const V2_1::ISoundTriggerHw::SoundModel& soundModel,
44 const sp<V2_1::ISoundTriggerHwCallback>& callback,
46 V2_1::ISoundTriggerHw::loadSoundModel_2_1_cb _hidl_cb);
48 const V2_1::ISoundTriggerHw::PhraseSoundModel& soundModel,
49 const sp<V2_1::ISoundTriggerHwCallback>& callback, int32_t cookie,
50 V2_1::ISoundTriggerHw::loadPhraseSoundModel_2_1_cb _hidl_cb);
52 const V2_1::ISoundTriggerHw::RecognitionConfig& config);
88 Return<void> loadSoundModel_2_1(const V2_1::ISoundTriggerHw::SoundModel& soundModel, in loadSoundModel_2_1()
89 const sp<V2_1::ISoundTriggerHwCallback>& callback, in loadSoundModel_2_1()
[all …]
DSoundTriggerHw.cpp34 namespace V2_1 { namespace
101 const V2_1::ISoundTriggerHw::SoundModel& soundModel, in loadSoundModel_2_1()
102 const sp<V2_1::ISoundTriggerHwCallback>& callback, int32_t cookie, in loadSoundModel_2_1()
103 V2_1::ISoundTriggerHw::loadSoundModel_2_1_cb _hidl_cb) { in loadSoundModel_2_1()
118 const V2_1::ISoundTriggerHw::PhraseSoundModel& soundModel, in loadPhraseSoundModel_2_1()
119 const sp<V2_1::ISoundTriggerHwCallback>& callback, int32_t cookie, in loadPhraseSoundModel_2_1()
120 V2_1::ISoundTriggerHw::loadPhraseSoundModel_2_1_cb _hidl_cb) { in loadPhraseSoundModel_2_1()
141 int32_t modelHandle, const V2_1::ISoundTriggerHw::RecognitionConfig& config) { in startRecognition_2_1()
155 V2_1::ISoundTriggerHwCallback::PhraseRecognitionEvent event; in recognitionCallback()
165 V2_1::ISoundTriggerHwCallback::RecognitionEvent event; in recognitionCallback()
[all …]
/hardware/interfaces/sensors/common/default/2.X/multihal/tests/fake_subhal/
DIHalProxyCallbackWrapper.h26 namespace V2_1 {
44 const hidl_vec<V2_1::SensorInfo>& sensorInfos) = 0;
48 virtual void postEvents(const std::vector<V2_1::Event>& events, ScopedWakelock wakelock) = 0;
76 Return<void> onDynamicSensorsConnected(const hidl_vec<V2_1::SensorInfo>& sensorInfos) override { in onDynamicSensorsConnected()
78 V2_1::implementation::convertToOldSensorInfos(sensorInfos)); in onDynamicSensorsConnected()
81 void postEvents(const std::vector<V2_1::Event>& events, ScopedWakelock wakelock) override { in postEvents()
82 return mCallback->postEvents(V2_1::implementation::convertToOldEvents(events), in postEvents()
88 : public HalProxyCallbackWrapperBase<V2_1::implementation::IHalProxyCallback> {
90 HalProxyCallbackWrapperV2_1(sp<V2_1::implementation::IHalProxyCallback> callback) in HalProxyCallbackWrapperV2_1()
93 Return<void> onDynamicSensorsConnected(const hidl_vec<V2_1::SensorInfo>& sensorInfos) override { in onDynamicSensorsConnected()
[all …]
DSensorsSubHal.cpp26 static ::android::hardware::sensors::V2_1::subhal::implementation::AllSensorsSubHal< in sensorsHalGetSubHal()
27 ::android::hardware::sensors::V2_1::subhal::implementation::SensorsSubHalV2_0> in sensorsHalGetSubHal()
30 static ::android::hardware::sensors::V2_1::subhal::implementation::ContinuousSensorsSubHal< in sensorsHalGetSubHal()
31 ::android::hardware::sensors::V2_1::subhal::implementation::SensorsSubHalV2_0> in sensorsHalGetSubHal()
34 static ::android::hardware::sensors::V2_1::subhal::implementation::OnChangeSensorsSubHal< in sensorsHalGetSubHal()
35 ::android::hardware::sensors::V2_1::subhal::implementation::SensorsSubHalV2_0> in sensorsHalGetSubHal()
38 static ::android::hardware::sensors::V2_1::subhal::implementation::SensorsSubHal< in sensorsHalGetSubHal()
39 ::android::hardware::sensors::V2_1::subhal::implementation::SensorsSubHalV2_0> in sensorsHalGetSubHal()
48 ::android::hardware::sensors::V2_1::implementation::ISensorsSubHal* sensorsHalGetSubHal_2_1( in sensorsHalGetSubHal_2_1()
51 static ::android::hardware::sensors::V2_1::subhal::implementation::AllSensorsSubHal< in sensorsHalGetSubHal_2_1()
[all …]
/hardware/interfaces/sensors/common/default/2.X/multihal/
DHalProxyCallback.cpp41 void HalProxyCallbackBase::postEvents(const std::vector<V2_1::Event>& events, in postEvents()
45 std::vector<V2_1::Event> processedEvents = processEvents(events, &numWakeupEvents); in postEvents()
65 std::vector<V2_1::Event> HalProxyCallbackBase::processEvents(const std::vector<V2_1::Event>& events, in processEvents()
68 std::vector<V2_1::Event> eventsOut; in processEvents()
69 for (V2_1::Event event : events) { in processEvents()
72 const V2_1::SensorInfo& sensor = mCallback->getSensorInfo(event.sensorHandle); in processEvents()
/hardware/interfaces/sensors/common/default/2.X/multihal/include/
DHalProxyCallback.h47 const hidl_vec<V2_1::SensorInfo>& dynamicSensorsAdded, int32_t subHalIndex) = 0;
61 virtual void postEventsToMessageQueue(const std::vector<V2_1::Event>& events,
72 virtual const V2_1::SensorInfo& getSensorInfo(int32_t sensorHandle) = 0;
88 void postEvents(const std::vector<V2_1::Event>& events,
99 std::vector<V2_1::Event> processEvents(const std::vector<V2_1::Event>& events,
114 V2_1::implementation::convertToNewSensorInfos(dynamicSensorsAdded), mSubHalIndex); in onDynamicSensorsConnected()
124 HalProxyCallbackBase::postEvents(V2_1::implementation::convertToNewEvents(events), in postEvents()
134 public V2_1::implementation::IHalProxyCallback {
142 const hidl_vec<V2_1::SensorInfo>& dynamicSensorsAdded) override { in onDynamicSensorsConnected_2_1()
157 void postEvents(const std::vector<V2_1::Event>& events, in postEvents()
/hardware/interfaces/graphics/composer/2.2/utils/command-buffer/include/composer-command-buffer/2.2/
DComposerCommandBuffer.h52 using android::hardware::graphics::composer::V2_1::Config;
53 using android::hardware::graphics::composer::V2_1::Display;
54 using android::hardware::graphics::composer::V2_1::Error;
55 using android::hardware::graphics::composer::V2_1::IComposerCallback;
56 using android::hardware::graphics::composer::V2_1::Layer;
63 class CommandWriterBase : public V2_1::CommandWriterBase {
65 CommandWriterBase(uint32_t initialMaxSize) : V2_1::CommandWriterBase(initialMaxSize) {} in CommandWriterBase()
105 class CommandReaderBase : public V2_1::CommandReaderBase {
107 CommandReaderBase() : V2_1::CommandReaderBase(){}; in CommandReaderBase()
/hardware/interfaces/sensors/2.1/default/
DSensorsV2_1.h29 namespace V2_1 {
37 ISensorsCallbackWrapper(const sp<V2_1::ISensorsCallback>& callback) : mCallback(callback) {} in ISensorsCallbackWrapper()
48 sp<V2_1::ISensorsCallback> mCallback;
58 const ::android::hardware::MQDescriptorSync<V2_1::Event>& eventQueueDescriptor,
60 const sp<V2_1::ISensorsCallback>& sensorsCallback) override;
62 Return<Result> injectSensorData_2_1(const V2_1::Event& event) override;
DSensorsV2_1.cpp24 namespace V2_1 { namespace
70 const ::android::hardware::MQDescriptorSync<V2_1::Event>& eventQueueDescriptor, in initialize_2_1()
72 const sp<V2_1::ISensorsCallback>& sensorsCallback) { in initialize_2_1()
73 auto eventQueue = std::make_unique<MessageQueue<V2_1::Event, kSynchronizedReadWrite>>( in initialize_2_1()
81 Return<Result> SensorsV2_1::injectSensorData_2_1(const V2_1::Event& event) { in injectSensorData_2_1()
/hardware/interfaces/sensors/common/vts/2_X/
DSensorsHidlEnvironmentV2_X.h35 using ::android::hardware::sensors::V2_1::implementation::ISensorsWrapperBase;
36 using ::android::hardware::sensors::V2_1::implementation::MAX_RECEIVE_BUFFER_EVENT_COUNT;
37 using ::android::hardware::sensors::V2_1::implementation::NoOpSensorsCallback;
38 using ::android::hardware::sensors::V2_1::implementation::wrapISensors;
49 : public SensorsHidlEnvironmentBase<::android::hardware::sensors::V2_1::Event> {
114 std::array<::android::hardware::sensors::V2_1::Event, MAX_RECEIVE_BUFFER_EVENT_COUNT>
/hardware/interfaces/gnss/common/utils/default/include/
DUtils.h32 using GnssDataV2_1 = V2_1::IGnssMeasurementCallback::GnssData;
35 using GnssSvInfoV2_1 = V2_1::IGnssCallback::GnssSvInfo;
36 using GnssAntennaInfo = ::android::hardware::gnss::V2_1::IGnssAntennaInfoCallback::GnssAntennaInfo;
37 using Row = ::android::hardware::gnss::V2_1::IGnssAntennaInfoCallback::Row;
38 using Coord = ::android::hardware::gnss::V2_1::IGnssAntennaInfoCallback::Coord;
/hardware/interfaces/graphics/composer/2.2/utils/vts/include/composer-vts/2.2/
DComposerVts.h44 using IMapper2_1 = android::hardware::graphics::mapper::V2_1::IMapper;
48 using Gralloc2_1 = android::hardware::graphics::mapper::V2_1::vts::Gralloc;
55 class Composer : public V2_1::vts::Composer {
57 using V2_1::vts::Composer::Composer;
63 class ComposerClient : public V2_1::vts::ComposerClient {
66 : V2_1::vts::ComposerClient(client), mClient(client) {} in ComposerClient()
70 void execute(V2_1::vts::TestCommandReader* reader, CommandWriterBase* writer);
94 class Gralloc : public V2_1::vts::Gralloc {
100 return V2_1::vts::Gralloc::allocate(
/hardware/interfaces/graphics/composer/2.4/utils/hal/include/composer-hal/2.4/
DComposerCommandEngine.h42 std::unique_ptr<V2_1::CommandWriterBase> createCommandWriter( in createCommandWriter()
48 using BaseType2_1 = V2_1::hal::ComposerCommandEngine;
52 V2_1::Error executeValidateDisplayInternal() override { in executeValidateDisplayInternal()
70 mWriter->setError(getCommandLoc(), static_cast<V2_1::Error>(err)); in executeValidateDisplayInternal()
72 return static_cast<V2_1::Error>(err); in executeValidateDisplayInternal()
77 bool executeCommand(V2_1::IComposerClient::Command command, uint16_t length) override { in executeCommand()
108 mWriter->setError(getCommandLoc(), static_cast<V2_1::Error>(error)); in executeSetLayerGenericMetadata()
/hardware/qcom/sm8150/gps/android/2.1/
DGnssAntennaInfo.h40 namespace V2_1 {
47 using ::android::hardware::gnss::V2_1::IGnssAntennaInfoCallback;
48 using ::android::hardware::gnss::V2_1::IGnssAntennaInfo;
55 struct GnssAntennaInfo : public V2_1::IGnssAntennaInfo {
DGnss.h46 namespace V2_1 {
136 Return<bool> setCallback_2_1(const sp<V2_1::IGnssCallback>& callback) override;
137 Return<sp<V2_1::IGnssMeasurement>> getExtensionGnssMeasurement_2_1() override;
138 Return<sp<V2_1::IGnssConfiguration>> getExtensionGnssConfiguration_2_1() override;
139 Return<sp<V2_1::IGnssAntennaInfo>> getExtensionGnssAntennaInfo() override;
173 sp<V2_1::IGnssCallback> mGnssCbIface_2_1 = nullptr;
174 sp<V2_1::IGnssMeasurement> mGnssMeasurement = nullptr;
175 sp<V2_1::IGnssConfiguration> mGnssConfig = nullptr;
176 sp<V2_1::IGnssAntennaInfo> mGnssAntennaInfo = nullptr;
DGnssMeasurement.h31 namespace V2_1 {
41 struct GnssMeasurement : public V2_1::IGnssMeasurement {
64 const sp<::android::hardware::gnss::V2_1::IGnssMeasurementCallback>& callback,
82 sp<V2_1::IGnssMeasurementCallback> mGnssMeasurementCbIface_2_1 = nullptr;
/hardware/interfaces/graphics/composer/2.2/utils/resources/include/composer-resources/2.2/
DComposerResources.h32 using V2_1::hal::ComposerHandleCache;
33 using V2_1::hal::ComposerHandleImporter;
35 class ComposerDisplayResource : public V2_1::hal::ComposerDisplayResource {
39 : V2_1::hal::ComposerDisplayResource(type, importer, outputBufferCacheSize), in ComposerDisplayResource()
54 class ComposerResources : public V2_1::hal::ComposerResources {
94 std::unique_ptr<V2_1::hal::ComposerDisplayResource> createDisplayResource( in createDisplayResource()
/hardware/interfaces/graphics/composer/2.2/utils/resources/
DComposerResources.cpp28 using V2_1::Display;
29 using V2_1::Error;
30 using V2_1::Layer;
31 using V2_1::hal::ComposerHandleCache;
32 using V2_1::hal::ComposerHandleImporter;
/hardware/interfaces/soundtrigger/2.2/default/
DSoundTriggerHw.h72 Return<void> loadSoundModel_2_1(const V2_1::ISoundTriggerHw::SoundModel& soundModel,
73 const sp<V2_1::ISoundTriggerHwCallback>& callback,
75 Return<void> loadPhraseSoundModel_2_1(const V2_1::ISoundTriggerHw::PhraseSoundModel& soundModel,
76 const sp<V2_1::ISoundTriggerHwCallback>& callback,
80 const V2_1::ISoundTriggerHw::RecognitionConfig& config,
81 const sp<V2_1::ISoundTriggerHwCallback>& callback,
173 SoundModelClient_2_1(uint32_t id, V2_1::ISoundTriggerHwCallback::CallbackCookie cookie, in SoundModelClient_2_1()
174 sp<V2_1::ISoundTriggerHwCallback> callback) in SoundModelClient_2_1()
181 sp<V2_1::ISoundTriggerHwCallback> mCallback;
/hardware/interfaces/gnss/2.1/default/
DGnssMeasurement.h29 namespace V2_1 {
32 using GnssDataV2_1 = V2_1::IGnssMeasurementCallback::GnssData;
61 const sp<V2_1::IGnssMeasurementCallback>& callback, bool enableFullTracking) override;
70 static sp<V2_1::IGnssMeasurementCallback> sCallback_2_1;
/hardware/interfaces/sensors/common/default/2.X/multihal/include/V2_1/
DSubHal.h33 namespace V2_1 {
72 virtual void postEvents(const std::vector<V2_1::Event>& events, ScopedWakelock wakelock) = 0;
105 const ::android::hardware::MQDescriptorSync<V2_1::Event>& /* eventQueueDescriptor */, in initialize_2_1()
179 "default"))) extern "C" ::android::hardware::sensors::V2_1::implementation::ISensorsSubHal*
/hardware/interfaces/soundtrigger/2.3/default/
DSoundTriggerHw.h72 Return<void> loadSoundModel_2_1(const V2_1::ISoundTriggerHw::SoundModel& soundModel,
73 const sp<V2_1::ISoundTriggerHwCallback>& callback,
75 Return<void> loadPhraseSoundModel_2_1(const V2_1::ISoundTriggerHw::PhraseSoundModel& soundModel,
76 const sp<V2_1::ISoundTriggerHwCallback>& callback,
80 const V2_1::ISoundTriggerHw::RecognitionConfig& config,
81 const sp<V2_1::ISoundTriggerHwCallback>& callback,
194 SoundModelClient_2_1(uint32_t id, V2_1::ISoundTriggerHwCallback::CallbackCookie cookie, in SoundModelClient_2_1()
195 sp<V2_1::ISoundTriggerHwCallback> callback) in SoundModelClient_2_1()
202 sp<V2_1::ISoundTriggerHwCallback> mCallback;

1234567