OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge changes from topic 'am-20fc942671704f459c945a1b626498cb'
Android Build Merger (Role) [Tue, 24 Jan 2017 18:48:35 +0000 (18:48 +0000)]
Merge changes from topic 'am-20fc942671704f459c945a1b626498cb'

* changes:
  Merge "Change HFP Client API to support multi device am: c8399321e9" into nyc-mr2-dev-plus-aosp am: 9ac9632ed3
  Change HFP Client API to support multi device am: c8399321e9 am: 3978435d5a

7 years agoMerge "Increase Night Display transition to 3 seconds"
Christine Franks [Tue, 24 Jan 2017 18:46:41 +0000 (18:46 +0000)]
Merge "Increase Night Display transition to 3 seconds"

7 years agoMerge "Change HFP Client API to support multi device am: c8399321e9" into nyc-mr2...
Sanket Agarwal [Tue, 24 Jan 2017 18:46:11 +0000 (18:46 +0000)]
Merge "Change HFP Client API to support multi device am: c8399321e9" into nyc-mr2-dev-plus-aosp
am: 9ac9632ed3

Change-Id: I544e52352fd8d66c8f2028ad610f13aa9d6d6ba6

7 years agoChange HFP Client API to support multi device am: c8399321e9
Sanket Agarwal [Tue, 24 Jan 2017 18:45:43 +0000 (18:45 +0000)]
Change HFP Client API to support multi device am: c8399321e9
am: 3978435d5a

Change-Id: Ib9b59a18cb9633caa63c5ac723e9e12c1138f513

7 years agoMerge "Merge "Fix typo in the IS_OMPT_VOICEMAIL field." into nyc-mr2-dev am: 70f920fa...
Android Build Merger (Role) [Tue, 24 Jan 2017 18:45:10 +0000 (18:45 +0000)]
Merge "Merge "Fix typo in the IS_OMPT_VOICEMAIL field." into nyc-mr2-dev am: 70f920fa0c am: 5c2aa05bfb"

7 years agoMerge "Fix typo in the IS_OMPT_VOICEMAIL field." into nyc-mr2-dev am: 70f920fa0c
Ta-wei Yen [Tue, 24 Jan 2017 18:43:58 +0000 (18:43 +0000)]
Merge "Fix typo in the IS_OMPT_VOICEMAIL field." into nyc-mr2-dev am: 70f920fa0c
am: 5c2aa05bfb

Change-Id: I583722ca6ac52499d027f6660393647e6051a4c5

7 years agoMerge "Fix typo in the IS_OMPT_VOICEMAIL field. am: 57365441d4 am: e696c3d911"
Android Build Merger (Role) [Tue, 24 Jan 2017 18:43:24 +0000 (18:43 +0000)]
Merge "Fix typo in the IS_OMPT_VOICEMAIL field. am: 57365441d4 am: e696c3d911"

7 years agoFix typo in the IS_OMPT_VOICEMAIL field. am: 57365441d4
Ta-wei Yen [Tue, 24 Jan 2017 18:42:46 +0000 (18:42 +0000)]
Fix typo in the IS_OMPT_VOICEMAIL field. am: 57365441d4
am: e696c3d911

Change-Id: I380e1a15f1c13009b876dd0347ef811cd3f70aed

7 years agoMerge "Merge "Mark the INetworkScoreCache as oneway." am: edadb3efc3 am: 4fcc44dc9a...
Android Build Merger (Role) [Tue, 24 Jan 2017 18:42:22 +0000 (18:42 +0000)]
Merge "Merge "Mark the INetworkScoreCache as oneway." am: edadb3efc3 am: 4fcc44dc9a am: ea65f9d392 am: 577aac1385"

7 years agoMerge "Mark the INetworkScoreCache as oneway." am: edadb3efc3 am: 4fcc44dc9a am:...
Jeremy Joslin [Tue, 24 Jan 2017 18:41:47 +0000 (18:41 +0000)]
Merge "Mark the INetworkScoreCache as oneway." am: edadb3efc3 am: 4fcc44dc9a am: ea65f9d392
am: 577aac1385

Change-Id: I9044cfa8445014d08bc416e46811c57e5972d653

7 years agoMerge "Merge "Query for the settings package in KeyguardManager instead of hardcoding...
Android Build Merger (Role) [Tue, 24 Jan 2017 18:41:22 +0000 (18:41 +0000)]
Merge "Merge "Query for the settings package in KeyguardManager instead of hardcoding it." into cw-f-dev am: 8ac1bff7e2 am: 20d79203be am: 60e03c36b7"

7 years agoMerge "Query for the settings package in KeyguardManager instead of hardcoding it...
Nancy Zheng [Tue, 24 Jan 2017 18:40:42 +0000 (18:40 +0000)]
Merge "Query for the settings package in KeyguardManager instead of hardcoding it." into cw-f-dev am: 8ac1bff7e2 am: 20d79203be
am: 60e03c36b7

