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