Searched refs:batch (Results 1 - 10 of 10) sorted by relevance

/frameworks/native/services/sensorservice/
H A DSensorInterface.cpp50 status_t HardwareSensor::batch(void* ident, int /*handle*/, int flags, function in class:android::HardwareSensor
52 return mSensorDevice.batch(ident, mSensor.getHandle(), flags, samplingPeriodNs,
H A DSensorInterface.h43 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 DSensorFusion.cpp121 // 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 DSensorDevice.h43 // 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 DSensorDevice.cpp156 // Log error. Every activate call should be preceded by a batch() call.
157 ALOGE("\t >>>ERROR: activate called without batch");
169 // Call batch for this sensor with the previously calculated best effort
171 // events, and the best effort batch parameters might have changed.
173 "\t>>> actuating h/w batch %d %d %" PRId64 " %" PRId64, handle,
176 mSensorDevice->batch(mSensorDevice, handle,info.bestBatchParams.flags,
199 // On older devices which do not support batch, call setDelay().
210 status_t SensorDevice::batch(void* ident, int handle, int flags, int64_t samplingPeriodNs, function in class:android::SensorDevice
225 "SensorDevice::batch: ident=%p, handle=0x%08x, flags=%d, period_ns=%" PRId64 " timeout=%" PRId64,
235 // A batch ha
[all...]
H A DSensorService.cpp775 ALOGD_IF(DEBUG_CONNECTIONS, "Calling batch handle==%d flags=%d"
779 status_t err = sensor->batch(connection.get(), handle, reservedFlags, samplingPeriodNs,
807 // batch/activate has failed, reset our state.
1464 // separately before the next batch of events.
1593 // It is extremely unlikely that there is a write failure in non batch mode. Return a cache
1594 // size that is equal to that of the batch mode.
1595 // ALOGW("Write failure in non-batch mode");
/frameworks/native/libs/input/
H A DInputTransport.cpp419 ALOGD("channel '%s' consumer ~ consumed batch event, seq=%u",
447 Batch& batch = mBatches.editItemAt(batchIndex); local
448 if (canAddSample(batch, &mMsg)) {
449 batch.samples.push(mMsg);
451 ALOGD("channel '%s' consumer ~ appended to batch event",
456 // We cannot append to the batch in progress, so we need to consume
457 // the previous batch right now and defer the new message until later.
460 batch, batch.samples.size(), outSeq, outEvent);
466 ALOGD("channel '%s' consumer ~ consumed batch even
478 Batch& batch = mBatches.editTop(); local
514 Batch& batch = mBatches.editItemAt(i); local
548 consumeSamples(InputEventFactoryInterface* factory, Batch& batch, size_t count, uint32_t* outSeq, InputEvent** outEvent) argument
864 const Batch& batch = mBatches.itemAt(i); local
936 canAddSample(const Batch& batch, const InputMessage *msg) argument
952 findSampleNoLaterThan(const Batch& batch, nsecs_t time) argument
[all...]
/frameworks/native/include/input/
H A DInputTransport.h287 * to determine whether a pending batch is available to be consumed.
334 /* Returns true if there is a pending batch.
415 // a batch, we append a record here that associates the last sequence number in the
416 // batch with the previous one. When the finished signal is sent, we traverse the
417 // chain to individually finish all input messages that were part of the batch.
427 Batch& batch, size_t count, uint32_t* outSeq, InputEvent** outEvent);
442 static bool canAddSample(const Batch& batch, const InputMessage* msg);
443 static ssize_t findSampleNoLaterThan(const Batch& batch, nsecs_t time);
/frameworks/base/services/core/java/com/android/server/
H A DAlarmManagerService.java217 // narrows the batch if necessary; presumes that canHold(alarm) is true
263 // commit the new batch bounds
293 // commit the new batch bounds
323 // commit the new batch bounds
474 // returns true if the batch was added at the head
484 // Return the index of the matching batch, or -1 if none found.
509 Batch batch = oldSet.get(batchNum);
510 final int N = batch.size();
512 Alarm a = batch.get(i);
527 a.repeatInterval, a.operation, batch
[all...]
/frameworks/compile/mclinker/lib/Script/
H A DScriptScanner.ll28 %option batch

Completed in 166 milliseconds