Lines Matching refs:sensor
26 #include <sensor/ISensorServer.h>
27 #include <sensor/ISensorEventConnection.h>
28 #include <sensor/Sensor.h>
100 // If accessing a sensor we need to make sure the UID has access to it. If
104 // emulating no sensor change. As soon as the app UID transitions to an
107 // between idle/active state avoiding to get stuck in a state receiving sensor
108 // data while idle or not receiving sensor data while active.
139 // the HAL ignores the sensor data provided by physical sensors and accepts the data that is
140 // injected from the SensorService as if it were the real sensor data. This mode is primarily
143 // SensorEventConnection) which will be injecting sensor data into the HAL. Normal apps can
144 // unregister and register for any sensor that supports injection. Registering to sensors
146 // client to inject sensor data at a time.
148 // This mode is used only for testing sensors. Each sensor can be tested in isolation with
158 // receive events if a whitelisted app requests data from the same sensor.
191 virtual Vector<Sensor> getSensorList(const String16& opPackageName);
192 virtual Vector<Sensor> getDynamicSensorList(const String16& opPackageName);
208 const Sensor& registerSensor(SensorInterface* sensor,
210 const Sensor& registerVirtualSensor(SensorInterface* sensor, bool isDebug = false);
211 const Sensor& registerDynamicSensorLocked(SensorInterface* sensor, bool isDebug = false);
217 static bool canAccessSensor(const Sensor& sensor, const char* operation,
256 void makeUuidsIntoIdsForSensorList(Vector<Sensor> &sensorList) const;
258 int32_t getIdFromUuid(const Sensor::uuid_t &uuid) const;
265 // Sets whether the given UID can get sensor data