summaryrefslogtreecommitdiff
path: root/test-mock
diff options
context:
space:
mode:
author Michael Groover <mpgroover@google.com> 2023-01-18 01:30:15 -0600
committer Michael Groover <mpgroover@google.com> 2023-01-30 14:30:18 -0600
commit9199fb9ac76389c0558939088814aba4b7601a0c (patch)
treec01714c5aebcb1bc2186b395adb04e982369aa54 /test-mock
parenteadd950b34239d41ba76fec77f7efbc9afbbf9a1 (diff)
Add APIs to allow broadcaster to share identity with receivers
This commit adds APIs to allow a broadcasting app to share its identity with the receiver(s) that will receive the broadcast and to allow receivers to obtain the uid and package name of the broadcasting app. Bug: 259743961 Test: atest ShareIdentityTest Change-Id: Ibe9df2b44e414ab92adbf44cd5b4c9eabecb7ee1
Diffstat (limited to 'test-mock')
-rw-r--r--test-mock/api/system-current.txt2
1 files changed, 0 insertions, 2 deletions
diff --git a/test-mock/api/system-current.txt b/test-mock/api/system-current.txt
index f87785bfac18..9e022f0cb0ef 100644
--- a/test-mock/api/system-current.txt
+++ b/test-mock/api/system-current.txt
@@ -5,9 +5,7 @@ package android.test.mock {
method public android.content.Context createCredentialProtectedStorageContext();
method public java.io.File getPreloadsFileCache();
method public boolean isCredentialProtectedStorage();
- method public void sendBroadcast(android.content.Intent, String, android.os.Bundle);
method public void sendBroadcastAsUser(android.content.Intent, android.os.UserHandle, String, android.os.Bundle);
- method public void sendOrderedBroadcast(android.content.Intent, String, android.os.Bundle, android.content.BroadcastReceiver, android.os.Handler, int, String, android.os.Bundle);
}
@Deprecated public class MockPackageManager extends android.content.pm.PackageManager {