Commit Graph

13138 Commits

Author SHA1 Message Date
Elliott Hughes 1ec2d1d297 am 917b455e: Merge "Revert "Switch to toybox ls.""
* commit '917b455ee78949701d2ee0ec72d9cdb44329d028':
  Revert "Switch to toybox ls."
2015-05-16 06:37:40 +00:00
Elliott Hughes 917b455ee7 Merge "Revert "Switch to toybox ls."" 2015-05-16 06:28:34 +00:00
Elliott Hughes 88f0f4b2b4 Revert "Switch to toybox ls."
This reverts commit 9c94aa9982.

Change-Id: Ie2479ee4a0614e285ce8d57c727200a0381904e2
2015-05-16 06:28:10 +00:00
Dan Albert 93f7040d1a am 747a6f22: Merge "adb: win32: fix key files reading/writing"
* commit '747a6f22cda0c74b66777e75aff384f0c09474ba':
  adb: win32: fix key files reading/writing
2015-05-16 01:12:37 +00:00
Dan Albert 747a6f22cd Merge "adb: win32: fix key files reading/writing" 2015-05-16 01:04:21 +00:00
Elliott Hughes 5e1ca285b5 am 3937120f: Merge "Switch to toybox ls."
* commit '3937120f320523c8464255d29d7173f62bef6e2a':
  Switch to toybox ls.
2015-05-16 00:48:44 +00:00
Dan Albert e61ecc4b47 am 792b4f8c: Merge "Make pty raw in adb shell when non-interactive."
* commit '792b4f8cc2f8bdfcd603e05b03153331eec1f94a':
  Make pty raw in adb shell when non-interactive.
2015-05-16 00:48:43 +00:00
Elliott Hughes 3937120f32 Merge "Switch to toybox ls." 2015-05-16 00:45:28 +00:00
Christopher Ferris 76caf5a576 am a4e7f07f: Merge "Switch UniquePtr to std::unique_ptr."
* commit 'a4e7f07f772397727db6070e8fd183bc81b8212c':
  Switch UniquePtr to std::unique_ptr.
2015-05-16 00:41:38 +00:00
Dan Albert 792b4f8cc2 Merge "Make pty raw in adb shell when non-interactive." 2015-05-16 00:41:05 +00:00
Christopher Ferris a4e7f07f77 Merge "Switch UniquePtr to std::unique_ptr." 2015-05-16 00:35:34 +00:00
Dan Albert 569a130196 Make pty raw in adb shell when non-interactive.
The main goal here is fixing the line ending translation from \n to
\r\n, but we probably don't want any translation to happen.

Bug: http://b/19735063
Change-Id: I1d6d6c6b57cc741b046c2432cd864b344ce1f28a
2015-05-15 17:33:05 -07:00
Christopher Ferris 6e96403b8f Switch UniquePtr to std::unique_ptr.
Bug: 21209050
Change-Id: I91d4c44de479b37f2729382fcdf103b8c69aa668
2015-05-15 17:30:21 -07:00
Elliott Hughes 9c94aa9982 Switch to toybox ls.
Bug: http://b/21171466
Change-Id: I3fa09db7ca43d337cbda60f10269e7607544982b
2015-05-15 16:54:35 -07:00
Dan Albert 8fb4d99478 am 4e000812: Merge "adb: win32: fix StringPrintf format string checking of %zd and PRIu64"
* commit '4e0008123d0828e8b8ab31c81ebdbc5dc3656e88':
  adb: win32: fix StringPrintf format string checking of %zd and PRIu64
2015-05-15 22:59:36 +00:00
Dan Albert 4e0008123d Merge "adb: win32: fix StringPrintf format string checking of %zd and PRIu64" 2015-05-15 22:49:59 +00:00
Dan Albert e9e6eb82b6 am 0df06907: Merge "adb: win32: fix daemon acknowledgement"
* commit '0df06907b42d5deea3d55411d98e273e204390ab':
  adb: win32: fix daemon acknowledgement
2015-05-15 21:56:44 +00:00
Dan Albert 0df06907b4 Merge "adb: win32: fix daemon acknowledgement" 2015-05-15 21:47:07 +00:00
Elliott Hughes d09e316906 am d0008c97: Merge "Fix \' escaping in adb."
* commit 'd0008c971dce0e90f49426ac79af190514551f1f':
  Fix ' escaping in adb.
2015-05-15 21:19:21 +00:00
Elliott Hughes d0008c971d Merge "Fix ' escaping in adb." 2015-05-15 21:11:25 +00:00
Elliott Hughes 84b0bf2264 Fix ' escaping in adb.
You can't just use \' inside a single-quoted string.