Change-Id: I5790f4748bf2b3f09b4d2efb66ecba117d289844

7 years agoMerge "Query for the settings package in KeyguardManager instead of hardcoding it...
Android Build Merger (Role) [Tue, 24 Jan 2017 18:40:18 +0000 (18:40 +0000)]
Merge "Query for the settings package in KeyguardManager instead of hardcoding it. am: e256a18dcd am: 11bdbd1145 am: 52b8412742"

7 years agoQuery for the settings package in KeyguardManager instead of hardcoding it. am: e256a...
Nancy Zheng [Tue, 24 Jan 2017 18:39:42 +0000 (18:39 +0000)]
Query for the settings package in KeyguardManager instead of hardcoding it. am: e256a18dcd am: 11bdbd1145
am: 52b8412742

Change-Id: I050903bafefed0d80961901ac98d67f7cc22dfaa

7 years agoMerge "Merge "Query for the settings package in KeyguardManager instead of hardcoding...
Android Build Merger (Role) [Tue, 24 Jan 2017 18:39:23 +0000 (18:39 +0000)]
Merge "Merge "Query for the settings package in KeyguardManager instead of hardcoding it." into cw-f-dev am: 8ac1bff7e2 am: d0c5f0047f am: 7a86073718"

7 years agoMerge "Adding AppOps setting for entering PiP when hidden."
TreeHugger Robot [Tue, 24 Jan 2017 18:38:49 +0000 (18:38 +0000)]
Merge "Adding AppOps setting for entering PiP when hidden."

7 years agoMerge "Query for the settings package in KeyguardManager instead of hardcoding it...
Nancy Zheng [Tue, 24 Jan 2017 18:38:41 +0000 (18:38 +0000)]
Merge "Query for the settings package in KeyguardManager instead of hardcoding it." into cw-f-dev am: 8ac1bff7e2 am: d0c5f0047f
am: 7a86073718

Change-Id: I9c1cc2e674be02d9440024c3b64432cf0c3d371d

7 years agoMerge "Fixing error calculating the top pinned activity."
TreeHugger Robot [Tue, 24 Jan 2017 18:20:09 +0000 (18:20 +0000)]
Merge "Fixing error calculating the top pinned activity."

7 years agoMerge "Add long-click to app info for plugin settings"
Jason Monk [Tue, 24 Jan 2017 17:49:43 +0000 (17:49 +0000)]
Merge "Add long-click to app info for plugin settings"

7 years agoMerge "Add Settings.Global configs to high temp warning."
Andrew Sapperstein [Tue, 24 Jan 2017 17:34:28 +0000 (17:34 +0000)]
Merge "Add Settings.Global configs to high temp warning."

7 years agoMerge changes I5df77ae5,Ice538d09,I2451be87,I953ab6cb,Ie1b8debc
Jorim Jaggi [Tue, 24 Jan 2017 17:32:28 +0000 (17:32 +0000)]
Merge changes I5df77ae5,Ice538d09,I2451be87,I953ab6cb,Ie1b8debc

* changes:
  If the surface of a window is displayed, screenshot
  Update starting window fade out to spec
  Fill task snapshot with background color
  Add starting windows while unlocking
  Starting window tests, yay!

7 years agoMerge "Fix crash on user switch"
TreeHugger Robot [Tue, 24 Jan 2017 17:23:04 +0000 (17:23 +0000)]
Merge "Fix crash on user switch"

7 years agoMerge "Implement time markers for TTS."
Niels Egberts [Tue, 24 Jan 2017 17:19:30 +0000 (17:19 +0000)]
Merge "Implement time markers for TTS."

7 years agoAdding AppOps setting for entering PiP when hidden.
Winson Chung [Sat, 21 Jan 2017 00:14:51 +0000 (16:14 -0800)]
Adding AppOps setting for entering PiP when hidden.

- In O, apps can request to enter picture-in-picture when the user
  effectively leaves their activity for another task by default. To
  prevent this from being abused, we need to add a setting for the
  user to disable this behavior per-package in the system level.
  When disabled, any activity from that package will only be able
  to enter picture-in-picture when it is visible and resumed.

Bug: 34520451
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testAppOpsDenyPipOnPause
Change-Id: Ib3a993e99ffb071706c6b7d3fb1c882b74acc5d7
Signed-off-by: Winson Chung <winsonc@google.com>
7 years agoMerge "Implement TextClassification-related methods."
TreeHugger Robot [Tue, 24 Jan 2017 16:54:52 +0000 (16:54 +0000)]
Merge "Implement TextClassification-related methods."

7 years agoMerge "Create Public API which exposes if the device is in a state where simultaneous...
Pankaj Kanwar [Tue, 24 Jan 2017 16:47:02 +0000 (16:47 +0000)]
Merge "Create Public API which exposes if the device is in a state where simultaneous voice and data are possible."

