269 Commits

Author SHA1 Message Date
Jim Miller
4e659135fd Fix 3148496: Update LockScreen clock to use new font.
Change-Id: I8a4133f633bd3927de75010099e29ad847f3f671
2010-12-17 17:53:02 -08:00
Jaikumar Ganesh
7a863b4bda Add PLAY and PAUSE keycodes and remove PLAY_PAUSE keycode.
Change-Id: I0b17bea189c90fcacff42e182e9e47ef179c28ca
2010-12-16 16:24:15 -08:00
Justin Ho
df36b55681 Merge "Integrating updated alert sounds, and new audio manifest for trygon" 2010-12-08 14:55:00 -08:00
Justin Ho
80e826e544 Integrating updated alert sounds, and new audio manifest for trygon
Change-Id: If7a77e33aad0785946cfe200698f9e05de774a9b
2010-12-08 12:30:42 -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
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
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
Justin Ho
b6ac282eae Adding new ringtones and notifications
Change-Id: I2f59c1e5ef723e370165fc35c40a31df0ab0ee9f
2010-11-30 10:58:56 -08:00
Jeff Brown
d49c347921 Tweak key layouts.
Change-Id: I19777ec4e5d0a5485cfe2a44a15e2b0680557d08
2010-11-25 15:02:36 -08:00
Jeff Brown
42e514b0d1 Merge "Port Emulator keymaps." 2010-11-23 15:51:27 -08:00
Jeff Brown
061cf75884 Port Emulator keymaps.
Also added a validation tool for keymaps (not currently integrated
into the build system but getting there).

This change brings back Android.mk with the intent that it will
be used to validate keymaps in a later change.

Added some missing keys that are present on phones.

Bug: 3215210
Bug: 3225421
Change-Id: Id817c6e2215164616942c51a42752915d9ceacd3
2010-11-23 15:26:48 -08:00
Justin Ho
aff153d5a3 Adding new gingerbread notifications and ringtones to master
Change-Id: I5489606fa98dc78c0b864b95a98def41ce6d1f67
2010-11-22 09:33:21 -08:00
Justin Ho
5e5c2a199a am 80381ab4: Merge "DO NOT MERGE - Updated ringtones for Crespo, fixing looping problem" into gingerbread
* commit '80381ab4ed44bd69c3e3464a848ca15851365b03':
  DO NOT MERGE - Updated ringtones for Crespo, fixing looping problem
2010-11-18 15:06:51 -08:00
Justin Ho
9b14d1d52a DO NOT MERGE - Updated ringtones for Crespo, fixing looping problem
Change-Id: Id5947197bdb6599bb7a3a15ab1e1a9541a4d31b2
2010-11-18 15:02:18 -08:00
Jeff Brown
6b53e8daa6 Added support for full PC-style keyboards.
BREAKING CHANGE: Redesigned the key character map format to
accomodate full keyboards with more comprehensive suite of modifiers.
Old key character maps will not work anymore and must be updated.
The new format is plain text only and it not compiled to a binary
file (so the "kcm" tool will be removed in a subsequent check-in).

Added FULL keyboard type to support full PC-style keyboards.

Added SPECIAL_FUNCTION keyboard type to support special function
keypads that do not have any printable keys suitable for typing
and only have keys like HOME and POWER

Added a special VIRTUAL_KEYBOARD device id convention that maps
to a virtual keyboard with a fixed known layout.  This is designed
to work around issues injecting input events on devices whose
built-in keyboard does not have a useful key character map (ie.
when the built-in keyboard is a special function keyboard only.)

Modified several places where events were being synthesized
to use the virtual keyboard.

Removed support for the "qwerty" default layout.
The new default layout is "Generic".  For the most part "qwerty"
was being used as a backstop in case the built-in keyboard did
not have a key character map (probably because it was a special
function keypad) and the framework needed to be able to inject
key events anyways.  The latter issue is resolved by using the
special VIRTUAL_KEYBOARD device instead of BUILT_IN_KEYBOARD.

Added the concept of a key modifier behavior so that
MetaKeyKeyListener can distinguish between keyboards that use
chorded vs. toggled modifiers.

Wrote more robust key layout and key character map parsers
to enable support for new keyboard features and user installable
key maps.

