Merge "Remove screenshot APIs." into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
fde500245c
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -820,6 +820,7 @@ public abstract class VoiceInteractionSession implements KeyEvent.Callback,
|
||||
public void onHandleAssist(Bundle assistBundle) {
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
public void onHandleScreenshot(Bitmap screenshot) {
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user