HomeSort by relevance Sort by last modified time
    Searched defs:sensor (Results 26 - 50 of 275) sorted by null

12 3 4 5 6 7 8 91011

  /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...]
  /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...]
  /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...]
  /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);
  /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...]
  /packages/apps/Dialer/java/com/android/incallui/
AccelerometerListener.java 20 import android.hardware.Sensor;
46 private Sensor sensor; field in class:AccelerometerListener
49 // mPendingOrientation is the latest orientation computed based on the sensor value.
86 public void onAccuracyChanged(Sensor sensor, int accuracy) {
93 sensor = sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
108 sensorManager.registerListener(sensorListener, sensor, SensorManager.SENSOR_DELAY_NORMAL);
148 // If some values are exactly zero, then likely the sensor is not powered up yet
    [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...]
  /packages/services/Car/tools/
update-obd2-sensors.py 35 def addSensor(self, sensor):
36 """Add a new sensor to the list."""
37 if not hasattr(sensor, 'id'):
39 sensor.id = self.id
40 self.sensors.append(sensor)
43 """Complete the list, adding well-known sensor information."""
55 """A formatter object that does processing on sensor data."""
63 def sensor(self, theSensor, theSensors): member in class:SensorPolicy
64 """Produce output for a sensor."""
68 """Prefix string before any sensor data is generated.""
105 def sensor(self, theSensor, theSensors): member in class:JavaSensorPolicy
155 def sensor(self, theSensor, theSensors): member in class:PythonSensorPolicy
168 def sensor(self, theSensor, theSensors): member in class:IntDefSensorPolicy
    [all...]
  /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...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
RotationVectorTestActivity.java 26 import android.hardware.Sensor;
72 private final Sensor[] mSensor = new Sensor[3];
120 * Verifies that a given 'Rotation Vector' sensor does not drift over time.
126 Sensor sensor = mSensor[sensorIndex]; local
127 if (sensor == null) {
150 return verifyVector(ROTATION_VECTOR_INDEX, Sensor.TYPE_ROTATION_VECTOR);
156 Sensor.TYPE_GEOMAGNETIC_ROTATION_VECTOR);
160 return verifyVector(GAME_ROTATION_VECTOR_INDEX, Sensor.TYPE_GAME_ROTATION_VECTOR)
198 Sensor sensor = mSensor[i]; local
    [all...]
  /cts/tests/sensor/jni/
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/
SensorIntegrationTests.java 19 import android.hardware.Sensor;
43 * This test focuses in the interaction of continuous and batching clients for the same Sensor
44 * under test. The verification ensures that sensor clients can interact with the System and
52 * that the sensors must be independent. Activating one sensor should not cause another sensor
60 * - the sensor type and sensor handle that caused the failure
62 * It is important to look at the internals of the Sensor HAL to identify how the interaction
72 Sensor.TYPE_ACCELEROMETER,
73 Sensor.TYPE_MAGNETIC_FIELD
88 Sensor sensor = TestSensorEnvironment.getSensor(context, sensorType); local
270 Sensor sensor = TestSensorEnvironment.getSensor(getContext(), sensorType); local
    [all...]
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...]
  /device/google/contexthub/sensorhal/
sensors.cpp 216 if (event->sensor != SENSORS_HANDLE_BASE - 1) {
240 ALOGE("sensor p = %p, n = %zu", mSensorList.data(), mSensorList.size());
266 sensor_t sensor = kSensorList[i]; local
267 if (sensor.handle != handle) {
271 if ((sensor.flags & REPORTING_MODE_MASK) == SENSOR_FLAG_CONTINUOUS_MODE) {
272 if ((delayNs/1000) < sensor.minDelay) {
273 delayNsClamped = sensor.minDelay * 1000;
274 } else if ((delayNs/1000) > sensor.maxDelay) {
275 delayNsClamped = sensor.maxDelay * 1000;
292 sensor_t sensor = kSensorList[i] local
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/analytics/
SensorLoggerSession.java 31 * Collects touch, sensor and phone events and converts the data to
126 proto.setType(ev.sensor.getType());
  /frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DozeTriggers.java 26 import android.hardware.Sensor;
288 final Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY); local
289 if (sensor == null) {
290 if (DozeMachine.DEBUG) Log.d(TAG, "ProxCheck: No sensor found");
296 mMaxRange = sensor.getMaximumRange();
297 mSensorManager.registerListener(this, sensor, SensorManager.SENSOR_DELAY_NORMAL, 0,
341 public void onAccuracyChanged(Sensor sensor, int accuracy)
    [all...]
  /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/hardware/
FakeSensorManager.java 21 import android.hardware.Sensor;
46 * Currently only supports the proximity sensor.
58 Sensor proxSensor = context.getSystemService(SensorManager.class)
59 .getDefaultSensor(Sensor.TYPE_PROXIMITY);
62 proxSensor = createSensor(Sensor.TYPE_PROXIMITY);
67 mFakeLightSensor = new FakeGenericSensor(createSensor(Sensor.TYPE_LIGHT)),
80 public Sensor getDefaultSensor(int type) {
81 Sensor s = super.getDefaultSensor(type);
86 // return non-wakeup sensors if we can't find a wakeup sensor.
91 protected List<Sensor> getFullSensorList()
191 Sensor sensor = constr.newInstance(); local
    [all...]
  /frameworks/native/services/sensorservice/
SensorDevice.cpp 69 sensor_t sensor;
70 convertToSensor(list[i], &sensor);
72 if (sensor.power < minPowerMa) {
74 sensor.power, minPowerMa);
75 sensor.power = minPowerMa;
77 mSensorList.push_back(sensor);
96 // no sensor hidl service found
259 // This is the first connection, we need to activate the underlying h/w sensor.
269 // If a connected dynamic sensor is deactivated, remove it from the
279 // This is the last connection, we need to de-activate the underlying h/w sensor
662 sensor_t *sensor = new sensor_t; local
    [all...]
SensorEventConnection.cpp 20 #include <sensor/SensorEventQueue.h>
234 int32_t sensor_handle = buffer[i].sensor;
236 ALOGD_IF(DEBUG_CONNECTIONS, "flush complete event sensor==%d ",
237 buffer[i].meta_data.sensor);
238 // Setting sensor_handle to the correct sensor to ensure the sensor events per
239 // connection are filtered correctly. buffer[i].sensor is zero for meta_data
241 sensor_handle = buffer[i].meta_data.sensor;
245 // Check if this connection has registered for this sensor. If not continue to the
253 // Check if there is a pending flush_complete event for this sensor on this connection
677 const Sensor& sensor = si->getSensor(); local
    [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...]
  /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...]
  /system/chre/core/
sensor_request_manager.cc 27 bool isSensorRequestValid(const Sensor& sensor,
33 SensorType sensorType = sensor.getSensorType();
36 if (requestedInterval < sensor.getMinInterval()) {
38 LOGE("Requested interval %" PRIu64 " < sensor's minInterval %" PRIu64,
39 requestedInterval, sensor.getMinInterval());
43 LOGE("Invalid continuous request for a one-shot sensor.");
48 LOGE("Invalid one-shot request for a continuous sensor.");
59 DynamicVector<Sensor> sensors;
71 LOGE("Invalid sensor type")
129 const Sensor& sensor = requests.sensor.value(); local
212 const Sensor& sensor = mSensorRequests[sensorIndex].sensor.value(); local
297 SensorType sensor = static_cast<SensorType>(i); local
    [all...]
  /cts/tests/app/src/android/app/cts/
SystemFeaturesTest.java 33 import android.hardware.Sensor;
304 * Check that the sensor features reported by the PackageManager correspond to the sensors
311 Sensor.TYPE_ACCELEROMETER);
313 Sensor.TYPE_PRESSURE);
315 Sensor.TYPE_MAGNETIC_FIELD);
317 Sensor.TYPE_GYROSCOPE);
319 Sensor.TYPE_LIGHT);
321 Sensor.TYPE_PROXIMITY);
323 Sensor.TYPE_STEP_COUNTER);
325 Sensor.TYPE_STEP_DETECTOR)
    [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...]

Completed in 1169 milliseconds

12 3 4 5 6 7 8 91011