Commit Graph

2140 Commits

Author SHA1 Message Date
Sean Pont
d00aefb43c 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
2020-01-21 14:18:34 -08:00
Julia Reynolds
7c267526a1 Addressing conversation info todos
- Linking the conversation notification to the newly created
channel and triggering a ranking update
- Incorporating the flag for whether notifications/channels with
invalid shortcut ids should be allowed

Test: atest
Bug: 137397357
Change-Id: Ice1d545f2405a6c9b9eefaf1fd5481622ad72d7b
2020-01-17 10:20:19 -05:00
Tony Mak
216fe08617 PackageManager no longer requires the ExtServices to be a "Shared Library"
BUG: 147663325

Test: Boot
Test: atest cts/tests/tests/os/src/android/os/cts/RequiredComponentsTest.java
Test: mts-tradefed run mts-extservices

Change-Id: I32fcb27e54d50e362b3005dd6d235bcc30a60ac8
2020-01-15 12:59:42 +00:00
TreeHugger Robot
7a56ccfc93 Merge "Add SystemApis to TestApi in Dataset." 2020-01-13 22:20:34 +00:00
Nicholas Ambur
7092a56116 add audioCapabilities to SoundTrigger properties
Bug: 146363190
Test: atest SoundTriggerMiddlewareImplTest
&& GTS assist test suite

Change-Id: Ib8a3b809fa6738152d31499b5072a2e9d39ab0a0
2020-01-10 16:00:58 -08:00
TreeHugger Robot
d8468f82fe Merge "Adding additional listeners (onNotificationVisibilityChanged, onPanelHidden, onPanelRevealed) to NotificationAssistantService." 2020-01-10 20:59:29 +00:00
Nicholas Ambur
b2a5c29796 Merge "add parameter control to AlwaysOnHotwordDetector" 2020-01-10 17:08:00 +00:00
Nicholas Ambur
f94db1c822 add parameter control to AlwaysOnHotwordDetector
Per-model control to AlwaysOnHotwordDetector interface.
Models are selected by keyphrase and locale associated with the
AlwaysOnHotwordDetector instance.

Bug: 141929369
Test: tested manually with test app
Change-Id: Iffeb0954059fa030d8a4fefb934a3e665323be37
2020-01-09 18:18:47 -08:00
Adam He
d51d212c79 Add SystemApis to TestApi in Dataset.
Bug: 146453536
Test: atest android.autofillservice.cts.DatasetTest
Change-Id: I42b2ccf4e3c388a672888051c09e608e9f9847cf
2020-01-09 15:54:25 -08:00
TreeHugger Robot
78beac60dc Merge "Adds null pointer checking" 2020-01-09 08:48:50 +00:00
TYM Tsai
e66bfb9a88 Adds null pointer checking
The mDataset can be null we should do null check to prevent NPE.

Bug: 147344573
Test: atest CtsAutoFillServiceTestCases:FillResponseTest#testNoMoreInteractionsAfterBuild
Change-Id: Ib704787e1356c016d1e8f71aa7209dd34b1798e1
2020-01-09 06:24:56 +00:00
Alex Mang
509e55481f Adding additional listeners (onNotificationVisibilityChanged,
onPanelHidden, onPanelRevealed) to NotificationAssistantService.

Bug: 147149509
Test: atest NotificationManagerServiceTest#testOnPanelRevealedAndHidden,testStats_updatedOnVisibilityChanged
Change-Id: If17070677d01b00d7c3cdda9a0e9d3e8f47f9062
2020-01-07 12:07:24 -08:00
Artur Satayev
df4395991f Use new UnsupportedAppUsage annotation.
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library.

Bug: 145132366
Test: m && diff unsupportedappusage_index.csv
Change-Id: I288969b0c22fa3a63bc2e71bb5009fe4a927e154
2020-01-07 13:29:50 +00:00
Adam He
3e01bc378b Move Slice into Dataset.
Bug: 146453536
Test: manual verification
Change-Id: I6289622e01394c3bc9aa4dcd38feeb9ec2c33c55
2020-01-06 07:47:28 -08:00
TreeHugger Robot
24a4c411db Merge "Added attributes for IME and AutofillService to indicate they support inline suggestions." 2020-01-04 01:18:46 +00:00
Adam He
7bc8f60377 Added attributes for IME and AutofillService to indicate they support
inline suggestions.

Fixes: 146452946
Test: atest FrameworksCoreTests:android.view.inputmethod.InputMethodInfoTest
Change-Id: I709b16d3f12c693bc670600bdcb9125630eb9b8e
2020-01-03 14:14:17 -08:00
TreeHugger Robot
950e55d4f2 Merge "Add server side implementation for inline augmented autofill request." 2020-01-03 22:12:22 +00:00
Feng Cao
5bf0d2bc5e Add server side implementation for inline augmented autofill request.
Test: manual
Bug: 146453195

