Lines Matching defs:handle

90 bool SensorService::SensorEventConnection::addSensor(int32_t handle) {
92 sp<SensorInterface> si = mService->getSensorInterfaceFromHandle(handle);
95 mSensorInfo.indexOfKey(handle) >= 0) {
98 mSensorInfo.add(handle, FlushInfo());
102 bool SensorService::SensorEventConnection::removeSensor(int32_t handle) {
104 if (mSensorInfo.removeItem(handle) >= 0) {
110 bool SensorService::SensorEventConnection::hasSensor(int32_t handle) const {
112 return mSensorInfo.indexOfKey(handle) >= 0;
123 const int handle = mSensorInfo.keyAt(i);
124 sp<SensorInterface> si = mService->getSensorInterfaceFromHandle(handle);
136 void SensorService::SensorEventConnection::setFirstFlushPending(int32_t handle,
139 ssize_t index = mSensorInfo.indexOfKey(handle);
167 const int handle = mSensorInfo.keyAt(i);
168 sp<SensorInterface> si = mService->getSensorInterfaceFromHandle(handle);
197 void SensorService::SensorEventConnection::incrementPendingFlushCount(int32_t handle) {
199 ssize_t index = mSensorInfo.indexOfKey(handle);
389 const int handle = mSensorInfo.keyAt(i);
390 sp<SensorInterface> si = mService->getSensorInterfaceFromHandle(handle);
397 flushCompleteEvent.meta_data.sensor = handle;
503 int handle, bool enabled, nsecs_t samplingPeriodNs, nsecs_t maxBatchReportLatencyNs,
508 err = mService->enable(this, handle, samplingPeriodNs, maxBatchReportLatencyNs,
512 err = mService->disable(this, handle);
518 int handle, nsecs_t samplingPeriodNs)
520 return mService->setEventRate(this, handle, samplingPeriodNs, mOpPackageName);