Home
last modified time | relevance | path

Searched refs:SensorEnableGuard (Results 1 – 1 of 1) sorted by relevance

/aosp12/frameworks/av/media/libheadtracking/
H A DSensorPoseProvider.cpp81 class SensorEnableGuard { class
83 SensorEnableGuard(const sp<SensorEventQueue>& queue, int32_t sensor) in SensorEnableGuard() function in android::media::__anon57b4a7480110::SensorEnableGuard
86 ~SensorEnableGuard() { in ~SensorEnableGuard()
95 SensorEnableGuard(const SensorEnableGuard&) = delete;
96 SensorEnableGuard& operator=(const SensorEnableGuard&) = delete;
99 SensorEnableGuard(SensorEnableGuard&& other) : mQueue(other.mQueue), mSensor(other.mSensor) { in SensorEnableGuard() function in android::media::__anon57b4a7480110::SensorEnableGuard
147 mEnabledSensors.emplace(sensor, SensorEnableGuard(mQueue.get(), sensor)); in startSensor()
175 std::map<int32_t, SensorEnableGuard> mEnabledSensors;