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();
}
}
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();
}
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();
}
}
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();
}
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();
}
}
Aggregations