2525 Commits

Author SHA1 Message Date
Jason Sams
5c1619fff4 Fix build
Change-Id: I189d3b8afd351ab5cf604105579212593a98d5a4
2010-12-09 00:58:47 -08:00
Jason Sams
3247842c67 Merge "Allocation API update." 2010-12-08 23:46:28 -08:00
Romain Guy
279d34f4b2 Merge "New, better line drawing implementation. Bug #3207544 Bug #3225875" 2010-12-08 19:10:51 -08:00
Romain Guy
a957eea785 New, better line drawing implementation.
Bug #3207544
Bug #3225875

Change-Id: Ibdd1dfc64e01625d5c441f39eb0aa3ee647f6ff5
2010-12-08 19:06:58 -08:00
Mathias Agopian
19f9eda28a fix [3259708] Graphic Buffer Mapper does not support YV12
remove a bunch of a code that was there only to support broken gralloc implementations

Change-Id: I3c1a9172224cbcc283601abfbbd695a20815451f
2010-12-08 16:48:28 -08:00
Jason Sams
5476b450e5 Allocation API update.
Change-Id: I9b4a71f9e94c7d3978f06b7971051ab4f8472503
2010-12-08 16:14:36 -08:00
Mathias Agopian
d211230633 remove support for PUSH_BUFFER surfaces and overlays
the same functionality is now supported through
the h/w composer HAL, and YUV support in the GPU.

Change-Id: I8146605449954b8e8fd7f78810b7d873c2d8f5bf
2010-12-08 16:13:59 -08:00
Erik Gilling
94720d7ec4 surfaceflinger: add support for gralloc dump hooks
Change-Id: Ib6f539ed0132b70d040d653c03d52cc04249ac3c
2010-12-08 15:40:11 -08:00
Kenny Root
1542af3597 Merge "Change assets to use 64-bit API" 2010-12-08 14:46:22 -08:00
Kenny Root
ddb76c4644 Change assets to use 64-bit API
The asset system and supporting libraries were using off_t instead of
off64_t to access files larger than 2GB (32-bit signed). This change
replaces all off_t with off64_t and lseek64.

There is a new utils/Compat.h added for Mac OS compatibility.

Also fixed some size-related compiler warnings.

Bug: 3205336
Change-Id: I9097b3cb7a602e811fe52f245939d8975da55e9e
2010-12-08 11:21:30 -08:00
Romain Guy
dde4c35385 Merge "Correctly release the OpenGL Canvas on EGL error." 2010-12-07 20:15:29 -08:00
Romain Guy
67f27952c1 Correctly release the OpenGL Canvas on EGL error.
Change-Id: Ib31fd8445f7ce5f7aa7e0205de0e7db80d024fc2
2010-12-07 20:12:50 -08:00
Jeff Brown
49ed71db42 Add support for fallback keycodes.
This change enables the framework to synthesize key events to implement
default behavior when an application does not handle a key.
For example, this change enables numeric keypad keys to perform
their associated special function when numlock is off.

The application is informed that it is processing a fallback keypress
so it can choose to ignore it.

Added a new keycode for switching applications.

Added ALT key deadkeys.

New default key mappings:
- ESC -> BACK
- Meta+ESC -> HOME
- Alt+ESC -> MENU
- Meta+Space -> SEARCH
- Meta+Tab -> APP_SWITCH

Fixed some comments.
Fixed some tests.

Change-Id: Id7f3b6645f3a350275e624547822f72652f3defe
2010-12-07 17:35:26 -08:00
Mathias Agopian
f30c828752 am 48f42f8c: am 4153bf3a: Merge "[3171580] don\'t automatically log GraphicBuffer allocation failures" into gingerbread
* commit '48f42f8c3fbd33b2f46c6290ff5963dd58938cf9':
  [3171580] don't automatically log GraphicBuffer allocation failures
2010-12-07 17:24:03 -08:00
Mathias Agopian
48f42f8c3f am 4153bf3a: Merge "[3171580] don\'t automatically log GraphicBuffer allocation failures" into gingerbread
* commit '4153bf3a259624a2f2dc497b77b225a1fb517abc':
  [3171580] don't automatically log GraphicBuffer allocation failures
2010-12-07 14:20:09 -08:00
Mathias Agopian
4153bf3a25 Merge "[3171580] don't automatically log GraphicBuffer allocation failures" into gingerbread 2010-12-07 14:17:47 -08:00
Shih-wei Liao
b7282bd2e7 Make ScriptC's mEnvironment.mIsThreadable survive the bcc caching and
then cache-reloading.

