Loading core/java/android/app/WindowTokenClient.java +2 −2 Original line number Diff line number Diff line Loading @@ -44,8 +44,8 @@ public class WindowTokenClient extends IWindowToken.Stub { * Attaches {@code context} to this {@link WindowTokenClient}. Each {@link WindowTokenClient} * can only attach one {@link Context}. * <p>This method must be called before invoking * {@link android.view.IWindowManager#addWindowTokenWithOptions(IBinder, int, int, Bundle, * String)}.<p/> * {@link android.view.IWindowManager#registerWindowContextListener(IBinder, int, int, * Bundle, boolean)}.<p/> * * @param context context to be attached * @throws IllegalStateException if attached context has already existed. Loading core/java/android/view/IWindowManager.aidl +6 −8 Original line number Diff line number Diff line Loading @@ -124,16 +124,10 @@ interface IWindowManager * * @param token Token to be registered. * @param type Window type to be used with this token. * @param options A bundle used to pass window-related options. * @param displayId The ID of the display where this token should be added. * @param packageName The name of package to request to add window token. Could be {@code null} * if callers holds the MANAGE_APP_TOKENS permission. * @return {@link WindowManagerGlobal#ADD_OKAY} if the addition was successful, an error code * otherwise. * @param options A bundle used to pass window-related options. */ int addWindowTokenWithOptions(IBinder token, int type, int displayId, in Bundle options, String packageName); void addWindowToken(IBinder token, int type, int displayId); void addWindowToken(IBinder token, int type, int displayId, in Bundle options); /** * Remove window token on a specific display. * Loading Loading @@ -784,6 +778,10 @@ interface IWindowManager /** * Registers a listener for a {@link android.app.WindowContext} to handle configuration changes * from the server side. * <p> * Note that this API should be invoked after calling * {@link android.app.WindowTokenClient#attachContext(WindowContext)} * </p> * * @param clientToken the window context's token * @param type Window type of the window context Loading core/java/android/view/WindowManagerGlobal.java +0 −1 Original line number Diff line number Diff line Loading @@ -139,7 +139,6 @@ public final class WindowManagerGlobal { public static final int ADD_INVALID_DISPLAY = -9; public static final int ADD_INVALID_TYPE = -10; public static final int ADD_INVALID_USER = -11; public static final int ADD_TOO_MANY_TOKENS = -12; @UnsupportedAppUsage private static WindowManagerGlobal sDefaultWindowManager; Loading core/tests/coretests/src/android/app/WindowContextTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -184,7 +184,8 @@ public class WindowContextTest { final IBinder token = windowContext.getWindowContextToken(); final IBinder existingToken = new Binder(); mWms.addWindowToken(existingToken, TYPE_INPUT_METHOD, windowContext.getDisplayId()); mWms.addWindowToken(existingToken, TYPE_INPUT_METHOD, windowContext.getDisplayId(), null /* options */); final WindowManager.LayoutParams params = new WindowManager.LayoutParams(TYPE_INPUT_METHOD); Loading packages/SystemUI/src/com/android/systemui/qs/external/CustomTile.java +2 −1 Original line number Diff line number Diff line Loading @@ -315,7 +315,8 @@ public class CustomTile extends QSTileImpl<State> implements TileChangeListener } try { if (DEBUG) Log.d(TAG, "Adding token"); mWindowManager.addWindowToken(mToken, TYPE_QS_DIALOG, DEFAULT_DISPLAY); mWindowManager.addWindowToken(mToken, TYPE_QS_DIALOG, DEFAULT_DISPLAY, null /* options */); mIsTokenGranted = true; } catch (RemoteException e) { } Loading Loading
core/java/android/app/WindowTokenClient.java +2 −2 Original line number Diff line number Diff line Loading @@ -44,8 +44,8 @@ public class WindowTokenClient extends IWindowToken.Stub { * Attaches {@code context} to this {@link WindowTokenClient}. Each {@link WindowTokenClient} * can only attach one {@link Context}. * <p>This method must be called before invoking * {@link android.view.IWindowManager#addWindowTokenWithOptions(IBinder, int, int, Bundle, * String)}.<p/> * {@link android.view.IWindowManager#registerWindowContextListener(IBinder, int, int, * Bundle, boolean)}.<p/> * * @param context context to be attached * @throws IllegalStateException if attached context has already existed. Loading
core/java/android/view/IWindowManager.aidl +6 −8 Original line number Diff line number Diff line Loading @@ -124,16 +124,10 @@ interface IWindowManager * * @param token Token to be registered. * @param type Window type to be used with this token. * @param options A bundle used to pass window-related options. * @param displayId The ID of the display where this token should be added. * @param packageName The name of package to request to add window token. Could be {@code null} * if callers holds the MANAGE_APP_TOKENS permission. * @return {@link WindowManagerGlobal#ADD_OKAY} if the addition was successful, an error code * otherwise. * @param options A bundle used to pass window-related options. */ int addWindowTokenWithOptions(IBinder token, int type, int displayId, in Bundle options, String packageName); void addWindowToken(IBinder token, int type, int displayId); void addWindowToken(IBinder token, int type, int displayId, in Bundle options); /** * Remove window token on a specific display. * Loading Loading @@ -784,6 +778,10 @@ interface IWindowManager /** * Registers a listener for a {@link android.app.WindowContext} to handle configuration changes * from the server side. * <p> * Note that this API should be invoked after calling * {@link android.app.WindowTokenClient#attachContext(WindowContext)} * </p> * * @param clientToken the window context's token * @param type Window type of the window context Loading
core/java/android/view/WindowManagerGlobal.java +0 −1 Original line number Diff line number Diff line Loading @@ -139,7 +139,6 @@ public final class WindowManagerGlobal { public static final int ADD_INVALID_DISPLAY = -9; public static final int ADD_INVALID_TYPE = -10; public static final int ADD_INVALID_USER = -11; public static final int ADD_TOO_MANY_TOKENS = -12; @UnsupportedAppUsage private static WindowManagerGlobal sDefaultWindowManager; Loading
core/tests/coretests/src/android/app/WindowContextTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -184,7 +184,8 @@ public class WindowContextTest { final IBinder token = windowContext.getWindowContextToken(); final IBinder existingToken = new Binder(); mWms.addWindowToken(existingToken, TYPE_INPUT_METHOD, windowContext.getDisplayId()); mWms.addWindowToken(existingToken, TYPE_INPUT_METHOD, windowContext.getDisplayId(), null /* options */); final WindowManager.LayoutParams params = new WindowManager.LayoutParams(TYPE_INPUT_METHOD); Loading
packages/SystemUI/src/com/android/systemui/qs/external/CustomTile.java +2 −1 Original line number Diff line number Diff line Loading @@ -315,7 +315,8 @@ public class CustomTile extends QSTileImpl<State> implements TileChangeListener } try { if (DEBUG) Log.d(TAG, "Adding token"); mWindowManager.addWindowToken(mToken, TYPE_QS_DIALOG, DEFAULT_DISPLAY); mWindowManager.addWindowToken(mToken, TYPE_QS_DIALOG, DEFAULT_DISPLAY, null /* options */); mIsTokenGranted = true; } catch (RemoteException e) { } Loading