Commit Graph

11380 Commits

Author SHA1 Message Date
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
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
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
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
3859692350 Reconcile with jb-mr1.1-release - do not merge
Change-Id: Id4dcf1e5d36d456a1fea85b8bcce602611dcc4db
2013-02-08 15:40:36 -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
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
Raphael Moll
862ae1efae Adjust sdk to new prebuilts location.
Change-Id: I4a2cb710ef3c22b7b3c90e5b4ee7757087ebe44c
2013-02-06 16:45:26 -08:00
Chris Banes
4d6574e878 Update bitmapfun sample to call recycle()
A new sub-class of BitmapDrawable has been created which tracks
when it is being used or cached when running on Gingerbread or
older. A new ImageView subclass has been added to accomplish this,
as well as changes to the LruCache.

Change-Id: I95d3334684703aebb6b09fcd56194cf73e3c2dcf
Signed-off-by: Chris Banes <chrisbanes@google.com>
2013-02-06 16:21:21 +00:00
Dirk Dougherty
c82865621b am 24600336: am 64f03f37: am 451d3b83: Merge "Add redirect for removed file." into jb-mr1-dev
# Via Android Git Automerger (2) and others
* commit '246003369211d3f0a035c4ae23e63b234080e4fd':
  Add redirect for removed file.
2013-02-05 14:13:56 -08:00
Dirk Dougherty
2460033692 am 64f03f37: am 451d3b83: Merge "Add redirect for removed file." into jb-mr1-dev
# Via Android (Google) Code Review (1) and others
* commit '64f03f37e3c0963c168ec7517d4c6ebe588e3c33':
  Add redirect for removed file.
2013-02-05 14:11:07 -08:00
Dirk Dougherty
64f03f37e3 am 451d3b83: Merge "Add redirect for removed file." into jb-mr1-dev
# Via Android (Google) Code Review (1) and Dirk Dougherty (1)
* commit '451d3b83cfbfd807ec3b86e3e2877cc8b2a39bab':
  Add redirect for removed file.
2013-02-05 14:08:30 -08:00
Dirk Dougherty
451d3b83cf Merge "Add redirect for removed file." into jb-mr1-dev 2013-02-05 22:06:58 +00:00
Dirk Dougherty
184a1dc183 Add redirect for removed file.
Change-Id: I94c59f54ab7daaae588f61c02601b7599799894b
2013-02-05 14:05:04 -08:00
The Android Open Source Project
b3459b08c3 Reconcile with jb-mr1.1-release - do not merge
Change-Id: I37667f21ee86fe7aafbf7f44573b27d7eb573f7e
2013-02-05 13:44:54 -08:00
The Android Automerger
49e44d8dfe merge in jb-mr1.1-release history after reset to jb-mr1.1-dev 2013-02-05 12:24:08 -08:00
Dirk Dougherty
851b403254 am 0d594020: am a9fe80d2: am 388ea1e3: Minor updates to keep androiddevdocs redirect in sync with devsite version (in frameworks/base)
# Via Android Git Automerger (2) and Dirk Dougherty (1)
* commit '0d5940203cd866858e07b381ea8104d8c99286a8':
  Minor updates to keep androiddevdocs redirect in sync with devsite version (in frameworks/base)
2013-02-05 09:55:19 -08:00
Dirk Dougherty
0d5940203c am a9fe80d2: am 388ea1e3: Minor updates to keep androiddevdocs redirect in sync with devsite version (in frameworks/base)
# Via Android Git Automerger (1) and Dirk Dougherty (1)
* commit 'a9fe80d20405e38946d4e54a361e58f4c2137165':
  Minor updates to keep androiddevdocs redirect in sync with devsite version (in frameworks/base)
2013-02-05 09:53:24 -08:00
Dirk Dougherty
a9fe80d204 am 388ea1e3: Minor updates to keep androiddevdocs redirect in sync with devsite version (in frameworks/base)
# Via Dirk Dougherty
* commit '388ea1e3e55bf37f22a6b98bcd57da1cb4b31032':
  Minor updates to keep androiddevdocs redirect in sync with devsite version (in frameworks/base)
2013-02-05 09:51:08 -08:00
Andrew Hsieh
b070a3d46b am 18c3a185: Merge "Fix warnings in sample detected by NDK_ANALYZE=1"
# Via Andrew Hsieh (1) and Gerrit Code Review (1)
* commit '18c3a185c64a87791ccedb802203fda7b5290916':
  Fix warnings in sample detected by NDK_ANALYZE=1
