[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

@@ -16,23 +16,17 @@
package com.android.settings.network.ims;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Future;
import java.util.concurrent.RejectedExecutionException;
/**
* An interface for querying IMS, and return {@code Future<Boolean>}
* An interface for direct querying IMS, and return {@link boolean}
*/
public interface ImsQuery {
/**
* Interface for performing IMS status/configuration query through ExecutorService
* Interface for performing IMS status/configuration query through public APIs
*
* @param executors {@code ExecutorService} which allows to submit {@code ImsQuery} when
* required
* @return result of query in format of {@code Future<Boolean>}
* @return result of query in boolean
*/
Future<Boolean> query(ExecutorService executors) throws RejectedExecutionException;
boolean query();
}