Merge "Make all the SystemUiProxy APIs Oneway." into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a23815bd88
@@ -34,12 +34,12 @@ interface ISystemUiProxy {
|
|||||||
/**
|
/**
|
||||||
* Begins screen pinning on the provided {@param taskId}.
|
* Begins screen pinning on the provided {@param taskId}.
|
||||||
*/
|
*/
|
||||||
void startScreenPinning(int taskId) = 1;
|
oneway void startScreenPinning(int taskId) = 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Notifies SystemUI that Overview is shown.
|
* Notifies SystemUI that Overview is shown.
|
||||||
*/
|
*/
|
||||||
void onOverviewShown(boolean fromHome) = 6;
|
oneway void onOverviewShown(boolean fromHome) = 6;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Proxies motion events from the homescreen UI to the status bar. Only called when
|
* Proxies motion events from the homescreen UI to the status bar. Only called when
|
||||||
@@ -48,57 +48,57 @@ interface ISystemUiProxy {
|
|||||||
*
|
*
|
||||||
* Normal gesture: DOWN, MOVE/POINTER_DOWN/POINTER_UP)*, UP or CANCLE
|
* Normal gesture: DOWN, MOVE/POINTER_DOWN/POINTER_UP)*, UP or CANCLE
|
||||||
*/
|
*/
|
||||||
void onStatusBarMotionEvent(in MotionEvent event) = 9;
|
oneway void onStatusBarMotionEvent(in MotionEvent event) = 9;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Proxies the assistant gesture's progress started from navigation bar.
|
* Proxies the assistant gesture's progress started from navigation bar.
|
||||||
*/
|
*/
|
||||||
void onAssistantProgress(float progress) = 12;
|
oneway void onAssistantProgress(float progress) = 12;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Proxies the assistant gesture fling velocity (in pixels per millisecond) upon completion.
|
* Proxies the assistant gesture fling velocity (in pixels per millisecond) upon completion.
|
||||||
* Velocity is 0 for drag gestures.
|
* Velocity is 0 for drag gestures.
|
||||||
*/
|
*/
|
||||||
void onAssistantGestureCompletion(float velocity) = 18;
|
oneway void onAssistantGestureCompletion(float velocity) = 18;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Start the assistant.
|
* Start the assistant.
|
||||||
*/
|
*/
|
||||||
void startAssistant(in Bundle bundle) = 13;
|
oneway void startAssistant(in Bundle bundle) = 13;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Notifies that the accessibility button in the system's navigation area has been clicked
|
* Notifies that the accessibility button in the system's navigation area has been clicked
|
||||||
*/
|
*/
|
||||||
void notifyAccessibilityButtonClicked(int displayId) = 15;
|
oneway void notifyAccessibilityButtonClicked(int displayId) = 15;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Notifies that the accessibility button in the system's navigation area has been long clicked
|
* Notifies that the accessibility button in the system's navigation area has been long clicked
|
||||||
*/
|
*/
|
||||||
void notifyAccessibilityButtonLongClicked() = 16;
|
oneway void notifyAccessibilityButtonLongClicked() = 16;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ends the system screen pinning.
|
* Ends the system screen pinning.
|
||||||
*/
|
*/
|
||||||
void stopScreenPinning() = 17;
|
oneway void stopScreenPinning() = 17;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Notifies that quickstep will switch to a new task
|
* Notifies that quickstep will switch to a new task
|
||||||
* @param rotation indicates which Surface.Rotation the gesture was started in
|
* @param rotation indicates which Surface.Rotation the gesture was started in
|
||||||
*/
|
*/
|
||||||
void notifyPrioritizedRotation(int rotation) = 25;
|
oneway void notifyPrioritizedRotation(int rotation) = 25;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Notifies to expand notification panel.
|
* Notifies to expand notification panel.
|
||||||
*/
|
*/
|
||||||
void expandNotificationPanel() = 29;
|
oneway void expandNotificationPanel() = 29;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Notifies SystemUI to invoke Back.
|
* Notifies SystemUI to invoke Back.
|
||||||
*/
|
*/
|
||||||
void onBackPressed() = 44;
|
oneway void onBackPressed() = 44;
|
||||||
|
|
||||||
/** Sets home rotation enabled. */
|
/** Sets home rotation enabled. */
|
||||||
void setHomeRotationEnabled(boolean enabled) = 45;
|
oneway void setHomeRotationEnabled(boolean enabled) = 45;
|
||||||
|
|
||||||
/** Notifies when taskbar status updated */
|
/** Notifies when taskbar status updated */
|
||||||
oneway void notifyTaskbarStatus(boolean visible, boolean stashed) = 47;
|
oneway void notifyTaskbarStatus(boolean visible, boolean stashed) = 47;
|
||||||
@@ -113,17 +113,17 @@ interface ISystemUiProxy {
|
|||||||
/**
|
/**
|
||||||
* Notifies SystemUI to invoke IME Switcher.
|
* Notifies SystemUI to invoke IME Switcher.
|
||||||
*/
|
*/
|
||||||
void onImeSwitcherPressed() = 49;
|
oneway void onImeSwitcherPressed() = 49;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Notifies to toggle notification panel.
|
* Notifies to toggle notification panel.
|
||||||
*/
|
*/
|
||||||
void toggleNotificationPanel() = 50;
|
oneway void toggleNotificationPanel() = 50;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handle the screenshot request.
|
* Handle the screenshot request.
|
||||||
*/
|
*/
|
||||||
void takeScreenshot(in ScreenshotRequest request) = 51;
|
oneway void takeScreenshot(in ScreenshotRequest request) = 51;
|
||||||
|
|
||||||
// Next id = 52
|
// Next id = 52
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2021,7 +2021,7 @@ public class LauncherAppsService extends SystemService {
|
|||||||
}
|
}
|
||||||
// Each launcher has a different set of pinned shortcuts, so we need to do a
|
// Each launcher has a different set of pinned shortcuts, so we need to do a
|
||||||
// query in here.
|
// query in here.
|
||||||
// (As of now, only one launcher has the permission at a time, so it's bit
|
// (As of now, only one launcher has the permission at a time, so it's a bit
|
||||||
// moot, but we may change the permission model eventually.)
|
// moot, but we may change the permission model eventually.)
|
||||||
final List<ShortcutInfo> list =
|
final List<ShortcutInfo> list =
|
||||||
mShortcutServiceInternal.getShortcuts(launcherUserId,
|
mShortcutServiceInternal.getShortcuts(launcherUserId,
|
||||||
|
|||||||
Reference in New Issue
Block a user