Commit Graph

103164 Commits

Author SHA1 Message Date
TreeHugger Robot
c6f4f74723 Merge "V4 uses V2 digest if V3 is not available." into rvc-dev 2020-03-25 01:36:01 +00:00
Nicholas Ambur
bf2c076c0c Merge changes from topic "soundtrigger-hal-error" into rvc-dev
* changes:
  disable SoundTriggerService in safe mode
  Crash service on SoundTriger HAL fatal error
2020-03-25 00:31:20 +00:00
Philip P. Moltmann
7556065b55 Merge "Pipe through attributeId to notification app-op" into rvc-dev 2020-03-24 23:53:51 +00:00
TreeHugger Robot
d3a0b89571 Merge "Defer updating InsetsSource.mFrame while animating" into rvc-dev 2020-03-24 22:16:09 +00:00
TreeHugger Robot
c01b818bae Merge "Update documentation" into rvc-dev 2020-03-24 22:06:18 +00:00
Alex Buynytskyy
6b7efbc4b9 V4 uses V2 digest if V3 is not available.
Test: atest PackageManagerShellCommandIncrementalTest
Bug: b/151240006
Change-Id: I242b599e434880ce218537574e879e9436e5d3da
2020-03-24 14:34:52 -07:00
TreeHugger Robot
da8101d270 Merge "Deprecate POWER_SAVE_MODE_CHANGING broadcast." into rvc-dev 2020-03-24 20:56:25 +00:00
Jorim Jaggi
2751c29414 Defer updating InsetsSource.mFrame while animating
...otherwise developer will get onApplyWindowInsets which don't
match end value of animation. Super confusing

Test: InsetsControllerTest
Bug: 152071027
Change-Id: Ic1819512a5ce78843433bf7c231d062e12de0e7b
2020-03-24 21:25:46 +01:00
TreeHugger Robot
8ac8b257f1 Merge "Clarify Toast.Callback javadoc" into rvc-dev 2020-03-24 20:05:26 +00:00
Julia Reynolds
460292f789 Update documentation
Test: make
Fixes: 152262228
Change-Id: I66eca44b649e209ea7adc39e38c24d21e564fe8d
2020-03-24 15:44:25 -04:00
Philip P. Moltmann
e4b03b589f Pipe through attributeId to notification app-op
The noteOp API without attributeId is deprecated.

For @UnsupportedApi Binder calls we need to keep the old name there.

Test: TH
Bug: 136595429
Change-Id: Ib758b431c0842bb16ce8e8fb3a33d4524ab0878c
2020-03-24 11:41:09 -07:00
TreeHugger Robot
ff57d5cba0 Merge "Camera: Add visual samples for android.control.zoomRatio" into rvc-dev 2020-03-24 18:37:39 +00:00
Bernardo Rufino
255094826d Clarify Toast.Callback javadoc
Text was ambiguous and could mean callback object construction instead
of toast construction.

Test: Builds
Bug: 144152069
Change-Id: I06160de2b85f339517ae45d3bd4cc1098f433ef0
2020-03-24 18:12:44 +00:00
Pavel Grafov
70b1c45a9e Merge "Suspend newly installed apps when personal apps are suspended" into rvc-dev 2020-03-24 17:42:11 +00:00
TreeHugger Robot
78243297c0 Merge "Use REPLACE_EXISTING for rename(2) workaround." into rvc-dev 2020-03-24 17:42:03 +00:00
Roshan Pius
198e8c3629 Merge "Settings: Add a javadoc note for WIFI_MIGRATION_COMPLETED" into rvc-dev 2020-03-24 17:12:06 +00:00
TreeHugger Robot
7cf2aeac02 Merge "Introduce DisplayArea organizer" into rvc-dev 2020-03-24 15:37:57 +00:00
Roshan Pius
d0d5fc222e Settings: Add a javadoc note for WIFI_MIGRATION_COMPLETED
Addressing previous CL comment.

Bug: 151888061
Test: Compiles
Change-Id: I4c740134b08bae9f40531c4a0d4133336d1a88d1
2020-03-24 15:16:44 +00:00
Jorim Jaggi
367257cfc4 Merge "Performance optimizations for new insets" into rvc-dev 2020-03-24 14:25:47 +00:00
TreeHugger Robot
59fc7d573e Merge "Add new hidden API in CrossProfileApps and other minor changes" into rvc-dev 2020-03-24 13:46:23 +00:00
Wale Ogunwale
dec3408b50 Introduce DisplayArea organizer
Similar to task organizer this allows for the organization of display
areas.

