237499 Commits

Author SHA1 Message Date
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
Jean-Michel Trivi
e731fab348 Merge "AudioTrack.Builder: fix javadoc code sample" into nyc-dev 2016-04-02 00:55:20 +00:00
Andrii Kulian
41da89cddf Set correct bounds when docked stack is removed
Set bounds to null when docked stack is removed and other stacks are
resized to occupy whole display area. It ensures that stacks will have
correct fullscreen status.

Bug: 27857485
Change-Id: Ifbb8de54e6e5af3da1266b60d53656e4278fb75d
2016-04-01 17:44:59 -07:00
Jean-Michel Trivi
49962261b3 AudioTrack.Builder: fix javadoc code sample
Fix sample rate in javadoc code sample.

Bug 24499652

Change-Id: I8d92ff34981cb4486e780d74213ed88fd3f74cc6
2016-04-01 17:23:19 -07:00
Winson Chung
50a2d43bff Merge "Updating screenshot icon." into nyc-dev 2016-04-02 00:22:50 +00:00
Winson Chung
8f55b89530 Merge "Disabling the nav bar scrim when Recents is docked." into nyc-dev 2016-04-02 00:22:37 +00:00
Jorim Jaggi
f4fa8cb79b Fix flicker when unlocking
When the device was locked the fullscreen stack was laid out
fulllscreen, even though the configuration was half-screen, which
lead to a race between the app drawing and the unlock animation
so sometimes you could see the fullscreen frame when the unlock
animation started.

Instead, only layout in fullscreen if the docked stack is fully
"hidden".

Bug: 27154882
Change-Id: I4ba0c396eb0312c2bf2d911903b68c88d28aae8c
2016-04-02 00:14:56 +00:00
Winson
c71703e824 Updating screenshot icon.
Bug: 27616556	
Change-Id: I613f8914330e3ad86856fb2bbe60adb4df09973d
2016-04-02 00:02:23 +00:00
Mihai Nita
86235d4970 Fix suggestions in the language selector
The current implementation makes the decision based on the
list of locales translated in frameworks/base

It will break if we remove country from the resource locale IDs
(e.g. fr-FR => fr)
It also offers no flexibility in case we want to suggest a country
based on other criteria.

Bug: 27378061
Change-Id: I3d8514e8abff83a4c98c5658533738611cf12576
2016-04-01 17:01:01 -07:00
Winson Chung
c6d7160e6b Merge "Fixing issue with transition jump due to wrong insets." into nyc-dev 2016-04-01 23:52:21 +00:00
Felipe Leme
c83ce39a8e Merge "Removed get-metered-network command." into nyc-dev 2016-04-01 23:43:39 +00:00
Robert Shih
c67abec674 Fix MediaExtractor.getDrmInitData implementation for webm
Should lookup "crypto-key" in individual track formats instead of file format.

Bug: 26070802
Change-Id: I1a0f59e7bca1d311631e7ad90b9a403ac20d319b
2016-04-01 16:25:53 -07:00
Makoto Onuki
b1a684c646 Merge "ShortcutManager: implement backup & restore" into nyc-dev 2016-04-01 23:18:43 +00:00
George Mount
1747022004 Merge "Removed improper check on mCalledExitCoordinator." into nyc-dev 2016-04-01 23:06:59 +00:00
Ajay Panicker
4bb4830b75 Get name and address without enabling Bluetooth
Bug: 27665077
Change-Id: I2a06c1a65f22b2f9095a859f5bdd39d4626da165
2016-04-01 22:53:52 +00:00
Jorim Jaggi
409635b20b Allow app to force orientation if dock minimized
Change-Id: I4bf1346de83922f866095465470e1a1c305b71a1
Fixes: 27437129
2016-04-01 22:40:03 +00:00
Felipe Leme
b9aee90ab5 Removed get-metered-network command.
The behavior of this command was not well specified in case of errors,
so it's better to remove it and let clients use 'list wifi-networks'
instead, checking for the value of the 'metered' column.

BUG: 27808364

Change-Id: I3f4216c143b4b2a803b99002585fafe0e3885665
2016-04-01 15:38:05 -07:00
Chong Zhang
d19342a83d fix build break
bug: 27834014
Change-Id: Ib5d03818d285c50d220c45ebace635faf6771ff3
2016-04-01 15:31:46 -07:00
Winson
500ba75c9a Disabling the nav bar scrim when Recents is docked.
Bug: 27869246

Change-Id: I554b299c7e577f40811fc02d6ff4a46313ff1622
2016-04-01 15:30:43 -07:00
Adam Powell
b963c99c3a Don't performPendingDeferredStart on fragments that aren't added
Framework edition

When setting a user visibility hint on a fragment it was possible to
have a FragmentManager already set due to a transaction being composed
but before the commit, so only checking that we have one isn't
sufficient for determining whether we should perform a pending
deferred start. This could happen easily with ViewPager adapters. Use
isAdded() instead.

Also fix a bug where we could set our internal tracking of fragments
that need a deferred start incorrectly.

Bug 27814550

Change-Id: I3be65728650c48d27a3a9dd4ca15f52006d14ab9
2016-04-01 15:29:04 -07:00
Toni Barzic
1c2db8992f Merge "Teach keyguard about PASSWORD_QUALITY_MANAGED" into nyc-dev 2016-04-01 22:28:57 +00:00
Winson
cf9b8326ce Fixing issue with transition jump due to wrong insets.
Bug: 27921362
Change-Id: I4139be85253451a70bedbf3b860fc7d652704b0b
2016-04-01 15:26:03 -07:00
Chong Zhang
6c71c0b86b Never "save" if the surface control is null.
This may or may not happen, but putting in some preventative measure and
extra logging to help debug crashes related to null mSurfaceController.

bug: 27533667
Change-Id: I010147da819402c48efd26a7cc631776052a702d
2016-04-01 15:23:10 -07:00
Joe LaPenna
f38aa6ba2b Merge "Fix NPE in AlarmManager.cancel(...)" into nyc-dev 2016-04-01 22:22:46 +00:00
Ryan Bavetta
79700d215a Merge "Adds Soundtrigger Stub HAL Fuzz Test" into nyc-dev 2016-04-01 22:20:44 +00:00
Winson
9a54ac4a46 Fixing regression in drawing thumbnail background.
- Between the time that the task view is bound and the thumbnail is 
  loaded, we should still draw the background color instead of nothing.

Bug: 27971061
Change-Id: I5b7a607b86a0da20fc6ca183b1d7bc4e9db9e377
2016-04-01 22:18:29 +00:00
Ryan Bavetta
a0319cb5c4 Adds Soundtrigger Stub HAL Fuzz Test
Change-Id: I7035a6332c93f2630b0114dc6930e66f89cc86cd
2016-04-01 15:18:02 -07:00
Jorim Jaggi
e6e108e0eb Launch everything from the shade in full-screen stack
Bug: 27864383
Change-Id: I2925661f1c325f4385876188a5866ab6b57a8f19
2016-04-01 22:17:58 +00:00