1 /*
2  * Copyright (C) 2019 The Android Open Source Project
3  *
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
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
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
14  * limitations under the License.
15  */
16 
17 package android.view.accessibility;
18 
19 import android.graphics.Rect;
20 
21 /**
22  * interface to notify the change of the window magnifier bounds and request to change
23  * the magnification mode.
24  *
25  * @hide
26  */
27  oneway interface IWindowMagnificationConnectionCallback {
28 
29     /**
30      * Called when the bounds of the window magnifier is changed.
31      *
32      * @param displayId The logical display id.
33      * @param bounds The window magnifier bounds in screen coordinates.
34      */
onWindowMagnifierBoundsChanged(int display, in Rect bounds)35     void onWindowMagnifierBoundsChanged(int display, in Rect bounds);
36     /**
37      * Changes the magnification mode on specified display. It is invoked by System UI when the
38      *  switch button is toggled.
39      *
40      * @param displayId The logical display id.
41      * @param magnificationMode new magnification mode.
42      */
onChangeMagnificationMode(int display, int magnificationMode)43     void onChangeMagnificationMode(int display, int magnificationMode);
44 }
45