Fixed a bug in InputReader generating key ups when keys
are released out of sequence.

Updated tons of documentation.

Currently QwertyKeyListener is being used for full keyboards
with autotext and capitalization disabled.  This mostly works
but causes some problems with character pickers, etc.
These issues will be resolved in subsequent changes.

Change-Id: Ica48f6097a551141c215bc0d2c6f7b3fb634d354
2010-11-18 09:49:03 -08:00
Justin Ho
b9d3e35907 am 868889fb: Merge "DO NOT MERGE - Updated ringtones from pdx (v3) - Quickly fixing distortion at highest volume setting by adjusting gain. Proper fix should be via media stack/hardware." into gingerbread
* commit '868889fb4175979ef9aa505fc746bf616f54ed10':
  DO NOT MERGE - Updated ringtones from pdx (v3) - Quickly fixing distortion at highest volume setting by adjusting gain. Proper fix should be via media stack/hardware.
2010-11-15 09:13:16 -08:00
Justin Ho
868889fb41 Merge "DO NOT MERGE - Updated ringtones from pdx (v3) - Quickly fixing distortion at highest volume setting by adjusting gain. Proper fix should be via media stack/hardware." into gingerbread 2010-11-15 09:10:33 -08:00
Justin Ho
ee6aa806d8 DO NOT MERGE - Updated ringtones from pdx (v3) - Quickly fixing distortion at highest volume setting by adjusting gain. Proper fix should be via media stack/hardware.
Change-Id: I6220c0b9f85b20c690437a23c364ad4898b8e16a
2010-11-15 09:07:34 -08:00
Justin Ho
dc04f53703 am a5c4aeba: Merge "DO NOT MERGE - Revised ringtones from Ali Spagnola (revision 2)" into gingerbread
* commit 'a5c4aeba1cb53775bdb5622569ffe53641f4728d':
  DO NOT MERGE - Revised ringtones from Ali Spagnola (revision 2)
2010-11-15 08:53:56 -08:00
Justin Ho
1b35a52263 DO NOT MERGE - Revised ringtones from Ali Spagnola (revision 2)
Change-Id: I5c7fc73f28408e6345bb9a73f0fe10014a26efbf
2010-11-15 08:41:16 -08:00
Jeff Brown
b0418da0e7 Add plumbing for volume mute key.
Full support for the volume mute key will be implemented in a
later change.

Bug: 2912307
Change-Id: I98c27d6360f159c8b7447e04b45f442eff87b38a
2010-11-02 17:31:39 -07:00
Mike Lockwood
3f425a6be4 Add new WRITE_MEDIA_STORAGE permission to control write access to /data/media
BUG: 3113970

Change-Id: Idb56be76729dc560dee5f680225cf4050f2751d2
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-10-29 19:16:45 -04:00
Justin Ho
f3b87c2ebd am 9112b8eb: DO NOT MERGE - Ringtone bugfixes (round 1)
* commit '9112b8ebd22ce5c83081066bea8a424eda8bda9d':
  DO NOT MERGE - Ringtone bugfixes (round 1)
2010-10-28 10:30:10 -07:00
Justin Ho
9112b8ebd2 DO NOT MERGE - Ringtone bugfixes (round 1)
Change-Id: Idb72659b9cb00ec141b1229f42951e0a6e0b9a9a
2010-10-28 10:23:33 -07:00
Justin Ho
1f61ad1728 am 3810c08b: Merge "DO NOT MERGE - Fixing ringtones that were put in as notifications" into gingerbread 2010-10-26 16:08:13 -07:00
Justin Ho
95ce5b20c8 DO NOT MERGE - Fixing ringtones that were put in as notifications
Change-Id: I09a8a0f369604a6332b921b9e944a800ec4d6677
2010-10-26 15:34:07 -07:00
Justin Ho
cc8de576cd am 5a147d08: Merge "DO NOT MERGE - Fixing capitalized ringtone metadata only" into gingerbread 2010-10-26 09:11:12 -07:00
Justin Ho
34952c0121 DO NOT MERGE - Fixing capitalized ringtone metadata only
Change-Id: Ib16ca195356b6cbb3d3926f6d5a3de366eaa980e
2010-10-26 09:05:06 -07:00
Justin Ho
41d21efd61 am 044df235: Merge "DO NOT MERGE - Updated ringtone assets for crespo" into gingerbread
Merge commit '044df235c86ac69bb0e56cb4387e111ec276276e' into gingerbread-plus-aosp