7 years agoMerge "Fix ImeSubtypeListItem#compareTo()"
Yohei Yukawa [Tue, 24 Jan 2017 16:37:06 +0000 (16:37 +0000)]
Merge "Fix ImeSubtypeListItem#compareTo()"

7 years agoMerge "Changes the default value of Notification.Action.mAllowGeneratedReplies"
Alexander Hills [Tue, 24 Jan 2017 16:31:38 +0000 (16:31 +0000)]
Merge "Changes the default value of Notification.Action.mAllowGeneratedReplies"

7 years agoFix crash on user switch
Jason Monk [Tue, 24 Jan 2017 15:53:57 +0000 (10:53 -0500)]
Fix crash on user switch

Don't re-register a user switcher while getting a user switched
callback, because that will cause a crash.

Test: switch users.
Fixes: 34661001
Change-Id: I31453d75aabe6ecd657e7500cf1823890d5262a0

7 years agoChanges the default value of Notification.Action.mAllowGeneratedReplies
Alex Hills [Thu, 12 Jan 2017 16:24:46 +0000 (11:24 -0500)]
Changes the default value of Notification.Action.mAllowGeneratedReplies

Changes the default from false to true

Bug:31934635
Fixes:31934635
Test: CTS tests in ag/1824710
Change-Id: I1c7097627e77eed12bb9cc644c1cbb5c3197a750

7 years agoMerge "Provisioning terms screen constants"
Mahaver Chopra [Tue, 24 Jan 2017 15:33:53 +0000 (15:33 +0000)]
Merge "Provisioning terms screen constants"

7 years agoImplement time markers for TTS.
Niels Egberts [Fri, 23 Dec 2016 12:01:32 +0000 (12:01 +0000)]
Implement time markers for TTS.

The service can inform the framework at which frame a part of the input
is spoken, and that information is then relayed to the client.

This can be used to highlight the currently spoken word/sentence or to
resume synthesis requests at the start of the last word/sentence.

Test: manual
Change-Id: Ie20a6764a8788cc3539cb058425e55eb6fde07db

7 years agoIf the surface of a window is displayed, screenshot
Jorim Jaggi [Tue, 24 Jan 2017 15:21:39 +0000 (16:21 +0100)]
If the surface of a window is displayed, screenshot

We really really don't care about whether it's actually visible,
onScreen, displayed, winVisible, visibleNow, readyForDisplay or
whatever. The only thing that matters when screenshotting is the
fact whether the surface is shown or not. If it's shown, it must
be good enough for screenshotting. Period.

Test: Go to settings, go to recents, make sure screenshot is taken
all the time.
Bug: 31339431
Change-Id: I5df77ae537b5e70f6cb17e5e18405926135d4312

7 years agoUpdate starting window fade out to spec
Jorim Jaggi [Mon, 23 Jan 2017 15:30:43 +0000 (16:30 +0100)]
Update starting window fade out to spec

Test: Open app, make sure starting window disappears nicely
Bug: 31339431
Change-Id: Ice538d0937f17ed6901ab56ef208f9a327250d51

7 years agoFill task snapshot with background color
Jorim Jaggi [Mon, 23 Jan 2017 15:20:53 +0000 (16:20 +0100)]
Fill task snapshot with background color

Make sure to fill the portions that are not covered by the
snapshot are filled with the task background color.

Also fix an issue where the starting window was removed across
configuration changes.

Test: runtest frameworks-services -c
com.android.server.wm.TaskSnapshotSurfaceTest
Bug: 31339431
Change-Id: I2451be87aff79b337015ab4bba72cfa03c0d3582

7 years agoMerge "Add updatable fields to Ranking"
Julia Reynolds [Tue, 24 Jan 2017 15:15:24 +0000 (15:15 +0000)]
Merge "Add updatable fields to Ranking"

7 years agoMerge "add "splitName" attribute"
TreeHugger Robot [Tue, 24 Jan 2017 15:13:47 +0000 (15:13 +0000)]
Merge "add "splitName" attribute"

7 years agoImplement TextClassification-related methods.
Abodunrinwa Toki [Fri, 13 Jan 2017 21:46:33 +0000 (13:46 -0800)]
Implement TextClassification-related methods.

 Implements TextClassificationManager.detectLanguages
 Implements TextClassifier interface

Bug: 34661057
Test: See: Ic2a5eceeaec4cd2943c6c753084df46d30511fee
Change-Id: Ic640b96f48bcad7cdd8c4dfac354b008a7ae3961

7 years agoMerge "[SettingsProvider] Auto disable ringtone sync"
TreeHugger Robot [Tue, 24 Jan 2017 15:05:22 +0000 (15:05 +0000)]
Merge "[SettingsProvider] Auto disable ringtone sync"

