Commit Graph

5545 Commits

Author SHA1 Message Date
Anton Hansson
a101ff0571 Merge "Support /product-services partition" 2018-08-22 13:58:00 +00:00
Colin Cross
a50fcdc23f Merge "Convert frameworks-base-testutils to Android.bp" am: de2bfe1ddf am: b2c0c112fb
am: 794d736b9d

Change-Id: Ib6df6bd84dff1e71d3e660b57efcb9e05bd2d35a
2018-08-17 19:20:37 -07:00
Colin Cross
b2c0c112fb Merge "Convert frameworks-base-testutils to Android.bp"
am: de2bfe1ddf

Change-Id: Ib543af4cb90c84d9914178912a2834ac869c908b
2018-08-17 18:02:19 -07:00
Treehugger Robot
de2bfe1ddf Merge "Convert frameworks-base-testutils to Android.bp" 2018-08-17 23:12:22 +00:00
Dario Freni
2bef1768a8 Support /product-services partition
This CL is largely an adaptation of Change-Id
I16175933cebd9ec665d190cc5d564b5414a91827 . I also used the same way for
testing the change.

This CL will support the followings.
- installing a RRO package for framework from /product-services/overlay
- installing apps from /product-services/app
- installing priv-apps from /product-services/priv-app
- installing permissions from
  /product-services/etc/[default-permissions|permissions|sysconfig]

Bug: 80741439
Test: `mm` under frameworks/base/tests/[libs|privapp]-permissions
  adb sync && adb reboot
  adb shell cmd package list libraries
    => confirmed com.android.test.libs.product_services library
  adb shell cmd package dump \
    com.android.framework.permission.privapp.tests.product_services
    => confirmed that the package is a priv-app

  And I moved vendor/overlay/framework-res__auto_generated_rro.apk
  into system/product-services/overlay/ on taimen, and I confirmed that the
  RRO was installed properly.

Change-Id: I7a6a30bf8e8db9f2738594d187bb9148f138b8da
(cherry picked from commit a4af41736894bd3bf5bdc2a279acbeed2a24dd3d)
2018-08-17 16:34:03 +00:00
Remi NGUYEN VAN
a788c6816b Merge "Fix testRegisterUsageCallback failure in setUp"
am: c68f5313a2

Change-Id: I516bab9b9b6c5f48845f18d0e2ab8b47f0f809de
2018-08-17 01:48:48 -07:00
Colin Cross
74835a2a4f Convert frameworks-base-testutils to Android.bp
See build/soong/README.md for more information.

Test: m checkbuild
Change-Id: I2d70f7c017fc3d181c70b030e39e5a932d0996cc
2018-08-16 22:25:40 -07:00
Jason Monk
a2f2d82f26 Convert sysui to bp
Test: tests gonna test, builds gonna build
Change-Id: I7f1ef2e82ce2c74253c57de8d73079dcfe2d2264
2018-08-16 19:40:39 -04:00
Jorim Jaggi
c03929b598 Merge "Fix BackgroundDexOptServiceIntegrationTests" 2018-08-15 12:43:26 +00:00
Remi NGUYEN VAN
a8e9090cf6 Fix testRegisterUsageCallback failure in setUp
LocalServices.addService in NetworkStatsService is currently failing
with IllegalStateException "Overriding service registration". Setting up
LocalServices in the test to avoid this issue might be possible, but
moving the registration to the only non-test caller of that constructor
as done here solves the issue and avoids side-effects from a constructor.

Test: atest FrameworksNetTests does not choke on this test
Bug: b/78487385
Bug: b/80082746
Change-Id: I5dba98fc79aec0800c8b71e6c7e23d1cfbcae852
Merged-In: I884a7a8bd7db3fcd220b785ba9914ac8c77720f0
(Clean cherry-pick of go/ag/4061255)
2018-08-14 18:14:09 +09:00
Jorim Jaggi
7804f7fae4 Fix BackgroundDexOptServiceIntegrationTests
- Ensure that calling uid is shell.
- Clear calling identity such that we don't get permission
failures when calling getCurrentUser()

