summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/appops/AppOpsController.java
Commit message (Collapse)AuthorAgeFilesLines
* Do not hold indicators for apps that become pausedFabian Kozynski2021-04-151-2/+16
| | | | | | | | | | | | | If an app op becomes "paused" (microphone muted or disabled by toggle), remove the indicator immediately as opposed to holding for 5s. Also, pass the value that we are using for mic muted to PermissionManager, so they are in sync. Test: atest SystemUITests Test: manual Fixes: 184891081 Change-Id: I4d46fc6e1cefa45c0d718cc01f40c8f060dafee7
* Do not notify onOpNoted if less than 5sFabian Kozynski2019-11-181-1/+3
| | | | | | | | | If opNoted is updated for the same uid, op, package that it's already in the AppOpController, do not send new updates. Test: atest AppOpsControllerTest Bug: 143929255 Change-Id: Ib744f7cfb60d8cf1a52f35fbf6c463ac8593ffdb
* Adds a AppOpsController that can be suscribed to.Fabian Kozynski2018-10-251-0/+74
This is a dependency that replaces AppOpsListener asuming all its responsibilities and functions. Additionally, it can handle arbitrary callbacks for an activeChanged notification indicating the uid that had a change. In the case of location updates, they are removed if they haven't been updated in 5 sec. Test: atest Change-Id: I647e86418e552721f1a1098d611538ef09654243