Commit Graph

24588 Commits

Author SHA1 Message Date
Chih-Hung Hsieh b29e58eccf Merge \"Suppress clang-tidy performance warnings in libmemunreachable.\"
am: 95b0495534

Change-Id: I551f7b656b9f92332137509c0dda548a9722f68d
2016-07-28 06:24:23 +00:00
Chih-Hung Hsieh 320f634361 Merge \"Fix clang-tidy performance warnings in crash_reporter.\"
am: 5dd9dc5859

Change-Id: Ibc5b64b14e021925187c33ad048f332438309414
2016-07-28 06:24:21 +00:00
Treehugger Robot b66b16b39a Merge "Fix clang-tidy performance warnings in healthd." 2016-07-28 01:04:51 +00:00
Treehugger Robot 95b0495534 Merge "Suppress clang-tidy performance warnings in libmemunreachable." 2016-07-28 01:04:21 +00:00
Treehugger Robot 5dd9dc5859 Merge "Fix clang-tidy performance warnings in crash_reporter." 2016-07-28 00:53:11 +00:00
Chih-Hung Hsieh f10383c1be Fix clang-tidy performance warnings in crash_reporter.
* Use faster overloaded string find function.

Bug: 30411878
Change-Id: I1bbb382428424140b61062ba729fcc229126c164
Test: build with WITH_TIDY=1
2016-07-27 16:18:05 -07:00
Chih-Hung Hsieh 73da05d354 Fix clang-tidy performance warnings in fs_mgr.
* Use const reference type for for-loop index variables
  to avoid unnecessary copy.

Bug: 30413223
Change-Id: I5514384ef3af77c00aa3e8417acd8d70981e0afb
Test: build with WITH_TIDY=1
2016-07-27 16:12:54 -07:00
Chih-Hung Hsieh 4df105635b Fix clang-tidy performance warnings in healthd.
* Use const reference type for parameters to avoid unnecessary copy.

Bug: 30407689
Change-Id: I926ea7b6e9e020a228c812b7e23087a2b7ed9809
Test: build with WITH_TIDY=1
2016-07-27 16:05:50 -07:00
Chih-Hung Hsieh 223bb4e21d Suppress clang-tidy performance warnings in libmemunreachable.
Bug: 30413862
Change-Id: If3ed64d2e1ca1f46599de9fe97c769f468ee1a68
Test: build with WITH_TIDY=1
2016-07-27 16:01:41 -07:00
Chih-Hung Hsieh d506e782b8 Fix clang-tidy performance warnings in metricsd/uploader.
* Use const reference type for parameters to avoid unnecessary copy.

Bug: 30407689
Change-Id: I5e6bfd1cd3bcf54666316573281b79573cd8a780
Test: build with WITH_TIDY=1
2016-07-27 15:57:24 -07:00
Felipe Leme c3519d1d99 Show bugreport progress.
am: cd42d658b2

Change-Id: Ia413cfcb9cf2cfb55c606ce92492027cc5191988
2016-07-27 21:33:14 +00:00
Felipe Leme 8123240126 Refactored functions that copy sdout and stderr to strings to use a callback.
am: 07ac8554b4

Change-Id: Ia98cd1f03e6d5fdf88297211f263835243790068
2016-07-27 21:33:09 +00:00
Felipe Leme 5c01124f37 Split bugreport() into its own file and added unit tests.
am: 78e0963e4b

Change-Id: I0ae6ba38b62f714895e8d9abb5b36c5d8a82c6f2
2016-07-27 21:33:08 +00:00
Colin Cross d4ce20aa84 libnativeloader: convert Android.mk to Android.bp
Change-Id: I94d7cde3138f28bbd158d62b657af8448b4175fd
2016-07-27 10:36:36 -07:00
Elliott Hughes a9f814239b Merge \\\"Fix early init logging.\\\" am: 6d232ab4de am: 1cbd1f5016
am: 7e336c8fe5

Change-Id: Id22974510c241cc8b62c3737de36c1e5941420e3
2016-07-27 15:36:13 +00:00
Elliott Hughes 7e336c8fe5 Merge \\"Fix early init logging.\\" am: 6d232ab4de
am: 1cbd1f5016

Change-Id: I33854b5ac99f09f215504a1d94dfdb42fa405512
2016-07-27 15:33:42 +00:00
Elliott Hughes 1cbd1f5016 Merge \"Fix early init logging.\"
am: 6d232ab4de

Change-Id: I437dd3b5243ca7854439c438093e94733579279e
2016-07-27 15:30:45 +00:00
Treehugger Robot 6d232ab4de Merge "Fix early init logging." 2016-07-27 15:28:18 +00:00
Jorge Lucangeli Obes 0ed2a0871e Fix one last use of TRACE().
am: 80f170a3c6

