Commit Graph

2388 Commits

Author SHA1 Message Date
TreeHugger Robot
e5bd4999c5 Merge "Store hard refences in a static context and pass through only weak references during the Content Capture Sharing." 2020-03-27 23:00:21 +00:00
Nicholas Ambur
18e789c83a remove SoundTrigger public member variables am: 1e43767f10 am: f5bd2f0b5c am: 71a34a2072 am: cf40afdfa0
Change-Id: If14954ed779a4874b7abada226cdd0bd94d4aa84
2020-03-27 22:38:25 +00:00
Nicholas Ambur
f5bd2f0b5c remove SoundTrigger public member variables am: 1e43767f10
Change-Id: I7c8e9ae9196b66447aaa8fed019aaf5261d409da
2020-03-27 21:19:14 +00:00
Automerger Merge Worker
5d8c7cd302 Merge "Merge "Moving the NO_SESSION_ID constant from ContentCaptureSession to ContentCaptureManager" into rvc-dev am: d347c7acaf am: 25bdce7fcf am: aa4391ae70" into rvc-qpr-dev-plus-aosp am: 415d437fc2
Change-Id: Ide81ce96c1eb37860ed44ff724bb48ec215fbc1c
2020-03-27 19:31:00 +00:00
Galia Peycheva
66b1dfe6aa Merge "Change TYPE_DREAM logic to use ACTIVITY_TYPE_DREAM" into rvc-dev 2020-03-27 18:34:49 +00:00
TreeHugger Robot
d347c7acaf Merge "Moving the NO_SESSION_ID constant from ContentCaptureSession to ContentCaptureManager" into rvc-dev 2020-03-27 18:23:33 +00:00
Fabian Kozynski
2b23a4f74a Merge "Add a config resource for controls package" into rvc-dev am: bce4b444e3 am: ff99d96cdc am: 902d92c1c6 am: 734da30c26
Change-Id: I07f1c705a97deecb7ed87b5496bd97735328b4ec
2020-03-27 17:55:17 +00:00
Fabian Kozynski
bce4b444e3 Merge "Add a config resource for controls package" into rvc-dev 2020-03-27 16:53:07 +00:00
Galia Peycheva
7c901e8488 Merge "Change TYPE_DREAM logic to use ACTIVITY_TYPE_DREAM" 2020-03-27 16:34:56 +00:00
Sergey Volnov
13f65b2974 Store hard refences in a static context and pass through only weak
references during the Content Capture Sharing.

Motivation: if the remote app is killed, we don't want a possibility of
system server holding a stroing reference (through a reference chain)
to large objects in that app. Therefore what's send in the binder has to
be a weak reference. And we will store a hard reference to those objects
in the client app's static context.

Storing hard references to objects in system_servier is less critical, because that is not going to be killed.

Bug: 148265162
Test: covered by CTS tests
Change-Id: Ie561aab6019d191cf8659fb350e045089e7781ed
2020-03-27 16:11:24 +00:00
Mihir Patel
6f33b10ab5 Moving the NO_SESSION_ID constant from ContentCaptureSession to ContentCaptureManager
Bug: 150599209
Test: manual
Change-Id: I3e7b67cf92ddb6405829ec3c6ed2c491b4e77cab
2020-03-27 15:50:43 +00:00
Fabian Kozynski
a9be39d224 Add a config resource for controls package
This allows to configure the recipient of the ADD_CONTROL intent.

Test: manual
Test: atest ControlProviderServiceTest
Fixes: 152549957
Change-Id: I29b549271da53d844d564df819cf9c1c9bc81968
2020-03-27 10:31:38 -04:00
Galia Peycheva
70b55719db Change TYPE_DREAM logic to use ACTIVITY_TYPE_DREAM
Bug: 151750434

Test: m && flash && check that dream starts normally

Merged-In: Ic4561cd0594d7a3465454221db256499dd06c145
Change-Id: I58a8795f2801b598be5c958b1a854e8f84f31940
2020-03-27 11:26:44 +00:00
Galia Peycheva
e059cd3714 Change TYPE_DREAM logic to use ACTIVITY_TYPE_DREAM
Bug: 151750434

