4765 Commits

Author SHA1 Message Date
Daniel Sandler
3dfc82b567 Merge "Expand too-small notifications to fill 64dp." 2012-04-19 07:01:37 -07:00
Daniel Sandler
bc5559f192 Expand too-small notifications to fill 64dp.
Also fix NotificationTestList so it runs again.

Change-Id: I2fb28cd9cfad25a7a1b17ccef9ccd741c3aa99b0
2012-04-19 01:08:15 -04:00
Svetoslav Ganov
f01d3dd710 Merge "Adding some more gestures and actions for accessibility." 2012-04-18 14:14:37 -07:00
Svetoslav Ganov
005b83b0c6 Adding some more gestures and actions for accessibility.
1. Added more gesture for accessibility. After a meeting
   with the access-eng team we have decided that the current
   set of gestures may be smaller than needed considering
   that we will use four gestures for home, back, recents,
   and notifications.

2. Adding actions for going back, home, opening the recents,
   and opening the notifications.

3. Added preliminary mapping from some of the new gestures
   to the new actions.

4. Fixed a bug in the accessibility interaction controller
   which was trying to create a handled on the main looper
   thread which may be null if the queried UI is in the
   system process. Now the context looper of the root view
   is used.

5. Fixed a bug of using an incorrect constant.

6. Added a missing locking in a couple of places.

7. Fixed view comparison for accessibilityt since it was
   not anisymmetric.

bug:5932640
bug:5605641

Change-Id: Icc983bf4eafefa42b65920b3782ed8a25518e94f
2012-04-18 13:43:55 -07:00
Eric Fischer
57670d8cea Import translations. DO NOT MERGE
Change-Id: I1ab82f7e1aef8171cb57c880fb942930d37dac00
2012-04-18 13:27:02 -07:00
Chris Wren
26fbf27ad1 fixing the build break in notification_template_big_text.xml
Change-Id: Ibeef587e27d1f97dae2b6184be5e7b2548768f5e
2012-04-18 11:50:56 -04:00
Daniel Sandler
6a858c347f Gestures for expanding notifications.
Change-Id: I104c157ffcc2d60b3f0a95c59d4322b07103b69f
2012-04-18 11:21:19 -04:00
Daniel Sandler
b9a6d4d052 Merge "New InboxStyle template for expanded notifications." 2012-04-18 05:28:00 -07:00
Daniel Sandler
879c5e07c0 New InboxStyle template for expanded notifications.
Bug: 6336834
Change-Id: I67b273350b984673cbfb19267451a3782d0477fc
2012-04-17 23:41:58 -04:00
Dianne Hackborn
70eafab905 Merge "Change dock animations to not use alpha, to make Mathias happy." 2012-04-17 11:15:27 -07:00
Chris Wren
3a59d6e26d A layout that switches between its children based on the requested layout height.
Change-Id: I5a4e5892fbed7cab2470e458a38accbbcb05ae51
2012-04-17 09:06:21 -07:00
satok
fbf7e1f343 Merge "Get rid of "isSentenceLevelSpellCheckSupported"" 2012-04-16 22:07:45 -07:00
Dianne Hackborn
8eedb8bf60 Change dock animations to not use alpha, to make Mathias happy.
Also tweak the action bar animations to slide up/down like the
dock animations.

Change-Id: Id3c85ba76100639a6f6c77b7fd2a060c9d26f38c
2012-04-16 19:31:58 -07:00
Eric Fischer
d07db78318 Import translations. DO NOT MERGE
Change-Id: I20ad5f365128dac908e1f5a7ced40af98be4dba5
2012-04-16 13:28:08 -07:00
satok
c7ee1b9369 Get rid of "isSentenceLevelSpellCheckSupported"
Bug: 6320351
Change-Id: I0e931b7248f8c65268b60af599c07432d58d2f1f
2012-04-16 20:02:37 +09:00
Svetoslav Ganov
4213804541 Accessibility focus - framework
Usefulness: Keep track of the current user location in the screen when
            traversing the it. Enabling structural and directional
            navigation over all elements on the screen. This enables
            blind users that know the application layout to efficiently
            locate desired elements as opposed to try touch exploring the
            region where the the element should be - very tedious.

