11/*
22** Copyright 2006, The Android Open Source Project
33**
4- ** Licensed under the Apache License, Version 2.0 (the "License");
5- ** you may not use this file except in compliance with the License.
6- ** You may obtain a copy of the License at
4+ ** Licensed under the Apache License, Version 2.0 (the "License");
5+ ** you may not use this file except in compliance with the License.
6+ ** You may obtain a copy of the License at
77**
8- ** http://www.apache.org/licenses/LICENSE-2.0
8+ ** http://www.apache.org/licenses/LICENSE-2.0
99**
10- ** Unless required by applicable law or agreed to in writing, software
11- ** distributed under the License is distributed on an "AS IS" BASIS,
12- ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13- ** See the License for the specific language governing permissions and
10+ ** Unless required by applicable law or agreed to in writing, software
11+ ** distributed under the License is distributed on an "AS IS" BASIS,
12+ ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ ** See the License for the specific language governing permissions and
1414** limitations under the License.
1515*/
1616
@@ -107,7 +107,7 @@ interface IWindowManager
107107 Configuration updateOrientationFromAppTokens (in Configuration currentConfig ,
108108 IBinder freezeThisOneIfNeeded );
109109 void setNewConfiguration (in Configuration config );
110-
110+
111111 void startFreezingScreen (int exitAnim , int enterAnim );
112112 void stopFreezingScreen ();
113113
@@ -121,13 +121,13 @@ interface IWindowManager
121121 void dismissKeyguard ();
122122
123123 void closeSystemDialogs (String reason );
124-
124+
125125 // These can only be called with the SET_ANIMATON_SCALE permission.
126126 float getAnimationScale (int which );
127127 float [] getAnimationScales ();
128128 void setAnimationScale (int which , float scale );
129129 void setAnimationScales (in float [] scales );
130-
130+
131131 // For testing
132132 void setInTouchMode (boolean showFocus );
133133
@@ -161,7 +161,7 @@ interface IWindowManager
161161 * {@link android.view.Surface}.
162162 */
163163 int getRotation ();
164-
164+
165165 /**
166166 * Watch the rotation of the screen. Returns the current rotation,
167167 * calls back when it changes.
@@ -175,24 +175,24 @@ interface IWindowManager
175175 */
176176 int getPreferredOptionsPanelGravity ();
177177
178- /**
179- * Lock the device orientation to the specified rotation, or to the
180- * current rotation if -1. Sensor input will be ignored until
181- * thawRotation() is called.
182- * @hide
183- */
184- void freezeRotation (int rotation );
185-
186- /**
187- * Release the orientation lock imposed by freezeRotation().
188- * @hide
189- */
190- void thawRotation ();
191-
192- /**
193- * Create a screenshot of the applications currently displayed.
194- */
195- Bitmap screenshotApplications (IBinder appToken , int displayId , int maxWidth , int maxHeight );
178+ /**
179+ * Lock the device orientation to the specified rotation, or to the
180+ * current rotation if -1. Sensor input will be ignored until
181+ * thawRotation() is called.
182+ * @hide
183+ */
184+ void freezeRotation (int rotation );
185+
186+ /**
187+ * Release the orientation lock imposed by freezeRotation().
188+ * @hide
189+ */
190+ void thawRotation ();
191+
192+ /**
193+ * Create a screenshot of the applications currently displayed.
194+ */
195+ Bitmap screenshotApplications (IBinder appToken , int displayId , int maxWidth , int maxHeight );
196196
197197 /**
198198 * Called by the status bar to notify Views of changes to System UI visiblity.
@@ -259,4 +259,10 @@ interface IWindowManager
259259 * Device is in safe mode.
260260 */
261261 boolean isSafeModeEnabled ();
262+
263+ /**
264+ * Tell keyguard to show the assistant (Intent.ACTION_ASSIST) after asking for the user's
265+ * credentials.
266+ */
267+ void showAssistant ();
262268}
0 commit comments