[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:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user