Rationale: There are two ways to implement accessibility focus One is
           to let accessibility services keep track of it since they
           have access to the screen content, and another to let the view
           hierarchy keep track of it. While the first approach would
           require almost no work on our part it poses several challenges
           which make it a sub-optimal choice. Having the accessibility focus
           in the accessibility service would require that service to scrape
           the window content every time it changes to sync the view tree
           state and the accessibility focus location. Pretty much the service
           will have to keep an off screen model of the screen content. This
           could be quite challenging to get right and would incur performance
           cost for the multiple IPCs to repeatedly fetch the screen content.
           Further, keeping virtual accessibility focus (i.e. in the service)
           would require sync of the input and accessibility focus. This could
           be challenging to implement right as well. Also, having an unlimited
           number of accessibility services we cannot guarantee that they will
           have a proper implementation, if any, to allow users to perform structural
           navigation of the screen content. Assuming two accessibility
           services implement structural navigation via accessibility focus,
           there is not guarantee that they will behave similarly by default,
           i.e. provide some standard way to navigate the screen content.
           Also feedback from experienced accessibility researchers, specifically
           T.V Raman, provides evidence that having virtual accessibility focus
           creates many issues and it is very hard to get right.
           Therefore, keeping accessibility focus in the system will avoid
           keeping an off-screen model in accessibility services, it will always
           be in sync with the state of the view hierarchy and the input focus.
           Also this will allow having a default behavior for traversing the
           screen via this accessibility focus that is consistent in all
           accessibility services. We provide accessibility services with APIs to
           override this behavior but all of them will perform screen traversal
           in a consistent way by default.

Behavior:  If accessibility is enabled the accessibility focus is the leading one
           and the input follows it. Putting accessibility focus on a view moves
           the input focus there. Clearing the accessibility focus of a view, clears
           the input focus of this view. If accessibility focus is on a view that
           cannot take input focus, then no other view should have input focus.
           In accessibility mode we initially give accessibility focus to the topmost
           view and no view has input focus. This ensures consistent behavior accross
           all apps. Note that accessibility focus can move hierarchically in the
           view tree and having it at the root is better than putting it where the
           input focus would be - at the first input focusable which could be at
           an arbitrary depth in the view tree. By default not all views are reported
           for accessibility, only the important ones. A view may be explicitly labeled
           as important or not for accessibility, or the system determines which one
           is such - default. Important views for accessibility are all views that are
           not dumb layout managers used only to arrange their chidren. Since the same
           content arrangement can be obtained via different combintation of layout
           managers, such managers cannot be used to reliably determine the application
           structure. For example, a user should see a list as a list view with several
           list items and each list item as a text view and a button as opposed to seeing
           all the layout managers used to arrange the list item's content.
           By default only important for accessibility views are regared for accessibility
           purposes. View not regarded for accessibility neither fire accessibility events,
           nor are reported being on the screen. An accessibility service may request the
           system to regard all views. If the target SDK of an accessibility services is
           less than JellyBean, then all views are regarded for accessibility.
           Note that an accessibility service that requires all view to be ragarded for
           accessibility may put accessibility focus on any view. Hence, it may implement
           any navigational paradigm if desired. Especially considering the fact that
           the system is detecting some standard gestures and delegates their processing
           to an accessibility service. The default implementation of an accessibility
           services performs the defualt navigation.

bug:5932640
bug:5605641

Change-Id: Ieac461d480579d706a847b9325720cb254736ebe
2012-04-13 19:05:24 -07:00
Eric Fischer
bc6aa58d43 Merge "Import translations. DO NOT MERGE" 2012-04-13 17:06:32 -07:00
Dianne Hackborn
8b2dd9c870 Merge "Improve lock screen hide animation." 2012-04-13 16:55:00 -07:00
Eric Fischer
5ffc3bd2b6 Import translations. DO NOT MERGE
Change-Id: I6c9944f6c0968d076210839b415dca80722cd80d
2012-04-13 12:46:16 -07:00
Dianne Hackborn
9adeb6b98d Improve lock screen hide animation.
Fade the alpha quicker, to reduce the amount of dimming to
black we see in the middle.  Also start scaled a little
farther back; since in this case the lock screen is fully
opaque, we won't see the early part of the window animation
behind.

