Commit Graph

2308 Commits

Author SHA1 Message Date
Automerger Merge Worker
f0b263a688 Merge "add permission requirement for java writeData method" into rvc-dev am: 27c83fce04 am: cc1d45576a am: 98d04f904e am: c7de051c39
Change-Id: I03747d5f397248c7bd99c97bfbd5772c77cc402f
2020-03-11 22:38:29 +00:00
Automerger Merge Worker
dab5e4f545 Merge "Temporary fix to disable augmented autofill requests coming from password fields." into rvc-dev am: f5589a71e0 am: 09822e4df1 am: a4ba34860f am: d059f5dfd1
Change-Id: I906a378e22bbbd5047dc49e9ac4fcade45a76138
2020-03-11 22:37:56 +00:00
TreeHugger Robot
27c83fce04 Merge "add permission requirement for java writeData method" into rvc-dev 2020-03-11 21:49:27 +00:00
TreeHugger Robot
f5589a71e0 Merge "Temporary fix to disable augmented autofill requests coming from password fields." into rvc-dev 2020-03-11 21:43:58 +00:00
Automerger Merge Worker
f4d70485ca Merge "Remove @UnsupportedAppUsage from DreamService.setWindowless" into rvc-dev am: 444bfa05ec am: 210175a206 am: 81c49edb82 am: d5562a3ec1
Change-Id: Iaaf73c71db0fa4a716bdc88885be9cec062d5805
2020-03-11 20:06:06 +00:00
Galia Peycheva
444bfa05ec Merge "Remove @UnsupportedAppUsage from DreamService.setWindowless" into rvc-dev 2020-03-11 16:05:36 +00:00
Galia Peycheva
a81d7de0a0 Remove @UnsupportedAppUsage from DreamService.setWindowless
setWindowless is a hidden API since 2014 and was marked
@UnsupportedAppUsage in 2018. It is not known to be used anywhere as
reported by go/nonsdk-dash. This CL removes the @UnsupportedAppUsage.

Bug: 151221085

Test: m

Change-Id: Ic95a2d9da4eb9f4abeba75a35ebe1f8921fb2416
2020-03-11 15:55:17 +00:00
Automerger Merge Worker
4466c5b4d4 Merge "Revert "Revert "Notification statsd logs: Notification panel.""" into rvc-dev am: 98f21c2474 am: 829fa681d0 am: af3921f5a2 am: 2dc8671234
Change-Id: I12c29f582b169068ab0e327011bd00a38b0209ed
2020-03-10 22:20:37 +00:00
TreeHugger Robot
98f21c2474 Merge "Revert "Revert "Notification statsd logs: Notification panel.""" into rvc-dev 2020-03-10 20:09:43 +00:00
Adam He
ef0fe20852 Temporary fix to disable augmented autofill requests coming from
password fields.

Bug: 141703197
Test: atest android.autofillservice.cts.augmented
Change-Id: I05330988899a4c21d69c655a39c29fd0fea298c3
2020-03-10 10:47:09 -07:00
Songchun Fan
a2ef115c0f add permission requirement for java writeData method
Write data to an installation file requires INSTALL_PACKAGES permission.

Test: builds
BUG: 149299379
Change-Id: I8e6d6681cc26b748375cc1a0569033a18c3bb670
2020-03-10 10:00:09 -07:00
Automerger Merge Worker
88da78569e Merge "Added @IntDef for DATA_SHARE_ERROR_ constants" into rvc-dev am: 4a4e1e45d0 am: 279f3dcc8b am: fd59e23273 am: 9a3f690ab2
Change-Id: If504d51dcfc93c99c0c88188c45733ce71cda6eb
2020-03-10 12:16:10 +00:00
Yara Hassan
4a4e1e45d0 Merge "Added @IntDef for DATA_SHARE_ERROR_ constants" into rvc-dev 2020-03-10 11:04:12 +00:00
Automerger Merge Worker
112a6e6bcf Merge "Create InlineAction class to wrap the IntentSender and the presentation" into rvc-dev am: e5150ded92 am: ab80e7c6b0 am: 44bde9eb7b am: 252a2369aa
Change-Id: I9a1d019168830c4e77f158f73eb66dcd8fee236c
2020-03-10 05:46:25 +00:00
Feng Cao
88872971a7 Create InlineAction class to wrap the IntentSender and the presentation
* Before this change, we were putting the action intent in the Slice,
  but we realize that's not the best place as slice is only meant for
  data representation, and intent does not fall into that
