Commit Graph

7362 Commits

Author SHA1 Message Date
TreeHugger Robot
79733bbf03 Merge "Update input policy to handle embedded windows" 2019-11-08 10:39:55 +00:00
Lucas Lin
4b99f180bb Merge "[NS01] Create NetworkScore" am: c000664c7c am: 1f1c098ad9
am: 29ea077fda

Change-Id: Ic093e655b1ff7e44db57d7add6b0818a06700962
2019-11-07 17:05:20 -08:00
Lucas Lin
29ea077fda Merge "[NS01] Create NetworkScore" am: c000664c7c
am: 1f1c098ad9

Change-Id: I0ba5523bf80f949a148e53774a367de325853747
2019-11-07 16:59:11 -08:00
Lucas Lin
1f1c098ad9 Merge "[NS01] Create NetworkScore"
am: c000664c7c

Change-Id: I63a76689ef468b55ad1d43db19655e8d822d0122
2019-11-07 16:53:15 -08:00
Lucas Lin
c000664c7c Merge "[NS01] Create NetworkScore" 2019-11-08 00:47:22 +00:00
Vishnu Nair
5cf2531977 Update input policy to handle embedded windows
ANR - If embedded windows are slow in handling inputs the system should blame the embedded app.

PointerDownOutsideFocus - if a user taps outside the currently focused window onto an
embedded window, treat it as if the host window was tapped.

Rename blessInputSurface -> grantInputChannel and add a name to embedded windows.

Bug: 134365580
Test: b WindowlessWmTest
Test: atest CtsWindowManagerDeviceTestCases:WindowlessWmTests

Change-Id: If88970cf6ce17669b41fec995535151a492fab12
2019-11-07 15:54:27 -08:00
satayev
a8bcfd1581 Merge "Revert submission" am: 85fe6364a7 am: c1b2832012
am: 4c69382aec

Change-Id: Idb3bc22a6f4a32b374c647a7c6c0decb4bd86e4d
2019-11-07 12:29:36 -08:00
satayev
4c69382aec Merge "Revert submission" am: 85fe6364a7
am: c1b2832012

Change-Id: Iac752e7a3f5d14c774c98ac50607d7f7ed9bf3f2
2019-11-07 12:23:34 -08:00
satayev
c1b2832012 Merge "Revert submission"
am: 85fe6364a7

Change-Id: I907e81baf767ba657920490fd4d32a7205cb6690
2019-11-07 12:12:12 -08:00
satayev
85fe6364a7 Merge "Revert submission" 2019-11-07 20:01:08 +00:00
satayev
5f68edff7f Revert submission
Reason for revert: breaks https://ci.chromium.org/p/art/builders/ci/angler-armv7-non-gen-cc/443

Bug: 140367850
Change-Id: I707dbb8a6f53d1c5e1d83596348d6eedc3186eb3
2019-11-07 19:56:39 +00:00
Andrei-Valentin Onea
93bdf9a2d0 Merge "Revert "Revert "Example for disabling changes at test time""" am: f72b72b126 am: b5d55fad69
am: dc3824a408

Change-Id: I6645c1d2d9f7187d70b74263471d19fd63b80f92
2019-11-07 10:31:48 -08:00
Andrei-Valentin Onea
dc3824a408 Merge "Revert "Revert "Example for disabling changes at test time""" am: f72b72b126
am: b5d55fad69

Change-Id: Iefc4693e6341a37d5718dda26801c22bfc6acbe9
2019-11-07 10:24:53 -08:00
Andrei-Valentin Onea
b5d55fad69 Merge "Revert "Revert "Example for disabling changes at test time"""
am: f72b72b126

Change-Id: Ia3dae062d7db5a61cebdc89b9d94ee7b89dca641
2019-11-07 10:14:52 -08:00
Andrei-Valentin Onea
f72b72b126 Merge "Revert "Revert "Example for disabling changes at test time""" 2019-11-07 17:39:51 +00:00
lucaslin
c2bac51882 [NS01] Create NetworkScore
It's the first patch for refounding network selection. The new
network selection will try to compare the networks by more
factors, and will try to choose the best network after doing
the evaluation of trade-off.
Create the object that will serve to represent network quality
for more comprehensive ranking.

Bug: 143676287
Test: 1. Build pass.
      2. atest FrameworksNetTests

Change-Id: I4b6071d14365aa84d06be9802516fedf527e70f7
2019-11-07 16:47:56 +08:00
TreeHugger Robot
8c6640f37d Merge changes Icf3a5583,Idd0fd1cc
* changes:
  Increase sleep timeout of testNetworkFailedRollback_Phase3 (4/n)
  Do a reboot before starting each test (3/n)
2019-11-06 23:12:06 +00:00
TreeHugger Robot
6f19129b1c Merge "Replace deprecated InstrumentationRegistry (2/n)" 2019-11-06 22:05:07 +00:00
Andrei-Valentin Onea
95360cbd28 Revert "Revert "Example for disabling changes at test time""
This reverts commit 64d5222a95.

