Enable video telephony support. (3/4)
- Modified test connection service to set the video capability on its
phone accounts to enable testing of enabling video.
- Note: Had to change package/permission on the test app so that it could
register phone accounts.
Bug: 19062133
Change-Id: I391ca128a724a1bab2e4ffd5c5f6945e7cc057ec
diff --git a/tests/src/com/android/server/telecom/testapps/CallServiceNotifier.java b/tests/src/com/android/server/telecom/testapps/CallServiceNotifier.java
index 23e8222..d25cc2d 100644
--- a/tests/src/com/android/server/telecom/testapps/CallServiceNotifier.java
+++ b/tests/src/com/android/server/telecom/testapps/CallServiceNotifier.java
@@ -109,7 +109,8 @@
"TelecomTestApp Call Provider")
.setAddress(Uri.parse("tel:555-TEST"))
.setSubscriptionAddress(Uri.parse("tel:555-TEST"))
- .setCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER)
+ .setCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER |
+ PhoneAccount.CAPABILITY_VIDEO_CALLING)
.setIcon(context, R.drawable.stat_sys_phone_call, Color.RED)
.setHighlightColor(Color.RED)
.setShortDescription("a short description for the call provider")
@@ -124,7 +125,8 @@
.setAddress(Uri.parse("tel:555-TSIM"))
.setSubscriptionAddress(Uri.parse("tel:555-TSIM"))
.setCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER |
- PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION)
+ PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION |
+ PhoneAccount.CAPABILITY_VIDEO_CALLING)
.setIcon(context, R.drawable.stat_sys_phone_call, Color.GREEN)
.setHighlightColor(Color.GREEN)
.setShortDescription("a short description for the sim subscription")