Change-Id: If35e8f48c41d4cbb467c8b34559d6ebde6199845
2016-07-27 03:11:33 +00:00
Jorge Lucangeli Obes 80f170a3c6 Fix one last use of TRACE().
Bug: 30222003
Change-Id: I3d0a29cb92e83416eb6851b54cb72886da4f7cf2
(cherry picked from commit a65f3e1a1f)
2016-07-27 02:16:16 +00:00
Jorge Lucangeli Obes 265124296c Merge \\\"Fix sdcard logging.\\\" am: 47b077a44f am: 60b896c438
am: 70ac9062c4

Change-Id: I9338e3fc03df0524870006acc9dbabe8684aeda7
2016-07-27 01:38:20 +00:00
Jorge Lucangeli Obes 70ac9062c4 Merge \\"Fix sdcard logging.\\" am: 47b077a44f
am: 60b896c438

Change-Id: Ib22a4d84395378196ca191b36e3a17897360708d
2016-07-27 01:35:09 +00:00
Jorge Lucangeli Obes 60b896c438 Merge \"Fix sdcard logging.\"
am: 47b077a44f

Change-Id: Ib0a0b5083d09d60bd0ee42bebcecced05b3645e5
2016-07-27 01:31:20 +00:00
Jorge Lucangeli Obes 47b077a44f Merge "Fix sdcard logging." 2016-07-26 23:38:13 +00:00
Felipe Leme cd42d658b2 Show bugreport progress.
adb calls bugreportz to generate a bugreport; initially, bugreportz
would only report the final status of the operation (OK or FAIL), but
now it sends intermediate PROGRESS lines reporting its progress (in the
form of current/max).

Similarly, the initial implementation of 'adb bugreport <zip_file>'
would print an initial 'please wait' message and wait for the full
stdout before parsing the result, but now it uses a new callback class
to handle the stdout as it is generated by bugreportz.

BUG: 28609499

Change-Id: I6644fc39a686279e1635f946a47f3847b547d1c1
2016-07-26 16:15:16 -07:00
Felipe Leme 07ac8554b4 Refactored functions that copy sdout and stderr to strings to use a callback.
BUG: 28609499

Change-Id: I04aea346e18678ea00797f7f659480edba4436c2
2016-07-26 16:14:46 -07:00
Felipe Leme 78e0963e4b Split bugreport() into its own file and added unit tests.
bugreport() will be soon refactored to track progress, which will
require more comprehensive unit tests.

As such, it's better to move it to its own files, which in turn also
requires moving send_shell_command() and usage() to commandline.h.

Fixes: 30100363
Bug: 30268737

Change-Id: I3cdf114a0b5547293320042ff0749a60886440b0
2016-07-26 16:14:20 -07:00
Jorge Lucangeli Obes e157b253d4 Fix sdcard logging.
Use C++ logging for everything.

Bug: 30222003
Change-Id: I5c5d85102b01df6965a515b59aa275ac85f50f00
2016-07-26 16:52:48 -04:00
Chih-Hung Hsieh 034c475931 Fix google-explicit-constructor warnings in system/core.
* Declare explicit conversion constructors.
* Add NOLINT for implicit conversion constructors.
* Fix also some misaligned indendations.

Bug: 28341362
Change-Id: Idf911f35923b408d92285cc1a053f382ba08c63e
Test: build with clang-tidy
2016-07-26 11:26:01 -07:00
Elliott Hughes 35f5d04620 Fix early init logging.
Remove the /dev/__kmsg__ workarounds (which can then be removed
from sepolicy), and fix confusion in the translation between
android-base logging and kernel logging priorities (in particular,
where 'notice' comes in the hierarchy).

Bug: http://b/30317429
Change-Id: I6eaf9919904b6b55bc402c20bf1a4ae269014bc7
Test: adb shell dmesg | grep init
2016-07-26 09:32:33 -07:00
Elliott Hughes ef6975b675 Merge \\\"Improve init Service logging.\\\" am: c1d9ac1f85 am: b49e54b1d7
am: 3fca6fba2b

Change-Id: I63433c19e5cdad2299f39118d063d2067c5cd6d6
2016-07-26 15:27:04 +00:00
Elliott Hughes 3fca6fba2b Merge \\"Improve init Service logging.\\" am: c1d9ac1f85
am: b49e54b1d7

Change-Id: I70eb2755f6d33fd6a2d26c9a3889659e9c66da22
2016-07-26 15:24:34 +00:00
Elliott Hughes b49e54b1d7 Merge \"Improve init Service logging.\"
am: c1d9ac1f85

