diff --git a/src/com/android/settings/notification/NotificationBackend.java b/src/com/android/settings/notification/NotificationBackend.java index e448dda20aa..25e37a397f9 100644 --- a/src/com/android/settings/notification/NotificationBackend.java +++ b/src/com/android/settings/notification/NotificationBackend.java @@ -413,15 +413,6 @@ public class NotificationBackend { } } - public int getBlockedAppCount() { - try { - return sINM.getBlockedAppCount(UserHandle.myUserId()); - } catch (Exception e) { - Log.w(TAG, "Error calling NoMan", e); - return 0; - } - } - public boolean shouldHideSilentStatusBarIcons(Context context) { try { return sINM.shouldHideSilentStatusIcons(context.getPackageName()); diff --git a/tests/robotests/src/com/android/settings/notification/ConversationListSummaryPreferenceControllerTest.java b/tests/robotests/src/com/android/settings/notification/ConversationListSummaryPreferenceControllerTest.java index e9b610b7e0a..9cfd54e11ff 100644 --- a/tests/robotests/src/com/android/settings/notification/ConversationListSummaryPreferenceControllerTest.java +++ b/tests/robotests/src/com/android/settings/notification/ConversationListSummaryPreferenceControllerTest.java @@ -18,8 +18,6 @@ package com.android.settings.notification; import static com.google.common.truth.Truth.assertThat; -import static org.mockito.ArgumentMatchers.anyInt; -import static org.mockito.ArgumentMatchers.anyString; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; @@ -27,8 +25,6 @@ import android.content.Context; import android.content.pm.ParceledListSlice; import android.service.notification.ConversationChannelWrapper; -import com.android.settings.testutils.shadow.ShadowNotificationBackend; - import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; @@ -42,7 +38,6 @@ import java.util.ArrayList; import java.util.List; @RunWith(RobolectricTestRunner.class) -@Config(shadows = ShadowNotificationBackend.class) public class ConversationListSummaryPreferenceControllerTest { private ConversationListSummaryPreferenceController mController; diff --git a/tests/robotests/src/com/android/settings/testutils/shadow/ShadowNotificationBackend.java b/tests/robotests/src/com/android/settings/testutils/shadow/ShadowNotificationBackend.java deleted file mode 100644 index 4e6cbde9b37..00000000000 --- a/tests/robotests/src/com/android/settings/testutils/shadow/ShadowNotificationBackend.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2019 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License - */ - -package com.android.settings.testutils.shadow; - -import com.android.settings.notification.NotificationBackend; - -import org.robolectric.annotation.Implementation; -import org.robolectric.annotation.Implements; - -@Implements(NotificationBackend.class) -public class ShadowNotificationBackend { - - private static int sBlockAppCount; - - @Implementation - protected int getBlockedAppCount() { - return sBlockAppCount; - } - - public static void setBlockedAppCount(int blockAppCount) { - sBlockAppCount = blockAppCount; - } -}