Change-Id: I0f5d54160dd9ee567fae53c69b246f99096993da
2010-12-07 13:47:14 -08:00
Romain Guy
92d502022d Merge "Fix 9patch rendering Bug #3253396" 2010-12-07 13:29:51 -08:00
Romain Guy
8ab4079ca2 Fix 9patch rendering
Bug #3253396

Some quads were incorrectly assumed to be degenerate.

Change-Id: I9155699edc3424afe9d5a131886bb9966d46b109
2010-12-07 13:30:10 -08:00
Jason Sams
0252a7ebd4 Merge "API review cleanup." 2010-12-06 22:10:18 -08:00
Romain Guy
3a3fa1be9a Draw text decorations correctly.
Change-Id: I237c0ca8bfe9f233e62476e80f72bcea4359398e
2010-12-06 18:47:50 -08:00
Romain Guy
de0ca31e88 Merge "Draw text decorations correctly." 2010-12-06 18:47:03 -08:00
Romain Guy
ffac19ede6 Merge "Correctly render text when coordinates are not integers. Bug #3225632" 2010-12-06 18:08:46 -08:00
Romain Guy
6620c6d413 Correctly render text when coordinates are not integers.
Bug #3225632

Change-Id: If09759e6e95eb2885362ab3ba088cf5aae64c7bf
2010-12-06 18:07:02 -08:00
Jason Sams
bf6ef8d78f API review cleanup.
Change-Id: Ieae7d450308b5637ed4253fe9baed3634c6ed141
2010-12-06 17:46:20 -08:00
James Dong
23b791cd0f am d57fbe88: Fixed a race condition where some recording frames may not be released
* commit 'd57fbe887fabd027e644caeaa2139c863143a786':
  Fixed a race condition where some recording frames may not be released
2010-12-06 15:36:04 -08:00
James Dong
d57fbe887f Fixed a race condition where some recording frames may not be released
bug - 3258924

Change-Id: I4f30d04a713676f5da40e6a7dd861510cc041f9b
2010-12-06 15:05:06 -08:00
Stephen Hines
d4aa7d22f8 Stop using anonymous structs in RS.
Change-Id: I90344683939f2934f841031fd5339dbe91cc9e05
2010-12-06 11:04:40 -08:00
Jason Sams
f9adf6b74f Merge "Prevent message overrun in LocklessCommandFifo." 2010-12-05 19:54:18 -08:00
Bryan Mawhinney
8ea061bcdd Prevent message overrun in LocklessCommandFifo.
The previous logic in makeSpace and makeSpaceNonBlocking
was incorrect (probably a typo).  We shouldn't loop if
looping will overwrite unread messages, or if we would
make the buffer appear empty (mPut == mGet).

Change-Id: Iabc82ca94a585a7041069db97cbed7709f2d388f
2010-12-05 17:21:07 +00:00
Mathias Agopian
e869aee382 [3171580] don't automatically log GraphicBuffer allocation failures
some of these failures are not fatal and even expected in some cases
so they should not emit a dump in the log in those cases.

Change-Id: Idcfa252e3bfa9d74e27fe4ad8f8623aa01aa9c5e
2010-12-03 17:33:09 -08:00
Romain Guy
7c2bacf6a9 Merge "Don't render degenerate triangles in 9patches. Bug #3251983" 2010-12-03 16:49:45 -08:00
Romain Guy
a5ef39a216 Don't render degenerate triangles in 9patches.
Bug #3251983

Change-Id: Ib0b38a7b8111542372f4c4c106b6321c26fe4ad4
2010-12-03 16:48:20 -08:00
Kenny Root
592f4dd8c1 Merge "Move disk usage utilities to its own library" 2010-12-03 11:23:48 -08:00
Romain Guy
9d0161799c Merge "Correctly index transparent quads when generating 9patch meshes. Bug #3250026" 2010-12-02 17:15:05 -08:00
Romain Guy
bd41a11078 Correctly index transparent quads when generating 9patch meshes.
Bug #3250026

Change-Id: Id7e051e9ed81f6b4e7748756503d8055ac7d531a
2010-12-02 17:16:26 -08:00
Jeff Brown
9065504a63 Improve support for external keyboards.
Use Vendor ID, Product ID and optionally the Version to
locate keymaps and configuration files for external devices.

Moved virtual key definition parsing to native code so that
EventHub can identify touch screens with virtual keys and load
the appropriate key layout file.

Cleaned up a lot of old code in EventHub.

Fixed a regression in ViewRoot's fallback event handling.

