Remove unnecessary methods from SupportFeatureProvider.
Bug: 112587239 Test: make RunSettingsRoboTests Change-Id: I7256fdbab1ae629b39cdd07da2fe813bd0fa455f
This commit is contained in:
@@ -16,55 +16,17 @@
|
||||
|
||||
package com.android.settings.overlay;
|
||||
|
||||
import android.accounts.Account;
|
||||
import android.annotation.IntDef;
|
||||
import android.annotation.NonNull;
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
|
||||
import com.android.settings.support.SupportPhone;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
|
||||
/**
|
||||
* Feature provider for support tab.
|
||||
*/
|
||||
public interface SupportFeatureProvider {
|
||||
|
||||
@IntDef({SupportType.EMAIL, SupportType.PHONE, SupportType.CHAT})
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@interface SupportType {
|
||||
int EMAIL = 1;
|
||||
int PHONE = 2;
|
||||
int CHAT = 3;
|
||||
}
|
||||
|
||||
/**
|
||||
* Refreshes all operation rules.
|
||||
*/
|
||||
void refreshOperationRules();
|
||||
|
||||
/**
|
||||
* Returns the current country code if it has a operation config, otherwise returns null.
|
||||
*/
|
||||
String getCurrentCountryCodeIfHasConfig(@SupportType int type);
|
||||
|
||||
/**
|
||||
* Returns a support phone for specified country.
|
||||
*/
|
||||
SupportPhone getSupportPhones(String countryCode, boolean isTollfree);
|
||||
|
||||
/**
|
||||
* Returns array of {@link Account} that's eligible for support options.
|
||||
*/
|
||||
@NonNull
|
||||
Account[] getSupportEligibleAccounts(Context context);
|
||||
|
||||
/**
|
||||
* Starts support v2, invokes the support home page. Will no-op if support v2 is not enabled.
|
||||
* Starts support, invokes the support home page.
|
||||
*
|
||||
* @param activity Calling activity.
|
||||
*/
|
||||
void startSupportV2(Activity activity);
|
||||
void startSupport(Activity activity);
|
||||
}
|
||||
|
Reference in New Issue
Block a user