Test: they pass!
Bug: 147406652
Bug: 152113464
Bug: 152117221
Change-Id: Id0dbec20f0aedc5162f4ff7be81b2dafb0c8f3c9
2020-03-24 06:30:13 -07:00
Pavel Grafov
97bb33b93c Suspend newly installed apps when personal apps are suspended
Also make use of PackageManager.getUnsuspendablePackages() which
already takes care of launcher and dialer packages and some
other critical apps, like package verifier, package
[un-]installer, etc.

For newly installed packages it PackageManager.getUnsuspendableApps()
seems to be sufficient since that app won't be critical for the
functioning of the device.

Test: Test: atest
    OrgOwnedProfileOwnerTest#testPersonalAppsSuspensionInstalledApp
Bug: 149394138
Change-Id: Ic3196dbfdd5c506e708563d305a42494391dc878
2020-03-24 12:28:07 +00:00
Treehugger Robot
5dfba4b557 Fix addRoute replace default route unexpectedly
In aosp/1203789, if two routes are with the same destination,
it will be replaced instead of added when calling addRoute.
This breaks scenarios which rely on the ability to add multiple
default routes, such as multiple IPv6 default routes learned
via address autoconfiguration.

This change treats the route is an update if the destination
and nexthop are the same, but different in other properties.

Test: atest OffloadControllerTest#testSetUpstreamLinkPropertiesWorking
Test: atest LinkPropertiesUtilsTest#testLinkPropertiesIdenticalEqual
Test: atest ConnectivityServiceTest#testStackedLinkProperties
Test: atest ConnectivityServiceTest#testRouteAddDeleteUpdate
  (only directly related tests are listed)
Fix: 152170074
Fix: 151911339
Bug: 142892223

Change-Id: I7153ec9866f14a109ba8155c905e5d9e4f85eb64
Merged-In: I7153ec9866f14a109ba8155c905e5d9e4f85eb64
(cherry picked from commit 11aa9cb44a)
2020-03-24 08:41:44 +00:00
TreeHugger Robot
aec6f5f6fa Merge "Pass source to dispatchBatchedInputEventPending (1/2)" into rvc-dev 2020-03-24 07:56:25 +00:00
TreeHugger Robot
e5f6400042 Merge "Address API Council comments for ProtoOutputStream" into rvc-dev 2020-03-24 05:27:15 +00:00
Roshan Pius
5f176bf91e Merge "WifiMigration: Add a settings key to indicate migration is complete" into rvc-dev 2020-03-24 05:11:50 +00:00
Taran Singh
1bcb0c6b35 Merge "Fix IME hide state" into rvc-dev 2020-03-24 03:59:14 +00:00
Taran Singh
292da01e06 Merge "Fix floating IME visibility" into rvc-dev 2020-03-24 03:59:05 +00:00
Joe Onorato
8006029ec9 Address API Council comments for ProtoOutputStream
Bug: 148011305
Bug: 148966916
Test: m && m offline-sdk-docs
Change-Id: I0aeeb74329a90706999d6103b7da2e239f4a369e
2020-03-23 20:41:24 -07:00
TreeHugger Robot
a42c95cd64 Merge "Refine performance for calling into ContentCapture" into rvc-dev 2020-03-24 03:31:20 +00:00
Wale Ogunwale
e5cfca4454 Merge "Introduce WindowOrganizer" into rvc-dev 2020-03-24 02:01:29 +00:00
Roshan Pius
849a6f78a5 WifiMigration: Add a settings key to indicate migration is complete
Bug: 151888061
Test: Manual verification (ensured that this method returns null after
first reboot)

Change-Id: Ie8ad397c7b68e35cfa7b696ef22d84f376cf3fe7
2020-03-23 18:48:28 -07:00
Santiago Etchebehere
9c750b3084 Merge "Send a command to the wallpaper when re-applying it" into rvc-dev 2020-03-24 01:46:29 +00:00
Taran Singh
aef529a7cc Fix IME hide state
Insets API notifies IME when it's hidden. however, IMMS never
really received these state changes. Using requestHideSelf() makes sure
IMMS is in-sync.

Fix: 151980214
Test: manually using the steps in bug

Change-Id: I7f6098a61a5942795ffd33a60329e4dd5fb5d6cb
2020-03-24 00:43:42 +00:00
TreeHugger Robot
393c9121ce Merge "Hide CellularBatteryStats#getTxTimeMillis." into rvc-dev 2020-03-24 00:09:05 +00:00
Vishnu Nair
84d1c3c618 Merge "Revert "Revert "RootViewImpl: Fix measure size hint for WRAP_CONTENT windows""" into rvc-dev 2020-03-23 23:25:21 +00:00
Taran Singh
0485041305 Fix floating IME visibility
Floating IME now applies final visibility

