summaryrefslogtreecommitdiffstats
path: root/test-runner/src
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2012-12-11 16:34:47 -0800
committerDianne Hackborn <hackbod@google.com>2013-01-09 12:47:47 -0800
commita06de0f29b58df9246779cc4bfd8f06f7205ddb6 (patch)
treec8ecd3323c1112dd46a9470600eab5df022ca85c /test-runner/src
parent2e9f65f978397d112dbfb134d374588515bb644a (diff)
downloadframeworks_base-a06de0f29b58df9246779cc4bfd8f06f7205ddb6.zip
frameworks_base-a06de0f29b58df9246779cc4bfd8f06f7205ddb6.tar.gz
frameworks_base-a06de0f29b58df9246779cc4bfd8f06f7205ddb6.tar.bz2
New "app ops" service.
Initial implementation, tracking use of the vibrator, GPS, and location reports. Also includes an update to battery stats to also keep track of vibrator usage (since I had to be in the vibrator code anyway to instrument it). The service itself is only half-done. Currently no API to retrieve the data (which once there will allow us to show you which apps are currently causing the GPS to run and who has recently accessed your location), it doesn't persist its data like it should, and no way to tell it to reject app requests for various operations. But hey, it's a start! Change-Id: I05b8d76cc4a4f7f37bc758c1701f51f9e0550e15
Diffstat (limited to 'test-runner/src')
-rw-r--r--test-runner/src/android/test/mock/MockPackageManager.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/test-runner/src/android/test/mock/MockPackageManager.java b/test-runner/src/android/test/mock/MockPackageManager.java
index 2eba4e1..5ee52de 100644
--- a/test-runner/src/android/test/mock/MockPackageManager.java
+++ b/test-runner/src/android/test/mock/MockPackageManager.java
@@ -81,6 +81,13 @@ public class MockPackageManager extends PackageManager {
throw new UnsupportedOperationException();
}
+ /** @hide */
+ @Override
+ public int getPackageUid(String packageName, int userHandle)
+ throws NameNotFoundException {
+ throw new UnsupportedOperationException();
+ }
+
@Override
public PermissionInfo getPermissionInfo(String name, int flags)
throws NameNotFoundException {