Commit Graph

102562 Commits

Author SHA1 Message Date
TreeHugger Robot
672e0e80ba Merge "InsetController: Release leashes from RenderThread" into rvc-dev 2020-03-09 20:53:47 +00: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
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
Neil Fuller
95daf5a2b1 Merge "Reduce log size from CountryTimeZones" into rvc-dev 2020-03-09 14:54:46 +00: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
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
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
Automerger Merge Worker
06fe92de0f Fix crash and duplicated ethernet tethering request
This change fix two things:
1. Handle ethernet callback in internal thread to avoid crash. IpServer
should be created from tethering thread, otherwise mIpNeighborMonitor of
IpServer would throw
   IllegalStateException("start() called from off-thread")
2. Ethernet tethering request may be duplicated if multiple
startTethering is called but no stopTethering

Bug: 130840861
Bug: 148824036
Test: ON/OFF ethernet tehtering manually
      atest TetheringTests

Change-Id: Ibd3ea6bc6751bd65647ff381f9b0124bc3395c09
Merged-In: I7c5127e96d80d077735010d2e62c7227805ccb10
Merged-In: Ibd3ea6bc6751bd65647ff381f9b0124bc3395c09
(cherry picked from commit 72702b9796)
2020-03-09 02:02:23 +00:00
Jeff Sharkey
16c9fb8c0f Merge "Updates based on API council feedback." into rvc-dev 2020-03-08 20:59:38 +00:00
Jia-yi Chen
73e2b381f0 Merge "Support PowerHAL AIDL service" into rvc-dev 2020-03-07 06:27:22 +00:00
TreeHugger Robot
1a023125c9 Merge "Add permissions data validation in AppOpsService" into rvc-dev 2020-03-07 00:50:14 +00:00
Winson Chiu
585c4df7d4 Merge "Clarify actor requirements in OverlayManager API" into rvc-dev 2020-03-06 22:46:53 +00:00
Kevin Chyn
db45def65e Merge "Rename biometric enroll extra" into rvc-dev 2020-03-06 22:43:57 +00:00
Sudheer Shanka
cd629dd39a Merge "Add a limit on how much data an app can acquire a lease on." into rvc-dev 2020-03-06 22:39:06 +00:00
Jeff Sharkey
f5eebf9fe6 Updates based on API council feedback.
-- Promote generally-useful PFD API to public.
-- Add @WorkerThread annotations.
-- Add docs to explain how AUTHORITY_LEGACY works, and add explicit
START/FINISH_LEGACY_MIGRATION_CALL verbs to communicate progress.
-- Expand docs for createWriteRequest() to explain broader access
that it grants.  Expand all request methods to indicate the action
is fully completed before the result is delivered.
-- Expand docs for new generation fields to explain that version
also needs to be inspected.
-- Explicitly call out why getKindSize() is deprecated, and guide
towards better alternative.

Bug: 148867182, 148403418, 148011561, 147760276
Test: none
Change-Id: I54ff072a752497b6aba153bd4013567c269e5b19
2020-03-06 14:42:00 -07:00
Julia Reynolds
10c0d0d26c Merge "Fix handling of work profiles in notification history" into rvc-dev 2020-03-06 21:37:13 +00:00
John Reck
e2e7cd5d4c Merge "Deprecate long-obsolete android:anyDensity" into rvc-dev 2020-03-06 20:37:53 +00:00
Winson
08f8c49f33 Clarify actor requirements in OverlayManager API
Bug: 135052950
Bug: 138458046

Test: none; docs only change

Change-Id: Ibe0d139cd0e7f819b8e85d109ea38fe853a0b080
2020-03-06 12:35:06 -08:00
Matt Pietal
8ebe5c222d Merge "Control API review changes" into rvc-dev 2020-03-06 19:55:03 +00:00
Dmitri Plotnikov
1258084de2 Introduce thread-local allowBlocking flag
Test: see instructions in http://ag/7911739
Fixes: 146675384

Change-Id: I478f2a8c4e4d8d563e5e78f6e103a62fe120191f
2020-03-06 10:23:02 -08:00
Jia-yi Chen
bfd8f1f74d Support PowerHAL AIDL service
Bug: 147840082
Test: Boot & check logs
Change-Id: Iccdaf84053e0974ffb43857aaa2e382d2f1b4a6b
2020-03-06 10:08:30 -08:00
Julia Reynolds
fd9f8349b8 Fix handling of work profiles in notification history
Test: atest
Fixes: 150336474
Change-Id: I9ebe8986b8b66fd3b79a4be7aa203a8e1f1ad8bb
2020-03-06 12:45:21 -05:00
Evan Rosky
320ecaca3f Merge "Fix config change on secondary split adjustment" into rvc-dev 2020-03-06 16:50:09 +00: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
TreeHugger Robot
780782b750 Merge "Controls API - Add support for routines" into rvc-dev 2020-03-06 14:50:04 +00:00
Rhed Jao
a4bb7e44da Support long press accessibility button (1/n)
Adds a new setting key to support long press accessibility
button.

