Commit graph

16584 commits

Author SHA1 Message Date
Yusuke Sato
cbcf2778c3 perfboot.py: check 2 more event logs by default
'sf_stop_bootanim' is useful for tracking the time wasted by
showing the 'outro' part of the boot animation.

'wm_boot_animation_done' is also useful for tracking user
perceived boot time.

Bug: 22207911
Change-Id: I0481f93d08f49c0de07c46550d0a113074f30765
2015-07-31 17:48:35 -07:00
Elliott Hughes
0f9ecfbf38 am 8f218426: resolved conflicts for merge of 4e90b0ae to mnc-dr-dev-plus-aosp
* commit '8f218426ff93e34149a637001098e198a403cece':
  More adb cleanup.
2015-07-31 03:17:22 +00:00
Elliott Hughes
8f218426ff resolved conflicts for merge of 4e90b0ae to mnc-dr-dev-plus-aosp
Change-Id: Ib82bd1143c852905d40968896b5bcf41e0dab340
2015-07-30 20:09:15 -07:00
Elliott Hughes
4e90b0ae59 am 7b98bfcc: Merge "More adb cleanup."
* commit '7b98bfcc9fa8678d32a729a41036dea864f262ab':
  More adb cleanup.
2015-07-31 01:09:34 +00:00
Elliott Hughes
7b98bfcc9f Merge "More adb cleanup." 2015-07-31 01:01:20 +00:00
Elliott Hughes
5c74270f95 More adb cleanup.
This removes adb_dirstart and adb_dirstop. It also fixes a couple of memory
leaks by switching to std::string. This also fixes the bug in the previous
change --- mkdirs is given input like "/system/bin/sh" and only expected to
create "/system/bin". In a later change, we should remove mkdirs and only
expose the intended "unlink && mkdirs && create" functionality.

Change-Id: I30289dc1b3dff575cc1b158d993652178f587552
2015-07-30 17:46:58 -07:00
Elliott Hughes
5bc9ca13a0 am d260be38: resolved conflicts for merge of 486645ee to mnc-dr-dev-plus-aosp
* commit 'd260be38c647792b4318443f22da3cffc74b5918':
  Write mkdirs in more idiomatic C++ style.
2015-07-30 23:39:29 +00:00
Elliott Hughes
d260be38c6 resolved conflicts for merge of 486645ee to mnc-dr-dev-plus-aosp
Change-Id: Ia7fbfc56f01b683e4e4870b3952fe2af32962123
2015-07-30 16:32:10 -07:00
Elliott Hughes
486645ee43 am 0cf93dc3: Merge "Write mkdirs in more idiomatic C++ style."
* commit '0cf93dc345cd5e8131009146a3b2767b1c60f77b':
  Write mkdirs in more idiomatic C++ style.
2015-07-30 23:00:45 +00:00
Elliott Hughes
0cf93dc345 Merge "Write mkdirs in more idiomatic C++ style." 2015-07-30 22:56:01 +00:00
Alex Vallée
47d67c96ec Write mkdirs in more idiomatic C++ style.
~ Rewrote mkdirs to be in C++ style.
~ Replaced adb_dir{start,stop} with std::string params and (r)find.
+ Added test for mkdirs.

Also make base/test_utils.h public and support temporary directories
as well as files.

Change-Id: I6fcbdc5e0099f3359d3aac6b00c436f250ca1329
2015-07-30 15:08:53 -07:00
Tom Cherry
085747dcf0 am 7da270df: am a21d8562: am d548e30f: Merge "init: Create classes for Action and Command"
* commit '7da270df1d020c8b1ebcd636ae090d1edc1f7e89':
  init: Create classes for Action and Command
2015-07-30 21:46:09 +00:00
Tom Cherry
7da270df1d am a21d8562: am d548e30f: Merge "init: Create classes for Action and Command"
* commit 'a21d85620560896bbed0cd43db9ed3224ab4e974':
  init: Create classes for Action and Command
2015-07-30 21:31:38 +00:00
Tom Cherry
a21d856205 am d548e30f: Merge "init: Create classes for Action and Command"
* commit 'd548e30f04b2eb7aa00deab42f5559d08396c38e':
  init: Create classes for Action and Command
2015-07-30 21:08:54 +00:00
Tom Cherry
d548e30f04 Merge "init: Create classes for Action and Command" 2015-07-30 21:03:48 +00:00
Andreas Gampe
88e8e34d2e am 9e12d940: am 9773d945: am eb0b1513: Merge "Toolbox: Disable unused-const-variable warning"
* commit '9e12d940029ba70b84d8a6b5df1266204c548e51':
  Toolbox: Disable unused-const-variable warning
2015-07-30 20:57:19 +00:00
Andreas Gampe
9e12d94002 am 9773d945: am eb0b1513: Merge "Toolbox: Disable unused-const-variable warning"
* commit '9773d94571ed7c13a04ddb818a45820781d3bfdc':
  Toolbox: Disable unused-const-variable warning
