From e1c98ca821a8fd742f39b89626e1ed4d44295437 Mon Sep 17 00:00:00 2001 From: Ruben Brunk Date: Tue, 23 Feb 2016 18:58:56 -0800 Subject: [PATCH] Add settings VR listener service. Bug: 22855417 Bug: 26724891 - Adds a settings panel allowing users to toggle the enabled/disabled state of each VrListenerService component installed. - If disabled, a VrListenerService will not be bound from the framework, even when requested by a VR application. Change-Id: I606eb712c011d160b9fbdd3c0e8fd744c653ef07 --- AndroidManifest.xml | 16 ++++++ res/values/strings.xml | 19 +++++++ res/xml/special_access.xml | 10 ++++ src/com/android/settings/Settings.java | 1 + .../applications/VrListenerSettings.java | 51 +++++++++++++++++++ .../NotificationAccessSettings.java | 2 + .../ZenModeAutomationSettings.java | 3 +- .../notification/ZenRuleSelectionDialog.java | 1 + .../ManagedServiceSettings.java | 3 +- .../ServiceListing.java | 4 +- 10 files changed, 106 insertions(+), 4 deletions(-) create mode 100644 src/com/android/settings/applications/VrListenerSettings.java rename src/com/android/settings/{notification => utils}/ManagedServiceSettings.java (98%) rename src/com/android/settings/{notification => utils}/ServiceListing.java (98%) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index ceea92e4e35..b6fb084e917 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -2449,6 +2449,22 @@ android:value="com.android.settings.notification.NotificationAccessSettings" /> + + + + + + + + + + + + + diff --git a/res/values/strings.xml b/res/values/strings.xml index 62476f77046..b9207cdc9cf 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -6019,6 +6019,23 @@ It will also be able to dismiss notifications or trigger action buttons they contain. + + VR helper services + + + No installed apps have requested to be run as VR helper services. + + + Allow VR service access for + %1$s? + + + %1$s will be able to run when you are using + applications in virtual reality mode. + + Do Not Disturb access @@ -6883,6 +6900,8 @@ This permission allows an app to display on top of other apps you\u2019re using and may interfere with your use of the interface in other applications, or change what you think you are seeing in other applications. + + vr virtual reality listener stereo helper service system alert window dialog draw on top other apps diff --git a/res/xml/special_access.xml b/res/xml/special_access.xml index 9b404dfd692..5adf20c784e 100644 --- a/res/xml/special_access.xml +++ b/res/xml/special_access.xml @@ -48,6 +48,16 @@ android:value="com.android.settings.Settings$OverlaySettingsActivity" /> + + + +