Loading core/java/com/android/internal/app/IVoiceInteractionSessionListener.aidl +2 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,8 @@ /** * Called when a voice session window is shown/hidden. * Caution that there could be duplicated visibility change callbacks, it's up to the listener * to dedup those events. */ void onVoiceSessionWindowVisibilityChanged(boolean visible); Loading services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionManagerServiceImpl.java +3 −0 Original line number Diff line number Diff line Loading @@ -880,5 +880,8 @@ class VoiceInteractionManagerServiceImpl implements VoiceInteractionSessionConne @Override public void onSessionHidden(VoiceInteractionSessionConnection connection) { mServiceStub.onSessionHidden(); // Notifies visibility change here can cause duplicate events, it is added to make sure // client always get the callback even if session is unexpectedly closed. mServiceStub.setSessionWindowVisible(connection.mToken, false); } } Loading
core/java/com/android/internal/app/IVoiceInteractionSessionListener.aidl +2 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,8 @@ /** * Called when a voice session window is shown/hidden. * Caution that there could be duplicated visibility change callbacks, it's up to the listener * to dedup those events. */ void onVoiceSessionWindowVisibilityChanged(boolean visible); Loading
services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionManagerServiceImpl.java +3 −0 Original line number Diff line number Diff line Loading @@ -880,5 +880,8 @@ class VoiceInteractionManagerServiceImpl implements VoiceInteractionSessionConne @Override public void onSessionHidden(VoiceInteractionSessionConnection connection) { mServiceStub.onSessionHidden(); // Notifies visibility change here can cause duplicate events, it is added to make sure // client always get the callback even if session is unexpectedly closed. mServiceStub.setSessionWindowVisible(connection.mToken, false); } }