Commit Graph

1898 Commits

Author SHA1 Message Date
Leon Scroggins
6e5efabcfd Merge "Pass ColorSpace along with HardwareBuffers" into qt-dev 2019-05-02 15:15:02 +00:00
Ian Pedowitz
8b3b7771c1 Merge "Revert "RESTRICT AUTOMERGE Remove deprecated System APIs added in Q."" into qt-dev 2019-05-02 00:59:09 +00:00
Ian Pedowitz
79a19effee Revert "RESTRICT AUTOMERGE Remove deprecated System APIs added in Q."
This reverts commit 02014297fd.

Reason for revert: QT SDK Finalization. Will be merged again on/after May 13th

Bug: 129975435
Change-Id: Ia054b193a982dee669630555974d2d7831fe2b50
2019-05-02 00:54:39 +00:00
Ian Pedowitz
3f38719b74 Merge "RESTRICT AUTOMERGE Remove deprecated System APIs added in Q." into qt-dev 2019-05-02 00:53:29 +00:00
Svetoslav Ganov
ec0bd2981f Merge "Address API conucil feedback" into qt-dev 2019-05-01 19:02:40 +00:00
Zimuzo
def38bed7d Make PackageWatchdog variables configurable
We leverage DeviceConfig to configure the following variables:
    watchdog_trigger_failure_duration_millis
    watchdog_trigger_failure_count
    watchdog_explicit_health_check_enabled
    watchdog_explicit_health_check_timeout_millis

Fix PackageWatchdogTest accordingly.

Bug: 129335707
Test: added Log to PackageWatchdog that prints the received
value from DeviceConfig and made sure it matches the expected
Test: atest com.android.server.PackageWatchdogTest
Merged-In: I8a57b87682a4c636a61afdd7f93700459ccfddeb

Change-Id: I8a57b87682a4c636a61afdd7f93700459ccfddeb
2019-05-01 12:30:30 +00:00
Svet Ganov
07e5fb253c Address API conucil feedback
Test: compiles

bug:131683068

Change-Id: I02afd0cc392e4fadd60de0d9802748452262543b
2019-04-30 11:16:21 -07:00
Sudheer Shanka
02014297fd RESTRICT AUTOMERGE Remove deprecated System APIs added in Q.
Test: Builds, boots
Bug: 129975435
Change-Id: I4bfd0bfbbc52b7822477ec0c70a08de6f85a3672
2019-04-30 10:49:28 -07:00
Svet Ganov
3b6be08c3d Address API council feedback
Make the get actions API async. Also fix a potenrial
memory leak when exchaning callbacks.

Test: atest CtsVoiceInteractionTestCases

bug:129705716

Change-Id: I91f1beb3dc7a395c6c6307ca4601fe7b7097f6e3
2019-04-28 23:01:30 -07:00
Leon Scroggins III
3e2d7b7fe0 Pass ColorSpace along with HardwareBuffers
Bug: 130148101
Bug: 120904891
Test: I3bdb6a7edbab4b9b8f13d4597e5987e6db6fe928

Bitmap#wrapHardwareBuffer defaults to using the SRGB ColorSpace (i.e. if
null is supplied), but it's possible that where the HardwareBuffer was
originally used, it was associated with a different ColorSpace. Update
clients of this API to pass that ColorSpace.

Pass the ColorSpace's ID. This results in only supporting Named
ColorSpaces, which matches some of our other ColorSpace support, and
should be enough for most use cases.

Change-Id: I02460f079ed467199f368b4a4fd7708d6fa5433a
2019-04-25 16:48:08 +00:00
Zimuzo Ezeozue
0f6db7d1dd Merge "Change watchdog PackageInfo to PackageConfig" into qt-dev 2019-04-25 09:58:52 +00:00
Sunny Goyal
d40c345536 [DO NOT MERGE] Adding API for defining and invoking DirectActions
DirectActions are abstract actions defined by an Activtiy. The
actual definition of these actions will be available through
the support lib.

This API provides a secure channel for system or assistant to
interact with a running app using these Actions.

Test: atest CtsVoiceInteractionTestCases
Test: added android.voiceinteraction.cts.DirectActionsTest

Bug: 129705716

Change-Id: I0ce568e0d8f41e0fe46306052016a74c7b394efa
2019-04-25 00:06:02 -07:00
Zimuzo
1a9aac7b33 Change watchdog PackageInfo to PackageConfig
Test: atest PackageWatchdogTest
Bug: 131165818
Change-Id: Ie3a385468a0de05bc55862e6f71513077d44bbc0
2019-04-24 20:44:52 +01:00
TreeHugger Robot
211ddf7040 Merge "Unhardcoded Augmented Autofill debug constants." into qt-dev 2019-04-17 19:40:08 +00:00
TreeHugger Robot
45683e40f1 Merge "Added example for ContentCaptureService.SERVICE_META_DATA" into qt-dev 2019-04-16 21:13:44 +00:00
TreeHugger Robot
b6abb2c59c Merge "make onGetSupportedVoiceActions return @NonNull and return empty set by default" into qt-dev 2019-04-16 15:28:22 +00:00
jiayuzhou
5422f30c14 make onGetSupportedVoiceActions return @NonNull and return empty set by default
Test: make
Fix: 124302147

