From 6ffa9dad04e525f6cda213620c6bf5edcf45a607 Mon Sep 17 00:00:00 2001 From: alinasuarez Date: Wed, 14 Jul 2021 18:59:31 +0000 Subject: [PATCH] Add TARE button and homepage to developer options. A TARE button is needed in the developer options in settings to allow users and developers to change the default settings it will come with. When clicked, it opens an activity of the TARE homepage with a toggle and the two policies (Alarm Manager and Job Scheduler) to choose between. It also contains a revert to default settings button. Bug: 191876567 Test: Manual (open Settings > System > Developer Options > TARE and verify tabs and menus are there) Change-Id: Id14bc9c1dcbaaf2aeb74ba7efb0168ab424f5d0c --- AndroidManifest.xml | 4 ++ res/layout/tare_homepage.xml | 63 ++++++++++++++++++ res/values/strings.xml | 13 ++++ res/xml/development_settings.xml | 8 +++ .../development/tare/TareHomePage.java | 65 +++++++++++++++++++ 5 files changed, 153 insertions(+) create mode 100644 res/layout/tare_homepage.xml create mode 100644 src/com/android/settings/development/tare/TareHomePage.java diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 6960ce0523b..fd3845c8609 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1465,6 +1465,10 @@ android:value="true" /> + + diff --git a/res/layout/tare_homepage.xml b/res/layout/tare_homepage.xml new file mode 100644 index 00000000000..9c218742aca --- /dev/null +++ b/res/layout/tare_homepage.xml @@ -0,0 +1,63 @@ + + + + + + + + + + +