Commit Graph

2172 Commits

Author SHA1 Message Date
Matt Pietal
50772e9bcd Merge "Controls UI - Basic impl" 2020-01-27 17:49:56 +00:00
Sergey Volnov
ed8ce564b3 Merge "Use cancellation signals for timeouts and cancel-by-CCService operations" 2020-01-27 15:24:41 +00:00
Matt Pietal
2223179499 Controls UI - Basic impl
The start of basic controls implementation. Support for lights, locks,
and basic thermostat information. Token support is needed only for
mocking at the moment and will be removed.

Bug: 148207527
Test: SystemUiTests

Change-Id: If25c57735ebd314a978d3969934d781eafc4f89c
2020-01-27 09:53:58 -05:00
TreeHugger Robot
607b7ab283 Merge "Move euicc related file to telephony." 2020-01-24 22:08:50 +00:00
Sergey Volnov
ac90cd8bf9 Merge "Implement data sharing API for Content Capture." 2020-01-24 22:05:27 +00:00
Will Brockman
df6817360d Merge "Add logging of NotificationReported statsd atom." 2020-01-24 17:03:04 +00:00
Sergey Volnov
d7e9844445 Use cancellation signals for timeouts and cancel-by-CCService operations
Bug: 148264965
Test: built Android + manually tested
Change-Id: I95f7ec2bb96b8b6d6ead106877f9d7128e3ec209
2020-01-24 16:57:35 +00:00
Sergey Volnov
6e049014a7 Implement data sharing API for Content Capture.
This API allows any whitelisted caller app supply data to Content
Capture Service. CDD suggests to not use standard "binding" mechanisms,
so this is a guaranteed-writeonly way of sharing data.

Test: build Android locally, manual E2E test
Bug: 145203958

Change-Id: If2219acd6aa48f199e4dadd6f18ceb55c258e1d0
2020-01-24 14:58:43 +00:00
Matt Pietal
33887e0a7e Merge "Removed @hide and Parcelable hierarchy" 2020-01-24 11:38:44 +00:00
TreeHugger Robot
cf38272125 Merge "Add inline controller UI fields to the autofill response and IME inline response" 2020-01-24 04:28:41 +00:00
Amit Mahajan
235289719b Move euicc related file to telephony.
All other files were moved earlier. This is a newly added file
that was added in the old location.

Test: basic sanity
Bug: 140908357
Change-Id: I756b5834ddb1031627168a17dc49ce93b5af8219
2020-01-23 18:14:46 -08:00
Will Brockman
2b6959e6cc Add logging of NotificationReported statsd atom.
This obsoletes the MetricsLogger logging in NotificationRecord
and StatusBarNotification, which will be removed after we validate the
new logs.

Bug: 146488473
Test: with statsd_testdrive
Test: atest NotificationManagerServiceTest
Change-Id: Ia24710ab67f760e1a9f22b4d59d9a6e776821f60
2020-01-23 17:01:59 -05:00
Feng Cao
9199498b46 Add inline controller UI fields to the autofill response and IME inline response
Test: build
Bug: 147394280

Change-Id: I4949852bb042390b35962627617d062bcd9b24b9
2020-01-23 11:22:56 -08:00
shengcow
0696c44824 Add system API annotation to expose Incremental classes as system APIs.
Test: None
Change-Id: Iddf69534cd88670af34267287ae8ee63ed24d7c7
Bug: 148217803
2020-01-23 18:09:08 +00:00
Tiger Huang
527244459c Window Manager Flag Migration (12/n)
- Unhide new APIs
- MaxInsets -> InsetsIgnoringVisibility
- Deprecate SystemUI flags
- Deprecate some other stuff

Bug: 118118435
Test: Build, CTS coming soon
Change-Id: I0a0cbdb48258b3779d536668b59e8c88f3c96d18
Exempt-From-Owner-Approval: Trivial rename
2020-01-23 14:11:39 +01:00
Fabian Kozynski
1bb26b5046 Removed @hide and Parcelable hierarchy
This CL removes @hide from all the controls API as well as introduce
some minor changes:

* ControlTemplate and ControlAction are not Parcelable. There are
Parcelable wrappers that stores all the information in the Bundle
produced by #getDataBundle.
* Control supports a customIcon and customColor to override those
defined by deviceType.

Missing:
* Javadoc in some classes/methods
* CTS testing

Test: atest ControlProviderServiceTest
Test: atest ControlActionTest
Test: atest ControlTemplateTest
Bug: 147760868
Change-Id: I3279ecfcc4fabe05a4b278385eb89ea6a92e3a33
2020-01-23 07:28:46 -05:00
Jorim Jaggi
af30559dc3 Merge changes from topic "content_apply"
* changes:
  Force non-floating main app windows to not fit anything
  Introduce Window.setContentOnApplyWindowInsetsListener
2020-01-23 10:52:36 +00:00
TreeHugger Robot
2a8fae9828 Merge changes from topic "voiceinteraction-model-enrollment"
* changes:
  async enrollment support AlwaysOnHotwordDetector
  add KeyphraseModelManager
