237579 Commits

Author SHA1 Message Date
Yohei Yukawa
3942978af2 Merge "Show toast when subtype is rotated by Meta-Space." into nyc-dev 2016-04-04 17:56:36 +00:00
Eino-Ville Talvala
c7c569d5e4 Camera: Allow preview operation of SCENE_MODE_HDR
Some devices support HDR output for preview in addition to still
capture, so explicitly allow for that in the documentation of
SCENE_MODE_HDR.

Bug: 27313038
Change-Id: I894d7449dc0cfb7353f535db23acd12143590208
2016-04-04 10:48:38 -07:00
Chong Zhang
ebdb34d67a Merge "Never "save" if the surface control is null." into nyc-dev 2016-04-04 17:31:06 +00:00
Chong Zhang
133b07a0a7 Merge "Fix missing exit animation when app is closed during starting window" into nyc-dev 2016-04-04 17:30:52 +00:00
Yohei Yukawa
ebda7d7ae1 Show toast when subtype is rotated by Meta-Space.
This follows up to my previous CL [1], with which we changed global
hardware key combinations regarding how multilingual user can manage
multiple keyboard layouts / input methods.  Now we offer Meta-Space to
rotate input method (subtype), while we offered Shift-Space to rotate
hardware keyboard layouts previously.

One thing that is lost during above transition is an indication when the
such a key combination takes effect.  Actually there was a toast that
shows new keyboard layout name, which is now lost.

With this CL, we bring back a toast so that we can show the new input
method (subtype) name. Note that the toast will be shown if all of the
following conditions are met.
 - The input method (subtype) is rotated by a hardware key combination.
 - IME window does not have IME_VISIBLE bit.  Otherwise, showing a toast
   is likely to cause UI overlap with the current IME's window.

  [1]: I4005692215edfcf8bed3e86b1e07000148f986f5
       ae61f7118a92e097e854c840d5726c0920f5db0e

Bug: 27547054
Change-Id: If3fe17adbffe4c1125783fc77fed3cfe78fc7933
2016-04-04 17:30:12 +00:00
Yohei Yukawa
40358e4362 Merge "Fix a bug that IMS#mShowInputFlags is never updated." into nyc-dev 2016-04-04 17:29:03 +00:00
Eino-Ville Talvala
385f9e2146 Camera: Add proper buffer drop errors to LEGACY mode
The correct stream ID is required to be sent along with buffer drop
errors, and LEGACY mode was putting in a placeholder.  This would
cause an error in the client-side implementation, triggered by
abortBuffers (Which is the only source of buffer drops from LEGACY).

Bug: 27828602
Change-Id: If3fba7a76f7aa0ff305efa4cce6c225eb720b30e
2016-04-04 10:28:20 -07:00
Yang Ni
4a70df58a3 Avoid destroying Device separately
Bug: 27983025

Device should be destroyed inside the destructor of the associated
Context.

Change-Id: I921a89974e1174f837349a89aef9b03efa4882f5
2016-04-04 10:23:57 -07:00
Robert Shih
5bf198c380 Merge "Fix MediaExtractor.getDrmInitData implementation for webm" into nyc-dev 2016-04-04 17:09:45 +00:00
Anna Galusza
8a12f640fc Fix bug where service disabled with disableSelf() would not reset soft keyboard
behavior.
Bug: 27947344

Change-Id: I19583cad14616416be3582c30653d244a27aa366
2016-04-04 09:59:27 -07:00
Phil Weaver
7eb716c0f4 Merge "Make a11y text navigation by page symmetric." into nyc-dev 2016-04-04 16:37:05 +00:00
Phil Weaver
2bf5f20a2b Merge "Support SET_TEXT for editable text views." into nyc-dev 2016-04-04 16:36:35 +00:00
Phil Weaver
d4a1932608 Merge "Add accessibility window title and anchor." into nyc-dev 2016-04-04 16:36:01 +00:00
Phil Weaver
5af3084049 Merge "Remove docs for removed a11y gesture methods." into nyc-dev 2016-04-04 16:34:27 +00:00
Jason Monk
0b349adcd8 Add app attribution to QS editing
Add a divider between where system tiles and custom tiles are and
add their app label to them as well.

Change-Id: I8890a7fee54e4c5340bbe95c6e100c58f81ee5c3
Fixes: 27874624
2016-04-04 11:18:03 -04:00
Rubin Xu
e95057ade1 Split ACTION_MANAGED_PROFILE_AVAILABILITY_CHANGED into two.
Add more comment to EXTRA_QUIET_MODE

