/developers/samples/android/wearable/wear/RuntimePermissionsWear/Wearable/src/main/java/com/example/android/wearable/runtimepermissions/ |
MainWearActivity.java | 23 import android.hardware.Sensor; 60 * the sensor data if approved). 150 List<Sensor> sensorList = sensorManager.getSensorList(Sensor.TYPE_ALL); 295 List<Sensor> sensorList = sensorManager.getSensorList(Sensor.TYPE_ALL);
|
/development/samples/browseable/RuntimePermissionsWear/Wearable/src/com.example.android.wearable.runtimepermissions/ |
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;
|
/cts/tests/sensor/src/android/hardware/cts/helpers/ |
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/ |
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/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...] |
/frameworks/native/services/sensorservice/ |
SensorEventConnection.h | 34 #include <sensor/Sensor.h> 35 #include <sensor/BitTube.h> 36 #include <sensor/ISensorServer.h> 37 #include <sensor/ISensorEventConnection.h> 89 // wake_up sensor event in the buffer else return -1. This wake_up sensor event will have the 112 // has read events from a wake up sensor, decrement mWakeLockRefCount. If this fd is available 116 // Increment mPendingFlushEventsToSend for the given sensor handle. 149 // The number of flush complete events dropped for this sensor is stored here. They ar [all...] |
SensorService.cpp | 31 #include <sensor/SensorEventQueue.h> 67 * - what about a gyro-corrected magnetic-field sensor? 68 * - run mag sensor from time to time to force calibration 69 * - gravity sensor length is wrong (=> drift in linear-acc sensor) 104 ALOGW("Can't generate HMAC key; dynamic sensor getId() will be wrong."); 121 ALOGW("Unable to write HMAC key; dynamic sensor getId() will change " 129 // Set main thread to SCHED_FIFO to lower sensor event latency when system is under load 232 // counts for each sensor. 235 [&batchingSupported] (const Sensor& s) -> bool 894 sp<SensorInterface> sensor = getSensorInterfaceFromHandle(handle); local 903 sp<SensorInterface> sensor = getSensorInterfaceFromHandle(handle); local 993 Sensor sensor = initialSensorList[i]; local 1262 sp<SensorInterface> sensor = getSensorInterfaceFromHandle(handle); local 1443 sp<SensorInterface> sensor = getSensorInterfaceFromHandle(handle); local 1516 sp<SensorInterface> sensor = getSensorInterfaceFromHandle(handle); local [all...] |
SensorDevice.h | 23 #include <sensor/Sensor.h> 136 // Info is a per-sensor data structure which contains the batch parameters for each client that 137 // has registered for this sensor.
|
SensorDirectConnection.cpp | 60 result.appendFormat("\tPackage %s, HAL channel handle %d, total sensor activated %zu\n", 112 const Sensor& s = si->getSensor();
|
/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...] |
HidRawSensorTest.cpp | 44 .name = "Test sensor name", 112 using namespace Hid::Sensor::SensorTypeUsage; 139 LOG_V << name << " sensor: " << LOG_ENDL; 141 LOG_I << "Sensor usage " << std::hex << digest.fullUsage << std::dec << LOG_ENDL; 147 LOG_V << "Sensor of usage " << std::hex << digest.fullUsage << std::dec
|
/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...] |
/cts/tests/sensor/ |
Android.mk | 18 # Reusable Sensor test classes and helpers
|
/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);
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
BatteryStatsNoteTest.java | 26 import android.os.BatteryStats.Uid.Sensor; 469 DualTimer t = bi.getUidStatsLocked(UID).getSensorTimerLocked(Sensor.GPS, false); 474 t = bi.getUidStatsLocked(UID).getSensorTimerLocked(Sensor.GPS, false); 493 DualTimer t = bi.getUidStatsLocked(UID).getSensorTimerLocked(Sensor.GPS, false); 498 t = bi.getUidStatsLocked(UID).getSensorTimerLocked(Sensor.GPS, false);
|
/system/chre/platform/slpi/smgr/ |
platform_sensor.cc | 32 #include "chre_api/chre/sensor.h" 34 #include "chre/core/sensor.h" 51 // As SMGR doesn't support passive sensor request, it's now implemented on the 56 // 1. A sensor status monitor is added in addSensorMonitor() to receive the 57 // SNS_SMGR_SENSOR_STATUS_MONITOR_IND_V02 message the first time a sensor is 65 // 2) If the request is allowed, a QMI request to add the sensor request is 66 // made. Otherwise, a QMI request to remove the sensor request is made to 69 // 3) The merged mode of a sensor is the strongest mode of all sensor 70 // requests of the same sensor ID, with active > passive > off 321 Sensor sensor; local 696 const Sensor *sensor = EventLoopManagerSingleton::get() local 1148 const Sensor *sensor = EventLoopManagerSingleton::get() local 1223 Sensor *sensor = EventLoopManagerSingleton::get()->getSensorRequestManager() local 1266 const Sensor *sensor = EventLoopManagerSingleton::get() local 1292 const Sensor *sensor = EventLoopManagerSingleton::get() local [all...] |
/hardware/libhardware/modules/sensors/dynamic_sensor/ |
HidRawSensor.cpp | 32 const std::string CUSTOM_TYPE_PREFIX("com.google.hardware.sensor.hid_dynamic."); 54 LOG_E << "finding sensor control usage failed" << LOG_ENDL; 61 using namespace Hid::Sensor::SensorTypeUsage; 62 using namespace Hid::Sensor::ReportUsage; 137 LOG_E << "Invalid android custom sensor" << LOG_ENDL; 158 LOG_E << "Cannot find CUSTOM_VALUE_X in custom sensor" << LOG_ENDL; 214 LOG_I << "unsupported sensor usage " << usage << LOG_ENDL; 226 Hid::Sensor::ReportUsage::ORIENTATION_QUATERNION, 302 LOG_E << "Three axis sensor does not find all 3 axis" << LOG_ENDL; 462 using namespace Hid::Sensor::PropertyUsage [all...] |
/device/generic/goldfish/camera/ |
EmulatedFakeCamera2.cpp | 56 static_cast<uint64_t>(Sensor::kFrameDurationRange[0]) 70 static_cast<uint64_t>(Sensor::kFrameDurationRange[0]) 85 static_cast<uint64_t>(Sensor::kFrameDurationRange[0]) 175 mSensor = new Sensor(mSensorWidth, mSensorHeight); 250 ALOGE("%s: Unable to shut down sensor: %d", __FUNCTION__, res); 808 ALOGV("Configure: Waiting for sensor"); 818 ALOGV("Configure: Waiting for sensor"); 833 // Get necessary parameters for sensor config 907 mNextExposureTime + Sensor::kMinVerticalBlank) { 908 mNextFrameDuration = mNextExposureTime + Sensor::kMinVerticalBlank [all...] |
Android.mk | 75 fake-pipeline2/Sensor.cpp \
|
/device/google/cuttlefish_common/guest/hals/camera/ |
EmulatedFakeCamera2.cpp | 60 static_cast<uint64_t>(Sensor::kFrameDurationRange[0])}; 73 static_cast<uint64_t>(Sensor::kFrameDurationRange[0])}; 86 static_cast<uint64_t>(Sensor::kFrameDurationRange[0])}; 201 mSensor = new Sensor(mSensorWidth, mSensorHeight); 273 ALOGE("%s: Unable to shut down sensor: %d", __FUNCTION__, res); 807 ALOGV("Configure: Waiting for sensor"); 817 ALOGV("Configure: Waiting for sensor"); 832 // Get necessary parameters for sensor config 901 if (mNextFrameDuration < mNextExposureTime + Sensor::kMinVerticalBlank) { 902 mNextFrameDuration = mNextExposureTime + Sensor::kMinVerticalBlank [all...] |
/frameworks/base/core/jni/ |
android_hardware_SensorManager.cpp | 28 #include <sensor/Sensor.h> 29 #include <sensor/SensorEventQueue.h> 30 #include <sensor/SensorManager.h> 91 //android.hardware.Sensor 94 MakeGlobalRefOrDie(_env, FindClassOrDie(_env, "android/hardware/Sensor")); 154 translateNativeSensorToJavaSensor(JNIEnv *env, jobject sensor, const Sensor& nativeSensor) { 157 if (sensor == NULL) { 158 // Sensor sensor = new Sensor() 224 jobject sensor = translateNativeSensorToJavaSensor(env, NULL, nativeList[i]); local [all...] |
/frameworks/base/services/core/java/com/android/server/display/ |
AutomaticBrightnessController.java | 24 import android.hardware.Sensor; 54 // How long the current sensor reading is assumed to be valid beyond the current time. 84 // The sensor manager. 87 // The light sensor, or null if not available or needed. 88 private final Sensor mLightSensor; 100 // Initial light sensor event rate in milliseconds. 103 // Steady-state light sensor event rate in milliseconds. 106 // The current light sensor event rate in milliseconds. 110 // for debouncing the light sensor. Different constants are used to debounce the light sensor [all...] |
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
FakeUid.java | 74 public SparseArray<? extends Sensor> getSensorStats() {
|