Commit Graph

60865 Commits

Author SHA1 Message Date
Treehugger Robot 965a67c5d7 Merge "adb: only submit USB writes on the worker thread." am: 4ea509e25d am: 9640c76e05
Change-Id: Ia5c7627a16512d14542fe4335bbe82fa59b571ca
2020-05-21 00:09:53 +00:00
Treehugger Robot 9640c76e05 Merge "adb: only submit USB writes on the worker thread." am: 4ea509e25d
Change-Id: I63e7eef74c293a008e33c856732ca25bbc03bba1
2020-05-20 23:51:05 +00:00
Treehugger Robot 4ea509e25d Merge "adb: only submit USB writes on the worker thread." 2020-05-20 23:34:37 +00:00
Josh Gao 00e66f971d Merge "adb: fix flakiness in PTY shell protocol." am: b27365510d am: 9e3e8c40e2
Change-Id: I0f7abb9f0b2cc7a4c18129ac62ce5235c10d36fe
2020-05-20 21:38:22 +00:00
Josh Gao 9e3e8c40e2 Merge "adb: fix flakiness in PTY shell protocol." am: b27365510d
Change-Id: I41c65bed67ceb644cf9d115bbc70883e16933dd9
2020-05-20 21:25:27 +00:00
Josh Gao 962551000b adb: only submit USB writes on the worker thread.
After USB disconnection, io_submit will block until the endpoint comes
back up. We handle this in the worker thread by sending it a signal to
break it out of io_submit when we notice that USB has gone down, but
opportunistic writes from the main thread can get stuck in this scenario
as well. Submitting the writes only on the worker thread doesn't have a
measurable impact on performance, so avert this scenario by only
submitting writes from the worker thread.

Bug: http://b/157078255
Test: test_device.py
Change-Id: I1118f2e2a70d13f15592eb996e7084033ed5cb9d
2020-05-20 21:03:18 +00:00
Josh Gao b27365510d Merge "adb: fix flakiness in PTY shell protocol." 2020-05-20 21:01:23 +00:00
Treehugger Robot efa13fc083 Merge "adb: fix abb test." am: fc4e54ecb0 am: 6016dd02a4
Change-Id: I4a90821d987596381e0bb4a64c47eecce082b5e3
2020-05-20 16:54:58 +00:00
TreeHugger Robot 91cc0062c2 [automerger skipped] Merge "fastbootd: Support TCP protocol." into rvc-dev am: de933e859e -s ours
am skip reason: Change-Id Idc391e677eb6a1880036419ba5f6c4160e8dbcbc with SHA-1 1e239289d5 is in history

Change-Id: I26a866c792f3d2067d48925347cf2b0ffea246ae
2020-05-20 16:42:35 +00:00
Treehugger Robot 6016dd02a4 Merge "adb: fix abb test." am: fc4e54ecb0
Change-Id: Ie4ea4e49688a7d0c6d593e8bc3f1930d6a16e6b1
2020-05-20 16:39:13 +00:00
TreeHugger Robot de933e859e Merge "fastbootd: Support TCP protocol." into rvc-dev 2020-05-20 16:31:18 +00:00
Treehugger Robot fc4e54ecb0 Merge "adb: fix abb test." 2020-05-20 16:25:45 +00:00
Baligh Uddin 85aa3847f2 [automerger skipped] Merge "Migrate system/core/base to system/libbase." am: 3b55f75706 am: 876e883e0e -s ours
am skip reason: Change-Id I1134f1e9e968b9273748e2483bea8d25e5c9e994 with SHA-1 09f39481b1 is in history

Change-Id: I58aaf4ff41a7a930ae12e9ebca48fc7453732d70
2020-05-20 12:51:07 +00:00
Baligh Uddin 876e883e0e Merge "Migrate system/core/base to system/libbase." am: 3b55f75706
Change-Id: Ic719e0fe67964336ebd25d94f8bb4e0bc14fc751
2020-05-20 12:38:51 +00:00
Baligh Uddin 3b55f75706 Merge "Migrate system/core/base to system/libbase." 2020-05-20 12:22:54 +00:00
Josh Gao be41ae5666 adb: fix flakiness in PTY shell protocol.
When a subprocess closes its PTY slave, the master fd will report
POLLHUP when polled. This leads to us prematurely tearing everything
down, without reading out output that's been written to the PTY.

Resolve this by waiting until the fd no longer reports POLLIN.

Bug: http://b/156551485
Bug: http://b/156552734
Test: `adb shell 'X=0; while /data/nativetest64/adbd_test/adbd_test --gtest_filter="ShellServiceTest.*Pty*" >/dev/null 2>&1; do X=$((X+1)); echo $X; done'` for 1000 iterations (failed within 20, previously)
Test: test_device.py
Change-Id: Ie591e0cafb532cd6cebdf6f356dc967565b5a2d9
2020-05-19 20:54:40 -07:00
Rick Yiu 0d6b7111fd Merge "Add choice for changing sched policy when setting thread priority" am: 9ada65c0c6 am: 0d69819bf2
Change-Id: I88b2d0e70aa8edf5d67a1ebecfa235d4c08e4b58
2020-05-20 03:49:29 +00:00
Rick Yiu 0d69819bf2 Merge "Add choice for changing sched policy when setting thread priority" am: 9ada65c0c6
Change-Id: Icacda86d1ea49588a94609e2e5d534ff3c289889
2020-05-20 03:25:18 +00:00
Josh Gao 8f83498cbd adb: fix abb test.
Don't hardcode cmd's output.

