237184 Commits

Author SHA1 Message Date
Dongwon Kang
0632d8ae71 TIF: Address comments on hardware manager related system APIs
Bug: 25726241
Change-Id: I0a3e7e8cf494d897fc04528ba719faa4150b9207
2016-03-30 13:25:45 -07:00
Amith Yamasani
98c0556f40 Fix deadlock during user state transitions
performReceive() is called with the activity manager lock held.
Don't call out to other system services (such as user state
callbacks) with the lock held. Post a runnable to the handler
instead.

Bug: 27589217
Change-Id: I5c2f8debe1ae365682b27af65e0bf02bcce50d4a
2016-03-30 13:15:26 -07:00
Aga Wronska
6f000a1a63 Merge "Add metrics for opening the drawer" into nyc-dev 2016-03-30 20:13:51 +00:00
John Reck
7fa1115aaf Merge "Add an option to try and filter out test overhead" into nyc-dev 2016-03-30 20:07:03 +00:00
Lifu Tang
e296ab692a Merge "Returns the correct elevation in GnssStatus" into nyc-dev 2016-03-30 19:52:57 +00:00
Roozbeh Pournader
48d8a39b71 Merge "Fix incorrect initial locale negotiation." into nyc-dev 2016-03-30 19:44:25 +00:00
Vladislav Kaznacheev
0fd3b1abda Merge "Update DocumentsUI according to DragStartHelper API changes" into nyc-dev 2016-03-30 19:43:47 +00:00
Glenn Kasten
0f5e32d8eb Merge "Fix CRLF" into nyc-dev 2016-03-30 19:41:05 +00:00
Victor Chang
3e794afb82 Unit test for isProvisioningAllowed
Note:
DevicePolicyManagerService is changed to inject ContentObserver notifier

Test: all test cases in DevicePolicyManagerTest pass

BUG: 25710621
Change-Id: I347cec71769d0e9dd6a334d7d6339d5ce6a3fa6a
2016-03-30 20:27:22 +01:00
Joseph Pirozzo
563c700f70 PBAP client Settings profile.
Add content to Settings and SettingsLib to add a checkbox for PBAP
client profile, and remove the box for PBAP server profile when the
client profile is enabled.

Bug: 27642222
Change-Id: I125559904a8e017a01ae90b1f6425129a87cbee3
2016-03-30 12:20:51 -07:00
Jean-Michel Trivi
449362e065 Fix audio focus logging
Fix error in audio focus dispatching log: the message value (here
  MSSG_FOCUS_CHANGE, which is 0) was logged instead of the focus
  value being sent to the audio focus listener.

Bug 25790720

Change-Id: I534ce8d1059c09a52e56c51acd60405ef3c4cda1
2016-03-30 12:06:22 -07:00
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
Dongwon Kang
840172ac1e Merge "Start MediaResourceMonitorService only when needed." into nyc-dev 2016-03-30 19:03:44 +00:00
Ying Wang
92e1ea2383 Merge "Fix compilation using javac." into nyc-dev 2016-03-30 18:57:39 +00:00
Makoto Onuki
04a5473cbe Merge "Clean up javadoc." into nyc-dev 2016-03-30 18:56:09 +00:00
Anna Galusza
a85c273ca5 Merge "Add logging constants for SUW A11y (Vision Settings) screens. Bug: 27777706" into nyc-dev 2016-03-30 18:43:59 +00:00
Mitchell Wills
133240f565 Merge "Add WifiScanner API that accepts a WorkSource for scans" into nyc-dev 2016-03-30 18:43:23 +00:00
Teng-Hui Zhu
a5dcc6c25d LUTInterpolator needs to have 2 frame at minimal
Otherwise, it could be having invalid data, here NAN.
Fix:27343522

Change-Id: I5bb17f04c62f268ec633675015ef589be2413338
2016-03-30 11:36:35 -07:00
Andreas Gampe
1bd064f04b Merge "Package Manager: Remove force-compile on boot" into nyc-dev 2016-03-30 18:35:38 +00:00
Vladislav Kaznacheev
0e84279947 Update DocumentsUI according to DragStartHelper API changes
Bug: 27810240
Change-Id: I1daed13d6d9cc215a6b1ba4d0ad259a996b0eb5f
2016-03-30 11:14:29 -07:00
Aga Wronska
7dcf81e6fa Add metrics for opening the drawer
Change-Id: I1315463c5217ce47aa7fa40ddd8b8773c7038208
Fixed: 27905111
2016-03-30 11:05:04 -07:00
Peng Xu
50c52c0b34 Merge "Several code quality improvements" into nyc-dev 2016-03-30 18:04:12 +00:00
Aga Wronska
4e8c7f61be Add metrics for create directory and rename file operations
Change-Id: I4814673b4066efa840e1fb52a7549d8c7ebc4f63
Fixed: 27908149
2016-03-30 11:00:03 -07:00
Diego Perez
fc970ab65a Implement VirtualRefBasePtr native methods
The VirtualRefBasePtr is used to track the usage of native objects from
the java side by reference counting. Implementing the class delegate to
make sure we dispose the objects correctly.

