Commit graph

15353 commits

Author SHA1 Message Date
Dan Albert
460f6b1f11 Add missing arpa/inet.h include for ntohl.
Clang build fix. Not sure why this is happening with gcc.

Change-Id: Ic3e192e31ba8d1d78dab83a6af13e82d261e5938
2015-06-09 20:10:19 -07:00
Ying Wang
fcc822a0db am 8331b542: am c26e391d: Merge "Fix comparison between signed and unsigned error on darwin" into mnc-dev
* commit '8331b542c521769d9a47320046ec6eb06a9bd057':
  Fix comparison between signed and unsigned error on darwin
2015-06-09 20:27:48 +00:00
Mark Salyzyn
343ddebfa0 am dbeb7ffe: am 731d2f3c: am 177d36b9: Merge "Lower the priority of the threads in logd/logcat."
* commit 'dbeb7ffea1200945c56c88579d4d6e68bf429fd7':
  Lower the priority of the threads in logd/logcat.
2015-06-09 20:21:15 +00:00
Mark Salyzyn
f6597b9d6a am 51cc5e23: am 3a1ff5ab: Merge "Lower the priority of the threads in logd/logcat." into mnc-dev
* commit '51cc5e231fe55de466b86f2b9da44755eb7f3af8':
  Lower the priority of the threads in logd/logcat.
2015-06-09 20:21:13 +00:00
Ying Wang
8331b542c5 am c26e391d: Merge "Fix comparison between signed and unsigned error on darwin" into mnc-dev
* commit 'c26e391dc4d5643fd6a84467dd09efc7e4757a6c':
  Fix comparison between signed and unsigned error on darwin
2015-06-09 20:20:20 +00:00
Mark Salyzyn
dbeb7ffea1 am 731d2f3c: am 177d36b9: Merge "Lower the priority of the threads in logd/logcat."
* commit '731d2f3c10ad62d9ecc6f06acd4741815d663f7d':
  Lower the priority of the threads in logd/logcat.
2015-06-09 20:13:58 +00:00
Mark Salyzyn
51cc5e231f am 3a1ff5ab: Merge "Lower the priority of the threads in logd/logcat." into mnc-dev
* commit '3a1ff5ab65d27377a09ec5f123a76c6f482876ac':
  Lower the priority of the threads in logd/logcat.
2015-06-09 20:08:27 +00:00
Ying Wang
c26e391dc4 Merge "Fix comparison between signed and unsigned error on darwin" into mnc-dev 2015-06-09 19:55:36 +00:00
Mark Salyzyn
731d2f3c10 am 177d36b9: Merge "Lower the priority of the threads in logd/logcat."
* commit '177d36b9858367ab05c58168c30dbb1c35f9f7cd':
  Lower the priority of the threads in logd/logcat.
2015-06-09 19:55:00 +00:00
Colin Cross
20bbd4f449 Fix comparison between signed and unsigned error on darwin
mode_t is a uint16_t on darwin, which causes
sb.st_mode & ~S_IFMT
to produce an int when the uint16_t is promoted for the operator.
Cast to unsigned int before comparing against 0660U.

Change-Id: Ib1439c08d9e2b297eeeba701891508d269c19a3d
(cherry-pick from commit 56b37345d9)
2015-06-09 12:44:41 -07:00
Mark Salyzyn
3a1ff5ab65 Merge "Lower the priority of the threads in logd/logcat." into mnc-dev 2015-06-09 19:42:45 +00:00
Mark Salyzyn
177d36b985 Merge "Lower the priority of the threads in logd/logcat." 2015-06-09 19:42:08 +00:00
Riley Andrews
aede9897df Lower the priority of the threads in logd/logcat.
(cherry pick from commit d98f4e8af5)

sched_batch implies only a penalty to latency in scheduling, but
does not imply that the process will be given less cpu time. Increase
the nice level to 10 to prioritize it below ui threads.

Bug: 21696721
Change-Id: I075af059dc755402f7df9b0d7a66cca921ff04b2
2015-06-09 12:40:20 -07:00
Riley Andrews
d98f4e8af5 Lower the priority of the threads in logd/logcat.
sched_batch implies only a penalty to latency in scheduling, but
does not imply that the process will be given less cpu time. Increase
the nice level to 10 to prioritize it below ui threads.

Bug: 21696721
Change-Id: I075af059dc755402f7df9b0d7a66cca921ff04b2
2015-06-09 12:36:45 -07:00
Oleksiy Vyalov
1fe18ed641 Merge "Extend run-as with optional --user argument." 2015-06-09 18:03:03 +00:00
Elliott Hughes
aff034c538 am e1d1429f: am bee865a9: am 6af8e11f: Merge "Switch to toybox mount(1)."
* commit 'e1d1429fd2a3aa1bbc6ce422bee9c21ff1b7e1a4':
  Switch to toybox mount(1).
