Commit Graph

113354 Commits

Author SHA1 Message Date
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
Vadim Caen
bed09965dd Merge "Compute Wallpaper scaling on the server" into rvc-dev 2020-03-04 13:04:39 +00:00
Yogisha Dixit
1399825fe7 Merge "Store ambient display suppression state in memory." into rvc-dev 2020-03-04 12:56:20 +00:00
Jason Hsu
6820d68e25 Merge "Support settings activity for accessibility shortcut target" into rvc-dev 2020-03-04 12:13:42 +00:00
Ryan Lin
4401b0db11 Merge "Revise the javadoc and rename the constant" into rvc-dev 2020-03-04 01:49:37 +00:00
TreeHugger Robot
d74346b8cf Merge "Ignore unchecked IME show/hide when no root" into rvc-dev 2020-03-04 01:47:21 +00:00
Tyler Gunn
017df7f013 Merge "Update car mode API docs." into rvc-dev 2020-03-04 01:43:52 +00:00
Winson Chiu
2b1fa477ff Merge "Fix cross profile attribute parsing" into rvc-dev 2020-03-04 00:48:53 +00:00
TreeHugger Robot
1f9875dc17 Merge "dataloader/incfs openWrite returns int" into rvc-dev 2020-03-04 00:24:11 +00:00
Tarandeep Singh
7bbce8ee6b Ignore unchecked IME show/hide when no root
Both showSoftInputUnchecked() and closeCurrenInput() rely on rootView to
obtain window token. If view root is null, window has already gone away
and IME control had been revoked. Trying to show or hide at this time
would be a no-op.

Bug: 149900693
Test: Manually using the steps mentioned in bug and verify that there is
      no NPE.
Change-Id: I294bb2ec5395d7502a855bafbac672af069e9b4a
Merged-In: I294bb2ec5395d7502a855bafbac672af069e9b4a
(cherry picked from commit ba9b716a70)
2020-03-03 23:43:37 +00:00
Tyler Gunn
22ef765d96 Update car mode API docs.
1. Clarify the distinction between the prioritized and non-prioritized
intents.
2. Make the priority ordering and choice of them more clear.

Test: make -j offline; preview updated docs for formatting.
Fixes: 150685399
Change-Id: I493bca75db44f25eedb07964e3dc8c8ab38827c2
2020-03-03 15:06:02 -08:00
Antoan Angelov
f6b536594b Merge "Show a spinner when waiting for the work profile to turn on." into rvc-dev 2020-03-03 21:34:02 +00:00
Winson
a20ba0beee Fix cross profile attribute parsing
Was lost in a rebase.

Bug: 150398686

Test: atest com.android.cts.devicepolicy.QuietModeHostsideTest
Test: manual verify no other ParsingPackage changes were lost

Change-Id: I3e17796433686ef38e24492c3255f5ccba1f431c
2020-03-03 13:18:39 -08:00
Khaled Abdelmohsen
e2ab8ed00e Merge "Create source stamp verifier in platform" into rvc-dev 2020-03-03 21:10:50 +00:00
TreeHugger Robot
1f9f5ddd1c Merge "Update BluetoothDevice SystemApi permissions and disallow passing a null pin to BluetoothDevice#setPin" into rvc-dev 2020-03-03 19:14:16 +00:00
Feng Cao
c9611acb62 Merge "Notify autofill with the IME start/finish input view events" into rvc-dev 2020-03-03 18:36:11 +00:00
arangelov
2dd9f7b64d Show a spinner when waiting for the work profile to turn on.
This covers the usecase when we show the share sheet or
intent resolver on a device with a work profile, and
the work profile is turned off. In that case, when
sharing from the personal profile, we show an empty
state screen with the option to turn on the work profile.
When we tap that button, we now show a spinner, as there
is a delay until the profile is actually enabled.

Fixes: 149821684
Test: manual

Change-Id: Id90b21a61b10ecce8172bddc42fdeec5fb61c5fe
2020-03-03 18:29:33 +00:00
Songchun Fan
b8ab0034c6 dataloader/incfs openWrite returns int
Plus minor refactors

BUG: 150470163
Test: atest PackageManagerShellCommandIncrementalTest
Change-Id: Ib3a1c7c45a4abaab793be73213545ce91c98510b
Merged-In: Ib3a1c7c45a4abaab793be73213545ce91c98510b
2020-03-03 10:18:56 -08:00
Winson Chiu
f5f588e032 Merge changes I815bb92e,I1777f84c into rvc-dev
* changes:
  Adjust AndroidPackage String interning
  Add package parsing v1 vs v2 benchmark
