History log of /frameworks/base/services/tests/servicestests/src/com/android/server/appops/AppOpsActiveWatcherTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a1ce9637435f28b1de2b9e8e8a2175b53cc9e0f2 29-May-2018 Amith Yamasani <yamasani@google.com> Fix for missing location icon

OpEntry.duration was being used to indicate that the
operation was still running if -1 is returned. A recent
change caused a regression.

Adding a new mRunning field in OpEntry to explicitly
hold the running state, even when partial duration is
updated.

Change-Id: Ib29f4c903f990aaa202e84f964959aedfc24abdb
Fixes: 80242152
Test: atest FrameworksServicesTests:AppOpsActiveWatcherTest
Test: Launch maps and verify the location icon is visible
in the status bar
/frameworks/base/services/tests/servicestests/src/com/android/server/appops/AppOpsActiveWatcherTest.java
2d20fb47f4a7162450f993728876c74762b93112 09-Feb-2018 Svetoslav Ganov <svetoslavganov@google.com> APIs to watch active op changes

System singed components can watch for starting/finishing of
long running app ops. Also protected the APIs to watch op mode
changes with a singature permission for the cross-uid use case.

Test: atest com.android.server.appops.AppOpsActiveWatcherTest

bug:64085448

Change-Id: Id7fe79ce1de4c5690b4f52786424ec5a5d9eb0fa
/frameworks/base/services/tests/servicestests/src/com/android/server/appops/AppOpsActiveWatcherTest.java