Change-Id: Ie91184310a1709cd62cd7d89911beda5c4e2d513
2019-04-15 20:43:48 -07:00
TreeHugger Robot
805c739ada Merge "Ui should be UI in the javadoc" into qt-dev 2019-04-16 01:20:05 +00:00
TreeHugger Robot
575022f7d1 Merge "Remove the disableSelf() api" into qt-dev 2019-04-16 00:49:21 +00:00
TreeHugger Robot
11141109f4 Merge "DO NOT MERGE - Removed ContentCapture support from standard SDK toolkit." into qt-dev 2019-04-15 23:42:14 +00:00
jiayuzhou
21cbc63602 Ui should be UI in the javadoc
Fixes: 124883615.
Test: pre-submit.
Change-Id: I4cdc6353a3d4382a53a8e6d7c65a447acb90ee2c
2019-04-15 16:04:31 -07:00
Alex Salo
2b7dbe85a2 Remove the disableSelf() api
No longer needed, the logic will be handled in AttentionDetector which
implements the feature. Settings app makes sure to grey out the setting
if does not have sufficient permissions.

Bug: 130350903, 130246574
Test: manually confirmed, atest AttentionDetectorTests, make RunSettingsRoboTests
Change-Id: I324223af01b5198e3af0b84d47120f307f3aa71a
2019-04-15 16:02:41 -07:00
Jiuyu Sun
b5b7312195 Merge "Address comments from API review." into qt-dev 2019-04-15 21:02:42 +00:00
Felipe Leme
1c7182aaa7 Unhardcoded Augmented Autofill debug constants.
Bug: 123100811
Test: manual verification

Change-Id: I872276c7ec96666d7cd4a264237ef97fca413603
2019-04-15 12:13:46 -07:00
Holly Jiuyu Sun
c67c86c7e3 Address comments from API review.
1) The newly added onDownloadSubscription should not be abstract.
2) The old onDownloadSubscription should not throw exception.

Bug: 124325362
Test: on phone
Change-Id: Ic905b5d317e10aefe5dca013948cd7d340149368
2019-04-15 10:18:24 -07:00
Felipe Leme
8b45658140 Added example for ContentCaptureService.SERVICE_META_DATA
Test: echo 'in TreeHugger we trust'
Fixes: 130247765

Change-Id: I9a6f4f710bb5b6de4621257bc0d375ceb230c5ca
2019-04-15 10:12:50 -07:00
Felipe Leme
ef1c0b36ab DO NOT MERGE - Removed ContentCapture support from standard SDK toolkit.
Test: atest CtsContentCaptureServiceTestCases
Test: m update-api
Test: make ds-docs

Fixes: 129982633

Change-Id: I5a0fa4231d0222638830c1abd8015d9f2635996a
2019-04-15 09:36:25 -07:00
Abodunrinwa Toki
b7f24a557e Merge "Null annotations in TC APIs." into qt-dev 2019-04-12 17:36:24 +00:00
TreeHugger Robot
73913e3bf6 Merge "Fixing HardwareBuffer leak when creating a bitmap" into qt-dev 2019-04-11 21:06:40 +00:00
TreeHugger Robot
e8c5311cb0 Merge "Rename capabilities to adjustments" into qt-dev 2019-04-10 22:22:25 +00:00
Sunny Goyal
62915b28e0 Fixing HardwareBuffer leak when creating a bitmap
Callers are supposed to close the hardware buffer themselves. Creating
a utility method around this

Bug: 123874711
Test: No more leak warning on device
Change-Id: I2cf215f0646222f63e564a58edab1ffffa396ff3
2019-04-10 21:59:57 +00:00
TreeHugger Robot
0444bcc6d4 Merge "Add @CurrentTimeMillisLong to new API method" into qt-dev 2019-04-10 21:29:53 +00:00
Abodunrinwa Toki
9aed55ebd9 Null annotations in TC APIs.
Fixes: 126699077
Fixes: 126698613
Test: none
Change-Id: I5eab3d7e4e15995e0b5a163dbfdc2b2923ddc136
2019-04-10 21:27:15 +01:00
Ned Burns
001277f606 Add @CurrentTimeMillisLong to new API method
Addressing API council feedback

Test: None
Bug: 123223649
Change-Id: I797e293be1fbb552c54d010a379d8e87a201a57c
2019-04-10 14:33:02 -04:00
Julia Reynolds
088c448e79 Rename capabilities to adjustments
To match existing API

