OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Update FontsContract.requestFonts" into oc-dev
Seigo Nonaka [Wed, 26 Apr 2017 17:48:35 +0000 (17:48 +0000)]
Merge "Update FontsContract.requestFonts" into oc-dev

7 years agoMerge "Update app level fields when misc channel is updated" into oc-dev
Julia Reynolds [Wed, 26 Apr 2017 17:43:26 +0000 (17:43 +0000)]
Merge "Update app level fields when misc channel is updated" into oc-dev

7 years agoGet rid of custom negaitve save button label
Svetoslav Ganov [Tue, 25 Apr 2017 01:11:27 +0000 (18:11 -0700)]
Get rid of custom negaitve save button label

Removed the ability for an autofill provider to set
a custom string for the negative button. Also make
the old hidden APIs non-abstract to avoid runime
crashes for unimplemented methods.

Test: CtsAutoFillServiceTestCases pass

bug:37649790

Change-Id: If776d26de48382eeb064bdead5d4d5fdb0ff2e7e

7 years agoMerge "AOD: Fix layout" into oc-dev
Adrian Roos [Wed, 26 Apr 2017 16:43:50 +0000 (16:43 +0000)]
Merge "AOD: Fix layout" into oc-dev

7 years agoMerge "AOD: Remove wake up fully config flag" into oc-dev
Adrian Roos [Wed, 26 Apr 2017 16:43:30 +0000 (16:43 +0000)]
Merge "AOD: Remove wake up fully config flag" into oc-dev

7 years agoMerge "AOD: Limit visible icons on shelf" into oc-dev
Adrian Roos [Wed, 26 Apr 2017 16:43:19 +0000 (16:43 +0000)]
Merge "AOD: Limit visible icons on shelf" into oc-dev

7 years agoMerge "TIF: fix documentation in TvContract" into oc-dev
Dongwon Kang [Wed, 26 Apr 2017 16:22:08 +0000 (16:22 +0000)]
Merge "TIF: fix documentation in TvContract" into oc-dev

7 years agoMerge "Audio focus enforcement: duck automatically apps for SDK O+" into oc-dev
Jean-Michel Trivi [Wed, 26 Apr 2017 15:26:59 +0000 (15:26 +0000)]
Merge "Audio focus enforcement: duck automatically apps for SDK O+" into oc-dev

7 years agoMerge changes from topics 'AutofillContext2', 'AutofillContext' into oc-dev
Philip P. Moltmann [Wed, 26 Apr 2017 14:16:46 +0000 (14:16 +0000)]
Merge changes from topics 'AutofillContext2', 'AutofillContext' into oc-dev

* changes:
  Return all previous FillContexts onFill
  Report multiple FillContext-s onSave

7 years agoMerge "Reduce use of static variables in window manager unit tests" into oc-dev
Wale Ogunwale [Wed, 26 Apr 2017 12:35:08 +0000 (12:35 +0000)]
Merge "Reduce use of static variables in window manager unit tests" into oc-dev

7 years agoMerge "Offload the mRunningFullBackupTask.handleCancel() call from the main thread...
Michal Karpinski [Wed, 26 Apr 2017 09:44:49 +0000 (09:44 +0000)]
Merge "Offload the mRunningFullBackupTask.handleCancel() call from the main thread to another thread" into oc-dev

7 years agoMerge changes I8f5a756a,I2bac468f,I043dfefa,I2c55f96e into oc-dev
Jakub Pawlowski [Wed, 26 Apr 2017 08:16:48 +0000 (08:16 +0000)]
Merge changes I8f5a756a,I2bac468f,I043dfefa,I2c55f96e into oc-dev

* changes:
  Bluetooth: expand comments on new PHY constants
  Bluetooth: document status value in PHY read/update
  Bluetooth: Add handler parameter to connectGatt
  Get rid of the IAdvertiserCallabck

7 years agoMerge "docs: Update ListView JavaDoc comments" into oc-dev
Joe Fernandez [Wed, 26 Apr 2017 04:56:06 +0000 (04:56 +0000)]
Merge "docs: Update ListView JavaDoc comments" into oc-dev

7 years agoMerge "docs: Update ArrayAdapter JavaDoc comments" into oc-dev
Joe Fernandez [Wed, 26 Apr 2017 04:55:33 +0000 (04:55 +0000)]
Merge "docs: Update ArrayAdapter JavaDoc comments" into oc-dev

