Search in sources :

Example 1 with LooperExecutor

use of com.android.launcher3.util.LooperExecutor in project android_packages_apps_Trebuchet by LineageOS.

the class RecentTasksListTest method setup.

@Before
public void setup() {
    LooperExecutor mockMainThreadExecutor = mock(LooperExecutor.class);
    KeyguardManagerCompat mockKeyguardManagerCompat = mock(KeyguardManagerCompat.class);
    mockActivityManagerWrapper = mock(ActivityManagerWrapper.class);
    mRecentTasksList = new RecentTasksList(mockMainThreadExecutor, mockKeyguardManagerCompat, mockActivityManagerWrapper);
}
Also used : ActivityManagerWrapper(com.android.systemui.shared.system.ActivityManagerWrapper) LooperExecutor(com.android.launcher3.util.LooperExecutor) KeyguardManagerCompat(com.android.systemui.shared.system.KeyguardManagerCompat) Before(org.junit.Before)

Example 2 with LooperExecutor

use of com.android.launcher3.util.LooperExecutor in project Neo-Launcher by NeoApplications.

the class AppSearchProvider method onCreate.

public boolean onCreate() {
    mLooper = new LooperExecutor(MODEL_EXECUTOR.getLooper());
    mApp = LauncherAppState.getInstance(getContext());
    return true;
}
Also used : LooperExecutor(com.android.launcher3.util.LooperExecutor)

Example 3 with LooperExecutor

use of com.android.launcher3.util.LooperExecutor in project Neo-Launcher by NeoApplications.

the class RecentTasksListTest method setup.

@Before
public void setup() {
    LooperExecutor mockMainThreadExecutor = mock(LooperExecutor.class);
    KeyguardManagerCompat mockKeyguardManagerCompat = mock(KeyguardManagerCompat.class);
    mockActivityManagerWrapper = mock(ActivityManagerWrapper.class);
    mRecentTasksList = new RecentTasksList(mockMainThreadExecutor, mockKeyguardManagerCompat, mockActivityManagerWrapper);
}
Also used : ActivityManagerWrapper(com.android.systemui.shared.system.ActivityManagerWrapper) LooperExecutor(com.android.launcher3.util.LooperExecutor) KeyguardManagerCompat(com.android.systemui.shared.system.KeyguardManagerCompat) Before(org.junit.Before)

Example 4 with LooperExecutor

use of com.android.launcher3.util.LooperExecutor in project android_packages_apps_Launcher3 by ArrowOS.

the class RecentTasksListTest method setup.

@Before
public void setup() {
    MockitoAnnotations.initMocks(this);
    LooperExecutor mockMainThreadExecutor = mock(LooperExecutor.class);
    KeyguardManagerCompat mockKeyguardManagerCompat = mock(KeyguardManagerCompat.class);
    mRecentTasksList = new RecentTasksList(mockMainThreadExecutor, mockKeyguardManagerCompat, mockSystemUiProxy);
}
Also used : LooperExecutor(com.android.launcher3.util.LooperExecutor) KeyguardManagerCompat(com.android.systemui.shared.system.KeyguardManagerCompat) Before(org.junit.Before)

Example 5 with LooperExecutor

use of com.android.launcher3.util.LooperExecutor in project android_packages_apps_404Launcher by P-404.

the class RecentTasksListTest method setup.

@Before
public void setup() {
    MockitoAnnotations.initMocks(this);
    LooperExecutor mockMainThreadExecutor = mock(LooperExecutor.class);
    KeyguardManagerCompat mockKeyguardManagerCompat = mock(KeyguardManagerCompat.class);
    mRecentTasksList = new RecentTasksList(mockMainThreadExecutor, mockKeyguardManagerCompat, mockSystemUiProxy);
}
Also used : LooperExecutor(com.android.launcher3.util.LooperExecutor) KeyguardManagerCompat(com.android.systemui.shared.system.KeyguardManagerCompat) Before(org.junit.Before)

Aggregations

LooperExecutor (com.android.launcher3.util.LooperExecutor)10 Before (org.junit.Before)9 KeyguardManagerCompat (com.android.systemui.shared.system.KeyguardManagerCompat)7 ActivityManagerWrapper (com.android.systemui.shared.system.ActivityManagerWrapper)3 LauncherModelHelper (com.android.launcher3.util.LauncherModelHelper)2 ShadowLooperExecutor (com.android.launcher3.shadows.ShadowLooperExecutor)1