Bug: http://b/20323053
Bug: http://b/3090932
Change-Id: I73754b097671d02dc11c35052f0534b6dd789e4f
2015-05-15 12:06:00 -07:00
Christopher Ferris 11d78d46a6 am 3f7e06ae: Merge "Prevent crashes if a map cannot be created."
* commit '3f7e06aef5376daba7e8790e575da1d7b52f719c':
  Prevent crashes if a map cannot be created.
2015-05-15 18:32:49 +00:00
Christopher Ferris 3f7e06aef5 Merge "Prevent crashes if a map cannot be created." 2015-05-15 18:25:01 +00:00
Christopher Ferris 30c942cf10 Prevent crashes if a map cannot be created.
Under some conditions, /proc/<pid>/maps might return nothing. If we
try and unwind in this case, we'll crash. Check this case and fail
the unwind.

Add checks that no other functions try and use map_ without
checking for nullptr.

Add logging when an unwind fails so it's clear what happened.

Bug: 21162746
Change-Id: I56ce51dda0cfc9db20475a441f118108196aa07c
2015-05-14 17:56:41 -07:00
Elliott Hughes bca8dc6a44 am 000c009b: Merge "Reduce the coldboot timeout to 1s."
* commit '000c009bcc71bf8218d20c5575d3ae44c8bd4cda':
  Reduce the coldboot timeout to 1s.
2015-05-14 20:22:50 +00:00
Elliott Hughes 000c009bcc Merge "Reduce the coldboot timeout to 1s." 2015-05-14 20:14:32 +00:00
Chih-Hung Hsieh 6046f4180d am 2cc25440: Merge "Enable clang compilation."
* commit '2cc2544024364ec532a6d49131cb842fe9b559ae':
  Enable clang compilation.
2015-05-14 19:27:39 +00:00
Chih-Hung Hsieh 2cc2544024 Merge "Enable clang compilation." 2015-05-14 19:21:22 +00:00
Elliott Hughes c7331d02d1 Reduce the coldboot timeout to 1s.
5s was already a ridiculously long time to delay booting, and some OEMs are
trying to make it even more insane:

  https://www.codeaurora.org/cgit/quic/la/platform/system/core/commit/?h=lp&id=fd23edd48272976d2fb333f377242173f92aa343

Let's at least ensure that Nexus and Android One devices don't take forever
to boot...

Bug: http://b/19899875
Change-Id: I9680c166a759360f34118e51cd0645e12b6bd5c8
2015-05-14 12:03:14 -07:00
Chih-Hung Hsieh 1cd02d3443 Enable clang compilation.
Previous clang/llvm bug was fixed.

BUG: 18790528
Change-Id: Ib12696030d34ebc3c3ef1bca3cad0139d631417e
2015-05-14 10:53:48 -07:00
Spencer Low 6001c87cbc adb: win32: fix StringPrintf format string checking of %zd and PRIu64
At runtime, vsnprintf (and android::base::StringPrintf which calls it)
call a mingw version of vsnprintf, not the vsnprintf from MSVCRT.DLL.
The mingw version properly understands %zd and PRIu64 (the latter,
provided that you #include <inttypes.h>).

The problem was that android::base::StringPrintf was causing
compile-time errors saying that %zd and PRIu64 were not recognized. It
seems that this was because the attribute on the function prototypes
specified `printf' instead of `gnu_printf'. Once that was fixed to match
vsnprintf's attribute, the warnings went away.

This uses similar preprocessor techniques as <android/log.h>.

Also restore a %zd usage to avoid a static_cast<>, and make
print_transfer_progress()'s format string compile-time checkable (and
tweak some types and %llu => PRIu64).

Change-Id: I80b31b9994858a28cb7c6847143b86108b8ab842
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
2015-05-13 19:30:30 -07:00
Christopher Ferris 44b4d34753 am 34804b90: Merge "Add tests for elf unwinding in memory."
* commit '34804b90ecc8d4d39e22b70ee7110e7f7df5daea':
  Add tests for elf unwinding in memory.
2015-05-13 18:13:24 +00:00
Christopher Ferris 34804b90ec Merge "Add tests for elf unwinding in memory." 2015-05-13 17:58:13 +00:00
Mark Salyzyn 2a3e5be6c4 am 10c18d64: Merge "liblog: gtest open("/dev/pmsg0", "a")"
* commit '10c18d64c6d414ec9e2ecfe524a1e51cc2ac128c':
  liblog: gtest open("/dev/pmsg0", "a")