7 years agoReduce use of static variables in window manager unit tests
Wale Ogunwale [Wed, 26 Apr 2017 03:29:13 +0000 (20:29 -0700)]
Reduce use of static variables in window manager unit tests

This was causing test cross-contamination since different test might
expect different states from the variables.

Bug: 37682538
Test: tons of it!
Change-Id: Ie8a1ea400695b6346d7dfa3369b5c44bb467a33d

7 years agoUpdate FontsContract.requestFonts
Seigo Nonaka [Wed, 26 Apr 2017 02:39:23 +0000 (19:39 -0700)]
Update FontsContract.requestFonts

- Change FontsContract.requestFont plural form to meet other method
naming convension.
- Change FontsContract.requestFonts to accept CancellationSignal to
be able to notify to remote.

Bug: 37326126
Test: am instrument -w -e class android.provider.FontsContractE2ETest
      com.android.frameworks.coretests/\
      android.support.test.runner.AndroidJUnitRunner

Change-Id: I154f943eb4e7c91bff8afd86be479f72e66e5cb7

7 years agoMerge "Added missing importantForAutofill values on attributes." into oc-dev
Felipe Leme [Wed, 26 Apr 2017 02:56:04 +0000 (02:56 +0000)]
Merge "Added missing importantForAutofill values on attributes." into oc-dev

7 years agoMake sure autofill service is backed up
Svetoslav Ganov [Tue, 25 Apr 2017 22:26:03 +0000 (15:26 -0700)]
Make sure autofill service is backed up

Test: manual

bug:36638606

Change-Id: I3367b9eb40a542267fb5d49f9a8bb7aa97ca57fa

7 years agoMerge "TIF: remove c-tor for WatchNextProgram" into oc-dev
TreeHugger Robot [Wed, 26 Apr 2017 00:27:53 +0000 (00:27 +0000)]
Merge "TIF: remove c-tor for WatchNextProgram" into oc-dev

7 years agoMerge "Add concept of implicitly exposed components" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 23:50:17 +0000 (23:50 +0000)]
Merge "Add concept of implicitly exposed components" into oc-dev

7 years agoReturn all previous FillContexts onFill
Philip P. Moltmann [Tue, 25 Apr 2017 20:33:41 +0000 (13:33 -0700)]
Return all previous FillContexts onFill

Test: CtsAutoFillServiceTestCases
Fixes: 37673341
Change-Id: I80feb5bd8d6027fb4ec2dd32f5c486dae7c6bc4c

7 years agoMerge "Remove @Presubmit annotation from SettingBackupTest" into oc-dev
Wale Ogunwale [Tue, 25 Apr 2017 23:47:53 +0000 (23:47 +0000)]
Merge "Remove @Presubmit annotation from SettingBackupTest" into oc-dev

7 years agoAOD: Limit visible icons on shelf
Adrian Roos [Tue, 25 Apr 2017 23:46:49 +0000 (16:46 -0700)]
AOD: Limit visible icons on shelf

Only show up to 5 icons on AOD1.

Change-Id: I7d962ef2a4eb5e47ab35a8bdc8f133fddfb1fd84
Test: Have more than 5 notifications, trigger ambient display, observe that at most 5 icons are visible and the rest is collapsed to dots
Fixes: 37641322

7 years agoRemove @Presubmit annotation from SettingBackupTest
Wale Ogunwale [Tue, 25 Apr 2017 23:43:53 +0000 (16:43 -0700)]
Remove @Presubmit annotation from SettingBackupTest

Can be added back once the tests are fixed.

Bug: 37684646
Bug: 37682538
Test: This is it!
Change-Id: I3690bf91bf371a7ab6a477312a138c205cceee1c

7 years agoMerge "Fix include" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 23:32:07 +0000 (23:32 +0000)]
Merge "Fix include" into oc-dev

7 years agoMerge "Return correct value at initDataInjection and avoid crash" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 23:18:19 +0000 (23:18 +0000)]
Merge "Return correct value at initDataInjection and avoid crash" into oc-dev

