Commit Graph

2353 Commits

Author SHA1 Message Date
Alex Buynytskyy
50e0244012 Merge changes from topic "LOADER_USAGE_STATS" into rvc-dev
* changes:
  Checking LOADER_USAGE_STATS before enabling read logs.
  Revert "Update the current API dump"
2020-04-02 00:36:26 +00:00
Alex Buynytskyy
5e860ba105 Checking LOADER_USAGE_STATS before enabling read logs.
Bug: b/152633648
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest
Change-Id: Ic747a51b97b785c627c95bddecc6834ef602ff30
2020-04-02 00:31:41 +00:00
Galia Peycheva
5a0549cd42 Merge changes Id6161f92,Ie0d8849a into rvc-dev
* changes:
  Introduce security checks to startDreamActivity
  Add verification for setting ACTIVITY_TYPE_DREAM
2020-04-01 10:18:19 +00:00
TreeHugger Robot
2240431010 Merge "Prevent dream service finishSelf before it was attached" into rvc-dev 2020-04-01 03:01:03 +00:00
Feng Cao
edb332c645 Replace Nullable bundle with NonNull and use Bundle.EMPTY
Test: atest InlineSuggestionsRequestTest
Bug: 152525467

Change-Id: Ie510e08ced8be4cc8df486f1acfa6eb330d194ef
2020-03-31 14:50:51 -07:00
TreeHugger Robot
c068acb6ae Merge "Add @UnsupportedAppUsage to the old inline APIs for compatibility" into rvc-dev 2020-03-31 21:23:09 +00:00
Sean Pont
4fca5e9d5b Merge "Add text attributes to Wallet manifest entry" into rvc-dev 2020-03-31 20:09:29 +00:00
Feng Cao
77636e89d0 Add @UnsupportedAppUsage to the old inline APIs for compatibility
Test: manually tested
Bug: 152799973

Change-Id: I6fed3fdbb9d3d872de8ed3bde8cbf45f5826975f
2020-03-30 23:08:21 -07:00
Sean Pont
b559e5689a Add text attributes to Wallet manifest entry
Bug: b/150331865
Test: atest CtsQuickAccessWalletTestCases
Test: manual - open quick access wallet

Change-Id: I76120c8d4d4f86eef37b312c61ae88934a53258f
2020-03-30 13:39:39 -07:00
Galia Peycheva
ed401cc16d Introduce security checks to startDreamActivity
This CL checks that the caller is the dream package and that the
device is dreaming when the activity is started.

isDream was instroduced in order to exempt the DreamActivity from
background start check. setAllowBackgroundActivityStart does that
more cleanly.

Bug: 152281628

Test: m && flashall && verify dream works

Change-Id: Id6161f923f3350d482b3452a78a792a541dcf1a1
2020-03-30 16:34:20 +00:00
Galia Peycheva
480275a197 Add verification for setting ACTIVITY_TYPE_DREAM
Bug: 152281628

Test: m && flash && check that dream starts normally
Change-Id: Ie0d8849aeb0c2de46a0e36bb0f9958091e0d28f4
2020-03-30 16:33:56 +00:00
Adam He
5a3a3f2239 Merge "Migrate android.view.inline to android.widget.inline" into rvc-dev 2020-03-30 06:53:35 +00:00
Adam He
f27433af0f Migrate android.view.inline to android.widget.inline
Old APIs are kept and marked as @hide + @removed to maintain
compatibility.

