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

@@ -28,7 +28,10 @@ import java.util.List;
/**
* Represents the data class needed to create a Settings Panel. See {@link PanelFragment}.
*
* @deprecated this is no longer used after V and will be removed.
*/
@Deprecated(forRemoval = true)
public interface PanelContent extends Instrumentable {
int VIEW_TYPE_SLIDER = 1;

View File

@@ -18,7 +18,10 @@ package com.android.settings.panel;
/**
* PanelContentCallback provides a callback interface for {@link PanelFragment} to receive
* events from {@link PanelContent}.
*
* @deprecated this is no longer used after V and will be removed.
*/
@Deprecated(forRemoval = true)
public interface PanelContentCallback {
/**

View File

@@ -19,6 +19,7 @@ package com.android.settings.panel;
import android.content.Context;
import android.os.Bundle;
@Deprecated(forRemoval = true)
public interface PanelFeatureProvider {
/**

View File

@@ -24,6 +24,7 @@ import android.util.FeatureFlagUtils;
import com.android.settings.Utils;
@Deprecated(forRemoval = true)
public class PanelFeatureProviderImpl implements PanelFeatureProvider {
@Override

View File

@@ -66,6 +66,7 @@ import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
@Deprecated(forRemoval = true)
public class PanelFragment extends Fragment {
private static final String TAG = "PanelFragment";
@@ -519,6 +520,7 @@ public class PanelFragment extends Fragment {
return mPanel.getViewType();
}
@Deprecated(forRemoval = true)
class LocalPanelCallback implements PanelContentCallback {
@Override

View File

@@ -21,7 +21,10 @@ package com.android.settings.panel;
* <p>
* Constants should only be removed if underlying panel, or use case is removed.
* </p>
*
* @deprecated this is no longer used after V and will be removed.
*/
@Deprecated(forRemoval = true)
public class PanelLoggingContract {
/**

View File

@@ -48,7 +48,10 @@ import java.util.Map;
/**
* RecyclerView adapter for Slices in Settings Panels.
*
* @deprecated this is no longer used after V and will be removed.
*/
@Deprecated(forRemoval = true)
public class PanelSlicesAdapter
extends RecyclerView.Adapter<PanelSlicesAdapter.SliceRowViewHolder> {
@@ -112,7 +115,10 @@ public class PanelSlicesAdapter
/**
* ViewHolder for binding Slices to SliceViews.
*
* @deprecated this is no longer used after V and will be removed.
*/
@Deprecated(forRemoval = true)
public class SliceRowViewHolder extends RecyclerView.ViewHolder
implements DividerItemDecoration.DividedViewHolder {

View File

@@ -36,7 +36,10 @@ import java.util.concurrent.CountDownLatch;
* {@link Uri}. Then check if all of the Slices have loaded with
* {@link #isPanelReadyToLoad()}, which will return {@code true} the first time after all
* Slices have loaded.
*
* @deprecated this is no longer used after V and will be removed.
*/
@Deprecated(forRemoval = true)
public class PanelSlicesLoaderCountdownLatch {
private final Set<Uri> mLoadedSlices;
private final CountDownLatch mCountDownLatch;

View File

@@ -42,7 +42,10 @@ import com.android.settingslib.core.lifecycle.HideNonSystemOverlayMixin;
/**
* Dialog Activity to host Settings Slices.
*
* @deprecated this is no longer used after V and will be removed.
*/
@Deprecated(forRemoval = true)
public class SettingsPanelActivity extends FragmentActivity {
private static final String TAG = "SettingsPanelActivity";