Commit Graph

26323 Commits

Author SHA1 Message Date
Fred Quintana
dc47556cb3 fix expedited syncs. there were times when an expedited sync wouldn't
correctly preempt non-expedited syncs

Change-Id: Ia88ce6504c06d7c8e50e40362e8bf2b85bd0934b
2012-05-06 13:39:36 -07:00
Romain Guy
4fa22f0b4d am 95b0c45b: am aaa71475: Merge "Remove unnecessary framework allocations" into jb-dev
* commit '95b0c45b06d9a053f9050e0f0ef1171a18ae0711':
  Remove unnecessary framework allocations
2012-05-06 13:34:34 -07:00
Romain Guy
95b0c45b06 am aaa71475: Merge "Remove unnecessary framework allocations" into jb-dev
* commit 'aaa7147595346fdd398e2932817e075acbb8e497':
  Remove unnecessary framework allocations
2012-05-06 13:31:15 -07:00
Romain Guy
aaa7147595 Merge "Remove unnecessary framework allocations" into jb-dev 2012-05-06 13:27:29 -07:00
Svetoslav Ganov
44bfdd88a7 Dialog not dismissed when tearing down dialog fragment.
1. The dismiss implementaton in Dialog was posting a message
   on the main thread to perform the real dismiss work. The
   goal of this was to allow calling dismiss() from multiple
   threads. The side effect of this is that when dialog fragment
   is dismissed the dialog is not dimissed until the current
   loop on the main thread is completed. However, during rotation
   of the screen the current activity has to be restarted, hence
   all fragments whould be removed. In the destruction process
   the dialog grament requests from the dialog to dismiss but
   since this is asynchromous, the code in
   ActivityThread#handleDestroyActivity detects a leaking window
   since the dialog window is still not removed and removes that
   window. Now when the dialog removal message is processed on
   the next loop we get an exception that the window has already
   been removed. Now if Dialog#dismiss() is called from the
   main thread the call goes right though otherwise a message is
   posted.

bug:5911682

Change-Id: I449d6dd75a84c0ff29ea13dac7d163219cc38341
2012-05-06 13:21:33 -07:00
Romain Guy
ab4c4f4ff7 Remove unnecessary framework allocations
These allocations were frequently triggered by the home screen. This change
removes dozens of allocations during page scrolls on home.

Change-Id: I7289efa28ecf5bd62459042b10062aa9cf0432dd
2012-05-06 13:11:24 -07:00
Dianne Hackborn
36cade591a am 7bedac94: am 139e5aa1: Fix issue #6404215: New ActionBar auto-hide can conflict with application
* commit '7bedac9417d60608003d739c8caed7ca81683825':
  Fix issue #6404215: New ActionBar auto-hide can conflict with application
2012-05-06 12:51:47 -07:00
Dianne Hackborn
7bedac9417 am 139e5aa1: Fix issue #6404215: New ActionBar auto-hide can conflict with application
* commit '139e5aa1da51b27231ab36344cf2d0dafab23f1e':
  Fix issue #6404215: New ActionBar auto-hide can conflict with application
2012-05-06 12:48:45 -07:00
Dianne Hackborn
139e5aa1da Fix issue #6404215: New ActionBar auto-hide can conflict with application
The action bar now maintains separate states for the things that can
impact its visibility (calls from the app, action mode, system UI) so
that the changes in these won't incorrectly mix together.

Also added a hack to force the status bar to be shown when showing
the action bar for an action mode, when the UI is in a state where
the action bar would be shown with a gap above where the status bar
is.

Change-Id: Ib0950a7f585c5d2c9e77d11b237ba6e150f15ebd
2012-05-06 11:52:05 -07:00
Pin Ting
1462fe6a38 am aa048661: am d0c66f6a: Merge "Fix javadoc." into jb-dev
* commit 'aa048661742fe337d30f9ef8a024ef22d1a18ff8':
  Fix javadoc.
2012-05-06 07:16:41 -07:00
Pin Ting
aa04866174 am d0c66f6a: Merge "Fix javadoc." into jb-dev
* commit 'd0c66f6a8f15bb95648b4306d2583575d0bb9935':
  Fix javadoc.