7 years agoMerge "Fix ViewOverlay#onDescendantInvalidated" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 23:15:47 +0000 (23:15 +0000)]
Merge "Fix ViewOverlay#onDescendantInvalidated" into oc-dev

7 years agoAOD: Fix layout
Adrian Roos [Tue, 25 Apr 2017 23:09:27 +0000 (16:09 -0700)]
AOD: Fix layout

Top had too much padding, while bottom had too
little. Now looking as spec'd.

Bug: 30876804
Test: Trigger Ambient Display, observe that layout matches mocks.
Change-Id: I3ef5e7fba5ca3fbb1b6e800ed11cbe9885c1830e

7 years agoMerge "DeviceAdminService must be protected with BIND_DEVICE_ADMIN." into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 22:42:02 +0000 (22:42 +0000)]
Merge "DeviceAdminService must be protected with BIND_DEVICE_ADMIN." into oc-dev

7 years agoMerge "Ensuring that isPictureInPictureMode() mirrors dispatched mode." into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 22:38:49 +0000 (22:38 +0000)]
Merge "Ensuring that isPictureInPictureMode() mirrors dispatched mode." into oc-dev

7 years agoAdded missing importantForAutofill values on attributes.
Felipe Leme [Tue, 25 Apr 2017 22:26:46 +0000 (15:26 -0700)]
Added missing importantForAutofill values on attributes.

Fixes: 37677115
Test: manual verification compiling an app using it

Change-Id: Iaa2650c7354e8c1c476cb3803d40104ae6fc864a

7 years agoAudio focus enforcement: duck automatically apps for SDK O+
Jean-Michel Trivi [Tue, 25 Apr 2017 22:23:17 +0000 (15:23 -0700)]
Audio focus enforcement: duck automatically apps for SDK O+

Enforce automatic ducking only for apps written for an SDK target
  level above 25 (N-MR1)

Test: play notification while Podcast Addict is playing, verify it pauses instead of being ducked
Bug: 37506138
Change-Id: Id7e01a92a51308bd7a3f24abc417d2434b532c12

7 years agoReport multiple FillContext-s onSave
Philip P. Moltmann [Tue, 25 Apr 2017 18:57:37 +0000 (11:57 -0700)]
Report multiple FillContext-s onSave

To make life easier the reponseId is not part of the FillResponse.

Test: CtsAutofillServiceTestCases (added test for multiple Contexts)
Change-Id: If09e00b7267d293e4234a7a9837ad88d73af1b24
Fixes: 36481649

7 years agoMerge "Camera: Update docs for new auto-generation features" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 22:11:43 +0000 (22:11 +0000)]
Merge "Camera: Update docs for new auto-generation features" into oc-dev

7 years agoMerge "Fix some issues found by new doclava linter." into oc-dev
Jeff Sharkey [Tue, 25 Apr 2017 22:10:56 +0000 (22:10 +0000)]
Merge "Fix some issues found by new doclava linter." into oc-dev

7 years agoMerge "Font provider cleaning ups." into oc-dev
Seigo Nonaka [Tue, 25 Apr 2017 21:40:35 +0000 (21:40 +0000)]
Merge "Font provider cleaning ups." into oc-dev

7 years agoAOD: Remove wake up fully config flag
Adrian Roos [Tue, 25 Apr 2017 21:28:38 +0000 (14:28 -0700)]
AOD: Remove wake up fully config flag

Fixes: 37270258
Test: Double tap, make sure device does not wake up to lockscreen, only to ambient display
Change-Id: Iaf0c3bfb5dcf566adae7f37b51c866d92bce7a1d

7 years agoMerge "Remove underscore from Companion service name" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 21:26:09 +0000 (21:26 +0000)]
Merge "Remove underscore from Companion service name" into oc-dev

7 years agoMerge "Add tests for iconSpaceReserved attribute in Preference" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 21:07:48 +0000 (21:07 +0000)]
Merge "Add tests for iconSpaceReserved attribute in Preference" into oc-dev

7 years agoMerge "ImmersiveCling: Allow interacting with underlying view" into oc-dev
Adrian Roos [Tue, 25 Apr 2017 21:07:16 +0000 (21:07 +0000)]
Merge "ImmersiveCling: Allow interacting with underlying view" into oc-dev

