Commit Graph

11858 Commits

Author SHA1 Message Date
Andrew Hsieh
5e0e89f229 Merge "[MIPS] Added support for file descriptor related system calls." 2013-02-21 04:48:32 +00:00
Andrew Hsieh
8a8fff3928 Merge "[MIPS] Fixed LTP Tests 9 and 20 of getaddrinfo_01." 2013-02-21 04:48:06 +00:00
Andrew Hsieh
b1317706c4 Merge "[MIPS] Added missing _NR_* system call support and cleaned up." 2013-02-21 04:47:43 +00:00
Andrew Hsieh
fa011bfb58 Merge "[MIPS] Add Real Time Signal Functions and minor bug fixes." 2013-02-21 04:47:23 +00:00
Andrew Hsieh
166bc925cc Merge "[MIPS] Unify around a consistent *_ntop/*_pton style." 2013-02-21 04:47:04 +00:00
Andrew Hsieh
13b8132938 Merge "[MIPS] Tighten up code to fit within 100 characters lines." 2013-02-21 04:46:48 +00:00
Andrew Hsieh
1ef2354fa7 Merge "[MIPS] Expand TABS and remove redundant return parenthesis." 2013-02-21 04:39:24 +00:00
Pete Delaney
183963db80 [MIPS] Portable versions of setjmp, sigsetjmp, ...
The portable (ARM) jmp_buf and sigjmp_buf structures are smaller than the native
(MIPS) structures so it is not safe to simply call the standard bionic routines.

Luckily there is a lot of redundant space in the standard MIPS structures
and it is possible to save all of the needed registers in the area provided by the
ARM application.

Change-Id: I694a90516cdf96d581863e833776092830afe3cc
Signed-off-by: Chris Dearman <chris.dearman@imgtec.com>
Signed-off-by: Pete Delaney <piet.delaney@imgtec.com>
Signed-off-by: Paul Lind <paul.lind@imgtec.com>
2013-02-20 20:07:33 -08:00
Pete Delaney
860342e989 [MIPS] Added support for STDIO sflags().
sflags() returns open() flags via a pointer passed to sflags().

Change-Id: I854dc4302bf09318e97eb3129a8debf98dbe8735
Signed-off-by: Chris Dearman <chris.dearman@imgtec.com>
Signed-off-by: Pete Delaney <piet.delaney@imgtec.com>
Signed-off-by: Paul Lind <paul.lind@imgtec.com>
2013-02-20 20:06:46 -08:00
Pete Delaney
998548881e [MIPS] Fixed a bug and improved fcntl_portable.
Improved Logging, tweaked func names, fixed double mappings
of mips_command.

While debugging the LTP fcntl07* set of failures I modified
a few ALOGV() calls to make logging more helpful in
fcntl_cmd_pton().

Change-Id: Idc9a7c8dd27883dff1e555769d6a8e331f4fdeb9
Signed-off-by: Pete Delaney <piet.delaney@imgtec.com>
Signed-off-by: Chris Dearman <chris.dearman@imgtec.com>
Signed-off-by: Paul Lind <paul.lind@imgtec.com>
2013-02-20 20:06:13 -08:00
Pete Delaney
b7b5e9d3fb [MIPS] Extend Signal Mapping to include RT Signals.
Both MIPS and ARM use signals 32 to 64 for real-time signals.
ARM signals 32 to 64 can't be masked due to the signal
mask being limited to 32 bits. MIPS signals 32 to 64 can be
masked, and Lib-Portable correctly supports this feature.

Fixes LTP tests rt_sigaction01 and ptrace05.

Fixed a few signal problems; Ex last Real Time Signal

1.  The signal handler for signal number 64, the last real
    time signal, wasn't being intercepted. Now catching
    signal number 64.

2.  sigaction() to only change *oldact when return
    value is zero.

3.  Fixed rt_sigqueue_portable() to set errno when
    returning a -1.

4.  Fixed a few cases where signal 0 was being added
    to the table of signal handlers for signal remapping.
    Harmless but a bit silly.