Bug: 150587818
Test: atest SettingsProviderTest
Change-Id: I1ca1e01867a937690f7a5e5b27d595cd0a83e395
2020-03-06 06:18:51 +00:00
TreeHugger Robot
9cfb5412e3 Merge "Remove IME surface when window unbinds" into rvc-dev 2020-03-06 06:14:02 +00:00
Tarandeep Singh
0fe4f784f4 Remove IME surface when window unbinds
Previous attempt to remove IME surface [1] works when IME animates out
within same app window. However, if IME doesn't animate or window hides
without hiding keyboard, surface would still be around in memory.
With this CL, IME surface will be hidden moment it unbinds from the
window.
[1] I6c2a13dd40b22d3fd62b4763ba369992e5ff1138

Bug: 150163310
Test: Manually:
      1. Open any app that has editor and tap on editor to show IME
          adb shell  dumpsys SurfaceFlinger | grep InputMethod
      2. Note down IME Buffer layers that consume memory
         using command in #1
      3. Hide IME and note down memory again.
         It should not have anything other than container layers
      4. Use 3 button navbar and retest by pressing home button
Change-Id: I629fa817eb57e8dd6f7e58c1a358487a16363ddb
2020-03-06 04:35:23 +00:00
Rajeev Kumar
ace56a8c68 Merge "Enable settings_tether_all_in_one by default" into rvc-dev 2020-03-06 02:41:56 +00:00
Kevin Chyn
90cc357df1 Rename biometric enroll extra
Fixes: 150499348

Test: make -j56 update-api
Test: CtsVerifier
Change-Id: Iaa4c682c74c2a082f5e6ec8bd4d1680e1ff8a4bc
2020-03-05 16:53:34 -08:00
Evan Rosky
05ec88668e Fix config change on secondary split adjustment
This adds some more config controls to containerTransaction so that
sysui divider can "freeze" the configuration w/h while it is
offset for IME.

Bug: 133381284
Bug: 149952263
Bug: 150400846
Test: Just after boot, open split with settings in secondary and
      open the search activity. This should show IME and not
      randomly hide it when background apps are started.
      Also added a wmtest.
Change-Id: I731378f625079f8a1413469f71455650d9e59a50
2020-03-06 00:45:46 +00:00
John Reck
7ce90af518 Deprecate long-obsolete android:anyDensity
This API exists for compatibility with pre-Donut applications
that were not properly density aware. As such, there's no
current reason to use this. So deprecate it.

Bug: 150869482
Test: builds
Change-Id: Ie12957988d5f5d292277a291a20b565c2e3ef46e
2020-03-05 16:30:30 -08:00
Jeff Sharkey
189e00a46b Merge "Use flags to indicate reason for Uri changes." into rvc-dev 2020-03-06 00:04:24 +00:00
TreeHugger Robot
9a967db575 Merge "InsetSourceConsumer: Ensure we release Leash when finished." into rvc-dev 2020-03-05 23:52:44 +00:00
Zhen Zhang
ab42095409 Enable settings_tether_all_in_one by default
Enable the flag to show the new tethering settings UI.

Bug: 147675042
Test: manually test.

Change-Id: Idba65c588c08b8474aba97feeca1ed234c1c73ca
2020-03-05 15:14:26 -08:00
David Cheung
2ead966e7b Add permissions data validation in AppOpsService
Added functionality to collect noteOp noteProxyOp startOp operations for permissions data validation, this functionality is for
developers and can be enabled by modifying the flag. This data will be utilized to ensure permissions are
requested only when necessary.

Bug: 150890258

Test: Manually tested on crosshatch to ensure files are
written/formatted properly with the necessary data and does not
interfere with normal behavior

Design Document: https://docs.google.com/document/d/1RRs3cPgCzF5S1TkTD11MBKJedUp2DAUEGtCQXtrk0XQ/edit?usp=sharing

Change-Id: Ia7fba6ec5e47b7ddd13ca964ae5f6c1afa1cc186
2020-03-05 23:04:05 +00:00
Yifan Hong
47af8f93b8 Merge "UpdateEngine: fix cleanupAppliedPayload impl" into rvc-dev 2020-03-05 22:57:08 +00:00
Rob Carr
ed48db3d87 InsetSourceConsumer: Ensure we release Leash when finished.
SurfaceControl resources may be heavy weight, and so we explicitly
release them when finished. Specifically, we need to fix this to
keep the CloseGuard from complaining in strict-mode.

Bug: 150805473
Test: Existing tests pass
Change-Id: Ie3c609f79a953374a4d336465676cdc312679f93
2020-03-05 22:05:59 +00:00
TreeHugger Robot
03a65f1a5e Merge "BatteryStatsManager: Address API council feedback" into rvc-dev 2020-03-05 21:42:12 +00:00
Muhammad Qureshi
596a1f6f4e Merge "Use FrameworkStatsLog instead of StatsLogInternal" into rvc-dev 2020-03-05 21:41:04 +00:00
Jing Ji
7712b3a92a Merge "Update the categories of app kill reaons" into rvc-dev 2020-03-05 21:16:12 +00:00
TreeHugger Robot
8caff7dc81 Merge "DO NOT MERGE: Remove AppSearch from Android R." into rvc-dev 2020-03-05 21:09:00 +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
TreeHugger Robot
77864d6771 Merge "Revert "Revert "Require user pass in a non-null BluetoothDevice ..."" into rvc-dev 2020-03-05 19:15:30 +00:00
Jorim Jaggi
b8138a2835 Merge "Fix alpha when applying insets" into rvc-dev 2020-03-05 18:38:23 +00:00