Home
last modified time | relevance | path

Searched refs:rateLevel (Results 1 – 10 of 10) sorted by relevance

/frameworks/native/services/sensorservice/
DSensorDirectConnection.cpp143 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
[all …]
DSensorDirectConnection.h65 virtual int32_t configureChannel(int handle, int rateLevel);
DSensorEventConnection.h84 virtual int32_t configureChannel(int handle, int rateLevel);
DSensorEventConnection.cpp812 int32_t SensorService::SensorEventConnection::configureChannel(int handle, int rateLevel) { in configureChannel() argument
815 UNUSED(rateLevel); in configureChannel()
/frameworks/native/libs/sensor/
DISensorEventConnection.cpp92 virtual int32_t configureChannel(int32_t handle, int32_t rateLevel) { in configureChannel() argument
96 data.writeInt32(rateLevel); in configureChannel()
160 int rateLevel = data.readInt32(); in onTransact() local
161 status_t result = configureChannel(handle, rateLevel); in onTransact()
DSensorManager.cpp289 int SensorManager::configureDirectChannel(int channelNativeHandle, int sensorHandle, int rateLevel)… in configureDirectChannel() argument
302 ret = i->second->configureChannel(sensorHandle, rateLevel); in configureDirectChannel()
304 static_cast<int>(sensorHandle), static_cast<int>(rateLevel), in configureDirectChannel()
/frameworks/base/core/java/android/hardware/
DSensorDirectChannel.java188 public int configure(Sensor sensor, @RateLevel int rateLevel) { in configure() argument
189 return mManager.configureDirectChannelImpl(this, sensor, rateLevel); in configure()
DSensor.java862 int rateLevel = ((mFlags & DIRECT_REPORT_MASK) >> DIRECT_REPORT_SHIFT); in getHighestDirectReportRateLevel() local
863 return rateLevel <= SensorDirectChannel.RATE_VERY_FAST in getHighestDirectReportRateLevel()
864 ? rateLevel : SensorDirectChannel.RATE_VERY_FAST; in getHighestDirectReportRateLevel()
/frameworks/native/libs/sensor/include/sensor/
DISensorEventConnection.h44 virtual int32_t configureChannel(int32_t handle, int32_t rateLevel) = 0;
DSensorManager.h67 int configureDirectChannel(int channelNativeHandle, int sensorHandle, int rateLevel);