Commit Graph

6163 Commits

Author SHA1 Message Date
Etan Cohen
272ed7536e Merge "[CS] Support "instant failure" from factories" 2019-02-22 14:29:39 +00:00
Nikita Ioffe
3383005724 Merge "RMS: Pass in rollback_id in the calls to installd" 2019-02-21 11:09:26 +00:00
Richard Uhler
b226f96c48 Merge changes I5383c533,Iaf739837
* changes:
  Add test for staged rollback of apex only install.
  Rename "Basic" staged rollback test to "ApkOnly"
2019-02-21 09:28:16 +00:00
TreeHugger Robot
f41a76e836 Merge "Remove extra null-check on IntervalStats.events." 2019-02-21 05:44:05 +00:00
TreeHugger Robot
0d40e2de23 Merge "Rename test class to match code." 2019-02-21 04:56:17 +00:00
Hui Yu
f6118b3d17 Remove extra null-check on IntervalStats.events.
Now IntervalStats.events field is initialized at construction of
IntervalStats object, we can remove the extra null-check on
IntervalStats.events, make code more clean and readable.

Test: atest UsageStatsDatabaseTest.java
Change-Id: I2580509f41593c1fdf380ba56ebc7a5b6c6f0c5f
2019-02-20 18:10:29 -08:00
Leland Miller
6ead427b4e Merge "Split RCS events into API and internal classes" am: 609ea873b7 am: 7b46efda19
am: 720a31725d

Change-Id: Id2d914dcb2088ea676c448ff7068ac7229913182
2019-02-20 14:10:06 -08:00
Leland Miller
720a31725d Merge "Split RCS events into API and internal classes" am: 609ea873b7
am: 7b46efda19

Change-Id: I2fc31c0fdc1e8eb203830dff9a7914e56ebda413
2019-02-20 13:05:37 -08:00
Lucas Dupin
b53be1d28c Merge "Improve the performance when loading image wallpaper colors" into pi-dev
am: 98684aa82a

Change-Id: I4ff2e38dc3f40ccf6289ffbee69eed23c96fa4dc
2019-02-20 12:43:52 -08:00
Lucas Dupin
98684aa82a Merge "Improve the performance when loading image wallpaper colors" into pi-dev 2019-02-20 20:26:25 +00:00
Treehugger Robot
609ea873b7 Merge "Split RCS events into API and internal classes" 2019-02-20 20:01:14 +00:00
Varun Anand
ad8805a6c2 Update VPN capabilities when its underlying network set is null.
Previously, they were only updated when underlying network set was
non-null.

This change also ensures that all the calls b/w ConnectivityService and
Vpn that leads to updating capabilities are on ConnectivityService
handler thread.

Additionally, it also ensures that capabilities are propagated after VPN
enters connected state.

This change also updates VPN capabilities inline from
ConnectivityService handler thread. Previously, there was an additional
loop where Vpn would update capabilities via NetworkAgent thru
AsyncChannel which posts back to CS handler thread, which could
potentially lead to delays in updating VPN capabilities.

Bug: 119129310
Bug: 118856062
Bug: 124268198
Test: atest FrameworksNetTests
Test: manual - verified VPNs capabilities are getting updated and
DownloadManager is working correctly.

(cherry picked from commit 4fa80e8a2f)

Change-Id: Iae5f2024b19df04c31938815b52687781d016cde
Merged-In: Id0abc4d304bb096e92479a118168690ccce634ed
2019-02-20 18:37:44 +00:00
Richard Uhler
7fabc93642 Add test for staged rollback of apex only install.
Bug: 124043688
Test: atest StagedRollbackTest

Change-Id: I5383c533483e48d3f300e66e9554677d6057c494
2019-02-20 16:36:54 +00:00
Richard Uhler
67c3746c1f Rename "Basic" staged rollback test to "ApkOnly"
In preparation for adding Apex and Apex + Apk tests.