2012-05-06 07:14:11 -07:00
Pin Ting
d0c66f6a8f Merge "Fix javadoc." into jb-dev 2012-05-06 07:12:02 -07:00
Svetoslav Ganov
773f2624ec Performing click and long click for accessiblity not returning result.
1. When performing the click and long click actions the code in View
   was not returning the resilt of the called method.

bug:6426849

Change-Id: I0cf396a8373f622948ed436ce09f8d1dcf246acd
2012-05-05 19:59:46 -07:00
Svetoslav Ganov
340e2611de Showing default activity in activity chooser view only if enough space.
1. While a default target is very convenient, having two targets for the
   widget on a phone takes too much space and the apps do not have room
   to add other essential affordances to the action bar. Making the default
   activity show only of the screen is large enough - the action bar
   accommodates at least four targets i.e. 500dip.

2. Fixed a bug where changing the backing model of an ActivityChooserView
   when the view is not shown did not remove the observer for the old
   model, hence the View can get into a state where it responds to changes
   of two models while presenting only one. Also in such a case the view
   would leak since the singleton model will keep a handle to it.

3. Updated the documentation of share action provider to explain how a
   a developer can change the backing history file and refresh the UI
   based on the historical data in that file.

bug:6447692

Change-Id: Id5c9e54cd5df322ded8574ba028cb680e628243b
2012-05-05 17:49:16 -07:00
Dianne Hackborn
4256391861 am ce1d03b3: am 3fd4a382: Merge "Implement cropping of windows based on system UI elements." into jb-dev
* commit 'ce1d03b39935c42cfa0d11ef782c8c6a2fd823d4':
  Implement cropping of windows based on system UI elements.
2012-05-05 14:20:44 -07:00
Dianne Hackborn
ce1d03b399 am 3fd4a382: Merge "Implement cropping of windows based on system UI elements." into jb-dev
* commit '3fd4a3822160e8ad84122641a56c9f92540d02b5':
  Implement cropping of windows based on system UI elements.
2012-05-05 14:17:57 -07:00
Dianne Hackborn
3fd4a38221 Merge "Implement cropping of windows based on system UI elements." into jb-dev 2012-05-05 14:15:39 -07:00
Dianne Hackborn
7e74883ccd am dbd7131c: am e3320e6d: Merge "Fix issue #6444627: New status bar/action bar interaction a bit disjoint" into jb-dev
* commit 'dbd7131cf4dae6847b6f7aa0f380e103d2b56aaa':
  Fix issue #6444627: New status bar/action bar interaction a bit disjoint
2012-05-05 14:12:23 -07:00
Dianne Hackborn
3556c9a806 Implement cropping of windows based on system UI elements.
Start calling Surface.setActiveRect().

Change-Id: I94197059c971c6ab7820e615ea8f285482b86c75
2012-05-05 14:12:13 -07:00
Dianne Hackborn
dbd7131cf4 am e3320e6d: Merge "Fix issue #6444627: New status bar/action bar interaction a bit disjoint" into jb-dev
* commit 'e3320e6d91443450351d49cc2b37477070fb0ce8':
  Fix issue #6444627: New status bar/action bar interaction a bit disjoint
2012-05-05 14:09:56 -07:00
Dianne Hackborn
e3320e6d91 Merge "Fix issue #6444627: New status bar/action bar interaction a bit disjoint" into jb-dev 2012-05-05 14:07:02 -07:00
Dianne Hackborn
1cc2bcedb5 Fix issue #6444627: New status bar/action bar interaction a bit disjoint
Make sure action bar animations use same duration as system dock animations.

Change-Id: Ie294d134177207499a05cc93db8f4b859f07ed0c
2012-05-04 18:59:02 -07:00
Romain Guy
1f5c8a12c5 am f9d5ee55: am 5b972e73: Merge "Don\'t check whether dismiss() is called on the UI thread Bug #6436642" into jb-dev
* commit 'f9d5ee556a7cc588b19ca3ba92931bd562699f1c':
  Don't check whether dismiss() is called on the UI thread Bug #6436642
