Merge "Run CtsTelecomTestCases in presubmit"
This commit is contained in:
@@ -65,6 +65,7 @@ public final class Telecom extends BaseCommand {
|
|||||||
private static final String COMMAND_SET_DEFAULT_DIALER = "set-default-dialer";
|
private static final String COMMAND_SET_DEFAULT_DIALER = "set-default-dialer";
|
||||||
private static final String COMMAND_GET_DEFAULT_DIALER = "get-default-dialer";
|
private static final String COMMAND_GET_DEFAULT_DIALER = "get-default-dialer";
|
||||||
private static final String COMMAND_STOP_BLOCK_SUPPRESSION = "stop-block-suppression";
|
private static final String COMMAND_STOP_BLOCK_SUPPRESSION = "stop-block-suppression";
|
||||||
|
private static final String COMMAND_CLEANUP_STUCK_CALLS = "cleanup-stuck-calls";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Change the system dialer package name if a package name was specified,
|
* Change the system dialer package name if a package name was specified,
|
||||||
@@ -115,6 +116,8 @@ public final class Telecom extends BaseCommand {
|
|||||||
+ "usage: telecom get-max-phones\n"
|
+ "usage: telecom get-max-phones\n"
|
||||||
+ "usage: telecom stop-block-suppression: Stop suppressing the blocked number"
|
+ "usage: telecom stop-block-suppression: Stop suppressing the blocked number"
|
||||||
+ " provider after a call to emergency services.\n"
|
+ " provider after a call to emergency services.\n"
|
||||||
|
+ "usage: telecom cleanup-stuck-calls: Clear any disconnected calls that have"
|
||||||
|
+ " gotten wedged in Telecom.\n"
|
||||||
+ "usage: telecom set-emer-phone-account-filter <PACKAGE>\n"
|
+ "usage: telecom set-emer-phone-account-filter <PACKAGE>\n"
|
||||||
+ "\n"
|
+ "\n"
|
||||||
+ "telecom set-phone-account-enabled: Enables the given phone account, if it has"
|
+ "telecom set-phone-account-enabled: Enables the given phone account, if it has"
|
||||||
@@ -210,6 +213,9 @@ public final class Telecom extends BaseCommand {
|
|||||||
case COMMAND_STOP_BLOCK_SUPPRESSION:
|
case COMMAND_STOP_BLOCK_SUPPRESSION:
|
||||||
runStopBlockSuppression();
|
runStopBlockSuppression();
|
||||||
break;
|
break;
|
||||||
|
case COMMAND_CLEANUP_STUCK_CALLS:
|
||||||
|
runCleanupStuckCalls();
|
||||||
|
break;
|
||||||
case COMMAND_SET_DEFAULT_DIALER:
|
case COMMAND_SET_DEFAULT_DIALER:
|
||||||
runSetDefaultDialer();
|
runSetDefaultDialer();
|
||||||
break;
|
break;
|
||||||
@@ -331,6 +337,10 @@ public final class Telecom extends BaseCommand {
|
|||||||
mTelecomService.stopBlockSuppression();
|
mTelecomService.stopBlockSuppression();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void runCleanupStuckCalls() throws RemoteException {
|
||||||
|
mTelecomService.cleanupStuckCalls();
|
||||||
|
}
|
||||||
|
|
||||||
private void runSetDefaultDialer() throws RemoteException {
|
private void runSetDefaultDialer() throws RemoteException {
|
||||||
String packageName = nextArg();
|
String packageName = nextArg();
|
||||||
if ("default".equals(packageName)) packageName = null;
|
if ("default".equals(packageName)) packageName = null;
|
||||||
|
|||||||
@@ -23,6 +23,14 @@
|
|||||||
"exclude-annotation": "androidx.test.filters.FlakyTest"
|
"exclude-annotation": "androidx.test.filters.FlakyTest"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "CtsTelecomTestCases",
|
||||||
|
"options": [
|
||||||
|
{
|
||||||
|
"exclude-annotation": "androidx.test.filters.FlakyTest"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -322,6 +322,8 @@ interface ITelecomService {
|
|||||||
*/
|
*/
|
||||||
void handleCallIntent(in Intent intent, in String callingPackageProxy);
|
void handleCallIntent(in Intent intent, in String callingPackageProxy);
|
||||||
|
|
||||||
|
void cleanupStuckCalls();
|
||||||
|
|
||||||
void setTestDefaultCallRedirectionApp(String packageName);
|
void setTestDefaultCallRedirectionApp(String packageName);
|
||||||
|
|
||||||
void setTestPhoneAcctSuggestionComponent(String flattenedComponentName);
|
void setTestPhoneAcctSuggestionComponent(String flattenedComponentName);
|
||||||
|
|||||||
Reference in New Issue
Block a user