Change-Id: I1a71113d7ce4b60f3a587dae4e243dc88dd6d6bc
Signed-off-by: Pete Delaney <piet.delaney@imgtec.com>
Signed-off-by: Chris Dearman <chris.dearman@imgtec.com>
Signed-off-by: Paul Lind <paul.lind@imgtec.com>
2013-02-20 20:05:46 -08:00
Pete Delaney
c684613e19 [MIPS] Added support for file descriptor related system calls.
Specifically these functions are now supported:
    signalfd4(), eventfd(), timerfd_create(),
    pipe(), and inotify_init1()

Modified syscall_portable() to call signalfd4_portable(),
eventfd_portable(), eventfd2_portable(), and timerfd_create().
These system calls enable the read system calls to access
kernel data structures.

The signalfd4() enables read to return a signalfd_siginfo structure
which have the signal number and errno mapped until an execve().
This is similar to the maintaining a table of signal handlers to
map the signal numbers done earlier. This mapping is extended to
the process after an execve() by passing the final set of mapped
file descriptors via a pair of environment variables.

Disabling signal and file descriptor read mapping in parent
if the child would break the mapping algorithms.

This code passes at least all of the non-POSIX LTP tests,
including an updated LTP signalfd4 test that posts SIGNALS
and uses this read() mechanism to get signal info.

inotify_init1 is similar to signalfd(), timerfd() and other
filefd functions which map read() calls. Unlike signalfd(), and
similar to timerfd(), the reads don't appear to need to be mapped.

The members of the inotify_event structure appear to be generic.
The mask bits like IN_MOVE_FROM and IN_MOVE_TO are defined in
generic files. The LTP test in testcases/kernel/syscalls/inotify
test for the inotify_event structure being inotify_event structure
being read and does seem to check it contents being correct.

Change-Id: I3f2dcd4e33437ac953cd9f67f56dccc6ec6e5e6f
Signed-off-by: Pete Delaney <piet.delaney@imgtec.com>
Signed-off-by: Chris Dearman <chris.dearman@imgtec.com>
Signed-off-by: Paul Lind <paul.lind@imgtec.com>
2013-02-20 20:05:19 -08:00
Pete Delaney
dbbf0045b6 [MIPS] Fixed LTP Tests 9 and 20 of getaddrinfo_01.
Just mapping struct addrinfo socktype member; everything else is
identical in ARM vs MIPS cpp comparison.

Lots of tests in getaddrinfo_01 fail on Android, but test 9 and 20
were breaking with lib-portable only. This fix corrects that
difference in the test results.

Change-Id: I93c7948cc206ec60b867844857e3e19350c5f5e9
Signed-off-by: Pete Delaney <piet.delaney@imgtec.com>
Signed-off-by: Chris Dearman <chris.dearman@imgtec.com>
Signed-off-by: Paul Lind <paul.lind@imgtec.com>
2013-02-20 20:04:01 -08:00
Pete Delaney
a89a549987 [MIPS] Added missing _NR_* system call support and cleaned up.
Change-Id: I18499a73ad3732a16edb941c4db9fc2811dfe5d5
Signed-off-by: Pete Delaney <piet.delaney@imgtec.com>
Signed-off-by: Chris Dearman <chris.dearman@imgtec.com>
Signed-off-by: Paul Lind <paul.lind@imgtec.com>
2013-02-20 20:03:24 -08:00
Pete Delaney
6732a917fd [MIPS] Add Real Time Signal Functions and minor bug fixes.
1. Added:
        rt_sigaction(),
        rt_sigprocmask(), and
        rt_sigtimedwait portable syscalls.

    2. Fixed a bug in signal.c.

    3. Added a new pair of functions to map siginfo_t
       between portable and native formats.

    4. Fixed LTP rt_siqqueueinfo01 and siqqueue() test failures.

    5. Using these new siginfo_t mapping functions in functions
       that were previously doing this functionality internally:
          a. mips_sigaction_handler()
          b. __rt_sigtimedwait_portable()

    6. Modified rt_sigqueueinfo_portable():
      a. Added a call to this new siginfo_pton() function.
      b. Fixed native_sig calculation; it was converting
         with the wrong function (ntop instead of pton).

    7. Added the Thread Group Flavor of Real Time version of
       sigqueueinfo().

    8. Added and tested the sigqueue() implementation thought it's
       not supported by Android yet. Using a LTP library function
       to implement it via syscall for now.  Android has a
       sysconf() regression that will be addressed in a separate
       commit.

    9. Modified some of the variable names in:

          __rt_sigtimedwait_portable()

       to make it easier/faster to read.

    10. Fixed a SIGTERM --> SIGTERM_PORTABLE mapping bug.

