summaryrefslogtreecommitdiffstats
path: root/test-runner
diff options
context:
space:
mode:
authorSvetoslav <svetoslavganov@google.com>2015-05-29 15:43:04 -0700
committerSvetoslav <svetoslavganov@google.com>2015-06-02 14:48:38 -0700
commit20770ddbd4d6f2af0093f36462a8f44a678b084b (patch)
tree70cf421b5fafd4c2412a4cc56ddb6cd6fcf67c9f /test-runner
parent3546c61b27eee218fc37581a3e0229b8646eb119 (diff)
downloadframeworks_base-20770ddbd4d6f2af0093f36462a8f44a678b084b.zip
frameworks_base-20770ddbd4d6f2af0093f36462a8f44a678b084b.tar.gz
frameworks_base-20770ddbd4d6f2af0093f36462a8f44a678b084b.tar.bz2
Add API to hint whether to show on-board UI before a permission request.
bug:21511988 Change-Id: I9d1d7adf34b68074e65510f53b6e642cf784cf6b
Diffstat (limited to 'test-runner')
-rw-r--r--test-runner/src/android/test/mock/MockPackageManager.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/test-runner/src/android/test/mock/MockPackageManager.java b/test-runner/src/android/test/mock/MockPackageManager.java
index bf1ea4d..3b7aa9f 100644
--- a/test-runner/src/android/test/mock/MockPackageManager.java
+++ b/test-runner/src/android/test/mock/MockPackageManager.java
@@ -218,6 +218,12 @@ public class MockPackageManager extends PackageManager {
throw new UnsupportedOperationException();
}
+ /** @hide */
+ @Override
+ public boolean shouldShowRequestPermissionRationale(String permission) {
+ throw new UnsupportedOperationException();
+ }
+
@Override
public int checkSignatures(String pkg1, String pkg2) {
throw new UnsupportedOperationException();