HomeSort by relevance Sort by last modified time
    Searched refs:sensor (Results 151 - 175 of 463) sorted by null

1 2 3 4 5 67 8 91011>>

  /prebuilts/ndk/r16/sources/android/ndk_helper/
gestureDetector.h 25 #include <android/sensor.h>
  /system/chre/chre_api/include/chre_api/chre/
sensor_types.h 22 * Standalone definition of sensor types, and the data structures of the sample
34 * The CHRE_SENSOR_TYPE_* defines are the sensor types supported.
36 * Unless otherwise noted, each of these sensor types is based off of a
37 * corresponding sensor type in the Android API's sensors.h interface.
46 * Note that every sensor will generate CHRE_EVENT_SENSOR_SAMPLING_CHANGE
47 * events, so it is not listed with each individual sensor.
72 * This is a one-shot sensor.
85 * This is a one-shot sensor.
132 * Barometric pressure sensor.
139 * Ambient light sensor
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
OffBodySensorTestActivity.java 24 import android.hardware.Sensor;
47 * Manual test for testing the low-latency offbody detect sensor. This test consists of 3
48 * sub-tests designed to verify the sensor event data, verify event trigger response times
49 * are within spec for the sensor type, and to verify that the sensor can wake the device.
74 // 45 secs if LLOB sensor does not trigger, the test will fail.
84 private Sensor mOffBodySensor;
109 public void onAccuracyChanged(Sensor sensor, int accuracy) {}
114 int type = event.sensor.getType()
    [all...]
  /frameworks/native/libs/sensor/
SensorManager.cpp 19 #include <sensor/SensorManager.h>
33 #include <sensor/ISensorServer.h>
34 #include <sensor/ISensorEventConnection.h>
35 #include <sensor/Sensor.h>
36 #include <sensor/SensorEventQueue.h>
81 // If we had no package name, we looked it up from the UID and the sensor
88 // Stash the per package sensor manager.
166 static_cast<Sensor const**>(malloc(count * sizeof(Sensor*)));
    [all...]
ISensorEventConnection.cpp 17 #include <sensor/ISensorEventConnection.h>
29 #include <sensor/BitTube.h>
  /hardware/interfaces/sensors/1.0/vts/functional/
VtsHalSensorsV1_0TargetTest.cpp 24 #include <hardware/sensors.h> // for sensor type strings
67 // set sensor event collection status
99 // In case framework just stopped for test and there is sensor events in the pipe,
147 // stop each sensor individually
148 step = "stop each sensor";
413 constexpr size_t kMaxSize = 128*1024*1024; // sensor test should not need more than 128M
578 static bool isDirectReportRateSupported(SensorInfo sensor, RateLevel rate);
579 static bool isDirectChannelTypeSupported(SensorInfo sensor, SharedMemType type);
596 // If activating a sensor, add the handle in a set so that when test fails it can be turned off.
598 // check the return value of deactivation. Deactivating a sensor more than once does not hav
966 SensorInfo sensor = defaultSensorByType(type); local
1096 SensorInfo sensor = defaultSensorByType(type); local
1210 SensorInfo sensor = defaultSensorByType(type); local
1300 SensorInfo sensor = defaultSensorByType(type); local
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
PowerTestHostLink.java 22 import android.hardware.Sensor;
203 final String REQUEST_SENSOR_ON = "SENSOR ON ";
204 final String REQUEST_SENSOR_OFF = "SENSOR OFF";
205 final String REQUEST_SENSOR_AVAILABILITY = "SENSOR? ";
212 final String sensor = request.substring(REQUEST_SENSOR_AVAILABILITY.length()); local
213 final int sensorId = getSensorId(sensor);
331 Log.e(TAG, "Unknown sensor in request: " + sensorName);
337 Log.e(TAG, "Improperly formatted command received on setting sensor state");
347 sensorId = Sensor.TYPE_ACCELEROMETER;
349 sensorId = Sensor.TYPE_AMBIENT_TEMPERATURE
    [all...]
  /device/google/contexthub/sensorhal/
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)
  /hardware/interfaces/sensors/1.0/default/
