| /* |
| * Copyright (C) 2017 The Android Open Source Project |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| package com.android.systemui.shared.recents; |
| |
| import android.graphics.Region; |
| import android.os.Bundle; |
| import android.view.MotionEvent; |
| import com.android.systemui.shared.recents.ISystemUiProxy; |
| |
| oneway interface IOverviewProxy { |
| |
| void onActiveNavBarRegionChanges(in Region activeRegion) = 11; |
| |
| void onInitialize(in Bundle params) = 12; |
| |
| |
| /** |
| * @deprecated |
| */ |
| void onBind(in ISystemUiProxy sysUiProxy) = 0; |
| |
| /** |
| * Called once immediately prior to the first onMotionEvent() call, providing a hint to the |
| * target the initial source of the subsequent motion events. |
| * |
| * @param downHitTarget is one of the {@link NavigationBarCompat.HitTarget}s |
| * |
| * @deprecated |
| */ |
| void onPreMotionEvent(int downHitTarget) = 1; |
| |
| /** |
| * Proxies motion events from the nav bar in SystemUI to the OverviewProxyService. The sender |
| * guarantees the following order of events: |
| * |
| * Normal gesture: DOWN, (MOVE/POINTER_DOWN/POINTER_UP)*, UP |
| * Quick scrub: DOWN, (MOVE/POINTER_DOWN/POINTER_UP)*, SCRUB_START, SCRUB_PROGRESS*, SCRUB_END |
| * |
| * Once quick scrub is sent, then no further motion events will be provided. |
| * |
| * @deprecated |
| */ |
| void onMotionEvent(in MotionEvent event) = 2; |
| |
| /** |
| * Sent when the user starts to actively scrub the nav bar to switch tasks. Once this event is |
| * sent the caller will stop sending any motion events and will no longer preemptively cancel |
| * any recents animations started as a part of the motion event handling. |
| * |
| * @deprecated |
| */ |
| void onQuickScrubStart() = 3; |
| |
| /** |
| * Sent when the user stops actively scrubbing the nav bar to switch tasks. |
| * |
| * @deprecated |
| */ |
| void onQuickScrubEnd() = 4; |
| |
| /** |
| * Sent for each movement over the nav bar while the user is scrubbing it to switch tasks. |
| * |
| * @deprecated |
| */ |
| void onQuickScrubProgress(float progress) = 5; |
| |
| /** |
| * Sent when overview button is pressed to toggle show/hide of overview. |
| */ |
| void onOverviewToggle() = 6; |
| |
| /** |
| * Sent when overview is to be shown. |
| */ |
| void onOverviewShown(boolean triggeredFromAltTab) = 7; |
| |
| /** |
| * Sent when overview is to be hidden. |
| */ |
| void onOverviewHidden(boolean triggeredFromAltTab, boolean triggeredFromHomeKey) = 8; |
| |
| /** |
| * Sent when a user swipes up over the navigation bar to launch overview. Swipe up is determined |
| * by passing the touch slop in the direction towards launcher from navigation bar. During and |
| * after this event is sent the caller will continue to send motion events. The motion |
| * {@param event} passed after the touch slop was exceeded will also be passed after by |
| * {@link onMotionEvent}. Since motion events will be sent, motion up or cancel can still be |
| * sent to cancel overview regardless the current state of launcher (eg. if overview is already |
| * visible, this event will still be sent if user swipes up). When this signal is sent, |
| * navigation bar will not handle any gestures such as quick scrub and the home button will |
| * cancel (long) press. |
| * |
| * @deprecated |
| */ |
| void onQuickStep(in MotionEvent event) = 9; |
| |
| /** |
| * Sent when there was an action on one of the onboarding tips view. |
| */ |
| void onTip(int actionType, int viewType) = 10; |
| } |