Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d0e3030b authored by maxwelb's avatar maxwelb Committed by Copybara-Service
Browse files

Delete unused check__SpamStatus methods

Test: Build
PiperOrigin-RevId: 196574842
Change-Id: Id9a63d975e114ada88de8e4a482409b5b618f55e
parent 19ce6b15
Loading
Loading
Loading
Loading
+0 −32
Original line number Diff line number Diff line
@@ -18,7 +18,6 @@ package com.android.dialer.spam;

import android.preference.Preference;
import android.preference.Preference.OnPreferenceChangeListener;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import com.android.dialer.DialerPhoneNumber;
import com.android.dialer.logging.ContactLookupResult;
@@ -74,30 +73,6 @@ public interface Spam {
   */
  ListenableFuture<Void> updateSpamListDownload(boolean isEnabledByUser);

  /**
   * @param number The number to check if the number is in the user's white list (non spam list)
   * @param countryIso The country ISO of the call.
   * @param listener The callback to be invoked after {@code Info} is fetched.
   */
  void checkUserMarkedNonSpamStatus(
      String number, @Nullable String countryIso, @NonNull Listener listener);

  /**
   * @param number The number to check if it is in user's spam list
   * @param countryIso The country ISO of the call.
   * @param listener The callback to be invoked after {@code Info} is fetched.
   */
  void checkUserMarkedSpamStatus(
      String number, @Nullable String countryIso, @NonNull Listener listener);

  /**
   * @param number The number to check if it is in the global spam list
   * @param countryIso The country ISO of the call.
   * @param listener The callback to be invoked after {@code Info} is fetched.
   */
  void checkGlobalSpamListStatus(
      String number, @Nullable String countryIso, @NonNull Listener listener);

  /**
   * Synchronously checks if the given number is suspected of being a spamer.
   *
@@ -191,11 +166,4 @@ public interface Spam {
      int callType,
      ReportingLocation.Type from,
      ContactSource.Type contactSourceType);

  /** Callback to be invoked when data is fetched. */
  interface Listener {

    /** Called when data is fetched. */
    void onComplete(boolean isSpam);
  }
}
+0 −15
Original line number Diff line number Diff line
@@ -72,21 +72,6 @@ public class SpamStub implements Spam {
    return Futures.immediateFuture(null);
  }

  @Override
  public void checkUserMarkedNonSpamStatus(String number, String countryIso, Listener listener) {
    listener.onComplete(false);
  }

  @Override
  public void checkUserMarkedSpamStatus(String number, String countryIso, Listener listener) {
    listener.onComplete(false);
  }

  @Override
  public void checkGlobalSpamListStatus(String number, String countryIso, Listener listener) {
    listener.onComplete(false);
  }

  @Override
  public boolean checkSpamStatusSynchronous(String number, String countryIso) {
    return false;