Test: Manually using steps in bug
Fix: 151953095
Change-Id: Id611e4bac22e9663d04e260794ea0f621d7b7e29
2020-03-23 15:58:39 -07:00
Eino-Ville Talvala
174fd34cba Merge "Camera: Improve docs for getOutputMinFrameDuration" into rvc-dev 2020-03-23 22:55:22 +00:00
Lucas Dupin
59dc371fed Merge "Set dark theme flag when initializing with Color" into rvc-dev 2020-03-23 22:49:37 +00:00
Santiago Etchebehere
85ef2fddce Send a command to the wallpaper when re-applying it
We don't set a wallpaper component again if it's the one
already set, so we're now sending it a command notifying
of this in case the wallpaper needs to reload or apply
settings.

Bug: 147677688
Test: atest WallpaperManagerServiceTests
Change-Id: If65671287ba3270933b75771a8c1c65c5ff0216a
2020-03-23 15:37:39 -07:00
Amit Mahajan
9bfde0e1fd Hide CellularBatteryStats#getTxTimeMillis.
Will be re-exposed as SystemApi in S.

Test: TH
Bug: 152247297
Change-Id: Ifb87676fa5afd2720dd09f36f3ff67c1b215b676
2020-03-23 15:15:17 -07:00
Jorim Jaggi
22488d31bb Performance optimizations for new insets
- Prevent unnecesary dispatchApplyInsets caused by legacy system
also requesting inset changes
- Make insetsModified oneway. It's safe to do so because we
absolutely don't care about interleaving with other WindowSession
methods.
- Do not trigger layout if nothing relevant has changed
- Only trigger requestFitSystemWindows if state actually changed

Test: Systrace. Automated perf test will be added
Bug: 151865131
Change-Id: I24944875e739e4a74606e3a02bbf14585c1c13db
2020-03-23 22:31:52 +01:00
Shuzhen Wang
69cf0fd599 Camera: Add visual samples for android.control.zoomRatio
To better document how android.control.zoomRatio works, add diagrams to
illustrate its relationship with scalerCropRegion.

Test: Build and read docs
Bug: 144780745
Change-Id: I90b93c4d516f6f1e2d427ed3d56e85b6c94befe8
2020-03-23 13:26:03 -07:00
TreeHugger Robot
87500a84a4 Merge "Make Log.isLogagble @FastNative" into rvc-dev 2020-03-23 20:25:39 +00:00
Nicholas Ambur
1e03bc0539 Crash service on SoundTriger HAL fatal error
Throwing an exception is not enough in this case. When the HAL
behaves unexpectedly, the system service and the HAL must be
reset and the client must be notified. Without a full reset in
this catastrophic case, the state of the HAL and the system service
cannot be guaranteed to the client.

Bug: 150569186
Test: Intentionally load an incompatible voice model and confirm the
device can recover.
Change-Id: Ia7c3f25e48f04bf32a96c64ec998fdfa52459685
2020-03-23 13:20:04 -07:00
Dan Stoza
571a08feec Merge "Add <p> tags for PowerManager#getThermalHeadroom" into rvc-dev 2020-03-23 20:04:41 +00:00
Eino-Ville Talvala
585305da32 Camera: Improve docs for getOutputMinFrameDuration
The current text was misleading, since minimum frame duration of a
stream affects the aggregate minimum frame duration of a session
whether a stream is in use for a given request stream or not.

Test: Docs build
Bug: 147080626
Change-Id: Ic884cd0bb3ea184383944cb78e9713d6044b1959
2020-03-23 12:41:17 -07:00
Svetoslav Ganov
09b9570862 Merge "Add APIs to move suggestions below/above window" into rvc-dev 2020-03-23 19:10:03 +00:00
Kweku Adams
62cef43ac2 Deprecate POWER_SAVE_MODE_CHANGING broadcast.
The internal POWER_SAVE_MODE_CHANGING broadcast is sent at the same
time as the POWER_SAVE_MODE_CHANGED broadcast. Since broadcasts are
asynchronous,there's no reason to have both, especially since it can
potentially lead to inconsistency, so we should simplify down to just
one. Mark the POWER_SAVE_MODE_CHANGING broadcast as deprecated in R and
unavailable to apps targeting R. We'll remove it in a future version.

Bug: 79580230
Test: Android builds
Test: atest BatterySaverReceiverTest
Change-Id: I70e20ce53b496a3dc88a1083c230334f53032d81
2020-03-23 11:51:46 -07:00
Andrii Kulian
87a59b2dfb Merge "Revert "Don't override activity display adjustments with app config"" into rvc-dev 2020-03-23 18:24:10 +00:00