Bug: 124043688
Test: atest StagedRollbackTest
Change-Id: Iaf7398370c65403373bf4e7c2f82c8eb9cc0930c
2019-02-20 16:36:54 +00:00
Xin Li
4ba3b12efb Merge changes from topic "PPRL.190205.001"
* changes:
  Fix merge problems with cherry-picking "Add notification settings to backup&restore" change into pi-dev
  DO NOT MERGE - Merge PPRL.190205.001 into master
2019-02-20 16:25:58 +00:00
Rubin Xu
391f42b70d Merge "Skip unreachable route when estimating VPN destinations" am: 21078b1edd am: e000de90f4
am: 12d2de6417

Change-Id: Id81038035eddf98d0c4546ddb25c8f6ed5736ad6
2019-02-20 04:35:38 -08:00
Alan Stokes
8d3b7a4d45 Rename test class to match code.
Renaming DexLoggerIntegrationTests to
DynamicCodeLoggerIntegrationTests, to match the rename and changed
scope of the code it is testing.

Test: atest -p services/core/java/com/android/server/pm/dex
Bug: 122946463
Change-Id: I66abd6b173f148279085dee7a714aa64df7a941b
2019-02-20 12:30:44 +00:00
Rubin Xu
e000de90f4 Merge "Skip unreachable route when estimating VPN destinations"
am: 21078b1edd

Change-Id: Iafa9ecaf07a36f235b366655d2fa2165a676d1cd
2019-02-20 04:15:55 -08:00
Treehugger Robot
21078b1edd Merge "Skip unreachable route when estimating VPN destinations" 2019-02-20 12:00:15 +00:00
TreeHugger Robot
621981e0e8 Merge "Convert Android.mk file to Android.bp" 2019-02-20 10:56:33 +00:00
Sasha Smundak
500db62bfa Convert Android.mk file to Android.bp
See build/soong/README.md for more information.

Bug: 122332340
Test: treehugger
Change-Id: I23d8d5a019155a0f3296f7ab75e9b44b7621f3c8
2019-02-19 13:46:51 -08:00
Leland Miller
c39f23c1a6 Split RCS events into API and internal classes
This will allow us to inject dependencies into the API classes that are
not parcelable or do not come from ircs.

Bug: 123699565
Test: Unit tests pass
Change-Id: Iab4e6ea3fd983eef7fb0cba7311175ea82a444ff
2019-02-19 11:39:49 -08:00
Rubin Xu
c63e48dd65 Skip unreachable route when estimating VPN destinations
Bug: 122652441
Test: atest com.android.server.connectivity.VpnTest
Test: Establish a IPv4 VPN with minimal routes and check
(dumpsys connectivity) the VPN network does not have INTERNET
capability.

Change-Id: Ic7f19ebb7b7f78a6ffb2a8ec3fc3eca5e5421f57
2019-02-19 17:18:34 +00:00
wilsonshih
5abc71b27b Improve the performance when loading image wallpaper colors
When SystemUI start up, ColorExtractor will get wallpaper colors so
status bar can use it to update theme, however, this will also block
SystemUI start up process if the wallpaper is image wallpaper.
In order to break the latency, we can extract getWallpaperColors
method from ColorExtractor's contructor, and do it at another thread,
so it won't block SystemUI start up.

Bug: 124279857
Test: atest ColorExtractorTest
Test: Manual test change theme feature can work normally.
Merged-In: I8589b28a17b0a2b33b4bbbda2265080af983f26a
Change-Id: I8589b28a17b0a2b33b4bbbda2265080af983f26a
2019-02-19 16:57:59 +00:00
Lucas Dupin
311af9ea4b Merge "Improve the performance when loading image wallpaper colors" 2019-02-19 16:57:38 +00:00
Nikita Ioffe
5dcd179749 RMS: Pass in rollback_id in the calls to installd
- snapshotAppData gets PackageRollbackInfo and updates pending backups
  and inodes of CE user data snapshots;
- computePendingBackups/Restores is now merged into
  commitPendingBackupAndRestoreForUser;
- essentially commitPendingBackupAndRestoreForUser now gets lists of
  pending and recently executed rollbacks, computs what backups and
  restores are pending and commits them.