Change-Id: I3dd4717944b0dbe79f30e49b3083bf65c6e5276d
2016-03-30 17:53:23 +00:00
Jason Monk
b01a0afb4e Merge "Fix QS panel after density changes" into nyc-dev 2016-03-30 17:52:27 +00:00
Yigit Boyar
7de3b2d898 Merge "Multiple fixes in ScrollView and HorizontalScrollView" into nyc-dev 2016-03-30 17:51:55 +00:00
Jason Monk
f160edcab9 Fix QS panel after density changes
Fixes: 27744717
Change-Id: Ic3724b39e027379bb81e94e7059e67d2bbe30e88
2016-03-30 13:49:58 -04:00
Rubin Xu
5b7ca24f14 Merge "Add DevicePolicyManager API to install a client cert chain." into nyc-dev 2016-03-30 17:46:18 +00:00
Ying Wang
5e92c429ec Fix compilation using javac.
We still need to be able to compile all the Java source code in the tree
using javac, though the compiled code never ends up running on device.

Bug: 25958912
Change-Id: Id76663cdf768db579517515d7b7f51519b515fa8
2016-03-30 10:33:47 -07:00
Anna Galusza
dad131f3c6 Add logging constants for SUW A11y (Vision Settings) screens.
Bug: 27777706

Change-Id: Iaf9ed7f9186fc1a6da3179e8e58b58341c4d8806
2016-03-30 10:30:41 -07:00
Makoto Onuki
0e65d36607 Clean up javadoc.
Bug 27548047

Change-Id: I10410c969136db634bb98687710d011d159bca07
2016-03-30 10:15:55 -07:00
John Reck
c7cd9cf25d Add an option to try and filter out test overhead
Bug: 26912651

By setting debug.hwui.filter_test_overhead to true, hwui's
janktracker will attempt to filter out overhead caused
by the event injection that automated testing uses

Change-Id: I75c8dc5e7798e06e3009baf396108507c7240eec
2016-03-30 10:08:13 -07:00
Andy Hung
9a99629eaa Merge "Stop SoundPool decode if NdkMediaCodec returns null buffers" into nyc-dev 2016-03-30 17:06:18 +00:00
Brian Carlstrom
725dd4ac85 Merge "Fix typo in Conversion Functions doc" into nyc-dev 2016-03-30 16:58:11 +00:00
Chris Craik
0b880795c1 Merge "Support buildLayer in new pipeline" into nyc-dev 2016-03-30 16:40:57 +00:00
Jason Monk
9cbb71997b Merge "Fix QS RTL" into nyc-dev 2016-03-30 16:37:41 +00:00
Jason Monk
ca4dc9a7e1 Merge "Clear out old views when setting new content in settings" into nyc-dev 2016-03-30 16:36:28 +00:00
Jason Monk
4ea6657d58 Clear out old views when setting new content in settings
Bug: 27529989
Change-Id: Id44ca442c2117bc5df7929bcd79434c0ae23cded
2016-03-30 12:35:29 -04:00
Jason Monk
05ceda5ccc Merge "QS: Only allow clicking in the expand button" into nyc-dev 2016-03-30 16:33:12 +00:00
Jason Monk
98bad0e578 Merge "Add more metrics for QS" into nyc-dev 2016-03-30 16:32:22 +00:00
Jason Monk
96defbe2b1 Add more metrics for QS
Bug: 27851703
Change-Id: Iecd1eb739fa1a283b7964b6e0952673e5fb38e8f
2016-03-30 12:26:04 -04:00
Anna Galusza
5a9f8711e3 Merge "If the AccessibilityService requesting the soft keyboard to be hidden is stopped, make sure the keyboard is hidden. Bug: 27886621" into nyc-dev 2016-03-30 16:20:32 +00:00
Clara Bayarri
30fb053449 Merge "Change default work challenge background color" into nyc-dev 2016-03-30 16:13:00 +00:00
Clara Bayarri
8d0bd7fa63 Change default work challenge background color
Requested by UX

Bug: 27829562
Change-Id: I815c06784189e68b09e464e936521e82091c93c3
2016-03-30 17:12:08 +01:00
Jason Monk
1ed1bb0fc0 Merge "Fix tests and tag them for continuous testage" into nyc-dev 2016-03-30 15:44:07 +00:00
Felipe Leme
2040088ae1 Merge "Added activity cmd to display current process state of an app." into nyc-dev 2016-03-30 15:41:52 +00:00
Andreas Gampe
ecb34651be Package Manager: Remove force-compile on boot
With ART commit d1537b569b6, the underlying issue is fixed.

Bug: 27618311
Bug: 27676766
Bug: 27693977
Bug: 27915086
Change-Id: Ib6e85e47daf3d2ceab1e5abe615610790ac6947f
2016-03-30 08:41:16 -07:00
Yohei Yukawa
26acf08672 Merge "Update hard keyboard setup notification." into nyc-dev 2016-03-30 15:40:57 +00:00
Makoto Onuki
ca0ee285bb Merge "ShortcutManager: Support secondary text field." into nyc-dev 2016-03-30 15:30:17 +00:00
Seigo Nonaka
c14dd78a2c Fix incorrect initial locale negotiation.
It turned out that calling ResourceManager.setDefaultLocalesLocked
and ResourcesManager.applyConfigurationToResourcesLocked
can be called before the locale negotiation is ready.

To fix this issue, move ResourcesManager setup flow after creating
application context.

This also introduces RuntimeException for notifying developers the
initialize order.

Bug: 27567902
Change-Id: Iab7ea384b039fb649fb52d06d45b2bfae21f9a8a
2016-03-31 00:21:35 +09:00