Home
last modified time | relevance | path

Searched refs:mSensors (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/core/java/android/hardware/
DLegacySensorManager.java208 private int mSensors; field in LegacySensorManager.LegacyListener
213 mSensors = 0; in LegacyListener()
217 if ((mSensors & legacyType) != 0) { in registerSensor()
220 boolean alreadyHasOrientationSensor = hasOrientationSensor(mSensors); in registerSensor()
221 mSensors |= legacyType; in registerSensor()
229 if ((mSensors & legacyType) == 0) { in unregisterSensor()
232 mSensors &= ~legacyType; in unregisterSensor()
233 if (hasOrientationSensor(legacyType) && hasOrientationSensor(mSensors)) { in unregisterSensor()
240 return mSensors != 0; in hasSensors()
266 if ((mSensors & SensorManager.SENSOR_ORIENTATION_RAW)!=0) { in onSensorChanged()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DSensorPowerCalculator.java26 private final List<Sensor> mSensors; field in SensorPowerCalculator
30 mSensors = sensorManager.getSensorList(Sensor.TYPE_ALL); in SensorPowerCalculator()
51 final int sensorsCount = mSensors.size(); in calculateApp()
53 final Sensor s = mSensors.get(i); in calculateApp()
/frameworks/native/libs/gui/
DSensorManager.cpp106 mSensors.clear(); in sensorManagerDied()
150 mSensors = mSensorServer->getSensorList(mOpPackageName); in assertStateLocked()
151 size_t count = mSensors.size(); in assertStateLocked()
157 mSensorList[i] = mSensors.array() + i; in assertStateLocked()
171 return static_cast<ssize_t>(mSensors.size()); in getSensorList()
203 for (size_t i=0 ; i<mSensors.size() ; i++) { in getDefaultSensor()
/frameworks/native/services/sensorservice/
DSensorService.cpp216 mSensors.forEachSensor( in onFirstRef()
271 if (mSensors.add(handle, s, isDebug, isVirtual)){ in registerSensor()
275 return mSensors.getNonSensor(); in registerSensor()
284 bool ret = mSensors.remove(handle); in unregisterDynamicSensorLocked()
365 } else if (!mSensors.hasAnySensor()) { in dump()
374 result.append(mSensors.dump().c_str()); in dump()
381 sp<SensorInterface> s = mSensors.getInterface(i.first); in dump()
485 const size_t vcount = mSensors.getVirtualSensors().size(); in threadLoop()
552 sp<SensorInterface> si = mSensors.getInterface(handle); in threadLoop()
610 if (mSensors.isNewHandle(handle)) { in threadLoop()
[all …]
DSensorService.h222 SensorList mSensors; variable
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeService.java76 private SensorManager mSensors; field in DozeService
132 mSensors = (SensorManager) mContext.getSystemService(Context.SENSOR_SERVICE); in onCreate()
496 mSensor = mSensors.getDefaultSensor(type); in TriggerSensor()
517 mRegistered = mSensors.requestTriggerSensor(this, mSensor); in updateListener()
520 final boolean rt = mSensors.cancelTriggerSensor(this, mSensor); in updateListener()
592 final Sensor sensor = mSensors.getDefaultSensor(Sensor.TYPE_PROXIMITY);
602 mSensors.registerListener(this, sensor, SensorManager.SENSOR_DELAY_NORMAL, 0, mHandler);
629 mSensors.unregisterListener(this);
/frameworks/native/include/gui/
DSensorManager.h77 Vector<Sensor> mSensors; variable