Test: self
Change-Id: Ifbaceb47edbbc4a6b002d49411ca4635ffc33a08
Fixes: 111798412
2018-08-09 16:51:10 +02:00
Remi NGUYEN VAN
2c871f9241 Merge "Add codewiz@, reminv@ to OWNERS for connectivity" am: 76f081be5c am: a96779b592 am: fb9247e38d
am: f76484af05

Change-Id: I1d77e198618d1de05f952ae58abb3b79e66e49e3
2018-08-08 16:44:05 -07:00
Remi NGUYEN VAN
40960bf916 Merge "Add tests for NetworkMonitor isCaptivePortal" am: 97ff63812c am: aebb44fd8e am: 238f479b66
am: b6cbc789d8

Change-Id: Ibf1e20427fd9d369f4522df7bd4c8f6f0c33fd9b
2018-08-08 16:33:03 -07:00
Remi NGUYEN VAN
fb9247e38d Merge "Add codewiz@, reminv@ to OWNERS for connectivity" am: 76f081be5c
am: a96779b592

Change-Id: I781053bcceb117f3d83950a5ee477b766bb7e314
2018-08-08 11:57:20 -07:00
Remi NGUYEN VAN
238f479b66 Merge "Add tests for NetworkMonitor isCaptivePortal" am: 97ff63812c
am: aebb44fd8e

Change-Id: Ieba6ed270bce8ef5051ee34dc39695d56bda903f
2018-08-08 11:42:53 -07:00
Remi NGUYEN VAN
76f081be5c Merge "Add codewiz@, reminv@ to OWNERS for connectivity" 2018-08-08 08:05:20 +00:00
Remi NGUYEN VAN
97ff63812c Merge "Add tests for NetworkMonitor isCaptivePortal" 2018-08-08 04:59:12 +00:00
Remi NGUYEN VAN
d2cb322e93 Add codewiz@, reminv@ to OWNERS for connectivity
Test: m
Change-Id: I11df4c93ac61b620fc576a2ff17192b7c9ecb984
2018-08-08 12:22:20 +09:00
TreeHugger Robot
c0819d2066 Merge "Add an optional reason field to vibrator service" 2018-08-07 19:42:58 +00:00
Remi NGUYEN VAN
d9a1cd7fc5 Add tests for NetworkMonitor isCaptivePortal
Bug: b/79499239
Test: added tests, ConnectivityService tests pass

Change-Id: I98d503b8f92d7f35e59dd1621a90f2eca8c7a63c
2018-08-07 08:57:35 +00:00
Remi NGUYEN VAN
29807b19b0 Merge "Add utils to convert Inet4Address <-> int" am: 5caebe3415 am: 2595e68176 am: 004c3347ad
am: 0a56b25bcf

Change-Id: I5282dd7d5ec2e708241e19e414e887491c4969f9
2018-08-06 13:51:11 -07:00
Remi NGUYEN VAN
004c3347ad Merge "Add utils to convert Inet4Address <-> int" am: 5caebe3415
am: 2595e68176

Change-Id: Ia6830f33233210ea12816d6f099300231a7f9f6b
2018-08-06 12:09:31 -07:00
Remi NGUYEN VAN
2595e68176 Merge "Add utils to convert Inet4Address <-> int"
am: 5caebe3415

Change-Id: I347d23f4682eca623e3b10f72bc9000b1c5954a3
2018-08-06 09:34:55 -07:00
Remi NGUYEN VAN
5caebe3415 Merge "Add utils to convert Inet4Address <-> int" 2018-08-06 05:49:52 +00:00
Remi NGUYEN VAN
0066bda4cf Add utils to convert Inet4Address <-> int
The current utilities map the higher-order bytes of ints to the
lower-order bytes of IPv4 addresses, which makes applying masks and
generating series of addresses confusing.

For example, the current utilities would convert 1.2.3.4 to 0x04030201,
or generate 0x0080ffff for a /17 subnet mask. The utilities in this CL
convert 1.2.3.4 to 0x01020304, and a /17 subnet mask is represented as
0xffff8000.

Includes tests for all the above methods and migration of
NetworkUtilsTest to JUnit4.

