25386 Commits

Author SHA1 Message Date
Fred Quintana
89e063113c Add a generic account chooser/add account flow for apps.
The activity is launched as follows:
  Account account1 = new Account("account1@gmail.com", "com.google")
  Account account2 = new Account("account2@gmail.com", "com.google")
  ArrayList<Account> accounts = new ArrayList<Account>();
  accounts.add(account1);
  accounts.add(account2);
  String[] accountTypes = new String[]{"com.google", "com.android.exchange"};
  Bundle addAccountOptions = null;
  Intent intent = AccountManager.newChooseAccountIntent(account1, accounts,
    accountTypes, addAccountOptions);
  startActivityForResult(intent, 0);

Change-Id: I05a467bdc3552a2e39397b0182879351f4324389
2011-09-15 16:39:50 -07:00
Dianne Hackborn
4f59f8be0e Fix issue #5300880: setSystemUiVisibility() always triggers a surface reallocation
Change-Id: Ia0a9d8acba6b62ef095e4c615099466c52eec8e4
2011-09-15 15:27:59 -07:00
Adam Powell
1451f1821d Merge "Update docs for RelativeLayout to better explain its interpretation of gravity." 2011-09-15 15:02:55 -07:00
Gilles Debunne
a0383f7212 Merge "Bug 5319091: Completions delayed in AutoComplete in landscape" 2011-09-15 14:51:35 -07:00
Adam Powell
1fec24e0ff Update docs for RelativeLayout to better explain its interpretation of
gravity.

Change-Id: Ie52dc23458c73dfb7fdbf929b802f968ef905557
2011-09-15 14:49:19 -07:00
Brian Colonna
4d7cee1e4b Properly laying out FaceLock on lockscreen
- FaceLock area now specified in layout files instead of trying to
  grab an existing view, which was only practical if pattern was
  backup method

- Now fills area it is supposed to and works with pin as well as
  pattern backup

- Backup method is no longer exposed behind FaceLock just before it
  starts or just after it tells the lockscreen to unlock

- Added synchronized blocks so FaceLock cannot be told to stopUI by
  two different threads at the same time

Change-Id: I3bfad6b44dbe0e3c2ea3c87d2978451c22a7484c
2011-09-15 17:18:56 -04:00
John Reck
57efcffc7f Fix text selection drawing on SW
Bug: 5312770
 Helps if you actually draw stuff...

Change-Id: I5ab8cd0726cac77a91fb476c7db0873132ba91d9
2011-09-15 13:52:38 -07:00
Svetoslav Ganov
98c8b52b0a Merge "TextView should report in an AccessibilityNodeInfo's text its hint if the View text is empty." 2011-09-15 13:11:44 -07:00
Svetoslav Ganov
4c94936511 Merge "CalendarView diregarding XML attributes." 2011-09-15 13:11:08 -07:00
Gilles Debunne
0fd7e087eb Merge "Bug 5299484: Recipient address in to field is doubled when entering in landscape mode" 2011-09-15 12:43:51 -07:00
Danielle Millett
247d8b08b2 Merge "isPasswordEnabled and isPatternEnabled return true if used as backup method" 2011-09-15 12:14:25 -07:00
Tsu Chiang Chuang
e888685bf6 add upload capabilities to data test.
Change-Id: I8465e4b97ff7f48de1150193bcd2b520da1adf00
2011-09-15 12:01:29 -07:00
Svetoslav Ganov
ab5a4057e7 TextView should report in an AccessibilityNodeInfo's text its hint if the View text is empty.
1. TextView was reporting only its text as the text of the emmited AccessibilityNodeInfo
   not using the hint if the text is empty which is inconsistent with the handling of
   accessibility events.

2. TextView was using the contentDescription in AccessibilityEvents if its
   text and hint are empyty. However, the content description is reported as
   a separate event property and it is incorrect to report it as the text.

bug:5129138

Change-Id: I1c9270459cb07650a0ec5181cc4a01993dde3b5c
2011-09-15 11:30:06 -07:00
Svetoslav Ganov
f1189e9a46 CalendarView diregarding XML attributes.
1. CalendarView was disregarding XMl attributes.

2. CalendarView was trying to set the current date
   to today without checking where today is between
   min and max date.

bug:5116456

Change-Id: Ie5a81826a3cd028f42e18a7985461fa283839171
2011-09-15 11:26:08 -07:00
John Reck
5540abcdef DO NOT MERGE Fix finalization
Bug: 5321358
 Destroy does run with this. Ideally we should get rid of the need
 to run this on the UI thread at all. GL destroy should instead
 take place when the view is detached or something like that.

 Cherry picked from master

