Introduce VerifyAppsOverUsbPreferenceControllerV2

- Create new VerifyAppsOverUsbPreferenceControllerV2
 - Deprecate VerifyAppsOverUsbPreferenceController
 - Create controller inside the DashboardFragment
 - Copy logic from VerifyAppsOverUsbPreferenceController with
 slight modifications for dashboard fragment compatibility

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I37c01cd262c9e12307ec9cbe6effc5470496550f
This commit is contained in:
jeffreyhuang
2017-09-29 17:28:33 -07:00
parent 5ae503b383
commit 7b216bae94
5 changed files with 391 additions and 1 deletions

View File

@@ -47,6 +47,10 @@ import org.robolectric.util.ReflectionHelpers;
import java.util.Collections;
import java.util.List;
/**
* deprecated in favor of {@link VerifyAppsOverUsbPreferenceControllerV2}
*/
@Deprecated
@RunWith(SettingsRobolectricTestRunner.class)
@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION)
public class VerifyAppsOverUsbPreferenceControllerTest {