Add Telecom debug menu.
New menu is accessible via *#*#828282#*#*. This is a developer settings
type activity for the Telecom subsystem.
Adding in an option to enable the enhanced call blocking functionality
to facilitate testing.
Test: Manual
Bug: 28189985
Change-Id: If7ce957e3e04f8f3de2251bb70dafb6b5834a6d8
diff --git a/res/layout/telecom_developer_menu.xml b/res/layout/telecom_developer_menu.xml
new file mode 100644
index 0000000..0df0cdd
--- /dev/null
+++ b/res/layout/telecom_developer_menu.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2018 The Android Open Source Project
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License
+ -->
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent">
+
+ <Switch
+ android:id="@+id/switchEnhancedCallBlocking"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/developer_enhanced_call_blocking"/>
+</LinearLayout>
\ No newline at end of file
diff --git a/res/values/strings.xml b/res/values/strings.xml
index bb63ad2..8c29a21 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -285,4 +285,10 @@
<string name="phone_strings_emergency_call_made_dialog_title_txt">Emergency call made</string>
<!-- Notification details that appear when the user taps the notification "phone_strings_call_blocking_turned_off_notification_text_txt". -->
<string name="phone_strings_emergency_call_made_dialog_call_blocking_text_txt">Call Blocking has been disabled to allow emergency responders to contact you.</string>
+ <!-- Window title used for the Telecom Developer Menu -->
+ <string name="developer_title">Telecom Developer Menu</string>
+ <!-- Label for a switch in the Telecom Developer Menu which is used to enable the enhanced call
+ blocking functionality (for test purposes).
+ DO NOT TRANSLATE -->
+ <string name="developer_enhanced_call_blocking" translatable="false">Enhanced Call Blocking</string>
</resources>