summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2019-11-20 14:39:04 -0800
committerRoshan Pius <rpius@google.com>2019-11-20 14:39:04 -0800
commite62da11410f7e3428d647909df06a0f638e57bb6 (patch)
tree10d0e988b9b3994642acb7048ae0f3718bcd6d58
parent7703348beff18ed6cfe4abec9e4d8ab227833c85 (diff)
wifi(p2p): Rename Context.sendBroadcastMultiplePermissions
Renaming based on API council feedback. Bug: 144793100 Test: Compiles Change-Id: I02cc8946457394555904a0868e04bcfad1c38df6
-rw-r--r--service/java/com/android/server/wifi/p2p/WifiP2pServiceImpl.java3
-rw-r--r--tests/wifitests/src/com/android/server/wifi/p2p/WifiP2pServiceImplTest.java2
2 files changed, 3 insertions, 2 deletions
diff --git a/service/java/com/android/server/wifi/p2p/WifiP2pServiceImpl.java b/service/java/com/android/server/wifi/p2p/WifiP2pServiceImpl.java
index 8fc0a8f6b..dff33baaf 100644
--- a/service/java/com/android/server/wifi/p2p/WifiP2pServiceImpl.java
+++ b/service/java/com/android/server/wifi/p2p/WifiP2pServiceImpl.java
@@ -3005,7 +3005,8 @@ public class WifiP2pServiceImpl extends IWifiP2pManager.Stub {
private void sendBroadcastMultiplePermissions(Intent intent) {
Context context = mContext.createContextAsUser(UserHandle.ALL, 0);
- context.sendBroadcastMultiplePermissions(intent, RECEIVER_PERMISSIONS_FOR_BROADCAST);
+ context.sendBroadcastWithMultiplePermissions(
+ intent, RECEIVER_PERMISSIONS_FOR_BROADCAST);
}
private void sendThisDeviceChangedBroadcast() {
diff --git a/tests/wifitests/src/com/android/server/wifi/p2p/WifiP2pServiceImplTest.java b/tests/wifitests/src/com/android/server/wifi/p2p/WifiP2pServiceImplTest.java
index 95ffbc6c2..ff4642d5a 100644
--- a/tests/wifitests/src/com/android/server/wifi/p2p/WifiP2pServiceImplTest.java
+++ b/tests/wifitests/src/com/android/server/wifi/p2p/WifiP2pServiceImplTest.java
@@ -645,7 +645,7 @@ public class WifiP2pServiceImplTest extends WifiBaseTest {
String[] permission_gold = new String[] {android.Manifest.permission.ACCESS_FINE_LOCATION,
android.Manifest.permission.ACCESS_WIFI_STATE};
ArgumentCaptor<String []> permissionCaptor = ArgumentCaptor.forClass(String[].class);
- verify(mContext, atLeastOnce()).sendBroadcastMultiplePermissions(
+ verify(mContext, atLeastOnce()).sendBroadcastWithMultiplePermissions(
intentCaptor.capture(), permissionCaptor.capture());
String [] permission = permissionCaptor.getValue();
Arrays.sort(permission);