Add feature provider for dashboard.

The feature provider contains API that controls whether a new
information architecture should be used. By default it's false.

Bug: 31768091
Test: make RunSettingsRoboTests
Change-Id: I5b177be418def50d877f53dc799e42d06eba95ec
This commit is contained in:
Fan Zhang
2016-09-27 10:24:52 -07:00
parent 0ed6ef999f
commit 488033e54d
4 changed files with 71 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ import android.util.Log;
import com.android.settings.R;
import com.android.settings.core.instrumentation.MetricsFeatureProvider;
import com.android.settings.dashboard.DashboardFeatureProvider;
import com.android.settings.fuelgauge.PowerUsageFeatureProvider;
/**
@@ -67,6 +68,8 @@ public abstract class FeatureFactory {
public abstract PowerUsageFeatureProvider getPowerUsageFeatureProvider();
public abstract DashboardFeatureProvider getDashboardFeatureProvider();
public static final class FactoryNotFoundException extends RuntimeException {
public FactoryNotFoundException(Throwable throwable) {
super("Unable to create factory. Did you misconfigure Proguard?", throwable);