Change-Id: I693ce83cd607186173d8cf58485c5df28004e52c
2011-09-15 11:08:00 -07:00
Gilles Debunne
d513e9746f Bug 5319091: Completions delayed in AutoComplete in landscape
The filtering is an async process. We need to re-update completion
when it is finished.

Changed loogic to mimic the way it was done in GB.

Change-Id: If49048d786b3b9529da55c7247e7ef5f3d0fc8b5
2011-09-15 11:03:56 -07:00
JP Abgrall
c35f98eeae Merge "NetworkManagement SocketTagger: Migrate QTagUid support to JNI." 2011-09-15 10:47:57 -07:00
John Reck
6f4518f88f Merge "Fix finalization" 2011-09-15 10:42:25 -07:00
John Reck
cda9707167 Fix finalization
Bug: 5321358
 Destroy does run with this. Ideally we should get rid of the need
 to run this on the UI thread at all. GL destroy should instead
 take place when the view is detached or something like that.

Change-Id: I693ce83cd607186173d8cf58485c5df28004e52c
2011-09-15 10:01:37 -07:00
Kenny Root
04b08bdf19 Merge "Be more forgiving in parsing verifier IDs" 2011-09-15 09:33:06 -07:00
JP Abgrall
98a4f7e7e1 NetworkManagement SocketTagger: Migrate QTagUid support to JNI.
* Instead of javaland trying to write commands to
   /proc/net/xt_qtaguid/ctrl
use the libcutils/qtaguid.c support via JNI.
* Get rid of tagToKernel() handled by qtaguid library.

Requires libcutils changes from c/132538/

Change-Id: I9de5b3fa4a596c56835024c6d376769a0eea7db1
2011-09-15 02:29:03 -07:00
Dianne Hackborn
90d92e6098 Final (ha ha) API 14.
Change-Id: I164f9add571f7d825a10036e3b8c9e9eb854d732
2011-09-15 00:28:31 -07:00
Dianne Hackborn
df82905cf3 Merge "Update the public APIs for finding views by text to optionally use content description." 2011-09-14 22:33:54 -07:00
Jeff Sharkey
fc0ab4c065 Merge "Network stats flag to force complete poll." 2011-09-14 21:44:19 -07:00
Jeff Brown
93578af23e Merge "Velocity Tracker II: The Revenge of Velocity Tracker Bug: 5265529" 2011-09-14 21:27:25 -07:00
satok
a0b1cc0fb1 Merge "Call onFinishInputView in onDestroy" 2011-09-14 21:13:06 -07:00
Jeff Sharkey
6f13746633 Merge "Change data usage warning notification wording." 2011-09-14 20:27:55 -07:00
Jeff Sharkey
8ca953da93 Change data usage warning notification wording.
Bug: 5308710
Change-Id: Ic807640a031a3edb03897634e638473d5a039ecc
2011-09-14 19:56:11 -07:00
Jeff Sharkey
991d1b1b3f Network stats flag to force complete poll.
Devices currently delay collecting UID stats during common operations
like global alerts to reduce parsing load.  Here we introduce a flag
to always collect UID and iface stats together to aid debugging.

Bug: 5321340
Change-Id: Ia8e1daf1a6f9d5f5cf1f64a04b6b6766ee965ab6
2011-09-14 19:47:05 -07:00
Svetoslav Ganov
ea515aeafa Update the public APIs for finding views by text to optionally use content description.
1. Added flags to the search method to specify whether to match text or
   content description or both.

2. Added test case for the seach by content description.

3. Updated the code in AccessibilityManager service to reflect the latest
   changes there so test automation service works - this is the fake
   service used for UI automation.

Change-Id: I14a6779a920ff0430e78947ea5aaf876c2e66076
2011-09-14 19:40:33 -07:00
Adam Powell
468fb9ce32 Merge "Fix bug 5321195 - Starting WebView text selection with long press does not invoke haptic feedback" 2011-09-14 19:28:53 -07:00
Dianne Hackborn
d32b472edf Merge "Fix issue #5155678: Portrait > Landscape full-screen transition..." 2011-09-14 19:26:23 -07:00
Katherine Kuan
bd3f8a2e38 Merge "Swap default avatar" 2011-09-14 19:22:34 -07:00
Dianne Hackborn
ec537457cd Fix issue #5155678: Portrait > Landscape full-screen transition...
...mode cuts off screen rendering

The code for limiting application window sizes to not include the
navigation bar was dead.  Now it is back.

Change-Id: Ic0bde56e3300fd0d9d225e19d8de2766d07e8780
2011-09-14 19:19:55 -07:00
Jeff Brown
b59ab9f41f Velocity Tracker II: The Revenge of Velocity Tracker
Bug: 5265529