Bug: 124029909
Test: RollbackTest, AppDataRollbackHelperTest
Change-Id: I5aecdfd47b535492165614ee7cf9676778e292ad
2019-02-19 15:11:50 +00:00
Richard Uhler
f500684d90 Add StagedRollbackTest to TEST_MAPPING.
Bug: 124043688
Test: frameworks/base/tests/RollbackTest$ atest
Change-Id: Ifbfb725a5909fe80aae6af4d90f9d0d3804839c5
2019-02-19 09:59:06 +00:00
Alan Stokes
218c9e7d9b Merge "Attempt to de-flake tests." 2019-02-19 09:08:55 +00:00
wilsonshih
0e490d9e77 Improve the performance when loading image wallpaper colors
When SystemUI start up, ColorExtractor will get wallpaper colors so
status bar can use it to update theme, however, this will also block
SystemUI start up process if the wallpaper is image wallpaper.
In order to break the latency, we can extract getWallpaperColors
method from ColorExtractor's contructor, and do it at another thread,
so it won't block SystemUI start up.

Bug: 124279857
Test: atest ColorExtractorTest
Test: Manual test change theme feature can work normally.

Change-Id: I8589b28a17b0a2b33b4bbbda2265080af983f26a
2019-02-19 10:06:22 +08:00
TreeHugger Robot
77ed438f0f Merge changes Ie125d44c,If9b5d57e,I001427c7
* changes:
  Create basic test for rollback of staged install.
  Stub out code for a host driven StagedRollbackTest.
  Move RollbackTest app code to a new subdirectory.
2019-02-18 17:49:56 +00:00
Alan Stokes
206a69d409 Attempt to de-flake tests.
Some of these tests rely on audit logs being generated and then
visible when we try to read them. Occasionally this doesn't work -
probably because of throttling or the asynchronous, background nature
of logging. When it happens the tests fail.

To avoid this, re-run the susceptible tests multiple times rather than
failing on the first go, with increasingly long delays between
triggering and reading the logs on each run.

Bug: 123507824
Test: atest -p services/core/java/com/android/server/pm/dex
Change-Id: I62db997c912b2d153ecaea34011529c4c58207c7
2019-02-18 16:59:56 +00:00
Richard Uhler
c5e2e803fd Create basic test for rollback of staged install.
The new test tests rollback of a staged install involving a single apk.

Test: atest StagedRollbackTest
Bug: 124043688
Bug: 124221060
Bug: 124284714

Change-Id: Ie125d44c4d30d142ee32beac4c42e735a47ec71e
2019-02-18 11:08:26 +00:00
TreeHugger Robot
f56fccafd7 Merge "Rename DexLogger to DynamicCodeLogger." 2019-02-18 11:03:30 +00:00
Varun Anand
9164fbec93 Merge "Update VPN capabilities when its underlying network set is null." am: e3ae238f4a am: d6d593572e
am: d5444c9eb6

Change-Id: I6dd5a369f1a3b74bbf498051ef1e4d1b31bd8e5e
2019-02-15 04:11:55 -08:00
Varun Anand
d6d593572e Merge "Update VPN capabilities when its underlying network set is null."
am: e3ae238f4a

Change-Id: Id4560d201a40f5e1b1617819991da99d86379dbe
2019-02-15 03:45:03 -08:00
Treehugger Robot
e3ae238f4a Merge "Update VPN capabilities when its underlying network set is null." 2019-02-15 11:33:27 +00:00
Remi NGUYEN VAN
51490ad0fa Merge "Move NetworkStack to services.net"
am: 762f9f0c24

Change-Id: Iab45985aedb8069ad50fd2913ef6e828989cdd0d
2019-02-15 03:01:11 -08:00
Remi NGUYEN VAN
762f9f0c24 Merge "Move NetworkStack to services.net" 2019-02-15 10:52:03 +00:00
Remi NGUYEN VAN
584b1378a8 Merge "Move NetworkStack to services.net" 2019-02-15 07:25:09 +00:00
Remi NGUYEN VAN
5db454c28d Move NetworkStack to services.net
NetworkStack is only used in services.net or clients of services.net. It
cannot stay in framework.jar because it needs to depend on AIDL
interfaces, which would conflict with app implementations if they were
in framework.jar.

