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

1 2 3 4 56 7 8 91011>>

  /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...]
  /system/chre/platform/slpi/see/
platform_sensor.cc 24 #include "chre_api/chre/sensor.h"
26 #include "chre/core/sensor.h"
42 // sensor discovery.
61 //! A struct to facilitate sensor discovery
67 //! The list of SEE platform sensor data types that CHRE intends to support.
81 * Obtains the sensor type given the specified data type and whether the sensor
127 // Remove all requests if it's a one-shot sensor and only after data has been
140 * @param sensorHandle The handle of the sensor.
163 Sensor *sensor = EventLoopManagerSingleton::get()->getSensorRequestManager( local
306 Sensor sensor; local
367 SuidAttr 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/sensor/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...]
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...]
  /cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/
EventBasicVerification.java 24 import android.hardware.Sensor;
34 * A {@link ISensorVerification} which verifies if the collected sensor events have any obvious
35 * problems, such as no sample, wrong sensor type, etc.
40 // allowed time from registration to sensor start sampling
44 // allowed time for entire sensor system to send sample to test app
64 Sensor sensor) {
66 mSensor = sensor;
89 // The calculation is still OK if sampleUs is not the actual sensor hardware
110 // 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 throw new Error("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...]
  /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...]
  /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...]
SensorFusion.h 27 #include <sensor/Sensor.h>
42 Sensor mAcc;
43 Sensor mMag;
44 Sensor mGyro;
  /device/google/marlin/
device-common.mk 247 # Sensor features
249 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
250 frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
251 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
252 frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
253 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml
    [all...]
  /frameworks/base/core/java/com/android/internal/os/
SensorPowerCalculator.java 18 import android.hardware.Sensor;
28 private final List<Sensor> mSensors;
33 mSensors = sensorManager.getSensorList(Sensor.TYPE_ALL);
40 // Process Sensor usage
41 final SparseArray<? extends BatteryStats.Uid.Sensor> sensorStats = u.getSensorStats();
44 final BatteryStats.Uid.Sensor sensor = sensorStats.valueAt(ise); local
46 final BatteryStats.Timer timer = sensor.getSensorTime();
50 case BatteryStats.Uid.Sensor.GPS:
57 final Sensor s = mSensors.get(i)
    [all...]
  /system/chre/core/
core.mk 20 COMMON_SRCS += core/sensor.cc
  /system/chre/util/
util.mk 14 COMMON_SRCS += util/nanoapp/sensor.cc
  /device/google/wahoo/
device.mk 153 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
154 frameworks/native/data/etc/android.hardware.sensor.assist.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.assist.xml \
155 frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
156 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
157 frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml
    [all...]
  /cts/apps/CtsVerifier/assets/scripts/
execute_power_tests.py 56 # whether to log data collected to a file for each sensor run:
86 # Thresholds for max allowed power usage per sensor tested
89 # the device reports (from Sensor.getPower())
136 REQUEST_SENSOR_SWITCH = "SENSOR %s %s"
137 REQUEST_SENSOR_AVAILABILITY = "SENSOR? %s"
165 # the following describes power test being run (i.e on what sensor
408 after a sensor has been registered.
593 def setPowerOn(self, sensor, powered_on):
595 (("ON" if powered_on else "OFF"), sensor))
597 response == "ERR", "Unable to set sensor %s state" % sensor
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/PoseProvider/
AndroidPoseProvider.java 19 import android.hardware.Sensor;
30 private Sensor m6DoFSensor;
43 public void onAccuracyChanged(Sensor sensor, int accuracy) {
  /external/androidplot/Examples/DemoApp/src/com/androidplot/demos/
OrientationSensorExampleActivity.java 22 import android.hardware.Sensor;
37 // Monitor the phone's orientation sensor and plot the resulting azimuth pitch and roll values.
44 private Sensor orSensor = null;
168 // register for orientation sensor events:
170 for (Sensor sensor : sensorMgr.getSensorList(Sensor.TYPE_ORIENTATION)) {
171 if (sensor.getType() == Sensor.TYPE_ORIENTATION) {
172 orSensor = sensor;
    [all...]
  /external/libxcam/modules/isp/
isp_config_translator.h 33 explicit IspConfigTranslator (SmartPtr<SensorDescriptor> &sensor);
  /frameworks/hardware/interfaces/sensorservice/libsensorndkbridge/
ASensorManager.h 23 #include <android/sensor.h>
  /frameworks/native/services/sensorservice/hidl/
DirectReportChannel.h 24 #include <sensor/SensorManager.h>
EventQueue.h 26 #include <sensor/SensorManager.h>
  /frameworks/native/services/sensorservice/hidl/include/sensorservicehidl/
SensorManager.h 29 #include <sensor/SensorManager.h>
  /packages/services/Car/car-support-lib/src/android/support/car/hardware/
CarSensorManagerEmbedded.java 51 for (Integer sensor : mManager.getSupportedSensors()) {
52 sensorsSet.add(sensor);
205 OnSensorChangedListenerProxy(OnSensorChangedListener listener, int sensor,
208 this.sensors.add(sensor);

Completed in 1621 milliseconds

1 2 3 4 56 7 8 91011>>