Most LTP Posix sigqueue() tests and the rt_sigqueueinfo01() test
now pass with this commit.

Change-Id: I5a2c28c4f5863cc013fe0c7fce819fa5b7a6dcc7
Signed-off-by: Pete Delaney <piet.delaney@imgtec.com>
Signed-off-by: Douglas Leung <douglas.leung@imgtec.com>
Signed-off-by: Chris Dearman <chris.dearman@imgtec.com>
Signed-off-by: Paul Lind <paul.lind@imgtec.com>
2013-02-20 20:02:52 -08:00
Pete Delaney
4977f77e79 [MIPS] Unify around a consistent *_ntop/*_pton style.
Unifying around the <class>_ntop() style;
changing ntop_*() and pton_* to *_ntop() and *_pton().

Also added portable versions of strerror() and strerror_r()
while updating the errno.c file.

Change-Id: I2a0f40963f293ef9387b0dbcb3426276d301a17c
Signed-off-by: Pete Delaney <piet.delaney@imgtec.com>
Signed-off-by: Chris Dearman <chris.dearman@imgtec.com>
Signed-off-by: Paul Lind <paul.lind@imgtec.com>
2013-02-20 20:02:09 -08:00
Pete Delaney
2928edfab9 [MIPS] Tighten up code to fit within 100 characters lines.
File poll.c had a wide line and the reason for the asymmetric
mapping of the event flags wasn't obvious on my reviewing
this code. Seemed to justify adding some clarification.

Both signal.c and socket.c were using lengthy function names
for Portable <--> Native mappings. Switch to the newer *_ntop()
style in wide files and made the ALOGV() messages more useful.

Also changed mapping of portable SIGSTKFLT to native SIGEMT
while editing a wide line in the signal.c file.  MIPS has no
SIGSTKFLT signal, nor ARM a signal SIGEMT. Using SIGEMT as a
proxy for SIGSTKFLT_PORTABLE for Lib-Portable applications.
This makes the signal mapping reversible during signal handling.

Fixed ALOGV() Entry/Exit brackets to match.

Change-Id: I9a91992e67ab24322db608424bf69c47fad8e18d
Signed-off-by: Pete Delaney <piet.delaney@imgtec.com>
Signed-off-by: Chris Dearman <chris.dearman@imgtec.com>
Signed-off-by: Paul Lind <paul.lind@imgtec.com>
2013-02-20 20:01:15 -08:00
Pete Delaney
8930ac5534 [MIPS] Expand TABS and remove redundant return parenthesis.
Also fixed syscall.c to use curly brackets in case
statements to be more like bionic.

Change-Id: I20ffab9a474a2132b47fb4e765966c956aab2aff
Signed-off-by: Pete Delaney <piet.delaney@imgtec.com>
Signed-off-by: Chris Dearman <chris.dearman@imgtec.com>
Signed-off-by: Paul Lind <paul.lind@imgtec.com>
2013-02-20 20:00:23 -08:00
Adam Koch
ec4b4c4188 Bitmapfun Sample: Add additional sample images.
Add a larger number of sample images so it's easier to see the result
of the various bitmap optimizations.

Change-Id: Ieef04a1cd4dc6cf1fa165baa0a6f8d4750b58d71
2013-02-20 15:08:06 -05:00
Dianne Hackborn
1ee9d5ec61 Add option to toggle the new overscan mode.
Change-Id: I552a1c8b36650c558fe6f4e3e1a9e40137d7274f
2013-02-19 12:05:17 -08:00
Siva Velusamy
d090a324e1 am 330baa51: am 8967cbff: Merge "Remove swing-worker."
* commit '330baa51a857e37f90215656e09b4f547086d2a7':
  Remove swing-worker.
2013-02-19 11:39:39 -08:00
Siva Velusamy
330baa51a8 am 8967cbff: Merge "Remove swing-worker."
* commit '8967cbffa5218f6708fdae526517f7ac146182f6':
  Remove swing-worker.
2013-02-19 11:37:26 -08:00
Siva Velusamy
8967cbffa5 Merge "Remove swing-worker." 2013-02-19 19:27:38 +00:00
Siva Velusamy
748e9da089 Remove swing-worker.
Change-Id: Ice7f98745424b0063e3c09c4a93a209a11146c17
2013-02-19 11:01:18 -08:00
Jesse Hall
a0579871af Fix glShaderSource parameter constness
Change-Id: I1008d779a9d333dc8968812d22e387b804e3c570
2013-02-15 14:19:35 -08:00
James Dong
74918c2456 Merge "Make software vp8 video encoder available to MediaCodec on emulator" 2013-02-13 18:19:30 +00:00
James Dong
b92e9cdd21 Make software vp8 video encoder available to MediaCodec on emulator
Change-Id: I7da75ea335c0b07df876de473545f170138c56b7
2013-02-13 10:13:20 -08:00
Chris Banes
3b7f23f881 bitmapfun: Add support to use inBitmap option
This adds support for devices running Honeycomb or newer
to use the inBitmap BitmapFactory option when decoding images. The way
it accomplishes this is by adding a second level 'memory cache' using
SoftReferences. When an item is removed from the LruCache it is added
to this SoftReference Set. The next time an image is decoded, the Set
is searched to see if it contains a bitmap that can be re-used.

Change-Id: I8f980160ddc7116731b25e6f3f110c38f207f286
Signed-off-by: Chris Banes <chrisbanes@google.com>
2013-02-13 13:19:09 +00:00
Xavier Ducrohet
446e52e4fe am bcc848c1: (-s ours) am 71c6b7ae: am 7b7aca60: Move rev for 2 for API 17 and 12 for support. do not merge.
# Via Android Git Automerger (2) and Xavier Ducrohet (1)
* commit 'bcc848c188fad6d5d15631dd24c0f9747c4fc76d':
  Move rev for 2 for API 17 and 12 for support. do not merge.
2013-02-12 09:34:45 -08:00
Xavier Ducrohet
bcc848c188 am 71c6b7ae: am 7b7aca60: Move rev for 2 for API 17 and 12 for support. do not merge.
# Via Android Git Automerger (1) and Xavier Ducrohet (1)
* commit '71c6b7ae8516c2d5b4c54fbf978888d3ebbc7100':
  Move rev for 2 for API 17 and 12 for support. do not merge.
2013-02-12 09:32:32 -08:00
Xavier Ducrohet
71c6b7ae85 am 7b7aca60: Move rev for 2 for API 17 and 12 for support. do not merge.
# Via Xavier Ducrohet
* commit '7b7aca60bab50575c595a283facaa80999beba61':
  Move rev for 2 for API 17 and 12 for support. do not merge.
2013-02-12 09:30:32 -08:00
Xavier Ducrohet
7b7aca60ba Move rev for 2 for API 17 and 12 for support. do not merge.
Change-Id: I8b3b1a964fb523bb2906cc15264914ffad147648
2013-02-12 09:27:51 -08:00
The Android Open Source Project
b3ac0f9565 am 38596923: (-s ours) Reconcile with jb-mr1.1-release - do not merge
# Via The Android Automerger (1) and The Android Open Source Project (1)
* commit '385969235051b2d8d9f4b1e5d2d6d207ab6a8898':
2013-02-08 15:42:09 -08:00
The Android Open Source Project
3859692350 Reconcile with jb-mr1.1-release - do not merge
Change-Id: Id4dcf1e5d36d456a1fea85b8bcce602611dcc4db
2013-02-08 15:40:36 -08:00
Andy Stadler
537a4d190a Merge "Clean up classpath - bye bye Camera" 2013-02-08 20:52:53 +00:00
Andy Stadler
dd5b61cd09 Clean up classpath - bye bye Camera
Change-Id: I988bacb5c4fdc071f77b174e934114bf655df0ed
2013-02-08 11:56:13 -08:00
Raphael Moll
599c4c41a5 am de7e352b: am ddb45cd3: am 68251f81: Merge "Adjust sdk to new prebuilts location."
# Via Android Git Automerger (2) and others
* commit 'de7e352b15e83b50d3003d92561b8942e3bfdadc':
  Adjust sdk to new prebuilts location.
2013-02-08 11:42:59 -08:00
Raphael Moll
de7e352b15 am ddb45cd3: am 68251f81: Merge "Adjust sdk to new prebuilts location."
# Via Android Git Automerger (1) and others
* commit 'ddb45cd3e9fb5ce63b636823d9be693dceb6ee55':
  Adjust sdk to new prebuilts location.
2013-02-08 10:13:29 -08:00
Raphael Moll
ddb45cd3e9 am 68251f81: Merge "Adjust sdk to new prebuilts location."
# Via Gerrit Code Review (1) and Raphael Moll (1)
* commit '68251f8115197b1bef0bd1e2bb06bcb491dededc':
  Adjust sdk to new prebuilts location.
2013-02-08 10:11:31 -08:00
Raphael Moll
68251f8115 Merge "Adjust sdk to new prebuilts location." 2013-02-08 17:59:26 +00:00
The Android Automerger
04e0a9cfd0 merge in jb-mr1.1-release history after reset to jb-mr1.1-dev 2013-02-07 14:23:19 -08:00
Chris Banes
a1a83e1f25 am e6edd932: am d3dc2b12: am 2a84299d: am f4535aee: Merge "Update bitmapfun sample to call recycle()" into jb-mr1-dev
# Via Android Git Automerger (3) and others
* commit 'e6edd9322b43ef14da2e447b45183bf07262238f':
  Update bitmapfun sample to call recycle()
2013-02-07 11:19:47 -08:00
Chris Banes
e6edd9322b am d3dc2b12: am 2a84299d: am f4535aee: Merge "Update bitmapfun sample to call recycle()" into jb-mr1-dev
# Via Android Git Automerger (2) and others
* commit 'd3dc2b12e21305685920d262cfdc093dfaf1da0b':
  Update bitmapfun sample to call recycle()
2013-02-07 09:25:08 -08:00
Chris Banes
d3dc2b12e2 am 2a84299d: am f4535aee: Merge "Update bitmapfun sample to call recycle()" into jb-mr1-dev
# Via Android (Google) Code Review (1) and others
* commit '2a84299d4d8e1944f2af66199b784004d639deaa':
  Update bitmapfun sample to call recycle()
2013-02-07 09:17:21 -08:00
Chris Banes
2a84299d4d am f4535aee: Merge "Update bitmapfun sample to call recycle()" into jb-mr1-dev
# Via Android (Google) Code Review (1) and Chris Banes (1)
* commit 'f4535aee56bf564f962dbcbdc0ce03af98f0ebd4':
  Update bitmapfun sample to call recycle()
2013-02-07 09:15:44 -08:00
Chris Banes
f4535aee56 Merge "Update bitmapfun sample to call recycle()" into jb-mr1-dev 2013-02-07 17:12:28 +00:00
Mathias Agopian
2373f44281 Merge "clean-up sensor emulation code." 2013-02-07 03:08:32 +00:00
Mathias Agopian
6e263d5568 clean-up sensor emulation code.
don't blindly access the "status" field which is not used for all sensors.

Change-Id: I6ff80cf37b8feeccddfd843480db1861aabbedf1
2013-02-06 18:57:04 -08:00
Trevor Johns
dc452cf178 Merge "Remove MailSync demo" 2013-02-07 02:54:28 +00:00
Raphael Moll
862ae1efae Adjust sdk to new prebuilts location.
Change-Id: I4a2cb710ef3c22b7b3c90e5b4ee7757087ebe44c
2013-02-06 16:45:26 -08:00