We are now not showing storage usages in Permission Controller,
including in the API Settings uses. We can thus remove this code so
that Settings will reflect what Permissions Hub shows.
Bug: 130567526
Test: See the same graph here and in the dashboard.
Change-Id: Iaa7d95b05f4321543ed42833ac3a7babdb9914f0
The general link to the dashboard shows only the last day, but
clicking on an individual permission did not.
Fixes: 129471807
Test: Click on permission.
Change-Id: Ice3b5b1ac6e2cb5a49cabf3c56167c9d39d3c3a1
If multiple permissions have been used by the same number of apps, we
apply a stable tiebreak so we can be consistent in different places.
We prefer location, then microphone, then camera, and everything else
is alphabetical.
Test: View chart with ties.
Test: atest PermissionBarChartPreferenceControllerTest
Change-Id: I035ac19391788cc720e1c832bf8bd5a60d31e8ad
- Each bar is now labeled with the permission name and the subtitle is
slightly different.
- Change some string for new design
Test: View screen.
Test: atest PermissionBarChartPreferenceControllerTest
Change-Id: Ia82f9cbb6255d93c38a27b038ae5af3f066eec28
We saw chart view is gone while rotating device.
Fow now, we save the old permission data before
fragment was recreated.
Then, we can initialize the view quickly with
old data.
Test: robotest, visual
Fixes: 123539793
Change-Id: I230fecc6001a17a0c0205f2a1dcb5dd79f32e744
We show up top linear progress bar
when Settings is querying permission usage data.
Test: visual, robotest
Fixes: 123539793
Change-Id: I350068856d1708eb054d2a205d9ca857214891ce
Apply the proper tint so that the permission group icons appear in
dark mode.
Change-Id: Ief36e69ed8ae70608f1df79a0e2a17eb79b9f467
Fixes: 123750886
Test: Can see icons in light and dark mode.
We already filter out the storage group in the Permissions Hub because
it's going away and it produces false events. This also filters it
out in the privacy bar chart so the two are consistent.
Test: Do not see the storage group in the privacy bar chart.
Change-Id: I6d6bc5a767db06a738ae978cb086dad685cff386
Default to showing only the last day of accesses.
Also fix a bug caused by the API changing from seconds to
milliseconds.
Test: Click links and see correct filter.
Change-Id: I8456723a434c7144e9115e1834f48d3c1da24d4b
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