Lines Matching refs:rateLevel
142 int32_t SensorService::SensorDirectConnection::configureChannel(int handle, int rateLevel) { in configureChannel() argument
144 if (handle == -1 && rateLevel == SENSOR_DIRECT_RATE_STOP) { in configureChannel()
165 || rateLevel > s.getHighestDirectReportRateLevel() in configureChannel()
170 int requestedRateLevel = rateLevel; in configureChannel()
171 if (mService->isSensorInCappedSet(s.getType()) && rateLevel != SENSOR_DIRECT_RATE_STOP) { in configureChannel()
172 status_t err = mService->adjustRateLevelBasedOnMicAndPermission(&rateLevel, mOpPackageName); in configureChannel()
179 .rate_level = rateLevel in configureChannel()
185 if (rateLevel == SENSOR_DIRECT_RATE_STOP) { in configureChannel()
194 mActivated[handle] = rateLevel; in configureChannel()
228 int rateLevel = i.second; in capRates() local
233 rateLevel > SENSOR_SERVICE_CAPPED_SAMPLING_RATE_LEVEL) { in capRates()
234 mMicRateBackup[handle] = rateLevel; in capRates()
261 int rateLevel = i.second; in uncapRates() local
264 .rate_level = rateLevel in uncapRates()
268 existingConnections[handle] = rateLevel; in uncapRates()