Commit Graph

10170 Commits

Author SHA1 Message Date
Patrick Tjin 4415e2a269 Scan all descriptors when checking for fastboot [DO NOT MERGE]
For Linux, the USB code was only looking at the first
descriptor when searching for the fastboot interface
which caused some devices to not be found.

Also clarify some code by using the actual USB structures
instead of void or char pointers.

(Cherry Picked from aac89db8a5)
Change-Id: I9e4871c4d477ac10ba75bb17a955f176809af289
Signed-off-by: Patrick Tjin <pattjin@google.com>
2014-07-17 10:07:19 -07:00
Nick Kralevich 71bc72cb5d am 04f9b2a8: debuggerd: use O_NOFOLLOW|O_CLOEXEC for tombstones
* commit '04f9b2a809cb83c3d36c75791bfa28690800c883':
  debuggerd: use O_NOFOLLOW|O_CLOEXEC for tombstones
2014-07-17 17:03:26 +00:00
Jungshik Jang 716fe62e1c am cadd5bb7: Add force usage and config type for HDMI-CEC system audio mode.
* commit 'cadd5bb70eae200d744f115fd63c3ebe17069db8':
  Add force usage and config type for HDMI-CEC system audio mode.
2014-07-17 17:01:13 +00:00
Patrick Tjin 3a07ce8c04 am 7793a109: am 5328f671: Merge "Scan all descriptors when checking for fastboot"
* commit '7793a10993a357db6a963760737193992055a690':
  Scan all descriptors when checking for fastboot
2014-07-17 12:59:43 +00:00
Hans Boehm 66d8a52ba6 am 7e5c7b95: am baab180c: Merge "Do not typedef char16_t if it is a keyword."
* commit '7e5c7b9567ffa7efce13a84ea19c5865cbf5b4c4':
  Do not typedef char16_t if it is a keyword.
2014-07-17 12:59:41 +00:00
Patrick Tjin 7793a10993 am 5328f671: Merge "Scan all descriptors when checking for fastboot"
* commit '5328f671b5601b948b6d0b457119fd9eb3478d35':
  Scan all descriptors when checking for fastboot
2014-07-17 12:30:18 +00:00
Hans Boehm 7e5c7b9567 am baab180c: Merge "Do not typedef char16_t if it is a keyword."
* commit 'baab180c2d37157cef66d1c8fb9b0726477a2e18':
  Do not typedef char16_t if it is a keyword.
2014-07-17 12:30:18 +00:00
Nick Kralevich 04f9b2a809 debuggerd: use O_NOFOLLOW|O_CLOEXEC for tombstones
Change-Id: I71bdfba30346a9fad3129b404f39eda8190698e3
2014-07-16 20:08:41 -07:00
Daniel Rosenberg 052f275621 newfs_msdos: Added option to cluster-align the start of the root directory
This follows the recommendations of the SD-card association.

Change-Id: Ie89a5972d086b3df9d92e631c394a521f807b016
Signed-off-by: Daniel Rosenberg <drosen@google.com>
2014-07-16 16:56:00 -07:00
Hans Boehm baab180c2d Merge "Do not typedef char16_t if it is a keyword." 2014-07-16 23:43:15 +00:00
Patrick Tjin 5328f671b5 Merge "Scan all descriptors when checking for fastboot" 2014-07-16 23:31:38 +00:00
Hans Boehm dfdbe61d28 Do not typedef char16_t if it is a keyword.
Don't define char16_t on platforms where char16_t is a keyword, as
C11 and C++11 define it to be.

Change-Id: I6717bc2133c1363ecd85861f3869e1eabd2ce96a
2014-07-16 16:09:37 -07:00
Riley Andrews 834f53cf20 am 4c3959ca: am 81a64064: Merge "Remove the /dev/.booting file before triggering boot."
* commit '4c3959cabd50a667f4ea5ec8fb0fe1369ec0d96b':
  Remove the /dev/.booting file before triggering boot.
2014-07-16 16:16:30 +00:00
Riley Andrews 4c3959cabd am 81a64064: Merge "Remove the /dev/.booting file before triggering boot."
* commit '81a640646d3e71dca706cc80579677e35132e365':
  Remove the /dev/.booting file before triggering boot.