7 years agoMerge "Switch ActivityRecord last reported config. to MergeConfiguration" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 20:58:33 +0000 (20:58 +0000)]
Merge "Switch ActivityRecord last reported config. to MergeConfiguration" into oc-dev

7 years agoMerge "Reorder USB_STATE updates so config_changed is not replaced." into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 20:49:38 +0000 (20:49 +0000)]
Merge "Reorder USB_STATE updates so config_changed is not replaced." into oc-dev

7 years agoMerge "WindowManager: Take care with Surface lifetime during relayout to invisible...
Rob Carr [Tue, 25 Apr 2017 20:44:17 +0000 (20:44 +0000)]
Merge "WindowManager: Take care with Surface lifetime during relayout to invisible." into oc-dev

7 years agoFix include
Chris Craik [Tue, 25 Apr 2017 20:41:32 +0000 (13:41 -0700)]
Fix include

Bug: 35387665
Test: builds with HWUI_ENABLE_OPENGL_VALIDATION := false

Dependency on gl3.h was added while that header was auto-included for
error checking purposes. Add the include to enable us to disable gl
error checking.

Change-Id: Ic969da716e2323f8e42d20da8fd0a6fa653f9775

7 years agoMerge "Fixed issue with turn-screen-on activities" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 20:36:53 +0000 (20:36 +0000)]
Merge "Fixed issue with turn-screen-on activities" into oc-dev

7 years agoMerge "Clear default-browser state when it's uninstalled" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 20:35:55 +0000 (20:35 +0000)]
Merge "Clear default-browser state when it's uninstalled" into oc-dev

7 years agoAdd concept of implicitly exposed components
Todd Kennedy [Tue, 25 Apr 2017 18:11:40 +0000 (11:11 -0700)]
Add concept of implicitly exposed components

Implicitly exposed components are those that can still be accessed
via generic startActivity() calls. However, they cannot be started
by specifying a package or component. Additionally, package info
can't be obtained if the package only has implicitly shared
components.

Change-Id: I404a4dff87559cfeee6ad78f7dcc7f5d849d6869
Fixes: b_37343345
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest

7 years agoFix ViewOverlay#onDescendantInvalidated
Chris Craik [Tue, 25 Apr 2017 20:21:36 +0000 (13:21 -0700)]
Fix ViewOverlay#onDescendantInvalidated

Fixes: 37307001
Test: android.view.ViewInvalidateTest

Also removes damageChildInParent, since it's not called anywhere.

Change-Id: Ic81d4465e4828c5826957ace2c44ac263b4662bd

7 years agoDeviceAdminService must be protected with BIND_DEVICE_ADMIN.
Makoto Onuki [Tue, 25 Apr 2017 20:26:21 +0000 (13:26 -0700)]
DeviceAdminService must be protected with BIND_DEVICE_ADMIN.

Bug: 37625902
Bug: 36226832

Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l DEBUG -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceAdminServiceDeviceOwnerTest
Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l DEBUG -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceAdminServiceProfileOwnerTest
Change-Id: I0bee75d758b565c6587d0e9cabf63bec351a0669

7 years agoMerge "Revert "Revert "Integrate new looper apis into testables""" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 20:27:18 +0000 (20:27 +0000)]
Merge "Revert "Revert "Integrate new looper apis into testables""" into oc-dev

7 years agoBluetooth: expand comments on new PHY constants
Jakub Pawlowski [Fri, 21 Apr 2017 11:26:12 +0000 (04:26 -0700)]
Bluetooth: expand comments on new PHY constants

Bug: 37544152
Test: the all-knowing eyes of the reviewers
Change-Id: I8f5a756a204fe90960700e1dc42f64824d3b844a
(cherry picked from commit 60c7dac77533163ed951dee09ec7b42a49bdf54a)

7 years agoBluetooth: document status value in PHY read/update
Jakub Pawlowski [Tue, 25 Apr 2017 15:07:11 +0000 (08:07 -0700)]
Bluetooth: document status value in PHY read/update

Bug: 37544152
Test: none
Change-Id: I2bac468f833c73cd282b1dac80b6553917996604
(cherry picked from commit e55c4469771f9f88626b362aa7b7226c4f424ed7)

7 years agoBluetooth: Add handler parameter to connectGatt
Jakub Pawlowski [Fri, 21 Apr 2017 10:49:00 +0000 (03:49 -0700)]
Bluetooth: Add handler parameter to connectGatt

