[Call Screening]Programmatically changing the default call screening app.
Implement three methods increased in TelecomManager.java, increase
one activity in Telecomm services and four test cases in
TelecomServiceImplTest.java.
Bug: 113302920
Test: atest TelecomServiceImplTest.
Test: simulate third party call screening application to use methods in
TelecomManager.java, and triggle the activity to show the dialog of
setting default call screeening application.
Change-Id: I391debd3755f392a1f95c7d1301a99da05459cdc
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 9065173..eff68a0 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -111,7 +111,7 @@
<!-- Button label on the "Missing voicemail number" dialog -->
<string name="add_vm_number_str">Add number</string>
- <!-- Title of dialog used to comfirm whether the user intends to change the default dialer
+ <!-- Title of dialog used to confirm whether the user intends to change the default dialer
application [CHAR LIMIT=55]-->
<string name="change_default_dialer_dialog_title">Make <xliff:g id="new_app">%s</xliff:g> your default Phone app?</string>
<!-- Confirmation text that a user taps on to change the Default Phone App-->
@@ -121,6 +121,18 @@
<!-- Warning message indicating what may happen if a user allows a 3rd party app to become the default dialer.-->
<string name="change_default_dialer_warning_message"><xliff:g id="new_app">%s</xliff:g> will be able to place and control all aspects of calls. Only apps you trust should be set as the default Phone app.</string>
+ <!-- Title of dialog used to confirm whether the user intends to change the default call screening
+ application [CHAR LIMIT=55]-->
+ <string name="change_default_call_screening_dialog_title">Make <xliff:g id="new_app">%s</xliff:g> your default call screening app?</string>
+ <!-- Warning message indicating the old call screening app will no longer be able to screen calls.-->
+ <string name="change_default_call_screening_warning_message_for_disable_old_app"><xliff:g id="old_app">%s</xliff:g> will no longer be able to screen calls.</string>
+ <!-- Warning message indicating what may happen if a user allows a 3rd party app to become the default call screening.-->
+ <string name="change_default_call_screening_warning_message"><xliff:g id="new_app">%s</xliff:g> will be able to see information about callers not in your contacts and will be able to block these calls. Only apps you trust should be set as the default call screening app.</string>
+ <!-- Confirmation text that a user taps on to change the Default call screening App-->
+ <string name="change_default_call_screening_dialog_affirmative">Set Default</string>
+ <!-- Cancel text that a user taps on to not change the Default call screening App-->
+ <string name="change_default_call_screening_dialog_negative">Cancel</string>
+
<!-- Blocked numbers -->
<string name="blocked_numbers">Blocked numbers</string>
<!-- Text shown at the beginning of the blocked numbers screen to explain what the screen is about. -->