7 years agoMerge "Update TextAssistant interface."
Abodunrinwa Toki [Tue, 24 Jan 2017 15:04:26 +0000 (15:04 +0000)]
Merge "Update TextAssistant interface."

7 years agoUpdate TextAssistant interface.
Abodunrinwa Toki [Wed, 4 Jan 2017 23:51:42 +0000 (23:51 +0000)]
Update TextAssistant interface.

Rename to TextClassifier
Move to android.view.textclassifier package
Adds getTextClassifierInfo(...)
Changes addLinks(...) to getLinks(...)

This CL also integrates this interface with framework components
and passes a context to TextClassificationManager.

Test: Tests will be added with implementation.
Bug: 34661057
Change-Id: If9e90f034ebb702c1f78e72b6a844f39eebf738f

7 years agoMerge "Tron - Omit overlong lines and warn when doing so."
Alison Cichowlas [Tue, 24 Jan 2017 14:39:26 +0000 (14:39 +0000)]
Merge "Tron - Omit overlong lines and warn when doing so."

7 years agoAdd updatable fields to Ranking
Julia Reynolds [Thu, 19 Jan 2017 14:52:07 +0000 (09:52 -0500)]
Add updatable fields to Ranking

- NotificationChannel
- Badging

Test: runtest systemuinotification & cts

Change-Id: I7fd1f2dc06148927e9a4bd5b760d436e2c5e8a98

7 years agoAdd starting windows while unlocking
Jorim Jaggi [Fri, 20 Jan 2017 15:59:03 +0000 (16:59 +0100)]
Add starting windows while unlocking

- Modify screen capturing logic a bit such that it can also take a
  screenshot when the display is off.
- Also take snapshot when app visibility is changing without
  proper app transition.
- When unlocking, add strating windows for all visible apps.

Test: Unlock phone.
Test: Have an app that sleeps in onStart, make sure unlocking is
instant.
Bug: 31339431
Change-Id: I953ab6cb30d0d264554fd49a46bdc56e23356d13

7 years agoStarting window tests, yay!
Jorim Jaggi [Thu, 19 Jan 2017 16:28:30 +0000 (17:28 +0100)]
Starting window tests, yay!

Test: bit FrameworksServicesTests:com.android.server.wm.AppWindowContainerControllerTests
Fixes: 34364463
Fixes: 34361417
Change-Id: Ie1b8debc894e5cad8fe517912a1991a38661dfaa

7 years agoMerge "Merge commit '12562abcd47de4aee3b0469cb04bf771c2072113' into manual_merge_1256...
TreeHugger Robot [Tue, 24 Jan 2017 11:35:14 +0000 (11:35 +0000)]
Merge "Merge commit '12562abcd47de4aee3b0469cb04bf771c2072113' into manual_merge_12562abcd47d"

7 years ago[SettingsProvider] Auto disable ringtone sync
Andre Lago [Thu, 22 Sep 2016 17:00:41 +0000 (18:00 +0100)]
[SettingsProvider] Auto disable ringtone sync

Disable the SYNC_PARENT_SOUNDS setting if a work profile ringtone is set

Test: cts-tradefed --test com.android.cts.devicepolicy.ManagedProfileTest
Bug: 30658854
Change-Id: I172f5396b47f03ac8afa365db0ec90f3a2dd0e29

7 years agoFix ImeSubtypeListItem#compareTo()
Yohei Yukawa [Tue, 24 Jan 2017 08:29:07 +0000 (00:29 -0800)]
Fix ImeSubtypeListItem#compareTo()

It turns out that ImeSubtypeListItem#compareTo() does not satisfy the
contract of Comparable#compareTo(), which can trigger
IllegalArgumentException from Collections.sort() depending on the
runtime condition.

This CL makes it clear that two instances of ImeSubtypeListItem will be
compared with with those fileds in the following order.

  1. ImeSubtypeListItem#mImeName
  2. ImeSubtypeListItem#mSubtypeName
  3. ImeSubtypeListItem#mIsSystemLocale
  4. ImeSubtypeListItem#mIsSystemLanguage

Bug: 34255739
Test: adb shell am instrument -w -e class com.android.internal.inputmethod.InputMethodSubtypeSwitchingControllerTest com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Change-Id: I47f902cc8f5873926d238c30e462d08d7dbebcf7

7 years agoMerge "Add an accidentally removed call to update libs"
TreeHugger Robot [Tue, 24 Jan 2017 05:58:36 +0000 (05:58 +0000)]
Merge "Add an accidentally removed call to update libs"

7 years agoMerge "More APIs for cache status and behavior."
TreeHugger Robot [Tue, 24 Jan 2017 05:32:56 +0000 (05:32 +0000)]
Merge "More APIs for cache status and behavior."

7 years agoMerge "Fix crashloop in CarStatusBar."
TreeHugger Robot [Tue, 24 Jan 2017 04:04:34 +0000 (04:04 +0000)]
Merge "Fix crashloop in CarStatusBar."

