HomeSort by relevance Sort by last modified time
    Searched refs:Sensor (Results 101 - 125 of 309) sorted by null

1 2 3 45 6 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...]
  /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...]
  /frameworks/native/libs/gui/
SensorEventQueue.cpp 29 #include <gui/Sensor.h>
34 #include <android/sensor.h>
127 status_t SensorEventQueue::enableSensor(Sensor const* sensor) const {
128 return enableSensor(sensor, SENSOR_DELAY_NORMAL);
131 status_t SensorEventQueue::enableSensor(Sensor const* sensor, int32_t samplingPeriodUs) const {
132 return mSensorEventConnection->enableDisable(sensor->getHandle(), true,
136 status_t SensorEventQueue::disableSensor(Sensor const* sensor) const
    [all...]
SensorManager.cpp 31 #include <gui/Sensor.h>
77 // If we had no package name, we looked it up from the UID and the sensor
84 // Stash the per package sensor manager.
153 static_cast<Sensor const**>(malloc(count * sizeof(Sensor*)));
164 ssize_t SensorManager::getSensorList(Sensor const* const** list) {
174 ssize_t SensorManager::getDynamicSensorList(Vector<Sensor> & dynamicSensors) {
187 Sensor const* SensorManager::getDefaultSensor(int type)
192 // For the following sensor types, return a wake-up sensor. These types are by defaul
    [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,
141 @Rpc(description = "Starts recording sensor data to be available for polling.")
157 for (Sensor sensor : mSensorManager.getSensorList(Sensor.TYPE_ALL))
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/renderers/
GLArrowSensorTestRenderer.java 24 import android.hardware.Sensor;
39 * Renders a wedge to indicate the direction of sensor data.
89 if (mSensorType == Sensor.TYPE_ACCELEROMETER) {
157 public void onAccuracyChanged(Sensor arg0, int arg1) {
166 int type = event.sensor.getType();
167 if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {
183 } else if (type == Sensor.TYPE_ROTATION_VECTOR
184 || type == Sensor.TYPE_GEOMAGNETIC_ROTATION_VECTOR
185 || type == Sensor.TYPE_GAME_ROTATION_VECTOR)
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
FalsingManager.java 21 import android.hardware.Sensor;
38 * When the phone is locked, listens to touch, sensor and phone events and sends them to
47 Sensor.TYPE_PROXIMITY,
51 Sensor.TYPE_ACCELEROMETER,
52 Sensor.TYPE_GYROSCOPE,
53 Sensor.TYPE_PROXIMITY,
54 Sensor.TYPE_LIGHT,
55 Sensor.TYPE_ROTATION_VECTOR,
152 Sensor s = mSensorManager.getDefaultSensor(sensorType);
198 public void onAccuracyChanged(Sensor sensor, int accuracy)
    [all...]
  /cts/tests/tests/hardware/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...]
FrequencyVerificationTest.java 19 import android.hardware.Sensor;
76 return new TestSensorEnvironment(getContext(), Sensor.TYPE_ALL, rateUs);
EventBasicVerification.java 22 import android.hardware.Sensor;
32 * A {@link ISensorVerification} which verifies if the collected sensor events have any obvious
33 * problems, such as no sample, wrong sensor type, etc.
38 // allowed time from registration to sensor start sampling
42 // allowed time for entire sensor system to send sample to test app
62 Sensor sensor) {
64 mSensor = sensor;
87 // The calculation is still OK if sampleUs is not the actual sensor hardware
108 // When the sensor under test is the only one active, max fifo size is assumed to b
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
GyroscopeMeasurementTestActivity.java 23 import android.hardware.Sensor;
119 Sensor.TYPE_GYROSCOPE,
123 Sensor.TYPE_GYROSCOPE_UNCALIBRATED,
141 * The test takes a set of samples from the sensor under test and calculates the angular
142 * position for each axis that the sensor data collects. It then compares it against the test
157 Sensor.TYPE_GYROSCOPE,
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...]
SignificantMotionTestActivity.java 34 import android.hardware.Sensor;
51 * Test cases for Significant Motion sensor.
80 private Sensor mSensorSignificantMotion;
273 mSensorSignificantMotion = mSensorManager.getDefaultSensor(Sensor.TYPE_SIGNIFICANT_MOTION);
275 throw new SensorNotSupportedException(Sensor.TYPE_SIGNIFICANT_MOTION);
349 int eventType = event.sensor.getType();
352 Sensor.TYPE_SIGNIFICANT_MOTION,
354 Assert.assertEquals(eventTypeMessage, Sensor.TYPE_SIGNIFICANT_MOTION, eventType);
356 String sensorName = event.sensor.getName();
374 + TestSensorEnvironment.getSensorMaxDetectionLatencyNs(event.sensor);
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/widget/
WidgetTestActivity.java 23 import android.hardware.Sensor;
  /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);
  /frameworks/native/services/sensorservice/
RotationVectorSensor.h 23 #include <gui/Sensor.h>
SensorFusion.cpp 32 Sensor uncalibratedGyro;
42 mAcc = Sensor(list + i);
45 mMag = Sensor(list + i);
48 mGyro = Sensor(list + i);
51 uncalibratedGyro = Sensor(list + i);
55 // Use the uncalibrated gyroscope for sensor fusion when available
  /hardware/bsp/intel/peripheral/sensors/mraa/sensors/
GroveLight.cpp 22 .name = "Grove Light Sensor",
40 Sensor * GroveLight::createSensor(int pollFd) {
GroveTemperature.cpp 22 .name = "Grove Temperature Sensor",
40 Sensor * GroveTemperature::createSensor(int pollFd) {
ProximityGPIO.cpp 18 * A Proximity sensor with a true/false value read in via GPIO
19 * is implemented. The Sensor HAL returns a float for the proximity
20 * distance... but in the case of a GPIO sensor, we only have close and
43 .name = "Proximity GPIO Sensor",
61 Sensor * ProximityGPIO::createSensor(int pollFd) {
  /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...]
  /hardware/ti/omap4-aah/camera/
SensorListener.cpp 20 * This file listens and propogates sensor events to CameraHal.
47 if (sen_events[i].type == android::Sensor::TYPE_ACCELEROMETER) {
80 } else if (sen_events[i].type == android::Sensor::TYPE_GYROSCOPE) {
153 CAMHAL_LOGEA("Couldn't create sensor looper thread");
158 ret = mSensorLooperThread->run("sensor looper thread", android::PRIORITY_URGENT_DISPLAY);
195 android::Sensor const* sensor; member in class:Ti::Camera::android
203 sensor = mgr.getDefaultSensor(android::Sensor::TYPE_ACCELEROMETER);
204 if(sensor) {
218 android::Sensor const* sensor; member in class:Ti::Camera::android
    [all...]
  /device/generic/goldfish/camera/
EmulatedFakeCamera3.cpp 37 #include "fake-pipeline2/Sensor.h"
147 mSensor = new Sensor();
186 ALOGE("%s: Unable to shut down sensor: %d", __FUNCTION__, res);
434 /** android.sensor */
539 0, 0, (int32_t)Sensor::kResolution[0], (int32_t)Sensor::kResolution[1]
835 * Get ready for sensor config
845 exposureTime = (entry.count > 0) ? entry.data.i64[0] : Sensor::kExposureTimeRange[0];
847 frameDuration = (entry.count > 0)? entry.data.i64[0] : Sensor::kFrameDurationRange[0];
849 sensitivity = (entry.count > 0) ? entry.data.i32[0] : Sensor::kSensitivityRange[0]
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/app/
EyePosition.java 20 import android.hardware.Sensor;
65 private Sensor mSensor;
85 mSensor = sManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE);
88 mSensor = sManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
91 Log.w(TAG, "no sensor available");
184 public void onAccuracyChanged(Sensor sensor, int accuracy) {
189 switch (event.sensor.getType()) {
190 case Sensor.TYPE_GYROSCOPE: {
195 case Sensor.TYPE_ACCELEROMETER:
    [all...]

Completed in 452 milliseconds

1 2 3 45 6 7 8 91011>>