2015-05-13 17:04:49 +00:00
Mark Salyzyn 10c18d64c6 Merge "liblog: gtest open("/dev/pmsg0", "a")" 2015-05-13 16:30:59 +00:00
Mark Salyzyn 1389791c65 am d1371a8b: Merge "logd: Add TID statistics"
* commit 'd1371a8b8b55352e19332ba87f4b3ece6db58e1f':
  logd: Add TID statistics
2015-05-13 16:21:38 +00:00
Mark Salyzyn 1fad20cf49 am 0c6c4150: Merge changes I2cda9dd7,Ifb560850,I8d4c7c5a
* commit '0c6c41502acdd73ddcefd2f52489d94e3ca70241':
  logd: Cleanup
  logcat: liblog: Add "usec" format argument
  logd: Add klogd
2015-05-13 16:21:37 +00:00
Mark Salyzyn d1371a8b8b Merge "logd: Add TID statistics" 2015-05-13 16:17:37 +00:00
Mark Salyzyn 0c6c41502a Merge changes I2cda9dd7,Ifb560850,I8d4c7c5a
* changes:
  logd: Cleanup
  logcat: liblog: Add "usec" format argument
  logd: Add klogd
2015-05-13 16:14:25 +00:00
Christopher Ferris 67aba6881d Add tests for elf unwinding in memory.
Bug: 19517541
Change-Id: Ib42360a82934ff7103e2ccb64c1105c59aa3fdea
2015-05-12 16:11:47 -07:00
Mark Salyzyn 7718778793 logd: Cleanup
- Android Coding Standard for Constructors
- Side effects NONE

Change-Id: I2cda9dd73f3ac3ab58f394015cb810820093d47b
2015-05-12 15:51:46 -07:00
Mark Salyzyn e1f2004ecc logcat: liblog: Add "usec" format argument
- Add additional 3 digits of time precision for time output
  adding in the reporting of usec
- Remove trailing space in header file

Change-Id: Ifb560850b8e01080e126fbaeab640db71cce3eea
2015-05-12 15:51:46 -07:00
Mark Salyzyn ae4d928d81 logd: Add klogd
- Add a klogd to collect the kernel logs and place them into a
  new kernel log buffer
- Parse priority, tag and message from the kernel log messages.
- Turn off pruning for worst UID for the kernel log buffer
- Sniff for 'PM: suspend exit', 'PM: suspend enter' and
  'Suspended for' messages and correct the internal definition
  time correction against monotonic dynamically.
- Discern if we have monotonic or real time (delineation 1980) in
  audit messages.
- perform appropriate math to correct the timestamp to be real time
- filter out any external sources of kernel logging

Change-Id: I8d4c7c5ac19f1f3218079ee3a05a50e2ca55f60d
2015-05-12 15:51:46 -07:00
Eric Laurent b942d6fbb6 am 74f0a578: Merge "audio: Fix false positives in audio_is_remote_submix_device()"
* commit '74f0a578a8ee0957b849e811af5fc30c74be55f0':
  audio: Fix false positives in audio_is_remote_submix_device()
2015-05-12 22:47:08 +00:00
Mark Salyzyn 052bb26151 am 88462ba7: Merge "logd: Add Tag statistics"
* commit '88462ba7fcde3dc9a07b484bd3d526836e000b4b':
  logd: Add Tag statistics
2015-05-12 22:40:44 +00:00
Eric Laurent 74f0a578a8 Merge "audio: Fix false positives in audio_is_remote_submix_device()" 2015-05-12 22:40:01 +00:00
Mark Salyzyn 88462ba7fc Merge "logd: Add Tag statistics" 2015-05-12 22:31:46 +00:00
Elliott Hughes 3d0bf350f7 am 6f9db165: Merge "Fix insmod module size"
* commit '6f9db165a49e6763fb2101d6da057a223cee21c8':
  Fix insmod module size
2015-05-12 21:45:01 +00:00
Elliott Hughes 6f9db165a4 Merge "Fix insmod module size" 2015-05-12 21:34:26 +00:00
Misael Lopez Cruz bee4965cb2 audio: Fix false positives in audio_is_remote_submix_device()
The audio_is_remote_submix_device() helper function incorrectly
reported AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES and
AUDIO_DEVICE_IN_LINE as a submix devices.

The cases where the confusion occurs are for devices whose bitwise
value only differs in the direction bit.

Change-Id: I3bb9fd1158a26a8f4b3b59246974e703ca5ba0f0
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
2015-05-12 16:25:38 -05:00