* This patch includes the code to actually fire the pending intent when
  action suggestion is clicked. However, it'll only work if the fill
  service have the SYSTEM_ALERT_WINDOW permission for the intent to
  be fired when it is in the background. We will move it to be fired
  from the client foreground app in a separate patch

Test: manual verification
Test: atest android.autofillservice.cts.inline
Bug: 150499490

Change-Id: I411a7ee05e783f7de94a54064c44a6126afe0b12
2020-03-09 17:32:31 -07:00
Automerger Merge Worker
acef22e117 Merge "Change setter methods in the FillResponse builder to @NonNull" into rvc-dev am: 3a68e2d0de am: eb63da8a79 am: 6e17e14032 am: 6bf3d25cb1
Change-Id: I88e31031a4af12175b72fff37d1e979645be357d
2020-03-09 23:12:24 +00:00
Automerger Merge Worker
5d1b68ef85 Merge changes I696e3c5d,Iea7a5610,If627e613 into rvc-dev am: 941e815aab am: bdf6bff00b am: a1c5855a56 am: 8af4d27402
Change-Id: Ia30c3dad224713f10bd787fa28514979664c9160
2020-03-09 23:07:47 +00:00
Automerger Merge Worker
1155c55b84 Merge "Controls - Remove support for mock" into rvc-dev am: 1667d235ea am: 40b6657698 am: 81bb5b48ce am: ad7eb9d0bc am: d9b3f8e69a
Change-Id: Ie92b581c9f6e78b45cfdefd4a83c39cc7d0e5ed6
2020-03-09 22:27:45 +00:00
TreeHugger Robot
3a68e2d0de Merge "Change setter methods in the FillResponse builder to @NonNull" into rvc-dev 2020-03-09 22:12:30 +00:00
TreeHugger Robot
941e815aab Merge changes I696e3c5d,Iea7a5610,If627e613 into rvc-dev
* changes:
  update javadoc for InstallationFile
  fix error message
  remove incremental.check_loader
2020-03-09 21:47:43 +00:00
Feng Cao
a355711adc Change setter methods in the FillResponse builder to @NonNull
* This is to incorporate the API council feedback at b/148107416
* This is made possible by the new DataClass codegen version 15

Test: build
Bug: 148107416

Change-Id: I8adaf45a64bc08e73988d61fba56430f2b49f747
2020-03-09 13:22:45 -07:00
Matt Pietal
fec10faf52 Controls - Remove support for mock
Not needed any longer

Bug: 151068458
Test: manual
Change-Id: I29efe09b759a82c64fcb8f0d2d48bbf54aee4396
2020-03-09 14:42:46 -04:00
Yara Hassan
e41b29ec57 Added @IntDef for DATA_SHARE_ERROR_ constants
Bug: 150844071
Fix: 150844071
Test: NA
Change-Id: I853f10addf5b2f104ce04503aa033e7a8609d4b3
2020-03-09 18:35:59 +00:00
Songchun Fan
41f451bb5c fix error message
Test: n/a
BUG: 150892197
Change-Id: Iea7a5610849ccc53fb4a100f027feba4871ea61e
2020-03-09 08:55:27 -07:00
Automerger Merge Worker
58d4f289c7 Merge "Control API review changes" into rvc-dev am: 8ebe5c222d am: 56f02d3893 am: 1ebcd16eeb am: b5d004f0f1
Change-Id: Id2f5cfa06784cb140320bb965bf59d2d31f617e5
2020-03-07 22:59:42 +00:00
Matt Pietal
8ebe5c222d Merge "Control API review changes" into rvc-dev 2020-03-06 19:55:03 +00:00
Will Brockman
492b381224 Revert "Revert "Notification statsd logs: Notification panel.""
This reverts commit 3cc20a4ed8, which
reverted the original change.

Reason for revert: Roll-forward with corrections and additional testing.

