Commit Graph

113464 Commits

Author SHA1 Message Date
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
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
Will Brockman
ed05940533 Merge "Statsd log of dismiss all notifications event." into rvc-dev 2020-03-06 21:59:11 +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
Eugene Susla
8f562219c8 Merge "Generate @NonNull setter args and @MaySetToNull to opt out" into rvc-dev 2020-03-06 18:53:24 +00:00
Will Brockman
b65faa8e05 Statsd log of dismiss all notifications event.
Using UiEventLogger: DISMISS_ALL_NOTIFICATIONS_PANEL

Bug: 146488473
Test: atest NotificationStackScrollLayoutTest
Change-Id: Ic81190fa52e9e43498d41182b0476bb03645a52d
2020-03-06 13:51:14 -05: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
TreeHugger Robot
8f15e287e9 Merge "Autolaunch if one app in active profile and empty state in the inactive." into rvc-dev 2020-03-06 17:41:44 +00:00
TreeHugger Robot
8a34b90f7a Merge "Enable work tab in share sheet and intent resolver feature flag" into rvc-dev 2020-03-06 17:38:32 +00:00
Zhen Zhang
973ec1172b Merge "Fix Sharesheet nest scrolling issue introduced by using RecyclerView" into rvc-dev 2020-03-06 17:22:11 +00:00
Evan Rosky
320ecaca3f Merge "Fix config change on secondary split adjustment" into rvc-dev 2020-03-06 16:50:09 +00:00
arangelov
85974ed070 Enable work tab in share sheet and intent resolver feature flag
Test: rigorous testing by my team, manual QA and myself
Fixes: 150937704
Change-Id: I025e0b64c7c12ecb8eb0290d8bb8c6f3b4f41dcd
2020-03-06 16:38:52 +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
arangelov
4c0513d8c7 Prevent intent resolver from changing height when no app targets
If we select the inactive tab, and there are no resolved targets,
the intent resolver changes its height for a few frames.
This is because first we show and reload the list view as we
switch to the other, and then in onPostListReady we show the
empty state screen for no apps available. There are few frames
between these two events, when the list view has a height of 0.
That's when the ResolverViewPager recalculates its height and
thus reduces the intent resolver height. Then as the empty state
screen is shown, the proper intent resolver height is restored.
The fix is to move the showListView call to onPostListReady.

Test: manual
Fixes: 150888674
Change-Id: I685568e183bbd5708242e1228195ec6b09023272
2020-03-06 15:34:34 +00:00
arangelov
b91d08f1a8 Autolaunch if one app in active profile and empty state in the inactive.
Fixes: 150883045
Test: manual
Change-Id: I2fbc862cc73c5763de9aaff436c01de8dbc83efb
2020-03-06 15:34:21 +00:00
TreeHugger Robot
780782b750 Merge "Controls API - Add support for routines" into rvc-dev 2020-03-06 14:50:04 +00:00
Anna Trostanetski
e9e7d56cd9 Merge "Add support for LoggingOnly changes" into rvc-dev 2020-03-06 14:38:28 +00:00
TreeHugger Robot
ac8a5397bc Merge "Update strings related to intent resolver and share sheet." into rvc-dev 2020-03-06 13:48:02 +00:00
Hugo Benichi
4cf6815168 Merge "vpn: Fix NPE in VpnConfig#toString when no ProxyInfo is set" into rvc-dev 2020-03-06 12:30:17 +00:00
arangelov
78fd360cf6 Update strings related to intent resolver and share sheet.
Test: manual
Fixes: 149749960
Fixes: 149897521
Change-Id: I8a8273bec0e85bc9d21e863ded943e9e28e4dbd4
2020-03-06 11:58:37 +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
Hugo Benichi
c8922177c8 vpn: Fix NPE in VpnConfig#toString when no ProxyInfo is set
Bug: 150910582
Test: Compiled bertha_x86_64-userdebug (Chrome OS ARCVM image) for
rvc-dev, flashed eve-arcvm (Pixelbook), connected TouchVpn App, observed
that ARC's VpnTracker does not crash the system server when printing
VpnConfig objects with no ProxyInfo.

Change-Id: I3f8dd1d232e2b18dae9e99eb05c92a797a2358b9
2020-03-06 14:20:23 +09: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
Eugene Susla
47ca5d035e Generate @NonNull setter args and @MaySetToNull to opt out
Bug: 143653080
Test: source /usr/local/google/home/eugenesusla/android2/master/frameworks/base/tests/Codegen/runTest.sh
Change-Id: Iba8da34c91fd09e266429ab131add1d53449506b
(cherry picked from commit ab14c55c1f)
2020-03-05 23:54:43 +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
TreeHugger Robot
e6750fd522 Merge "Make "Always" and "Just once" buttons work properly in tabbed view" into rvc-dev 2020-03-05 22:14:50 +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