Fixed a minor bug in FileMap that caused it to try to munmap
or close invalid handled when released if the attempt to map
the file failed.

Added a couple of new String8 conveniences for formatting strings.

Modified Tokenizer to fall back to open+read when mmap fails since
we can't mmap sysfs files as needed to open the virtual key
definition files in /sys/board_properties/.

Change-Id: I6ca5e5f9547619fd082ddac47e87ce185da69ee6
2010-12-02 16:01:32 -08:00
Romain Guy
5e3af5fcba Rescale ColorMatrix' vector to the [0..1] range
Bug #3246354

Change-Id: Idea7a1e6633c71119628315d65315076bc445eb0
2010-12-02 10:41:47 -08:00
James Dong
5faa078aeb Merge "Add preferred preview size support in the camera framework" 2010-12-01 11:01:00 -08:00
James Dong
4ddca9bacc Add preferred preview size support in the camera framework
bug - 3237021

Change-Id: Ica8a3ae5cfbee462b74de98770e33277186c9a2b
2010-11-30 22:28:27 -08:00
Jeff Brown
1f2451007c Ensure the ShortcutManager uses the correct key character map.
The ShortcutManager used to only receive the key code of the key event
that triggered the shortcut.  This change now provides the shortcut
manager with the whole key event so it can look up the associated
character using the correct key character map.

To make this more efficient, added a mechanism for recycling
key events.  At the moment it is only used by key events owned by the
system process, since clients of the existing API (such as Views)
might continue to hold on to key events after dispatch has finished so
they would break if the key event were recycled by the framework.

Deprecated KeyCharacterMap.BUILT_IN_KEYBOARD.

Change-Id: I4313725dd63f2be01c350c005a41c7fde9bc67e8
2010-11-30 18:50:17 -08:00
Jeff Brown
47e6b1b5ee Support non-orientation aware keyboards and other devices.
Fixed a bug with dpad keys on external keyboards being rotated
according to the display orientation by adding a new input device
configuration property called "keyboard.orientationAware".

Added a mechanism for overriding the key layout and key character
map in the input device configuration file using the new
"keyboard.layout" and "keyboard.characterMap" properties.

Also added "trackball.orientationAware", "touch.orientationAware" and
"touch.deviceType" configuration properties.

Rewrote the configuration property reading code in native code
so that it can be used by EventHub and other components.

Added basic support for installable idc, kl, and kcm files
in /data/system/devices.  However, there is no provision for
copying files there yet.

Disabled long-press character pickers on full keyboards so that
key repeating works as expected.

Change-Id: I1bd9f0c3d344421db444e7d271eb09bc8bab4791
2010-11-30 17:15:49 -08:00
Kenny Root
33b2264ea9 Move disk usage utilities to its own library
Disk usage calculation will happen in more places now, so move the
installd calculation utilities out to its own library that only gets
built for the target.

Change-Id: Idceb6bd663ca6ab3d38fa00e57ee74a25b784855
2010-11-30 16:51:13 -08:00
Romain Guy
6f72bebe92 Update 9patch structure when rendering with different divs/colors.
Bug #3221488

Change-Id: Ifc9e42a991d630feadc9e8032322f37504d09d6d
2010-11-30 12:06:39 -08:00
Vasu Nori
b37f8a8af1 fix messages from sqlite layer in c++ code to be useful.
Change-Id: Ib13f86f3481aae391f5e887bb14877f12bf48034
2010-11-29 11:53:55 -08:00
Iain Merrick
ac19268a36 Fix 'BCCscript' build break.
frameworks/compile/libbcc/include/bcc/bcc.h was updated
in change I3f3d31fc. What used to be "struct BCCscript"
is now "class bcc::BCCscript" for C++ code.

Looks like the framework/base header rsScriptC.h is just
trying to forward-declare the same type, so we just need
to make the same change there.

Change-Id: I6f6f9dd7608af01d519c2e26fd9b5e6649f71902
2010-11-29 15:36:26 +00:00
Jason Sams
d1479e7d45 Merge "Fix physics bug causing balls to stack." 2010-11-24 12:13:40 -08:00
Jason Sams
c8abdeda28 Fix physics bug causing balls to stack.
Change-Id: I681905cf7499bb92db47ba2a4cca10d0834cf425
2010-11-24 12:12:26 -08:00
Chet Haase
aa0c8ab00b Merge "Fix hang in native bitmap recycling due to nested mutex locks" 2010-11-23 16:01:49 -08:00
Jeff Brown
42e514b0d1 Merge "Port Emulator keymaps." 2010-11-23 15:51:27 -08:00