summaryrefslogtreecommitdiff
path: root/errorprone/tests/res/android/content/Intent.java
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2021-04-20 12:30:37 -0600
committerJeff Sharkey <jsharkey@android.com>2021-04-21 12:59:38 -0600
commitf459828358a7079d1e3bc67bb39d5d0c8be3e02c (patch)
tree200e96548fff5eb8a6433c09da67f168ff420bbd /errorprone/tests/res/android/content/Intent.java
parent1eb043a982c864ea83081cca500cf948c1cb05ff (diff)
Annotations for Bluetooth broadcast intents.
Recent work has been using Error Prone rules and annotations to reflect the current state of permission enforcement across the Bluetooth stack, and we're now in a position were we can add new permission enforcement that had been missing. We've currently standardized on saying that APIs that return device or Bluetooth state information (without sharing details about any particular remote Bluetooth device) do not need to be permission protected. Bug: 183626724 Test: ./build/soong/soong_ui.bash --make-mode Bluetooth RUN_ERROR_PRONE=true Change-Id: I53ac7a4fe1dea57316048c3cac4fa237b6ba3d38
Diffstat (limited to 'errorprone/tests/res/android/content/Intent.java')
-rw-r--r--errorprone/tests/res/android/content/Intent.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/errorprone/tests/res/android/content/Intent.java b/errorprone/tests/res/android/content/Intent.java
index 9d22d04b8cb8..288396e60577 100644
--- a/errorprone/tests/res/android/content/Intent.java
+++ b/errorprone/tests/res/android/content/Intent.java
@@ -17,4 +17,11 @@
package android.content;
public class Intent {
+ public Intent(String action) {
+ throw new UnsupportedOperationException();
+ }
+
+ public Intent setAction(String action) {
+ throw new UnsupportedOperationException();
+ }
}