2014-07-16 16:02:23 +00:00
Riley Andrews 81a640646d Merge "Remove the /dev/.booting file before triggering boot." 2014-07-16 13:13:16 +00:00
Riley Andrews d721f5fc21 Remove the /dev/.booting file before triggering boot.
On mako only, there is a race condition such that
core + main services must be started after releasing
ueventd (by removing /dev/.booting).

bug 16304711
bug 16333352
2014-07-16 03:59:53 +00:00
Jungshik Jang cadd5bb70e Add force usage and config type for HDMI-CEC system audio mode.
New Usage Type: AUDIO_POLICY_FORCE_FOR_HDMI_SYSTEM_AUDIO
New Config Type: AUDIO_POLICY_FORCE_HDMI_SYSTEM_AUDIO_ENFORCED
When HDMI-CEC system audio mode is enabled, AudioService will
call
 setForceUse(AUDIO_POLICY_FORCE_FOR_HDMI_SYSTEM_AUDIO,
          AUDIO_POLICY_FORCE_HDMI_SYSTEM_AUDIO_ENFORCED);
in order to notify enabled system audio mode, so that
audio policy manager chooses proper output.
When it turns into off, AudioService will call
 setForceUse(AUDIO_POLICY_FORCE_FOR_HDMI_SYSTEM_AUDIO,
          AUDIO_POLICY_FORCE_NONE);

Along with it, add new audio output devic type,
AUDIO_DEVICE_OUT_AUX_LINE, in order to distinguish
line out for headphone and aux output of av device.

Bug: 16305986
Bug: 16002150
Change-Id: Idecdf626737f6635ea3cda638c343260b1661c77
2014-07-16 09:21:04 +09:00
Elliott Hughes a7270c04f9 am e9f7361e: Add SIGFPE to crasher.
* commit 'e9f7361ea9506c8bd8ad1442a43f270859b1b119':
  Add SIGFPE to crasher.
2014-07-15 20:32:34 +00:00
Elliott Hughes 235ecfa6f8 am 1fd286eb: am a94abb84: Merge "Add SIGFPE to crasher."
* commit '1fd286eb64049e39ce606ee5867fcfc5211892b6':
  Add SIGFPE to crasher.
2014-07-15 20:28:09 +00:00
Colin Cross 8a3bb7c450 am 7e55d889: Merge topic \'lmkd\' into lmp-dev
* commit '7e55d8899c45de1c5a48f794abf794f5500065f1':
  lmkd: kill a process if zoneinfo can't be read
  lmkd: kill multiple tasks
  lmkd: use open instead of fopen
  lmkd: make lmkd SCHED_FIFO
  lmkd: mlock all memory
  lmkd: remove libcutils from LOCAL_SHARED_LIBRARIES
2014-07-15 20:22:35 +00:00
Elliott Hughes 1fd286eb64 am a94abb84: Merge "Add SIGFPE to crasher."
* commit 'a94abb8481b98adb5fdc456dd3892f7f9d220094':
  Add SIGFPE to crasher.
2014-07-15 20:22:26 +00:00
Elliott Hughes e9f7361ea9 Add SIGFPE to crasher.
Bug: 3399996

(cherry picked from commit 3ecc42106e)

Change-Id: I075613ca3c022ce8d38a06a5ba236ceff32d181c
2014-07-15 13:18:32 -07:00
Colin Cross 7e55d8899c Merge topic 'lmkd' into lmp-dev
* changes:
  lmkd: kill a process if zoneinfo can't be read
  lmkd: kill multiple tasks
  lmkd: use open instead of fopen
  lmkd: make lmkd SCHED_FIFO
  lmkd: mlock all memory
  lmkd: remove libcutils from LOCAL_SHARED_LIBRARIES
2014-07-15 16:06:25 +00:00
Elliott Hughes b79f91ad6c am aae5d437: Add missing arm64 registers.
* commit 'aae5d437556d877f2a198601394ba8ea7a559a70':
  Add missing arm64 registers.
