| /hardware/libhardware/modules/sensors/dynamic_sensor/ |
| SensorEventCallback.h | 32 virtual int submitEvent(SP(BaseSensorObject) sensor, const sensors_event_t &e) = 0; member in class:android::SensorHalExt::SensorEventCallback
|
| DynamicSensorManager.cpp | 48 "Dynamic Sensor Manager", 115 .sensor = mHandleRange.first, 130 bool DynamicSensorManager::registerSensor(sp<BaseSensorObject> sensor) { 132 if (mReverseMap.find(sensor.get()) != mReverseMap.end()) { 133 ALOGE("trying to add the same sensor twice, ignore"); 143 mMap.emplace(handle, sensor); 144 mReverseMap.emplace(sensor.get(), handle); 145 sensor->setEventCallback(this); 150 std::forward_as_tuple(handle, sensor)); 157 void DynamicSensorManager::unregisterSensor(sp<BaseSensorObject> sensor) { [all...] |
| /system/chre/chre_api/legacy/v1_0/ |
| chre.h | 36 #include <chre/sensor.h>
|
| /system/chre/platform/shared/ |
| platform_sensor_util.cc | 22 #include "chre/core/sensor.h" 34 LOGE("%" PRIu16 " samples in an event for on-change sensor %" PRIu8, 51 Sensor *sensor = EventLoopManagerSingleton::get() 54 // Mark last event as valid only if the sensor is enabled. Event data 55 // may arrive after sensor is disabled. 56 if (sensor != nullptr 57 && sensor->getRequest().getMode() != SensorMode::Off) { 58 sensor->setLastEvent(cbData->event);
|
| /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
| EventSanitizationTestActivity.java | 19 import android.hardware.Sensor; 60 // Not significant motion sensor, nothing to do. 63 final Sensor sensor = sensorManager.getDefaultSensor( local 64 Sensor.TYPE_SIGNIFICANT_MOTION); 65 if (sensor == null) { 66 throw new SensorNotSupportedException(Sensor.TYPE_SIGNIFICANT_MOTION); 82 sensorManager.requestTriggerSensor(listener, sensor); 93 sensorManager.cancelTriggerSensor(listener, sensor); 104 // Not significant motion sensor, nothing to do 107 final Sensor sensor = sensorManager.getDefaultSensor( local [all...] |
| DeviceSuspendTestActivity.java | 20 import android.hardware.Sensor; 126 Sensor wakeUpSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER, true); 128 throw new SensorNotSupportedException(Sensor.TYPE_ACCELEROMETER, true); 134 Sensor wakeUpSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE, true); 136 throw new SensorNotSupportedException(Sensor.TYPE_GYROSCOPE, true); 142 Sensor wakeUpSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD,true); 144 throw new SensorNotSupportedException(Sensor.TYPE_MAGNETIC_FIELD, true) [all...] |
| /external/devlib/devlib/instrument/ |
| hwmon.py | 27 # sensor kind --> (meaure, standard unit conversion) 47 self.logger.debug('\tAdding sensor {}'.format(ts.name)) 48 self.add_channel(_guess_site(ts), measure, sensor=ts) 50 self.logger.debug('\tSkipping sensor {} (unknown kind "{}")'.format(ts.name, ts.kind)) 52 message = 'Skipping sensor {} because it does not have an input file' 59 convert = self.measure_map[chan.sensor.kind][1] 60 value = convert(chan.sensor.get('input')) 65 def _guess_site(sensor): 72 identify the best "candidate" for the site to which the sensor belongs. 74 if sensor.name == sensor.label [all...] |
| /external/libxcam/tests/ |
| test-xcamsrc-camera.sh | 3 gst-launch-1.0 xcamsrc sensor-id=3 capture-mode=1 io-mode=4 ! video/x-raw, format=NV12, width=1920, height=1080, framerate=30/1 ! queue ! vaapiencode_h264 ! fakesink
|
| /cts/tests/sensor/src/android/hardware/cts/helpers/ |
| TestSensorEnvironment.java | 20 import android.hardware.Sensor; 30 * The environment is self contained and carries its state around all the sensor test framework. 35 * It represents the fraction of the expected sampling frequency, at which the sensor can 41 private final Sensor mSensor; 49 * Constructs an environment for sensor testing. 52 * @param sensorType The type of the sensor under test 53 * @param samplingPeriodUs The requested collection period for the sensor under test 55 * @deprecated Use variants with {@link Sensor} objects. 63 * Constructs an environment for sensor testing. 66 * @param sensorType The type of the sensor under tes 389 Sensor sensor = sensorManager.getDefaultSensor(sensorType); local [all...] |
| /frameworks/base/core/java/android/hardware/ |
| SystemSensorManager.java | 45 * Sensor manager implementation that communicates with the built-in 59 Sensor sensor, int index); 60 private static native void nativeGetDynamicSensors(long nativeInstance, List<Sensor> list); 79 private final ArrayList<Sensor> mFullSensorsList = new ArrayList<>(); 80 private List<Sensor> mFullDynamicSensorsList = new ArrayList<>(); 83 private final HashMap<Integer, Sensor> mHandleToSensor = new HashMap<>(); 91 // Dynamic Sensor callbacks 116 // initialize the sensor list 118 Sensor sensor = new Sensor() local 121 mHandleToSensor.put(sensor.getHandle(), sensor); local 686 Sensor sensor = mManager.mHandleToSensor.get(handle); local 805 final Sensor sensor = mManager.mHandleToSensor.get(handle); local 841 final Sensor sensor = mManager.mHandleToSensor.get(handle); local 857 final Sensor sensor = mManager.mHandleToSensor.get(handle); local 900 final Sensor sensor = mManager.mHandleToSensor.get(handle); local [all...] |
| /hardware/libhardware/modules/sensors/dynamic_sensor/test/ |
| HidRawDeviceTest.cpp | 35 using namespace Hid::Sensor::SensorTypeUsage; 72 SP(HidRawSensor) sensor = std::make_shared<HidRawSensor>( 75 if (!sensor->isValid()) { 76 LOG_E << "Sensor is not valid " << LOG_ENDL; 80 const sensor_t *s = sensor->getSensor(); 81 LOG_V << "Sensor name: " << s->name << ", vendor: " << s->vendor << LOG_ENDL; 82 LOG_V << sensor->dump() << LOG_ENDL; 85 virtual int submitEvent(SP(BaseSensorObject) /*sensor*/, const sensors_event_t &e) { 86 LOG_V << "sensor: " << e.sensor << ", type: " << e.type << ", ts: " << e.timestam [all...] |
| /hardware/invensense/6515/libsensors_iio/software/simple_apps/devnode_parser/ |
| read_device_node.c | 56 void get_sensor_data(char *d, short *sensor) 60 sensor[i] = *(short *)(d + 2 + i * 2); 76 short sensor[3]; local 121 get_sensor_data(dptr, sensor); 123 printf("PRESS, %d, %lld\n", (sensor[1] << 16) + (unsigned short)sensor[2], *(long long *)dptr); 129 get_sensor_data(dptr, sensor); 131 printf("ACCEL, %d, %d, %d, %lld\n", sensor[0], sensor[1], sensor[2], *(long long *)dptr) [all...] |
| /cts/tests/sensor/src/android/hardware/cts/ |
| SensorParameterRangeTest.java | 21 import android.hardware.Sensor; 80 mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER), 88 mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE), 96 mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD), 105 mSensorManager.getDefaultSensor(Sensor.TYPE_PRESSURE), 113 Sensor sensor, double maxRange, double minFrequency, double maxFrequency) { 116 sensor.getName(), sensor.getMaximumRange(), maxRange, 117 SensorCtsHelper.getUnitsForSensor(sensor)), 165 Sensor sensor = mSensorManager.getDefaultSensor(sensorType); local [all...] |
| /frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
| AsyncSensorManager.java | 20 import android.hardware.Sensor; 37 * Wrapper around sensor manager that hides potential sources of latency. 48 private final List<Sensor> mSensorCache; 56 mSensorCache = mInner.getSensorList(Sensor.TYPE_ALL); 60 protected List<Sensor> getFullSensorList() { 65 protected List<Sensor> getFullDynamicSensorList() { 66 return mInner.getDynamicSensorList(Sensor.TYPE_ALL); 70 protected boolean registerListenerImpl(SensorEventListener listener, Sensor sensor, int delayUs, 73 if (!mInner.registerListener(listener, sensor, delayUs, maxReportLatencyUs, handler)) [all...] |
| /frameworks/native/libs/sensor/ |
| SensorEventQueue.cpp | 19 #include <sensor/SensorEventQueue.h> 27 #include <sensor/Sensor.h> 28 #include <sensor/BitTube.h> 29 #include <sensor/ISensorEventConnection.h> 31 #include <android/sensor.h> 124 status_t SensorEventQueue::enableSensor(Sensor const* sensor) const { 125 return enableSensor(sensor, SENSOR_DELAY_NORMAL); 128 status_t SensorEventQueue::enableSensor(Sensor const* sensor, int32_t samplingPeriodUs) const [all...] |
| /frameworks/hardware/interfaces/sensorservice/libsensorndkbridge/ |
| ASensorEventQueue.h | 24 #include <android/sensor.h> 46 ASensorRef sensor, 50 int enableSensor(ASensorRef sensor); 51 int disableSensor(ASensorRef sensor); 53 int setEventRate(ASensorRef sensor, int32_t samplingPeriodUs);
|
| ASensorEventQueue.cpp | 44 ASensorRef sensor, 48 reinterpret_cast<const SensorInfo *>(sensor)->sensorHandle, 59 int ASensorEventQueue::enableSensor(ASensorRef sensor) { 63 sensor, SENSOR_DELAY_NORMAL, 0 /* maxBatchReportLatencyUs */); 67 ASensorRef sensor, int32_t samplingPeriodUs) { 68 // Technically this is not supposed to enable the sensor but using this 69 // API without enabling the sensor first is a no-op, so... 71 sensor, samplingPeriodUs, 0 /* maxBatchReportLatencyUs */); 74 int ASensorEventQueue::disableSensor(ASensorRef sensor) { 76 reinterpret_cast<const SensorInfo *>(sensor)->sensorHandle) [all...] |
| /tools/loganalysis/tests/src/com/android/loganalysis/parser/ |
| ProcessUsageParserTest.java | 44 " Sensor 44: 27m 18s 207ms realtime (22 times)", 45 " Sensor 36: 6s 483ms realtime (3 times)", 53 " Sensor 0: 5s 207ms realtime (2 times)", 70 LinkedList<SensorInfoItem> sensor = processUsageInfo.get(1).getSensorUsage(); local 71 assertEquals("44", sensor.get(0).getSensorName()); 72 assertEquals("36", sensor.get(1).getSensorName()); 74 sensor = processUsageInfo.get(2).getSensorUsage(); 75 assertEquals("0", sensor.get(0).getSensorName());
|
| /sdk/apps/SdkController/src/com/android/tools/sdkcontroller/handlers/ |
| SensorChannel.java | 24 import android.hardware.Sensor; 46 * The target update time per sensor. Ignored if 0 or negative. 47 * Sensor updates that arrive faster than this delay are ignored. 59 /** Sensor manager. */ 67 * Sensor "enabled by emulator" state has changed. Parameter {@code obj} is 72 * Sensor display value has changed. Parameter {@code obj} is the 86 List<Sensor> sensors = mSenMan.getSensorList(Sensor.TYPE_ALL); 89 Sensor avail_sensor = sensors.get(n); 93 // The first sensor we've got for the given type is no 252 final MonitoredSensor sensor = getSensorByEFN(name); local 273 MonitoredSensor sensor = getSensorByEFN(name); local [all...] |
| /cts/tests/tests/car/src/android/car/cts/ |
| CarSensorManagerTest.java | 42 for (int sensor: supportedSensors) { 43 if (sensor == CarSensorManager.SENSOR_TYPE_CAR_SPEED) { 45 } else if ( sensor == CarSensorManager.SENSOR_TYPE_GEAR) {
|
| /frameworks/native/services/sensorservice/ |
| OrientationSensor.h | 23 #include <sensor/Sensor.h>
|
| SensorDirectConnection.h | 25 #include <sensor/Sensor.h> 26 #include <sensor/BitTube.h> 27 #include <sensor/ISensorServer.h> 28 #include <sensor/ISensorEventConnection.h> 47 // stop all active sensor report. if backupRecord is set to false, 52 // recover sensor reports previously stopped by stopAll(true)
|
| /system/chre/chre_api/include/chre_api/ |
| chre.h | 37 #include <chre/sensor.h> 77 * especially latency-sensitive tasks such as sensor event delivery to the AP.
|
| /system/chre/chre_api/legacy/v1_1/ |
| chre.h | 36 #include <chre/sensor.h> 76 * especially latency-sensitive tasks such as sensor event delivery to the AP.
|
| /frameworks/native/libs/sensor/include/sensor/ |
| SensorEventQueue.h | 27 #include <sensor/BitTube.h> 44 class Sensor; 56 * Typical sensor delay (sample period) in microseconds. 64 // Default sensor sample period 81 status_t enableSensor(Sensor const* sensor) const; 82 status_t enableSensor(Sensor const* sensor, int32_t samplingPeriodUs) const; 83 status_t disableSensor(Sensor const* sensor) const [all...] |