2015-07-30 20:50:38 +00:00
Lee Campbell
8f59e9b23f am 45bd7bcf: am 1691d968: am 138c540f: Merge "init: Add C++ tokenizer."
* commit '45bd7bcf3719e00265e37397f1f864b83c161094':
  init: Add C++ tokenizer.
2015-07-30 20:50:06 +00:00
Lee Campbell
45bd7bcf37 am 1691d968: am 138c540f: Merge "init: Add C++ tokenizer."
* commit '1691d968f8ae5f25036251fd5978be637bbf0b4a':
  init: Add C++ tokenizer.
2015-07-30 20:45:25 +00:00
Andreas Gampe
9773d94571 am eb0b1513: Merge "Toolbox: Disable unused-const-variable warning"
* commit 'eb0b151369371993a70c2079b8253f6dd24814b7':
  Toolbox: Disable unused-const-variable warning
2015-07-30 20:45:16 +00:00
Andreas Gampe
eb0b151369 Merge "Toolbox: Disable unused-const-variable warning" 2015-07-30 20:38:04 +00:00
Tom Cherry
fa0c21c94c init: Create classes for Action and Command
This creates the concept of 'event_trigger' vs 'property_trigger'

Previously these were merged into one, such that 'on property:a=b &&
property:b=c' is triggered when properties a=b and b=c as expected,
however combinations such as 'on early-boot && boot' would trigger
during both early-boot and boot.  Similarly, 'on early-boot &&
property:a=b' would trigger on both early-boot and again when property
a equals b.

The event trigger distinction ensures that the first example fails to
parse and the second example only triggers on early-boot if
property a equals b.

This coalesces Actions with the same triggers into a single Action object

Change-Id: I8f661d96e8a2d40236f252301bfe10979d663ea6
2015-07-30 13:37:23 -07:00
Lee Campbell
1691d968f8 am 138c540f: Merge "init: Add C++ tokenizer."
* commit '138c540f53249cdf3cbece7a54aca85202cf94e9':
  init: Add C++ tokenizer.
2015-07-30 20:36:46 +00:00
Lee Campbell
138c540f53 Merge "init: Add C++ tokenizer." 2015-07-30 20:30:07 +00:00
Dan Albert
832043a563 am 629fe4a9: am bec459a2: am 480bea33: Merge "Add top level sanitize options for ADB."
* commit '629fe4a9ee03c0853d766f84ed93d9567409e592':
  Add top level sanitize options for ADB.
2015-07-30 19:10:20 +00:00
Dan Albert
629fe4a9ee am bec459a2: am 480bea33: Merge "Add top level sanitize options for ADB."
* commit 'bec459a277a0e391f5d36280bbf37eb6d84562fe':
  Add top level sanitize options for ADB.
2015-07-30 19:02:29 +00:00
Dan Albert
bec459a277 am 480bea33: Merge "Add top level sanitize options for ADB."
* commit '480bea3372e6b112c0ec80fdf82b16296d388d63':
  Add top level sanitize options for ADB.
2015-07-30 18:55:26 +00:00
Andreas Gampe
3294ad163f Toolbox: Disable unused-const-variable warning
For build-system CFLAGS clean-up, disable unused-const-variable
warning.

Bug: 18632512
Change-Id: I1be1ac744f8c77bd0a8378578072285a2c035245
2015-07-30 11:52:11 -07:00
Lee Campbell
220ca84223 init: Add C++ tokenizer.
Adds a C++ tokenizer along with unit tests.

This tokenizer will replace the current C implementation
which does a poor job of keeping track of pointers.

This CL is a prerequisite for up coming changes to
the parser. This CL does not wire up this tokenizer and
changes no exsiting code. All that builds is the unit tests.

Change-Id: Iec3740bce7153640adc5e5bbdc57e644cedf0038
TEST: Unit tests all pass. No leaks under valgrind
BUG: 22843198
2015-07-30 18:45:17 +00:00
Dan Albert
480bea3372 Merge "Add top level sanitize options for ADB." 2015-07-30 18:44:37 +00:00
Elliott Hughes
383c1af323 am 229014e3: am 7a699a6a: am 9bc4e7a5: Merge "bionic no longer sends SIGPIPE to debuggerd."
* commit '229014e384e5661d227f05c9fd719baea45a1425':
  bionic no longer sends SIGPIPE to debuggerd.
2015-07-30 17:55:38 +00:00
Elliott Hughes
229014e384 am 7a699a6a: am 9bc4e7a5: Merge "bionic no longer sends SIGPIPE to debuggerd."
* commit '7a699a6ac63d9ed1e0b994c108189b219f1461bd':
  bionic no longer sends SIGPIPE to debuggerd.
2015-07-30 17:48:13 +00:00
Elliott Hughes
7a699a6ac6 am 9bc4e7a5: Merge "bionic no longer sends SIGPIPE to debuggerd."
* commit '9bc4e7a5530337e182a8876e14e71ee741dd67ac':
  bionic no longer sends SIGPIPE to debuggerd.
