Commit Graph

102606 Commits

Author SHA1 Message Date
Sunny Goyal
296d4b5821 Updating widgets docs
Bug: 151195866
Test: N/A
Change-Id: Ice98b876c64653bde7337ac123746392790dea1b
2020-03-13 14:02:32 -07:00
Nate Myren
e9b4b0009b Merge "Add intent for auto revoke UI" into rvc-dev 2020-03-10 18:55:52 +00:00
Zimuzo Ezeozue
f46b9c9656 Merge "Add API for apps to query whether they have All Files Access" into rvc-dev 2020-03-10 17:03:16 +00:00
Eran Messeri
153de40327 Merge "Update documentation for settings, affiliation API" into rvc-dev 2020-03-10 14:12:57 +00:00
Jorim Jaggi
ed3c321c9f Merge "Do not set early wakeup flag for inset animations" into rvc-dev 2020-03-10 12:12:09 +00:00
Eran Messeri
95d44d2c0e Update documentation for settings, affiliation API
Update the documentation for settings-related and affiliation-related
methods:
* The methods for setting a global and secure settings are documented
  to be mostly deprecated, because there are methods for the settings
  that are honoured and some other settings no longer apply.
* The methods for setting affiliation or binding to a service on another
  user can no longer work between a device owner and profile owner
  since this combination is no longer a valid one.

Bug: 147795815
Test: manual, m update-docs
Change-Id: I316148cb1d90fbe94999f9d1c242f08554869e97
2020-03-10 11:52:11 +00:00
shafik
8187065889 Add API for apps to query whether they have All Files Access
This is a fix in response to developers' feedback on DP1.
Add Environment API that enables apps to check whether they have All
Files Access special app access. The API encapsulates the actual
mechanics of the check, which are as follows:
    * First check MANAGE_EXTERNAL_STORAGE app-op,
      if it's allowed, return true. If it's denied (ignored or errored),
      return false.
    * If the mode is default, then check for MANAGE_EXTERNAL_STORAGE
      permission, if it's GRANTED (not just declared), then return true,
      else return false.

Also add test.

Test: atest EnvironmentTest # not CTS
Fix: 150115615
Merged-In: I0574827c22960bf8f074313d983f289be7142149
Change-Id: I0574827c22960bf8f074313d983f289be7142149
2020-03-10 11:47:56 +00:00
Yara Hassan
4a4e1e45d0 Merge "Added @IntDef for DATA_SHARE_ERROR_ constants" into rvc-dev 2020-03-10 11:04:12 +00:00
Oli Lan
e6dbe2b880 Merge "Rename ApexContext to ApexEnvironment." into rvc-dev 2020-03-10 10:20:13 +00:00
Charles Chen
2a77f43bee Merge "Generate WindowInsets with new insets API" into rvc-dev 2020-03-10 08:46:30 +00:00
TreeHugger Robot
e5150ded92 Merge "Create InlineAction class to wrap the IntentSender and the presentation" into rvc-dev 2020-03-10 04:15:36 +00:00
Jacky Kao
4686370935 Merge "Improvement of IME Enter Action" into rvc-dev 2020-03-10 04:05:58 +00:00
TreeHugger Robot
bd8e715c01 Merge "Add localBounds in RemoteAnimationTarget" into rvc-dev 2020-03-10 03:14:08 +00:00
Dieter Hsu
04a579c6b7 Merge "Update API ExtraRenderingInfo by review feedback" into rvc-dev 2020-03-10 03:08:50 +00:00
TreeHugger Robot
d7e8b96042 Merge "Fix bluetooth can't turn off during network reset (2/3)" into rvc-dev 2020-03-10 03:08:12 +00:00
Eugene Susla
623468289f Merge "Replace auto-revoke whitelist permission flags with appop" into rvc-dev 2020-03-10 02:53:51 +00:00
Remi NGUYEN VAN
ad553fb634 Merge "Add missing RequiresPermission to EthernetManager" into rvc-dev 2020-03-10 01:54:57 +00:00
Hall Liu
b8eacbec89 Merge "Disable APN lockdown for apps targeting pre-R" into rvc-dev 2020-03-10 01:15: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
Jorim Jaggi
33a35ef041 Do not set early wakeup flag for inset animations
Otherwise we shift entire SF schedule for nothing...

