Searched refs:mSensors (Results 1 – 7 of 7) sorted by relevance
208 private int mSensors; field in LegacySensorManager.LegacyListener213 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 …]
26 private final List<Sensor> mSensors; field in SensorPowerCalculator30 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()
106 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()
216 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 …]
222 SensorList mSensors; variable
76 private SensorManager mSensors; field in DozeService132 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);
77 Vector<Sensor> mSensors; variable