Change-Id: Id9c3e16cd5b05ba1c87eb8cdb4a95f2f79bfd77b
2020-01-03 11:28:21 -08:00
Fabian Kozynski
7a5f572896 Merge "Make methods final in ControlsProviderService" 2020-01-03 17:16:31 +00:00
Fabian Kozynski
79630d74fa Make methods final in ControlsProviderService
Test: build
Change-Id: I6f651966d71e33c0bc4e3152524c176e909b9617
2020-01-03 10:26:24 -05:00
Fabian Kozynski
e6590f618d Fix name of TemperatureControlTemplate
Test: no test
Change-Id: I1b3b0c1c60a82e06ce71cbb87371deb32611e707
2020-01-02 17:02:00 -05:00
TreeHugger Robot
87a7b2f694 Merge "Control Service - Fix typo" 2020-01-02 16:25:43 +00:00
Fabian Kozynski
49fe4569a8 Merge "Merge ControlState into Control" 2020-01-02 15:19:13 +00:00
Matt Pietal
8231929e10 Control Service - Fix typo
The message id had a typo, causing crashes when taking an action.

Test: manual
Change-Id: Ie46fefb12518c4631e7db321042d64a2d9bbf895
2020-01-02 08:42:37 -05:00
Fabian Kozynski
ee57f49c7d Merge ControlState into Control
All the information that was sent with a ControlState is now sent with a
new updated Control object. That way, overriding Type and changes to
name can be done inside subscribe.

Modified ControlsProviderService to encapsulate the callback service and
provide public methods to send information to SystemUI. In particular,
onLoad verifies that all Control passed do not have status information
and erases that information if it has any.

Add token for reusing the same Callback binder.

Test: build
Change-Id: I6ce5e9ad53899ea588b23e0f067b5d1f86a0bb18
2019-12-30 13:24:28 -05:00
Feng Cao
ffdfb5857c Merge "Extend augmented autofill service APIs to support inline suggestion." 2019-12-27 22:27:09 +00:00
Feng Cao
9ad619b2cb Extend augmented autofill service APIs to support inline suggestion.
Test: manual
Bug: 146453195

Change-Id: Ia094c93741187f55183d5e2213ff5eef076efc9d
2019-12-27 11:53:12 -08:00
Fabian Kozynski
052fe8b866 Merge "Changes to API adding new templates and actions" 2019-12-27 15:04:12 +00:00
Fabian Kozynski
2d212127fb Changes to API adding new templates and actions
This change adds new templates and actions, as well as DeviceTypes.
Also refactor the parcelling and unparcelling to support composite templates.

Javadoc to come on a later CL.

Test: atest

Change-Id: Ib240ef9930d37d464ea3a31a5cc245e02908eb05
2019-12-27 10:03:09 -05:00
Alex Buynytskyy
1ecfcece45 Migrating Incremental* APIs to PackageManager APIs.
Step 2, merging Data Loader params.

Test: builds and flashes
Bug: b/136132412

Change-Id: I2102554316dadcdcb49790c133ece110c43c29b3
2019-12-20 06:55:32 -08:00
Songchun Fan
4062c3ca67 [incremental/dataloader] make some class and methods system APIs
These are the APIs that are needed for Incremental installations
initiated by privileged apps.

Only for internal development of Incremental.

BUG: 136132412
Test: m IncrementalScenarioTests
Change-Id: I258979df03943417f2a896160374f2f73841b733
2019-12-19 16:23:58 -08:00
TreeHugger Robot
29ac92a2e8 Merge "Controls API - Adding service impl" 2019-12-19 16:53:14 +00:00
Alex Buynytskyy
ea14d19106 Migrating Incremental* APIs to PackageManager APIs.
This is the first step, migrating java parts.
CleanSpec.mk added as a workaround for b/146502407

Test: builds and flashes
Bug: b/136132412

Change-Id: Id0a26aa011b555ea457b5aafe7f5789c36d25bcc
2019-12-18 19:13:39 +00:00
Matt Pietal
10eae31846 Controls API - Adding service impl
Adding a basic service implementation for apps to implement if they
would like to contribute to the new controls space. This is a WIP
while the controls design is worked.

Test: atest + Home Mock Service
Change-Id: Iae3de21ebf5b15b0df498dce2add51f53bbd229d
2019-12-18 13:08:27 -05:00
Adam He
b50bc1f669 Merge "API for autofill integration with keyboard." 2019-12-18 00:39:13 +00:00
Alex Mang
1165084c1d Merge "Support for NotificationAssistantService to rerank notifications." 2019-12-17 20:40:22 +00:00
Alex Mang
730d949e6d Support for NotificationAssistantService to rerank notifications.
NotificationAssistantService passes a RankingScore via an Adjustment to
NotificationRecord. NotificationManagerService sorts notification using
rank as part of NotificationComparator.