7 years agoMore APIs for cache status and behavior.
Jeff Sharkey [Tue, 24 Jan 2017 03:37:05 +0000 (20:37 -0700)]
More APIs for cache status and behavior.

Add APIs for apps to query their cache usage compared to their
currently allocated quota.  Since an app's private storage may live
on a different storage volume than the primary shared/external
storage, offer APIs to retrieve those values separately.

Add APIs to control two new cache purging behaviors:

-- setCacheBehaviorAtomic() which causes a marked directory and its
contents to be treated as an atomic unit.
-- setCacheBehaviorTombstone() which causes the OS to truncate
files instead of deleting them.

Test: builds, boots
Bug: 338118263396585827948817
Change-Id: I45de165623775c359f78b4ee544c2b5831b8d483

7 years agoMerge "Introduce RecoverableSecurityException."
Jeff Sharkey [Tue, 24 Jan 2017 03:19:15 +0000 (03:19 +0000)]
Merge "Introduce RecoverableSecurityException."

7 years agoFixing error calculating the top pinned activity.
Winson Chung [Tue, 24 Jan 2017 03:08:37 +0000 (19:08 -0800)]
Fixing error calculating the top pinned activity.

- When the menu was open, we were not calculating the correct
  top-activity to determine whether to relaunch fullscreen or to show
  media controller actions for.  Also fixes a bad condition check
  where we were setting the expand to fullscreen flag incorrectly.

Bug: 33754261
Test: Open a PIP activity, try to launch it again from launcher while the menu is visible
Change-Id: I3fd3dfe83a017c76cca9709f29c08621b16fb088

7 years agoMerge "Allow the profile owner to enforce auto time."
Jason Parks [Tue, 24 Jan 2017 02:46:26 +0000 (02:46 +0000)]
Merge "Allow the profile owner to enforce auto time."

7 years agoMerge "Change HFP Client API to support multi device am: c8399321e9" into nyc-mr2...
Android Build Merger (Role) [Tue, 24 Jan 2017 02:20:07 +0000 (02:20 +0000)]
Merge "Change HFP Client API to support multi device am: c8399321e9" into nyc-mr2-dev-plus-aosp

7 years agoChange HFP Client API to support multi device
Sanket Agarwal [Tue, 24 Jan 2017 02:18:54 +0000 (02:18 +0000)]
Change HFP Client API to support multi device
am: c8399321e9

Change-Id: I96dd85f1bee2f39f683d6ee11b5ab4e8b9a7f217

7 years agoMerge "Fix typo in the IS_OMPT_VOICEMAIL field." into nyc-mr2-dev
Ta-wei Yen [Tue, 24 Jan 2017 02:18:30 +0000 (02:18 +0000)]
Merge "Fix typo in the IS_OMPT_VOICEMAIL field." into nyc-mr2-dev
am: 70f920fa0c

Change-Id: If2936ae00b37750362a56975ba7c42a6c30984aa

7 years agoFix typo in the IS_OMPT_VOICEMAIL field.
Ta-wei Yen [Tue, 24 Jan 2017 02:18:26 +0000 (02:18 +0000)]
Fix typo in the IS_OMPT_VOICEMAIL field.
am: 57365441d4

Change-Id: I060ed862bd929875848753d77e6fc3ff8a48e32c

7 years agoMerge "Document dependency between Intent symbols and dumpstate"
Chris Tate [Tue, 24 Jan 2017 02:17:11 +0000 (02:17 +0000)]
Merge "Document dependency between Intent symbols and dumpstate"

7 years agoMerge "Expose colorimetry capabilities on Display"
TreeHugger Robot [Tue, 24 Jan 2017 02:15:54 +0000 (02:15 +0000)]
Merge "Expose colorimetry capabilities on Display"

7 years agoDocument dependency between Intent symbols and dumpstate
Christopher Tate [Mon, 23 Jan 2017 20:21:13 +0000 (12:21 -0800)]
Document dependency between Intent symbols and dumpstate

Bug 34594835

Test: N/A
Change-Id: I4494c224bc6341c7a41b79361ba599befc408341

7 years agoFix crashloop in CarStatusBar.
Rakesh Iyer [Tue, 24 Jan 2017 02:10:21 +0000 (18:10 -0800)]
Fix crashloop in CarStatusBar.

System ui seems to be undergoing a refactor to bring in
dependency injection, in the process, mBatteryController
in CarStatusBar was not being set, causing a NPE.

Since it looks like the work is still ongoing, this is
just a spot fix for the crash, once the dependency injection
migration is complete, we can reexamine the CarStatusBar
implementation.

Bug: 34633087
Test: Verified that system booted correctly.
Change-Id: Idd3e0286fd87196ae572349904d5bef744d54353

