236774 Commits

Author SHA1 Message Date
Yohei Yukawa
9f9afe526d Add IC#closeConnection().
It turns out that BaseInputConnection has still depended on a private
API named BaseInputConnection#reportFinish(), which was introduced
4 years ago to work around a UI freeze due to an unbalanced batch edit
count [1].  Note that such an unbalanced batch edit count cannot always
be avoidable.  It can easily occur in the following situations.
 - The current IME crashed during batch edit.
 - The user changed the View focus during batch edit.
 - The current IME called IMM#switchToNextInputMethod() during batch
   edit.

The remaining problem is that #reportFinish() is still an internal API
and only subclasses of BaseInputConnection can implement it, and IMM
calls it when and only when the current InputConnection is
BaseInputConnection or its subclass.  InputConnectionWrapper and any
other InputConnection implementations will never receive such a callback
to clean up InputConnection#{begin, end}BatchEdit(), which is considered
to be a major contributor to UI freeze.

To address the above issue, we unhide BaseInputConnection#reportFinish()
as InputConnection#closeConnection() so that application developers can
receive an appropriate callback to clean up internal state including
unfinished batch edit.

  [1] I5525d776916f0c42d5e6d4a4282aed590d7f0e9a
      9d69ecbf61a4a142c3f4cbb9d5659faa6f85e832

Bug: 24688781
Bug: 25332806
Change-Id: I234309c5880c9fe0b299b8bd0f8862796d4dda0d
2016-03-30 12:03:51 -07:00
Joe Onorato
0caf007b3f Merge "Refactor ProcessStats." into nyc-dev 2016-03-28 20:52:39 +00:00
Jason Monk
d964a9f4d7 Merge "Update the data saver assets" into nyc-dev 2016-03-28 20:40:39 +00:00
Jason Monk
67477d9c1b Update the data saver assets
Bug: 27588223
Change-Id: Ic25a7a695fb2df019b861ef1547da3fca5cd96f9
2016-03-28 16:36:35 -04:00
Wale Ogunwale
ddfc6f7dc9 Merge "Show non-top tasks in the docked stack in recents." into nyc-dev 2016-03-28 20:22:35 +00:00
Derek Sollenberger
58691b6fe7 Fix broken test.
bug: 27877439
Change-Id: I43b009f3c9ebe8011a241d0740136e6cff2e1ff7
2016-03-28 16:17:36 -04:00
Jason Monk
ede7d958ab Merge "QS Anim tweaks" into nyc-dev 2016-03-28 20:12:14 +00:00
Jorim Jaggi
b583f084c9 Fix flicker
This line was added for window swapping, but it's not actually needed
and causes regressions.

Bug: 27635189
Change-Id: I6c9cdac8d1bf30029b9f36a106e1f2afebfd9072
2016-03-28 20:11:02 +00:00
Jorim Jaggi
7f19cb870c Fix touch exclude region for divider handle
Bug: 27854148
Change-Id: I93421d07b2be29846be4748a3be3b89b9b465613
2016-03-28 20:04:41 +00:00
Andrii Kulian
49f87a6bb4 Merge "Persist task minimal width and height" into nyc-dev 2016-03-28 20:03:38 +00:00
Jason Monk
789e9c04bf QS Anim tweaks
Change-Id: Ic1c3b3c9554dea2b608edfd1b11d255eee38b1ef
2016-03-28 16:00:09 -04:00
Jorim Jaggi
4deec3080f Merge "Fix divider animation" into nyc-dev 2016-03-28 19:57:26 +00:00
Jorim Jaggi
14810c7e3e Fix null pointer exception
- Make sure to use the correct task to get the stack.
- Don't try to show non-resizable toast when we didn't do
anything.

