Add QuickAccessWallet API

Adds a new API that allows applications to provide payment cards and
other relevant passes to SysUI which are then shown in the Quick Access
Wallet (long press on Pixel). See go/aospqaw-dd for details.

Bug: 144342153
Test: manual - started device, didn't blow up
Test: atest - run from frameworks/base dir
Change-Id: I8fef3116e6e4bd1f8a4f5a907892ea8993b49b0e
This commit is contained in:
Sean Pont
2020-01-07 12:05:09 -08:00
parent 30b7a57597
commit d00aefb43c
26 changed files with 2222 additions and 0 deletions

View File

@@ -1968,6 +1968,21 @@ public final class Settings {
public static final String ACTION_REQUEST_SET_AUTOFILL_SERVICE =
"android.settings.REQUEST_SET_AUTOFILL_SERVICE";
/**
* Activity Action: Show screen for controlling the Quick Access Wallet.
* <p>
* In some cases, a matching Activity may not exist, so ensure you
* safeguard against this.
* <p>
* Input: The Intent's data URI specifies the application package name
* to be shown, with the "package" scheme. That is "package:com.my.app".
* <p>
* Output: Nothing.
*/
@SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
public static final String ACTION_QUICK_ACCESS_WALLET_SETTINGS =
"android.settings.QUICK_ACCESS_WALLET_SETTINGS";
/**
* Activity Action: Show screen for controlling which apps have access on volume directories.
* <p>