Reason for revert: Fixed issues in https://r.android.com/1155184
Test: atest Gating
Change-Id: Iaca121b95fe498be0f1b269dd45d880351ff6526
2019-11-06 17:56:39 +00:00
TreeHugger Robot
a04286bed7 Merge "Rewrite testBadApkOnly_Phase3 (1/n)" 2019-11-06 12:43:30 +00:00
JW Wang
887b2574a2 Increase sleep timeout of testNetworkFailedRollback_Phase3 (4/n)
My local tests show that sometimes testNetworkFailedRollback_Phase3
fails to reboot within 120s. Since it takes 120s to fail the health
check and trigger rollback, there is not much time left to finish
shutdown and begin reboot before finishing sleeping.

Let's generously give it 120 more seconds so shutdown and reboot have
enough time to take place.

Bug: 143999213
Test: atest StagedRollbackTest
Change-Id: Icf3a5583a906da312189a6d027a5c269e2fd8d46
2019-11-06 13:58:54 +08:00
JW Wang
f8ff5bab26 Replace deprecated InstrumentationRegistry (2/n)
Bug: 143999213
Test: atest StagedRollbackTest
Change-Id: I647cecf343bdb43dbede677e015b4844f99e49ff
2019-11-06 13:58:54 +08:00
JW Wang
94b0adcf6d Rewrite testBadApkOnly_Phase3 (1/n)
1. Wait for 120s for reboot to happen. This improve the stablity of
   virtual devices which sometimes could be slow in shutdown.
2. Use assertThrows to catch exception when reboot doesn't happen which
   gives us better error messages than expecting next phase to fail.

Bug: 143999213
Test: atest StagedRollbackTest#testBadApkOnly
Change-Id: Ibafcbe7e003fb92991d6f8fe2fde7b344ffd6db6
2019-11-06 13:58:54 +08:00
JW Wang
a42b66e39b Do a reboot before starting each test (3/n)
This patch improves test isolation.

Sometimes a previous test fails with reboot in progress. Then the next
test is in an unstable state since reboot could happen at any moment and
fail the device test.

Doing a reboot before each test starts protects us from pending reboot
from the last test and improve isolation.

Bug: 143999213
Test: atest StagedRollbackTest
Change-Id: Idd0fd1cc6810659990b406640efd7404de1dcd07
2019-11-06 13:58:54 +08:00
Eugene Susla
c5c636a5ea Fix codegen ArrayMap fields
Fixes: 143112074
Test: . frameworks/base/tests/Codegen/runTest.sh
Change-Id: Iec0fa89a91955f8b4e4b5b8d4dd9d7f0b30c608f
2019-11-05 18:14:24 -08:00
Mathieu Chartier
c76acf401b Merge "Add test for system server method sampling" am: d2408367f3 am: 5248e93661
am: 6f66c0c237

Change-Id: If7fbc5a0bdebae13596c5bba8abf343679d6f801
2019-11-05 11:32:42 -08:00
Mark Chien
8fa4f94f00 Merge "[Tether06] Migrate tether offload controller into module" am: 5d6eea1bc5 am: 3bb2eae1b8
am: 8582437269

Change-Id: I067c803982ce0dbd3d7af22fe1682440c4074752
2019-11-05 11:01:39 -08:00
Mathieu Chartier
6f66c0c237 Merge "Add test for system server method sampling" am: d2408367f3
am: 5248e93661

Change-Id: I85e4aef4ebeb9735dfb17726c8290d2f58a0db09
2019-11-05 10:16:56 -08:00
Mathieu Chartier
5248e93661 Merge "Add test for system server method sampling"
am: d2408367f3

Change-Id: I55d0cb5c4e3a0041a5951493fb1434e3e641d9e1
2019-11-05 09:23:49 -08:00
Mathieu Chartier
d2408367f3 Merge "Add test for system server method sampling" 2019-11-05 17:00:57 +00:00
Mark Chien
8582437269 Merge "[Tether06] Migrate tether offload controller into module" am: 5d6eea1bc5
am: 3bb2eae1b8

Change-Id: Ifd85fb1c707a6689f3f305970d0a4bc647415e7e
2019-11-05 05:19:07 -08:00
Mark Chien
3bb2eae1b8 Merge "[Tether06] Migrate tether offload controller into module"
am: 5d6eea1bc5

Change-Id: I612e98f03127253a07709312626875c339c08c8c
2019-11-05 05:12:11 -08:00
markchien
77c17be6f3 [Tether06] Migrate tether offload controller into module
The tether offload JNI library in this patch still have many dependencies
with internal libraries. Will have follow up changes to cut the
dependencies to let it be a unbundled library.

Bug: 136040414
Test: -build, flash, boot
      -atest TetheringTests
      -atest FrameworksNetTests

Change-Id: Iacf8e0b94135e35672de3ee77c474ee39a00c591
2019-11-05 12:49:50 +09:00
Mathieu Chartier
f34532e53a Add test for system server method sampling
Verify that the package manager constructor is in the profile.

