Lines Matching refs:rateLevel
143 int32_t SensorService::SensorDirectConnection::configureChannel(int handle, int rateLevel) { in configureChannel() argument
145 if (handle == -1 && rateLevel == SENSOR_DIRECT_RATE_STOP) { in configureChannel()
166 || rateLevel > s.getHighestDirectReportRateLevel() in configureChannel()
171 int requestedRateLevel = rateLevel; in configureChannel()
172 if (mService->isSensorInCappedSet(s.getType()) && rateLevel != SENSOR_DIRECT_RATE_STOP) { in configureChannel()
173 status_t err = mService->adjustRateLevelBasedOnMicAndPermission(&rateLevel, mOpPackageName); in configureChannel()
180 .rate_level = rateLevel in configureChannel()
187 if (rateLevel == SENSOR_DIRECT_RATE_STOP) { in configureChannel()
196 mActivated[handle] = rateLevel; in configureChannel()
231 int rateLevel = i.second; in capRates() local
236 rateLevel > SENSOR_SERVICE_CAPPED_SAMPLING_RATE_LEVEL) { in capRates()
237 mMicRateBackup[handle] = rateLevel; in capRates()
265 int rateLevel = i.second; in uncapRates() local
268 .rate_level = rateLevel in uncapRates()
272 existingConnections[handle] = rateLevel; in uncapRates()