Commit Graph

2115 Commits

Author SHA1 Message Date
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
TreeHugger Robot
104f3be5d9 Merge "Fix crash after destroyed" 2019-12-06 11:20:59 +00:00
Songchun Fan
b7c6d8d861 Merge "[incremental] data loader manager interface" 2019-12-05 20:55:50 +00:00
Jeffrey Huang
cb78285b81 Rename writeToProto to be dumpDebug
We want to eventually migrate some of these APIs to be @SystemApi for mainline modules.
The #dumpDebug name is more appropriate than #writeToProto.

Bug: 142279786
Test: Manual
Change-Id: I60793e91cedf6b720d4ecef6a8484f4fed4ff30f
2019-12-05 11:28:11 -08:00
TYM Tsai
93e1622365 Fix crash after destroyed
Remove the touch listener while destroyed to avoid causing the
IllegalStateException.

Fixes: 144703050
Test: atest CtsAutoFillServiceTestCases
Change-Id: I04b30fa3cef5bea00a4dbd9957cae8246f09a802
2019-12-05 19:05:12 +08:00
Songchun Fan
6dd47b58c5 [incremental] data loader manager interface
Checking in the interface for data loader manager and installation
files in android.content.pm.

Copied from branch master-instamatic. TODO to update the code with
latest API design.

Test: builds
Change-Id: Ie87dd8b45dc18f538ddabf87e2899e958133ff04
2019-12-04 11:00:23 -08:00
Fabian Kozynski
c57c1621cf New Controls API @hide
First iteration of the Controls API. Currently marked as @hide.

Test: atest
Test: build
Change-Id: Idf44e6eb1c0317dc1d11cbe562fbbc6b776b8caa
2019-12-03 15:29:32 +00:00
Narayan Kamath
f4dcc552ef Delete FinancialSmsService and friends.
This feature is incomplete and non functional and there
appear to be no plans to complete it.

Note that the removal of the SystemApi is safe because the
class was designed for extension but didn't have a public
constructor, rendering it unusable as an API.

Test: make
Bug: 138589409

Change-Id: Iadd0da93495cb9bef09aa2fee4514302d3212eb0
2019-11-28 08:57:02 +00:00
Meng Wang
c3918c62df Merge "Move android.service.euicc.* into telephony" am: 4d1971e880 am: f275072086
am: 0ce27d0e97

Change-Id: I2e820df47c33cfeb10fdf7544f1e5ebd9d4d19c0
2019-11-27 14:06:05 -08:00
Meng Wang
2704fb3dfd Merge "Move CarrierIdentifier/CarrierService to telephony" am: 306786abd4 am: 3963cb45d1
am: e1e5d91e5e

Change-Id: I9391511c34f41101612bc02ca6271db5d2a35238
2019-11-27 14:03:11 -08:00
Meng Wang
0ce27d0e97 Merge "Move android.service.euicc.* into telephony" am: 4d1971e880
am: f275072086

Change-Id: Ic9cfcf08477588a0e66001b609d7ac83c648ed2c
2019-11-27 13:46:53 -08:00
Meng Wang
e1e5d91e5e Merge "Move CarrierIdentifier/CarrierService to telephony" am: 306786abd4
am: 3963cb45d1

Change-Id: If8dcd06b40f13df35a2871151187fc63c8a4cecc
2019-11-27 13:43:23 -08:00
Meng Wang
f275072086 Merge "Move android.service.euicc.* into telephony"
am: 4d1971e880

Change-Id: I7b06c381b0afc3ecee0e9632e9faf0e2834ed881
2019-11-27 13:38:38 -08:00
Meng Wang
3963cb45d1 Merge "Move CarrierIdentifier/CarrierService to telephony"
am: 306786abd4

Change-Id: I20c8065c746f4ce025ef45ef4dc6ad0726f83b22
2019-11-27 13:34:51 -08:00
Meng Wang
4d1971e880 Merge "Move android.service.euicc.* into telephony" 2019-11-27 21:23:59 +00:00
Meng Wang
2b8d61158d Move android.service.euicc.* into telephony
Bug: 145232482
Test: make
Change-Id: I9dc5c904761f688e7abecea47647da29f6cec512
2019-11-27 19:15:55 +00:00
Meng Wang
a9ed606636 Move CarrierIdentifier/CarrierService to telephony
Bug: 145232482
Test: make
Change-Id: I9ba0618bb6f95f5caadc3ac9ac75e97efa5573c6
2019-11-27 19:15:37 +00:00
TYM Tsai
67428261d2 Improves text of the negative button on the save UI
Adds new style "Never" for the service can never tirgger the save
UI.

Fixes: 144466480
Test: atest CtsAutoFillServiceTestCases
Change-Id: I31f3f806c794f46c8cb320345bacfc26885b4532
2019-11-27 17:50:05 +08:00
TreeHugger Robot
f6924b1c55 Merge "Adds new API to cancel current session" 2019-11-21 06:27:50 +00:00
Hall Liu
ae63546d19 Merge commit '1d7a53da981b7d4281c58af7eb9b150163b344a6' into manual_merge_1d7a53da981b7d4281c58af7eb9b150163b344a6
am: dab3711435

Change-Id: Ib75482a87545f7743f0049c8e51c354d2294c2af
2019-11-19 15:12:28 -08:00
Hall Liu
dab3711435 Merge commit '1d7a53da981b7d4281c58af7eb9b150163b344a6' into manual_merge_1d7a53da981b7d4281c58af7eb9b150163b344a6
Change-Id: Ie08d8bb30e48a9e7ade85334c6195a791ecc0d9b
2019-11-19 12:37:24 -08:00
Satakshi Rana
cc865a5d3d Merge "Assert only one bitmap is provided to ContentSuggestionsService." into qt-qpr1-dev am: ecc65c6e34
am: bcf751a427

Change-Id: Ic96bdaeb9b3e77ade24a40b00f56b508629f1a9c
2019-11-19 11:48:33 -08:00
Satakshi Rana
bcf751a427 Merge "Assert only one bitmap is provided to ContentSuggestionsService." into qt-qpr1-dev
am: ecc65c6e34

Change-Id: Iaeb50e86668bc458226695e780f15221148b6706
2019-11-19 11:45:02 -08:00
Satakshi
b846e83ff5 Assert only one bitmap is provided to ContentSuggestionsService.
Test: Took a screenshot and verified that AiAi gets invoked and the screenshot notification
shows smart actions.
Long press in Overview shows smart actions.
Bug: 141634285

Change-Id: I1e82f8bb837b8b032e6d25032642e47f492eb495
2019-11-19 10:27:11 -08:00
Satakshi Rana
2613be298f Merge "Screenshot Notification Smart Action: AiAi and - Sys UI integration" into qt-qpr1-dev
am: 73b4e1923a

Change-Id: Ib545347db4b8aa49f2467e785d0572ce2f5d5b25
2019-11-19 09:22:01 -08:00
Artur Satayev
751e55114c Add @UnsupportedAppUsage annotations for greylist.
go/cleanup-greylist-txt

These have already been greylisted, however due to bugs/omissions in the tooling have been kept in go/greylist-txt instead of being annotated in the code.

This is partial merge of aosp/Id6c1f5e403a0e66edb1102ee45f3bf19f244fb09. Telephony greylist cleanup has been done separately. Note that annotations outside of frameworks/base/ have been merged from AOSP.

Bug: 137350495
Test: m
Exempt-From-Owner-Approval: merge
Change-Id: I015c466e8b69cc0fed5e9d394ba865aad11d8ba6
2019-11-19 15:05:35 +00:00