* commit '044df235c86ac69bb0e56cb4387e111ec276276e':
  DO NOT MERGE - Updated ringtone assets for crespo
2010-10-25 16:50:34 -07:00
Justin Ho
6a83d37769 DO NOT MERGE - Updated ringtone assets for crespo
Change-Id: Ie5c6b0bfa282f976129f5e87a09512da01e6851b
2010-10-25 16:38:41 -07:00
Jean-Baptiste Queru
045002e0fc am c6d813b0: Merge "Introduce a list of all the audio files" into gingerbread-plus-aosp
Merge commit 'c6d813b0c5c21ab4e8ff920d181c5a29b7bb9f22'

* commit 'c6d813b0c5c21ab4e8ff920d181c5a29b7bb9f22':
  Introduce a list of all the audio files
2010-10-24 05:29:10 -07:00
Jean-Baptiste Queru
38655c0088 Introduce a list of all the audio files
Change-Id: Id52870e4d491bf074d5aa6f77d749397710ff316
2010-10-22 18:56:52 -07:00
Jeff Brown
497a92cc5b Add keycodes and meta-key modifiers to support external keyboards.
Added new key maps for external keyboards.  These maps are intended to
be shared across devices by inheriting the "keyboards.mk" product
makefile as part of the device's product definition.

One of the trickier changes here was to unwind some code in
MetaKeyKeyListener that assumed that only the low 8 bits of the meta key
state were actually used.  The new code abandons bitshifts in favor
of simple conditionals that are probably easier to read anyways.
The special meta key state constants used by MetaKeyKeyListener
are now (@hide) defined in KeyEvent now so as to make it clearer that they
share the same code space even if those codes are not valid for KeyEvents.

The EventHub now takes care of detecting the appropriate key layout
map and key character map when the device is added and sets system
properties accordingly.  This avoids having duplicate code in
KeyCharacterMap to probe for the appropriate key character map
although the current probing mechanism has been preserved for legacy
reasons just in case.

Added support for tracking caps lock, num lock and scroll lock and
turning their corresponding LEDs on and off as needed.

The key character map format will need to be updated to correctly support
PC style external keyboard semantics related to modifier keys.
That will come in a later change so caps lock doesn't actually do
anything right now except turn the shiny LEDs on and off...

Added a list of symbolic key names to KeyEvent and improved the toString()
output for debug diagnosis.  Having this list in a central place in the
framework also allows us to remove it from Monkey so there is one less
thing to maintain when we add new keycodes.

Bug: 2912307
Change-Id: If8c25e8d50a7c29bbf5d663c94284f5f86de5da4
2010-10-15 16:00:07 -07:00
Dan Morrill
2b0fa71c1a am c6581a10: am 4e9751f0: Merge "Adding a feature to indicate that the device possesses low-latency audio. The specific criteria for low-latency audio are defined in the CDD, but since that hasn\'t yet been settled for Gingerbread, this change doesn\'t go into details
Merge commit 'c6581a1046b062d0e06e50e9b09e6c12a8e54efc'

* commit 'c6581a1046b062d0e06e50e9b09e6c12a8e54efc':
  Adding a feature to indicate that the device possesses low-latency audio.
2010-09-27 11:45:51 -07:00
Dan Morrill
898e1e8860 Adding a feature to indicate that the device possesses low-latency audio.
The specific criteria for low-latency audio are defined in the CDD, but since
that hasn't yet been settled for Gingerbread, this change doesn't go into
details. We can do a docs change later once GB CDD is final.

Change-Id: Ic5ad9d04e8ecd78c81b6f09439affec6bf8cb9b2
2010-09-26 17:28:30 -07:00
Steve Block
fe06c42b61 Merge "Remove superfluous Ahem.tff" 2010-09-24 03:32:14 -07:00
satok
407b82a8e0 am abdbb5c1: am 933fc94c: Merge "Use MOTOYA font for Japanese font" into gingerbread
Merge commit 'abdbb5c1e5144e11d72367f79816caaa1dc63f8d'

