• Home
  • Raw
  • Download

Lines Matching refs:handle

212             int handle = mActiveSensors.keyAt(i);  in dump()  local
214 getSensorName(handle).string(), in dump()
215 handle, in dump()
347 String8 SensorService::getSensorName(int handle) const { in getSensorName()
351 if (sensor.getHandle() == handle) { in getSensorName()
377 int handle = mActiveSensors.keyAt(i); in cleanupConnection() local
378 if (c->hasSensor(handle)) { in cleanupConnection()
379 ALOGD_IF(DEBUG_CONNECTIONS, "%i: disabling handle=0x%08x", i, handle); in cleanupConnection()
380 SensorInterface* sensor = mSensorMap.valueFor( handle ); in cleanupConnection()
381 ALOGE_IF(!sensor, "mSensorMap[handle=0x%08x] is null!", handle); in cleanupConnection()
387 ALOGE_IF(!rec, "mActiveSensors[%d] is null (handle=0x%08x)!", i, handle); in cleanupConnection()
390 c, i, handle); in cleanupConnection()
395 mActiveVirtualSensors.removeItem(handle); in cleanupConnection()
406 int handle) in enable() argument
412 SensorInterface* sensor = mSensorMap.valueFor(handle); in enable()
415 SensorRecord* rec = mActiveSensors.valueFor(handle); in enable()
418 mActiveSensors.add(handle, rec); in enable()
420 mActiveVirtualSensors.add(handle, sensor); in enable()
430 sensors_event_t& event(mLastEventSeen.editValueFor(handle)); in enable()
439 if (connection->addSensor(handle)) { in enable()
452 int handle) in disable() argument
459 SensorRecord* rec = mActiveSensors.valueFor(handle); in disable()
462 connection->removeSensor(handle); in disable()
468 mActiveSensors.removeItem(handle); in disable()
469 mActiveVirtualSensors.removeItem(handle); in disable()
472 SensorInterface* sensor = mSensorMap.valueFor(handle); in disable()
479 int handle, nsecs_t ns) in setEventRate() argument
484 SensorInterface* sensor = mSensorMap.valueFor(handle); in setEventRate()
499 return sensor->setDelay(connection.get(), handle, ns); in setEventRate()
548 bool SensorService::SensorEventConnection::addSensor(int32_t handle) { in addSensor() argument
550 if (mSensorInfo.indexOf(handle) <= 0) { in addSensor()
551 mSensorInfo.add(handle); in addSensor()
557 bool SensorService::SensorEventConnection::removeSensor(int32_t handle) { in removeSensor() argument
559 if (mSensorInfo.remove(handle) >= 0) { in removeSensor()
565 bool SensorService::SensorEventConnection::hasSensor(int32_t handle) const { in hasSensor()
567 return mSensorInfo.indexOf(handle) >= 0; in hasSensor()
618 int handle, bool enabled) in enableDisable() argument
622 err = mService->enable(this, handle); in enableDisable()
624 err = mService->disable(this, handle); in enableDisable()
630 int handle, nsecs_t ns) in setEventRate() argument
632 return mService->setEventRate(this, handle, ns); in setEventRate()