Change-Id: I5eca381c0883015f1d043946db71c20635cc1784
2016-07-26 15:21:38 +00:00
Elliott Hughes c1d9ac1f85 Merge "Improve init Service logging." 2016-07-26 15:15:31 +00:00
Elliott Hughes e18e7e5c43 Improve init Service logging.
Say which service.

Don't ignore setpgid failures.

Change-Id: Ifa8eba583cc3cbf3d26763977bf8c3c9835271c6
2016-07-25 18:18:16 -07:00
Dan Willemsen d2d1a6faae Merge \\\"Rename lib{crypto,ssl}-host to lib{crypto,ssl}\\\" am: 00a4ee0f46 am: 4176b3b0cf
am: 5d149b2b4a

Change-Id: I32bc8899a07937a1d2df4505b2def83d347fa952
2016-07-23 00:37:55 +00:00
Dan Willemsen 5d149b2b4a Merge \\"Rename lib{crypto,ssl}-host to lib{crypto,ssl}\\" am: 00a4ee0f46
am: 4176b3b0cf

Change-Id: I70f18491eba593cca57d4500b7dc496e687feb0b
2016-07-23 00:34:29 +00:00
Dan Willemsen 4176b3b0cf Merge \"Rename lib{crypto,ssl}-host to lib{crypto,ssl}\"
am: 00a4ee0f46

Change-Id: I8a237d2d6c23cd6bf64948eda7bccb1b8bc43c7d
2016-07-23 00:29:25 +00:00
Dan Willemsen 00a4ee0f46 Merge "Rename lib{crypto,ssl}-host to lib{crypto,ssl}" 2016-07-23 00:22:29 +00:00
Todd Kennedy 4af32c615a use \'cmd\' command for install-multiple
am: 7549a460b1

Change-Id: Ie156783ef10ca96652febc262c137ba25d7a4838
2016-07-22 20:55:44 +00:00
Todd Kennedy 7549a460b1 use 'cmd' command for install-multiple
adb install-multiple makes a minimum of 3 calls to the 'pm' command. This
causes at least 3 separate "pm" processes to be spun up. Instead, use the
'cmd' command which runs in the existing system_server process.

Bug: 27483932
Change-Id: Ia1bed405c3d7e675a1a56ff82c692aaa94388a5c
(cherry picked from commit 4838ae1ab5)
2016-07-22 20:24:53 +00:00
Mark Salyzyn 6aa25782c8 Merge \"logd: klogd: deal with htc modified printk\" into nyc-mr1-dev
am: d211558788

Change-Id: I6789b0213d182662c7fbc0dd898b73c345dfe4c6
2016-07-22 04:10:06 +00:00
Mark Salyzyn eeb2d26308 logd: klogd: deal with htc modified printk
am: 0b4a63d212

Change-Id: I93b6c4e80210ea20a49751a33f768afa106a2d66
2016-07-22 04:10:05 +00:00
Fyodor Kupolov 1e08e60f47 Merge \"Fix permissions for /data/preloads\" into nyc-mr1-dev
am: 1faf57bf0b

Change-Id: I6fb7344f1c1308634a1e18c5944f811408b1dd2c
2016-07-22 04:10:04 +00:00
Fyodor Kupolov 896595280d Fix permissions for /data/preloads
am: 13639b46d0

Change-Id: I48bca73b704ccee49f31a805f8c5e974b18810e5
2016-07-22 04:10:03 +00:00
Mark Salyzyn 784b39483f Merge changes from topic \'enable_persist_kernel_log\' into nyc-mr1-dev
am: 56efe020b7

Change-Id: I3dceee794572d94af13226f6af0eab0e465d6be8
2016-07-22 04:09:37 +00:00
Mark Salyzyn 3df954fbf4 logcatd: trampoline persist.logd.logpersistd to logd.logpersistd
am: df5d12850a  -s ours

Change-Id: I1ebee9a5422c3a9248b222d988528b3aaa32b7c7
2016-07-22 04:08:29 +00:00
Android Build Merger (Role) 2d4492b088 Merge "logcatd: add stop and clear actions am: 2d737011d6 -s ours" into nyc-mr1-dev-plus-aosp 2016-07-22 03:58:57 +00:00
Mark Salyzyn 16efec00e8 logcatd: add stop and clear actions
am: 2d737011d6  -s ours

Change-Id: I43350a74c4477c369e11c493c8351ba220f5bcf1
2016-07-22 03:58:51 +00:00
Jorge Lucangeli Obes 701bc7b097 resolve merge conflicts of c6e22ba to stage-aosp-master am: e629ced86a
am: 1aa9905aad

Change-Id: I91b22f0c1116cdf3c95b2c7370921d5052e5dda5
2016-07-22 03:58:45 +00:00