Test: m && flash && check that dream starts normally
Change-Id: Ic4561cd0594d7a3465454221db256499dd06c145
2020-03-27 12:19:52 +01:00
Yurii Zubrytskyi
bea2e823f6 Merge "Dynamic args complete removal." into rvc-dev am: a7b10f5623 am: 4604a9bbe7 am: 082322b5bd am: 22c5d09f92
Change-Id: Iab9be6102f8335f159dcc9f66efb6c19d88c6b8e
2020-03-27 08:37:27 +00:00
Yurii Zubrytskyi
a7b10f5623 Merge "Dynamic args complete removal." into rvc-dev 2020-03-27 07:23:55 +00:00
Matt Pietal
29da18d556 Merge "Controls UI - Support remaining confirmation dialogs" into rvc-dev am: e1e4e04ffe am: f5b281a4ca am: 1695091f62 am: 4ec93c1161
Change-Id: I2dd8c7b299107daf4802d95886dc5d64ec496def
2020-03-26 23:59:00 +00:00
Alex Buynytskyy
686a537376 Dynamic args complete removal.
Bug: b/150470163
Test: atest PackageManagerShellCommandIncrementalTest PackageManagerShellCommandTest
Change-Id: I122f37f210ef9b8b02d565c34245ebeec26d83b2
2020-03-26 16:28:33 -07:00
Nicholas Ambur
1e43767f10 remove SoundTrigger public member variables
Bug: 150127026
Test: boot and verify soundtrigger hotword is functional

Change-Id: I04061cdb3eba02aac0f08de96f957e2b74c70a12
2020-03-26 19:44:31 +00:00
Matt Pietal
ea87e741f1 Controls UI - Support remaining confirmation dialogs
Add support passphrase and ack dialogs. Passphrase should use the
exact same text and dialog as the PIN dialog, only defaulting to text
input.

Bug: 152517004
Test: Controls Mock App supports launching all dialog types
Change-Id: I3ebd51d656818f8edad9b70ccc8f0b89d6d8acc6
2020-03-26 14:55:20 -04:00
Leon Scroggins
2a1b63c7df Merge "Convert ScreenshotGraphicBuffer to ScreenshotHardwareBuffer" 2020-03-26 17:29:14 +00:00
Automerger Merge Worker
4f0339654d Merge "Merge "Don't filter pinned inline suggestions." into rvc-dev am: 56cfc32424 am: 081e6b88ac am: a0c14104a6 am: 42ce1c3280" into rvc-qpr-dev-plus-aosp am: bc1ff3a98d
Change-Id: I57595052e37e13cc7fdfe4f1f0e14b7ae0269f8a
2020-03-25 23:35:53 +00:00
Ahaan Ugale
56cfc32424 Merge "Don't filter pinned inline suggestions." into rvc-dev 2020-03-25 22:20:21 +00:00
Leon Scroggins III
46c927ed33 Convert ScreenshotGraphicBuffer to ScreenshotHardwareBuffer
Bug: 150395371
Test: make && flashall

Bitmap is replacing methods that use a hidden GraphicBuffer with ones
that use the public HardwareBuffer. ScreenshotGraphicBuffer is just a
holder for GraphicBuffer and some metadata; switch it to hold a
HardwareBuffer (and rename to match).

Remove GraphicBuffer#createFromExisting, which was only called by
ScreenshotGraphicBuffer#createFromNative. Also remove JNI references to
that method, which were no longer in use.

Switch uses of GraphicBuffer that retrieve it from a
ScreenshotGraphicBuffer to HardwareBuffer.

Changes are almost entirely mechanical:
- (Screenshot)GraphicBuffer -> (Screenshot)HardwareBuffer
- GraphicBuffer#destroy -> HardwareBuffer#close
- getGraphicBuffer -> getHardwareBuffer

When creating a Snapshot in SurfaceFreezer, use the ColorSpace of the
ScreenshotHardwareBuffer.

Remove GraphicBuffer#createFromExisting. This is no longer necessary,
and although it was marked UnsupportedAppUsage, go/nonsdk-dash shows no
usage.

