Home | History | Annotate | Download | only in media

Lines Matching refs:Operation

43 // in addition, the native class contains implementation for actual operation.
334 /* VolumeShaper::Operation expresses an operation to perform on the
341 class Operation : public RefBase, public Parcelable {
356 Operation()
357 : Operation(FLAG_NONE, -1 /* replaceId */) {
360 Operation(Flag flags, int replaceId)
361 : Operation(flags, replaceId, std::numeric_limits<S>::quiet_NaN() /* xOffset */) {
364 explicit Operation(const Operation &operation)
365 : Operation(operation.mFlags, operation.mReplaceId, operation.mXOffset) {
368 explicit Operation(const sp<Operation> &operation)
369 : Operation(*operation.get()) {
372 Operation(Flag flags, int replaceId, S xOffset)
440 ss << "VolumeShaper::Operation{mFlags=" << static_cast<int32_t>(mFlags) ;
448 Flag mFlags; // operation to do
449 int32_t mReplaceId; // if >= 0 the id to remove in a replace operation.
451 }; // Operation
571 * Since we pass configuration and operation as shared pointers (like
577 const sp<VolumeShaper::Operation> &operation)
579 , mOperation(operation) // ditto
585 && (getFlags() & VolumeShaper::Operation::FLAG_DELAY) == 0) {
590 // We allow a null operation here, though VolumeHandler always provides one.
591 VolumeShaper::Operation::Flag getFlags() const {
593 ? VolumeShaper::Operation::FLAG_NONE : mOperation->getFlags();
628 if ((getFlags() & VolumeShaper::Operation::FLAG_DELAY) != 0) {
675 sp<VolumeShaper::Operation> mOperation;
692 S normalizedTime = (getFlags() & VolumeShaper::Operation::FLAG_REVERSE) != 0 ?
711 if (getFlags() & VolumeShaper::Operation::FLAG_REVERSE) {
764 const sp<VolumeShaper::Operation> &operation_in) {
765 // make a local copy of operation, as we modify it.
766 sp<VolumeShaper::Operation> operation(new VolumeShaper::Operation(operation_in));
768 VS_LOG("applyVolumeShaper:operation: %s", operation->toString().c_str());
774 if (operation == nullptr) {
775 ALOGE("null operation");
787 const int replaceId = operation->getReplaceId();
794 if ((operation->getFlags() & VolumeShaper::Operation::FLAG_JOIN) != 0) {
807 operation->setReplaceId(-1);
812 if ((operation->getFlags()
813 & VolumeShaper::Operation::FLAG_CREATE_IF_NECESSARY) != 0) {
834 mVolumeShapers.emplace_back(configuration, new VolumeShaper::Operation());
837 // fall through to handle the operation
846 if ((operation->getFlags() & VolumeShaper::Operation::FLAG_TERMINATE) != 0) {
853 if ((it->getFlags() & VolumeShaper::Operation::FLAG_REVERSE) !=
854 (operation->getFlags() & VolumeShaper::Operation::FLAG_REVERSE)) {
871 const S xOffset = operation->getXOffset();
878 (operation->getFlags() & VolumeShaper::Operation::FLAG_REVERSE) != 0 ?
887 it->mOperation = operation; // replace the operation