Bug: 37544152
Test: sl4a GattReadTest GattWriteTest
Change-Id: I043dfefaafe9f3700418f2c855c52aac3644310f
(cherry picked from commit 4eab49652e48159fd37f827d30b822f2f187551e)

7 years agoGet rid of the IAdvertiserCallabck
Jakub Pawlowski [Wed, 19 Apr 2017 12:44:34 +0000 (05:44 -0700)]
Get rid of the IAdvertiserCallabck

Bug: 30622771
Test: none
Change-Id: I2c55f96e71cd3be67f88201ab07c91730cd85971
(cherry picked from commit 89e10d3eb4a4728ffdb5a5eba76d772d28bcb855)

7 years agoUpdate app level fields when misc channel is updated
Julia Reynolds [Sun, 23 Apr 2017 17:32:01 +0000 (13:32 -0400)]
Update app level fields when misc channel is updated

So user settings aren't lost when the app migrates
to using channels

Test: runtest systemui-notification
Change-Id: I5774997ea33a892fa45f614bb3dd8de7e681f58c
Fixes: 37603697

7 years agoMerge "Add getVisualVoicemailSettings()" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 19:45:42 +0000 (19:45 +0000)]
Merge "Add getVisualVoicemailSettings()" into oc-dev

7 years agoFont provider cleaning ups.
Seigo Nonaka [Mon, 24 Apr 2017 21:46:23 +0000 (14:46 -0700)]
Font provider cleaning ups.

- Remove Columns.STYLE
- Decouple Context from Typeface.
- Make FontsContract constructor private since it is essentially static.
- Removed unused constants.

Bug: 37281200
Bug: 37268410
Test: am instrument -w -e class android.provider.FontsContractE2ETest
      com.android.frameworks.coretests/\
      android.support.test.runner.AndroidJUnitRunner
Test: am instrument -w -e class android.provider.FontsContractTest
      com.android.frameworks.coretests/\
      android.support.test.runner.AndroidJUnitRunner
Test: am instrument -w -e class android.graphics.cts.TypefaceTest
      android.graphics.cts/android.support.test.runner.AndroidJUnitRunner
Change-Id: Ic46c256141d27ca28f30023bcc40f4e1161d5338

7 years agoImmersiveCling: Allow interacting with underlying view
Adrian Roos [Tue, 25 Apr 2017 19:38:01 +0000 (12:38 -0700)]
ImmersiveCling: Allow interacting with underlying view

Fixes: 23740894
Test: adb shell settings delete secure immersive_mode_confirmations && "set an alarm" && "try interacting with the ringing alarm beneath the immersive mode confirmation"
Change-Id: Ic0c672603db34bcb71fc21c1a674a89fd4779f3d

7 years agoMerge "Remove a11y web flags and associated settings" into oc-dev
Phil Weaver [Tue, 25 Apr 2017 19:25:18 +0000 (19:25 +0000)]
Merge "Remove a11y web flags and associated settings" into oc-dev

7 years agoMerge "Allow some notifications in a group to be muted" into oc-dev
Julia Reynolds [Tue, 25 Apr 2017 19:24:57 +0000 (19:24 +0000)]
Merge "Allow some notifications in a group to be muted" into oc-dev

7 years agoMerge "Fix javadoc to clearly express units and base for time value." into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 19:17:24 +0000 (19:17 +0000)]
Merge "Fix javadoc to clearly express units and base for time value." into oc-dev

7 years agoFix some issues found by new doclava linter.
Jeff Sharkey [Tue, 25 Apr 2017 00:06:20 +0000 (18:06 -0600)]
Fix some issues found by new doclava linter.

Add missing API annotations for permissions and SdkConstants, and
invoke doclava with new "-android" flag.

Test: make -j32 offline-sdk-docs
Bug: 37526420
Change-Id: I970bb2655eb568fd25004636f134c794663a6c33

7 years agoMerge "Do not deliver INSTALL_SHORTCUT." into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 18:58:53 +0000 (18:58 +0000)]
Merge "Do not deliver INSTALL_SHORTCUT." into oc-dev