2015-06-08 23:09:35 +00:00
Elliott Hughes
a9e57b3a3c am f8ee7c74: am 35096f4c: am fa76ffcc: Merge "adb: win32: fix logging to adb.log"
* commit 'f8ee7c7442608fb5bf856c83c3ca183e2fe170e6':
  adb: win32: fix logging to adb.log
2015-06-08 23:09:34 +00:00
Elliott Hughes
e1d1429fd2 am bee865a9: am 6af8e11f: Merge "Switch to toybox mount(1)."
* commit 'bee865a94305b580f63c57bfcb1181b973bf84e2':
  Switch to toybox mount(1).
2015-06-08 22:43:48 +00:00
Elliott Hughes
f8ee7c7442 am 35096f4c: am fa76ffcc: Merge "adb: win32: fix logging to adb.log"
* commit '35096f4cf8d2d81f28cec07781fd080f855c0e99':
  adb: win32: fix logging to adb.log
2015-06-08 22:43:46 +00:00
Mark Salyzyn
dc9f7682f5 am 7a518d0e: am 03196c9c: logd: build breakage
* commit '7a518d0e6f83fd3ea62623234e356ad4919541c4':
  logd: build breakage
2015-06-08 22:29:27 +00:00
Mark Salyzyn
8771d26c12 am 3c717e48: am fb354cd6: am 69ecfdd5: Merge "logd: build breakage"
* commit '3c717e486246ab4eead6fc89c5eeaf90924d622f':
  logd: build breakage
2015-06-08 22:29:25 +00:00
Elliott Hughes
bee865a943 am 6af8e11f: Merge "Switch to toybox mount(1)."
* commit '6af8e11f4cbb2ba895399dc0371471ff79f25665':
  Switch to toybox mount(1).
2015-06-08 22:29:14 +00:00
Elliott Hughes
35096f4cf8 am fa76ffcc: Merge "adb: win32: fix logging to adb.log"
* commit 'fa76ffccaa723538ad09255353538911ae390322':
  adb: win32: fix logging to adb.log
2015-06-08 22:29:13 +00:00
Mark Salyzyn
7a518d0e6f am 03196c9c: logd: build breakage
* commit '03196c9c7566bc8d6b05019d37a1e60dc3b398f4':
  logd: build breakage
2015-06-08 22:27:12 +00:00
Elliott Hughes
6af8e11f4c Merge "Switch to toybox mount(1)." 2015-06-08 22:23:32 +00:00
Elliott Hughes
fa76ffccaa Merge "adb: win32: fix logging to adb.log" 2015-06-08 22:21:31 +00:00
Mark Salyzyn
3c717e4862 am fb354cd6: am 69ecfdd5: Merge "logd: build breakage"
* commit 'fb354cd6af5bccc42ab1ecabd10fb51e698169b9':
  logd: build breakage
2015-06-08 22:18:14 +00:00
Mark Salyzyn
fb354cd6af am 69ecfdd5: Merge "logd: build breakage"
* commit '69ecfdd570c30ccdf541d16298e7a7e8a48de8b7':
  logd: build breakage
2015-06-08 22:03:21 +00:00
Mark Salyzyn
03196c9c75 logd: build breakage
(cherry pick from 3e21de2915)

OPEN_BRACKET_SPACE comparison always false

Change-Id: I1ff4288b4b79a49702727d3a8b8c8f179f500951
2015-06-08 14:57:07 -07:00
Mark Salyzyn
69ecfdd570 Merge "logd: build breakage" 2015-06-08 21:55:52 +00:00
Elliott Hughes
24d41e76e7 Switch to toybox mount(1).
Change-Id: Ieda6e2bfbf5ea3e9a96f5facfded4c2a467e4a02
2015-06-08 14:52:25 -07:00
Mark Salyzyn
3e21de2915 logd: build breakage
OPEN_BRACKET_SPACE comparison always false

Change-Id: I1ff4288b4b79a49702727d3a8b8c8f179f500951
2015-06-08 14:52:14 -07:00
Mark Salyzyn
d00930a33b am b14f1211: am 4d5f5417: Merge "logd: fix kernel logline stutter" into mnc-dev
* commit 'b14f1211f9a87e96f28550519e82a53efc24de5a':
  logd: fix kernel logline stutter
2015-06-08 21:31:04 +00:00
Mark Salyzyn
b14f1211f9 am 4d5f5417: Merge "logd: fix kernel logline stutter" into mnc-dev
* commit '4d5f54174a8f06c4c0ae87f555cdc4c3b0eed165':
  logd: fix kernel logline stutter
2015-06-08 21:18:56 +00:00
Mark Salyzyn
0ea749fa76 am ad26b868: am 2c6a1b7e: am 42951a8b: Merge "logd: fix kernel logline stutter"
* commit 'ad26b8684f7d6e06175f2b01addde6d8854e8d5f':
  logd: fix kernel logline stutter