Bug: 151262653
Test: manual verification
Change-Id: Ia50a1f87c194211be5256e948d43fb54c1cbf941
2020-03-29 17:29:32 -07:00
Sergey Volnov
5532c77904 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
(cherry picked from commit 13f65b2974)
2020-03-29 12:50:41 +00:00
Nicholas Ambur
95ee3d7ad5 Merge "remove SoundTrigger public member variables" into rvc-dev 2020-03-27 20:54:22 +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
bce4b444e3 Merge "Add a config resource for controls package" into rvc-dev 2020-03-27 16:53:07 +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
Yurii Zubrytskyi
a7b10f5623 Merge "Dynamic args complete removal." into rvc-dev 2020-03-27 07:23:55 +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
Ahaan Ugale
56cfc32424 Merge "Don't filter pinned inline suggestions." into rvc-dev 2020-03-25 22:20:21 +00: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
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
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
c9af24d5ac Merge "Add galinap@ to dream owners" into rvc-dev 2020-03-20 11:10:09 +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
76b89b6d72 Merge "Remove the InlineActions API" into rvc-dev 2020-03-19 01:10:39 +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
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
TreeHugger Robot
82a087ddef Merge "Intercept the click from inline suggestion child view." into rvc-dev 2020-03-17 18:47:37 +00:00
Tony Mak
a10f2b981a Merge "Remove local text classifier and related tests." into rvc-dev 2020-03-17 11:50:58 +00:00
Feng Cao
5547632ca0 Intercept the click from inline suggestion child view.
* so that the parent view's onClick, onLongClick listeners
  as well as scrolling still works
* explicitly invoke child view's onClick and onLongClick
  listeners from the parent view's listeners

Test: manual verification
Bug: 150321630

Change-Id: Ie9e9b5a17fa15b502c51a2fbb6af2c09a77d567f
2020-03-16 16:09:28 -07:00
Mady Mellor
583092c980 Merge "Include bubble changes in ranking & move flagging to BubbleExtractor" into rvc-dev 2020-03-16 22:35:02 +00:00
Sean Pont
9d4fb03671 [Quick Access Wallet] Update docs, remove debug logs, and fix lint errors
Bug: 150134429
Bug: 149580068
Test: atest CtsQuickAccessWalletTestCases
Change-Id: I2173b270950a9174b7be67461ef8821ecde91194
2020-03-16 13:37:21 -07:00
Mady Mellor
56515c4334 Include bubble changes in ranking & move flagging to BubbleExtractor
Previously, only changes to the "allowBubbles" on the channel or
package would trigger a ranking change. This bit only indicates that
the notification is allowed to bubble -- it doesn't indicate that
the notification *is* a bubble. To allow active notifications to
become bubbles if the user changes the setting, we need to
flag them in response to ranking changes.

This CL moves the bubble flagging code into BubbleExtractor that
way the flag is always updated during ranking changes.

BubbleController listens to ranking changes and adds / removes bubbles
based on the ranking. The ranking needs to have an isBubble bit on
it because ranking changes won't pipe flag updates through. SysUI
uses this bit to flag the entry on SysUI's side.

Moves the shortcut getting / validating code into a helper class.

Also removes the inline reply requirement.

Test: NotificationManagerTest NotificationManagerServiceTest BubbleExtractorTest ShortcutHelperTest BubbleCheckerTest
Bug: 149736441
Change-Id: Ib5b62923c123187ae5f7073ec7ca50d7e20c04b1
Merged-In: Ib5b62923c123187ae5f7073ec7ca50d7e20c04b1
2020-03-16 20:19:39 +00:00
Tony Mak
293bdf360a Remove local text classifier and related tests.
1. libtextclassifier and libtextclassifier-java are no longer built
   into framework/base.
2. Removed local text classifier code
3. Removed local text classifier test code.
   All of them should be already moved to libtextclassifier/tcs side.
4. Unify all the TC related log tags to "androidtc".

BUG: 147412216

Test: mts-tradefed run mts-extservices
Test: atest frameworks/base/core/java/android/view/textclassifier
Test: Sanity test: Smart selection

Change-Id: Icb1076153f51d5674c8a6c58681ffed5aa772149
2020-03-16 20:16:17 +00:00
TreeHugger Robot
1660402a5c Merge "SurfaceControlViewHost: Respond to API feedback" into rvc-dev 2020-03-16 02:24:49 +00:00
Adam He
640c3b4f92 Merge "Hide autofill highlight if filling only the focused field." into rvc-dev 2020-03-13 18:52:57 +00:00