7 years agoCreate Public API which exposes if the device is in a state where simultaneous
pkanwar [Thu, 19 Jan 2017 20:24:19 +0000 (12:24 -0800)]
Create Public API which exposes if the device is in a state where simultaneous
voice and data are possible.

BUG: 32912296
Test: Not required.
Change-Id: If603aa37c774157f0a3af12ca4ac6bafad94340d

7 years agoMerge "Delay tasks from IMMS constructor to later phase"
Yohei Yukawa [Tue, 24 Jan 2017 01:51:04 +0000 (01:51 +0000)]
Merge "Delay tasks from IMMS constructor to later phase"

7 years agoMerge "Eliminating sections."
TreeHugger Robot [Tue, 24 Jan 2017 01:41:54 +0000 (01:41 +0000)]
Merge "Eliminating sections."

7 years agoIncrease Night Display transition to 3 seconds
Christine Franks [Wed, 18 Jan 2017 22:55:00 +0000 (14:55 -0800)]
Increase Night Display transition to 3 seconds

Bug: 34287165
Test: manual - Night Display transitions to amber/transparent over
three seconds.

Change-Id: Ia39d162ffdafb5e8920a0e392dc913d849453169

7 years agoMerge "Fix NPE in LockPatternUtils"
TreeHugger Robot [Tue, 24 Jan 2017 01:26:39 +0000 (01:26 +0000)]
Merge "Fix NPE in LockPatternUtils"

7 years agoMerge "Add an 'am crash' shell command"
TreeHugger Robot [Tue, 24 Jan 2017 01:25:09 +0000 (01:25 +0000)]
Merge "Add an 'am crash' shell command"

7 years agoExpose colorimetry capabilities on Display
Romain Guy [Sat, 21 Jan 2017 02:41:06 +0000 (18:41 -0800)]
Expose colorimetry capabilities on Display

Test: CtsDisplayTestCases
Bug: 32984164
Change-Id: I11e6a85a27959c578eeac276ac0e2c8ab8db70bf

7 years agoMerge "Test: AccountManagerService APCT test."
Hongming Jin [Tue, 24 Jan 2017 00:50:18 +0000 (00:50 +0000)]
Merge "Test: AccountManagerService APCT test."

7 years agoMerge "Send USB_STATE broadcast to manifest receivers"
Chris Tate [Tue, 24 Jan 2017 00:49:27 +0000 (00:49 +0000)]
Merge "Send USB_STATE broadcast to manifest receivers"

7 years agoAdd Settings.Global configs to high temp warning.
Andrew Sapperstein [Fri, 20 Jan 2017 23:41:03 +0000 (15:41 -0800)]
Add Settings.Global configs to high temp warning.

Test: manual
Bug: 34480261
Change-Id: Icfd08c1c7dae456920b3978918ee01469e1dec95

7 years agoAdd an accidentally removed call to update libs
Svetoslav Ganov [Tue, 24 Jan 2017 00:36:40 +0000 (16:36 -0800)]
Add an accidentally removed call to update libs

Disabled system package may define a lib which its
update does not. When the update is uninstalled we
need to upate the libs so ppl can use the lib in
the now restored sys package.

Change-Id: I22e6aafde86838fa76aa74eda8dfe2c528f998aa

7 years agoIntroduce RecoverableSecurityException.
Jeff Sharkey [Mon, 23 Jan 2017 23:58:02 +0000 (16:58 -0700)]
Introduce RecoverableSecurityException.

This takes advantage of the recently added behavior that offers to
send Parcelable exception types across Binder calls.

Certain SecurityException can be resolved if we involve the end user,
such as when a password has expired, or a user challenge is required
to proceed.  This new subclass of SecurityException provides
user-visible messaging and convenience methods for quickly rendering
that messaging as a notification or dialog.

Test: builds, boots, throws, shows as notification and dialog
Bug: 33749182
Change-Id: Iba66c7466b8fabca9e3f83c60db5a4ab849a256f

7 years agoMerge "Use @CriticalNative in Canvas"
Chris Craik [Tue, 24 Jan 2017 00:14:57 +0000 (00:14 +0000)]
Merge "Use @CriticalNative in Canvas"

7 years agoMerge "light HAL uses "default" service name"
TreeHugger Robot [Tue, 24 Jan 2017 00:14:29 +0000 (00:14 +0000)]
Merge "light HAL uses "default" service name"

7 years agoMerge "Adding TvExtender channel override"
Dmitri Plotnikov [Tue, 24 Jan 2017 00:07:38 +0000 (00:07 +0000)]
Merge "Adding TvExtender channel override"

7 years agoMerge "Optimize bg check flow."
Dianne Hackborn [Tue, 24 Jan 2017 00:05:34 +0000 (00:05 +0000)]
Merge "Optimize bg check flow."

7 years agolight HAL uses "default" service name
Chris Phoenix [Mon, 23 Jan 2017 22:18:26 +0000 (14:18 -0800)]
light HAL uses "default" service name