Test: atest NotificationLoggerTest SystemUITests
Test: statsd_testdrive 245
Test: adb shell cmd stats print-logs && adb logcat -s statsd:I | grep ' (245)'
Test: manually pull down notification shade
Bug: 146488473
Change-Id: Ifd766dddf869e1e345bf93e950ebb30b149c72c0
2020-03-06 11:38:51 -05:00
Fabian Kozynski
95dcd2444b Control API review changes
* Add documentation to Device types
* Replace singletons in ControlAction and ControlTemplate to getter
static functions.
* Add javadoc for MODES and FLAG_MODE in TemperatureControlTemplate.
* Removed ThumbnailTemplate instead of updated javadocs. Determined
not necessary anymore
* Remove MultiFloatAction - no longer needed
* Removed reliant sysui code

Bug: 150630500
Test: atest ControlTemplateTest ControlActionTest
Change-Id: Ic4f60c789ce959205137944380e78622d76581a4
2020-03-06 11:15:24 -05:00
Automerger Merge Worker
656e07da2f Merge "Controls API - Add support for routines" into rvc-dev am: 780782b750 am: 41245fd2a0 am: 98bfffe75d am: b0f547a7d5
Change-Id: If6e3752db2aedc3f61ca582e0fa385a974ea60b0
2020-03-06 15:36:42 +00:00
Matt Pietal
cd47696a59 Controls API - Add support for routines
Apps can support the idea of a routine. Routines tie together multiple
actions across multiple controls to support everyday tasks that would
otherwise require multiple clicks.

Bug: 150869263
Test: atest ControlProviderTest
Change-Id: I3ee2c87c6130420032ebe407b2ffc1e3e8c1504f
2020-03-05 15:03:08 -05:00
Alex Mang
329d99b476 Merge "Passing notification rank to NLS#Ranking as a hidden api." 2020-03-05 19:03:07 +00:00
Songchun Fan
ecd96c2be4 Merge "make IDataLoaderManager and IDataLoader stable interfaces" into rvc-dev 2020-03-04 22:53:12 +00:00
Alex Mang
f36cbffd6e Passing notification rank to NLS#Ranking as a hidden api.
Rank will be discretized to RANKING_PROMOTED, RANKING_DEMOTED, or
RANKING_UNCHANGED. SystemUI can retrieve rank through
Ranking#getRankingAdjustment

Bug: 145559028
Test: atest
Change-Id: Ia9f7865867acafc8b61ca4a7052870e46f1bbde5
2020-03-04 14:20:10 -08:00
Zim
71fcf13cf2 Replace String for 'path' to File
This addresses API review feedback

Bug: 150685654
Test: m
Change-Id: I45d6eb1fc02272e4e4fd729b6535a950aefe8f20
2020-03-04 15:38:48 +00:00
Songchun Fan
6381d6193e make IDataLoaderManager and IDataLoader stable interfaces
Instead of using Bundle, explicitly specify params when initializing a data loader.

BUG: 150406132
Test: atest PackageManagerShellCommandIncrementalTest
Change-Id: I2f89d3c3ea1058fdbd689da0d5cb801bf4d9a0b4
2020-03-03 21:18:30 -08:00
Vadim Caen
b46f9233ea Compute Wallpaper scaling on the server
Image wallpaper uses DisplayInfo to compute the wallpaper scaling.
When the wallpaper has a fixed rotation transform, its DisplayInfo do
not correspond to its transformed bounds.

We can't use the Configuration's bounds either because the wallpaper
token is created on the server side and we do not have a way to
propagate the changed configuration to a token created from the server.

Bug: 148000485
Test: atest WallpaperControllerTests#testWallpaperSizeWithFixedTransform

Change-Id: Ie80592ae868c980faddece17b94cd34178b1de0e
(cherry picked from commit f79baeaa20)
2020-03-03 16:36:44 +00:00
Vadim Caen
092ce3e7ab Merge "Compute Wallpaper scaling on the server" 2020-03-03 15:57:53 +00:00
Vadim Caen
f79baeaa20 Compute Wallpaper scaling on the server
Image wallpaper uses DisplayInfo to compute the wallpaper scaling.
When the wallpaper has a fixed rotation transform, its DisplayInfo do
not correspond to its transformed bounds.

We can't use the Configuration's bounds either because the wallpaper
token is created on the server side and we do not have a way to
propagate the changed configuration to a token created from the server.

Bug: 148000485
Test: atest WallpaperControllerTests#testWallpaperSizeWithFixedTransform

Change-Id: Ie80592ae868c980faddece17b94cd34178b1de0e
2020-03-03 11:02:26 +01:00
TYM Tsai
b1f42dd78a Uses SurfacePackage instead of SurfaceControl on inline suggestion
The InlineContentView uses the SurfacePackage instead of the SurfaceControl
for accessibility and UiAutomation supporting.

