Lines Matching refs:nb
277 int nb, polltime = -1;
283 nb = 0;
287 nb = ((MPLSensor*) sensor)->readEvents(data, count);
288 if (nb > 0) {
289 count -= nb;
290 nbEvents += nb;
291 data += nb;
296 nb = ((MPLSensor*) sensor)->readEvents(data, count);
297 if (nb > 0) {
298 count -= nb;
299 nbEvents += nb;
300 data += nb;
303 nb = ((MPLSensor*) sensor)->readDmpOrientEvents(data, count);
305 if (isDmpScreenAutoRotationEnabled() && nb > 0) {
306 count -= nb;
307 nbEvents += nb;
308 data += nb;
312 nb = ((MPLSensor*) sensor)->readDmpSignificantMotionEvents(data, count);
314 count -= nb;
315 nbEvents += nb;
316 data += nb;
319 nb = ((MPLSensor*) sensor)->readDmpPedometerEvents(data, count, ID_P, SENSOR_TYPE_STEP_DETECTOR, 0);
321 count -= nb;
322 nbEvents += nb;
323 data += nb;
326 nb = sensor->readEvents(data, count);
327 if (nb < count) {
331 count -= nb;
332 nbEvents += nb;
333 data += nb;
335 ALOGI_IF(0, "sensors_mpl:readEvents() - nb=%d, count=%d, nbEvents=%d, data->timestamp=%lld, data->data[0]=%f,",
336 nb, count, nbEvents, data->timestamp, data->data[0]);
342 nb = 0;
343 nb = ((MPLSensor*) mSensor[mpl])->readDmpPedometerEvents(data, count, ID_SC, SENSOR_TYPE_STEP_COUNTER, 0);
344 ALOGI_IF(0, "sensors_mpl:readStepCount() - nb=%d, count=%d, nbEvents=%d, data->timestamp=%lld, data->data[0]=%f,",
345 nb, count, nbEvents, data->timestamp, data->data[0]);
346 if (nb > 0) {
347 count -= nb;
348 nbEvents += nb;
349 data += nb;