Commit Graph

421113 Commits

Author SHA1 Message Date
Zimuzo
f3c4614d1f Pause watchdog triggering on the main thread during OtaDexoptService
Similar to I3876c41e6d0e41d044a5b1d5e57f894c7fb4fb0e where we pause
the watchdog because dexopting can take a while, here moving A/B
artificats can take a long time.

Bug: 134062700
Test: Manually tested by adding an artificial sleep in
OtaDexoptService#main and verified that watchdog was not triggered

Change-Id: I69067fbbb8be4e421918c18b67269044fab51b3e
2019-05-31 12:46:12 +01:00
Remi NGUYEN VAN
0edda9f555 Simplify crash conditions in NetworkStackClient
The previous model could have impact on boot time to read/write from/to
disk, and could potentially fail in some scenarios where the device does
full reboots instead of framework restarts.

The current design most simply avoids crashing in the first 30mins after
a full reboot, and optimistically checks the wall clock to rate-limit
the crashes to every 6h.

Test: manual as below, without IS_DEBUGGABLE condition
Test: Install new NetworkStack, force crash, observe rollback
Test: Set min_uptime_before_crash to 100, force crash, observe crash
Test: min_uptime_before_crash still 100, install new NetworkStack, force
      crash: observe rollback (there was already a recent crash)
Test: Set min_crash_interval to 10, force crash: observe crash
Bug: 133725814
Change-Id: I3fd5ba7047d7ac991cb62a7cab16a40f4ee731a3
2019-05-31 20:06:11 +09:00
Lorenzo Colitti
ac955b3171 Don't crash ConnectivityService if the network stack crashes.
When the network stack crashes, the system will rebind to it.
Existing references are no longer useful (they just throw
RemoteException) but if the system is still up, then the user
can at least recover the situation by taking actions such as
going into airplane mode, toggling wifi, etc.

This CL stops ConnectivityService from crashing the system when
it cannot talk to NetworkMonitor. This is arguably better than
crashing the system, because crashing the system is disruptive
and carries the serious risk of a bootloop from which it is not
possible to recover.

NetworkStackClient already contains code to crash the system
when the network stack crashes. This change help ensure that
if a crash occurs, it is the result of an explicit decision by
that code instead of an unchecked exception in one of the callers
of the network stack.

Bug: 133725814
Test: builds, boots
Test: atest FrameworksNetTests NetworkStackTests
Change-Id: Ib9a15fececd8579fc5b139fe0341275a45512e0f
2019-05-31 19:30:36 +09:00
Lorenzo Colitti
836f6a4a05 Add a wrapper for INetworkMonitor.
Generated using:
./wrap_aidl.sh frameworks/base/services/net/aidl/networkstack/3/android/net/INetworkMonitor.aidl > frameworks/base/services/net/java/android/net/NetworkMonitorManager.java

Bug: 133725814
Test: builds, boots
Test: atest FrameworksNetTests
Change-Id: I9f3f2588d498a05e2405129cf58bfcdd30f45e3b
2019-05-31 19:22:32 +09:00
Linus Tufvesson
fff8fe61ab Merge "Notify all running users of DeviceConfig changes" into qt-dev
am: b26792a2ca

Change-Id: I8a4cb135c18d586cff44de782560336328905a0a
2019-05-31 02:28:28 -07:00
Gavin Corkery
ab5ee411e5 Perform user data back up in post install stage
Currently the backup of user data is done in the enable rollback stage,
during which there is no guarantee that the package being backed up is
not currently running. Moving the backup to the post install stage will
guarantee that the package is not running.

Test: atest RollbackTest
Test: atest StagedRollbackTest
Bug: 124032231
Change-Id: I4b42a0c5ade1645585d1d6f698637df950d05c72
2019-05-31 10:26:56 +01:00
Chalard Jean
83f485b20d [automerger skipped] Merge "Prevent a 4-way binder interlock leading to a leak." into qt-dev
am: f3eaec257a -s ours
am skip reason: change_id Ide2428dab3fcd6d7cd00aa2a9fd99d6c99b815a4 with SHA1 d5603307e1 is in history

Change-Id: I08e37b4458b3c6242a1cca8aab913b09642a9e53
2019-05-31 02:26:51 -07:00
Linus Tufvesson
b26792a2ca Merge "Notify all running users of DeviceConfig changes" into qt-dev 2019-05-31 09:14:53 +00:00
TreeHugger Robot
f3eaec257a Merge "Prevent a 4-way binder interlock leading to a leak." into qt-dev 2019-05-31 09:12:53 +00:00
Winson Chung
cdc61755a2 Merge "Ensure margins for floating rotation button account for corner insets" into qt-dev
am: 64fc46315f

