/device/generic/armv7-a-neon/ |
mini_common.mk | 67 frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \ 68 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \ 69 frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
|
/device/htc/flounder/sensor_hub/libsensors/ |
CwMcuSensor.cpp | 211 ALOGE("Sync: sensor hub is on reset\n"); 277 mPendingEvents[CW_ACCELERATION].sensor = ID_A; 282 mPendingEvents[CW_MAGNETIC].sensor = ID_M; 286 mPendingEvents[CW_GYRO].sensor = ID_GY; 291 mPendingEvents[CW_LIGHT].sensor = ID_L; 296 mPendingEvents[CW_PRESSURE].sensor = ID_PS; 301 mPendingEvents[CW_ORIENTATION].sensor = ID_O; 306 mPendingEvents[CW_ROTATIONVECTOR].sensor = ID_RV; 310 mPendingEvents[CW_LINEARACCELERATION].sensor = ID_LA; 314 mPendingEvents[CW_GRAVITY].sensor = ID_G [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
SensorSynchronizationTestActivity.java | 10 import android.hardware.Sensor; 21 * Test cross-sensor timestamp alignment by detecting major change in each 22 * sensor and comparing timestamps of that change. 48 mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER), 51 mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD), 54 mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE), 64 Assert.assertTrue("No sensor events collected", numberOfCollectedEvents > 2); 75 if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) { 83 } else if (event.sensor.getType() == Sensor.TYPE_MAGNETIC_FIELD) [all...] |
StepCounterTestActivity.java | 25 import android.hardware.Sensor; 61 private Sensor mSensorStepCounter; 62 private Sensor mSensorStepDetector; 80 mSensorStepCounter = mSensorManager.getDefaultSensor(Sensor.TYPE_STEP_COUNTER); 81 mSensorStepDetector = mSensorManager.getDefaultSensor(Sensor.TYPE_STEP_DETECTOR); 207 // sensor not supported, so no-op 215 String sensorName = counterEvent.sensor.getName(); 243 + TestSensorEnvironment.getSensorMaxDetectionLatencyNs(counterEvent.sensor); 248 counterEvent.sensor.getName()); 272 counterEvent.sensor.getName()) [all...] |
/device/google/contexthub/sensorhal/ |
hubconnection.h | 208 sensors_event_t *initEv(sensors_event_t *ev, uint64_t timestamp, uint32_t type, uint32_t sensor); 210 void processSample(uint64_t timestamp, uint32_t type, uint32_t sensor, struct OneAxisSample *sample, bool highAccuracy); 211 void processSample(uint64_t timestamp, uint32_t type, uint32_t sensor, struct RawThreeAxisSample *sample, bool highAccuracy); 212 void processSample(uint64_t timestamp, uint32_t type, uint32_t sensor, struct ThreeAxisSample *sample, bool highAccuracy);
|
Android.mk | 16 # Nanohub sensor HAL usage instructions: 20 # # Enable the nanohub sensor HAL 23 # # Nanohub sensor list source file 26 # # Sensor HAL name override (optional)
|
/frameworks/native/services/sensorservice/ |
SensorService.h | 27 #include <gui/Sensor.h> 99 // the HAL ignores the sensor data provided by physical sensors and accepts the data that is 100 // injected from the SensorService as if it were the real sensor data. This mode is primarily 103 // SensorEventConnection) which will be injecting sensor data into the HAL. Normal apps can 104 // unregister and register for any sensor that supports injection. Registering to sensors 106 // client to inject sensor data at a time. 108 // This mode is used only for testing sensors. Each sensor can be tested in isolation with 118 // receive events if a whitelisted app requests data from the same sensor. 151 virtual Vector<Sensor> getSensorList(const String16& opPackageName); 152 virtual Vector<Sensor> getDynamicSensorList(const String16& opPackageName) [all...] |
/sdk/testapps/testSensors/src/com/android/tests/testsensors/ |
TestSensorsActivity.java | 23 import android.hardware.Sensor; 41 * Encapsulates a sensor. 44 /** Sensor to monitor. */ 45 private final Sensor mSensor; 46 /** Check box representing the sensor on the screen. */ 48 /** Text view displaying the value of the sensor. */ 56 * @param sensor Sensor to monitor. 58 MonitoredSensor(Sensor sensor) { [all...] |
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/ |
SensorCalibratedUncalibratedVerifier.java | 25 * A bundled sensor test operation/verification. 33 // is factored into: operation, verification, and listener as other sensor test operations 117 "Calibrated (%s) and Uncalibrated (%s) sensor readings are expected to satisfy:" 120 calibratedEvent.sensor.getName(), 121 uncalibratedEvent.sensor.getName(),
|
/frameworks/base/native/android/ |
Android.mk | 18 sensor.cpp \
|
/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/ |
Balls.java | 41 import android.hardware.Sensor; 60 //android.util.Log.d("rs", "sensor: " + event.sensor + ", x: " + event.values[0] + ", y: " + event.values[1] + ", z: " + event.values[2]); 62 if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) { 70 public void onAccuracyChanged(Sensor sensor, int accuracy) { 88 mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER),
|
/packages/services/Car/tests/android_car_api_test/src/com/android/car/apitest/ |
CarSensorManagerTest.java | 82 for (int sensor: supportedSensors) { 83 if (sensor == CarSensorManager.SENSOR_TYPE_DRIVING_STATUS) {
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/ |
SensorManagerFacade.java | 20 import android.hardware.Sensor; 43 * sensor readings have up to 16 decimal places, the majority of which are noise. On many phones the 48 * Following a startSensingTimed(A,B) api call sensor events are entered into the Event Queue (see 51 * duplicate readings the minimum delay should be 20 milliseconds. The light sensor will probably be 53 * level is constant no sensor events will be registered by the light sensor. 55 * Following a startSensingThreshold(A,B,C) api call sensor events greater than a given threshold 60 * C parameter is the required axis (XYZ) of the sensor: 0 = No axis, 1 = X, 2 = Y, 3 = X+Y, 4 = Z, 141 @Rpc(description = "Starts recording sensor data to be available for polling.") 157 for (Sensor sensor : mSensorManager.getSensorList(Sensor.TYPE_ALL)) [all...] |
/packages/services/Car/service/src/com/android/car/ |
CarSensorService.java | 63 * Abstraction for logical sensor which is not physical sensor but presented as sensor to 67 * is state change for the given sensor after {@link SensorHalServiceBase#init()} 72 /** Sensor service is ready and all vehicle sensors are available. */ 77 * When set, sensor service sets its own dispatching rate limit. 85 /** lock to access sensor structures */ 90 /** key: sensor type. */ 93 /** key: sensor type. */ 115 mHandlerThread = new HandlerThread("SENSOR", Process.THREAD_PRIORITY_AUDIO) 580 int sensor = mCarProvidedSensors[i]; local 607 int sensor = mCarProvidedSensors[i]; local 948 int sensor = mSensorRecords.keyAt(i); local 987 int sensor = mSensorListeners.keyAt(i); local [all...] |
/device/moto/shamu/ |
device.mk | 74 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \ 75 frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \ 76 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \ 77 frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \ 78 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml [all...] |
/developers/build/prebuilts/gradle/BatchStepSensor/Application/src/main/java/com/example/android/batchstepsensor/ |
BatchStepSensorFragment.java | 21 import android.hardware.Sensor; 84 // List of timestamps when sensor events occurred 89 // pointer to next entry in sensor event list 94 // Value of the step counter sensor when the listener was registered. 102 // When a listener is registered, the batch sensor delay in microseconds 135 * higher and has a step counter and step detector sensor. 172 registerEventListener(BATCH_LATENCY_0, Sensor.TYPE_STEP_COUNTER); 175 registerEventListener(BATCH_LATENCY_5s, Sensor.TYPE_STEP_COUNTER); 178 registerEventListener(BATCH_LATENCY_10s, Sensor.TYPE_STEP_COUNTER); 183 registerEventListener(BATCH_LATENCY_0, Sensor.TYPE_STEP_DETECTOR) 257 Sensor sensor = sensorManager.getDefaultSensor(sensorType); local 468 String sensor = "-"; local [all...] |
/developers/samples/android/sensors/BatchStepSensor/Application/src/main/java/com/example/android/batchstepsensor/ |
BatchStepSensorFragment.java | 21 import android.hardware.Sensor; 84 // List of timestamps when sensor events occurred 89 // pointer to next entry in sensor event list 94 // Value of the step counter sensor when the listener was registered. 102 // When a listener is registered, the batch sensor delay in microseconds 135 * higher and has a step counter and step detector sensor. 172 registerEventListener(BATCH_LATENCY_0, Sensor.TYPE_STEP_COUNTER); 175 registerEventListener(BATCH_LATENCY_5s, Sensor.TYPE_STEP_COUNTER); 178 registerEventListener(BATCH_LATENCY_10s, Sensor.TYPE_STEP_COUNTER); 183 registerEventListener(BATCH_LATENCY_0, Sensor.TYPE_STEP_DETECTOR) 257 Sensor sensor = sensorManager.getDefaultSensor(sensorType); local 468 String sensor = "-"; local [all...] |
/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/ |
BatchStepSensorFragment.java | 21 import android.hardware.Sensor; 84 // List of timestamps when sensor events occurred 89 // pointer to next entry in sensor event list 94 // Value of the step counter sensor when the listener was registered. 102 // When a listener is registered, the batch sensor delay in microseconds 135 * higher and has a step counter and step detector sensor. 172 registerEventListener(BATCH_LATENCY_0, Sensor.TYPE_STEP_COUNTER); 175 registerEventListener(BATCH_LATENCY_5s, Sensor.TYPE_STEP_COUNTER); 178 registerEventListener(BATCH_LATENCY_10s, Sensor.TYPE_STEP_COUNTER); 183 registerEventListener(BATCH_LATENCY_0, Sensor.TYPE_STEP_DETECTOR) 257 Sensor sensor = sensorManager.getDefaultSensor(sensorType); local 468 String sensor = "-"; local [all...] |
/packages/apps/Camera2/src/com/android/camera/one/v2/ |
AutoFocusHelper.java | 116 /** Compute 3A regions for a sensor-referenced touch coordinate. 124 * @param sensorOrientation sensor orientation as defined by 133 // Compute the output MeteringRectangle in sensor space. 135 // Crop region itself is specified in sensor coordinates. 137 // Normalized coordinates, now rotated into sensor space. 159 * Return AF region(s) for a sensor-referenced touch coordinate. 175 * Return AE region(s) for a sensor-referenced touch coordinate. 191 * [Gcam mode only]: Return AE region(s) for a sensor-referenced touch coordinate. 207 * Calculates sensor crop region for a zoom level (zoom >= 1.0). 212 Rect sensor = characteristics.get(CameraCharacteristics.SENSOR_INFO_ACTIVE_ARRAY_SIZE) local [all...] |
/cts/tests/tests/hardware/src/android/hardware/cts/ |
SensorAdditionalInfoTest.java | 20 import android.hardware.Sensor; 33 * Checks Sensor Additional Information feature functionality. 52 List<Sensor> list = mSensorManager.getSensorList(Sensor.TYPE_ALL); 54 for (Sensor s : list) { 55 // skip vendor sensor types and those that do not support additional info 57 if (s.getType() >= Sensor.TYPE_DEVICE_PRIVATE_BASE || 59 s.getReportingMode() == Sensor.REPORTING_MODE_ONE_SHOT || 60 s.getReportingMode() == Sensor.REPORTING_MODE_ON_CHANGE) { 66 errors.add("Sensor: " + s.getName() + ", error: " + e.getMessage()) [all...] |
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensorverification/ |
EventBasicVerification.java | 22 import android.hardware.Sensor; 32 * A {@link ISensorVerification} which verifies if the collected sensor events have any obvious 33 * problems, such as no sample, wrong sensor type, etc. 38 // allowed time from registration to sensor start sampling 42 // allowed time for entire sensor system to send sample to test app 62 Sensor sensor) { 64 mSensor = sensor; 87 // The calculation is still OK if sampleUs is not the actual sensor hardware 108 // When the sensor under test is the only one active, max fifo size is assumed to b [all...] |
EventBasicVerificationTest.java | 21 import android.hardware.Sensor; 41 /* Sensor contents is not used in this verification, use Object as mock */ 44 Sensor sensor1 = null; 46 // accelerometer is the most likely sensor to exist 47 Sensor sensor2 = mgr.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); 78 // if we cannot even get a second sensor then do not bother this test. 84 fail("Expect an AssertionError due to wrong sensor event"); 89 // zero here because wrong sensor is used. 96 int expectedMinNumEvent, Sensor sensor, Sensor eventSensor, float[] ... values) [all...] |
/device/google/contexthub/util/nanotool/ |
contexthub.h | 38 // The order of this enum must correspond to sensor types in nanohub's 76 // Overloaded values of rate used in sensor enable request (see sensors.h) 87 // When enabling a sensor, rate can be specified in Hz or as one of the 129 * Performs the sensor calibration routine and writes the resulting data to 135 * Sends a sensor enable request to the context hub. 137 bool EnableSensor(const SensorSpec& sensor); 141 * Sends a disable sensor request to context hub. Note that this always 142 * results in sending a request, i.e. this does not check whether the sensor 149 * Sends a disable sensor request for every sensor type we know about [all...] |
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/ |
AppRTCProximitySensor.java | 17 import android.hardware.Sensor; 25 * AppRTCProximitySensor manages functions related to the proximity sensor in 27 * On most device, the proximity sensor is implemented as a boolean-sensor. 29 * value i.e. the LUX value of the light sensor is compared with a threshold. 30 * A LUX-value more than the threshold means the proximity sensor returns "FAR". 31 * Anything less than the threshold value and the sensor returns "NEAR". 43 private Sensor proximitySensor = null; 60 * Activate the proximity sensor. Also do initializtion if called for the 67 // Proximity sensor is not supported on this device [all...] |
/device/google/dragon/ |
device.mk | 90 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \ 91 frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \ 92 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \ 93 frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
|