2015-06-08 21:09:09 +00:00
Eino-Ville Talvala
467fb13e54 am 2857eada: am 414fb90e: Camera: Add new set video format/dataspace command
* commit '2857eada5fa32fedae2e26200543d95ce4f09080':
  Camera: Add new set video format/dataspace command
2015-06-08 21:09:08 +00:00
Mark Salyzyn
ad26b8684f am 2c6a1b7e: am 42951a8b: Merge "logd: fix kernel logline stutter"
* commit '2c6a1b7ec0af13dad6e77d75e03dce8ac76de8b7':
  logd: fix kernel logline stutter
2015-06-08 20:59:08 +00:00
Mark Salyzyn
4d5f54174a Merge "logd: fix kernel logline stutter" into mnc-dev 2015-06-08 20:56:02 +00:00
Mark Salyzyn
df5902c4f3 logd: fix kernel logline stutter
(cherry pick from commit 2c3b300fd8)

- look for cases where one log line contains two without a newline.
- rare condition, occurs when a printk does not have
  a terminating newline under certain race conditions.
- the newline may be performed broken up as a second call
- the timestamps can be reversed (showing the race effects).
- driver(s) should really have the newline in their log messages.

Change-Id: Ibfb56b32047da3d6513db059ca6edad0f0105168
2015-06-08 13:55:14 -07:00
Eino-Ville Talvala
2857eada5f am 414fb90e: Camera: Add new set video format/dataspace command
* commit '414fb90eae816e98d8b2d45a3dbce70f1dbc2064':
  Camera: Add new set video format/dataspace command
2015-06-08 20:51:54 +00:00
Mark Salyzyn
2c6a1b7ec0 am 42951a8b: Merge "logd: fix kernel logline stutter"
* commit '42951a8be7c8fbdfa95d431142194c52e81d1c63':
  logd: fix kernel logline stutter
2015-06-08 20:45:53 +00:00
Mark Salyzyn
42951a8be7 Merge "logd: fix kernel logline stutter" 2015-06-08 20:33:13 +00:00
Eino-Ville Talvala
414fb90eae Camera: Add new set video format/dataspace command
This allows the video encoding subsystem inform the camera what format
and dataspace should be used for metadata-mode buffers.

This is necessary to allow software encoders and other generic
consumers that cannot interpret
HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED buffers.

Bug: 13222807
Change-Id: I01090dc4dce11f075f7d3cd86daca5ecf3d9e995
2015-06-08 13:21:27 -07:00
Mark Salyzyn
2c3b300fd8 logd: fix kernel logline stutter
- look for cases where one log line contains two without a newline.
- rare condition, occurs when a printk does not have
  a terminating newline under certain race conditions.
- the newline may be performed broken up as a second call
- the timestamps can be reversed (showing the race effects).
- driver(s) should really have the newline in there log messages.

Change-Id: Ibfb56b32047da3d6513db059ca6edad0f0105168
2015-06-08 13:10:31 -07:00
Oleksiy Vyalov
da31778f3b Extend run-as with optional --user argument.
1. Calculate AID for spawned process as (100000 * $user) + uid_from_packages.list
2. Use /data/user/$user/$packageDir as a root of a new process if $user != 0.

Change-Id: I761dfb481114bd51e5a950307fcaf403e96eef10
2015-06-07 19:12:50 -07:00
Elliott Hughes
9187fb5985 am 01cf95dd: am b71c8a29: am e1061914: Merge "Make start/stop warn if you\'re not root."
* commit '01cf95ddd54d12457c744a2ab2d6dd7ad026aa36':
  Make start/stop warn if you're not root.
2015-06-06 17:04:30 +00:00
Elliott Hughes
13c66522dc am 71ae73c0: am b4d0722d: am a9456438: Merge "Fix test_adb.py against production builds."
* commit '71ae73c01dd8ef12b69e25b5925cd85bc1bfd91d':
  Fix test_adb.py against production builds.
2015-06-06 17:04:28 +00:00
Paul Lawrence
64f69a73e4 am 0ec4b936: am 439cdfd0: am af0baad7: Merge "adb shouldn\'t trace unless told to"
* commit '0ec4b9363a0298b2da532d3591f4ae99b04d88db':
  adb shouldn't trace unless told to
2015-06-06 17:04:27 +00:00
Elliott Hughes
01cf95ddd5 am b71c8a29: am e1061914: Merge "Make start/stop warn if you\'re not root."
* commit 'b71c8a293a22d116796174b571afbaacccc3bc10':
  Make start/stop warn if you're not root.
2015-06-06 00:35:21 +00:00
Elliott Hughes
71ae73c01d am b4d0722d: am a9456438: Merge "Fix test_adb.py against production builds."
* commit 'b4d0722d7dedece03e560dc13eb6b56bf18eeae6':
  Fix test_adb.py against production builds.
2015-06-06 00:35:20 +00:00