7 years agoMerge "Revert "Whitelist DMAgent from bg check"" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 18:55:03 +0000 (18:55 +0000)]
Merge "Revert "Whitelist DMAgent from bg check"" into oc-dev

7 years agoMerge changes from topic 'experio-scoring' into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 18:51:47 +0000 (18:51 +0000)]
Merge changes from topic 'experio-scoring' into oc-dev

* changes:
  Remove Settings.CURATE_SAVED_OPEN_NETWORKS
  Remove request recommendation from AIDL files.
  Remove the recommendation request impl and test code.
  Deprecate the recommendation request code.

7 years agodocs: Update ListView JavaDoc comments
Joe Fernandez [Mon, 24 Apr 2017 23:16:29 +0000 (16:16 -0700)]
docs: Update ListView JavaDoc comments

 - Use more active and descriptive terms in first-line description
 - Recommend using RecyclerView
 - Add XML example code
 - Direct reader to set an adapter to populate list with views
 - Add pre tags to XML code snippet
 - Give example of displaying more complex views in list
 - Add aside about using convertView if provided
 - Link to guide on handling click events
 - Add cross-link to contextual action mode guide
 - Reframe link to list view guide
 - Advise reader to favor alternative approach to using ListActivity
 - Add paragraph tags
 - Escape @ symbol
 - Fix sentence fragment and change modern -> advanced
 - Fix title of cross-reference to layout guide
 - Remove reference to filename
 - Remove cross-link to contextual action mode
 - Fix malformed link tag
 - Add connecting word
 - Clean up links

Test: Docs change only. Tested with docs build.

Change-Id: Ideb5cc517a7bc08056bb2fe8025c7acea388128b

7 years agoSwitch ActivityRecord last reported config. to MergeConfiguration
Wale Ogunwale [Tue, 25 Apr 2017 17:23:48 +0000 (10:23 -0700)]
Switch ActivityRecord last reported config. to MergeConfiguration

Clean-up before actual fix for b/36897968 that makes the code easier to
follow.

Test: Existing tests pass
Bug: 36897968
Change-Id: I3039548929440f922dc69d7f130169a3d60b1eef

7 years agoOffload the mRunningFullBackupTask.handleCancel() call from the main
Michal Karpinski [Thu, 20 Apr 2017 16:00:31 +0000 (17:00 +0100)]
Offload the mRunningFullBackupTask.handleCancel() call from the main
thread to another thread

The system_server process was being killed by Watchdog, as the main
thread was waiting for the mCancelLock for over a minute.

Bug: 35968123
Test: make gts -j40 && gts-tradefed run gts -m GtsGmscoreHostTestCases -t com.google.android.gts.backup.BackupManagerHostTest
Change-Id: Ia146569d2c741b35a6f6c9bfc4c5ddf8539b6242

7 years agoMerge "Make new onFill/onSave methods abstract." into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 18:31:07 +0000 (18:31 +0000)]
Merge "Make new onFill/onSave methods abstract." into oc-dev

7 years agoMerge "Address API Review comments" into oc-dev
Tony Wickham [Tue, 25 Apr 2017 18:16:50 +0000 (18:16 +0000)]
Merge "Address API Review comments" into oc-dev

7 years agoWindowManager: Take care with Surface lifetime during relayout to invisible.
Robert Carr [Mon, 24 Apr 2017 22:33:11 +0000 (15:33 -0700)]
WindowManager: Take care with Surface lifetime during relayout to invisible.

In the relayout to invisible case where we choose not to apply an exit
animation, we would call to WindowState#destroyOrSaveSurface bypassing
the app stopped check. Notice WindowManagerService.java L1953 we could
enter the relayout to invisible even if the client has not requested it
if clientHidden were set to true (but not yet processed by the client). This means
we can destroy the surface ahead of any notification to the client.  We instead
need to use the WindowState#destroySurface variant
and respect the app token mAppStopped flag. #destroySurface expects
mDestroying to have been set by the exit animation, so we will also need
to set that. If destruction is deferred, it will be completed later by
AppWindowToken#notifyAppStopped

Bug: 36561071
Bug: 37533373
Test: Manual from repro in bug.
Change-Id: If91b4c75fdbcbf87007551860f9eb64dbec9e032