Test: atest FrameworksNetTests NetworkStackTests
Bug: 124033493
Change-Id: Ib1d08a3669983640119d008db7e2990fa798724f
Merged-In: I501b125a388c1100c2182bde4670944c2f0d7a02
2019-02-15 12:20:17 +09:00
Varun Anand
4fa80e8a2f Update VPN capabilities when its underlying network set is null.
Previously, they were only updated when underlying network set was
non-null.

This change also ensures that all the calls b/w ConnectivityService and
Vpn that leads to updating capabilities are on ConnectivityService
handler thread.

Additionally, it also ensures that capabilities are propagated after VPN
enters connected state. This was previously done from establish which
could potentially lead to race between VPN getting connected and
capabilities getting updated.

This change also updates VPN capabilities inline from
ConnectivityService handler thread. Previously, there was an additional
loop where Vpn would update capabilities via NetworkAgent thru
AsyncChannel which posts back to CS handler thread, which could
potentially lead to delays in updating VPN capabilities.

Bug: 119129310
Bug: 118856062
Bug: 124268198
Test: atest FrameworksNetTests
Test: manual - verified VPNs capabilities are getting updated and
DownloadManager is working correctly.

Change-Id: Id0abc4d304bb096e92479a118168690ccce634ed
2019-02-14 18:50:56 -08:00
Xin Li
07ec9dbec5 Merge "DO NOT MERGE - Merge pi-platform-release (PPRL.190205.001) into stage-aosp-master" into stage-aosp-master 2019-02-14 22:11:32 +00:00
John Reck
989bb3714f Merge "Make HardwareRenderer public API" 2019-02-14 20:40:13 +00:00
Xin Li
0e71b4f19b DO NOT MERGE - Merge pi-platform-release (PPRL.190205.001) into
stage-aosp-master

Bug: 124234733
Change-Id: Ic4f67fde0835da0b1c363906cccef0d244e38393
2019-02-14 09:48:06 -08:00
Richard Uhler
00baa4b4fc Stub out code for a host driven StagedRollbackTest.
The test doesn't test anything meaningful yet, but it builds and runs.

Bug: 124043688
Test: atest StagedRollbackTest
Change-Id: If9b5d57e28846b0ba28a580b74a486bbedb8f8d5
2019-02-14 14:58:02 +00:00
Richard Uhler
8ab0ee8c83 Move RollbackTest app code to a new subdirectory.
In preparation for adding another subdirectory for a host-driven test of
staged rollbacks.

Bug: 124043688
Test: atest RollbackTest
Change-Id: I001427c7a659c2c934345e1dba1c421209accb6c
2019-02-14 14:50:01 +00:00
Remi NGUYEN VAN
310da6f0e8 Move NetworkStack to services.net
NetworkStack is only used in services.net or clients of services.net. It
cannot stay in framework.jar because it needs to depend on AIDL
interfaces, which would conflict with app implementations if they were
in framework.jar.

(cherry-pick of aosp/905233 with trivial conflicts in SystemServer.java)

Test: atest FrameworksNetTests NetworkStackTests
Bug: 124033493
Change-Id: I501b125a388c1100c2182bde4670944c2f0d7a02
2019-02-14 20:43:43 +09:00
Remi NGUYEN VAN
d085587d7c Merge "Fix flaky testNattSocketKeepalives" am: 16758070d0 am: def37aef89
am: 0ed6920494

Change-Id: Ibfdd4dddb8dad9ee26f9f1ec175ca87bc46ce761
2019-02-13 21:45:39 -08:00
Remi NGUYEN VAN
0ed6920494 Merge "Fix flaky testNattSocketKeepalives" am: 16758070d0
am: def37aef89

Change-Id: I20ec043e5caeb61c4e31f087a10deb2dc13c0d95
2019-02-13 21:24:35 -08:00
Remi NGUYEN VAN
16758070d0 Merge "Fix flaky testNattSocketKeepalives" 2019-02-14 03:29:00 +00:00