Test: Open IME, inspect systrace
Bug: 118118435
Change-Id: I1352860a8f04271cd5dc72366ffc317175db5e3a
2020-03-09 23:55:48 +00:00
Shu Chen
45b08852ad Merge "Unifies the finger-to-cursor distance between drag cursor and drag handle." into rvc-dev 2020-03-09 23:46:42 +00:00
Jeff Sharkey
469263a457 Merge "More CTS for APIs used by Mainline." into rvc-dev 2020-03-09 22:44:08 +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
Rob Carr
c2adc8d64c Merge "WindowManager: Avoid reparenting BLAST Surface in reparentChildren" into rvc-dev 2020-03-09 21:41:35 +00:00
TreeHugger Robot
a3a2955807 Merge "Identity Credential: Apply changes identified in API review." into rvc-dev 2020-03-09 21:36:28 +00:00
Nate Myren
716d0a48b8 Add intent for auto revoke UI
Add intent that signifies the desire to access the auto revoke UI inside
the Permission Controller.

Bug: 146513245
Test: none needed
Change-Id: I58d32d2c02941f65c52e054ad712541126086586
2020-03-09 13:55:18 -07:00
TreeHugger Robot
672e0e80ba Merge "InsetController: Release leashes from RenderThread" into rvc-dev 2020-03-09 20:53:47 +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
Jeff Sharkey
9ed18340ca More CTS for APIs used by Mainline.
Bug: 150641862, 150641715, 150641138, 150640123
Test: atest cts/tests/tests/content/src/android/content/cts/ContentResolverTest.java
Test: atest cts/tests/tests/os/src/android/os/cts/BinderTest.java
Test: atest cts/tests/tests/provider/src/android/provider/cts/DocumentsContractTest.java
Test: atest cts/tests/tests/provider/src/android/provider/cts/media/MediaStoreTest.java
Change-Id: I6f9ae1dcffd79fd6c422962d9ca64d4b98841766
2020-03-09 20:12:55 +00:00
David Zeuthen
d50b281a32 Identity Credential: Apply changes identified in API review.
Bug: 150817385
Test: atest android.security.identity.cts
Merged-In: I4e005fa7a81ef363a80278224bb706441dad2241
Change-Id: I25e09df09e8a56dc7f639b2aa4636af0166d5050
2020-03-09 15:32:48 -04:00
Rob Carr
521e363a0f InsetController: Release leashes from RenderThread
We handle changes to the leashes from the UI thread, but use
the same SurfaceControl wrapper object from the RenderThread with
SyncRtSurfaceTransactionApplier. This means that at the time
we release a SurfaceControl from the UI thread we might have already
scheduled a SyncRtSurfaceTransactionApplier to use it, and actually
that could be in the process of running, leading to racy access and
crashes. To fix this we release the SurfaceControl from the RenderThread
so that it happens behind all existing operations.

Bug: 151086678
Test: Existing tests pass.
Change-Id: I2308d1c64f3f368c32587f99ddfb9e05955f821f
2020-03-09 11:44:08 -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
Rob Carr
698b684fdd WindowManager: Avoid reparenting BLAST Surface in reparentChildren
In cases where we are replacing the client surface transparently (e.g.
preserved surfaces), we call reparentChildren to move client added
Surfaces of the preserved Surface to the new Layer. However we are calling
this on the WSA layer, and so we end up reparenting the BLAST Surface
to the new layer. But since we always construct a new BLAST surface on the
WM side, we end up with 2! Rather than try and juggle about when we need
to or need not to construct a BLAST surface and reparenting them across
preservedSurfaces, it seemed either to just use the BLAST surface as the
root of the reparentChildren operation.

Bug: 150013915
Test: Enable BLAST, use split-screen
Change-Id: I1357200b41d183c2331b684ff636dd40a3b98168
2020-03-09 10:47:54 -07:00
Dmitri Plotnikov
2a594c9e64 Merge "Introduce thread-local allowBlocking flag" into rvc-dev 2020-03-09 17:16:18 +00:00
Nick Cook
e41357fc9d Merge "docs: Among devices which support Vulkan 1.1, a subset support it via software emulation. Refer to the NDK docs on how to address these devices. See also cr/292399283." into rvc-dev 2020-03-09 16:38:16 +00:00
Songchun Fan
73358eb5f0 update javadoc for InstallationFile
Also hides the constructor which is only used internally.

