Merge "Provide access to Shell's apply token"

This commit is contained in:
Evan Rosky
2022-08-24 15:02:47 +00:00
committed by Android (Google) Code Review
2 changed files with 10 additions and 0 deletions

View File

@@ -34,4 +34,9 @@ interface IShellTransitions {
* Unregisters a remote transition handler.
*/
oneway void unregisterRemote(in RemoteTransition remoteTransition) = 2;
/**
* Retrieves the apply-token used by transactions in Shell
*/
IBinder getShellApplyToken() = 3;
}

View File

@@ -958,6 +958,11 @@ public class Transitions implements RemoteCallable<Transitions> {
transitions.mRemoteTransitionHandler.removeFiltered(remoteTransition);
});
}
@Override
public IBinder getShellApplyToken() {
return SurfaceControl.Transaction.getDefaultApplyToken();
}
}
private class SettingsObserver extends ContentObserver {