Commit Graph

5536 Commits

Author SHA1 Message Date
Jorim Jaggi
c03929b598 Merge "Fix BackgroundDexOptServiceIntegrationTests" 2018-08-15 12:43:26 +00: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
Remi NGUYEN VAN
d2339214eb Merge "Increase TEST_LINGER_DELAY_MS" am: 9a783699cc
am: 93c22129e2

Change-Id: I88d46b9fc0c3fddb02671a2c4875afbf151f8f84
2018-07-24 22:19:38 -07:00
Remi NGUYEN VAN
43e50c21b6 Merge "Remove test dependency on ubsan runtime" am: c77d25e441
am: 0519a19f48

Change-Id: I164df38c2be8395589499939376de00f3bade7d3
2018-07-24 22:05:58 -07:00
Remi NGUYEN VAN
93c22129e2 Merge "Increase TEST_LINGER_DELAY_MS"
am: 9a783699cc

Change-Id: Iff68ee39ead571293877464c03ab98ab594dfcca
2018-07-24 22:05:37 -07:00
Remi NGUYEN VAN
0519a19f48 Merge "Remove test dependency on ubsan runtime"
am: c77d25e441

Change-Id: Icce8b11f2a1c380c899ebaac52ac4b2c427492c9
2018-07-24 21:57:42 -07:00
Remi NGUYEN VAN
9a783699cc Merge "Increase TEST_LINGER_DELAY_MS" 2018-07-25 03:08:48 +00:00
Remi NGUYEN VAN
c77d25e441 Merge "Remove test dependency on ubsan runtime" 2018-07-25 02:28:21 +00:00
Chavi Weingarten
d5e1bf045b Merge "ActivityView demo app" 2018-07-24 17:23:28 +00:00
Remi NGUYEN VAN
f6b73b2349 Remove test dependency on ubsan runtime
Requirement for this dependency was removed in aosp/696863.

Bug: b/79785496
Test: runtest frameworks-net (aosp), atest FrameworksNetTests
Change-Id: I14bb65c8f0a9b55aeae6376ff04ce18be7dc7f22
2018-07-24 11:28:29 +09:00
Andrii Kulian
962e43401a ActivityView demo app
Contains demos for
- Launching activities into an ActivityView
- Resizing ActivityView with activities inside
- Changing position of ActivityView on screen

This is a standalone APK and can be built with:
	mmma tests/ActivityViewTest

Test: Manual
Change-Id: I548a087ef42163b86be7607c5b1bfcf8119d54e5
2018-07-23 14:40:03 -07:00