Search in sources :

Example 1 with TransactionCompat

use of com.android.systemui.shared.system.TransactionCompat in project android_packages_apps_Launcher3 by crdroidandroid.

the class TransformParams method applySurfaceParams.

public void applySurfaceParams(SurfaceParams... params) {
    if (mSyncTransactionApplier != null) {
        mSyncTransactionApplier.scheduleApply(params);
    } else {
        TransactionCompat t = new TransactionCompat();
        for (SurfaceParams param : params) {
            SyncRtSurfaceTransactionApplierCompat.applyParams(t, param);
        }
        t.apply();
    }
}
Also used : TransactionCompat(com.android.systemui.shared.system.TransactionCompat) SurfaceParams(com.android.systemui.shared.system.SyncRtSurfaceTransactionApplierCompat.SurfaceParams)

Example 2 with TransactionCompat

use of com.android.systemui.shared.system.TransactionCompat in project android_packages_apps_Launcher3 by crdroidandroid.

the class RemoteFadeOutAnimationListener method onAnimationUpdate.

@Override
public void onAnimationUpdate(ValueAnimator valueAnimator) {
    TransactionCompat t = new TransactionCompat();
    if (mFirstFrame) {
        for (RemoteAnimationTargetCompat target : mTarget.unfilteredApps) {
            t.show(target.leash);
        }
        mFirstFrame = false;
    }
    float alpha = 1 - valueAnimator.getAnimatedFraction();
    for (RemoteAnimationTargetCompat app : mTarget.apps) {
        t.setAlpha(app.leash, alpha);
    }
    t.apply();
}
Also used : RemoteAnimationTargetCompat(com.android.systemui.shared.system.RemoteAnimationTargetCompat) TransactionCompat(com.android.systemui.shared.system.TransactionCompat)

Example 3 with TransactionCompat

use of com.android.systemui.shared.system.TransactionCompat in project android_packages_apps_Launcher3 by AOSPA.

the class TransformParams method applySurfaceParams.

public void applySurfaceParams(SurfaceParams... params) {
    if (mSyncTransactionApplier != null) {
        mSyncTransactionApplier.scheduleApply(params);
    } else {
        TransactionCompat t = new TransactionCompat();
        for (SurfaceParams param : params) {
            SyncRtSurfaceTransactionApplierCompat.applyParams(t, param);
        }
        t.apply();
    }
}
Also used : TransactionCompat(com.android.systemui.shared.system.TransactionCompat) SurfaceParams(com.android.systemui.shared.system.SyncRtSurfaceTransactionApplierCompat.SurfaceParams)

Example 4 with TransactionCompat

use of com.android.systemui.shared.system.TransactionCompat in project android_packages_apps_Launcher3 by AOSPA.

the class RemoteFadeOutAnimationListener method onAnimationUpdate.

@Override
public void onAnimationUpdate(ValueAnimator valueAnimator) {
    TransactionCompat t = new TransactionCompat();
    if (mFirstFrame) {
        for (RemoteAnimationTargetCompat target : mTarget.unfilteredApps) {
            t.show(target.leash);
        }
        mFirstFrame = false;
    }
    float alpha = 1 - valueAnimator.getAnimatedFraction();
    for (RemoteAnimationTargetCompat app : mTarget.apps) {
        t.setAlpha(app.leash, alpha);
    }
    t.apply();
}
Also used : RemoteAnimationTargetCompat(com.android.systemui.shared.system.RemoteAnimationTargetCompat) TransactionCompat(com.android.systemui.shared.system.TransactionCompat)

Example 5 with TransactionCompat

use of com.android.systemui.shared.system.TransactionCompat in project android_packages_apps_Trebuchet by LineageOS.

the class TransformParams method applySurfaceParams.

public void applySurfaceParams(SurfaceParams[] params) {
    if (mSyncTransactionApplier != null) {
        mSyncTransactionApplier.scheduleApply(params);
    } else {
        TransactionCompat t = new TransactionCompat();
        for (SurfaceParams param : params) {
            SyncRtSurfaceTransactionApplierCompat.applyParams(t, param);
        }
        t.apply();
    }
}
Also used : TransactionCompat(com.android.systemui.shared.system.TransactionCompat) SurfaceParams(com.android.systemui.shared.system.SyncRtSurfaceTransactionApplierCompat.SurfaceParams)

Aggregations

TransactionCompat (com.android.systemui.shared.system.TransactionCompat)16 RemoteAnimationTargetCompat (com.android.systemui.shared.system.RemoteAnimationTargetCompat)8 SurfaceParams (com.android.systemui.shared.system.SyncRtSurfaceTransactionApplierCompat.SurfaceParams)7 Animator (android.animation.Animator)1 AnimatorSet (android.animation.AnimatorSet)1 ValueAnimator (android.animation.ValueAnimator)1 Rect (android.graphics.Rect)1 IBinder (android.os.IBinder)1 View (android.view.View)1 AbstractFloatingView (com.android.launcher3.AbstractFloatingView)1 AnimationSuccessListener (com.android.launcher3.anim.AnimationSuccessListener)1 ClipAnimationHelper (com.android.quickstep.util.ClipAnimationHelper)1 RemoteAnimationTargetSet (com.android.quickstep.util.RemoteAnimationTargetSet)1 RecentsView (com.android.quickstep.views.RecentsView)1 SyncRtSurfaceTransactionApplierCompat (com.android.systemui.shared.system.SyncRtSurfaceTransactionApplierCompat)1