2015-07-30 17:42:56 +00:00
Elliott Hughes
9bc4e7a553 Merge "bionic no longer sends SIGPIPE to debuggerd." 2015-07-30 17:33:16 +00:00
Dan Albert
7d8e2e9650 am 5659918d: am cc552ea3: am 3b5b1328: Merge "adb/test_device.py fixes for win32 and no use of ANDROID_SERIAL"
* commit '5659918d6f96dd1976321d38eea08b3cfed67000':
  adb/test_device.py fixes for win32 and no use of ANDROID_SERIAL
2015-07-30 17:29:17 +00:00
Dan Albert
9113b47eac Add top level sanitize options for ADB.
Host and target are split here because the target can really only use
ubsan (most sanitizers don't support static executables).

Change-Id: I8a5a5adeeef5c27aaaa3d8145b1570760b764ce3
2015-07-30 10:25:32 -07:00
Dan Albert
5659918d6f am cc552ea3: am 3b5b1328: Merge "adb/test_device.py fixes for win32 and no use of ANDROID_SERIAL"
* commit 'cc552ea335497ecd95db3eae136d10ab3026d171':
  adb/test_device.py fixes for win32 and no use of ANDROID_SERIAL
2015-07-30 17:20:15 +00:00
Dan Albert
cc552ea335 am 3b5b1328: Merge "adb/test_device.py fixes for win32 and no use of ANDROID_SERIAL"
* commit '3b5b1328173b4914ccc3c50bdd5eaa046dbd6cd7':
  adb/test_device.py fixes for win32 and no use of ANDROID_SERIAL
2015-07-30 17:09:04 +00:00
Dan Albert
3b5b132817 Merge "adb/test_device.py fixes for win32 and no use of ANDROID_SERIAL" 2015-07-30 17:04:52 +00:00
Elliott Hughes
c479146b4e am 5ec940ae: am fb1ecbc5: am e6e71608: Merge "Use __ANDROID__ instead of HAVE_ANDROID_OS."
* commit '5ec940aed81b35b497c65b27a98d2ddf595cb525':
  Use __ANDROID__ instead of HAVE_ANDROID_OS.
2015-07-30 16:55:49 +00:00
Elliott Hughes
5ec940aed8 am fb1ecbc5: am e6e71608: Merge "Use __ANDROID__ instead of HAVE_ANDROID_OS."
* commit 'fb1ecbc55e7edeafb138eb2a60ca89ba9a7b1f0f':
  Use __ANDROID__ instead of HAVE_ANDROID_OS.
2015-07-30 16:50:27 +00:00
Elliott Hughes
fb1ecbc55e am e6e71608: Merge "Use __ANDROID__ instead of HAVE_ANDROID_OS."
* commit 'e6e71608bd60b4745b048ec466b5ea1301020b32':
  Use __ANDROID__ instead of HAVE_ANDROID_OS.
2015-07-30 16:42:50 +00:00
Elliott Hughes
e6e71608bd Merge "Use __ANDROID__ instead of HAVE_ANDROID_OS." 2015-07-30 16:34:47 +00:00
Elliott Hughes
9b828adfad Use __ANDROID__ instead of HAVE_ANDROID_OS.
Change-Id: I9967f3fd758c2a5b40be5b60ae72be7e2fb75136
2015-07-30 09:33:43 -07:00
Elliott Hughes
cfbc297ddb am bb9c0a00: am 42dbc4b1: am 44443bea: Merge "Use _WIN32 rather than HAVE_WINSOCK."
* commit 'bb9c0a00316bfb55fb4d690022143e347f06c0ee':
  Use _WIN32 rather than HAVE_WINSOCK.
2015-07-30 15:33:01 +00:00
Elliott Hughes
bb9c0a0031 am 42dbc4b1: am 44443bea: Merge "Use _WIN32 rather than HAVE_WINSOCK."
* commit '42dbc4b1859fe4de16b19e9b74324b345c5fcb9d':
  Use _WIN32 rather than HAVE_WINSOCK.
2015-07-30 15:17:38 +00:00
Elliott Hughes
f39383103b bionic no longer sends SIGPIPE to debuggerd.
Static binaries don't get the signal handler installed (that's done by the
dynamic linker) so we don't need to worry about seeing SIGPIPE crashes from
old binaries.

Bug: http://b/20659371
Change-Id: I3b5566634fadd3e822262561188d29814bccd1fd
2015-07-30 08:15:57 -07:00
Elliott Hughes
42dbc4b185 am 44443bea: Merge "Use _WIN32 rather than HAVE_WINSOCK."
* commit '44443bead6cf3c6e71029e7181f64ba82c6a8c8e':
  Use _WIN32 rather than HAVE_WINSOCK.
2015-07-30 15:03:27 +00:00
Elliott Hughes
44443bead6 Merge "Use _WIN32 rather than HAVE_WINSOCK." 2015-07-30 14:49:56 +00:00
Yasuhiro Matsuda
91e1b0135d resolved conflicts for merge of 70ab38a5 to master
Change-Id: I7092ecb87f4020add5fe8843f188955a5579c284
2015-07-30 19:07:23 +09:00