2014-07-15 02:31:59 +00:00
Elliott Hughes aae5d43755 Add missing arm64 registers.
Also fix dumping of arm64's vector registers, which are actually 128 bits wide.

Also move the arm/arm64 FP registers to the tombstone. (We've never dumped
them at all for the other architectures.)

(cherry picked from commit b40c50351e)

Change-Id: Ic646fb9ea01e9beb42e1757feb8742c1d4efafa7
2014-07-14 18:56:53 -07:00
Colin Cross f8857cc24a lmkd: kill a process if zoneinfo can't be read
Opening /proc/zoneinfo may return -ENOMEM under memory pressure,
assume something needs to be killed if that happens.

Bug: 16236289
Change-Id: I25aab09f4c3f2b9e176eaaeca94fd6bd790dad4e
2014-07-14 17:41:17 -07:00
Colin Cross 16b0946da1 lmkd: kill multiple tasks
The task selected to die may be small, add its approximate size
to other_free and other_file and keep killing until all thresholds
are met.

Bug: 16236289
Change-Id: Iceeca4c63fec98cae2bf53e258f7707cea408b07
2014-07-14 17:41:17 -07:00
Colin Cross ce85d955a3 lmkd: use open instead of fopen
fopen and fgets require allocations, switch to open/read with
stack allocated buffers.

Bug: 16236289
Change-Id: I10586883fe78caf59d309eff7f7989b3e45beb7d
2014-07-14 17:41:17 -07:00
Colin Cross 1a0d9be53e lmkd: make lmkd SCHED_FIFO
If kswapd runs more than lmkd it may throw away all page cache pages
before lmkd gets a chance to kill a process.  Make lmkd SCHED_FIFO
so it can react quickly to kernel low memory notifications.

Bug: 16236289
Change-Id: I46767b4ec81ef8638d0c9e47d168a68b62e3cac5
2014-07-14 17:41:17 -07:00
Elliott Hughes 6136daedd0 am 0193dc1f: am c8a37913: Merge "Add missing arm64 registers."
* commit '0193dc1f5541863cfeaea7653712476bf1b7aef9':
  Add missing arm64 registers.
2014-07-15 00:37:41 +00:00
Elliott Hughes 0193dc1f55 am c8a37913: Merge "Add missing arm64 registers."
* commit 'c8a37913422503e166dbe8b4ff4d2efd20a1fbe6':
  Add missing arm64 registers.
2014-07-15 00:33:54 +00:00
Elliott Hughes c8a3791342 Merge "Add missing arm64 registers." 2014-07-15 00:17:18 +00:00
Elliott Hughes b40c50351e Add missing arm64 registers.
Also fix dumping of arm64's vector registers, which are actually 128 bits wide.

Also move the arm/arm64 FP registers to the tombstone. (We've never dumped
them at all for the other architectures.)

Change-Id: I239a86dd225b47fa90109bc824b7610df67ad812
2014-07-14 17:12:20 -07:00
Christopher Tate 5861e0cb65 am 71bbc678: Fix the build in clang
* commit '71bbc6789fb6750d8fddda0a3ff9a87f09a32c74':
  Fix the build in clang
2014-07-15 00:03:31 +00:00
Elliott Hughes a94abb8481 Merge "Add SIGFPE to crasher." 2014-07-15 00:03:29 +00:00
Elliott Hughes 3ecc42106e Add SIGFPE to crasher.
Bug: 3399996
Change-Id: I115caf846a47f57984c1b1844104e37d29e6f24e
2014-07-15 11:38:47 -07:00
Christopher Tate 71bbc6789f Fix the build in clang
"fprintf(stderr, buf)" is a warning in some compilers, and we're
building with all warnings promoted to error.

Change-Id: Ie3c6ddcd74cf4dda40cf7b742df955dde1d1a5ff
2014-07-14 16:53:57 -07:00
Colin Cross b28ff91313 lmkd: mlock all memory
Use mlockall(MCL_FUTURE) to lock all lmkd pages in memory.  This
avoids lmkd thrashing when the system is low on memory.