Change-Id: I65fcfbf2f27860abf6a1b225a44428d8a20cfb34
2012-04-13 12:24:05 -07:00
Jake Hamby
b4bc99e847 Add user confirmation dialog before sending SMS to short code.
Non-system apps now require user confirmation before sending an SMS
to a short code that may potentially cost the user money. The number
is tested against regex patterns for short codes for the country
matching the user's SIM card or network. The user is warned if the
phone number is potentially or definitely a premium SMS number.

The regex patterns are loaded from core/res/res/xml/sms_short_codes.xml.
If the user's country is not found, then phone numbers of 5 digits or less
(excluding known emergency phone numbers) are considered to be potential
SMS short codes.

Command to run test cases:
$ runtest -c com.android.internal.telephony.SmsUsageMonitorShortCodeTest frameworks-telephony

Bug: 5513975
Change-Id: Ic0b483153390e974c632302f3061300bc2a2274a
2012-04-13 11:50:10 -07:00
Dianne Hackborn
b0398f59aa Merge "Clean up lock screen hide animation." 2012-04-12 15:28:52 -07:00
Dianne Hackborn
0c2acffec8 Clean up lock screen hide animation.
We now have an animation to apply to the thing behind the lock
screen animation when it isn't on the wallpaper, which looks
similar to the animation we use when both are on the wallpaper.

In implementing this, cleaned up the code to figure out up-front
which animation to run, getting rid of that kludgy thing that
cleared the window animation if the wallpaper was not being used
for the lower windows.

Change-Id: Ifc4c8a8894ad384124dcf4bbdaab134f1157b0f3
2012-04-12 15:26:11 -07:00
Svetoslav Ganov
f21bea245a Merge "CheckBox should not populate AccessibilityEvent with text." 2012-04-12 14:16:42 -07:00
Svetoslav Ganov
1728c07bfb CheckBox should not populate AccessibilityEvent with text.
1. Accessibility services are the ones that choose how to
   announces the checked state of a checkable control, so
   CheckBox should not add strings for its state to access
   events.

2. Removed some unused accessibility related strings.

bug:6241115

Change-Id: I572b961191da4b3537fb6cad529d9764d39161ec
2012-04-12 13:59:42 -07:00
Dianne Hackborn
187ae2105e Revert to ICS screen rotation animation.
Change-Id: Ida76f17a00e4c8ab828deae51095107e4eeaa321
2012-04-12 13:08:26 -07:00
Jeff Brown
cdebd54805 Merge "Don't do anything on lid state change by default." 2012-04-11 15:19:41 -07:00
Jeff Brown
2e7760eba0 Don't do anything on lid state change by default.
Because a lid switch can be used to do many things, it's best
if the framework does not do anything by default when the lid is
opened or closed.  The behavior of the lid switch should be
configured on a per-product basis in a config.xml resource overlay.

Bug: 6320088
Change-Id: I9f768dd11d76c3c17c49f46c92f993ee2ff1409f
2012-04-11 15:14:55 -07:00
Eric Fischer
31512821ce Import translations. DO NOT MERGE
Change-Id: I0ccad7d90521504398872d516201309a5198b67f
2012-04-11 12:42:59 -07:00
satok
8d33d39d68 Merge "Show physical keyboard control button on the input method switch dialog" 2012-04-11 00:12:59 -07:00
satok
01038492ff Show physical keyboard control button on the input method switch dialog
Bug: 5240095
Change-Id: Ica768083f95c33dc1e494a28ba7d8b6eb989b0ef
2012-04-11 15:49:35 +09:00
Jeff Brown
9f25b7fdf2 Request key maps from input manager service.
Instead of each application loading the KeyCharacterMap from
the file system, get them from the input manager service as
part of the InputDevice object.

Refactored InputManager to be a proper singleton instead of
having a bunch of static methods.

InputManager now maintains a cache of all InputDevice objects
that it has loaded.  Currently we never invalidate the cache
which can cause InputDevice to return stale motion ranges if
the device is reconfigured.  This will be fixed in a future change.

Added a fake InputDevice with ID -1 to represent the virtual keyboard.

Change-Id: If7a695839ad0972317a5aab89e9d1e42ace28eb7
2012-04-10 18:23:58 -07:00
Eric Fischer
cd1c059bbc Merge "Import translations. DO NOT MERGE" 2012-04-10 14:22:52 -07:00
Jeff Sharkey
40caf8f443 Move to Android-specific NTP pool.
Use "2.android.pool.ntp.org" since it returns both IPv4 and IPv6
addresses.  Verified that NTP client works correctly on both.

