77108 Commits

Author SHA1 Message Date
Svetoslav Ganov
f76a83cfcf Fixing some minor issues in accessibility focus.
1. Now accessibility focus does not drag input focus and
   vice versa. Having the two focuses chase each other
   can lead to some pathological cases. For example, a
   container is input focusable and manages input focus
   for its children i.e. as soon as it gets input focus
   it sets input focus to a child. Now assume input and
   accessibility focus are on a child and focus search
   finds the parent to take accessibility focus, now
   putting accessibility focus to the parent will put
   input focus there and the parent will put input focus
   to the child which as a result will put accessibility
   focus there, thus resulting in traversal loop.

bug:6522900

2. Fixed asymmetrical behavior of accessibility focus search
   for AbsListView.

bug:6520016

3. Fixed accessibility focus search getting stuck in an
   empty AbsListView.

bug:6520049

Change-Id: Ia26e5be7b5a9f340f873861ff466c787467b98dc
2012-05-21 15:32:28 -07:00
Dianne Hackborn
af5c01185b Merge "Fix issue #6447773: Pulse does not run in JB (NPE in GestureDetector.onTouchEvent)" into jb-dev 2012-05-21 15:25:48 -07:00
Dianne Hackborn
7a83b93e12 Fix issue #6447773: Pulse does not run in JB (NPE in GestureDetector.onTouchEvent)
Change-Id: I20b6d58fa47851cf401bbeb16960d118bbd1d965
2012-05-21 15:24:11 -07:00
Svetoslav Ganov
de83e7aa32 Merge "Make TextView respect ACCESSIBILITY_SPEAK_PASSWORD preference." into jb-dev 2012-05-21 15:08:53 -07:00
Romain Guy
d4cc925358 Merge "Remove DEBUG_LATENCY flag" into jb-dev 2012-05-21 15:01:09 -07:00
Winson Chung
1a111852e3 Merge "Updating default wallpaper for non-xlarge devices. (Bug 6460469)" into jb-dev 2012-05-21 14:44:15 -07:00
alanv
7d62419c85 Make TextView respect ACCESSIBILITY_SPEAK_PASSWORD preference.
Bug: 6523447
Change-Id: I2610b558395dc53a74b5c8c36c09673898da44f2
2012-05-21 14:23:17 -07:00
Michael Kolb
ab68bbaf26 Merge "add flag to websearch intent" into jb-dev 2012-05-21 14:14:34 -07:00
Kazuhiro Ondo
8f669f49fa Improve sim ready event handling for CdmaLte.
bug: 6463933
Change-Id: I751f760badb87c1fe4b78fd68921257cec4a4b9d
2012-05-21 14:09:17 -07:00
Svetoslav Ganov
e15ccb93ad Changing the interaction model of the touch explorer.
1. Now the user have to double tap to activate the last
   item. If the last touched window is not active because
   it does not take input focus the click on the last
   touch explored location. Othewise the click is on the
   accessibility focus location.

bug:5932640

Change-Id: Ibb7b97262a7c5f2f94abef429e02790fdc91a8dd
2012-05-21 14:08:57 -07:00
Winson Chung
171a994bcd Updating default wallpaper for non-xlarge devices. (Bug 6460469)
Change-Id: If73c0ec2e77a94db2dfc3343fc0c65577f976a91
2012-05-21 14:06:39 -07:00
Jim Miller
998bb76529 Fix6398209: reveal search when home button is long-pressed
This change add a feature to reveal the swipe to search interface
when the home key is pressed for longer than 50ms.  It progressively
reveals the interface.  It still requires a bit of tuning, but all
the basic parameters are in this CL.

Change-Id: I1d3a5bb7b912265eb41da68bc9313eee1af2e415
2012-05-21 13:55:44 -07:00
Romain Guy
e2d7f182ff Remove DEBUG_LATENCY flag
This flag was replaced with the more versatile and powerful systrace.

Change-Id: I2267698f86fe9ba9e1102856795ca641001fecd5
2012-05-21 13:55:15 -07:00
Daniel Sandler
9f7936a30b Fix three-line notifications.
To accommodate three lines as before, we now adjust the size
of text and icons to fit.

Also in this change:

 - snazzy little shadow below BigPicture's 1U block
 - restore contentText to BigPicture notifications
 - make overflow match other notification text (not so big)
 - fix text position jumps between 1U and expanded
   notifications across all templates

Bug: 6519374 (three-line notifications cut off)
Bug: 6494982 (text jumps)
Change-Id: I717ec2dde805c25e3b949641ca7e69e4d8fc86d2
2012-05-21 16:45:11 -04:00
Romain Guy
46a8b1acdb Merge "Remove unused, obsolete debug code" into jb-dev 2012-05-21 13:40:41 -07:00
Daniel Sandler
2926948d20 Merge "Add RemoteViews.setViewPadding()." into jb-dev 2012-05-21 13:37:16 -07:00
Romain Guy
13b907353f Remove unused, obsolete debug code
All these features have either been abandonned and left un-maintained
for years or can be replaced by systrace.