As a side effect, it will also keep the .text sections of liblog, libm,
libc, and libprocessgroup in memory at all times.

Bug: 16236289
Change-Id: Idd70557efa4b1e14bc86f14220672a30f6c956e3
2014-07-14 16:39:56 -07:00
Colin Cross 9d9e62cf37 lmkd: remove libcutils from LOCAL_SHARED_LIBRARIES
While lmkd does technically use libcutils' socket.h, it only
uses a static inline.  Remove libcutils from LOCAL_SHARED_LIBRARIES
so it doesn't end up mlock'd in memory in the next patch.

Bug: 16236289
Change-Id: I744d69bfff06cb904836f64e1d5f6e530604bff4
2014-07-14 16:39:56 -07:00
Ruben Brunk 5159e0b9dd am a5e65d86: Allow sticky transform to be set in ANativeWindow.
* commit 'a5e65d86a2a07997b92f83cfac2f0ee37feeee6f':
  Allow sticky transform to be set in ANativeWindow.
2014-07-14 23:20:30 +00:00
Jeff Sharkey 8098e2ceae am 1404e654: Merge "Fix 64-bit builds." into lmp-dev
* commit '1404e6547265c50b85262436f8275c80750c6808':
  Fix 64-bit builds.
2014-07-14 22:24:22 +00:00
Ruben Brunk a5e65d86a2 Allow sticky transform to be set in ANativeWindow.
Bug: 15116722

- Adds methods to set the sticky transform field.

Change-Id: Idaa4311dfd027b2d2b8ea5e2c6cba2da5779d753
2014-07-14 22:14:49 +00:00
Riley Andrews 724c662cae am fd0f3908: Merge "Move unlink("/dev/.booting") until after filesystems are mounted." into lmp-dev
* commit 'fd0f390869962fb314e39983155372b31be6ff92':
  Move unlink("/dev/.booting") until after filesystems are mounted.
2014-07-14 21:39:28 +00:00
Jeff Sharkey 0ec8745be9 am 960df97c: Add install-multiple to adb.
* commit '960df97c2356f5a804d3ef87fe49f788d7ecdfaf':
  Add install-multiple to adb.
2014-07-14 21:39:07 +00:00
Riley Andrews 4aa98b0c7c am c6ac2793: am ebf9f8f1: Merge "Move unlink("/dev/.booting") until after filesystems are mounted."
* commit 'c6ac27937c632b00836ad72c83c9e7a640030aff':
  Move unlink("/dev/.booting") until after filesystems are mounted.
2014-07-14 20:11:41 +00:00
Riley Andrews c6ac27937c am ebf9f8f1: Merge "Move unlink("/dev/.booting") until after filesystems are mounted."
* commit 'ebf9f8f1e87c5eeb667c4169f7d5c9626e1811c9':
  Move unlink("/dev/.booting") until after filesystems are mounted.
2014-07-14 20:09:10 +00:00
Glenn Kasten 7b83cd7b56 am e60eb623: Merge "Representation of channel masks for position assignment and index assignment"
* commit 'e60eb623845b6809657b18ea068a0b93f052fa0c':
  Representation of channel masks for position assignment and index assignment
2014-07-14 19:19:17 +00:00
Hans Boehm 6b563b3ecf am b53af3f6: am 4b9f899b: am e6b0c566: am 981dcd79: Merge "Add comment to discourage use of cutils/atomic.h."
* commit 'b53af3f60f3d6a9b1557f2891183c3322ec3aa14':
2014-07-14 19:19:16 +00:00
Christopher Ferris da54c5b6d2 am 06ca5fad: am 611dceec: am ce61f74f: am 56cbd19b: Merge "Fix build."
* commit '06ca5fadbdb2f2f97895a43cf4e866b9f25ea008':
2014-07-14 19:19:15 +00:00
Elliott Hughes 24f369a6cc am 9d6dfd63: am c785caa4: am 802943ab: am 8098114c: Merge "Sync with upstream grep."
* commit '9d6dfd63c919eaf9333d794524b33d8743452946':
2014-07-14 19:19:15 +00:00