Test: make, cts
Fixes: 130224929
Change-Id: I881ce11b583b389ee43bad6b45f837c85f949aa5
2019-04-10 14:05:39 -04:00
Julia Reynolds
dc6adc6ca8 Adjust testapis/permissions for CTS tests
Test: cts
Bug: 127341023
Change-Id: Ice19dc337a06a3f20edca583ecbe5ef3148fd96d
2019-04-09 17:55:39 +00:00
Adam He
168f7e48ac Merge "Added documentation to note onDisconnected() should not make calls to their respective managers." into qt-dev 2019-04-09 17:37:07 +00:00
TreeHugger Robot
7fe981bf9e Merge "Fixed IFillCallback to be oneway calls." into qt-dev 2019-04-09 04:20:19 +00:00
Adam He
2dbba23540 Document runtime exception being thrown on afs.getFillEvents().
Fixes: 128029710
Test: atest CtsAutoFillServiceTestCases
Change-Id: I65936671e5d12a5c6b597bd6f4c7c97cd66f0b95
2019-04-08 15:33:24 -07:00
Adam He
90134b2ac5 Fixed IFillCallback to be oneway calls.
Fixes: 77587065
Test: atest CtsAutoFillServiceTestCases
Change-Id: Ifab9bdcb142af4280580c412239c2c72b5f5fda6
2019-04-08 13:35:24 -07:00
Adam He
5023abdf30 Added documentation to note onDisconnected() should not make calls to
their respective managers.

Test: manual verification
Fixes: 128911682
Change-Id: I780c6f78a1acd675aa13dcfc6222e220069bf611
2019-04-08 13:10:39 -07:00
Zimuzo
cd6b11575f Add supported PackageInfo to ExplicitHealthCheckService API
With the change in I4f13638598037acaeb30d61c8d5178f45882fcba
to separate the PackageWatchdog package expiry deadline from the explicit
health check deadline. It would be cleaner for ExtServices to supply
this deadline per-package. We now do that as a field in
PackageInfo.

Bug: 120598832
Test: Builds

Change-Id: I29e2d619a5296716c29893ab3aa2f35f69bfb4d7
2019-04-05 16:05:45 +00:00
Felipe Leme
67e9426eb6 Merge "Implemented ContentCaptureConditions APIs." 2019-03-29 06:20:49 +00:00
Chen Xu
9c4a902bef Merge "scrub pii (imsi) from carrierIdentifier logging" 2019-03-29 05:37:54 +00:00
Felipe Leme
a8d33c24f8 Implemented ContentCaptureConditions APIs.
Test: atest ContentCaptureConditionTest \
       CustomViewActivityTest#testContentCaptureConditions \
       CustomViewActivityTest#testContentCaptureConditions_otherPackage
Test: atest CtsContentCaptureServiceTestCases # sanity check (minus usual flakiness)

Fixes: 129266058

Change-Id: I199c3ae99fa6b407da64562a71d8d7581ebf80e6
2019-03-28 18:48:31 -07:00
chen xu
61b2c86719 scrub pii (imsi) from carrierIdentifier logging
Bug: 129229239
Test: Manual
Change-Id: I642d60e4ba1001bfd481aada87fa08dbd19098be
2019-03-28 16:28:45 -07:00
Felipe Leme
080542019a Refactored ContentCapture sessions to use an int id.
This is an internal change that will save memory:
- ids themselves are smaller (one int vs ~20 chars string)
- can be mapped with SparseArrays
- parcel objects will be smaller

Test: atest CtsContentCaptureServiceTestCases \
  FrameworksCoreTests:android.view.contentcapture.ContentCaptureEventTest \
  FrameworksCoreTests:android.view.contentcapture.ContentCaptureSessionTest

Fixes: 121197119

Change-Id: I4b4367bd7238400ade385c2bcc4b0595ed0b1c7b
2019-03-28 13:50:06 -07:00
TreeHugger Robot
b17c4244af Merge "Fix WallpaperEngine object leaked during stress test." 2019-03-28 01:13:08 +00:00
Fabian Kozynski
415fce8dbc Merge "Clarified docs for ACTION_QS_TILE_PREFERENCES" 2019-03-27 19:20:20 +00:00
wilsonshih
b72ff9c60f Fix WallpaperEngine object leaked during stress test.
The wallpaper engine object may not have released due to someone continuously
change wallpaper with the same component, such as image wallpaper.
In this case, server side may receive attached engine to a connection, however,
it could already detached.

Example sequence:
bind wallpaper (A) connection (C1)
  detachWallpaperLocked(lastwallpaper)
  lastwallpaper = A + C1
bind wallpaper (A) connection (C2)
  detachWallpaperLocked(lastwallpaper = A + C1)
  last = A + C2
  attachEngine to C1
Then the connection C1 will never be released because it was be detached.

We can fix this by notify that WallpaperService is detached.
When it was detached, it shall destroy its engine if there is, and doesn't attach
back to WallpaperManagerService anymore.

Bug: 128974839
Test: run atest WallpaperManagerTest, then dump
adb shell dumpsys activity service com.android.systemui/com.android.systemui.ImageWallpaper
to make sure there is only one WallpaperEngine object.

Change-Id: Ifea201fe8860af11376717d344fee77182b38e54
2019-03-27 10:43:21 +08:00