Change-Id: I42e4579a8078744047e5fe08a7a15254970b09bc
2012-05-21 13:29:06 -07:00
Daniel Sandler
99d1f74864 Add RemoteViews.setViewPadding().
Bug: 6519374
Change-Id: I29ad738d741153a9d9e74c9e2ac110a8b97f046b
2012-05-21 16:15:06 -04:00
Raphael Moll
9c06ac09c3 Merge "Merge "AAPT: support a new --ignore-assets flag."" into jb-dev 2012-05-21 13:09:29 -07:00
Jeff Brown
ee3bb6498a Merge "Disable debug logs." into jb-dev 2012-05-21 13:08:17 -07:00
Daniel Sandler
90497c18f7 Merge "Remotable view method for TextView.setTextSize(int, float)." into jb-dev 2012-05-21 12:12:13 -07:00
Daniel Sandler
7264f71399 Remotable view method for TextView.setTextSize(int, float).
The only remotable method on TextView is setTextSize(float)
which assumes "sp" dimensions, making it tricky to get exact
text sizes.

Bug: 6519374
Change-Id: I961bbdd607ca6786c0630ff1ce19186f54f6f31f
2012-05-21 14:51:51 -04:00
Philip Milne
bfa3d50b49 Merge "Doc changes for GridLayout." into jb-dev 2012-05-21 11:33:21 -07:00
Jean-Michel Trivi
3c2711fc28 Type of search on headset key long press must depend on device state
When the user long presses on the headset key, the type of search
 that will launched must depend on the state of the device. The
 following logic is implemented:
 - screen on and device unlocked: action is ACTION_WEB_SEARCH,
 - device locked or screen off: action is ACTION_VOICE_SEARCH_HANDS_FREE
    with EXTRA_SECURE set to true if the device is securely locked.

Bug 6518222

Change-Id: I318770346b8d83e44dfcd4154bcdb517ea7098b5
2012-05-21 10:59:44 -07:00
Jeff Brown
1b9ba578f1 Disable debug logs.
Change-Id: Icc7d389789885185f2ca9b609bad6096fe290106
2012-05-21 10:54:18 -07:00
Romain Guy
d7e4ae48c5 Merge "Update AsyncTask documentation" into jb-dev 2012-05-21 10:47:10 -07:00
Philip Milne
b65408fc0f Doc changes for GridLayout.
Add some javadoc to explain orientation property properly.

Change-Id: I1e2092f32fe2f524eda7d1c46c6daad571733c1f
2012-05-21 10:46:56 -07:00
Romain Guy
2c1b8c744d Update AsyncTask documentation
Change-Id: I678506309f027bb12d0c3f42436a60611aca5d8c
2012-05-21 10:43:26 -07:00
John Wang
45131d0c3b Merge "Only reset time from NITZ in zone fix." into jb-dev 2012-05-21 10:33:08 -07:00
John Wang
dabf4e4149 Merge "Change "uk" to "gb" in COUNTRY_CODES." into jb-dev 2012-05-21 10:32:51 -07:00
Michael Kolb
3fe0bca0c3 add flag to websearch intent
Bug: 6372537

Change-Id: Ia3f8577ffdde2df5234016dd8d9ca83265b53e5e
2012-05-21 09:40:17 -07:00
Chris Wren
29bb6d925b Support more items in the Notification.InboxStyle, plus an overflow.
Bug: 6500113
Change-Id: I9f6b45ef0821c45000afa8a23ee51033b51df298
2012-05-21 07:56:58 -07:00
satok
d7ba814370 Merge "Fix the issue on the inconsistent condition of InputMethodSubtype" into jb-dev 2012-05-21 02:53:41 -07:00
satok
d81e950265 Fix the issue on the inconsistent condition of InputMethodSubtype
Bug: 6510104
Change-Id: I67790e5f59d0d05340b74eca1029c60f381061b8
2012-05-21 18:30:14 +09:00
Pannag Sanketi
850c2c36de Merge "Fixing the weird preview size w/ effects on camera" into jb-dev 2012-05-20 21:26:16 -07:00
satok
5d4d23ebdf Merge "Consolidate the initialization of InputMethodManagerService not to use resource values until system ready" into jb-dev 2012-05-20 19:59:50 -07:00
Danielle Millett
cafd387d7a Moved setting the flag to suppress face unlock during a phone call
Moved the check to suppress face unlock if a call is in progress from
onScreenTurnedOff() to initializeBiometricUnlockView().  onScreenTurnedOff()
is only called if the screen was turned off while on lockscreen and we
actually want to be doing this every time the screen is turned off.  Put a
check around it to only do it when the screen is off, so that for orientation
changes, or on first boot it doesn't override the current flag value.