The getService() and registerAsService() methods of interface objects
now have default parameters of "default" for the service name. HALs
will not have to use any service name unless they want to register
more than one service.

Test: builds

Bug: 33844934
Change-Id: Id22d27d7e401de426b1a236067c1b4c7f6c99a3e

7 years agoFix NPE in LockPatternUtils
Rubin Xu [Mon, 23 Jan 2017 23:55:28 +0000 (23:55 +0000)]
Fix NPE in LockPatternUtils

mDevicePolicyManager field can be null if getDevicePolicyManager()
is never called. A previous refactor removed an apparent unused call
to getDevicePolicyManager(), leading to NPE when mDevicePolicyManager
is accessed. We should always use getDevicePolicyManager() to access
DevicePolicyManager instance.

Test: manual
Bug: 34612758
Change-Id: Ic964b4ee4e3c56301295b8f0629bd005c732c5c4

7 years agoMerge "Add tests for b/34598346"
TreeHugger Robot [Mon, 23 Jan 2017 23:45:56 +0000 (23:45 +0000)]
Merge "Add tests for b/34598346"

7 years agoTron - Omit overlong lines and warn when doing so.
Alison Cichowlas [Thu, 19 Jan 2017 14:47:17 +0000 (09:47 -0500)]
Tron - Omit overlong lines and warn when doing so.

Test: updated LogBuilderTest

Change-Id: I0218acfacca53598a546cea5b3adeecd0d639031

7 years agoAllow the profile owner to enforce auto time.
Jason Parks [Tue, 17 Jan 2017 21:25:17 +0000 (15:25 -0600)]
Allow the profile owner to enforce auto time.

Test: runtest -c com.android.server.devicepolicy.DevicePolicyManagerTest frameworks-services

Change-Id: I1cb04cce5d232fba668535dd391459a050d62dd7

7 years agoMerge "PhoneStatusBar: Add test for executeRunnableDismissingKeyguard with null runnable"
TreeHugger Robot [Mon, 23 Jan 2017 23:27:53 +0000 (23:27 +0000)]
Merge "PhoneStatusBar: Add test for executeRunnableDismissingKeyguard with null runnable"

7 years agoDelay tasks from IMMS constructor to later phase
Yohei Yukawa [Mon, 23 Jan 2017 23:26:15 +0000 (15:26 -0800)]
Delay tasks from IMMS constructor to later phase

This is a preparation CL for Bug 32343335.

This CL basically addresses the concern raised in a previous CL [1]
that added several synchnonized blocks in the constructor of
InputMethodManagerService (IMMS).

After hours of code reading and investigation, it is concluded to be
safe IMMS to behave as if there was no IME available until
SystemService.PHASE_ACTIVITY_MANAGER_READY phase. This allows IMMS to
register callbacks not in the constructor but in the later phase to
addresses the concern that object references to IMMS could be leaked
into different threads before IMMS object is properly constructed.

As far as performance is concerned, basically the amount of tasks
to be done in the main thread remains same, or could be reduced a bit
if some unnecessary callback events were skipped. To confirm this, we
can check the total number of the following performance metrics.
 - StartInputMethodManagerLifecycle
 - StartActivityManagerReadyPhase

 [1]: I9d4d3d7232c984432185c10c13fb726a6158cac8
      8f202f82fd86a3b40bc5e7d62779eddff21096b1

Bug: 32343335
Test: Manual: pre-installed IME on Direct-Boot disabled device
Test: Manual: pre-installed IME on Direct-Boot enabled device
Test: Manual: user-installed IME on Direct-Boot enabled device
Test: Manual: user-installed IME on Direct-Boot disabled device
Test: Manual: user switching scenario on Direct-Boot enabled device
Test: Manual: user switching scenario on Direct-Boot disabled device
Test: Manual: device unlocking scenario on Direct-Boot enabled device
Change-Id: I5b37c450db4b25b3e635b6d634293a34eec8b9d4

7 years agoMerge "Extend carrier configs for visual voicemail"
Ta-wei Yen [Mon, 23 Jan 2017 23:22:29 +0000 (23:22 +0000)]
Merge "Extend carrier configs for visual voicemail"

7 years agoTest: AccountManagerService APCT test.
Hongming Jin [Mon, 23 Jan 2017 19:37:27 +0000 (11:37 -0800)]
Test: AccountManagerService APCT test.

Add tests for startUpdateCredentials, finishSession and isCredentialsUpdateSuggested.

Bug: 31346530
Change-Id: I8c93b6b0db50086a83894eadfcf6a2398be81b6c

7 years agoMerge "SysUI fragments: Integrate new support for constructing"
TreeHugger Robot [Mon, 23 Jan 2017 23:01:05 +0000 (23:01 +0000)]
Merge "SysUI fragments: Integrate new support for constructing"