Change-Id: I41cb03fb65432d208820a428783de82a9f152035
2020-03-25 13:45:12 -04:00
Ahaan Ugale
8893d30bd5 Don't filter pinned inline suggestions.
Test: manual
Test: atest android.autofillservice.cts.inline
Bug: 152350380
Change-Id: I98b2e18bef4f9b291fe93e8b8d9aa1331630a7d8
2020-03-24 19:27:26 -07:00
Automerger Merge Worker
3be8515084 Merge "Merge changes from topic "soundtrigger-hal-error" into rvc-dev am: bf2c076c0c am: 9de51deb54" into rvc-d1-dev-plus-aosp am: f456cdadfb am: 4802f9012c
Change-Id: Iaa7ff3bec5f6f67d9cb63ef1a0a2bf6987cf9675
2020-03-25 01:18:05 +00:00
Svetoslav Ganov
fcad3fe197 Merge "Add APIs to move suggestions below/above window" into rvc-dev am: 09b9570862 am: d957d7ca3a am: 392f324836 am: 8158dbc8d3
Change-Id: I1818b50575e467a7005ad1b71a65e749653519c5
2020-03-24 02:23:52 +00:00
Nicholas Ambur
1e03bc0539 Crash service on SoundTriger HAL fatal error
Throwing an exception is not enough in this case. When the HAL
behaves unexpectedly, the system service and the HAL must be
reset and the client must be notified. Without a full reset in
this catastrophic case, the state of the HAL and the system service
cannot be guaranteed to the client.

Bug: 150569186
Test: Intentionally load an incompatible voice model and confirm the
device can recover.
Change-Id: Ia7c3f25e48f04bf32a96c64ec998fdfa52459685
2020-03-23 13:20:04 -07:00
Svetoslav Ganov
09b9570862 Merge "Add APIs to move suggestions below/above window" into rvc-dev 2020-03-23 19:10:03 +00:00
TreeHugger Robot
6d376e1d7e Merge "Add API to start pendingIntent for attribution from client App." into rvc-dev am: 3d4c526bf8 am: 47aa1615d0 am: c44a44ca13 am: f4d479d336 am: ad4dd3d837
Change-Id: I85f5e5802dbdd51b9eee917d47e912ca0621d4b7
2020-03-21 01:17:23 +00:00
Abhijeet Kaur
926cd2e03f Merge "Delay volume state changed broadcasts until the Storage Service processes it" into rvc-dev am: d5b24870c6 am: 31a4043e83 am: 2705013455 am: 5261bfea0b am: 1ebb8975ff
Change-Id: Idb616056f9e0109b9638f98c9e7c6d33d42788a3
2020-03-21 00:40:56 +00:00
TreeHugger Robot
3d4c526bf8 Merge "Add API to start pendingIntent for attribution from client App." into rvc-dev 2020-03-20 23:05:31 +00:00
Adam He
d41ce92d5c Add API to start pendingIntent for attribution from client App.
Bug: 150321630
Test: manual verification
Change-Id: I99f8529c94ef0cc8721d58af7f3c57ae43f4b6dd
2020-03-20 12:36:08 -07:00
Svet Ganov
a57dadde24 Add APIs to move suggestions below/above window
Based on feedback from developers (GBoard) there are cases
where they want the app UI to cover the suggestions during
animations (keypress popup should cover the suggestion area).

This change adds a dedicated InlineContentView that is
returned when a suggestion is inflated. This view has APIs
to dynamically move its surface above/below the host window.
Also the new InlineContentView has no public constructors
as these are always created by the system via other APIs.
Finally, the InlineContentView only exposes the surface
control of the inlined UI which is useful for reparenting
to achieve clipping of multiple such views in a given area
on the screen.

When the content surface is below the app window it is not
be interactive and all touches go to the hosting app. In this
state the app can draw on top of the suggestions. When the
content surface is above the app window it is interactive
and the hosting app cannot render on top of it.

While at this this also fixes the case where a surface can
cover the suggestion surface even if it was on top of the
app window. Now if the embedded content surface is covered,
even partially, by another one the embedded UI is not
interactive.

bug:15140337

Test: atest AutofillTestCases

Change-Id: If1db185506ae6916b9d655ab647dd59b626cf61e
2020-03-20 12:29:07 -07:00
Abhijeet Kaur
29dc089617 Delay volume state changed broadcasts until the Storage Service processes it
In R, all file path access is proxied through the Media Provider database.
This change ensures that the filesystem is indexed in the database
before broadcasting volume state mounted. This is essential as we do
not want apps to access the volume before the data is ready.

Similarly, the Storage Service processes other volume state changes before
broadcasting to other apps.

Since we want to block volume state changed broadcasts until the volume
is processed/scanned by the Storage Service, which may take time, so we
handle volume state changed in a separate thread (so as to not block its
callers like vold).

