| /frameworks/native/services/sensorservice/ |
| SensorInterface.h | 20 #include <sensor/Sensor.h> 43 virtual const Sensor& getSensor() const = 0; 50 explicit BaseSensor(const sensor_t& sensor); 51 BaseSensor(const sensor_t& sensor, const uint8_t (&uuid)[16]); 66 virtual const Sensor& getSensor() const override { return mSensor; } 70 Sensor mSensor; 77 explicit HardwareSensor(const sensor_t& sensor); 78 HardwareSensor(const sensor_t& sensor, const uint8_t (&uuid)[16]);
|
| RotationVectorSensor.cpp | 32 const sensor_t sensor = { local 43 mSensor = Sensor(&sensor); 57 outEvent->sensor = getSensorToken(); 90 return "Rotation Vector Sensor"; 92 return "Game Rotation Vector Sensor"; 94 return "GeoMag Rotation Vector Sensor"; 118 const sensor_t sensor = { local 129 mSensor = Sensor(&sensor); [all...] |
| CorrectedGyroSensor.h | 23 #include <sensor/Sensor.h> 35 Sensor mGyro;
|
| GravitySensor.h | 23 #include <sensor/Sensor.h> 35 Sensor mAccelerometer;
|
| LinearAccelerationSensor.h | 23 #include <sensor/Sensor.h>
|
| CorrectedGyroSensor.cpp | 36 mGyro = Sensor(list + i); 41 const sensor_t sensor = { local 42 .name = "Corrected Gyroscope Sensor", 52 mSensor = Sensor(&sensor); 64 outEvent->sensor = '_cgy';
|
| GravitySensor.cpp | 35 mAccelerometer = Sensor(list + i); 40 const sensor_t sensor = { local 41 .name = "Gravity Sensor", 51 mSensor = Sensor(&sensor); 64 // translates to an offset in the linear-acceleration sensor. 71 outEvent->sensor = '_grv';
|
| LinearAccelerationSensor.cpp | 34 const Sensor &gsensor = mGravitySensor.getSensor(); 35 const sensor_t sensor = { local 36 .name = "Linear Acceleration Sensor", 46 mSensor = Sensor(&sensor); 57 outEvent->sensor = '_lin';
|
| OrientationSensor.cpp | 33 const sensor_t sensor = { local 34 .name = "Orientation Sensor", 44 mSensor = Sensor(&sensor); 66 outEvent->sensor = '_ypr';
|
| /system/chre/apps/sensor_world/ |
| sensor_world.cc | 22 #include "chre/util/nanoapp/sensor.h" 41 // enable/disable each sensor. 45 //! Whether to enable sensor event logging or not. 194 // Storage to help access InstantMotion and StationaryDetect sensor handle and 205 //! Used to loop through all sensors to query sensor sampling status. 221 SensorState& sensor = sensors[i]; local 224 if (sensor.isInitialized && sensor.enable != enable) { 225 sensor.enable = enable; 230 sensor.handle, CHRE_SENSOR_CONFIGURE_MODE_DONE) 254 SensorState& sensor = sensors[i]; local [all...] |
| /cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/ |
| FrequencyVerification.java | 21 import android.hardware.Sensor; 31 * A {@link ISensorVerification} which verifies that the sensor frequency are within the expected 62 * Get the default {@link FrequencyVerification} for a sensor. 65 * @return the verification or null if the verification does not apply to the sensor. 68 Sensor sensor = environment.getSensor(); local 69 if (sensor.getReportingMode() != Sensor.REPORTING_MODE_CONTINUOUS) { 75 sensor.getName(), 76 sensor.getMinDelay() [all...] |
| /system/chre/apps/ash_world/ |
| ash_world.cc | 122 uint8_t sensor = CHRE_SENSOR_TYPE_ACCELEROMETER; local 126 sensor = CHRE_SENSOR_TYPE_GYROSCOPE; 130 sensor = CHRE_SENSOR_TYPE_GEOMAGNETIC_FIELD; 140 success = ashSaveCalibrationParams(sensor, sensorCalParams); 142 LOGI("*** save sensor %" PRIu8 ": %s, time %" PRIu64 " us", 143 sensor, success ? "success" : "failure", (toc - tic) / 1000); 147 success = ashLoadCalibrationParams(sensor, ASH_CAL_STORAGE_ASH, &p); 149 LOGI("*** load sensor %" PRIu8 ": %s, time %" PRIu64 " us", 150 sensor, success ? "success" : "fail", (toc - tic) / 1000); 166 success = ashSetCalibration(sensor, sensorCalInfo) [all...] |
| /device/google/contexthub/util/nanoapp_cmd/ |
| nanoapp_cmd.c | 97 static int setType(struct ConfigCmd *cmd, char *sensor) 99 if (strcmp(sensor, "accel") == 0) { 101 } else if (strcmp(sensor, "gyro") == 0) { 103 } else if (strcmp(sensor, "mag") == 0) { 105 } else if (strcmp(sensor, "uncal_accel") == 0) { 107 } else if (strcmp(sensor, "uncal_gyro") == 0) { 109 } else if (strcmp(sensor, "uncal_mag") == 0) { 111 } else if (strcmp(sensor, "als") == 0) { 113 } else if (strcmp(sensor, "prox") == 0) { 115 } else if (strcmp(sensor, "baro") == 0) [all...] |
| /cts/tests/sensor/src/android/hardware/cts/ |
| SensorBatchingFifoTest.java | 21 import android.hardware.Sensor; 32 * Checks the minimum Hardware FIFO length for each of the Hardware sensor. 33 * Further verifies if the advertised FIFO (Sensor.getFifoMaxEventCount()) is actually allocated 34 * for the sensor. 54 Sensor.TYPE_ACCELEROMETER, 55 getReservedFifoLength(Sensor.TYPE_ACCELEROMETER)); 61 Sensor.TYPE_MAGNETIC_FIELD_UNCALIBRATED, 62 getReservedFifoLength(Sensor.TYPE_MAGNETIC_FIELD_UNCALIBRATED)); 68 Sensor.TYPE_PRESSURE, 69 getReservedFifoLength(Sensor.TYPE_PRESSURE)) 80 Sensor sensor = mSensorManager.getDefaultSensor(sensorType); local 89 Sensor sensor = mSensorManager.getDefaultSensor(sensorType); local [all...] |
| /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
| ShadowSensorManagerTest.java | 7 import android.hardware.Sensor; 60 Sensor sensor = sensorManager.getDefaultSensor(SensorManager.SENSOR_ACCELEROMETER); local 61 sensorManager.registerListener(listener, sensor, SensorManager.SENSOR_DELAY_NORMAL); 96 Sensor sensor = Shadow.newInstanceOf(Sensor.class); local 97 shadowOf(sensorManager).addSensor(Sensor.TYPE_ACCELEROMETER, sensor); 98 assertThat(sensor).isSameAs(sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER)) [all...] |
| /device/google/contexthub/util/nanotool/ |
| contexthub.cpp | 202 LOGI("Enabling sensor %d at rate %.0f Hz (special 0x%x) and latency %.2f ms", 211 LOGE("Could not enable sensor %d", spec.sensor_type); 230 // twice then disable once, the sensor will be disabled 231 LOGI("Disabling sensor %d", sensor_type); 238 LOGE("Could not disable sensor %d", sensor_type); 361 bool ContextHub::CalibrateSingleSensor(const SensorSpec& sensor) { 365 req.config.sensor_type = static_cast<uint8_t>(sensor.sensor_type); 369 LOGI("Issuing calibration request to sensor %d (%s)", sensor.sensor_type, 370 ContextHub::SensorTypeToAbbrevName(sensor.sensor_type).c_str()) [all...] |
| /compatibility/cdd/7_hardware-compatibility/ |
| 7_3_sensors.md | 3 If device implementations include a particular sensor type that has a 17 * [C-0-3] MUST behave reasonably for all other sensor APIs (for example, by 19 listeners, not calling sensor listeners when the corresponding sensors are not 22 If device implementations include a particular sensor type that has a 25 * [C-1-1] MUST [report all sensor measurements]( 28 sensor type as defined in the Android SDK documentation. 29 * [C-1-2] MUST report sensor data with a maximum latency of 100 milliseconds 30 + 2 * sample_time for the case of a sensor streamed with a minimum required 33 * [C-1-3] MUST report the first sensor sample within 400 milliseconds + 2 * 34 sample_time of the sensor being activated. It is acceptable for this sample t [all...] |
| /frameworks/base/core/java/android/view/ |
| OrientationListener.java | 53 * @param rate at which sensor events are processed (see also 79 * Enables the OrientationListener so it will monitor the sensor and call 93 public void onAccuracyChanged(int sensor, int accuracy) { 96 public void onSensorChanged(int sensor, float[] values) {
|
| /frameworks/base/core/jni/ |
| android_hardware_SensorManager.cpp | 28 #include <sensor/Sensor.h> 29 #include <sensor/SensorEventQueue.h> 30 #include <sensor/SensorManager.h> 91 //android.hardware.Sensor 94 MakeGlobalRefOrDie(_env, FindClassOrDie(_env, "android/hardware/Sensor")); 154 translateNativeSensorToJavaSensor(JNIEnv *env, jobject sensor, const Sensor& nativeSensor) { 157 if (sensor == NULL) { 158 // Sensor sensor = new Sensor() 224 jobject sensor = translateNativeSensorToJavaSensor(env, NULL, nativeList[i]); local [all...] |
| /frameworks/native/libs/binder/include/binder/ |
| IBatteryStats.h | 33 virtual void noteStartSensor(int uid, int sensor) = 0; 34 virtual void noteStopSensor(int uid, int sensor) = 0;
|
| /hardware/libhardware/modules/sensors/dynamic_sensor/ |
| BaseDynamicSensorDaemon.cpp | 33 ALOGI("no valid sensor is defined in device %s, ignore", deviceKey.c_str()); 38 // then register sensor to dynamic sensor manager, result.first is the iterator 53 for (auto &sensor : sensors) { 54 mManager.unregisterSensor(sensor);
|
| /device/linaro/hikey/ |
| device-common.mk | 87 # Sensor HAL 110 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \ 111 frameworks/native/data/etc/android.hardware.sensor.ambient_temperature.xml:system/etc/permissions/android.hardware.sensor.ambient_temperature.xml \ 112 frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \ 113 frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \ 114 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml [all...] |
| /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
| ShadowSensorManager.java | 5 import android.hardware.Sensor; 23 private final Map<Integer, Sensor> sensorMap = new HashMap<>(); 29 * Provide a Sensor for the indicated sensor type. 30 * @param sensorType from Sensor constants 31 * @param sensor Sensor instance 33 public void addSensor(int sensorType, Sensor sensor) { 34 sensorMap.put(sensorType, sensor); [all...] |
| /frameworks/native/services/sensorservice/tests/ |
| sensorservicetest.cpp | 18 #include <android/sensor.h> 19 #include <sensor/Sensor.h> 20 #include <sensor/SensorManager.h> 21 #include <sensor/SensorEventQueue.h> 47 if (buffer[i].type == Sensor::TYPE_ACCELEROMETER) { 65 SensorManager& mgr = SensorManager::getInstanceForPackage(String16("Sensor Service Test")); 67 Sensor const* const* list; 74 Sensor const* accelerometer = mgr.getDefaultSensor(Sensor::TYPE_ACCELEROMETER) [all...] |
| /device/google/wahoo/thermal/ |
| sensors.cpp | 80 auto sensor = sensor_name_to_data_map_.at(sensor_name); local 83 out->throttlingThreshold = std::get<1>(sensor); 84 out->shutdownThreshold = std::get<2>(sensor); 85 out->vrThrottlingThreshold = std::get<3>(sensor); 86 out->type = std::get<4>(sensor);
|