summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorPhilip P. Moltmann <moltmann@google.com>2020-08-20 19:30:31 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-08-20 19:30:31 +0000
commit4b867486850c75ae98f07525df6558f6c9063295 (patch)
tree7701594f15818200c3e48662369c5eb2bf2efa7a /res
parent8c21a4b602babcc1bdb20d70b8141e66c79264d6 (diff)
parentfa51a6e20487c3cf4e552614eba47e9e5be70446 (diff)
downloadPackageInstaller-4b867486850c75ae98f07525df6558f6c9063295.tar.gz
Merge changes from topic "phone-call-indicators" into rvc-qpr-dev
* changes: Show some limited system usage in ongoing usage dialog Update to latests UI mocks. Listen to real app-ops + small bug fixes Special phone call handling in ReivewOngoingUsage
Diffstat (limited to 'res')
-rw-r--r--res/layout/ongoing_usage_dialog_content.xml17
-rw-r--r--res/values/overlayable.xml4
-rw-r--r--res/values/strings.xml17
-rw-r--r--res/values/styles.xml26
4 files changed, 64 insertions, 0 deletions
diff --git a/res/layout/ongoing_usage_dialog_content.xml b/res/layout/ongoing_usage_dialog_content.xml
index 219b4f9c0..f9a0f07f0 100644
--- a/res/layout/ongoing_usage_dialog_content.xml
+++ b/res/layout/ongoing_usage_dialog_content.xml
@@ -35,6 +35,23 @@
android:id="@+id/items_container"
style="@style/PermissionUsageDialogItemsContainer"/>
+ <TextView
+ android:id="@+id/other_use_header"
+ android:text="@string/other_use"
+ style="@style/PermissionUsageDialogOtherUseHeader"/>
+
+ <TextView
+ android:id="@+id/other_use_content"
+ style="@style/PermissionUsageDialogOtherUseContent"/>
+
+ <View
+ android:id="@+id/other_use_inside_spacer"
+ style="@style/PermissionUsageDialogOtherUseInsideSpacer"/>
+
+ <TextView
+ android:id="@+id/system_use_content"
+ style="@style/PermissionUsageDialogSystemUseContent"/>
+
</LinearLayout>
</ScrollView>
diff --git a/res/values/overlayable.xml b/res/values/overlayable.xml
index 162744295..aa683a43e 100644
--- a/res/values/overlayable.xml
+++ b/res/values/overlayable.xml
@@ -153,6 +153,10 @@
<item type="style" name="PermissionUsageDialogItemAppName" />
<item type="style" name="PermissionUsageDialogItemPermissionsList" />
<item type="style" name="PermissionUsageDialogItemIconsContainer" />
+ <item type="style" name="PermissionUsageDialogOtherUseHeader" />
+ <item type="style" name="PermissionUsageDialogOtherUseContent" />
+ <item type="style" name="PermissionUsageDialogOtherUseInsideSpacer" />
+ <item type="style" name="PermissionUsageDialogSystemUseContent" />
<!-- END ONGOING USAGE DIALOG -->
<!-- START REQUEST ROLE DIALOG TITLE -->
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 490817a2f..e7804ffb2 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -884,6 +884,23 @@
<!-- Label for the button to set an application as the default application [CHAR LIMIT=20] -->
<string name="request_role_set_as_default">Set as default</string>
+ <!-- Message telling the user that a phone call is currently using the microphone [CHAR LIMIT=none] -->
+ <string name="phone_call_uses_microphone">Microphone is used in &lt;b>phone call&lt;/b></string>
+ <!-- Message telling the user that a phone call is currently using the microphone and the camera [CHAR LIMIT=none] -->
+ <string name="phone_call_uses_microphone_and_camera">Camera and Microphone are used in &lt;b>video call&lt;/b></string>
+ <!-- Message telling the user that a phone call is currently using the camera [CHAR LIMIT=none] -->
+ <string name="phone_call_uses_camera">Camera is used in &lt;b>video call&lt;/b></string>
+
+ <!-- Message telling the user that a system service is currently using the microphone [CHAR LIMIT=none] -->
+ <string name="system_uses_microphone">Microphone is accessed using system service</string>
+ <!-- Message telling the user that a system service is currently using the microphone and the camera [CHAR LIMIT=none] -->
+ <string name="system_uses_microphone_and_camera">Camera and Microphone are accessed using system service</string>
+ <!-- Message telling the user that a system service is currently using the camera [CHAR LIMIT=none] -->
+ <string name="system_uses_camera">Camera is accessed using system service</string>
+
+ <!-- Line above a list of other apps and system service that are currently microphone or camera [CHAR LIMIT=60] -->
+ <string name="other_use">Other use:</string>
+
<!-- Action for accepting the Ongoing usage dialog [CHAR LIMIT=10]-->
<string name="ongoing_usage_dialog_ok">Got it</string>
diff --git a/res/values/styles.xml b/res/values/styles.xml
index 496e95cb9..c1c8e2d2f 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -663,6 +663,32 @@
<item name="android:layout_gravity">end</item>
</style>
+ <style name="PermissionUsageDialogOtherUseHeader">
+ <item name="android:layout_width">wrap_content</item>
+ <item name="android:layout_height">wrap_content</item>
+ <item name="android:textAppearance">?android:textAppearanceListItemSecondary</item>
+ <item name="android:layout_marginStart">16dp</item>
+ </style>
+
+ <style name="PermissionUsageDialogOtherUseContent">
+ <item name="android:layout_width">wrap_content</item>
+ <item name="android:layout_height">wrap_content</item>
+ <item name="android:textAppearance">?android:textAppearanceListItemSecondary</item>
+ <item name="android:layout_marginStart">16dp</item>
+ </style>
+
+ <style name="PermissionUsageDialogOtherUseInsideSpacer">
+ <item name="android:layout_width">0dp</item>
+ <item name="android:layout_height">16dp</item>
+ </style>
+
+ <style name="PermissionUsageDialogSystemUseContent">
+ <item name="android:layout_width">wrap_content</item>
+ <item name="android:layout_height">wrap_content</item>
+ <item name="android:textAppearance">?android:textAppearanceListItemSecondary</item>
+ <item name="android:layout_marginStart">16dp</item>
+ </style>
+
<!-- END ONGOING USAGE DIALOG -->
<!-- START REQUEST ROLE DIALOG TITLE -->