summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-03-25 12:35:22 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-03-25 12:35:22 +0000
commitb8ba361390f779a322052842875f61cc646d44a3 (patch)
tree0d2375336ed97ce1821243217e004e99c7e38c7e
parentf32345450545f1ed57e4c633d321adadcba401cf (diff)
parent325458ce538b49dea1a284775e0dc1e7376dfbcc (diff)
downloadMms-b8ba361390f779a322052842875f61cc646d44a3.tar.gz
Snap for 8358640 from 325458ce538b49dea1a284775e0dc1e7376dfbcc to mainline-go-ipsec-release
Change-Id: Ie6d9bb4255bc868fbe4e49766a4485b6cdc3a031
-rw-r--r--src/com/android/mms/service/MmsService.java6
-rw-r--r--tests/robotests/src/com/android/mms/service/MmsServiceRoboTest.java4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/com/android/mms/service/MmsService.java b/src/com/android/mms/service/MmsService.java
index c752120..d227b3c 100644
--- a/src/com/android/mms/service/MmsService.java
+++ b/src/com/android/mms/service/MmsService.java
@@ -207,7 +207,7 @@ public class MmsService extends Service implements MmsRequest.RequestManager {
@Override
public void sendMessage(int subId, String callingPkg, Uri contentUri,
String locationUrl, Bundle configOverrides, PendingIntent sentIntent,
- long messageId) {
+ long messageId, String attributionTag) {
LogUtil.d("sendMessage " + formatCrossStackMessageId(messageId));
enforceSystemUid();
@@ -278,8 +278,8 @@ public class MmsService extends Service implements MmsRequest.RequestManager {
@Override
public void downloadMessage(int subId, String callingPkg, String locationUrl,
- Uri contentUri, Bundle configOverrides,
- PendingIntent downloadedIntent, long messageId) {
+ Uri contentUri, Bundle configOverrides, PendingIntent downloadedIntent,
+ long messageId, String attributionTag) {
// If the subId is no longer active it could be caused by an MVNO using multiple
// subIds, so we should try to download anyway.
// TODO: Fail fast when downloading will fail (i.e. SIM swapped)
diff --git a/tests/robotests/src/com/android/mms/service/MmsServiceRoboTest.java b/tests/robotests/src/com/android/mms/service/MmsServiceRoboTest.java
index c43fa74..b59e92e 100644
--- a/tests/robotests/src/com/android/mms/service/MmsServiceRoboTest.java
+++ b/tests/robotests/src/com/android/mms/service/MmsServiceRoboTest.java
@@ -57,7 +57,7 @@ public final class MmsServiceRoboTest {
ShadowBinder.setCallingUid(Process.SYSTEM_UID);
binder.sendMessage(/* subId= */ 0, "callingPkg", Uri.parse("contentUri"),
"locationUrl", /* configOverrides= */ null, /* sentIntent= */ null,
- /* messageId= */ 0L);
+ /* messageId= */ 0L, /* attributionTag= */ null);
}
@Test
@@ -65,6 +65,6 @@ public final class MmsServiceRoboTest {
assertThrows(SecurityException.class,
() -> binder.sendMessage(/* subId= */ 0, "callingPkg", Uri.parse("contentUri"),
"locationUrl", /* configOverrides= */ null, /* sentIntent= */ null,
- /* messageId= */ 0L));
+ /* messageId= */ 0L, /* attributionTag= */ null));
}
}