2020-01-23 02:46:50 +00:00
Nicholas Ambur
f771e6c9f6 async enrollment support AlwaysOnHotwordDetector
Added ability for AlwaysOnHotwordDetector to support async enrollment
performed outside of support detected through KeyphraseEnrollmentInfo.

Bug: 147159435
Test: tested enrollment and availability is updated when enrolling
outside of KeyphraseEnrollmentInfo

Change-Id: Ia5d71e90c062ac100d4c6df760acf0d41920853e
2020-01-22 16:40:18 -08:00
Nicholas Ambur
ef84fc4843 add KeyphraseModelManager
Exposes a set of @SystemApi's allowing the active VoiceInteractionService
to enroll voice models.

Bug: 147159435
Test: manual tested enrollment and unenrollment via bundled
hotwordenrollment application and test app.

Change-Id: I94ef3550df236486401a0a6f9de9d874b9bf9b46
2020-01-22 16:40:13 -08:00
Santiago Etchebehere
0ec06391e2 Merge "[Zoom-out 1/N] Add API in WallpaperManager" 2020-01-22 22:35:43 +00:00
Danning Chen
5ff476a902 Merge "Add isConversation() API to NotificationRecord and a corresponding key in Adjustment" 2020-01-22 19:15:26 +00:00
Santiago Etchebehere
44a2831560 [Zoom-out 1/N] Add API in WallpaperManager
Add an API in WallpaperManager (client and server) and
WallpaperService to pass a wallpaper zoom value to the
wallpaper service and engine.

Bug: 146387434
Test: (added testDeliversZoomChanged)
Test: atest WallpaperServiceTest
Change-Id: Idd9ea2aefb845ad1d330cbdd6e088b926bcfece7
2020-01-22 10:51:04 -08:00
Jorim Jaggi
7fb715c425 Introduce Window.setContentOnApplyWindowInsetsListener
When root-level content containers fit insets, they used to just
apply and consume the entire system insets. However, with the new
Inset APIs, and with deprecating ADJUST_RESIZE IME flag, we want
to give apps an easy way to customize this behavior.

For that, we introduce Window.setOnContentApplyWindowInsetsListener
that returns what kind of margins/padding should be applied and
what should be dispatched to the content views. This is essentially
a replacement for SYSTEM_UI_FLAG_LAYOUT_* as well as
SOFT_INPUT_ADJUST_RESIZE: It allows apps to choose which insets
should be handled on the window level vs view level.

For that, we mark the window decor views as
FRAMEWORK_OPTIONAL_FIT_SYSTEM_WINDOWS, in order to distinguish the
case when support library calls makeOptionalFitSystemWindows(). This
is because of two reasons:
- We don't want the listener to be invoked twice.
- We can not do the compat ping-pong between onApplyWindowInsets
and fitSystemWindows. This is because during the ping-pong, the
result of the OnContentApplyWindowInsetsListener would be lost.
However, we still need to do the compat ping-pong for
ActionBarOverlayLayout in the support library (until that gets
migrated to use onApplyWindowInsets), so we have this separate
dispatching path that only gets used for framework optional
fitting views.

Test: WindowTest
Bug: 118118435
Change-Id: I4b514addd9e094163062d651972f85615b4a35db
2020-01-22 18:09:04 +01:00
Sean Pont
4805925645 Merge "Add QuickAccessWallet API" 2020-01-22 05:36:01 +00:00
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
Danning Chen
10326cf5dd Add isConversation() API to NotificationRecord and a corresponding key in Adjustment
Change-Id: If6a6299a9b5541bcbeef6d2fa11d2e4a16447f77
Test: Verified by building the code and run on a device
Bug: 146522621
2020-01-21 13:37:25 -08:00
Alex Lin
3087e3d69e Merge "Add public API for EuiccService log dump" 2020-01-21 19:31:52 +00:00
Valerie Hau
dac3d675fa Merge "Preserve intended width/height for Blast adapter layers" 2020-01-21 15:50:28 +00:00
TreeHugger Robot
e77f98e2f3 Merge "Updates API on the FillResponse" 2020-01-21 01:59:08 +00:00
Alex Lin
2fb59151dc Add public API for EuiccService log dump
Add public APi to EuiccService which allows the connected LPA to dump
out the logs when a bug report is triggered.
Bug: 62881779
Test: manually tested by extracting bug report to see if the logs are
present and atest EuiccServiceTest

Change-Id: I0869b95d12ab87a5e2a255015549191040d9daa7
2020-01-17 13:59:16 -08:00
Valerie Hau
3036055686 Preserve intended width/height for Blast adapter layers
Some surfaces may be a different size from the requested width/height.
Pass back calculated width/height from WindowStateAnimator back to
ViewRootImpl

Bug: 147674215, 147689472
Test: build, boot, manual
Change-Id: Ib557a4769d79e6414b9bebab8cb006adfb551e4d
2020-01-17 07:49:32 -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
TYM Tsai
64a7dad2df Updates API on the FillResponse
Renames setCancelTargetIds() to setPresentationCancelIds() on the
FillResponse.

Fixes: 147835554
Test: atest CtsAutoFillServiceTestCases
Change-Id: I3e6d8965fcb5536a75d202506a9d5413847d74cc
2020-01-17 22:02:57 +08: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