Bug: 27870378
Change-Id: I69fec6aa792c2f05d905a7c99c05ebdc689ad032
2016-03-28 19:55:32 +00:00
Tao Bao
9971d02c38 Merge "UpdateEngine: Add resetStatus() as system API." into nyc-dev 2016-03-28 19:51:36 +00:00
Paul Mclean
2d63f1a946 Merge "Added logging to USB Audio connect and disconnect." into nyc-dev 2016-03-28 19:49:15 +00:00
Makoto Onuki
7b71a6f622 Merge "ShortcutManager: Cleanup package info handling" into nyc-dev 2016-03-28 19:34:07 +00:00
Andrii Kulian
162c9d0425 Merge "Fix API numbering issues" into nyc-dev 2016-03-28 19:28:23 +00:00
Brad Ebinger
900f1635c0 Merge "Add VIA number column to CallLog Database" into nyc-dev 2016-03-28 19:27:20 +00:00
Chad Brubaker
12da920fa4 Merge "Use X509ExtendedTrustManagers" into nyc-dev 2016-03-28 19:14:23 +00:00
Yigit Boyar
e0827355a5 Merge "Recover focus on size change in ListView" into nyc-dev 2016-03-28 19:10:08 +00:00
Paul McLean
c72239409b Added logging to USB Audio connect and disconnect.
This will let us see in bug reports if the USB device in question
is ACTUALLY recognized and added/removed from the audio system.

Bug: 27812441

Change-Id: Id3eb4d4f3f0b1e66a24999706ba589c0962eba58
2016-03-28 13:07:09 -06:00
Wale Ogunwale
64ae08aa16 Show non-top tasks in the docked stack in recents.
Allows the user to access the task through recents since
it isn't currently visible on screen.

Also, changed recents to launch task currently in the docked
stack in the fullscreen stack when selected from recents list.

Bug: 27864383
Change-Id: I58549023920d064a30b6355367c3193ce3207bbd
2016-03-28 12:06:44 -07:00
Mitchell Wills
396884ca84 Merge "Add accessor for buckets scanned in ScanData" into nyc-dev 2016-03-28 18:41:03 +00:00
Chris Craik
3839ab1e3e Merge "Consume TextureView matrix safely" into nyc-dev 2016-03-28 18:30:22 +00:00
Lifu Tang
a89a392aef Merge "Added missing constants to GnssMeasurement" into nyc-dev 2016-03-28 18:22:28 +00:00
Yohei Yukawa
feade80609 Merge "Dump more info for View when IMM#DEBUG is true." into nyc-dev 2016-03-28 18:20:56 +00:00
Andrii Kulian
ad462701a8 Fix API numbering issues
This fixes issues with API numbering introduced in
2e751b8c778fd991fcdcec3bc2d1f32a722f436b.

Original commit replaced 'minimalSize' resource with 'minimalWidth' and
'minimalHeight' and 'make update-api' shifted the numbering of other resources.
This change reverts the shift, reuses number of 'minimalSize' and adds
another one new.

Bug: 27528326
Change-Id: I7d327f00043c2bd2aab7285e03223a042e8c97a3
2016-03-28 11:16:31 -07:00
Yohei Yukawa
207d325c52 Merge "Clean-up a workaround that is no longer necessary." into nyc-dev 2016-03-28 17:55:26 +00:00
Chad Brubaker
0f5d386a76 Use X509ExtendedTrustManagers
Move the X509TrustManagers for the Network Security Config from
X509TrustManagers to X509ExtendedTrustManagers.

Bug: 27271561
Change-Id: I084a6c6022fe69730192d2bdcbabaf58e8f92f04
2016-03-28 10:48:41 -07:00
Chris Craik
aab289b8c2 Merge "Add a couple more tests around bitmap uploads" into nyc-dev 2016-03-28 17:47:52 +00:00
Eino-Ville Talvala
8c349f5d3b Merge "Camera: Add bandaid for preview orientation on reverse-landscape cameras" into nyc-dev 2016-03-28 17:47:20 +00:00
Makoto Onuki
905e8855e7 ShortcutManager: Cleanup package info handling
Bug 27548047