Test: added tests pass
Change-Id: I5f5aa2e6e3b054b66b9dc507dab64f41be9139b1
2018-08-03 15:55:24 +09:00
Vishnu Nair
8248b7c995 Move FlickerTests to frameworks/base/tests 2/2
platform_testing is moving to AOSP first development. FlickerTests may require access to
in development test apis and cannot be developed in AOSP.

Other minor changes:
- remove FlickerTests from APCT. FlickerTests will use TEST_MAPPING
- use @FlakyTest instead of @Ignore annotation to skip tests

Test: atest FlickerTests
Test: make -j32 continuous_instrumentation_tests
Test: cd frameworks/base/tests/FlickerTests/ && atest :postsubmit

Bug: 112044297
Change-Id: Icc3194ddd9b801034d8797bf2ec60ebff071612c
2018-08-01 10:13:36 -07:00
Lucas Dupin
8f09a5057e Expose Ambient Wallpaper API
In P we introduced a private concept of AOD wallpapers, in Q
we're making it a public surface.

Bug: 111395593
Test: make
Change-Id: I4c406386f0ee15dc8734a24b040482b6cb807126
2018-07-30 10:42:06 +08:00
Alexey Kuzmin
e1f06b88e8 Add an optional reason field to vibrator service
Test: Run vibration test, see reason written to log and trace.
Bug: 109654229
Change-Id: I13db6968c125e7c2b2483a14faad5b6ea9b4cda6
2018-07-27 20:32:53 +01:00
Remi NGUYEN VAN
dad7d689ac Merge "Increase network request timeouts" am: 527c79d96d am: 8b894a7d50 am: 2eb9f746cf
am: e62c95c6b3

Change-Id: Ifb94f2a869f7cbe9ecb0e6e05ce7e4b28222e41e
2018-07-27 06:34:09 -07:00
Remi NGUYEN VAN
2eb9f746cf Merge "Increase network request timeouts" am: 527c79d96d
am: 8b894a7d50

Change-Id: I1f0840a3fec3605e51942e8bc0debb954fd571d5
2018-07-27 06:16:50 -07:00
Remi NGUYEN VAN
8b894a7d50 Merge "Increase network request timeouts"
am: 527c79d96d

Change-Id: Iaae31d7eaa5e5ccccdcf63ba39dd3fdc729161a5
2018-07-27 06:08:08 -07:00
Treehugger Robot
527c79d96d Merge "Increase network request timeouts" 2018-07-27 11:56:31 +00:00
Richard Uhler
f33b0c12fd Merge "Initial setup of a SystemMemoryTest." 2018-07-27 11:08:47 +00:00
Remi NGUYEN VAN
52cd83031f Merge "Increase IpClientTest verification timeout" am: 0cbdca3e20 am: 98e2f04ec0 am: 2b61800bfe
am: 3f6462a694

Change-Id: I1a7e26dbcc03630c461cecb07d1c858821ccff6d
2018-07-27 03:33:10 -07:00
Remi NGUYEN VAN
2b61800bfe Merge "Increase IpClientTest verification timeout" am: 0cbdca3e20
am: 98e2f04ec0

Change-Id: I369c6f2865357259adb3bac8dad966734f021072
2018-07-27 03:11:50 -07:00
Remi NGUYEN VAN
98e2f04ec0 Merge "Increase IpClientTest verification timeout"
am: 0cbdca3e20

Change-Id: I214df25ed178d859ae60d765c94fc9d6a25408ee
2018-07-27 02:11:47 -07:00
Richard Uhler
e9444bf955 Initial setup of a SystemMemoryTest.
Set up a memory test to experiment with actionable memory metrics and
detect regressions in system server memory use.

The initial CUJ is to launch an instrumentation that does nothing for
a few seconds.

The initial metric is to read showmap for system_server and report
VSS, RSS, and PSS.

The CUJ and metrics will be made more interesting once the basic
infrastructure for continuously running the test is set up.

Bug: 111830582
Test: tradefed.sh run commandAndExit template/local_min --template:map test=system-memory-test