2020-03-03 18:06:37 +00:00
Songchun Fan
38dfe9a0d4 use shell to open v4 signature file
BUG: 133435829
Test: atest PackageManagerShellCommandIncrementalTest
Change-Id: I8e57b00f042f8b6c85d5f905460dd2da6199accc
(cherry picked from commit cdbcb34c2b)
2020-03-03 09:48:02 -08:00
Khaled Abdelmohsen
8ce84c8567 Create source stamp verifier in platform
Bug: 148005911
Test: atest FrameworksCoreTests:SourceStampVerifierTest
Change-Id: Ibdaedf0355f5dd3537a425a031e298b710aae9f7
2020-03-03 17:16:56 +00: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
Jorim Jaggi
57157ac5d8 Fix WindowInsetsController lifecycle
Provide a recording insets controller before the window gets
created, and replay the commands once a view gets attached. This
allows the client to use the controller in Activity.onCreate.

Test: WindowInsetsControllerTests
Bug: 118118435
Change-Id: I1a825ecc4367c02b27f2d08cd5442325315d4f89
2020-03-03 15:12:15 +01:00
ryanlwlin
ef02aa431f Revise the javadoc and rename the constant
Bug: 147804256
Test: The API Builds, there is no executable code here.
Change-Id: I452f8bcbedb7422878a1cfc7245c33f6e38b57e3
2020-03-03 18:01:17 +08:00
Lee Chou
920105c38b Revert "Remove exception from OverlayConfig zygote method"
Commit ag/9740370 caused problem with robotests b/149806146
The fix ag/10373855 froze targets like run_host_tests
This revert will unfreeze run_host_tests but robotests will break

Bug: 150011638
Test: m RunSettingsRoboTests0
Change-Id: Ibe954e9d0dc1542477ba7156da5799479631cfb0
2020-03-03 17:11:49 +08:00
Feng Cao
7c85eb79a7 Notify autofill with the IME start/finish input view events
* autofill will cache the inline suggestions response until it receives
  a start input view event from IME
* the data flow from IMS point of view is:
  IMS#startViews and IMS#doStartInput (before calling onStartInputView)
  ->
  [async] InlineSuggestionsRequestCallback#onInputMethodStartInputView()
  --- process boundary ---
  ->
  IMMS.InlineSuggestionsRequestCallbackDecorator
     #onInputMethodStartInputView()
  ->
  InlineSuggestionSession.InlineSuggestionsRequestCallbackImpl
     #onInputMethodStartInputView()
* similar data flow for  IMS#finishViews()
* this CL should not block IME's UI thread because it's only issuing a
  new async IPC from IMS start/finish input view call that's running on
  the UI thread.
* there should not be performance impact on IMEs if autofill inline
  integration is not active

Test: manual verification, atest EditorInfoTest
Test: atest android.autofillservice.cts.inline, with two failing cases:
 InlineAugmentedLoginActivityTest#testAugmentedAutoFill_twoDatasetThenFilledSecond
 and InlineAugmentedLoginActivityTest#testAugmentedAutoFill_oneDatasetThenFilled
 due to the test itself being broken, I'll fix the test in a separate patch
Bug: 149522488
Bug: 149442582
Change-Id: I2faa3577b9f95a122f26a6d7fa7822a769a51e34
2020-03-02 21:18:16 -08:00
TreeHugger Robot
78160dc4c0 Merge "Uses SurfacePackage instead of SurfaceControl on inline suggestion" into rvc-dev 2020-03-03 02:56:24 +00:00
Jacky Kao
494960e818 Merge "Drop the hardware buffer" into rvc-dev 2020-03-03 02:50:40 +00:00
Arc Wang
d03c6ac27e Merge "[Wi-Fi] Default enable WifiTracker2 feature flag" into rvc-dev 2020-03-03 01:58:05 +00:00
Arthur Ishiguro
6c46c74576 Merge "Hides FEATURE_CONTEXT_HUB from Android SDK" into rvc-dev 2020-03-03 01:52:07 +00:00
TreeHugger Robot
214663924c Merge "Allow mutable overlays to be enabled by default" into rvc-dev 2020-03-03 01:51:23 +00:00
TreeHugger Robot
e858e30c46 Merge "Fix broken inset anims" into rvc-dev 2020-03-03 01:34:12 +00:00
Jacky Kao
78afcedf9f Merge "Add a rate limitation of takeScreenshot() API" into rvc-dev 2020-03-03 01:06:40 +00:00
TreeHugger Robot
bf2697bfda Merge "Restrict DisplayInfo dumping for app process" into rvc-dev 2020-03-03 00:58:22 +00:00
Rahul Sabnis
82425166a8 Update BluetoothDevice SystemApi permissions and disallow passing a null
pin to BluetoothDevice#setPin