7 years agoChange HFP Client API to support multi device
Sanket Agarwal [Fri, 20 Jan 2017 22:55:15 +0000 (14:55 -0800)]
Change HFP Client API to support multi device

- Adds BluetoothDevice as a parameter where required
- Gets rid of device management APIs that can be done via
  BluetoothProfiles instead

Test: Manual sanity tests
Bug: b/33554547
Bug: b/30984220
Change-Id: I3485ac5bfe1fcb29c774ad040fdd608e1cacb8df
(cherry picked from commit 039eeb81b5ceb5a7141ae852346e054348ac2a06)

7 years agoMerge "Fix typo in the IS_OMPT_VOICEMAIL field." into nyc-mr2-dev
Ta-wei Yen [Mon, 23 Jan 2017 22:40:36 +0000 (22:40 +0000)]
Merge "Fix typo in the IS_OMPT_VOICEMAIL field." into nyc-mr2-dev

7 years agoSend USB_STATE broadcast to manifest receivers
Christopher Tate [Mon, 23 Jan 2017 22:35:28 +0000 (14:35 -0800)]
Send USB_STATE broadcast to manifest receivers

Bug 34594920

Change-Id: I5d026f469710960b792dcf1bfebc1c07f90c6182

7 years agoMerge "Allow shared lib and package name to match"
Svetoslav Ganov [Mon, 23 Jan 2017 22:25:44 +0000 (22:25 +0000)]
Merge "Allow shared lib and package name to match"

7 years agoUse @CriticalNative in Canvas
Chris Craik [Fri, 20 Jan 2017 03:12:36 +0000 (19:12 -0800)]
Use @CriticalNative in Canvas

Bug: 33460152
Test: ViewShowHidePerfTests

Switches non-drawing @FastNative methods to @CriticalNative, except
where out arguments prevent it.

Performance in ViewShowHidePerfTests not significantly impacted.

Change-Id: I3edc963accb4f87f73d175c7b2534868602a7db3

7 years agoMerge "Do not allow ephemeral apps to access ShortcutManager"
TreeHugger Robot [Mon, 23 Jan 2017 22:24:44 +0000 (22:24 +0000)]
Merge "Do not allow ephemeral apps to access ShortcutManager"

7 years agoAllow shared lib and package name to match
Svetoslav Ganov [Mon, 23 Jan 2017 22:13:30 +0000 (14:13 -0800)]
Allow shared lib and package name to match

The old package manager implementation was guarding for
shared libs to not match any package name but due to a
bug this was not enfroced and as a result we have apps
where the package and lib match, e.g. GCore. The new
static shared lib support properly enforced the rule
breaking apps. So, this CL relexes the constraint.

Test: CTS test in the topic passes

bug:34598313

Change-Id: I15d22fd1c3a44a27c4b9b8379de3992ae553dd05

7 years agoMerge "KeyguardManager: Fix user resolution of isDeviceSecure/Locked"
Adrian Roos [Mon, 23 Jan 2017 22:21:03 +0000 (22:21 +0000)]
Merge "KeyguardManager: Fix user resolution of isDeviceSecure/Locked"

7 years agoOptimize bg check flow.
Dianne Hackborn [Sat, 21 Jan 2017 01:00:44 +0000 (17:00 -0800)]
Optimize bg check flow.

No longer need to look up the application info, target SDK is
explicitly passed in to the check.  For the external method, we
change this to just checked to see if background is completely
disabled, which doesn't need a target SDK check (and is the only
thing any of the current clients care about).

Now allow SystemUI to put targets of notification pending intents
on the temporary whitelist when they fire, so developers can avoid
dealing with background restrictions in this case (if the user
interacts with their notification, they will temporarily be
considered in the foreground).

Remove any thoughts of enforing restrictions on registerReceiver(),
so we don't need to deal with target SDK versions there (which can't
be done all that efficiently).

Also bring back the old "allow starts coming from foreground apps"
only for the MODE_IGNORE app op, since it should provide some
better compatibility.

Test: ran them.

Change-Id: Id4ea7f992d12ce4bd8e54f1dbaeb4a460a3dee59

7 years agoAdd tests for b/34598346
John Reck [Mon, 23 Jan 2017 19:20:37 +0000 (11:20 -0800)]
Add tests for b/34598346

Test: unit test passes
Bug: 34598346
Change-Id: I7e5144aa875e42487718059cc06b86e32db28702

7 years agoMerge commit '12562abcd47de4aee3b0469cb04bf771c2072113' into manual_merge_12562abcd47d
Nancy Zheng [Mon, 23 Jan 2017 22:04:19 +0000 (14:04 -0800)]
Merge commit '12562abcd47de4aee3b0469cb04bf771c2072113' into manual_merge_12562abcd47d

Test: manually tested upstream

Change-Id: I8ca2eebcb468f73bf609ed09dc141a2bf40b8697