Bug: 27532254
Change-Id: I68a217561afca8b87f523c62393cdad097d5b75d
2016-04-04 16:08:47 +01:00
Wonsik Kim
e8c5480ba6 Merge "Don't try to compress .mkv resources" into nyc-dev 2016-04-04 14:46:10 +00:00
Todd Kennedy
6dffdf8285 Merge "Fix intent filter priorities" into nyc-dev 2016-04-04 14:20:17 +00:00
Gustav Sennton
065b7e6ef5 Move more code from WebViewUpdateService to separate overridable class
Move more code from WebViewUpdateService to utility classes (methods
handling settings and uninstalling/enabling/disabling packages) to be
overridden during tests.

Also rename system utility class.

Bug: 27635535

Change-Id: If49999fba4fd0962f103f389898fa5ddf19365bd
2016-04-04 14:47:46 +01:00
Diego Perez
18e7e10f67 Merge "Update Path and RenderNode delegates to new API" into nyc-dev 2016-04-04 12:22:21 +00:00
Yi Kong
faec9eb76c Merge "Track libcore commit cf86f3319e738c76c5e97ad95bb8a4e30654a787 (part 2)" into nyc-dev 2016-04-04 11:57:32 +00:00
Yi Kong
876f7df346 Track libcore commit cf86f3319e738c76c5e97ad95bb8a4e30654a787 (part 2)
Bug: 27960078
Change-Id: I74709bc8a2543ceb54ad3cf2c3018f175ff20e24
(cherry picked from commit c2a708596ff37cb01499a8a5a82af038baa85463)
2016-04-04 11:55:16 +00:00
Yi Kong
6a196372ae Track libcore commit cf86f3319e738c76c5e97ad95bb8a4e30654a787
Bug: 27960078
Change-Id: If89390ad1ddc3088a8552107bf27a51b1d3c6d02
(cherry picked from commit 2513fc3b7eb3a8b668fcf280cc8ed45bd20e1893)
2016-04-04 11:55:05 +00:00
Diego Perez
8f43dfef2b Update Path and RenderNode delegates to new API
RenderNode_Delegate nCreate now takes a reference to this. In the
Path_Delegate, the native_offset call with a destination path has been
removed.

Change-Id: I6332bb4733974b817e8a29eab82e2218fcf942c4
2016-04-04 10:18:55 +01:00
Keisuke Kuroyanagi
0fd28c9f02 Stop automatically creating action mode in FS extracted mode.
With Ic025c109539c3b59638, selection action mode is always started
when there is a selection.  This makes it impossible to extend
selection using selection mode.
This blocks creating action mode when full screen extracted mode is
started with selection, but it's same as MNC's behavior.

Bug: 27988877
Change-Id: I9614cb16373029189bfc098b6c1d353326e6b518
2016-04-04 17:43:06 +09:00
Martijn Coenen
23c8292acc Merge "Grant NFC tag app default permissions." into nyc-dev 2016-04-04 08:05:16 +00:00
Sungsoo Lim
16bbf7d8ed Merge "MediaBrowser: Make EXTRA_PAGE zero-based" into nyc-dev 2016-04-04 06:56:13 +00:00
Wonsik Kim
6e452f9e8a Don't try to compress .mkv resources
Bug: 27987970
Change-Id: I58e920e81d1e79b7fbba479d8fb34afb3911f97d
2016-04-04 15:39:40 +09:00
Yohei Yukawa
ef5b4657a8 Fix a bug that IMS#mShowInputFlags is never updated.
As a preparation to fix bug 26985193, this CL fixes a bug that
IMS#ShowInputFlags is never updated.  As a result,
IMS#onConfigurationChanged() has always called
IMS#onShowInputRequested() with specifying 0 to flags parameter, which
is wrong.

With this CL, we can assume that IMS#mShowInputFlags keeps tracking the
last value when it should do.  Also, we can remove IMS#mShowInputForced
since it is now determined by IMS#mShowInputFlags.

Bug: 26985193
Change-Id: Ieff634b69ce941d78ffe208547f7edd19ea28643
2016-04-03 22:50:11 -07:00
Donghyun Cho
cff0846154 Merge "Don't broadcast <Standby> message during shutdown when setting is disabled" into nyc-dev 2016-04-04 05:18:08 +00:00
Donghyun Cho
9ccff51b54 Don't broadcast <Standby> message during shutdown when setting is disabled
When the system is shutting down or the screen is going to be off, <Standby>
message will be broadcasted if and only if the setting variable,
Settings.Global#HDMI_CONTROL_AUTO_DEVICE_OFF_ENABLED, is enabled. This change
will make the shutdown case to be checked with the setting properly, too.

Bug: 27781559
Change-Id: Ia6605d6b5627ab1ff67285d72846b618a09548bc
2016-04-04 05:17:03 +00:00
Svetoslav Ganov
b707db0f3e Merge "Use proper package name and UID when checking write settings access" into nyc-dev 2016-04-04 05:15:22 +00:00
Svet Ganov
94ba401766 Use proper package name and UID when checking write settings access
bug:26941229