Change-Id: I8793adb66de4adab254173585e2c8afc754d4a3a
2018-07-27 08:51:04 +00:00
Remi NGUYEN VAN
0cbdca3e20 Merge "Increase IpClientTest verification timeout" 2018-07-27 08:08:16 +00:00
Remi NGUYEN VAN
9a64ba2602 Merge "Use timeout consts in all ConnService tests" am: 3fbbe73437 am: 589432e728 am: 617b89e4e7
am: 12e7fc473c

Change-Id: Ic17f8b385d739817023abcf60657907d8cb3c10f
2018-07-27 00:45:22 -07:00
Remi NGUYEN VAN
617b89e4e7 Merge "Use timeout consts in all ConnService tests" am: 3fbbe73437
am: 589432e728

Change-Id: I3d4a35aa3b78b455fe527c686b1a5cb2573ba47a
2018-07-27 00:20:07 -07:00
Remi NGUYEN VAN
589432e728 Merge "Use timeout consts in all ConnService tests"
am: 3fbbe73437

Change-Id: Ie62b9893c5b5f4e7b24197c1308d33e06a6c8f71
2018-07-27 00:11:06 -07:00
Remi NGUYEN VAN
4cb8062e34 Increase network request timeouts
With recent performance degradations on apct, the current timeouts are
too short and some requests trigger onUnavailable() before networks are
validated.

Test: runtest -x ConnectivityServiceTest.java
Bug: b/111778226
Change-Id: I083f529787f108065637a0aff3e5bb88e05e6510
2018-07-27 15:37:13 +09:00
Remi NGUYEN VAN
01a34ac642 Increase IpClientTest verification timeout
apct runs have become significantly slower, which makes some of these
tests flaky. Increase the timeout as a first measure to avoid flakes.

Bug: b/111819270
Test: runtest -x IpClientTest.java
Change-Id: Ifb0091377f311b67ba3a4f9324ce1e8cfb421ea3
2018-07-27 12:52:28 +09:00
Remi NGUYEN VAN
a7376ac0f7 Use timeout consts in all ConnService tests
Fix some timeouts that were forgotten in parent CL.

Bug: b/111778226
Test: runtest --no-hidden-api-checks -x ConnectivityServiceTest.java
Change-Id: Ib848eaba8c69c07ac596aa4386a741c9a2a87fc9
2018-07-27 11:47:25 +09:00
Remi NGUYEN VAN
caf15ef80b Merge "Increase linger delay and test callback timeout" am: 716c04b29a am: b70a230584 am: 9e95f67b19
am: 1c2eae70e2

Change-Id: If0a80dbb5ff1929acf21ce4256876b5e6d511e6c
2018-07-26 04:38:58 -07:00
Remi NGUYEN VAN
9e95f67b19 Merge "Increase linger delay and test callback timeout" am: 716c04b29a
am: b70a230584

Change-Id: I22afb23e4ca6b9bf67a4a614c5fdc02852f29464
2018-07-26 04:20:23 -07:00
Remi NGUYEN VAN
b70a230584 Merge "Increase linger delay and test callback timeout"
am: 716c04b29a

Change-Id: I088de7dae4191a65e75feb9e071dcf18c30dcf21
2018-07-26 04:10:02 -07:00
Remi NGUYEN VAN
ef8377dba2 Increase linger delay and test callback timeout
Tests appear to have become much slower on apct in recent runs, although
local runs do not seem to be affected. As a first measure, increase our
timeouts to eliminate flakyness.

Bug: b/111778226
Test: runtest --no-hidden-api-checks -x ConnectivityServiceTest.java
Change-Id: I7a3bfb646eb554bcd9d50d026142f2a2cff74beb
2018-07-26 16:43:58 +09:00
Remi NGUYEN VAN
12ba6bcc73 Merge "Increase TEST_LINGER_DELAY_MS" am: 9a783699cc am: 93c22129e2 am: d2339214eb
am: 43b12f57f7

Change-Id: Iffd1ea689a9cedee4252836de208b506290c067b
2018-07-24 22:50:56 -07:00
Remi NGUYEN VAN
f91e5a984f Merge "Remove test dependency on ubsan runtime" am: c77d25e441 am: 0519a19f48 am: 43e50c21b6
am: ad2d40365e

Change-Id: I8ff3b57e2e6f054b3ad2ef1deaff71328d6240c0
2018-07-24 22:27:33 -07:00