summaryrefslogtreecommitdiffstats
path: root/services/core/java/com/android/server/wm/AppWindowToken.java
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2014-05-27 18:24:45 -0700
committerDianne Hackborn <hackbod@google.com>2014-05-28 17:16:51 -0700
commite30e02f5d9a9141c9ee70c712d4f9d52c88ea969 (patch)
tree590f001931e5d466298f917f2d75f0b373de3154 /services/core/java/com/android/server/wm/AppWindowToken.java
parentbbd8e6ffc600e078984cb68acf51c660c5c9fc81 (diff)
downloadframeworks_base-e30e02f5d9a9141c9ee70c712d4f9d52c88ea969.zip
frameworks_base-e30e02f5d9a9141c9ee70c712d4f9d52c88ea969.tar.gz
frameworks_base-e30e02f5d9a9141c9ee70c712d4f9d52c88ea969.tar.bz2
Add system layer for voice interaction services.
New window layer that voice interaction service windows go in to. Includes a new voice-specific content rectangle that voice activities are placed in to. Add specific animations for this layer, sliding down from the top (though this can be customized by the voice interaction service). Also add the concept of activities running for voice interaction services for purposes of adjusting the animation used for them, again sliding from the top, but not (yet?) customizable by the voice interaction service. Change-Id: Ic9e0e8c843c2e2972d6abb4087dce0019326155d
Diffstat (limited to 'services/core/java/com/android/server/wm/AppWindowToken.java')
-rw-r--r--services/core/java/com/android/server/wm/AppWindowToken.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/wm/AppWindowToken.java b/services/core/java/com/android/server/wm/AppWindowToken.java
index ca4ad8a..12c15e2 100644
--- a/services/core/java/com/android/server/wm/AppWindowToken.java
+++ b/services/core/java/com/android/server/wm/AppWindowToken.java
@@ -50,6 +50,8 @@ class AppWindowToken extends WindowToken {
final WindowAnimator mAnimator;
+ final boolean voiceInteraction;
+
int groupId = -1;
boolean appFullscreen;
int requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED;
@@ -107,11 +109,13 @@ class AppWindowToken extends WindowToken {
boolean mDeferRemoval;
- AppWindowToken(WindowManagerService _service, IApplicationToken _token) {
+ AppWindowToken(WindowManagerService _service, IApplicationToken _token,
+ boolean _voiceInteraction) {
super(_service, _token.asBinder(),
WindowManager.LayoutParams.TYPE_APPLICATION, true);
appWindowToken = this;
appToken = _token;
+ voiceInteraction = _voiceInteraction;
mInputApplicationHandle = new InputApplicationHandle(this);
mAnimator = service.mAnimator;
mAppAnimator = new AppWindowAnimator(this);
@@ -249,7 +253,7 @@ class AppWindowToken extends WindowToken {
void dump(PrintWriter pw, String prefix) {
super.dump(pw, prefix);
if (appToken != null) {
- pw.print(prefix); pw.println("app=true");
+ pw.print(prefix); pw.print("app=true voiceInteraction="); pw.println(voiceInteraction);
}
if (allAppWindows.size() > 0) {
pw.print(prefix); pw.print("allAppWindows="); pw.println(allAppWindows);