[Settings] Replace ImsDirectQuery

This is a code refactor to replace
1. Legacy ImsQuery into ImsExecutorQuery
2. ImsDirectQuery into ImsQuery
3. SystemTty into Tty

Bug: 140542283
Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=Enhanced4gBasePreferenceControllerTest
Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=Enhanced4gLteSliceHelperTest
Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=VideoCallingPreferenceControllerTest
Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=WifiCallingPreferenceControllerTest
Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=WifiCallingSettingsForSubTest
Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=WifiCallingSliceHelperTest
Change-Id: I239021c60fff47de307ac7e21641bee56e205861
This commit is contained in:
Bonian Chen
2020-01-28 10:54:44 +08:00
parent 613371047b
commit c820dc191c
11 changed files with 53 additions and 178 deletions

View File

@@ -20,9 +20,9 @@ import android.telephony.ims.ImsMmTelManager;
/**
* An {@code ImsQuery} for accessing IMS tty on VoLte stat
* An {@link ImsQuery} for accessing IMS tty on VoLte stat
*/
public class ImsQueryTtyOnVolteStat extends ImsDirectQueryImpl {
public class ImsQueryTtyOnVolteStat implements ImsQuery {
/**
* Constructor
@@ -35,11 +35,11 @@ public class ImsQueryTtyOnVolteStat extends ImsDirectQueryImpl {
private volatile int mSubId;
/**
* Query running within a {@code Callable}
* Implementation of interface {@link ImsQuery#query()}
*
* @return result of query
*/
public Boolean call() {
public boolean query() {
final ImsMmTelManager imsMmTelManager = ImsMmTelManager.createForSubscriptionId(mSubId);
return imsMmTelManager.isTtyOverVolteEnabled();
}