Change-Id: I338fe6dd7c1b97f273909672cdd7d4fa207185ce
2016-04-03 22:13:55 -07:00
Donghyun Cho
5ee693f460 Merge "Turn on HDMI-related logs conditionally for better debugging" into nyc-dev 2016-04-04 05:04:05 +00:00
Svetoslav Ganov
699632c6fc Merge "Kill app if revoking a permission while resetting app prefs" into nyc-dev 2016-04-04 04:18:52 +00:00
Svet Ganov
893e097157 Kill app if revoking a permission while resetting app prefs
bug:25895994

Change-Id: I78616ab5f9addbd91d2f4d12a8161544f482ec43
2016-04-03 21:16:19 -07:00
Keisuke Kuroyanagi
75aee0a681 Merge "Make TextViewActivityTest stable by sleeping between clicks." into nyc-dev 2016-04-04 03:39:20 +00:00
Keisuke Kuroyanagi
fc1d11ed9d Merge "Make hasTransientState be true only if user created selection is active." into nyc-dev 2016-04-04 03:12:32 +00:00
Sungsoo Lim
0799bd07d7 MediaBrowser: Make EXTRA_PAGE zero-based
Bug: 27948393
Change-Id: I97fb6b5f13ffb8e006ed4a7efc06e7f45fb5121a
2016-04-04 11:14:10 +09:00
Tomasz Mikolajewski
6a72a0ea9c Fix perf tests for cold startup.
Kiling ia force-stopping was invalidating the entire roots cache.

Bug: 27743087
Change-Id: Ib788cfeaa6e60c40b7277ba7ca0f2371816eded1
2016-04-04 10:34:36 +09:00
Jeff Sharkey
7d718bb252 Merge "Support direct-boot tests." into nyc-dev 2016-04-03 03:59:23 +00:00
Jeff Sharkey
b5e89c6deb Support direct-boot tests.
Add shell commands to check on current FBE status and system ready
status.  Mark variables without first-class locking as volatile.

Fix bug where UI automation would crash while device was locked by
marking it as forced direct-boot aware.

Bug: 26498834
Change-Id: Ib4dfb9350925e5413f93a09baacf84c62f2ba0ea
2016-04-02 19:31:19 -06:00
Simranjit Kohli
1bb269d8fe Merge "Fix extra data in cache" into nyc-dev 2016-04-02 06:09:27 +00:00
Simranjit Kohli
858511cd2d Fix extra data in cache
Reverting the revert.
The original CL(commit a666d74d4bc7e1298314c516d1309571fb87c212) had a 
bug in it. It was calling accountExistsCacheLocked(), while holding 
accounts.cacheLock. The function accountExistsCacheLocked, was in turn
calling into getUserAccounts, which acquires mUsers. And this causes
trouble. mUsers is a a lock on all accounts, and hence calling it after
holding accounts.cachelock is calling for trouble. Since the locks are 
acquired in other order, it causes a potential deadlock issue, which we 
discovered later on.

That bug was fixed by commit 0e592733ecbde2b7e7f2aa92001656dfbcae9641.
We already have useraccount object and should reuse it.

This reverts commit 27d0e1fd660a7e92644ab6a2893ac1149f0c0488. This 
commit was unneeded as the bug had been fixed by that time.

Change-Id: I5328c31fd485fd2c1c652cd0e7c2c4bded38a5fd
2016-04-02 05:10:47 +00:00
Ashutosh Joshi
a83a1dc34a Merge "Added handling apps query response from context hub" into nyc-dev 2016-04-02 04:18:38 +00:00
Mihai Niță
5d580baa50 Merge "Fix suggestions in the language selector" into nyc-dev 2016-04-02 03:24:54 +00:00
Ashutosh Joshi
b741e3b374 Added handling apps query response from context hub
Added handling of app query reponse from context hub.
Exposed the maximum message size to clients.

Change-Id: Ie96a860774d005ad6ad72acc88dc79964835486b
2016-04-01 20:10:27 -07:00
Chong Zhang
57f3d4632b Fix missing exit animation when app is closed during starting window
When the transistion starts and we setTokenVisibilityLocked, mark all
relevant window flags on a starting window that's running exit animation.
This makes sure the starting window is removed when animation finishes.

bug: 27747191
Change-Id: I917ca18583e31db9a3e49ea70aae932c242877b8
2016-04-01 19:11:43 -07:00
Jorim Jaggi
958f00f396 Do not clear INSCREEN and INSET_DECOR for resolver
Since we switched this activity to draw the system bar backgrounds,
and clearing these flags leads to that we don't get the insets
communicated, we need to remove the clearing of the flags.

Bug: 27914346
Change-Id: I72114ac7cec40933fa45891b3d1441bd30f883d4
2016-04-02 01:18:24 +00:00
Adam Powell
7af7e3d18e Merge "Don't performPendingDeferredStart on fragments that aren't added" into nyc-dev 2016-04-02 01:09:00 +00:00