Bug: 145194312
Test: builds
Test: atest AdoptableHostTest
Test: atest com.android.tests.fused.host.FuseDaemonHostTest
Change-Id: I1677fdd5672cea531e98cda76d967af13e5fac9e
2020-03-20 15:54:44 +00:00
Jorim Jaggi
f6beb7fa6f Merge "Add galinap@ to dream owners" into rvc-dev am: c9af24d5ac am: f968b88c85 am: aa79b3a043 am: f123385fe0
Change-Id: I9c3479ef1ac55457d89be0b4ac4bf65751389fd2
2020-03-20 11:54:35 +00:00
Jorim Jaggi
c9af24d5ac Merge "Add galinap@ to dream owners" into rvc-dev 2020-03-20 11:10:09 +00:00
Galia Peycheva
a6d12b5553 Merge "Hide all insets when the dream is activated" into rvc-dev am: 8c224313f7 am: f781df0667 am: 09c5484891 am: c672e94eba
Change-Id: Ia7b82975728afea5f6b444c57849d096ed8df61a
2020-03-20 10:57:24 +00:00
Galia Peycheva
d1a6da5692 Hide all insets when the dream is activated
By default we hide all insets while the DreamActivity is active.
The client app has access to the main window of the activity, so it
could override this.

Bug: 151749301

Test: m && flash && start the screensaver and verify that nav bar is
gone

Change-Id: Iecdc5f67c976de5477523e9745a9e8733703c11f
2020-03-20 09:10:55 +01:00
Jorim Jaggi
4a23d522dd Add galinap@ to dream owners
Test: n/a
Bug: 0
Change-Id: Id98aa17ce83410de6318f85d9f4edb957041dc6b
2020-03-19 22:02:47 +00:00
TreeHugger Robot
34e00d9adb Merge "Remove the InlineActions API" into rvc-dev am: 76b89b6d72 am: 8fd8484c70 am: 3c777992d1 am: 466fc1c4b9
Change-Id: Ic0fd595c908aa73ea8500d42439e0a834ec349e7
2020-03-19 01:43:36 +00:00
TreeHugger Robot
76b89b6d72 Merge "Remove the InlineActions API" into rvc-dev 2020-03-19 01:10:39 +00:00
Sean Pont
4d96425ce2 Merge "Add a constant representing a card update for the QuickAccessWallet." into rvc-dev am: 75ae54a10c am: 455c1f4641 am: 30efb96a18 am: dd357d44c7
Change-Id: I06e9683d9417fab195ea526a36dc464addb0398b
2020-03-19 00:26:10 +00:00
Sean Pont
75ae54a10c Merge "Add a constant representing a card update for the QuickAccessWallet." into rvc-dev 2020-03-18 23:22:17 +00:00
Sean Pont
74c4a4fb65 Add a constant representing a card update for the QuickAccessWallet.
Bug: 151742762
Test: atest CtsQuickAccessWalletTestCases
Change-Id: I944da80ee782c00f43299a0c4b01eef59b79e463
2020-03-18 13:57:19 -07:00
Yurii Zubrytskyi
75674be988 Merge "Removing race condition accessing shared binder object." into rvc-dev am: 1d6e6bfe96 am: 92a23de26f am: 592fe5d0ef am: bd0f07a650
Change-Id: Ie789e954d3373a0d24a73f50eee57a2774ea5edd
2020-03-18 20:21:29 +00:00
Alex Buynytskyy
b6e02f7b09 Removing race condition accessing shared binder object.
Test: incrementally installing two apks at the same time
Bug: b/150411019
Change-Id: I81231edf7a32470542ec529aa305b4f9fb2b80e3
2020-03-18 09:01:36 -07:00
Feng Cao
bc6900480d Remove the InlineActions API
* Use the original authentication instead
* Also support sending intent from augmented autofill, with the
  limitation of not supporting sending back the FillResponse or
  Dataset from the activity result

Test: manual
Test: atest android.autofillservice.cts.inline
Test: atest android.autofillservice.cts.FillResponseTest
Test: atest android.autofillservice.cts.augmented
Test: atest android.autofillservice.cts.LoginActivityTest
Bug: 150499490

Change-Id: I81031ff456adb4c07f530188dda80e97cc84b707
2020-03-17 21:12:47 -07:00
Automerger Merge Worker
a5397afebf Merge "Intercept the click from inline suggestion child view." into rvc-dev am: 82a087ddef am: 5b425d9d41 am: 803b0f1b83 am: b569c2197f
Change-Id: I318f0cefbe62f003cfc1cf16bb4ec2c641139f60
2020-03-17 19:40:00 +00:00
TreeHugger Robot
82a087ddef Merge "Intercept the click from inline suggestion child view." into rvc-dev 2020-03-17 18:47:37 +00:00