7 years agoMerge "sensors: fix concurrent modification exception" into oc-dev
Peng Xu [Tue, 25 Apr 2017 17:51:20 +0000 (17:51 +0000)]
Merge "sensors: fix concurrent modification exception" into oc-dev

7 years agoRevert "Revert "Integrate new looper apis into testables""
Jason Monk [Mon, 17 Apr 2017 15:34:22 +0000 (11:34 -0400)]
Revert "Revert "Integrate new looper apis into testables""

This reverts commit fd8f615953631863c94d7080441f8dd4a0a74f56.
+ some minor adjustments.

Test: runtest systemui
Change-Id: Ie4349fcfb2aadbbd8826506faa8a6fb1ecd5b589

7 years agoMerge "Update fontchain to read from additional sequences" into oc-dev
Siyamed Sinir [Tue, 25 Apr 2017 17:48:24 +0000 (17:48 +0000)]
Merge "Update fontchain to read from additional sequences" into oc-dev

7 years agoAllow some notifications in a group to be muted
Julia Reynolds [Fri, 21 Apr 2017 14:29:57 +0000 (10:29 -0400)]
Allow some notifications in a group to be muted

Test: cts, runtest systemui-notification
Change-Id: I98b971c496c52f69e039a3a3101f71ac567b538a

7 years agoMerge "Fix some "leaks"" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 17:32:57 +0000 (17:32 +0000)]
Merge "Fix some "leaks"" into oc-dev

7 years agoUpdate fontchain to read from additional sequences
Siyamed Sinir [Thu, 20 Apr 2017 01:18:35 +0000 (18:18 -0700)]
Update fontchain to read from additional sequences

Test: make fontchain_lint

Bug: 37520224
Bug: 37169477
Change-Id: Ie01a2aca85314701654cc2397f0bcf8eafdbe608

7 years agoMerge "Remove Typeface.create" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 17:26:58 +0000 (17:26 +0000)]
Merge "Remove Typeface.create" into oc-dev

7 years agoMerge "Update PACKAGE_REMOVED broadcast." into oc-dev
Dmitry Dementyev [Tue, 25 Apr 2017 17:22:30 +0000 (17:22 +0000)]
Merge "Update PACKAGE_REMOVED broadcast." into oc-dev

7 years agoAdd tests for iconSpaceReserved attribute in Preference
Fan Zhang [Tue, 25 Apr 2017 16:52:38 +0000 (09:52 -0700)]
Add tests for iconSpaceReserved attribute in Preference

Change-Id: Id789f3ab6c0c5f864d08bd21966c2e1fea00473d
Fix: 37572025
Test: runtest --path ...

7 years agoMerge "Allow a11y listeners to specify handlers" into oc-dev
Phil Weaver [Tue, 25 Apr 2017 17:17:58 +0000 (17:17 +0000)]
Merge "Allow a11y listeners to specify handlers" into oc-dev

7 years agoMerge "Perf: Fix RemoteViews memory leak" into oc-dev
Adrian Roos [Tue, 25 Apr 2017 17:09:19 +0000 (17:09 +0000)]
Merge "Perf: Fix RemoteViews memory leak" into oc-dev

7 years agoMerge "Add tracing for onTaskStackChanged" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 17:01:42 +0000 (17:01 +0000)]
Merge "Add tracing for onTaskStackChanged" into oc-dev

7 years agoMerge "Fix crash in plugin settings" into oc-dev
Jason Monk [Tue, 25 Apr 2017 16:56:32 +0000 (16:56 +0000)]
Merge "Fix crash in plugin settings" into oc-dev

7 years agoRemove Typeface.create
Seigo Nonaka [Thu, 20 Apr 2017 21:27:32 +0000 (14:27 -0700)]
Remove Typeface.create

Test: Manually done
Bug: 37514611
Bug: 37463988
Bug: 37281200
Change-Id: Ida704af910e0ae195b96803de506fa1e1d66c9f5

7 years agoMerge "Strings for "Use high quality audio" option in Bluetooth A2DP device settings...
Antony Sargent [Tue, 25 Apr 2017 16:30:54 +0000 (16:30 +0000)]
Merge "Strings for "Use high quality audio" option in Bluetooth A2DP device settings" into oc-dev

7 years agoMake new onFill/onSave methods abstract.
Felipe Leme [Tue, 25 Apr 2017 16:19:49 +0000 (09:19 -0700)]
Make new onFill/onSave methods abstract.