2012-05-04 17:31:09 -07:00
Romain Guy
f9d5ee556a am 5b972e73: Merge "Don\'t check whether dismiss() is called on the UI thread Bug #6436642" into jb-dev
* commit '5b972e730f99ea4cf74f8ccf3e2c57289255c4f6':
  Don't check whether dismiss() is called on the UI thread Bug #6436642
2012-05-04 17:28:51 -07:00
Romain Guy
5b972e730f Merge "Don't check whether dismiss() is called on the UI thread Bug #6436642" into jb-dev 2012-05-04 17:27:11 -07:00
Svetoslav Ganov
1c80179039 am 81c0f9df: am 35d79991: Merge "API REVIEW: android.widget.CalendarView" into jb-dev
* commit '81c0f9df0b45dd083db55afce52fdb001c21e8f4':
  API REVIEW: android.widget.CalendarView
2012-05-04 17:25:32 -07:00
Svetoslav Ganov
81c0f9df0b am 35d79991: Merge "API REVIEW: android.widget.CalendarView" into jb-dev
* commit '35d79991d5c97270f6c34d0da8879ea4c3984f80':
  API REVIEW: android.widget.CalendarView
2012-05-04 17:22:20 -07:00
Svetoslav Ganov
35d79991d5 Merge "API REVIEW: android.widget.CalendarView" into jb-dev 2012-05-04 17:18:51 -07:00
Romain Guy
05e1c3a691 Don't check whether dismiss() is called on the UI thread
Bug #6436642

An app invoking dismiss() during a draw pass could cause crashes.
This change makes the code simpler too.

Change-Id: Iba89a8522e23d02f87697cfeec6cc713a1462669
2012-05-04 17:18:29 -07:00
Svetoslav Ganov
2b435aada3 API REVIEW: android.view.accessibility
1. Changed all references to granularity to movement
   granularity. BTW, to be more precise it should be
   text movement granularity.

bug:6435232

Change-Id: If6366b002ca3390f74918995b342baff2cbcfd01
2012-05-04 17:16:41 -07:00
Svetoslav Ganov
414efc3b5f API REVIEW: android.widget.CalendarView
1. Making sure that the comment blocks for methods setting/getting
   resource attributes include links to the related attribute
   documentation.

bug:6442803

Change-Id: If8acedfedf02400eee3f61ca3029325c05a5fb86
2012-05-04 16:54:06 -07:00
Dianne Hackborn
8575723dcc am 967b361c: am 6ad5b4f6: Merge "Fix issue #6426645: API REVIEW: android.app.ActivityOptions" into jb-dev
* commit '967b361cd384761e7f6a2e0a29f1da8f74b6ec9b':
  Fix issue #6426645: API REVIEW: android.app.ActivityOptions
2012-05-04 16:36:36 -07:00
Svetoslav Ganov
1758ce900d am 9878a04b: am 5fd72a2c: Merge "Finding focus for from rectangle now working." into jb-dev
* commit '9878a04b3cedf842de29110baa46fb040b5c7887':
  Finding focus for from rectangle now working.
2012-05-04 16:36:25 -07:00
Adam Powell
235554e845 am da6f2b54: am 9c982340: Merge "Fix LinearLayout measureWithLargestChild for wrap_content views" into jb-dev
* commit 'da6f2b54caedee4c5e9af86d49e6c95aee054340':
  Fix LinearLayout measureWithLargestChild for wrap_content views
2012-05-04 16:35:54 -07:00
Andy Stadler
66ff373f5f am 1f1aed5e: am c4be1b7e: Merge "Add System Tracing capability to Sync Manager" into jb-dev
* commit '1f1aed5e76efd27c69e597fd3eab91fe822bd850':
  Add System Tracing capability to Sync Manager
2012-05-04 16:35:48 -07:00
Gilles Debunne
e244868053 Final fix in SpannableStringBuilder.
Bug 6448052

The empty EXCLUSIVE removal condition was incorrect.
Also changed the unit test the didn't catch this problem.