Bug: 149194105
Test: manual
Change-Id: Ib10f37a58dde7dc09d0ea16d1a121088dab4738e
2020-03-02 20:51:46 +08:00
TreeHugger Robot
0fe12dad61 Merge "Several improvements and bug fixes to the inline autofill flow" into rvc-dev 2020-02-29 01:35:19 +00:00
Feng Cao
ec496000ec Several improvements and bug fixes to the inline autofill flow
* Pipe the augmented autofill's inline actions through to the
  InlineSuggestionsResponse
* Do not send the inline action if the number of inline suggestions is
  zero
* Refactor autofill inline suggstion session so that all the calls to
  the IME has happens within the class
* Send an empty response to IME to hide the inline suggestion UI  when
  view exits and the previous response wasn't empty

Test: manual verification, atest InlineLoginActivityTest
Bug: 149522488
Bug: 150312201

Change-Id: I7a0dbf44e9fad6e7da857448c0f2b186e1681d17
2020-02-28 17:25:30 -08:00
Matt Pietal
e4beb133e6 Merge changes I7ac3a378,Id06a24d2 into rvc-dev
* changes:
  Controls API - Docs + method name change
  Controls API - Publisher change - Phase 2
2020-02-28 19:06:28 +00:00
Julia Reynolds
138111fca3 Show snoozed conversations in conversation header
- And allow them to be unsnoozed with a tap.
- Also use the conversation's shortcut icon and name if available.
- And ignore the setting to turn off the strips since it now requires
explicit user action to make the strip visible

Note 1: unsnoozing a notification causes it to make sound again - we
probably want to change that for manually unsnoozed things
Note 2: the entries in the header don't yet persist across a reboot

Test: atest, manual
Bug: 149486431
Change-Id: Id661c25a49bc982e39deab977eb912f51eaf6757
2020-02-28 02:48:07 +00:00
Nicholas Ambur
626b24958f Merge "remove client token passing active VI service" into rvc-dev 2020-02-27 18:01:24 +00:00
TreeHugger Robot
8e5e4e03a9 Merge "Hide CarrierMessagingServiceWrapper for now." into rvc-dev 2020-02-27 04:04:35 +00:00
TreeHugger Robot
658fc6d6d6 Merge "A few inline autofill API tweaks." into rvc-dev 2020-02-27 03:16:38 +00:00
Amit Mahajan
e75a35d3b3 Hide CarrierMessagingServiceWrapper for now.
Based on api-council feedback there are some changes required.
Will incorporate the changes and expose this class in a later
release.

Test: basic sanity
Bug: 144346062
Change-Id: Icb65f90261ea6000aecd72a1888d5ee23eed6527
2020-02-26 23:02:44 +00:00
Feng Cao
4b0ef392c2 A few inline autofill API tweaks.
* add isPinned() to InlineSuggestionInfo so IME can choose to pin the suggestion
* allow augmented autofill service to set inline actions in the response
* non-api change: pull the autofill hints from the Slice in the InlinePresentation

Test: m -j; atest InlinePresentationTest, atest CtsInputMethodTestCases:InlineSuggestionInfoTest CtsInputMethodTestCases:InlineSuggestionTest
Bug: 137800469

Change-Id: I63b6b843ef056df18c317299e617b8fe21907374
2020-02-26 13:49:54 -08:00
Matt Pietal
e44217b31a Controls API - Docs + method name change
Updated javadoc for service interface. Changed method names to include
a verb.

Bug: 150154816
Test: atest ControlProviderServiceTest
Change-Id: I7ac3a378695c8f90a22ff9266d15163140aab432
2020-02-26 15:49:37 -05:00
Matt Pietal
bb3be6517c Controls API - Publisher change - Phase 2
Complete the removal of consumer-based load API method. Update the
publisher-based 'publisherForAllAvailable()' to be non-null and
abstract, indicating it is now a required method.

Bug: 149398610
Test: atest ControlsBindingControllerImplTest ServiceWrapperTest
ControlsProviderLifecycleManagerTest
Test: ControlProviderServiceTest

Change-Id: Id06a24d2facf7621e8985ebe0396092752b6f59d
2020-02-26 15:46:10 -05:00