Lines Matching defs:handle

105 bool SensorService::SensorEventConnection::addSensor(int32_t handle) {
107 sp<SensorInterface> si = mService->getSensorInterfaceFromHandle(handle);
110 mSensorInfo.indexOfKey(handle) >= 0) {
113 mSensorInfo.add(handle, FlushInfo());
117 bool SensorService::SensorEventConnection::removeSensor(int32_t handle) {
119 if (mSensorInfo.removeItem(handle) >= 0) {
125 bool SensorService::SensorEventConnection::hasSensor(int32_t handle) const {
127 return mSensorInfo.indexOfKey(handle) >= 0;
138 const int handle = mSensorInfo.keyAt(i);
139 sp<SensorInterface> si = mService->getSensorInterfaceFromHandle(handle);
151 void SensorService::SensorEventConnection::setFirstFlushPending(int32_t handle,
154 ssize_t index = mSensorInfo.indexOfKey(handle);
182 const int handle = mSensorInfo.keyAt(i);
183 sp<SensorInterface> si = mService->getSensorInterfaceFromHandle(handle);
212 void SensorService::SensorEventConnection::incrementPendingFlushCount(int32_t handle) {
214 ssize_t index = mSensorInfo.indexOfKey(handle);
431 const int handle = mSensorInfo.keyAt(i);
432 sp<SensorInterface> si = mService->getSensorInterfaceFromHandle(handle);
439 flushCompleteEvent.meta_data.sensor = handle;
555 int handle, bool enabled, nsecs_t samplingPeriodNs, nsecs_t maxBatchReportLatencyNs,
560 err = mService->enable(this, handle, samplingPeriodNs, maxBatchReportLatencyNs,
564 err = mService->disable(this, handle);
570 int handle, nsecs_t samplingPeriodNs)
572 return mService->setEventRate(this, handle, samplingPeriodNs, mOpPackageName);
579 int32_t SensorService::SensorEventConnection::configureChannel(int handle, int rateLevel) {
581 UNUSED(handle);