Bug: http://b/157092201
Test: python3 -m unittest test_device.AbbTest
Change-Id: I7145e8d2a31b1c1b459c1e55af3670b95e653eee
2020-05-19 20:12:52 -07:00
Rick Yiu 9ada65c0c6 Merge "Add choice for changing sched policy when setting thread priority" 2020-05-20 03:03:18 +00:00
David Anderson 8041ea254a [automerger skipped] Merge "libsnapshot_test: Fix running on DSUs." into rvc-dev am: a0e4932ccb -s ours
am skip reason: Change-Id Ie7ee70e31dff0809a5f0c402ed132d80dd03d9b1 with SHA-1 0d2bcd4afe is in history

Change-Id: I36862393dc4a729a12aa7954163d3091c1d455b1
2020-05-20 00:22:56 +00:00
David Anderson a0e4932ccb Merge "libsnapshot_test: Fix running on DSUs." into rvc-dev 2020-05-20 00:06:14 +00:00
Christopher Ferris 92d310f0fc Merge "Add new reparse benchmarks." am: 1fbb1b8718 am: 00586bd861
Change-Id: Ife8d6ea84eef36c046ff8684d48edca44c7013a8
2020-05-19 23:50:17 +00:00
Christopher Ferris 00586bd861 Merge "Add new reparse benchmarks." am: 1fbb1b8718
Change-Id: Ic38f5d173d5be0de2eff2a22728767beb2872a6f
2020-05-19 23:33:09 +00:00
Christopher Ferris 1fbb1b8718 Merge "Add new reparse benchmarks." 2020-05-19 23:12:27 +00:00
Mark Salyzyn 469d106190 Merge "init: support wait timeout with more precision" into rvc-dev am: 7a6a01a09f
Change-Id: If1cd512679d7c7f46cdee59102d12de3e576d4cf
2020-05-19 23:05:28 +00:00
Mark Salyzyn 7a6a01a09f Merge "init: support wait timeout with more precision" into rvc-dev 2020-05-19 22:48:29 +00:00
Baligh Uddin 0492643722 Add symlink to proof many projects with hardcoded paths.
BUG: 148941208
test: TH
Change-Id: Iff53325f2727176ee088d784087d47b18cbee5e8
2020-05-19 22:20:56 +00:00
Baligh Uddin 09f39481b1 Migrate system/core/base to system/libbase
BUG: 148941208
test: TH
Change-Id: I1134f1e9e968b9273748e2483bea8d25e5c9e994
2020-05-19 22:20:44 +00:00
Howard Ro f3521a0154 Merge "Remove statsd enable check when logging" into rvc-dev am: 48d5b6fd03
Change-Id: Ib608346319313e1fcf77a32effd8ccdf98dfcdb1
2020-05-19 22:10:49 +00:00
Howard Ro 48d5b6fd03 Merge "Remove statsd enable check when logging" into rvc-dev 2020-05-19 21:58:10 +00:00
Howard Ro 516b632ff4 Remove statsd enable check when logging
statsd should now be enabled on all devices and this check is
unnnecessarily adding a check for each time there's a call into the
socket, which is inefficient.

Bug: 157082130
Test: make, statsd_test
Change-Id: I0bb0ae0c93516c3a02cb971742c3eba602668a09
2020-05-19 21:52:14 +00:00
Baligh Uddin 28d0f1a3af Migrate system/core/base to system/libbase.
Add Symlink to ensure hardcoded references do not break build.
BUG: 148941208
test: TH

Change-Id: Ia2b69de1af6e07be2aab3ba4fe1493de80269c40
Merged-In: I1134f1e9e968b9273748e2483bea8d25e5c9e994
2020-05-19 21:32:42 +00:00
TreeHugger Robot fef2273d52 [automerger skipped] Merge changes I2fcd093e,I24210426 into rvc-dev am: 9113e7be95 -s ours
am skip reason: Change-Id I2fcd093e61afdd16d481194e1d5f8f66acf6a66c with SHA-1 a64d4f81a4 is in history

Change-Id: Ie4e32e0a96e37d252e0397b540e73dc67685dc8b
2020-05-19 20:25:10 +00:00
Mark Salyzyn 61de0d226d init: support wait timeout with more precision
A one second timeout is so coarse and can affect boot time when
the possibility that the file does not exist.  Switch to accepting
a floating point number for seconds for the wait for file command.

Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 151950334
Test: wait_for_file sleep 0.05 reports an appropriate delay
Change-Id: I8d8ed386519ab54270b05ce91663d0add30f12e7
2020-05-19 13:25:07 -07:00
TreeHugger Robot 9113e7be95 Merge changes I2fcd093e,I24210426 into rvc-dev
* changes:
  Optimizing install-multi-package to use ABB.
  Incremental install mode for install-multi.
