Home | History | Annotate | Download | only in media

Lines Matching refs:Operation

44 // in addition, the native class contains implementation for actual operation.
335 /* VolumeShaper::Operation expresses an operation to perform on the
342 class Operation : public RefBase {
357 Operation()
358 : Operation(FLAG_NONE, -1 /* replaceId */) {
361 Operation(Flag flags, int replaceId)
362 : Operation(flags, replaceId, std::numeric_limits<S>::quiet_NaN() /* xOffset */) {
365 explicit Operation(const Operation &operation)
366 : Operation(operation.mFlags, operation.mReplaceId, operation.mXOffset) {
369 explicit Operation(const sp<Operation> &operation)
370 : Operation(*operation.get()) {
373 Operation(Flag flags, int replaceId, S xOffset)
441 ss << "VolumeShaper::Operation{mFlags=" << static_cast<int32_t>(mFlags) ;
449 Flag mFlags; // operation to do
450 int32_t mReplaceId; // if >= 0 the id to remove in a replace operation.
452 }; // Operation
572 * Since we pass configuration and operation as shared pointers (like
578 const sp<VolumeShaper::Operation> &operation)
580 , mOperation(operation) // ditto
586 && (getFlags() & VolumeShaper::Operation::FLAG_DELAY) == 0) {
591 // We allow a null operation here, though VolumeHandler always provides one.
592 VolumeShaper::Operation::Flag getFlags() const {
594 ? VolumeShaper::Operation::FLAG_NONE : mOperation->getFlags();
629 if ((getFlags() & VolumeShaper::Operation::FLAG_DELAY) != 0) {
676 sp<VolumeShaper::Operation> mOperation;
693 S normalizedTime = (getFlags() & VolumeShaper::Operation::FLAG_REVERSE) != 0 ?
712 if (getFlags() & VolumeShaper::Operation::FLAG_REVERSE) {
765 const sp<VolumeShaper::Operation> &operation_in) {
766 // make a local copy of operation, as we modify it.
767 sp<VolumeShaper::Operation> operation(new VolumeShaper::Operation(operation_in));
769 VS_LOG("applyVolumeShaper:operation: %s", operation->toString().c_str());
775 if (operation == nullptr) {
776 ALOGE("null operation");
788 const int replaceId = operation->getReplaceId();
795 if ((operation->getFlags() & VolumeShaper::Operation::FLAG_JOIN) != 0) {
808 operation->setReplaceId(-1);
813 if ((operation->getFlags()
814 & VolumeShaper::Operation::FLAG_CREATE_IF_NECESSARY) != 0) {
835 mVolumeShapers.emplace_back(configuration, new VolumeShaper::Operation());
838 // fall through to handle the operation
847 if ((operation->getFlags() & VolumeShaper::Operation::FLAG_TERMINATE) != 0) {
854 Operation::FLAG_REVERSE) !=
855 (operation->getFlags() & VolumeShaper::Operation::FLAG_REVERSE)) {
872 const S xOffset = operation->getXOffset();
879 (operation->getFlags() & VolumeShaper::Operation::FLAG_REVERSE) != 0 ?
888 it->mOperation = operation; // replace the operation