Bug: 139883463
Test: atest BootImageProfileTest
Change-Id: I53350be972771c246c95f623eeb1289c59c9ba84
2019-11-04 13:53:35 -08:00
Eugene Susla
89cc836c2e Merge "[codegen] Fix generation for files without end markers" 2019-11-04 18:04:57 +00:00
TreeHugger Robot
9f4153da71 Merge "Remove Thread.sleep()" 2019-11-04 13:26:00 +00:00
JW Wang
7c64df5e7b Reconnect internet after testing
Reconnect internet so we won't break tests that assume internet is
available.

This is a patch to fix the regression caused by ag/9648483.

Bug: 143514090
Test: atest StagedRollbackTest CtsLibcoreTestCases:DatagramChannelMulticastTest
Change-Id: Ic0ef26027388500795b3555f5a56f82bfc1b975e
2019-11-04 10:17:59 +00:00
JW Wang
8f17256df3 Merge "Rewrite testNetworkFailedRollback" 2019-11-04 03:02:17 +00:00
Eugene Susla
7daee0bba4 [codegen] Fix generation for files without end markers
This fixes a bug where cedegen fails for files that were generated before
end of generated code section markers were introduced.

Test: . master/frameworks/base/tests/Codegen/runTest.sh
Change-Id: Ia68e8124fcbdeeb2052067ba8731e68e42007529
2019-11-01 17:56:08 -07:00
Tim Murray
d383cb1077 Merge "TouchLatency: don't recreate DecimalFormat on every frame" 2019-11-02 00:27:36 +00:00
JW Wang
4cb97c5f47 Remove Thread.sleep()
Install#commit ensures a staged session is ready before the function
returns. So we don't need to sleep to wait for disk IO to complete.

Bug: 143211397
Test: atest StagedRollbackTest
Change-Id: Ic4b53dc5aaef7a22d7d64c14ee4f77bee84c26b1
2019-11-02 08:04:16 +08:00
JW Wang
eae2c7cdbe Rewrite testNetworkFailedRollback
This is an effort to fix flaky StagedRollbackTest.

ag/9614192 adds support for native file path to TestApp so now we can
install network stack package using install.lib which provides better
tools for logging and synchronization than shell commands. This will
facilitate debugging flakiness.

Also move other code to device tests for the same reason.

Bug: 143211397
Test: atest StagedRollbackTest
Change-Id: I971618da3defade4693be154ab523f1cbfea5b7c
2019-11-02 08:04:16 +08:00
Tim Murray
6b0c318d91 TouchLatency: don't recreate DecimalFormat on every frame
reduces UI thread time by 20%

Test: manual
Change-Id: If9053d19fc0db1491a0b9402c54243aff8f12432
2019-11-01 15:42:23 -07:00
TreeHugger Robot
184d14428a Merge "[codegen] Support nested classes" 2019-11-01 20:52:39 +00:00
Eugene Susla
322e8b1772 [codegen] Support nested classes
Adds support for arbitrarily-nested @DataClasses
Only static ones are supported for now

See FileInfo for the main implementation piece

Fixes: 139833958
Test: . frameworks/base/tests/Codegen/runTest.sh
Change-Id: I31cd16969788c47003a7a15a3573a4bf623ab960
2019-11-01 17:53:56 +00:00
JW Wang
282b6f505a Disable testNetworkPassedDoesNotRollback
This is an effort to fix flaky StagedRollbackTest.

My local tests show that the crash has something to do with repeatedly
turn on/off network connection for each test. Several things are done
below to reduce the flakiness:

1. Disable testNetworkPassedDoesNotRollback
   It sometimes takes more than 5 minutes for the device to be back
   online after turning on the network connection during the test. This
   test contributes a lot to the flakiness. Let's disable it for now so
   other tests can keep running.
2. Rewrite testNetworkFailedRollback so we only turn on/off network
   connection when necessary in the hope to reduce the WifiHandlerThread
   crash. The change works pretty well for my local tests which run over
   40 loops without a single failure.

Bug: 143514090
Test: atest StagedRollbackTest
Change-Id: I9aec5eafdd3368ef76517e3b8500970e60d07487
2019-11-01 01:31:13 +00:00
TreeHugger Robot
abc015499a Merge "DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master" into stage-aosp-master 2019-10-31 18:38:40 +00:00
Mark Chien
aa5c303d5c Merge "[Tether05] Migrate UpstreamNetworkMonitor into module" am: 259fdbb0b3 am: 58c84a752d
am: 8ed3176808

Change-Id: Ifc9f7626848727161f938f44b26e756dbf664588
2019-10-31 06:40:55 -07:00
Mark Chien
8ed3176808 Merge "[Tether05] Migrate UpstreamNetworkMonitor into module" am: 259fdbb0b3
am: 58c84a752d

Change-Id: I6a84a0960ea4262c9f0b363ee970c7666a1c7648
2019-10-31 06:34:55 -07:00
Mark Chien
259fdbb0b3 Merge "[Tether05] Migrate UpstreamNetworkMonitor into module" 2019-10-31 13:05:32 +00:00