2013-02-05 00:12:06 -08:00
Andrew Hsieh
18c3a185c6 Merge "Fix warnings in sample detected by NDK_ANALYZE=1" 2013-02-05 08:10:17 +00:00
Dirk Dougherty
388ea1e3e5 Minor updates to keep androiddevdocs redirect in sync with devsite version (in frameworks/base)
Change-Id: If2fdf0b92d560fcfbbcfe0f5ec65dd6dcf471560
2013-02-04 13:19:46 -08:00
Adam Koch
5d849d6f50 am 5f404299: am aa3687df: am 2e5555e0: Bitmapfun Sample: Fix bug where background image loading could hang
# Via Android Git Automerger (2) and Adam Koch (1)
* commit '5f4042990ac33bd05cd4e3f48935d6eb0dc552c9':
  Bitmapfun Sample: Fix bug where background image loading could hang
2013-02-04 09:06:34 -08:00
The Android Automerger
61e0b17123 merge in jb-mr1.1-release history after reset to jb-mr1.1-dev 2013-02-01 18:25:04 -08:00
Adam Koch
5f4042990a am aa3687df: am 2e5555e0: Bitmapfun Sample: Fix bug where background image loading could hang
# Via Adam Koch (1) and Android Git Automerger (1)
* commit 'aa3687df9e86b4ec53a81d4ceb3435ddf4e9a7f4':
  Bitmapfun Sample: Fix bug where background image loading could hang
2013-02-01 14:26:02 -08:00
Adam Koch
aa3687df9e am 2e5555e0: Bitmapfun Sample: Fix bug where background image loading could hang
# Via Adam Koch
* commit '2e5555e04b1e78f2d6fc48e8069b33399a4cf028':
  Bitmapfun Sample: Fix bug where background image loading could hang
2013-02-01 13:27:32 -08:00
Andrew Hsieh
c21a505044 Fix warnings in sample detected by NDK_ANALYZE=1
Change-Id: I999a96fb3de5225adde91eb014170ffd7b6092f6
2013-02-01 11:14:28 -08:00
Igor Murashkin
f3e630bf44 am bbbc646d: EmulatedCamera2: Fix metadata symbols: DO NOT MERGE
# Via Igor Murashkin
* commit 'bbbc646d85c959d8be3431b4922e943f2978135f':
  EmulatedCamera2: Fix metadata symbols: DO NOT MERGE
2013-01-30 18:57:23 -08:00
Igor Murashkin
3d6a2c0f54 am 28ecf8da: Revert "Camera2: Selectively re-define master metadata symbols: DO NOT MERGE": DO NOT MERGE
# Via Igor Murashkin
* commit '28ecf8da880d2371e9b995a08c79dd7efe74ca34':
  Revert "Camera2: Selectively re-define master metadata symbols: DO NOT MERGE": DO NOT MERGE
2013-01-30 18:57:22 -08:00
Igor Murashkin
bbbc646d85 EmulatedCamera2: Fix metadata symbols: DO NOT MERGE
Change-Id: I9ccec2636d73684af9236d873a6bba0e15cd598a
2013-01-30 16:32:56 -08:00
Igor Murashkin
28ecf8da88 Revert "Camera2: Selectively re-define master metadata symbols: DO NOT MERGE": DO NOT MERGE
This reverts commit 52f92faa60.
2013-01-30 16:31:51 -08:00
Adam Koch
2e5555e04b Bitmapfun Sample: Fix bug where background image loading could hang
Background image loading is paused when the GridView is scrolling,
if the activity is destroyed during a scroll the image loading was
not unpaused causing it to remain running indefinitely. This change
makes sure the background image loading is unpaused.

Change-Id: Iad8093fc2af50fcfc1416c5d9089db0c064711cf
2013-01-28 12:20:42 -05:00
Dianne Hackborn
e66430c1d9 am 2e21a7d5: am 2f388d7a: Merge "Correcting 2 FC\'s in Dev Tools"
# By HardCorePawn
# Via Android Git Automerger (1) and others
* commit '2e21a7d5fcb3201c5da1e281063751810fcb01f4':
  Correcting 2 FC's in Dev Tools
2013-01-24 17:09:18 -08:00
Dianne Hackborn
2e21a7d5fc am 2f388d7a: Merge "Correcting 2 FC\'s in Dev Tools"
# By HardCorePawn
# Via Gerrit Code Review (1) and HardCorePawn (1)
* commit '2f388d7a399b9744e5212984a4c383d83eddfd7f':
  Correcting 2 FC's in Dev Tools
2013-01-24 17:07:51 -08:00