| /hardware/intel/common/utils/ituxd/src/com/intel/thermal/ |
| ThermalZone.java | 43 // sensor name - sensorAttrib object hash to improve lookup performace 44 // during runtime thermal monitoring like re-programming sensor thresholds 51 protected boolean mSupportsUEvent; /* Determines if Sensor supports Uevents */ 64 private int mRecordedValuesHead = -1; /* Index pointing to the head of past values of sensor */ 65 private int mRecordedValues[]; /* Recorded values of sensor */ 126 // Sensor State starts with -1, InstancesList starts with 0 208 // since each object of sensor attrib list is already validated during 209 // parsing it is gauranteed that 'sa != null' and a valid sensor object 's' 402 // 2. if sensor list null disable zone 412 Log.i(TAG, "deactivate zone:" + getZoneName() + " sensor list null! ") 555 ThermalSensor sensor = mThermalSensors.get(0); local [all...] |
| /frameworks/native/services/sensorservice/ |
| SensorService.h | 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 primaril [all...] |
| RotationVectorSensor.h | 23 #include <sensor/Sensor.h>
|
| /sdk/apps/SdkController/src/com/android/tools/sdkcontroller/activities/ |
| SensorActivity.java | 46 * For each sensor it displays a checkbox that is enabled if the sensor is supported 47 * by the emulator. The user can select whether the sensor is active. It also displays 48 * data from the sensor when available. 183 for (MonitoredSensor sensor : sensors) { 188 mDisplayedSensors.put(sensor, new DisplayInfo(sensor, row)); 210 public DisplayInfo(MonitoredSensor sensor, TableRow row) { 211 mSensor = sensor; 213 // Initialize displayed checkbox for this sensor, and registe [all...] |
| /device/generic/armv7-a-neon/ |
| mini_common.mk | 68 frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \ 69 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \ 70 frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
|
| /hardware/libhardware/modules/sensors/dynamic_sensor/ |
| DynamicSensorManager.h | 37 // handleBase is reserved for the dynamic sensor meta sensor. 40 // In extension mode, callback must not be nullptr. Sensor event generated will be submitted to 41 // buffer of primary sensor HAL implementation. In stand-alone mode, callback must be nullptr. 42 // Generated sensor events will be added into internal buffer waiting for poll() function to 49 // calls to add or remove sensor, called from sensor daemon 50 bool registerSensor(sp<BaseSensorObject> sensor); 51 void unregisterSensor(sp<BaseSensorObject> sensor); 53 // Determine if a sensor handle is in the range defined in constructor [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...] |
| DynamicSensorDiscoveryTestActivity.java | 23 import android.hardware.Sensor; 38 * CTS Verifier case for verifying dynamic sensor discovery feature. 76 showUserMessage("This test will requires the user to connect an external sensor (" + 88 showUserMessage(String.format("Please connect an external sensor to device in %d seconds.", 91 Assert.assertTrue("Cannot detect sensor connection.", mCallback.waitForConnection(null)); 102 Assert.assertTrue("Dynamic sensor flag is not set correctly for at least one sensor", 105 Assert.assertTrue("Sensor connected, but is not in dynamic sensor list", 108 Assert.assertTrue("Sensor connected, but is not in dynamic sensor list of its type" [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...] |
| /packages/services/Car/car-lib/src/android/car/diagnostic/ |
| CarDiagnosticEvent.java | 118 * id: the integer identifier of the sensor; 119 * value: the integer value of the sensor; 121 * id: the integer identifier of the sensor; 122 * value: the floating-point value of the sensor; 222 /** Adds an integer-valued sensor to the frame being built */ 228 /** Adds a float-valued sensor to the frame being built */ 397 * Returns the value of the given integer sensor, if present in this frame. 401 @android.car.diagnostic.IntegerSensorIndex.SensorIndex int sensor, int defaultValue) { 402 return intValues.get(sensor, defaultValue); 406 * Returns the value of the given float sensor, if present in this frame [all...] |
| /packages/services/Car/service/src/com/android/car/hal/ |
| SensorHalServiceBase.java | 34 * It is wholly based on subscription and there is no explicit API for polling, but each sensor 36 * It is ok to report sensor data {@link SensorListener#onSensorData(CarSensorEvent)} inside 61 int sensor = getTokenForProperty(halProperty); local 62 boolean mapped = sensor != SENSOR_TYPE_INVALID; 66 (mapped ? (" mapped to " + sensor) : " ignored")); 70 mSensorToPropConfig.append(sensor, halProperty); 87 * Sensor HAL should be ready after init call. 113 Log.e(TAG, "requesting to start sensor " + sensorType + ", but VHAL config not found"); 138 Log.e(TAG, "sensor type not available 0x" + toHexString(sensorType)); 153 // sensor provider [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...] |
| /system/chre/core/include/chre/core/ |
| sensor_request_manager.h | 21 #include "chre/core/sensor.h" 33 * sensor list with platform sensors. 38 * Destructs the sensor request manager and releases platform sensor resources 44 * Determines whether the runtime is aware of a given sensor type. The 45 * supplied sensorHandle is only populated if the sensor type is known. 47 * @param sensorType The type of the sensor. 48 * @param sensorHandle A non-null pointer to a uint32_t to use as a sensor 50 * @return true if the supplied sensor type is available for use. 55 * Sets a sensor request for the given nanoapp for the provided sensor handle 140 Optional<Sensor> sensor; member in struct:chre::SensorRequestManager::SensorRequests [all...] |
| /cts/tests/sensor/jni/ |
| SensorTest.h | 21 #include <android/sensor.h> 61 int configureDirectReport(TestSensor sensor, int channel, int rateLevel);
|
| SensorTestCases.cpp | 135 // Test sensor direct report functionality 150 TestSensor sensor = mManager->getDefaultSensor(sensorType); local 151 if (!sensor.isValid() 152 || sensor.getHighestDirectReportRateLevel() < rateLevel 153 || !sensor.isDirectChannelTypeSupported(channelType)) { 154 // no sensor of type sensorType or it does not declare support of channelType or rateLevel 186 eventToken = mManager->configureDirectReport(sensor, channel, rateLevel); 213 ASSERT_EQ(e.sensor, eventToken); 240 // stop sensor and unregister channel 241 mManager->configureDirectReport(sensor, channel, ASENSOR_DIRECT_RATE_STOP) [all...] |
| /cts/tests/sensor/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/core/java/android/hardware/ |
| SensorDirectChannel.java | 30 * Class representing a sensor direct channel. Use 34 * (see {@link #configure(Sensor, int)}) 35 * to start delivery of sensor events into shared memory buffer. 63 // sensor rate levels 76 * Sensor stopped (no event output). 78 * @see #configure(Sensor, int) 82 * Sensor operates at nominal rate of 50Hz. 87 * @see #configure(Sensor, int) 91 * Sensor operates at nominal rate of 200Hz. 96 * @see #configure(Sensor, int [all...] |
| /frameworks/rs/tests/java_api/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),
|
| /device/google/contexthub/firmware/os/drivers/st_lsm6dsm/ |
| README | 42 #define LSM6DSM_MAGN_ROT_MATRIX 1, 0, 0, 0, 1, 0, 0, 0, 1 /* Magnetometer axis orientation [MUST be set if a magn sensor is enabled] */ 58 /* Magnetometer sensor (only one per time can be used) */ 59 - LSM6DSM_I2C_MASTER_LIS3MDL /* Enable STM LIS3MDL magn sensor */ 60 - LSM6DSM_I2C_MASTER_LSM303AGR /* Enable STM LSM303AGR magn sensor */ 61 - LSM6DSM_I2C_MASTER_AK09916 /* Enable AKM AK09916 magn sensor */ 63 /* Barometer sensor (only one per time can be used) */ 64 - LSM6DSM_I2C_MASTER_LPS22HB /* Enable STM LPS22HB pressure sensor */ 75 configuration (LSM6DSM_ACCEL_GYRO_ROT_MATRIX), magnetometer sensor different one (LSM6DSM_MAGN_ROT_MATRIX). 97 > Magnetometer sensor connected through I2C master interface (LIS3MDL, LSM303AGR, AK09916); 99 > Pressure sensor connected through I2C master interface (LPS22HB) [all...] |
| /device/google/contexthub/sensorhal/ |
| hubconnection.h | 108 void protectIfWakeEventLocked(int32_t sensor); 109 ssize_t decrementIfWakeEventLocked(int32_t sensor); 156 bool hub; // Sensor hub is currently operating in lefty mode 269 sensors_event_t *initEv(sensors_event_t *ev, uint64_t timestamp, uint32_t type, uint32_t sensor); 271 void processSample(uint64_t timestamp, uint32_t type, uint32_t sensor, struct OneAxisSample *sample, bool highAccuracy); 272 void processSample(uint64_t timestamp, uint32_t type, uint32_t sensor, struct RawThreeAxisSample *sample, bool highAccuracy); 273 void processSample(uint64_t timestamp, uint32_t type, uint32_t sensor, struct ThreeAxisSample *sample, bool highAccuracy);
|
| /device/google/cuttlefish/shared/ |
| device.mk | 129 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \ 130 frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \ 131 frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \ 132 frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \ 133 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml [all...] |
| /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, 136 @Rpc(description = "Starts recording sensor data to be available for polling.") 152 for (Sensor sensor : mSensorManager.getSensorList(Sensor.TYPE_ALL)) [all...] |
| /frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
| DozeSensors.java | 25 import android.hardware.Sensor; 87 mSensorManager.getDefaultSensor(Sensor.TYPE_SIGNIFICANT_MOTION), 93 mSensorManager.getDefaultSensor(Sensor.TYPE_PICK_UP_GESTURE), 119 private Sensor findSensorWithType(String type) { 123 static Sensor findSensorWithType(SensorManager sensorManager, String type) { 127 List<Sensor> sensorList = sensorManager.getSensorList(Sensor.TYPE_ALL); 128 for (Sensor s : sensorList) { 150 for (TriggerSensor sensor : mSensors) { 151 if (sensor.mRequiresTouchscreen) [all...] |
| /frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
| BatteryStatsSensorTest.java | 26 * Test BatteryStatsImpl Sensor Timers. 76 // Plugged-in (battery=off, sensor=off) 81 // Start sensor (battery=off, sensor=on) 93 // Stop sensor (battery=off, sensor=off) 112 // Unplugged (battery=on, sensor=off) 116 // Start sensor (battery=on, sensor=on) 128 // Stop sensor (battery=on, sensor=off 398 BatteryStats.Uid.Sensor sensor = uid.getSensorStats().get(SENSOR_ID); local 453 BatteryStats.Uid.Sensor sensor = bi.getUidStats().get(UID).getSensorStats().get(SENSOR_ID); local [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...] |