Rewrote the velocity tracker to fit a polynomial curve
to pointer movements using least squares linear regression.
The velocity is simply the first derivative of this polynomial.

Clients can also obtain an Estimator that describes the
complete terms of the estimating polynomial including
the coefficient of determination which provides a measure
of the quality of the fit (confidence).

Enhanced PointerLocation to display the movement curve predicted
by the estimator in addition to the velocity vector.

By default, the algorithm computes a 2nd degree (quadratic)
polynomial based on a 100ms recent history horizon.

Change-Id: Id377bef44117fce68fee2c41f90134ce3224d3a1
2011-09-14 19:16:37 -07:00
Adam Powell
ad804e34b9 Fix bug 5321195 - Starting WebView text selection with long press does
not invoke haptic feedback

Change-Id: I6ba6b7e5b0ecedf721ab6d1bf87d7d2a92dc7200
2011-09-14 19:11:08 -07:00
Svetoslav Ganov
de16e00f6d Merge "TimePicker CTS test failing." 2011-09-14 19:07:23 -07:00
Svetoslav Ganov
11c9132818 TimePicker CTS test failing.
TimePicker code for setting the IME options was not taking into
account the old style of the UI where the AmPm spinner can be
null.

bug:5318844

Change-Id: I58b1781ef95398d11ecf0ca5bb49817cbba97b54
2011-09-14 18:35:48 -07:00
Katherine Kuan
85d78321a2 Swap default avatar
Bug: 5074147
Change-Id: I89feda1ee3dd5e50996cf31795400295e82599ef
2011-09-14 18:22:35 -07:00
Mathias Agopian
ab6d77a45c Merge "Tweak DELAY_UI for 16Hz to 15Hz" 2011-09-14 18:20:31 -07:00
Mathias Agopian
5263767cda Tweak DELAY_UI for 16Hz to 15Hz
this allows us to hit the lower accel rate.

Change-Id: I21944ee82020cf4b80397b87803bc481ddf51931
2011-09-14 18:18:11 -07:00
Dianne Hackborn
ca7b656833 Merge "Fix issue #5283365: Rotating the device to portrait mode, hides the keyboard partly" 2011-09-14 17:58:18 -07:00
Dianne Hackborn
1f903c3b57 Fix issue #5283365: Rotating the device to portrait mode, hides the keyboard partly
PhoneWindowManager now takes full responsibility for deciding where the
navigation bar goes.  This gets rid of a bunch of race conditions with
determining layout while the nav bar is moving itself at the same time
the window manager is computing a new configuration.

Note that this breaks the "nav bar on left" option.  The current nav
bar code could also be cleaned up some more to completely drive its
behavior based on onSizeChanged() happening during relayout.

Change-Id: I1651d74c3464ba0d588aab3049e099c78420146a
2011-09-14 17:56:40 -07:00
Adam Powell
e71ffeb7e0 Merge "Fix bug 5237737 - ActionBar should fire an accessibility event when action mode is turned on/off" 2011-09-14 17:32:37 -07:00
Eric Fischer
bd9d25e319 Merge "Bug 5278473: Add a delete option in the suggestion popup" 2011-09-14 17:18:59 -07:00
Gilles Debunne
c8952f70ca Bug 5278473: Add a delete option in the suggestion popup
This first CL simply adds the new string before string freeze.

Change-Id: I7d5ed7a8467179668c123380cc516a80099d4993
2011-09-14 17:04:13 -07:00
Adam Powell
86ed436b83 Fix bug 5237737 - ActionBar should fire an accessibility event when
action mode is turned on/off

Fire AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED when action modes
come and go to give an indication of UI change on the level of a menu
or dialog opening/closing.

Change-Id: Id36c6153b0722b4b6927c8d36503e8ac57c2d2b2
2011-09-14 16:19:44 -07:00
Dianne Hackborn
67eb4320d2 Merge "ICS is API 14." 2011-09-14 16:04:15 -07:00
Gilles Debunne
688df79243 Bug 5299484: Recipient address in to field is doubled when entering in landscape mode
A tap on a completion in the keyboard calls onCommitCompletion, which in turn calls
performCompletion because of the DropDownItemClickListener.

As a result, the text is replaced twice. Removing the first text replacement.

Change-Id: I4974d23c68ab25ca0ad0cda5abf25f30129b28ee
2011-09-14 15:52:07 -07:00
Peter Ng
5eb41b01a6 Merge "Spinner touchstates now in line with list states" 2011-09-14 15:03:32 -07:00