Searched refs:sensor (Results 1 - 12 of 12) sorted by relevance
/packages/apps/Camera2/src/com/android/camera/one/v2/common/ |
H A D | ZoomedCropRegion.java | 39 Rect sensor = mSensorArrayArea; 40 int xCenter = sensor.width() / 2; 41 int yCenter = sensor.height() / 2; 42 int xDelta = (int) (0.5f * sensor.width() / zoom); 43 int yDelta = (int) (0.5f * sensor.height() / zoom);
|
/packages/apps/Camera2/src/com/android/camera/hardware/ |
H A D | HeadingSensor.java | 27 * A virtual sensor that reports device heading based on information 28 * provided by accelerometer sensor or magnetic sensor. 38 /** Device sensor manager. */ 47 /** Magnetic sensor data. */ 53 * Constructs a heading sensor. 79 // Get events from the accelerometer and magnetic sensor. 106 int type = event.sensor.getType(); 113 Log.w(TAG, String.format("Unexpected sensor type %s", event.sensor 130 onAccuracyChanged(Sensor sensor, int accuracy) argument [all...] |
/packages/services/Car/car-lib/src/android/car/hardware/ |
H A D | CarSensorManager.java | 42 * API for monitoring car sensor data. 48 * This sensor represents vehicle speed in m/s. 76 * around. For this sensor, rate in {@link #registerListener(CarSensorEventListener, int, int)} 89 * Day/night sensor. Sensor data is intValues[0]. 123 * Sensor type bigger than this is invalid. Always update this after adding a new sensor. 132 * So the sensor supported in this range can vary depending on car models / manufacturers. 134 * different cars. Additionally 3rd party apps trying to access sensor in this range will get 142 /** Read sensor in default normal rate set for each sensors. This is default rate. */ 146 /** Read sensor at the maximum rate. Actual rate will be different depending on the sensor 347 doUnregisterListenerLocked(CarSensorEventListener listener, Integer sensor, Iterator<Integer> sensorIterator) argument 370 registerOrUpdateSensorListener(int sensor, int rate) argument [all...] |
/packages/services/Car/tests/android_car_api_test/src/com/android/car/apitest/ |
H A D | CarSensorManagerTest.java | 82 for (int sensor: supportedSensors) { 83 if (sensor == CarSensorManager.SENSOR_TYPE_DRIVING_STATUS) {
|
/packages/services/Car/service/src/com/android/car/ |
H A D | CarSensorService.java | 63 * Abstraction for logical sensor which is not physical sensor but presented as sensor to 67 * is state change for the given sensor after {@link SensorHalServiceBase#init()} 77 * When set, sensor service sets its own dispatching rate limit. 85 /** lock to access sensor structures */ 90 /** key: sensor type. */ 93 /** key: sensor type. */ 122 // This triggers sensor hal init as well. 217 Log.v(CarLog.TAG_SENSOR, "sensor Ha 766 addSensor(int sensor) argument 770 removeSensor(int sensor) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/one/v2/ |
H A D | 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 [all...] |
/packages/services/Car/tests/android_support_car_api_test/src/com/android/support/car/apitest/ |
H A D | CarSensorManagerTest.java | 91 for (int sensor: supportedSensors) { 92 if (sensor == CarSensorManager.SENSOR_TYPE_DRIVING_STATUS) {
|
/packages/apps/DevCamera/src/com/android/devcamera/ |
H A D | GyroOperations.java | 41 public void onAccuracyChanged(Sensor sensor, int accuracy) {
|
/packages/services/Car/service/src/com/android/car/hal/ |
H A D | SensorHalService.java | 67 int sensor = getSensorTypeFromHalProperty(halProperty.getProp()); 68 if (sensor != SENSOR_TYPE_INVALD && 75 mSensorToHalProperty.append(sensor, halProperty); 111 throw new RuntimeException("handleBooleanHalEvent no sensor defined for property " + 235 * Covert hal property to sensor type. This is also used to check if specific property 236 * is supported by sensor hal or not.
|
/packages/apps/Dialer/InCallUI/src/com/android/incallui/ |
H A D | AccelerometerListener.java | 44 // mPendingOrientation is the latest orientation computed based on the sensor value. 121 // If some values are exactly zero, then likely the sensor is not powered up yet. 143 public void onAccuracyChanged(Sensor sensor, int accuracy) {
|
H A D | InCallActivity.java | 183 // TODO(klp): Do we need to add this back when prox sensor is not available? 816 final ProximitySensor sensor = InCallPresenter.getInstance().getProximitySensor(); 817 if (sensor != null) { 818 sensor.onDialpadVisible(show);
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | EyePosition.java | 91 Log.w(TAG, "no sensor available"); 184 public void onAccuracyChanged(Sensor sensor, int accuracy) { argument 189 switch (event.sensor.getType()) {
|
Completed in 435 milliseconds