Loading core/java/android/view/accessibility/IWindowMagnificationConnectionCallback.aidl +9 −0 Original line number Diff line number Diff line Loading @@ -67,4 +67,13 @@ import android.graphics.Rect; */ void onAccessibilityActionPerformed(int displayId); /** * Called when the user is performing dragging gesture. It is started after the offset * between the down location and the move event location exceed * {@link ViewConfiguration#getScaledTouchSlop()}. * * @param displayId The logical display id. */ void onDrag(int displayId); } packages/SystemUI/src/com/android/systemui/accessibility/WindowMagnification.java +7 −0 Original line number Diff line number Diff line Loading @@ -224,6 +224,13 @@ public class WindowMagnification extends CoreStartable implements WindowMagnifie } } @Override public void onDrag(int displayId) { if (mWindowMagnificationConnectionImpl != null) { mWindowMagnificationConnectionImpl.onDrag(displayId); } } @Override public void requestWindowMagnificationConnection(boolean connect) { if (connect) { Loading packages/SystemUI/src/com/android/systemui/accessibility/WindowMagnificationConnectionImpl.java +10 −0 Original line number Diff line number Diff line Loading @@ -142,4 +142,14 @@ class WindowMagnificationConnectionImpl extends IWindowMagnificationConnection.S } } } void onDrag(int displayId) { if (mConnectionCallback != null) { try { mConnectionCallback.onDrag(displayId); } catch (RemoteException e) { Log.e(TAG, "Failed to inform taking control by a user", e); } } } } packages/SystemUI/src/com/android/systemui/accessibility/WindowMagnificationController.java +1 −0 Original line number Diff line number Diff line Loading @@ -964,6 +964,7 @@ class WindowMagnificationController implements View.OnTouchListener, SurfaceHold @Override public boolean onDrag(float offsetX, float offsetY) { moveWindowMagnifier(offsetX, offsetY); mWindowMagnifierCallback.onDrag(mDisplayId); return true; } Loading packages/SystemUI/src/com/android/systemui/accessibility/WindowMagnifierCallback.java +10 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package com.android.systemui.accessibility; import android.graphics.Rect; import android.view.ViewConfiguration; /** * A callback to inform {@link com.android.server.accessibility.AccessibilityManagerService} about Loading Loading @@ -53,4 +54,13 @@ interface WindowMagnifierCallback { * @param displayId The logical display id. */ void onAccessibilityActionPerformed(int displayId); /** * Called when the user is performing dragging gesture. It is started after the offset * between the down location and the move event location exceed * {@link ViewConfiguration#getScaledTouchSlop()}. * * @param displayId The logical display id. */ void onDrag(int displayId); } Loading
core/java/android/view/accessibility/IWindowMagnificationConnectionCallback.aidl +9 −0 Original line number Diff line number Diff line Loading @@ -67,4 +67,13 @@ import android.graphics.Rect; */ void onAccessibilityActionPerformed(int displayId); /** * Called when the user is performing dragging gesture. It is started after the offset * between the down location and the move event location exceed * {@link ViewConfiguration#getScaledTouchSlop()}. * * @param displayId The logical display id. */ void onDrag(int displayId); }
packages/SystemUI/src/com/android/systemui/accessibility/WindowMagnification.java +7 −0 Original line number Diff line number Diff line Loading @@ -224,6 +224,13 @@ public class WindowMagnification extends CoreStartable implements WindowMagnifie } } @Override public void onDrag(int displayId) { if (mWindowMagnificationConnectionImpl != null) { mWindowMagnificationConnectionImpl.onDrag(displayId); } } @Override public void requestWindowMagnificationConnection(boolean connect) { if (connect) { Loading
packages/SystemUI/src/com/android/systemui/accessibility/WindowMagnificationConnectionImpl.java +10 −0 Original line number Diff line number Diff line Loading @@ -142,4 +142,14 @@ class WindowMagnificationConnectionImpl extends IWindowMagnificationConnection.S } } } void onDrag(int displayId) { if (mConnectionCallback != null) { try { mConnectionCallback.onDrag(displayId); } catch (RemoteException e) { Log.e(TAG, "Failed to inform taking control by a user", e); } } } }
packages/SystemUI/src/com/android/systemui/accessibility/WindowMagnificationController.java +1 −0 Original line number Diff line number Diff line Loading @@ -964,6 +964,7 @@ class WindowMagnificationController implements View.OnTouchListener, SurfaceHold @Override public boolean onDrag(float offsetX, float offsetY) { moveWindowMagnifier(offsetX, offsetY); mWindowMagnifierCallback.onDrag(mDisplayId); return true; } Loading
packages/SystemUI/src/com/android/systemui/accessibility/WindowMagnifierCallback.java +10 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package com.android.systemui.accessibility; import android.graphics.Rect; import android.view.ViewConfiguration; /** * A callback to inform {@link com.android.server.accessibility.AccessibilityManagerService} about Loading Loading @@ -53,4 +54,13 @@ interface WindowMagnifierCallback { * @param displayId The logical display id. */ void onAccessibilityActionPerformed(int displayId); /** * Called when the user is performing dragging gesture. It is started after the offset * between the down location and the move event location exceed * {@link ViewConfiguration#getScaledTouchSlop()}. * * @param displayId The logical display id. */ void onDrag(int displayId); }