Revert "Show only listUIChanges instead of all"

Revert submission 10721220-hide

Reason for revert: Caused build breakage - b/151857606
Reverted Changes:
I7c725a1ec:Show only listUIChanges instead of all
Iec8755171:Introduce listUIChanges API for developer UI

Change-Id: I7753051b06faf1f48a818a134d1eda2500f817f8
This commit is contained in:
Anthony Stange
2020-03-18 21:33:10 +00:00
parent 06da8b6ebc
commit 2012e6706a
2 changed files with 2 additions and 2 deletions

View File

@@ -100,7 +100,7 @@ public class PlatformCompatDashboard extends DashboardFragment {
public void onActivityCreated(Bundle savedInstanceState) { public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState); super.onActivityCreated(savedInstanceState);
try { try {
mChanges = getPlatformCompat().listUIChanges(); mChanges = getPlatformCompat().listAllChanges();
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException("Could not list changes!", e); throw new RuntimeException("Could not list changes!", e);
} }

View File

@@ -93,7 +93,7 @@ public class PlatformCompatDashboardTest {
mChanges[2] = new CompatibilityChangeInfo(3L, "Enabled_After_SDK_1_1", 1, false, false, ""); mChanges[2] = new CompatibilityChangeInfo(3L, "Enabled_After_SDK_1_1", 1, false, false, "");
mChanges[3] = new CompatibilityChangeInfo(4L, "Enabled_After_SDK_1_2", 1, false, false, ""); mChanges[3] = new CompatibilityChangeInfo(4L, "Enabled_After_SDK_1_2", 1, false, false, "");
mChanges[4] = new CompatibilityChangeInfo(5L, "Enabled_After_SDK_2", 2, false, false, ""); mChanges[4] = new CompatibilityChangeInfo(5L, "Enabled_After_SDK_2", 2, false, false, "");
when(mPlatformCompat.listUIChanges()).thenReturn(mChanges); when(mPlatformCompat.listAllChanges()).thenReturn(mChanges);
when(mPlatformCompat.getOverrideValidator()).thenReturn(mOverrideValidator); when(mPlatformCompat.getOverrideValidator()).thenReturn(mOverrideValidator);
// By default, allow any change // By default, allow any change
when(mOverrideValidator.getOverrideAllowedState(anyLong(),anyString())) when(mOverrideValidator.getOverrideAllowedState(anyLong(),anyString()))