Test: CtsAutoFillServiceTestCases pass
Test: manual verification

Bug: 37563972

Change-Id: I1447bcc3ac03b3cbf71362f370abedb9f00152b9

7 years agoFix javadoc to clearly express units and base for time value.
Pavel Grafov [Tue, 25 Apr 2017 11:12:25 +0000 (12:12 +0100)]
Fix javadoc to clearly express units and base for time value.

Bug: 37622877
Test: it's just javadoc.
Change-Id: I285b20f9ff6b82279f215879797fa263b318269a

7 years agoMerge "Explicitly wait for the WebView Zygote." into oc-dev
Gustav Sennton [Tue, 25 Apr 2017 16:05:53 +0000 (16:05 +0000)]
Merge "Explicitly wait for the WebView Zygote." into oc-dev

7 years agoFixed issue with turn-screen-on activities
Wale Ogunwale [Tue, 25 Apr 2017 14:44:21 +0000 (07:44 -0700)]
Fixed issue with turn-screen-on activities

Regression introduced by ag/2147938 where we set the visibility of an
app to false after pausing because it might have been previously
defered. However, the change did it for all activities regardless of if
it was previously deferred or not. We now only do the visibility change
to false if we previouly deferred.

Change-Id: Ifde46587e1ddf38304b73cec45c56f0acd955f37
Fixes: 37657105
Test: cts.ActivityManagerActivityVisibilityTests#testTurnScreenOnActivity

7 years agoMerge "VolumeShaper: API change for duration" into oc-dev
Jean-Michel Trivi [Tue, 25 Apr 2017 15:36:33 +0000 (15:36 +0000)]
Merge "VolumeShaper: API change for duration" into oc-dev

7 years agoMerge "AAPT2: Add better error message when processing invalid files" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 15:26:20 +0000 (15:26 +0000)]
Merge "AAPT2: Add better error message when processing invalid files" into oc-dev

7 years agoMerge "AAPT2: Allow <path-permission> tag in <provider>" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 15:25:57 +0000 (15:25 +0000)]
Merge "AAPT2: Allow <path-permission> tag in <provider>" into oc-dev

7 years agoAdd tracing for onTaskStackChanged
Jorim Jaggi [Mon, 24 Apr 2017 16:34:55 +0000 (18:34 +0200)]
Add tracing for onTaskStackChanged

Test: Capture trace
Bug: 37550083
Change-Id: Iee302b189768419fe8a55d041ce65e861ef3c1f1

7 years agoMerge "Introduce KEYSTORE_FLAG_CRITICAL_TO_DEVICE_ENCRYPTION" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 13:42:38 +0000 (13:42 +0000)]
Merge "Introduce KEYSTORE_FLAG_CRITICAL_TO_DEVICE_ENCRYPTION" into oc-dev

7 years agoMerge "Further bulletproof NotificationInfo's public api from exceptions" into oc-dev
Geoffrey Pitsch [Tue, 25 Apr 2017 13:38:45 +0000 (13:38 +0000)]
Merge "Further bulletproof NotificationInfo's public api from exceptions" into oc-dev

7 years agoFix some "leaks"
Jorim Jaggi [Tue, 25 Apr 2017 13:08:29 +0000 (15:08 +0200)]
Fix some "leaks"

When Recents goes into the background, we should release all
references to thumbnails so things can be freed.

Test: Go Recents, go home, take heapdump
Bug: 37630958
Change-Id: I79ec994f031393cda67edd8983195e2c541f13fb

7 years agoMerge "Add param javadoc to DevicePolicyManager.setBackupServiceEnabled" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 12:11:10 +0000 (12:11 +0000)]
Merge "Add param javadoc to DevicePolicyManager.setBackupServiceEnabled" into oc-dev

7 years agoMerge "Clarify time unit for StrongAuthTimeout APIs" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 12:02:02 +0000 (12:02 +0000)]
Merge "Clarify time unit for StrongAuthTimeout APIs" into oc-dev

7 years agoMerge "Set icon frame to invisible when iconSpaceReserved is set." into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 09:52:52 +0000 (09:52 +0000)]
Merge "Set icon frame to invisible when iconSpaceReserved is set." into oc-dev