BUG: 149299379
Test: builds
Change-Id: I696e3c5db7b7591276b741f68d50edf47c2f30a0
2020-03-09 08:57:26 -07:00
Songchun Fan
41f451bb5c fix error message
Test: n/a
BUG: 150892197
Change-Id: Iea7a5610849ccc53fb4a100f027feba4871ea61e
2020-03-09 08:55:27 -07:00
Neil Fuller
95daf5a2b1 Merge "Reduce log size from CountryTimeZones" into rvc-dev 2020-03-09 14:54:46 +00:00
lumark
2ec1912dfb Add localBounds in RemoteAnimationTarget
With Hierarchical animation, the animation layer will no longer
be a fixed fullscreen layer but animate on the parent container's surface.

In order to run a remote animation, the animation controller needs to
know bounds of the target relative to both its parent and the screen.

The CL includes:
1) RemoteAnimationTarget changes:
    - Add localBounds field for indicating the target bounds which
    the coodiates relatives to its parent.
    - Add screenScreenBounds field to replace souceContainerBounds
      to reflect the target bounds relatives to the screen.
    - Mark position & sourceContainerBounds as deprecated.
2) Modified related places to set correct localBounds information.

Test: build / run, make sure installing the old version of launcher on
      the this new platform change still compatible without crash.
Test: manual as follow steps:
  - Launching app from launcher to split-screen secondary stack
  - Swipe up to overview screen and drag TaskView to see if the TaskView
    surface is shfted, expected is not.
Bug: 148780840
Change-Id: Id9dbf6de193ab73fe94bc24ef6a27edc93380a14
2020-03-09 22:24:17 +08:00
TreeHugger Robot
df5dff04db Merge "rename incremental service name" into rvc-dev 2020-03-09 14:12:08 +00:00
Neil Fuller
d0213083f2 Reduce log size from CountryTimeZones
ICU's TimeZone.toString() prints out too much information. Only the ID
is useful.

Bug: 149014708
Test: build only
Change-Id: I7d633f7946f82696e13dbc39749b6f9f44f83fa3
Merged-In: I7d633f7946f82696e13dbc39749b6f9f44f83fa3
(cherry picked from commit 06795ef740)
2020-03-09 12:43:29 +00:00
Automerger Merge Worker
2398e9be60 Add missing RequiresPermission to EthernetManager
The method requires NETWORK_STACK or MAINLINE_NETWORK_STACK permissions,
but the annotation was missing.

Test: m
Fixes: 150877670
Merged-In: I2af74cbcfa642f05f5e7bf85b2a8e8c38595f6ca
(cherry picked from commit e45d3ff849)

Change-Id: Ia215b74df99ae60be2e380917be68a272d658ef4
2020-03-09 10:20:22 +00:00
Remi NGUYEN VAN
40f27f9454 Merge "Remove polling of TetheringManager in ConnectivityManager." into rvc-dev 2020-03-09 08:49:37 +00:00
Mark Chien
02ee003aa5 Merge "Fix crash and duplicated ethernet tethering request" into rvc-dev 2020-03-09 07:51:43 +00:00
Automerger Merge Worker
6112c82fa0 Remove polling of TetheringManager in ConnectivityManager.
Test: manual

Bug: 144742179
Merged-In: I7d88b38eb3d741534e980b7d1e226a411b71fae2
(cherry picked from commit f8a55a19fa)

Change-Id: I5cc4231bfb9a0709d677acbb317ee98af31bd041
2020-03-09 06:29:22 +00:00
weichinweng
e547073e75 Fix bluetooth can't turn off during network reset (2/3)
Remove disable Bluetooth action from AdapterService and move to
BluetoothManagerService.
Add factory reset reason into Bluetooth enable/disable reason list.

Bug: 110181479
Test: manual
Change-Id: I4bff3c3bb75fbb0d1e13c459c0d9d3fd3b8b3195
2020-03-09 05:09:08 +00:00
Automerger Merge Worker
3d40f57841 Remove the NetworkScore class.
This class is useless at this point and introduces overhead.

Bug: 113554781
Test: FrameworksNetTests
Change-Id: Ib5f540070222865260c16c7182cc13c710a243c2
Merged-In: Ib5f540070222865260c16c7182cc13c710a243c2
(cherry picked from commit c3489ad3a6)
2020-03-09 03:46:34 +00:00
Shu Chen
7700342166 Unifies the finger-to-cursor distance between drag cursor and drag handle.
This cl also fixes the way to simulate the touch events in EditorCursorDragTest, with correct raw X/Y.

Bug: 150534899
Test: manual & automated tests
  atest FrameworksCoreTests:EditorCursorDragTest
  atest FrameworksCoreTests:TextViewActivityTest

Change-Id: I0e9ef73082534ab98ddeddee0218374ed6d556a2
2020-03-09 10:58:23 +08:00