convert.cpp 71 .sensorHandle = src.sensor,
83 dst->sensorHandle = src.meta_data.sensor;
213 .sensor = src.sensorHandle,
225 dst->meta_data.sensor = src.sensorHandle;
226 // Set the sensor handle to 0 to maintain compatibility.
227 dst->sensor = 0;
317 dst->dynamic_sensor_meta.sensor = NULL; // to be filled in later
  /cts/tests/sensor/src/android/hardware/cts/helpers/
SensorStats.java 19 import android.hardware.Sensor;
37 * Class used to store stats related to {@link SensorOperation}s. Sensor stats may be linked
164 * Provides a sanitized sensor name, that can be used in file names.
167 public static String getSanitizedSensorName(Sensor sensor) throws SensorTestPlatformException {
168 return SensorCtsHelper.sanitizeStringForFileName(sensor.getStringType());
MovementDetectorHelper.java 22 import android.hardware.Sensor;
44 private final Sensor mAccelerometer;
52 mAccelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
54 throw new SensorNotSupportedException(Sensor.TYPE_ACCELEROMETER);
80 public void onAccuracyChanged(Sensor sensor, int accuracy) {}
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
SensorTest.java 21 import android.hardware.Sensor;
33 private Sensor mSensor;
99 Log.e(TAG, "sensorChanged " + event.sensor.getName() +
133 public void onAccuracyChanged(Sensor sensor, int accuracy) {
141 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
  /development/samples/ApiDemos/src/com/example/android/apis/os/
RotationVectorDemo.java 25 import android.hardware.Sensor;
34 * {@link SensorEvent#values rotation vector sensor}
35 * ({@link Sensor#TYPE_ROTATION_VECTOR TYPE_ROTATION_VECTOR}).
37 * @see Sensor
83 private Sensor mRotationVectorSensor;
87 // find the rotation-vector sensor
89 Sensor.TYPE_ROTATION_VECTOR);
100 // enable our sensor when the activity is resumed, ask for
106 // make sure to turn our sensor off when the activity is paused
111 // we received a sensor event. it is a good practice to chec
    [all...]
  /external/libxcam/modules/isp/
isp_config_translator.cpp 40 IspConfigTranslator::IspConfigTranslator (SmartPtr<SensorDescriptor> &sensor)
41 : _sensor (sensor)
125 XCAM_LOG_WARNING ("translate exposure failed since sensor not ready");
  /frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DozeFactory.java 22 import android.hardware.Sensor;
81 Sensor sensor = DozeSensors.findSensorWithType(sensorManager, local
83 return new DozeScreenBrightness(context, service, sensorManager, sensor, host, handler,
  /frameworks/base/services/core/java/com/android/server/
SensorNotificationService.java 24 import android.hardware.Sensor;
51 "sensor.notification.use_mocked"; // max key length is 32
58 private Sensor mMetaSensor;
75 mMetaSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_DYNAMIC_SENSOR_META);
77 if (DBG) Slog.d(TAG, "Cannot obtain dynamic meta sensor, not supported.");
104 if (DBG) Slog.d(TAG, "dynamic sensor broadcast sent");
109 if (event.sensor == mMetaSensor) {
161 public void onAccuracyChanged(Sensor sensor, int accuracy) {}
  /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
MotionSensor.java 17 // Make values from a motion sensor (e.g., accelerometer) available as filter outputs.
22 import android.hardware.Sensor;
37 private Sensor mSensor = null;
56 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION);
57 // TODO: currently, the type of sensor is hardcoded. Should be able to set the sensor
68 public final void onAccuracyChanged(Sensor sensor, int accuracy) {
69 // (Do we need to do something when sensor accuracy changes?)
  /frameworks/native/libs/sensor/include/sensor/
SensorManager.h 35 #include <sensor/SensorEventQueue.h>
49 class Sensor;
59 ssize_t getSensorList(Sensor const* const** list);
60 ssize_t getDynamicSensorList(Vector<Sensor>& list);
61 Sensor const* getDefaultSensor(int type);
83 Sensor const** mSensorList;
84 Vector<Sensor> mSensors;
  /packages/apps/DevCamera/src/com/android/devcamera/
GyroOperations.java 18 import android.hardware.Sensor;
41 public void onAccuracyChanged(Sensor sensor, int accuracy) {
50 mSensorManager.registerListener(mSensorEventListener, mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE), SensorManager.SENSOR_DELAY_FASTEST);
  /packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/
FalsingManager.java 20 import android.hardware.Sensor;
30 * When the phone is locked, listens to touch, sensor and phone events and sends them to
36 Sensor.TYPE_PROXIMITY,
104 public void onAccuracyChanged(Sensor sensor, int accuracy) {}
136 Trace.beginSection("get sensor " + sensorType);
137 Sensor s = sensorManager.getDefaultSensor(sensorType);
  /external/autotest/client/cros/
ec.py 46 across various CrOS MCUs (ec proper, USB-PD, Sensor Hub). At the moment
135 """Gets temperature from idx sensor.
137 @param idx: integer of temp sensor to read.
139 @raises error.TestError if fails to read sensor.
146 raise error.TestError('Unable to read temperature sensor %d' % idx)
  /frameworks/base/core/java/android/hardware/
Sensor.java 24 * Class representing a sensor. Use {@link SensorManager#getSensorList} to get
34 public final class Sensor {
37 * A constant describing an accelerometer sensor type.
44 * A constant string describing an accelerometer sensor type.
48 public static final String STRING_TYPE_ACCELEROMETER = "android.sensor.accelerometer";
51 * A constant describing a magnetic field sensor type.
58 * A constant string describing a magnetic field sensor type.
62 public static final String STRING_TYPE_MAGNETIC_FIELD = "android.sensor.magnetic_field";
65 * A constant describing an orientation sensor type.
76 * A constant string describing an orientation sensor type
    [all...]
  /frameworks/native/services/sensorservice/hidl/
SensorManager.cpp 67 ::android::Sensor const* const* list;
84 ::android::Sensor const* sensor = getInternalManager().getDefaultSensor(static_cast<int>(type)); member in class:android::frameworks::sensorservice::V1_0::implementation::android
85 if (!sensor) {
89 _hidl_cb(convertSensor(*sensor), Result::OK);
  /hardware/akm/AK8975_FS/libsensors/
AkmSensor.cpp 48 mPendingEvents[Accelerometer].sensor = ID_A;
53 mPendingEvents[MagneticField].sensor = ID_M;
58 mPendingEvents[Orientation ].sensor = ID_O;
  /hardware/libhardware/include/hardware/
sensors.h 44 * introduction to and detailed descriptions of Android sensor types:
59 * Sensor handle is greater than 0 and less than INT32_MAX.
62 * Defined values below are kept for code compatibility. Note sensor handle can be as large as
94 * See sensor types for more details on what sensors should require this
100 * sensor flags legacy names
110 * Mask and shift for reporting mode sensor flags defined above.
117 * Mask and shift for data_injection mode sensor flags defined above.
123 * Mask and shift for dynamic sensor flag.
129 * Mask and shift for sensor additional information support.
137 * Previously, the type of a sensor measuring local magnetic field is name
252 int32_t sensor; member in struct:meta_data_event
262 const struct sensor_t * sensor; \/\/ should be NULL if connected == false member in struct:dynamic_sensor_meta_event
302 int32_t sensor; member in struct:sensors_event_t
    [all...]

Completed in 970 milliseconds

1 2 3 4 5 67 8 91011>>