* commit 'abdbb5c1e5144e11d72367f79816caaa1dc63f8d':
  Use MOTOYA font for Japanese font
2010-09-24 01:41:50 -07:00
Steve Block
a2f5fad891 Remove superfluous Ahem.tff
This was added in https://mondrian.corp.google.com/changelist/13754-p9
and comes from the WebKit LayoutTests. It's no longer used anywhere so
is being removed. It will be added in external/webkit/LayoutTests when
it is required for the triaged LayoutTests.

Bug: 3009858
Change-Id: I4b00b3f435fee9f8018052f4f8a5f3f67795437f
2010-09-23 19:05:36 +01:00
satok
9283f3cd6c Use MOTOYA font for Japanese font
Change-Id: I22c8cdf7f23f09c0cd7d3ffffaeed2a8eeb1fb54
2010-09-22 13:50:27 +09:00
Shin-ichiro Fukuda
dd62a056b8 DO NOT MERGE. MOTOYA Japanese fonts
These fonts were contributed by MOTOYA.
Cherry pick from Change-Id: I97879b4e163f6b547305da732c8604d1ac759df4

Change-Id: I97879b4e163f6b547305da732c8604d1ac759df4
2010-09-22 11:21:00 +09:00
Dan Morrill
5744bb4aa5 Adding new feature definitions for new sensors (barometer and gyroscope.)
Change-Id: Ic3a35c7b277921eaa5b05e3285b6aed5ed75bea6
2010-09-21 15:27:07 -07:00
Jean-Baptiste Queru
2a55db742e am 925f94b7: am 7869f08c: Merge "MOTOYA Japanese fonts"
Merge commit '925f94b788f5856025aa8218ee2e705c14f58281'

* commit '925f94b788f5856025aa8218ee2e705c14f58281':
  MOTOYA Japanese fonts
2010-09-21 10:45:09 -07:00
Jean-Baptiste Queru
925f94b788 am 7869f08c: Merge "MOTOYA Japanese fonts"
Merge commit '7869f08c55d774b0006c2260e87747ff5e0746f2' into gingerbread-plus-aosp

* commit '7869f08c55d774b0006c2260e87747ff5e0746f2':
  MOTOYA Japanese fonts
2010-09-21 10:21:37 -07:00
Shin-ichiro Fukuda
4234d40eae MOTOYA Japanese fonts
These fonts were contributed by MOTOYA.

Change-Id: I97879b4e163f6b547305da732c8604d1ac759df4
2010-09-17 15:45:23 +09:00
Jean-Baptiste Queru
3f6e7f4f71 Manage fonts like a true product definition
Change-Id: Ifc89c2fe9f4c2bb802dca34e9d53ae7176ff697c
2010-09-14 14:41:17 -07:00
Jean-Baptiste Queru
213fc950d4 Revert "Manage fonts like a true product definition"
This reverts commit 84d36a657d7954dc08f3ef9f057ff2526036e817.
2010-09-14 14:07:41 -07:00
Jean-Baptiste Queru
84d36a657d Manage fonts like a true product definition
Change-Id: I9635f087d69dd302e3c313073a537a8ed283bb68
2010-09-14 11:34:55 -07:00
Dianne Hackborn
6c82f673f6 am fd3f44b3: am e1aa82a4: Merge "Adding a feature denoting support for 5 or more fully independent multitouch pointers." into gingerbread
Merge commit 'fd3f44b38882c74c10aff0e238ee4ad9fcd8b724'

* commit 'fd3f44b38882c74c10aff0e238ee4ad9fcd8b724':
  Adding a feature denoting support for 5 or more fully
2010-09-03 15:14:57 -07:00
Dan Morrill
6993d3d136 Adding a feature denoting support for 5 or more fully
independent multitouch pointers.

Change-Id: I9997ed9c481dbd507e9eff70d8beb9e1140cca3f
2010-09-03 14:41:36 -07:00
Dan Morrill
1675062342 Adding features for new hardware, and creating a baseline list of required
hardware for the Tablet profile. This is very much subject to change.

Change-Id: Id0921b373cf610a7ec9ddd75dc020bf8b22a6911
2010-09-02 15:00:19 -07:00