public class Recents extends SystemUI implements RecentsComponent
Modifier and Type | Field and Description |
---|---|
static int |
BIND_TO_SYSTEM_USER_RETRY_DELAY |
static int |
EVENT_BUS_PRIORITY |
static int |
RECENTS_GROW_TARGET_INVALID |
mComponents, mContext
Constructor and Description |
---|
Recents() |
Modifier and Type | Method and Description |
---|---|
void |
cancelPreloadingRecents() |
boolean |
dockTopTask(int dragMode,
int stackCreateMode,
Rect initialBounds,
int metricsDockAction)
Docks the top-most task and opens recents.
|
static RecentsConfiguration |
getConfiguration() |
static RecentsDebugFlags |
getDebugFlags() |
static SystemServicesProxy |
getSystemServices() |
IBinder |
getSystemUserCallbacks()
Returns the callbacks interface that non-system users can call.
|
static RecentsTaskLoader |
getTaskLoader() |
void |
hideRecents(boolean triggeredFromAltTab,
boolean triggeredFromHomeKey)
Hides the Recents.
|
static void |
logDockAttempt(Context ctx,
ComponentName activity,
int resizeMode) |
void |
onBootCompleted() |
void |
onBusEvent(ConfigurationChangedEvent event) |
void |
onBusEvent(DockedTopTaskEvent event) |
void |
onBusEvent(RecentsActivityStartingEvent event) |
void |
onBusEvent(RecentsDrawnEvent event) |
void |
onBusEvent(RecentsVisibilityChangedEvent event)
Handle Recents activity visibility changed.
|
void |
onBusEvent(ScreenPinningRequestEvent event)
Handle screen pinning request.
|
void |
onBusEvent(ShowUserToastEvent event) |
void |
onConfigurationChanged(Configuration newConfig)
Updates on configuration change.
|
void |
onDraggingInRecents(float distanceFromTop)
Called during a drag-from-navbar-in gesture.
|
void |
onDraggingInRecentsEnded(float velocity)
Called when the gesture to drag in recents ended.
|
void |
preloadRecents()
Preloads info for the Recents activity.
|
void |
showNextAffiliatedTask() |
void |
showPrevAffiliatedTask() |
void |
showRecents(boolean triggeredFromAltTab,
boolean fromHome)
Shows the Recents.
|
void |
start() |
void |
toggleRecents(Display display)
Toggles the Recents activity.
|
dump, getComponent, overrideNotificationAppName, putComponent
public static final int EVENT_BUS_PRIORITY
public static final int BIND_TO_SYSTEM_USER_RETRY_DELAY
public static final int RECENTS_GROW_TARGET_INVALID
public IBinder getSystemUserCallbacks()
public static RecentsTaskLoader getTaskLoader()
public static SystemServicesProxy getSystemServices()
public static RecentsConfiguration getConfiguration()
public static RecentsDebugFlags getDebugFlags()
public void onBootCompleted()
onBootCompleted
in class SystemUI
public void showRecents(boolean triggeredFromAltTab, boolean fromHome)
showRecents
in interface RecentsComponent
public void hideRecents(boolean triggeredFromAltTab, boolean triggeredFromHomeKey)
hideRecents
in interface RecentsComponent
public void toggleRecents(Display display)
toggleRecents
in interface RecentsComponent
public void preloadRecents()
preloadRecents
in interface RecentsComponent
public void cancelPreloadingRecents()
cancelPreloadingRecents
in interface RecentsComponent
public boolean dockTopTask(int dragMode, int stackCreateMode, Rect initialBounds, int metricsDockAction)
RecentsComponent
dockTopTask
in interface RecentsComponent
public static void logDockAttempt(Context ctx, ComponentName activity, int resizeMode)
public void onDraggingInRecents(float distanceFromTop)
RecentsComponent
onDraggingInRecents
in interface RecentsComponent
distanceFromTop
- the distance of the current drag in gesture from the top of the
screenpublic void onDraggingInRecentsEnded(float velocity)
RecentsComponent
onDraggingInRecentsEnded
in interface RecentsComponent
velocity
- the velocity of the finger when releasing it in pixels per secondpublic void showNextAffiliatedTask()
showNextAffiliatedTask
in interface RecentsComponent
public void showPrevAffiliatedTask()
showPrevAffiliatedTask
in interface RecentsComponent
public void onConfigurationChanged(Configuration newConfig)
onConfigurationChanged
in class SystemUI
public final void onBusEvent(RecentsVisibilityChangedEvent event)
public final void onBusEvent(ScreenPinningRequestEvent event)
public final void onBusEvent(RecentsDrawnEvent event)
public final void onBusEvent(DockedTopTaskEvent event)
public final void onBusEvent(RecentsActivityStartingEvent event)
public final void onBusEvent(ConfigurationChangedEvent event)
public final void onBusEvent(ShowUserToastEvent event)