/frameworks/native/services/sensorservice/ |
H A D | SensorInterface.cpp | 53 status_t HardwareSensor::batch(void* ident, int handle, int flags, function in class:android::HardwareSensor 55 return mSensorDevice.batch(ident, mSensor.getHandle(), flags, samplingPeriodNs,
|
H A D | SensorInterface.h | 43 virtual status_t batch(void* ident, int handle, int flags, int64_t samplingPeriodNs, function in class:android::SensorInterface 76 virtual status_t batch(void* ident, int handle, int flags, int64_t samplingPeriodNs,
|
H A D | SensorFusion.cpp | 121 // Call batch with timeout zero instead of setDelay(). 122 mSensorDevice.batch(ident, mAcc.getHandle(), 0, ns, 0); 123 mSensorDevice.batch(ident, mMag.getHandle(), 0, ms2ns(20), 0); 124 mSensorDevice.batch(ident, mGyro.getHandle(), 0, mTargetDelayNs, 0);
|
H A D | SensorDevice.h | 43 // batch call. For continous mode clients, maxBatchReportLatency is set to zero. 56 // Store batch parameters in the KeyedVector and the optimal batch_rate and timeout in 57 // bestBatchParams. For every batch() call corresponding params are stored in batchParams 58 // vector. A continuous mode request is batch(... timeout=0 ..) followed by activate(). A batch 59 // mode request is batch(... timeout > 0 ...) followed by activate(). 60 // Info is a per-sensor data structure which contains the batch parameters for each client that 64 // Key is the unique identifier(ident) for each client, value is the batch parameters 69 // Sets batch parameters for this ident. Returns error if this ident is not already present 88 status_t batch(voi [all...] |
H A D | SensorDevice.cpp | 149 // Log error. Every activate call should be preceded by a batch() call. 150 ALOGE("\t >>>ERROR: activate called without batch"); 162 // Call batch for this sensor with the previously calculated best effort 164 // events, and the best effort batch parameters might have changed. 166 "\t>>> actuating h/w batch %d %d %lld %lld ", handle, 169 mSensorDevice->batch(mSensorDevice, handle,info.bestBatchParams.flags, 192 // On older devices which do not support batch, call setDelay(). 203 status_t SensorDevice::batch(void* ident, int handle, int flags, int64_t samplingPeriodNs, function in class:android::SensorDevice 214 return mSensorDevice->batch(mSensorDevice, handle, flags, samplingPeriodNs, 220 errDryRun = mSensorDevice->batch(mSensorDevic [all...] |
H A D | SensorService.cpp | 593 ALOGD_IF(DEBUG_CONNECTIONS, "Calling batch handle==%d flags=%d rate=%lld timeout== %lld", 596 status_t err = sensor->batch(connection.get(), handle, reservedFlags, samplingPeriodNs, 614 // batch/activate has failed, reset our state. 891 // separately before the next batch of events.
|
/frameworks/native/libs/input/ |
H A D | InputTransport.cpp | 418 ALOGD("channel '%s' consumer ~ consumed batch event, seq=%u", 446 Batch& batch = mBatches.editItemAt(batchIndex); local 447 if (canAddSample(batch, &mMsg)) { 448 batch.samples.push(mMsg); 450 ALOGD("channel '%s' consumer ~ appended to batch event", 455 // We cannot append to the batch in progress, so we need to consume 456 // the previous batch right now and defer the new message until later. 459 batch, batch.samples.size(), outSeq, outEvent); 465 ALOGD("channel '%s' consumer ~ consumed batch even 477 Batch& batch = mBatches.editTop(); local 513 Batch& batch = mBatches.editItemAt(i); local 547 consumeSamples(InputEventFactoryInterface* factory, Batch& batch, size_t count, uint32_t* outSeq, InputEvent** outEvent) argument 863 const Batch& batch = mBatches.itemAt(i); local 935 canAddSample(const Batch& batch, const InputMessage *msg) argument 951 findSampleNoLaterThan(const Batch& batch, nsecs_t time) argument [all...] |
/frameworks/native/include/input/ |
H A D | InputTransport.h | 279 * to determine whether a pending batch is available to be consumed. 326 /* Returns true if there is a pending batch. 407 // a batch, we append a record here that associates the last sequence number in the 408 // batch with the previous one. When the finished signal is sent, we traverse the 409 // chain to individually finish all input messages that were part of the batch. 419 Batch& batch, size_t count, uint32_t* outSeq, InputEvent** outEvent); 434 static bool canAddSample(const Batch& batch, const InputMessage* msg); 435 static ssize_t findSampleNoLaterThan(const Batch& batch, nsecs_t time);
|
/frameworks/base/services/java/com/android/server/ |
H A D | AlarmManagerService.java | 163 // narrows the batch if necessary; presumes that canHold(alarm) is true 206 // commit the new batch bounds 233 // commit the new batch bounds 260 // commit the new batch bounds 348 // returns true if the batch was added at the head 358 // Return the index of the matching batch, or -1 if none found. 383 Batch batch = oldSet.get(batchNum); 384 final int N = batch.size(); 386 Alarm a = batch.get(i); 401 a.repeatInterval, a.operation, batch [all...] |