Bug: 147428695
Test: Manual
Change-Id: I74613d61420babecf5f1976fe33a2e1a729b71a1
2020-03-02 16:41:20 -08:00
Ryan Mitchell
b390818c60 Merge "Allow activities/services to have app loaders" into rvc-dev 2020-03-03 00:40:40 +00:00
Ryan Mitchell
8c4aab3af6 Allow mutable overlays to be enabled by default
When an overlay is not specified as immutable through OverlayConfig,
enabling the overlay using the OverlayConfig `enable` attribute makes
the overlay enabled by default.

When an overlay is scanned by the OverlayManagerService for the first
time, the default-enabled state will be applied to the overlay. If the
configured default-enabled state changes in a subsequent boot, the
default-enabled state will not be applied to the overlay.

This means OTAs cannot change a mutable overlay from default-enabled
to default-disabled (or vice-versa) and except the configured enabled
state to take effect.

When the device is factory reset, then the configured enabled state
will be applied. If a package is removed from the device in one OTA
and added back to the device in a future OTA, the configured enabled
state will be applied. If an overlay changes its target package or
target overlayable, then the configured enabled state will be applied.
If an immutable overlay becomes mutable, then the configured enabled
state will be applied.

Bug: 149499802
Test: atest OverlayManagerServiceImplRebootTests
Change-Id: I24f86591ac811ef2b836da36ef5574a82628b151
2020-03-02 23:46:07 +00:00
Jorim Jaggi
b71e6892f1 Fix broken inset anims
Parameters were correctly flipped but usages weren't.

Test: Open IME
Bug: 118118435
Change-Id: Ib0c417216b8e586c633c4607a9eb979e83b50231
2020-03-03 00:38:47 +01:00
Chalard Jean
543ff5f068 Merge "Revert "Add public fields to NetworkScore and make it @SystemApi"" into rvc-dev 2020-03-02 23:32:58 +00:00
TreeHugger Robot
9c8f402a68 Merge "Fixed the doc" into rvc-dev 2020-03-02 22:03:11 +00:00
Lee Shombert
675a58b2ce Merge "Fix a leak in HasSystemFeatureCache." into rvc-dev 2020-03-02 21:52:38 +00:00
Jayachandran Chinnakkannu
db5c0688f3 Merge "Make IccCardConstants APIs hidden as per API concil's feedback" into rvc-dev 2020-03-02 21:18:50 +00:00
TreeHugger Robot
0b81d6b2f9 Merge "Refactor isSupportedSignatureAlgorithm" into rvc-dev 2020-03-02 21:00:48 +00:00
Ryan Mitchell
0cbfd2b12c Allow activities/services to have app loaders
When a service or activity attaches to a base context, add the
loaders from the application context to the base context. Activity
and service contexts are created before creating the Application
context, so in order to add the app loaders before the component
onCreate method is called, we must add the app loaders to the
component after the app has been initialized.

Bug: 148630842
Test: launch AppResourcesLoaders
Change-Id: I44aa718779c574094590d25fd839f1d9f9134edb
2020-03-02 20:54:13 +00:00
Rob Carr
26351d7c4d Merge "SurfaceControl: Bind close-guard lifetime to native-object lifetime." into rvc-dev 2020-03-02 20:40:17 +00:00
TreeHugger Robot
a132d3b5e2 Merge "Do not rebase Resources with non RM impls" into rvc-dev 2020-03-02 20:22:38 +00:00
Jorim Jaggi
96cc10c2de Merge "Various inset fixes" into rvc-dev 2020-03-02 20:22:34 +00:00
Jorim Jaggi
432e0c7440 Merge "Fix unnecssary traversal for starting windows" into rvc-dev 2020-03-02 20:20:52 +00:00
Jorim Jaggi
555a54a900 Merge "Unhide WindowInsets#inset with insets argument" into rvc-dev 2020-03-02 20:09:35 +00:00
Jack Yu
f23e44e84b Fixed the doc
Added extra information

Test: None
Bug: 150126754
Change-Id: Ice5032ba84a24dd5d9091f80303ccbbc3bd1ff20
2020-03-02 11:53:27 -08:00