Change-Id: Ibd3879d1e0e1d612662379f5f0b879400078d961
2019-05-30 21:06:52 -07:00
Winson Chung
780fc519dc Removing logs from old bug
Bug: 134106231
Test: None, only log removal
Change-Id: I6503f38ac25d1b2784a181182de026ec0f96e125
2019-05-30 21:03:49 -07:00
Winson Chung
64fc46315f Merge "Ensure margins for floating rotation button account for corner insets" into qt-dev 2019-05-31 03:41:33 +00:00
Colin Cross
4a420d368f Merge "Make test_options.timeout an int64" am: 9a2d64872b
am: 9b4f268106

Change-Id: Id2c82d2be806d1f9c729b7b0428eccbf67db83d8
2019-05-30 20:24:19 -07:00
Colin Cross
9b4f268106 Merge "Make test_options.timeout an int64"
am: 9a2d64872b

Change-Id: Idc79fb957d452b833b5f6e95feaf21aa4caa2658
2019-05-30 20:19:02 -07:00
Colin Cross
9a2d64872b Merge "Make test_options.timeout an int64" 2019-05-31 03:11:21 +00:00
Steve Elliott
f4b48ddfc3 Merge "Fix RTL placement of "Silent Notifications" section header" into qt-dev
am: f3825f11a1

Change-Id: Ia56418c0fcb531b30005b7415c35c98cad45a6f4
2019-05-30 20:10:36 -07:00
TreeHugger Robot
f3825f11a1 Merge "Fix RTL placement of "Silent Notifications" section header" into qt-dev 2019-05-31 02:52:14 +00:00
Remi NGUYEN VAN
95727b5122 Merge "Add tests for NetworkStack failure notifications" into qt-dev
am: d63457c64b

Change-Id: I958f7db1c65b2a2a467853ed5c3bc0836f5f1125
2019-05-30 19:31:42 -07:00
Remi NGUYEN VAN
d63457c64b Merge "Add tests for NetworkStack failure notifications" into qt-dev 2019-05-31 02:23:28 +00:00
Anil Admal
78c097c85d Merge "Fix permission mismatch logging of NfwNotification when GNSS HAL is disabled" into qt-dev
am: 2ef048060c

Change-Id: I39d55cfccdf0641f07b0c59dbc8a62f769cab5e1
2019-05-30 19:10:38 -07:00
Anil Admal
2ef048060c Merge "Fix permission mismatch logging of NfwNotification when GNSS HAL is disabled" into qt-dev 2019-05-31 01:58:55 +00:00
Felka Chang
8f6eef09c0 Merge "Fix notification shade inefficient contrast" into qt-dev
am: f185b652bd

Change-Id: I88d04ee8a92d14d73cea35bedcac76441c58ce07
2019-05-30 18:38:29 -07:00
TreeHugger Robot
f185b652bd Merge "Fix notification shade inefficient contrast" into qt-dev 2019-05-31 01:26:19 +00:00
David Sehr
26a6427c44 Add system option to disable lock profiling
Disable lock profiling to test for overhead.

Bug: 133257467
Test: build
Change-Id: Ida5f83e626c82266de69b13dc2def0477cc87b0f
2019-05-30 18:04:16 -07:00
Jeff Sharkey
1aa2934cf2 Merge "video files with mimetype video/x-ms-asf can't scan to Gallery" into qt-dev
am: 6f574c4d3a

Change-Id: I50973ff724c5a3dbb65744be81c786de8956615d
2019-05-30 17:31:05 -07:00
Lucas Dupin
c53aaf84b9 Do not translate statusbar icons
We're not showing them on AOD anymore, this code is obsolete.

Test: visual
Fixes: 132396324
Change-Id: Ief1870b5c92351ca5533721b7dd5db57994d5d27
2019-05-30 17:23:28 -07:00
Jeff Sharkey
6f574c4d3a Merge "video files with mimetype “video/x-ms-asf” can't scan to Gallery" into qt-dev 2019-05-31 00:10:04 +00:00
Nader Jawad
768c1a86e0 Merge "Brought back compatibility check for falling back on dest_out whenever clear is used as a blend mode to draw bitmaps" into qt-dev
am: 1f915b0d33

Change-Id: I69b496f9fac8f8443ec041f2a8f938cdfa5f3b6c
2019-05-30 16:54:06 -07:00
TreeHugger Robot
1f915b0d33 Merge "Brought back compatibility check for falling back on dest_out whenever clear is used as a blend mode to draw bitmaps" into qt-dev 2019-05-30 23:37:42 +00:00
Fan Zhang
985f306cc1 Merge "Revert "Make statusBarColor and navBarColor transparent for"" into qt-dev
am: cd8a323f2a

Change-Id: I5066a7af47fdc9f46a925a39969780832ce8984f
2019-05-30 16:28:39 -07:00
Winson Chung
082e8dfb06 Ensure margins for floating rotation button account for corner insets
Bug: 134070810
Test: On P4, rotate the screen and see the button
Change-Id: I67159e94a3a03e8a580b943d860ad32b1753e160
2019-05-30 16:18:00 -07:00
Nazanin Bakhshi
503d6c4248 Merge "Store subscriber ID / IMSI into telephony database" into qt-dev
am: 75de2d5464

