Deprecate Settings panels and its infrastructure

Bug: 328525899
Test: robotest
Change-Id: I30bc423e31e9202e70c509459f4397c296c8423f
This commit is contained in:
Mill Chen
2024-05-06 22:44:42 +00:00
parent 1acb816217
commit f6895743cf
15 changed files with 33 additions and 0 deletions

View File

@@ -29,7 +29,10 @@ import java.util.List;
/**
* Fake PanelContent for testing.
*
* @deprecated this is no longer used after V and will be removed.
*/
@Deprecated(forRemoval = true)
public class FakePanelContent implements PanelContent {
public static final String FAKE_ACTION = "fake_action";

View File

@@ -19,6 +19,7 @@ package com.android.settings.panel;
import android.content.ComponentName;
import android.content.Intent;
@Deprecated(forRemoval = true)
public class FakeSettingsPanelActivity extends SettingsPanelActivity {
@Override
public ComponentName getCallingActivity() {

View File

@@ -54,6 +54,7 @@ import org.robolectric.annotation.Config;
import java.util.Objects;
@Deprecated(forRemoval = true)
@Ignore("b/313576125")
@RunWith(RobolectricTestRunner.class)
@Config(shadows = {

View File

@@ -67,6 +67,7 @@ import org.robolectric.annotation.Implements;
import java.util.LinkedHashMap;
import java.util.Map;
@Deprecated(forRemoval = true)
@RunWith(RobolectricTestRunner.class)
@Config(shadows = PanelSlicesAdapterTest.ShadowLayoutInflater.class)
public class PanelSlicesAdapterTest {

View File

@@ -59,6 +59,7 @@ import org.robolectric.android.controller.ActivityController;
import org.robolectric.annotation.Config;
import org.robolectric.util.ReflectionHelpers;
@Deprecated(forRemoval = true)
@RunWith(RobolectricTestRunner.class)
@Config(shadows = {
com.android.settings.testutils.shadow.ShadowFragment.class,

View File

@@ -29,6 +29,7 @@ import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
@Deprecated(forRemoval = true)
@RunWith(AndroidJUnit4.class)
public class PanelSlicesLoaderCountdownLatchTest {