Bug: 146443378
Test: atest NotificationComparatorTest
Change-Id: I9f4d03c7d0ccf5adba4f26f48eb2638aa6caa49b
2019-12-17 20:33:16 +00:00
Beverly Tai
ed622cd60e Merge "Update Ranking's equal method" 2019-12-17 15:46:02 +00:00
Winson Chung
5de9140f92 Merge "Remove a few hard coded references to SystemUI in fw/base/services" 2019-12-17 05:41:48 +00:00
Adam He
bc67f2e158 API for autofill integration with keyboard.
Bug: 137800469
Test: manual verification
Change-Id: Id222500c373898d576661cacb7a1cb51061041d4
2019-12-16 12:43:01 -08:00
Beverly
e1541e7ec9 Update Ranking's equal method
Include check for whether mVisuallyInterruptive has changed

Test: atest BubbleDataTest
Change-Id: I5c4706667e6ca4cde44ef3671daa24afaf2b14f3
2019-12-16 18:36:25 +00:00
Tiger Huang
4a7835ffb6 Window Manager Flag Migration (7/n)
Introduce new APIs in Window/WindowManager.LayoutParams for developers
to decide which types of insets at which side a window should avoid:

    setFitWindowInsetsTypes(@InsetsType int types)
    setFitWindowInsetsSides(@InsetsSide int sides)
    setFitIgnoreVisibility(boolean ignore)

The existing logic in DisplayPolicy.layoutWindowLw uses combinations of
window types, window flags, and system UI flags to decide what frames a
window should have, which is very complex, difficult to maintain, and
should be replaced with the new APIs.

Bug: 118118435
Test: atest InsetsSourceProviderTest InsetsStateControllerTest
            InsetsPolicyTest WindowStateTests CommandQueueTest
            RegisterStatusBarResultTest InsetsFlagsTest
            LightBarControllerTest RegisterStatusBarResultTest
            ViewRootImplTest DisplayPolicyLayoutTests
            DisplayPolicyInsetsTests DisplayPolicyTests
            TaskSnapshotSurfaceTest
Change-Id: I06ddc9d0d2887ba4ded7bb8adbf9c9c0da4bf7b4
2019-12-16 17:08:21 +08:00
Winson Chung
f2b41770d4 Remove a few hard coded references to SystemUI in fw/base/services
Bug: 143775123
Test: atest ScreenshotHelperTest
Test: atest AlarmManagerTest
Change-Id: I2fefe2968e23bc2d06aa52266c2eeeb90f4733ee
2019-12-13 13:59:31 -08:00
Fabian Kozynski
b3321f666d Merge "Changes to API" 2019-12-12 17:21:05 +00:00
Fabian Kozynski
0bde9c1ced Changes to API
ControlTemplate and ControlAction serialize to Bundle. That way,
unserializing can always be done (maybe to UNKNOWN or NONE).

Also ControlState does not have a control anymore and now it just has
optional fields for overrides.

Test: atest

Change-Id: I1ce23c786a1b377d306e7785f9249b55b56d4c9f
2019-12-12 09:49:46 -05:00
TreeHugger Robot
b36c04ade3 Merge "Delete FinancialSmsService and friends." 2019-12-12 13:12:50 +00:00
Joanne Chung
6efdab9f88 Merge "Remove ConfigParser from TextClassificationConstants." 2019-12-12 03:33:05 +00:00
Songchun Fan
1a52cf7137 [incremental] base Incremental data loader service
This service will be extended by custom data loader services.

Hide for now till we update it with latest API.

Test: builds
Change-Id: I72d6a1528019dda5b1de4ca066dbda094d3bb4a3
2019-12-09 10:21:53 -08:00
Joanne Chung
c44f529a92 Remove ConfigParser from TextClassificationConstants.
ConfigParser was introduced mostly for reading both legacy Settings and
DeviceConfig lazily. We are ready to migrate to DeviceConfig and no
longer read legacy Settings, and thus we don't need this class.
DeviceConfig invalidates cache whenenver any config in the same namespace
is changed, and thus we don't need a listener.

No performance issue observed after testing TextClassificationManagerPerfTest.

Bug: 143585708
Test: atest FrameworksCoreTests:android.view.textclassifier
Test: atest android.view.textclassifier.cts.TextClassifierServiceSwapTest
Test: frameworks/base/apct-tests/perftests/textclassifier/run.sh
Test: adb shell cmd device_config put textclassifier <key> <value> and
adb shell dumpsys textclassification monitor the value change.
Test: Dynamic switch TCS and make sure the service status is expected.

Change-Id: I3c07ef4b16cd1f81c6aa60a0b9b26cac1a3bb5c0
2019-12-09 19:35:32 +08:00
Jeffrey Huang
77db950964 Merge "Rename writeToProto to be dumpDebug" 2019-12-06 18:53:15 +00:00