Change-Id: I766e01f6e53b588b49bf91b5c3df7bc87861723b
2019-05-30 16:17:07 -07:00
TreeHugger Robot
cd8a323f2a Merge "Revert "Make statusBarColor and navBarColor transparent for"" into qt-dev 2019-05-30 23:16:30 +00:00
Sunny Goyal
c9b081042e Merge "Reducing the bottom gesture-insets for full gesture nav to 32dp height" into qt-dev
am: 66295e6fda

Change-Id: I93df4b5b3c2753e0e154ec4c4ceffb643f357294
2019-05-30 16:13:59 -07:00
Nazanin Bakhshi
75de2d5464 Merge "Store subscriber ID / IMSI into telephony database" into qt-dev 2019-05-30 23:07:29 +00:00
TreeHugger Robot
66295e6fda Merge "Reducing the bottom gesture-insets for full gesture nav to 32dp height" into qt-dev 2019-05-30 22:58:04 +00:00
Sunny Goyal
b5e5bcb3ed Reducing the bottom gesture-insets for full gesture nav to 32dp height
Bug: 132917885
Test: atest WindowInsetsBehaviorTests
Test: Verified on device
Change-Id: I82185201e2e4f458fbb13feffdde39c20e823e3f
2019-05-30 22:57:11 +00:00
Nader Jawad
476d0d1605 Brought back compatibility check for falling back on dest_out
whenever clear is used as a blend mode to draw bitmaps

Modified SkiaRecordingCanvas to call filterBitmap instead of
filterPaint in order to conduct the necessary compatibility checks
to use dest_out instead of clear whenever a bitmap is drawn

Test: In progress..
Bug: 131689368
Change-Id: I56d015e773b312cac948d850ca2997d8df0cc66d
Merged-In: I56d015e773b312cac948d850ca2997d8df0cc66d
2019-05-30 15:51:37 -07:00
Christopher Tate
38036ed509 Merge "Tidy up all service state when done executing" into qt-dev
am: 5063579f1e

Change-Id: I0c9e8d7f4abae45039218a9efbd341d954fa55c2
2019-05-30 15:49:47 -07:00
TreeHugger Robot
5063579f1e Merge "Tidy up all service state when done executing" into qt-dev 2019-05-30 22:42:33 +00:00
Anil Admal
27caa745b3 Fix permission mismatch logging of NfwNotification when GNSS HAL is disabled
Bug: 134073233
Test: Manual
Change-Id: I6093994b9a82342ab935d8535b37641e5ce44984
2019-05-30 15:41:57 -07:00
Mehdi Alizadeh
e6bd942a04 Merge "Restores state of AppPredictionService after remote service crash" into qt-dev
am: b143fe4928

Change-Id: I294a1c8759baaaa799a6ead5cabec493cfcd2c7a
2019-05-30 15:41:46 -07:00
Matt Casey
0d60b4c868 Merge "Fixes test that is currently failing" into qt-dev
am: 20a2e7ae2f

Change-Id: Id78942cc57c075f983984bb39da969e505938781
2019-05-30 15:35:15 -07:00
Etan Cohen
92d3ac8a7e Merge "Modify Encrypted IMSI, remove deprecated protocols" into qt-dev
am: 08236f3d3a

Change-Id: I67f895f5bb227749edcdc859007622f0ac77723b
2019-05-30 15:33:43 -07:00
Mehdi Alizadeh
b143fe4928 Merge "Restores state of AppPredictionService after remote service crash" into qt-dev 2019-05-30 22:32:29 +00:00
Evan Rosky
e06bed8570 Merge "Take snapshot directly during change transition" into qt-dev
am: ed057ab244

Change-Id: I3f127cf09d2ac6340095121a36795a59e1d5a94a
2019-05-30 15:29:43 -07:00
Matt Casey
20a2e7ae2f Merge "Fixes test that is currently failing" into qt-dev 2019-05-30 22:23:37 +00:00
Govinda Wasserman
5dfe9658bf Fixes test that is currently failing
Refactors yesterday caused tests to fail because of dependencies getting
initialized earlier. Refactored so that they are initialized late enough
for the tests to be able to mock them correctly.

Also fixes bug where handles would still show when there was no
Assistant.

Test: atest AssistHandleBehaviorControllerTest
BUG:132424950
Fixes: 134086503
Change-Id: I645a2529bf56b5e996e8250267ead87bed9f4f2b
FIX:132424950
2019-05-30 22:22:59 +00:00
Etan Cohen
08236f3d3a Merge "Modify Encrypted IMSI, remove deprecated protocols" into qt-dev 2019-05-30 22:16:09 +00:00
Evan Rosky
ed057ab244 Merge "Take snapshot directly during change transition" into qt-dev 2019-05-30 22:11:37 +00:00