1 package com.android.customization.testing; 2 3 import androidx.fragment.app.FragmentActivity; 4 5 import com.android.customization.model.theme.OverlayManagerCompat; 6 import com.android.customization.model.theme.ThemeBundleProvider; 7 import com.android.customization.model.theme.ThemeManager; 8 import com.android.customization.module.ThemesUserEventLogger; 9 10 /** 11 * Test implementation of {@link ThemeManager}. 12 */ 13 public class TestThemeManager extends ThemeManager { 14 15 private static boolean sIsAvailable; 16 TestThemeManager( ThemeBundleProvider provider, FragmentActivity activity, OverlayManagerCompat overlayManagerCompat, ThemesUserEventLogger logger)17 public TestThemeManager( 18 ThemeBundleProvider provider, 19 FragmentActivity activity, 20 OverlayManagerCompat overlayManagerCompat, 21 ThemesUserEventLogger logger) { 22 super(provider, activity, overlayManagerCompat, logger); 23 } 24 25 @Override isAvailable()26 public boolean isAvailable() { 27 return sIsAvailable; 28 } 29 setAvailable(boolean available)30 public static void setAvailable(boolean available) { 31 sIsAvailable = available; 32 } 33 } 34