2020-05-19 20:12:04 +00:00
David Anderson a5482a4874 Merge "libsnapshot_test: Fix running on DSUs." am: 984aa655df am: 1edffcd3ac
Change-Id: Ibda291c3560d00ebffd4b71808f4ef0d92cc9c73
2020-05-19 19:23:40 +00:00
Hongguang Chen 7516ebe63b fastbootd: Support TCP protocol.
The current fastbootd only supports USB protocol. But some Android TV
devices are built without USB port. The fastbootd cannot be used on
those ATV devices due to it.
This change adds TCP protocol for such devices and fastbootd.protocol
property is added to control which protocol to use.

BUG: 152544169
BUG: 155198345
Test: manual test.
Change-Id: Idc391e677eb6a1880036419ba5f6c4160e8dbcbc
Merged-In: Idc391e677eb6a1880036419ba5f6c4160e8dbcbc
2020-05-19 19:11:25 +00:00
David Anderson 1edffcd3ac Merge "libsnapshot_test: Fix running on DSUs." am: 984aa655df
Change-Id: I5b8df0b32a0b247f163182b7cad34809bc6b0107
2020-05-19 19:10:40 +00:00
David Anderson 42d676db47 libsnapshot_test: Fix running on DSUs.
Because DSUs mount userdata via a fiemap, libfiemap has trouble creating
additional fiemaps on top of it. The complex stacking of dm-linear is
not supported. For other libfiemap tests we've hacked around this
limitation. If LpMetadata is in a folder named "test", we allow the
backing device search to stop at a dm node, whereas otherwise it would
need to stop at a physical device.

However this was not quite enough for vts_libsnapshot_test, because (1)
the test folder was not included in the pattern match, and (2)
CreateLogicalPartition() could not handle device-mapper names, as it
expects a named physical partition. Addressing both of these allows the
tests to pass on DSUs.

Bug: 156713441
Test: vts_libsnapshot_test on DSU
Change-Id: Ie7ee70e31dff0809a5f0c402ed132d80dd03d9b1
Merged-In: Ie7ee70e31dff0809a5f0c402ed132d80dd03d9b1
2020-05-19 18:48:10 +00:00
David Anderson 984aa655df Merge "libsnapshot_test: Fix running on DSUs." 2020-05-19 18:47:32 +00:00
Christopher Ferris 5990a9d442 Add new reparse benchmarks.
Test: Ran benchmarks on host and device.
Change-Id: I41b7d29bfa3468b9b9b8cbdfe94aca830d14f98e
2020-05-19 10:31:53 -07:00
Tom Cherry 3281f337df Merge changes I85e6c989,Ie4ecc502,I1f8cfbb7 am: 0e95c2108f am: 427f320b56
Change-Id: I68876b66d5d3d8d93dcd62cb439aca592866e34c
2020-05-19 15:11:46 +00:00
Tom Cherry 427f320b56 Merge changes I85e6c989,Ie4ecc502,I1f8cfbb7 am: 0e95c2108f
Change-Id: I5d7e9296896bac44693833c1846be99d79d2935d
2020-05-19 14:53:48 +00:00
Tom Cherry 0e95c2108f Merge changes I85e6c989,Ie4ecc502,I1f8cfbb7
* changes:
  logd: build liblogd and its test on host
  logd: add LogBufferTest.cpp
  liblog: remove unused log_time functions, inline the others
2020-05-19 14:37:46 +00:00
TreeHugger Robot 0b29fa93e4 Merge "init: failed to set sys.usb.controller" into rvc-dev am: 5b07f4f322
Change-Id: I8dbd804fa59e0cef26969ba0c27d4254ccdcd62f
2020-05-19 14:01:32 +00:00
TreeHugger Robot 5b07f4f322 Merge "init: failed to set sys.usb.controller" into rvc-dev 2020-05-19 13:48:39 +00:00
Treehugger Robot a6c1313203 [automerger skipped] Merge "Migrate platform/system/core/libziparchive to p/system/libziparchive" am: 1b1ac36214 am: 7fc15fcbf7 -s ours
am skip reason: Change-Id I357a8c655855949bb0957675510bbaa26b47bc3c with SHA-1 ffa0dcf316 is in history

Change-Id: I6d72ad4b0c9fa4cb5044fd3c3687f4e125343015
2020-05-19 13:37:01 +00:00
Treehugger Robot 7fc15fcbf7 Merge "Migrate platform/system/core/libziparchive to p/system/libziparchive" am: 1b1ac36214
Change-Id: I40802838c248bc959cfc98d853966bc2ac5a3fea
2020-05-19 13:19:34 +00:00
Treehugger Robot 1b1ac36214 Merge "Migrate platform/system/core/libziparchive to p/system/libziparchive" 2020-05-19 12:45:51 +00:00