Change-Id: I0187ef4a6d3b353cfcc77957b1303ca01c67cbe9
2012-04-10 13:48:10 -07:00
Eric Fischer
7866e84fbc Import translations. DO NOT MERGE
Change-Id: I988480b6b1ff1b745b4126ef89ee57b97513d6e2
2012-04-10 13:29:58 -07:00
Dianne Hackborn
79af6063d5 Merge "Hide the optional permission stuff, not making it in to JB." 2012-04-10 10:31:28 -07:00
Daniel Sandler
c38cf4c7db Merge "New Android Dreams architecture, disabled for now." 2012-04-10 05:33:07 -07:00
Adam Powell
a7dec6d973 Restrictions for action buttons with text
Restrict action buttons with text to 2 lines max. Action buttons with
text will always consume at least 2 cells in split mode because they
look silly in 1.

Note that this affects text provided by menu items, not TextViews
embedded within app-provided action views.

Fixes bug 6236467

Change-Id: I7bcbf80f448b13a895ddc3bc6a7a555c0f0bac7c
2012-04-09 16:37:52 -07:00
Eric Fischer
310ee7cf49 Import translations. DO NOT MERGE
Change-Id: I9299202c20b57a4bbdee61cc1db3cb3d7cefb762
2012-04-09 13:54:59 -07:00
Daniel Sandler
7d276c377c New Android Dreams architecture, disabled for now.
Rather than normal Activities (which have a host of problems
when used for this purpose), screen savers are now a
special kind of Service that can add views to its own
special window (TYPE_DREAM, in the SCREENSAVER layer).

Dreams are now launched by the power manager; whenever it is
about to turn the screen off, it asks the window manager if
it wants to run a screen saver instead. (http://b/5677408)

Also, the new config_enableDreams bool allows the entire
feature to be switched on or off in one place. It is
currently switched off (and the APIs are all @hidden).

Change-Id: Idfe9d430568471d15f4b463cb70586a899a331f7
2012-04-09 15:33:26 -04:00
Daniel Sandler
b9e90a3a8d Merge "Fix alignment of notification action buttons." 2012-04-09 07:28:59 -07:00
Adam Powell
e2427cac77 Merge "Add contentDescription for compact action_mode_close_item" 2012-04-06 16:41:17 -07:00
Adam Powell
7ba5d57ad4 Add contentDescription for compact action_mode_close_item
Fix bug 6219630

Change-Id: I551624466d02f5d31be7030518b0d47b3b7f03b5
2012-04-06 16:39:11 -07:00
Dianne Hackborn
e824120016 Hide the optional permission stuff, not making it in to JB.
Also lock down the rest of the development tools permissions to
be development permissions that must be granted through an
explicit shell command.

Change-Id: I1ba216fffe1aab4bb9f83fcef108efc504f892f4
2012-04-06 13:39:09 -07:00
Eric Fischer
442d572dda Import translations. DO NOT MERGE
Change-Id: I5899fbec882970afd4840aded5ef0eab32b40e54
2012-04-06 13:04:40 -07:00
Daniel Sandler
de6b5152bb Fix alignment of notification action buttons.
Change-Id: Ibfb8f54b6aa59f1c7a56a5e3e8b0c762e48dd496
2012-04-06 10:23:07 -04:00
satok
f6710615c6 Supplement for I772164d9c67e95876c228efcce2
This should be merged with I1519258dd3ce95ad01

Change-Id: I48c5f86ff43f51913eb69d697bb1d75714b67aa3
2012-04-06 13:01:51 +09:00
Jeff Brown
ac14351e16 Move some APIs from window manager to input manager.
Simplified input injection API down to just one call.

Removed all input state reading API.  It was only used by the
window manager policy and required a permission that applications
could not obtain.  READ_INPUT_STATE is now unused and deprecated.

Change-Id: I41278141586ddee9468cae0fb59ff0dced6cbc00
2012-04-05 19:33:11 -07:00
Jim Miller
4350498002 Merge "Fix 6216452: Add search target to lock screen" 2012-04-05 17:31:19 -07:00
Jim Miller
c00fd7ab30 Fix 6216452: Add search target to lock screen
Change-Id: I0784e844fb8e1f904f37d2572c6ddbd6c22e95d1
2012-04-05 17:14:02 -07:00