Search in sources :

Example 6 with RecentsDebugFlags

use of com.android.systemui.recents.RecentsDebugFlags in project android_frameworks_base by AOSPA.

the class TaskStackView method onBusEvent.

public final void onBusEvent(UserInteractionEvent event) {
    // Poke the doze trigger on user interaction
    mUIDozeTrigger.poke();
    RecentsDebugFlags debugFlags = Recents.getDebugFlags();
    if (debugFlags.isFastToggleRecentsEnabled() && mFocusedTask != null) {
        TaskView tv = getChildViewForTask(mFocusedTask);
        if (tv != null) {
            tv.getHeaderView().cancelFocusTimerIndicator();
        }
    }
}
Also used : GridTaskView(com.android.systemui.recents.views.grid.GridTaskView) RecentsDebugFlags(com.android.systemui.recents.RecentsDebugFlags)

Example 7 with RecentsDebugFlags

use of com.android.systemui.recents.RecentsDebugFlags in project android_frameworks_base by AOSPA.

the class TaskStackLayoutAlgorithm method getInitialFocusState.

/**
     * Returns the default focus state.
     */
public int getInitialFocusState() {
    RecentsActivityLaunchState launchState = Recents.getConfiguration().getLaunchState();
    RecentsDebugFlags debugFlags = Recents.getDebugFlags();
    if (debugFlags.isPagingEnabled() || launchState.launchedWithAltTab) {
        return STATE_FOCUSED;
    } else {
        return STATE_UNFOCUSED;
    }
}
Also used : RecentsActivityLaunchState(com.android.systemui.recents.RecentsActivityLaunchState) RecentsDebugFlags(com.android.systemui.recents.RecentsDebugFlags)

Example 8 with RecentsDebugFlags

use of com.android.systemui.recents.RecentsDebugFlags in project android_frameworks_base by DirtyUnicorns.

the class TaskStackLayoutAlgorithm method getInitialFocusState.

/**
     * Returns the default focus state.
     */
public int getInitialFocusState() {
    RecentsActivityLaunchState launchState = Recents.getConfiguration().getLaunchState();
    RecentsDebugFlags debugFlags = Recents.getDebugFlags();
    if (debugFlags.isPagingEnabled() || launchState.launchedWithAltTab) {
        return STATE_FOCUSED;
    } else {
        return STATE_UNFOCUSED;
    }
}
Also used : RecentsActivityLaunchState(com.android.systemui.recents.RecentsActivityLaunchState) RecentsDebugFlags(com.android.systemui.recents.RecentsDebugFlags)

Example 9 with RecentsDebugFlags

use of com.android.systemui.recents.RecentsDebugFlags in project android_frameworks_base by ResurrectionRemix.

the class TaskStackLayoutAlgorithm method getInitialFocusState.

/**
     * Returns the default focus state.
     */
public int getInitialFocusState() {
    RecentsActivityLaunchState launchState = Recents.getConfiguration().getLaunchState();
    RecentsDebugFlags debugFlags = Recents.getDebugFlags();
    if (debugFlags.isPagingEnabled() || launchState.launchedWithAltTab) {
        return STATE_FOCUSED;
    } else {
        return STATE_UNFOCUSED;
    }
}
Also used : RecentsActivityLaunchState(com.android.systemui.recents.RecentsActivityLaunchState) RecentsDebugFlags(com.android.systemui.recents.RecentsDebugFlags)

Example 10 with RecentsDebugFlags

use of com.android.systemui.recents.RecentsDebugFlags in project android_frameworks_base by crdroidandroid.

the class TaskStackView method onBusEvent.

public final void onBusEvent(UserInteractionEvent event) {
    // Poke the doze trigger on user interaction
    mUIDozeTrigger.poke();
    RecentsDebugFlags debugFlags = Recents.getDebugFlags();
    if (debugFlags.isFastToggleRecentsEnabled() && mFocusedTask != null) {
        TaskView tv = getChildViewForTask(mFocusedTask);
        if (tv != null) {
            tv.getHeaderView().cancelFocusTimerIndicator();
        }
    }
}
Also used : GridTaskView(com.android.systemui.recents.views.grid.GridTaskView) RecentsDebugFlags(com.android.systemui.recents.RecentsDebugFlags)

Aggregations

RecentsDebugFlags (com.android.systemui.recents.RecentsDebugFlags)10 RecentsActivityLaunchState (com.android.systemui.recents.RecentsActivityLaunchState)5 GridTaskView (com.android.systemui.recents.views.grid.GridTaskView)4