Create a permission bar chart in Privacy page

Using PermissionControllerManager to get the apps
usage of different permission groups.

And then we visualize the result with bar chart.

Test: visual, robotest
Fixes: 116628158
Change-Id: I0442a04c35d74f715418fac0279bb8f36f6d64df
This commit is contained in:
tmfang
2018-12-10 00:23:48 +08:00
parent dbaa5459b8
commit d62afd3700
4 changed files with 294 additions and 0 deletions

View File

@@ -10512,4 +10512,14 @@
<!-- Preference title text for silence gesture [CHAR LIMIT=60]-->
<string name="gesture_silence_title">Silence alerts gesture</string>
<!-- Text to display when no app used permission. [CHAR LIMIT=NONE] -->
<string name="permission_bar_chart_empty_text">0 apps used permissions</string>
<!-- Text for permission bar chart title in Privacy page. [CHAR LIMIT=NONE] -->
<string name="permission_bar_chart_title">Most-used permissions in last 24 hours</string>
<!-- Text for permission bar chart details in Privacy page. [CHAR LIMIT=NONE] -->
<string name="permission_bar_chart_details">See all usage</string>
</resources>