diff options
| author | Dianne Hackborn <hackbod@google.com> | 2015-05-19 01:05:52 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-05-19 01:05:53 +0000 |
| commit | fde500245c91c14fd1ba61e49fadb05969e9d1e7 (patch) | |
| tree | 058620232553057cc78e0dfa867eb8398524057a | |
| parent | 0c4729a1e468e2b0783a4234e39677d8078473b3 (diff) | |
| parent | 38a499edf5542fbd0948a02b77ecd84c0d62a846 (diff) | |
| download | frameworks_base-fde500245c91c14fd1ba61e49fadb05969e9d1e7.zip frameworks_base-fde500245c91c14fd1ba61e49fadb05969e9d1e7.tar.gz frameworks_base-fde500245c91c14fd1ba61e49fadb05969e9d1e7.tar.bz2 | |
Merge "Remove screenshot APIs." into mnc-dev
5 files changed, 4 insertions, 4 deletions
diff --git a/api/current.txt b/api/current.txt index 50147d8..231be10 100644 --- a/api/current.txt +++ b/api/current.txt @@ -28891,7 +28891,6 @@ package android.service.voice { field public static final java.lang.String SERVICE_META_DATA = "android.voice_interaction"; field public static final int START_SOURCE_ASSIST_GESTURE = 4; // 0x4 field public static final int START_WITH_ASSIST = 1; // 0x1 - field public static final int START_WITH_SCREENSHOT = 2; // 0x2 } public abstract class VoiceInteractionSession implements android.content.ComponentCallbacks2 android.view.KeyEvent.Callback { @@ -28917,7 +28916,6 @@ package android.service.voice { method public void onDestroy(); method public boolean[] onGetSupportedCommands(android.service.voice.VoiceInteractionSession.Caller, java.lang.String[]); method public void onHandleAssist(android.os.Bundle); - method public void onHandleScreenshot(android.graphics.Bitmap); method public void onHide(); method public boolean onKeyDown(int, android.view.KeyEvent); method public boolean onKeyLongPress(int, android.view.KeyEvent); diff --git a/api/system-current.txt b/api/system-current.txt index 26466ed..afd82e3 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -31021,7 +31021,6 @@ package android.service.voice { field public static final java.lang.String SERVICE_META_DATA = "android.voice_interaction"; field public static final int START_SOURCE_ASSIST_GESTURE = 4; // 0x4 field public static final int START_WITH_ASSIST = 1; // 0x1 - field public static final int START_WITH_SCREENSHOT = 2; // 0x2 } public abstract class VoiceInteractionSession implements android.content.ComponentCallbacks2 android.view.KeyEvent.Callback { @@ -31047,7 +31046,6 @@ package android.service.voice { method public void onDestroy(); method public boolean[] onGetSupportedCommands(android.service.voice.VoiceInteractionSession.Caller, java.lang.String[]); method public void onHandleAssist(android.os.Bundle); - method public void onHandleScreenshot(android.graphics.Bitmap); method public void onHide(); method public boolean onKeyDown(int, android.view.KeyEvent); method public boolean onKeyLongPress(int, android.view.KeyEvent); diff --git a/core/java/android/service/voice/VoiceInteractionService.java b/core/java/android/service/voice/VoiceInteractionService.java index 8c89ddb..77e2125 100644 --- a/core/java/android/service/voice/VoiceInteractionService.java +++ b/core/java/android/service/voice/VoiceInteractionService.java @@ -77,6 +77,7 @@ public class VoiceInteractionService extends Service { public static final int START_WITH_ASSIST = 1<<0; /** + * @hide * Flag for use with {@link #showSession}: request that the session be started with * a screen shot of the currently focused activity. */ diff --git a/core/java/android/service/voice/VoiceInteractionSession.java b/core/java/android/service/voice/VoiceInteractionSession.java index 71b7f76..f122d10 100644 --- a/core/java/android/service/voice/VoiceInteractionSession.java +++ b/core/java/android/service/voice/VoiceInteractionSession.java @@ -820,6 +820,7 @@ public abstract class VoiceInteractionSession implements KeyEvent.Callback, public void onHandleAssist(Bundle assistBundle) { } + /** @hide */ public void onHandleScreenshot(Bitmap screenshot) { } diff --git a/services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionSessionConnection.java b/services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionSessionConnection.java index 42eb6c3..d79b31c 100644 --- a/services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionSessionConnection.java +++ b/services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionSessionConnection.java @@ -177,6 +177,8 @@ final class VoiceInteractionSessionConnection implements ServiceConnection { public boolean showLocked(Bundle args, int flags, IVoiceInteractionSessionShowCallback showCallback) { + // For now we never allow screenshots. + flags &= ~VoiceInteractionService.START_WITH_SCREENSHOT; if (mBound) { if (!mFullyBound) { mFullyBound = mContext.bindServiceAsUser(mBindIntent, mFullConnection, |