Change-Id: I598b25d1901230cec6fb3760fe5efeff3b3fef96
2016-03-28 10:46:08 -07:00
George Mount
fe77fdf8b3 Merge "If resume occurs, force finish of exiting activity." into nyc-dev 2016-03-28 17:21:11 +00:00
George Mount
20d51f550f Merge "Disable suppressLayout in Visibility Activity Transitoins." into nyc-dev 2016-03-28 17:20:53 +00:00
Chris Craik
aafb01d8ad Consume TextureView matrix safely
Fixes: 27825042

TextureView's matrix may not be set at record time - delay using it
until on RenderThread, when deferring the op.

Change-Id: Icf8b55d656e304ec049ca803b042dc2359482db2
2016-03-28 10:12:37 -07:00
Yigit Boyar
0363341f6c Recover focus on size change in ListView
This CL fixes a bug in ListView where if items are not selectable,
not focusable(in terms of ListView flags) but get focus (because
they can), ListView would not recover the focus properly although
it would make the child visible.

The major issue seems like AbsListView marks data set changed when
the list resizes. It seems like a workaround for some other issue
and the code is from 2009 so instead of changing it, I've decided
to implement a workaround to minimize the potential of breaking
something else.

Bug: 27488391
Change-Id: I5babd00e97bba7cb8cc9cfd0697ef79dfae12b97
2016-03-28 10:09:22 -07:00
Deepanshu Gupta
83b9db029b Merge "Fix menu popup rendering" into nyc-dev 2016-03-28 17:07:13 +00:00
Andreas Gampe
7d47079acf Merge "[STOPSHIP] PackageManager: Add package setting flag for N upgrade" into nyc-dev 2016-03-28 17:01:11 +00:00
Tao Bao
450c34c7b2 Merge "RecoverySystemService: Dump exception stack on IOExceptions." into nyc-dev 2016-03-28 17:00:05 +00:00
Andrii Kulian
650df4ae44 Merge "Use correct task bounds after updating override config" into nyc-dev 2016-03-28 16:59:27 +00:00
Deepanshu Gupta
97c0679b1a Fix menu popup rendering
Change-Id: I3394866d72af7fd1762ac477529a4a1bc473b7dc
2016-03-28 09:57:24 -07:00
Jeff Sharkey
5d4b11ef18 Merge "Work around buggy DMAgent." into nyc-dev 2016-03-28 16:35:44 +00:00
Makoto Onuki
ec1a2da6e0 Merge "ShortcutManager: Handle package broadcasts." into nyc-dev 2016-03-28 16:32:46 +00:00
Tenghui Zhu
f35e7dc773 Merge "Update the Drawable.inflate() documentation" into nyc-dev 2016-03-28 16:30:57 +00:00
Felipe Leme
5957df2cab Merge "More Data Saver / Battery Saver modes cleanup" into nyc-dev 2016-03-28 16:28:22 +00:00
Aga Wronska
9d032bd9ab Merge "Add full bar mode for search view on small devices" into nyc-dev 2016-03-28 16:18:57 +00:00
Aga Wronska
b09985639f Add full bar mode for search view on small devices
Fixed: 27406434

Change-Id: I828ff72752cdb35dff453ea405209f169e550c1a
2016-03-28 09:14:47 -07:00
Calin Juravle
bed38b9fd4 Merge "Read "dalvik.vm.usejitprofiles" for package compile command" into nyc-dev 2016-03-28 15:44:50 +00:00
Andreas Gampe
fc41ea320f [STOPSHIP] PackageManager: Add package setting flag for N upgrade
First upgrade to N level needs to compile apps with the first-boot
reason, as profiles are missing. The SDK level check does not work
for the preview, as the version is not incremented, yet.

Add a flag to the package settings to track the status.

Note: STOPSHIP, this will be reverted before release.

Bug: 27689078
Bug: 27872764
Change-Id: Ifd460d5235348f041ef64c9b61068af47113ddcb
2016-03-28 08:32:09 -07:00
Calin Juravle
8bc758b456 Read "dalvik.vm.usejitprofiles" for package compile command
Bug: 27859630
Change-Id: I8c6fff6762646e4abe5b72428c23ceefa90b1f53
2016-03-28 16:21:34 +01:00