Change-Id: I5576d830cdfa6cc3716c878fb698695a2978b296
2012-05-04 16:24:49 -07:00
Dianne Hackborn
967b361cd3 am 6ad5b4f6: Merge "Fix issue #6426645: API REVIEW: android.app.ActivityOptions" into jb-dev
* commit '6ad5b4f637e64cb07a17079424cff66c867c7f27':
  Fix issue #6426645: API REVIEW: android.app.ActivityOptions
2012-05-04 16:12:37 -07:00
Dianne Hackborn
6ad5b4f637 Merge "Fix issue #6426645: API REVIEW: android.app.ActivityOptions" into jb-dev 2012-05-04 16:10:16 -07:00
Svetoslav Ganov
9878a04b3c am 5fd72a2c: Merge "Finding focus for from rectangle now working." into jb-dev
* commit '5fd72a2cceae9955af316f32e17a84515c317738':
  Finding focus for from rectangle now working.
2012-05-04 15:52:45 -07:00
Svetoslav Ganov
5fd72a2cce Merge "Finding focus for from rectangle now working." into jb-dev 2012-05-04 15:49:44 -07:00
John Reck
e666b10dff Drain any pending touch events immediately if possible
Bug: 6317798

Change-Id: Id343801cf80817f587414224cc67c13d34efed04
2012-05-04 15:30:42 -07:00
Adam Powell
da6f2b54ca am 9c982340: Merge "Fix LinearLayout measureWithLargestChild for wrap_content views" into jb-dev
* commit '9c98234095a6894621d1c71e1c9e523c70f0f067':
  Fix LinearLayout measureWithLargestChild for wrap_content views
2012-05-04 15:03:36 -07:00
Adam Powell
9c98234095 Merge "Fix LinearLayout measureWithLargestChild for wrap_content views" into jb-dev 2012-05-04 15:01:14 -07:00
Selim Gurun
275fce8a2c Use private key context when necessary
Bug: 6249185

Due to recent changes to keystore, we cannot rely on encoded key
format anymore. Rather we receive the key context (a pointer to
private key really) and pass it to native openssl. We also keep
the original logic however.

Change-Id: Iefe9f0336dd5f47eec4222fcb6fec58807e7cac0
2012-05-04 14:57:34 -07:00
Adam Powell
eabc919844 Fix LinearLayout measureWithLargestChild for wrap_content views
Bug 6442795

When the measureWithLargestChild setting is enabled, LL used to
measure the full container taking the largest child rule into account,
but the child views were not properly remeasured for AT_MOST
measurespecs. Correct this.

Fix measureWithLargestChild for height

Change-Id: Ieb91114bc2ae65f9104337bd6d16a7d9e559571d
2012-05-04 14:54:14 -07:00
Andy Stadler
1f1aed5e76 am c4be1b7e: Merge "Add System Tracing capability to Sync Manager" into jb-dev
* commit 'c4be1b7e963413c110d8a6ee9fdd4fd7443fb2e0':
  Add System Tracing capability to Sync Manager
2012-05-04 14:49:00 -07:00
Amith Yamasani
3d3e7a5816 Javadoc improvements in SearchView per API review.
Bug: 6442174

Added attr refs to 2 methods.

Change-Id: I9b5f93e8e921a7260fdc25c8134e655f09a1ffb7
2012-05-04 14:47:25 -07:00
Andy Stadler
c4be1b7e96 Merge "Add System Tracing capability to Sync Manager" into jb-dev 2012-05-04 14:46:00 -07:00
Jim Miller
43dad01f5b am 360ca12b: am 516c25b3: Merge "Fix 6414061: Add new ACTION_ASSIST intent." into jb-dev
* commit '360ca12bf2914c0832da58f9e7963026799bf676':
  Fix 6414061: Add new ACTION_ASSIST intent.
2012-05-04 14:19:38 -07:00
Jim Miller
360ca12bf2 am 516c25b3: Merge "Fix 6414061: Add new ACTION_ASSIST intent." into jb-dev
* commit '516c25b38a03decc8f9cbd41f4d9baa4f52f438f':
  Fix 6414061: Add new ACTION_ASSIST intent.
2012-05-04 14:16:16 -07:00