This fixes the following 2 bugs:

Bug 6460309: When making a phone call, after the user hangs up and it goes
to lockscreen we don't want face unlock to show.  In the case where a
user makes an outgoing call and the phone goes to sleep by itself during
the phone call, when the call is ended face unlock was popping up because
it never went through onScreenTurnedOff().

There is a flag to make sure face unlock doesn't come up
immediately after booting the phone, which is done by not showing
face unlock the first time lockscreen is constructed.  But there are
a few cases where lockscreen doesn't come up immediately after boot: 1. When
the device is factory reset, it goes through the wizard instead of
lockscreen.  2. In userdebug if the lock type is set to none.
In both of these cases, if face unlock is set up, it doesn't show up on
the first time.  Setting the phone flag in initializeBiometricUnlockView
overrides the initial setting, which is what we want because if the screen
has turned off, it isn't the initial lockscreen after boot.

Change-Id: Iacafc515f2b594e12c853308c40cd48f3fb83e63
2012-05-20 20:30:31 -04:00
Jeff Brown
cf39bdf3df Add support for switching between multiple keyboard layouts.
Also show a notification when an external keyboard is connected
and does not have a keyboard layout selected yet.

Bug: 6405203
Change-Id: Id0ac6d83b3b381f8a236b2244a04c9acb203db3c
2012-05-20 14:56:22 -07:00
Jeff Brown
51f2430217 Support toast cancellation.
Change-Id: Idd00b9c6e3049822e437afaf56351575a5c167df
2012-05-20 12:09:37 -07:00
Raphael Moll
6c255a3a37 Merge "AAPT: support a new --ignore-assets flag."
AAPT has a fixed built-in list of files and directories
to ignore when parsing resource files. Over the years we
always had developers requiring specific patterns.

Added a command-line option for it:
  aapt di --ignore-assets "foo*:*.blah"

If the env var ANDROID_AAPT_IGNORE is set, it is parsed
to find which file/directory patterns to ignore.

Otherwise a default is used that matches the current behavior.

SDK Bug: 5343 24067

(cherry-pick from AOSP 90897ed87bce639bf6bb2ccf15fbabb59b131bab)

Change-Id: Ia4caa2a8188c8c1df143f884e459b8182645995f
2012-05-18 20:34:44 -07:00
Dianne Hackborn
13a0271cb8 Merge "Add aapt support for generating proguard rules for onClick methods." into jb-dev 2012-05-18 19:39:09 -07:00
Dianne Hackborn
9275197d35 Add aapt support for generating proguard rules for onClick methods.
Also fix Activity menu inflater when using the dark on light
theme wrapper to still be able to find onClick listeners.

Change-Id: Ie206db26d1df96041bc477804e476b02ad99dc9d
2012-05-18 19:23:19 -07:00
Dianne Hackborn
35013d0e8b Merge "DO NOT MERGE: Remove a few left-over layout direction things." into jb-dev 2012-05-18 18:04:11 -07:00
alanv
9c3e0e6826 Fix accessibility actions in AbsListView.
Check adapter for position enabled state, check selection index.

Bug: 6508142
Change-Id: If25a133533a7316ef7eba8761522bd2ee4f6338d
2012-05-18 17:43:35 -07:00
John Wang
df7bbfd7c2 Only reset time from NITZ in zone fix.
When timezone property gets reset by mcc change, SST only adjusts time to
reflect new timezone settings if there is NITZ string w/o timezone.

bug:6465783
Change-Id: I1a27b3f371f79aa532de1c94ec5cb12285bdfdb4
2012-05-18 17:36:31 -07:00
Romain Guy
52fcdd0139 Merge "Fix documentation" into jb-dev 2012-05-18 17:34:42 -07:00
Dianne Hackborn
39af624f31 DO NOT MERGE: Remove a few left-over layout direction things.
Change-Id: Id66b171594af939df4716aa0e0baa25fe47eecee
2012-05-18 17:34:06 -07:00
Adam Powell
52bfe0ff51 Merge "Sentence case is the best case. Just Once is not a special case." into jb-dev 2012-05-18 17:32:52 -07:00
Craig Mautner
255632d160 Merge "Prevent dim surface from flashing." into jb-dev 2012-05-18 17:32:48 -07:00
Romain Guy
d2aed40a37 Fix documentation
Change-Id: Id3a5d3b6b43ce684c2328f046e4991e64e97575a
2012-05-18 17:32:08 -07:00