Search in sources :

Example 1 with TaskbarManager

use of com.android.launcher3.taskbar.TaskbarManager in project android_packages_apps_Launcher3 by crdroidandroid.

the class TouchInteractionService method onCreate.

@Override
public void onCreate() {
    super.onCreate();
    // Initialize anything here that is needed in direct boot mode.
    // Everything else should be initialized in onUserUnlocked() below.
    mMainChoreographer = Choreographer.getInstance();
    mAM = ActivityManagerWrapper.getInstance();
    mDeviceState = new RecentsAnimationDeviceState(this, true);
    mDisplayManager = getSystemService(DisplayManager.class);
    mTaskbarManager = new TaskbarManager(this);
    mRotationTouchHelper = mDeviceState.getRotationTouchHelper();
    // Call runOnUserUnlocked() before any other callbacks to ensure everything is initialized.
    mDeviceState.runOnUserUnlocked(this::onUserUnlocked);
    mDeviceState.runOnUserUnlocked(mTaskbarManager::onUserUnlocked);
    mDeviceState.addNavigationModeChangedCallback(this::onNavigationModeChanged);
    mDeviceState.addOneHandedModeChangedCallback(this::onOneHandedModeOverlayChanged);
    ProtoTracer.INSTANCE.get(this).add(this);
    sConnected = true;
}
Also used : DisplayManager(android.hardware.display.DisplayManager) TaskbarManager(com.android.launcher3.taskbar.TaskbarManager)

Example 2 with TaskbarManager

use of com.android.launcher3.taskbar.TaskbarManager in project android_packages_apps_Launcher3 by ArrowOS.

the class TouchInteractionService method onCreate.

@Override
public void onCreate() {
    super.onCreate();
    // Initialize anything here that is needed in direct boot mode.
    // Everything else should be initialized in onUserUnlocked() below.
    mMainChoreographer = Choreographer.getInstance();
    mAM = ActivityManagerWrapper.getInstance();
    mDeviceState = new RecentsAnimationDeviceState(this, true);
    mDisplayManager = getSystemService(DisplayManager.class);
    mTaskbarManager = new TaskbarManager(this);
    mRotationTouchHelper = mDeviceState.getRotationTouchHelper();
    // Call runOnUserUnlocked() before any other callbacks to ensure everything is initialized.
    mDeviceState.runOnUserUnlocked(this::onUserUnlocked);
    mDeviceState.runOnUserUnlocked(mTaskbarManager::onUserUnlocked);
    mDeviceState.addNavigationModeChangedCallback(this::onNavigationModeChanged);
    mDeviceState.addOneHandedModeChangedCallback(this::onOneHandedModeOverlayChanged);
    ProtoTracer.INSTANCE.get(this).add(this);
    LauncherSplitScreenListener.INSTANCE.get(this).init();
    sConnected = true;
}
Also used : DisplayManager(android.hardware.display.DisplayManager) TaskbarManager(com.android.launcher3.taskbar.TaskbarManager)

Example 3 with TaskbarManager

use of com.android.launcher3.taskbar.TaskbarManager in project android_packages_apps_404Launcher by P-404.

the class TouchInteractionService method onCreate.

@Override
public void onCreate() {
    super.onCreate();
    // Initialize anything here that is needed in direct boot mode.
    // Everything else should be initialized in onUserUnlocked() below.
    mMainChoreographer = Choreographer.getInstance();
    mAM = ActivityManagerWrapper.getInstance();
    mDeviceState = new RecentsAnimationDeviceState(this, true);
    mDisplayManager = getSystemService(DisplayManager.class);
    mTaskbarManager = new TaskbarManager(this);
    mRotationTouchHelper = mDeviceState.getRotationTouchHelper();
    // Call runOnUserUnlocked() before any other callbacks to ensure everything is initialized.
    mDeviceState.runOnUserUnlocked(this::onUserUnlocked);
    mDeviceState.runOnUserUnlocked(mTaskbarManager::onUserUnlocked);
    mDeviceState.addNavigationModeChangedCallback(this::onNavigationModeChanged);
    mDeviceState.addOneHandedModeChangedCallback(this::onOneHandedModeOverlayChanged);
    ProtoTracer.INSTANCE.get(this).add(this);
    LauncherSplitScreenListener.INSTANCE.get(this).init();
    sConnected = true;
}
Also used : DisplayManager(android.hardware.display.DisplayManager) TaskbarManager(com.android.launcher3.taskbar.TaskbarManager)

Example 4 with TaskbarManager

use of com.android.launcher3.taskbar.TaskbarManager in project android_packages_apps_Launcher3 by ProtonAOSP.

the class TouchInteractionService method onCreate.

@Override
public void onCreate() {
    super.onCreate();
    // Initialize anything here that is needed in direct boot mode.
    // Everything else should be initialized in onUserUnlocked() below.
    mMainChoreographer = Choreographer.getInstance();
    mAM = ActivityManagerWrapper.getInstance();
    mDeviceState = new RecentsAnimationDeviceState(this, true);
    mDisplayManager = getSystemService(DisplayManager.class);
    mTaskbarManager = new TaskbarManager(this);
    mRotationTouchHelper = mDeviceState.getRotationTouchHelper();
    // Call runOnUserUnlocked() before any other callbacks to ensure everything is initialized.
    mDeviceState.runOnUserUnlocked(this::onUserUnlocked);
    mDeviceState.runOnUserUnlocked(mTaskbarManager::onUserUnlocked);
    mDeviceState.addNavigationModeChangedCallback(this::onNavigationModeChanged);
    mDeviceState.addOneHandedModeChangedCallback(this::onOneHandedModeOverlayChanged);
    ProtoTracer.INSTANCE.get(this).add(this);
    LauncherSplitScreenListener.INSTANCE.get(this).init();
    sConnected = true;
}
Also used : DisplayManager(android.hardware.display.DisplayManager) TaskbarManager(com.android.launcher3.taskbar.TaskbarManager)

Example 5 with TaskbarManager

use of com.android.launcher3.taskbar.TaskbarManager in project android_packages_apps_Launcher3 by AOSPA.

the class TouchInteractionService method onCreate.

@Override
public void onCreate() {
    super.onCreate();
    // Initialize anything here that is needed in direct boot mode.
    // Everything else should be initialized in onUserUnlocked() below.
    mMainChoreographer = Choreographer.getInstance();
    mAM = ActivityManagerWrapper.getInstance();
    mDeviceState = new RecentsAnimationDeviceState(this, true);
    mDisplayManager = getSystemService(DisplayManager.class);
    mTaskbarManager = new TaskbarManager(this);
    mRotationTouchHelper = mDeviceState.getRotationTouchHelper();
    // Call runOnUserUnlocked() before any other callbacks to ensure everything is initialized.
    mDeviceState.runOnUserUnlocked(this::onUserUnlocked);
    mDeviceState.runOnUserUnlocked(mTaskbarManager::onUserUnlocked);
    mDeviceState.addNavigationModeChangedCallback(this::onNavigationModeChanged);
    mDeviceState.addOneHandedModeChangedCallback(this::onOneHandedModeOverlayChanged);
    ProtoTracer.INSTANCE.get(this).add(this);
    LauncherSplitScreenListener.INSTANCE.get(this).init();
    sConnected = true;
}
Also used : DisplayManager(android.hardware.display.DisplayManager) TaskbarManager(com.android.launcher3.taskbar.TaskbarManager)

Aggregations

DisplayManager (android.hardware.display.DisplayManager)5 TaskbarManager (com.android.launcher3.taskbar.TaskbarManager)5