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

1 2 3 4 5 67 8 91011>>

  /development/samples/AccelerometerPlay/src/com/example/android/accelerometerplay/
AccelerometerPlayActivity.java 25 import android.hardware.Sensor;
47 * @see Sensor
102 * release our sensor resources and wake locks
120 private Sensor mAccelerometer;
346 mAccelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
379 if (event.sensor.getType() != Sensor.TYPE_ACCELEROMETER)
457 public void onAccuracyChanged(Sensor sensor, int accuracy) {
  /device/generic/goldfish/camera/
EmulatedFakeCamera3.cpp 35 #include "fake-pipeline2/Sensor.h"
151 mSensor = new Sensor(mSensorWidth, mSensorHeight);
190 ALOGE("%s: Unable to shut down sensor: %d", __FUNCTION__, res);
438 /** android.sensor */
844 * Get ready for sensor config
854 exposureTime = (entry.count > 0) ? entry.data.i64[0] : Sensor::kExposureTimeRange[0];
856 frameDuration = (entry.count > 0)? entry.data.i64[0] : Sensor::kFrameDurationRange[0];
858 sensitivity = (entry.count > 0) ? entry.data.i32[0] : Sensor::kSensitivityRange[0];
861 frameDuration = exposureTime + Sensor::kMinVerticalBlank;
    [all...]
EmulatedFakeCamera3.h 28 #include "fake-pipeline2/Sensor.h"
49 private Sensor::SensorListener {
127 /** Handle interrupt events from the sensor */
140 // sensor-generated buffers which use a nonpositive ID. Otherwise, HAL3 has
191 sp<Sensor> mSensor;
213 // Place request in the in-flight queue to wait for sensor capture
  /frameworks/base/services/core/java/com/android/server/policy/
WindowOrientationListener.java 20 import android.hardware.Sensor;
59 private Sensor mSensor;
69 * @param handler Provides the Looper for receiving sensor updates.
79 * @param handler Provides the Looper for receiving sensor updates.
80 * @param rate at which sensor events are processed (see also
91 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_DEVICE_ORIENTATION);
99 ? Sensor.TYPE_GRAVITY : Sensor.TYPE_ACCELEROMETER);
108 * Enables the WindowOrientationListener so it will monitor the sensor and call
116 * Enables the WindowOrientationListener so it will monitor the sensor and cal
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
RVCVRecordActivity.java 23 import android.hardware.Sensor;
254 * Start the sensor recording
268 * Stop the sensor recording
296 * Wait until a sensor recording for a certain axis is fully covered
304 * Wait until a sensor recording for a certain axis is halfway covered
332 * Get the sensor log file path
333 * @return Path of the sensor log file
336 return new File(mRecordDir, "sensor.log").getPath();
492 * Get sensor information of the camera being used
687 * Log all raw sensor readings, for Rotation Vector sensor algorithms researc
    [all...]
SignificantMotionTestActivity.java 37 import android.hardware.Sensor;
52 * Test cases for Significant Motion sensor.
81 private Sensor mSensorSignificantMotion;
289 mSensorSignificantMotion = mSensorManager.getDefaultSensor(Sensor.TYPE_SIGNIFICANT_MOTION);
291 throw new SensorNotSupportedException(Sensor.TYPE_SIGNIFICANT_MOTION);
370 int eventType = event.sensor.getType();
373 Sensor.TYPE_SIGNIFICANT_MOTION,
375 Assert.assertEquals(eventTypeMessage, Sensor.TYPE_SIGNIFICANT_MOTION, eventType);
377 String sensorName = event.sensor.getName();
395 + TestSensorEnvironment.getSensorMaxDetectionLatencyNs(event.sensor);
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/renderers/
Wedge.java 19 import android.hardware.Sensor;
64 if (sensorType == Sensor.TYPE_ACCELEROMETER) {
  /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
163 * Provides a sanitized sensor name, that can be used in file names.
166 public static String getSanitizedSensorName(Sensor sensor) throws SensorTestPlatformException {
167 return SensorCtsHelper.sanitizeStringForFileName(sensor.getStringType());
TestSensorEventListener.java 22 import android.hardware.Sensor;
120 public void onAccuracyChanged(Sensor sensor, int accuracy) {
126 * @return A CountDownLatch initialzed with eventCount and decremented as sensor events arrive
153 public void onFlushCompleted(Sensor sensor) {
195 * named 'events' under the sensor test directory (part of external storage).
201 builder.append("Sensor='").append(mEnvironment.getSensor()).append("', ");
271 * Wait for {@link #onFlushCompleted(Sensor)} to be called.
345 * Asserts that sensor events arrived in the proper thread if a {@link Handler} was associate
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DozeFactory.java 22 import android.hardware.Sensor;
77 Sensor sensor = DozeSensors.findSensorWithType(sensorManager, local
79 return new DozeScreenBrightness(context, service, sensorManager, sensor, host, handler,
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/core/java/android/hardware/
SensorDirectChannel.java 30 * Class representing a sensor direct channel. Use
34 * (see {@link #configure(Sensor, int)})
35 * to start delivery of sensor events into shared memory buffer.
59 // sensor rate levels
67 * Sensor stopped (no event output).
69 * @see #configure(Sensor, int)
73 * Sensor operates at nominal rate of 50Hz.
78 * @see #configure(Sensor, int)
82 * Sensor operates at nominal rate of 200Hz.
87 * @see #configure(Sensor, int
    [all...]
  /frameworks/base/services/core/java/com/android/server/power/
WirelessChargerDetector.java 19 import android.hardware.Sensor;
71 * sensor to detect this case.
78 // The minimum amount of time to spend watching the sensor before making
82 // The sensor sampling interval.
107 // The gravity sensor, or null if none.
108 private Sensor mGravitySensor;
151 mGravitySensor = sensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY);
289 + mTotalSamples + " samples from the gravity sensor but we "
385 public void onAccuracyChanged(Sensor sensor, int accuracy)
    [all...]
  /developers/build/prebuilts/gradle/RuntimePermissionsWear/Wearable/src/main/java/com/example/android/wearable/runtimepermissions/
IncomingRequestWearService.java 22 import android.hardware.Sensor;
95 // Launch Activity to grant sensor permissions.
120 List<Sensor> sensorList = sensorManager.getSensorList(Sensor.TYPE_ALL);
MainWearActivity.java 22 import android.hardware.Sensor;
59 * the sensor data if approved).
140 List<Sensor> sensorList = sensorManager.getSensorList(Sensor.TYPE_ALL);
328 List<Sensor> sensorList = sensorManager.getSensorList(Sensor.TYPE_ALL);
  /developers/samples/android/wearable/wear/RuntimePermissionsWear/Wearable/src/main/java/com/example/android/wearable/runtimepermissions/
IncomingRequestWearService.java 22 import android.hardware.Sensor;
95 // Launch Activity to grant sensor permissions.
120 List<Sensor> sensorList = sensorManager.getSensorList(Sensor.TYPE_ALL);
MainWearActivity.java 22 import android.hardware.Sensor;
59 * the sensor data if approved).
140 List<Sensor> sensorList = sensorManager.getSensorList(Sensor.TYPE_ALL);
328 List<Sensor> sensorList = sensorManager.getSensorList(Sensor.TYPE_ALL);
  /development/samples/browseable/RuntimePermissionsWear/Wearable/src/com.example.android.wearable.runtimepermissions/
IncomingRequestWearService.java 22 import android.hardware.Sensor;
95 // Launch Activity to grant sensor permissions.
120 List<Sensor> sensorList = sensorManager.getSensorList(Sensor.TYPE_ALL);
MainWearActivity.java 22 import android.hardware.Sensor;
60 * the sensor data if approved).
149 List<Sensor> sensorList = sensorManager.getSensorList(Sensor.TYPE_ALL);
337 List<Sensor> sensorList = sensorManager.getSensorList(Sensor.TYPE_ALL);
  /frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/
GL2CameraEye.java 45 import android.hardware.Sensor;
79 mAcceleration = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION);
117 if (event.sensor.getType() == Sensor.TYPE_LINEAR_ACCELERATION) {
126 public void onAccuracyChanged(Sensor sensor, int accuracy) {
127 // Ignoring sensor accuracy changes.
134 Sensor mAcceleration;
  /frameworks/native/services/sensorservice/
SensorService.cpp 27 #include <sensor/SensorEventQueue.h>
61 * - what about a gyro-corrected magnetic-field sensor?
62 * - run mag sensor from time to time to force calibration
63 * - gravity sensor length is wrong (=> drift in linear-acc sensor)
96 ALOGW("Can't generate HMAC key; dynamic sensor getId() will be wrong.");
113 ALOGW("Unable to write HMAC key; dynamic sensor getId() will change "
121 // Set main thread to SCHED_FIFO to lower sensor event latency when system is under load
224 // counts for each sensor.
227 [&batchingSupported] (const Sensor& s) -> bool
794 sp<SensorInterface> sensor = getSensorInterfaceFromHandle(handle); local
803 sp<SensorInterface> sensor = getSensorInterfaceFromHandle(handle); local
893 Sensor sensor = initialSensorList[i]; local
1156 sp<SensorInterface> sensor = getSensorInterfaceFromHandle(handle); local
1337 sp<SensorInterface> sensor = getSensorInterfaceFromHandle(handle); local
1410 sp<SensorInterface> sensor = getSensorInterfaceFromHandle(handle); local
    [all...]
SensorEventConnection.h 34 #include <sensor/Sensor.h>
35 #include <sensor/BitTube.h>
36 #include <sensor/ISensorServer.h>
37 #include <sensor/ISensorEventConnection.h>
86 // wake_up sensor event in the buffer else return -1. This wake_up sensor event will have the
109 // has read events from a wake up sensor, decrement mWakeLockRefCount. If this fd is available
113 // Increment mPendingFlushEventsToSend for the given sensor handle.
146 // The number of flush complete events dropped for this sensor is stored here. They ar
    [all...]
  /frameworks/base/services/core/java/com/android/server/
AnyMotionDetector.java 19 import android.hardware.Sensor;
87 private Sensor mAccelSensor;
128 mAccelSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
312 public void onAccuracyChanged(Sensor sensor, int accuracy) {
GestureLauncherService.java 27 import android.hardware.Sensor;
52 * The service that listens for gestures detected in sensor firmware and starts the intent
82 private Sensor mCameraLaunchSensor;
83 private Sensor mCameraLiftTriggerSensor;
103 * How long the sensor 1 has been turned on since camera launch sensor was
105 * <p>Sensor 1 is the main sensor used to detect camera launch gesture.</p>
110 * If applicable, how long the sensor 2 has been turned on since camera
111 * launch sensor was subscribed to and when the last camera launc
    [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...]

Completed in 789 milliseconds

1 2 3 4 5 67 8 91011>>