OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Add boot profile support" am: 3d901ec513
Mathieu Chartier [Sat, 1 Jul 2017 03:37:36 +0000 (03:37 +0000)]
Merge "Add boot profile support" am: 3d901ec513
am: 7e73b5165d

Change-Id: I440e67c9328fa482bc08f435180a56d12d4aa38c

7 years agoMerge "Add boot profile support"
Mathieu Chartier [Sat, 1 Jul 2017 03:32:41 +0000 (03:32 +0000)]
Merge "Add boot profile support"
am: 3d901ec513

Change-Id: I37db2f4bd7e6412954d51e914f6e238db5027a6e

7 years agoMerge "Add boot profile support"
Treehugger Robot [Sat, 1 Jul 2017 03:24:12 +0000 (03:24 +0000)]
Merge "Add boot profile support"

7 years agoSend disable messages when Bluetooth is disallowed
Myles Watson [Sat, 1 Jul 2017 01:08:56 +0000 (01:08 +0000)]
Send disable messages when Bluetooth is disallowed
am: 6291fae585

Change-Id: I518dd5199322c60430bbd4f0433425adb17f5dc0

7 years agoAdd boot profile support
Mathieu Chartier [Fri, 30 Jun 2017 18:47:38 +0000 (11:47 -0700)]
Add boot profile support

If the boot profile file exists, its passed to the runtime as an
image compiler option. Also pass speed-profile for this case.

Bug: 37966211
Test: make, flash, and look at logcat during boot

(cherry picked from commit f99e70e93408bd6dfda595866f13ba0068d4798e)

Change-Id: Ia09ff0200186382e45151b7cabb53016f8e0aa3f

7 years agoSend disable messages when Bluetooth is disallowed
Myles Watson [Thu, 29 Jun 2017 10:12:02 +0000 (03:12 -0700)]
Send disable messages when Bluetooth is disallowed

Bug: 63021124
Test: cts-tradefed run commandAndExit cts \
         -m CtsDevicePolicyManagerTestCases \
         -t  com.android.cts.devicepolicy.DeviceOwnerTest#testBluetoothRestriction
Change-Id: I0ef538a4d0f0632ce303b29595ac1cab3b7d29ce

7 years agoMerge "hidl getService throw correct exceptions." am: 5d5ace5e11
Steven Moreland [Fri, 30 Jun 2017 20:49:57 +0000 (20:49 +0000)]
Merge "hidl getService throw correct exceptions." am: 5d5ace5e11
am: 197b62d3fa

Change-Id: I720e34630733e27734f050d6546be4df1a1948ab

7 years agoMerge "hidl getService throw correct exceptions."
Steven Moreland [Fri, 30 Jun 2017 20:44:10 +0000 (20:44 +0000)]
Merge "hidl getService throw correct exceptions."
am: 5d5ace5e11

Change-Id: I16bcf1b32914ef42bbe788a8b67e92f6fe9d04a2

7 years agoMerge "hidl getService throw correct exceptions."
Treehugger Robot [Fri, 30 Jun 2017 20:36:36 +0000 (20:36 +0000)]
Merge "hidl getService throw correct exceptions."

7 years agoMerge "Track move of distro installer code" am: 8558d93db8
Neil Fuller [Fri, 30 Jun 2017 12:45:16 +0000 (12:45 +0000)]
Merge "Track move of distro installer code" am: 8558d93db8
am: 50a15e7f6e

Change-Id: I5295f6e63ac9aafbebaa9870776e0502bf5129d7

7 years agoMerge "Track move of distro installer code"
Neil Fuller [Fri, 30 Jun 2017 12:38:05 +0000 (12:38 +0000)]
Merge "Track move of distro installer code"
am: 8558d93db8

Change-Id: I2d27a58c21b7b8931b1d058d6a6bc88eeb8f7709

7 years agoMerge "Track move of distro installer code"
Neil Fuller [Fri, 30 Jun 2017 12:28:23 +0000 (12:28 +0000)]
Merge "Track move of distro installer code"

7 years agoMerge "docs: Updated isAutofillSupported description." into oc-dev
Ricardo Loo [Fri, 30 Jun 2017 00:51:57 +0000 (00:51 +0000)]
Merge "docs: Updated isAutofillSupported description." into oc-dev
am: a89dfb5439

Change-Id: Ibaa0fd7bcbb1fa4eb880a53894fbf94d857f334f

7 years agoMerge "docs: Updated isAutofillSupported description." into oc-dev
Ricardo Loo [Fri, 30 Jun 2017 00:44:50 +0000 (00:44 +0000)]
Merge "docs: Updated isAutofillSupported description." into oc-dev

7 years agoMerge "Add docs for new padding/margin attributes." into oc-dev
Chet Haase [Fri, 30 Jun 2017 00:32:27 +0000 (00:32 +0000)]
Merge "Add docs for new padding/margin attributes." into oc-dev
am: 8cdbd6e184

Change-Id: I0d82ace7d340af8f66a6233ce5b474d26595c38f

7 years agoMerge "Add docs for new padding/margin attributes." into oc-dev
TreeHugger Robot [Fri, 30 Jun 2017 00:21:28 +0000 (00:21 +0000)]
Merge "Add docs for new padding/margin attributes." into oc-dev

7 years agoMerge "Implement cancelDownload and remove appName" am: 9b43ffcf2f
Hall Liu [Thu, 29 Jun 2017 21:51:13 +0000 (21:51 +0000)]
Merge "Implement cancelDownload and remove appName" am: 9b43ffcf2f
am: 4b1acf4421

Change-Id: Ic6d19500c335bc40e6d14d009d4d459bf02b06e1

7 years agoMerge "Implement cancelDownload and remove appName"
Hall Liu [Thu, 29 Jun 2017 21:45:47 +0000 (21:45 +0000)]
Merge "Implement cancelDownload and remove appName"
am: 9b43ffcf2f

Change-Id: I98914bf79ad6178e1ef8689acf5d0a18c78a7735

7 years agoMerge "Implement cancelDownload and remove appName"
Hall Liu [Thu, 29 Jun 2017 21:33:11 +0000 (21:33 +0000)]
Merge "Implement cancelDownload and remove appName"

7 years agoMerge "Prevent unwanted keypress actions during TV Setup." into oc-dev
Sujith Ramakrishnan [Thu, 29 Jun 2017 18:59:07 +0000 (18:59 +0000)]
Merge "Prevent unwanted keypress actions during TV Setup." into oc-dev
am: 564d0bf1be

Change-Id: I1cd59a2966f692a4857343e21bf1586719939490

7 years agoMerge "Prevent unwanted keypress actions during TV Setup." into oc-dev
TreeHugger Robot [Thu, 29 Jun 2017 18:50:08 +0000 (18:50 +0000)]
Merge "Prevent unwanted keypress actions during TV Setup." into oc-dev

7 years agohidl getService throw correct exceptions.
Steven Moreland [Wed, 28 Jun 2017 17:21:00 +0000 (10:21 -0700)]
hidl getService throw correct exceptions.

NoSuchElementException needs to be thrown when getService is
called and the service is not available.

Test: hidl_test_java
Fixes: 63087967

Merged-In: I207098cfb732e888f91704f623e888e72e6ce7d9
Change-Id: I207098cfb732e888f91704f623e888e72e6ce7d9

7 years agoMerge "Support battery level reporting via Apple VSC (1/2)" am: 874af710b7
Jack He [Thu, 29 Jun 2017 17:58:13 +0000 (17:58 +0000)]
Merge "Support battery level reporting via Apple VSC (1/2)" am: 874af710b7
am: 9fd5d0da1e

Change-Id: If22202112ad66a7b8d86438ca5d2947cf1842b8a

7 years agoMerge "Support battery level reporting via Apple VSC (1/2)"
Jack He [Thu, 29 Jun 2017 17:53:10 +0000 (17:53 +0000)]
Merge "Support battery level reporting via Apple VSC (1/2)"
am: 874af710b7

Change-Id: Id65e6e11308c66893cb701af8909df9fee3a131f

7 years agoMerge "Support battery level reporting via Apple VSC (1/2)"
Treehugger Robot [Thu, 29 Jun 2017 17:44:10 +0000 (17:44 +0000)]
Merge "Support battery level reporting via Apple VSC (1/2)"

7 years agoSupport battery level reporting via Apple VSC (1/2)
Jack He [Wed, 21 Jun 2017 00:09:47 +0000 (17:09 -0700)]
Support battery level reporting via Apple VSC (1/2)

* Add related constants to BluetoothHeadset

Bug: 35874078
Test: make, test with supporting headsets
Change-Id: I9f49ea28efdf6de0e751a377d879fe13a47655d5

7 years agoMerge "Support battery level reporting via Plantronics XEVENT (1/2)" am: c79c4240ec
Jack He [Thu, 29 Jun 2017 17:32:35 +0000 (17:32 +0000)]
Merge "Support battery level reporting via Plantronics XEVENT (1/2)" am: c79c4240ec
am: c286110c1a

Change-Id: I37cb48012b0f7170415693476d7e9f105798d814

7 years agoMerge "Support battery level reporting via Plantronics XEVENT (1/2)"
Jack He [Thu, 29 Jun 2017 17:25:26 +0000 (17:25 +0000)]
Merge "Support battery level reporting via Plantronics XEVENT (1/2)"
am: c79c4240ec

Change-Id: I6aa50e541763adfa9ebe738d98d86152cf0cd1d5

7 years agoMerge "Support battery level reporting via Plantronics XEVENT (1/2)"
Treehugger Robot [Thu, 29 Jun 2017 17:17:38 +0000 (17:17 +0000)]
Merge "Support battery level reporting via Plantronics XEVENT (1/2)"

7 years agoSupport battery level reporting via Plantronics XEVENT (1/2)
Jack He [Wed, 21 Jun 2017 00:07:40 +0000 (17:07 -0700)]
Support battery level reporting via Plantronics XEVENT (1/2)

* Add related constants to BluetoothHeadset

Bug: 35874078
Test: make, test with supporting headsets
Change-Id: Ied089a065bf9caa0d03f681950fefa2ea990bb3e

7 years agoMerge "add links to Log class summary for methods and logcat doc" into oc-dev
Scott Main [Thu, 29 Jun 2017 16:19:25 +0000 (16:19 +0000)]
Merge "add links to Log class summary for methods and logcat doc" into oc-dev
am: ea6fea4d5d

Change-Id: I205254f618a3a405aab6f783f5d7de99c9a3a907

7 years agoMerge "add links to Log class summary for methods and logcat doc" into oc-dev
Scott Main [Thu, 29 Jun 2017 16:12:47 +0000 (16:12 +0000)]
Merge "add links to Log class summary for methods and logcat doc" into oc-dev

7 years agoAdd docs for new padding/margin attributes.
Chet Haase [Thu, 29 Jun 2017 14:54:19 +0000 (07:54 -0700)]
Add docs for new padding/margin attributes.

The attributes for View, paddingHorizontal and paddingVertical,
were added in the O release and are documented in R.attr. But they
should also be referenced in View itself, alongside the other
padding parameters.

Similarly, the new layout_MarginHorizontal and
layout_marginVertical should be referenced in
ViewGroup.MarginLayoutParams.

Bug: 63128350  Add docs about new padding/margin params
Test: built docs, checked the result
Change-Id: I3021df5ea83c469811b4a6ec6ecd3ab2966ec384

7 years agoMerge "No need to explicitly list ethernet upstream type" am: 01017959fe
Erik Kline [Thu, 29 Jun 2017 12:35:15 +0000 (12:35 +0000)]
Merge "No need to explicitly list ethernet upstream type" am: 01017959fe
am: 065e3a7786

Change-Id: I5442a9298822af5f6cbfa2570906bc38018c07e4

7 years agoMerge "No need to explicitly list ethernet upstream type"
Erik Kline [Thu, 29 Jun 2017 12:26:53 +0000 (12:26 +0000)]
Merge "No need to explicitly list ethernet upstream type"
am: 01017959fe

Change-Id: I93a74d80db134e832cef16d61abc057c88e86675

7 years agoMerge "No need to explicitly list ethernet upstream type"
Treehugger Robot [Thu, 29 Jun 2017 12:18:35 +0000 (12:18 +0000)]
Merge "No need to explicitly list ethernet upstream type"

7 years agoMerge "Use sendBroadcastAsUser rather than sendBroadcast" am: d129a14647
Neil Fuller [Thu, 29 Jun 2017 11:45:04 +0000 (11:45 +0000)]
Merge "Use sendBroadcastAsUser rather than sendBroadcast" am: d129a14647
am: 93b232db41

Change-Id: I749e98ea84dd8c3811d302848a14576c6aff8fb1

7 years agoTrack move of distro installer code
Neil Fuller [Thu, 29 Jun 2017 11:39:49 +0000 (12:39 +0100)]
Track move of distro installer code

Track move of distro installer code; reflect the new
build target.

Tested with:
make -j30 FrameworksServicesTests
adb install -r -g \
  "out/target/product/angler/data/app/FrameworksServicesTests/FrameworksServicesTests.apk"
adb shell am instrument -e package com.android.server.timezone -w \
  com.android.frameworks.servicestests \
  "com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner"

Bug: 31008728
Test: See above
Change-Id: Iad987d404af75af3694d50e25ed419889a9557f2

7 years agoMerge "Use sendBroadcastAsUser rather than sendBroadcast"
Neil Fuller [Thu, 29 Jun 2017 11:37:13 +0000 (11:37 +0000)]
Merge "Use sendBroadcastAsUser rather than sendBroadcast"
am: d129a14647

Change-Id: I76324b2d983887dbdac4b26e518a68d8c4035a47

7 years agoMerge "Use sendBroadcastAsUser rather than sendBroadcast"
Treehugger Robot [Thu, 29 Jun 2017 11:29:37 +0000 (11:29 +0000)]
Merge "Use sendBroadcastAsUser rather than sendBroadcast"

7 years agoMerge "HFP: Modify comments for ACTION_HF_INDICATORS_VALUE_CHANGED (1/2)" am: 5790bae2f4
Andre Eisenbach [Thu, 29 Jun 2017 08:45:01 +0000 (08:45 +0000)]
Merge "HFP: Modify comments for ACTION_HF_INDICATORS_VALUE_CHANGED (1/2)" am: 5790bae2f4
am: df1831d2ee

Change-Id: I33fb994d049b033d9e58bbc080fa6ce1efc8e240

7 years agoMerge "HFP: Modify comments for ACTION_HF_INDICATORS_VALUE_CHANGED (1/2)"
Andre Eisenbach [Thu, 29 Jun 2017 08:39:40 +0000 (08:39 +0000)]
Merge "HFP: Modify comments for ACTION_HF_INDICATORS_VALUE_CHANGED (1/2)"
am: 5790bae2f4

Change-Id: I480ef38d5aa61aa153ee53d325e8b249c1eab222

7 years agoMerge "HFP: Modify comments for ACTION_HF_INDICATORS_VALUE_CHANGED (1/2)"
Andre Eisenbach [Thu, 29 Jun 2017 08:30:50 +0000 (08:30 +0000)]
Merge "HFP: Modify comments for ACTION_HF_INDICATORS_VALUE_CHANGED (1/2)"

7 years agoHFP: Modify comments for ACTION_HF_INDICATORS_VALUE_CHANGED (1/2)
Jack He [Thu, 22 Jun 2017 19:56:54 +0000 (12:56 -0700)]
HFP: Modify comments for ACTION_HF_INDICATORS_VALUE_CHANGED (1/2)

* Per HFP 1.7.1 spec page 102 of 144
  EXTRA_HF_INDICATORS_IND_ID should be int
  EXTRA_HF_INDICATORS_IND_VALUE should be int

Bug: 35874078
Test: make, PTS test, unit tests
runtest -c com.android.bluetooth.btservice.RemoteDevicesTest bluetooth

Change-Id: Idd316a82bab164b6ea1701bb261b1cc3dee196f1

7 years agoNo need to explicitly list ethernet upstream type
Erik Kline [Wed, 21 Jun 2017 14:27:55 +0000 (23:27 +0900)]
No need to explicitly list ethernet upstream type

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
Bug: 32163131
Bug: 36076442
Change-Id: I743c20d5b969e33c6b10d0b47ac06e6b8c968acf

7 years agoMerge "Use Bundle for inter-process message" am: db8e4efd5b
yinxu [Thu, 29 Jun 2017 02:12:05 +0000 (02:12 +0000)]
Merge "Use Bundle for inter-process message" am: db8e4efd5b
am: 5311da134a

Change-Id: I0b7d8ee5827c97fc761cb1fe102d4b89b364e9f7

7 years agoMerge "Use Bundle for inter-process message"
yinxu [Thu, 29 Jun 2017 02:05:53 +0000 (02:05 +0000)]
Merge "Use Bundle for inter-process message"
am: db8e4efd5b

Change-Id: Ib93e91969063a5d2276c99b8b0fee4dd1a398771

7 years agoMerge "Further restrict activity launch on virtual displays" into oc-dev
Andrii Kulian [Thu, 29 Jun 2017 01:57:32 +0000 (01:57 +0000)]
Merge "Further restrict activity launch on virtual displays" into oc-dev
am: 36dbd3d43f

Change-Id: I30a4083e9c8467dd8698b50f0999b5ae20f2e01c

7 years agoMerge "Use Bundle for inter-process message"
Treehugger Robot [Thu, 29 Jun 2017 01:51:04 +0000 (01:51 +0000)]
Merge "Use Bundle for inter-process message"

7 years agoMerge "Further restrict activity launch on virtual displays" into oc-dev
Andrii Kulian [Thu, 29 Jun 2017 01:47:41 +0000 (01:47 +0000)]
Merge "Further restrict activity launch on virtual displays" into oc-dev

7 years agoMerge "Disable requestVisibleBehind." into oc-dev
Robert Carr [Thu, 29 Jun 2017 00:26:35 +0000 (00:26 +0000)]
Merge "Disable requestVisibleBehind." into oc-dev
am: e33c33e38a

Change-Id: Ie0733cb79acbe34536c4c031f1234dac134841d3

7 years agoMerge "Disable requestVisibleBehind." into oc-dev
TreeHugger Robot [Thu, 29 Jun 2017 00:17:19 +0000 (00:17 +0000)]
Merge "Disable requestVisibleBehind." into oc-dev

7 years agoMerge "[Companion] Dont crash if started with bluetooth off" into oc-dev
Eugene Susla [Thu, 29 Jun 2017 00:03:08 +0000 (00:03 +0000)]
Merge "[Companion] Dont crash if started with bluetooth off" into oc-dev
am: c55f7d2180

Change-Id: I9386692da93413a6b9fec51045d003fba5284401

7 years agoMerge "[Companion] Dont crash if started with bluetooth off" into oc-dev
TreeHugger Robot [Wed, 28 Jun 2017 23:54:49 +0000 (23:54 +0000)]
Merge "[Companion] Dont crash if started with bluetooth off" into oc-dev

7 years agoFurther restrict activity launch on virtual displays
Andrii Kulian [Wed, 28 Jun 2017 23:21:07 +0000 (16:21 -0700)]
Further restrict activity launch on virtual displays

Only callers with INTERNAL_SYSTEM_WINDOW permission can launch
an activity to a virtual display.

Bug: 63094482
Test: android.server.cts.ActivityManagerDisplayTests
Change-Id: I3f618fcbf3c07e5085e2b43b0f038f240df0c9d3

7 years agoadd links to Log class summary for methods and logcat doc
Scott Main [Wed, 28 Jun 2017 22:57:01 +0000 (15:57 -0700)]
add links to Log class summary for methods and logcat doc

bug: 29123084

Change-Id: Ida1351ca3647faa133905c5ff85df716bffd3203

7 years agoMerge "Selectively disable filtering if estimated safe" into oc-dev
John Reck [Wed, 28 Jun 2017 22:45:50 +0000 (22:45 +0000)]
Merge "Selectively disable filtering if estimated safe" into oc-dev
am: 38c97237e3

Change-Id: I3ef75aea36939b1dffa44500097709ef51787a1d

7 years agoMerge "Selectively disable filtering if estimated safe" into oc-dev
John Reck [Wed, 28 Jun 2017 22:39:46 +0000 (22:39 +0000)]
Merge "Selectively disable filtering if estimated safe" into oc-dev

7 years agoMerge "Properly check for orientation mismatch" into oc-dev
Jorim Jaggi [Wed, 28 Jun 2017 22:05:47 +0000 (22:05 +0000)]
Merge "Properly check for orientation mismatch" into oc-dev
am: a96d749140

Change-Id: I2476d7710bff82e3eeedc0f48f61b57e392efbe7

7 years agoImplement cancelDownload and remove appName
Hall Liu [Fri, 23 Jun 2017 23:32:30 +0000 (16:32 -0700)]
Implement cancelDownload and remove appName

Implements the cancelDownload call
Removes appName as an argument from all EMBMS-related apis
Implements the cross-filesystem move method in MbmsDownloadReceiver

Change-Id: Ie8ebfccca4fbb3d69289beb2ed77101fe2c7727f

7 years agoMerge "Properly check for orientation mismatch" into oc-dev
Jorim Jaggi [Wed, 28 Jun 2017 21:55:27 +0000 (21:55 +0000)]
Merge "Properly check for orientation mismatch" into oc-dev

7 years agoPrevent unwanted keypress actions during TV Setup.
Sujith Ramakrishnan [Fri, 9 Jun 2017 01:18:12 +0000 (18:18 -0700)]
Prevent unwanted keypress actions during TV Setup.

    - Prevent Search or long-press Home actions
      while TV setup is being completed based
      on flag TV_USER_SETUP_COMPLETE.

Test: Manual - Reset device, ran Setup, tried keys.
Test: Manual - Rebooted device after Setup, tried keys.

Bug: 62419382
Change-Id: Ic8fb0f10943ab7c39a7d9857f62e6ab292231b40

7 years agoMerge "Fix empty signal line thickness / color in status bar" into oc-dev
Evan Laird [Wed, 28 Jun 2017 21:38:13 +0000 (21:38 +0000)]
Merge "Fix empty signal line thickness / color in status bar" into oc-dev
am: 91870d1587

Change-Id: Ie05d24e13dd2975d45acb59e594df0240d54c460

7 years agoMerge "Fix empty signal line thickness / color in status bar" into oc-dev
Evan Laird [Wed, 28 Jun 2017 21:30:15 +0000 (21:30 +0000)]
Merge "Fix empty signal line thickness / color in status bar" into oc-dev

7 years agoMerge "Don't break key event stream when enabling a11y" into oc-dev
Phil Weaver [Wed, 28 Jun 2017 21:17:42 +0000 (21:17 +0000)]
Merge "Don't break key event stream when enabling a11y" into oc-dev
am: bb8a7983ff

Change-Id: I5deb45f1e2b2c0f667c5a37e70cdabe643f905ee

7 years agoMerge "Don't break key event stream when enabling a11y" into oc-dev
Phil Weaver [Wed, 28 Jun 2017 21:09:03 +0000 (21:09 +0000)]
Merge "Don't break key event stream when enabling a11y" into oc-dev

7 years agoMerge changes from topics 'embms-cleanup-action', 'embms-download-token' am: c2f33f18eb
Hall Liu [Wed, 28 Jun 2017 20:44:48 +0000 (20:44 +0000)]
Merge changes from topics 'embms-cleanup-action', 'embms-download-token' am: c2f33f18eb
am: 761bad1c53

Change-Id: I7625defdce4fb4c69355f45d801729828646e659

7 years agoAdd download request tokens and enforce destination clear am: 2043f70acb
Hall Liu [Wed, 28 Jun 2017 20:43:45 +0000 (20:43 +0000)]
Add download request tokens and enforce destination clear am: 2043f70acb
am: 8763c625a3

Change-Id: I6704e20ad1182fc8f97bd36700c54c3d2329da28

7 years agoMerge changes from topics 'embms-cleanup-action', 'embms-download-token'
Hall Liu [Wed, 28 Jun 2017 20:36:49 +0000 (20:36 +0000)]
Merge changes from topics 'embms-cleanup-action', 'embms-download-token'
am: c2f33f18eb

Change-Id: I7c2b0b34ed56bc506ce6139fb39649aec8319e81

7 years agoAdd download request tokens and enforce destination clear
Hall Liu [Wed, 28 Jun 2017 20:35:54 +0000 (20:35 +0000)]
Add download request tokens and enforce destination clear
am: 2043f70acb

Change-Id: I91e61d8f15815efc9f4d08d71d01944c096dc05f

7 years agoMerge changes from topics 'embms-cleanup-action', 'embms-download-token'
Hall Liu [Wed, 28 Jun 2017 20:26:15 +0000 (20:26 +0000)]
Merge changes from topics 'embms-cleanup-action', 'embms-download-token'

* changes:
  Implement the cleanup action in MbmsDownloadReceiver
  Add download request tokens and enforce destination clear

7 years agoMerge "Restrict launching activities on virtual displays" into oc-dev
Andrii Kulian [Wed, 28 Jun 2017 19:56:48 +0000 (19:56 +0000)]
Merge "Restrict launching activities on virtual displays" into oc-dev
am: b0c5d67bf1

Change-Id: Ib8d85b8c96ff2590669e39134623456a2004d008

7 years agoMerge "Restrict launching activities on virtual displays" into oc-dev
Andrii Kulian [Wed, 28 Jun 2017 19:50:27 +0000 (19:50 +0000)]
Merge "Restrict launching activities on virtual displays" into oc-dev

7 years agoProperly check for orientation mismatch
Jorim Jaggi [Wed, 28 Jun 2017 18:40:27 +0000 (14:40 -0400)]
Properly check for orientation mismatch

Previous check tested against the display, which is wrong. Now
we properly check against the configuration.

Test: go/wm-smoke
Test: Enter split screen, go home, launch app, go home, relaunch
app, ensure no splash screen shown
Test: Enter split screen with 2 apps, lock phone, unlock phone

Change-Id: I62d45b6d3e5aa91dcb5edffed4233a5fed7ac9aa
Fixes: 63075521

7 years agoFix empty signal line thickness / color in status bar
Evan Laird [Wed, 28 Jun 2017 18:27:47 +0000 (14:27 -0400)]
Fix empty signal line thickness / color in status bar

Parameterize the line thickness to the height of the drawable. Also draw
the empty state as background signal instead of foreground.

Test: visual
Change-Id: I39a7ef3164b784008e3dba5284b7fe83e4666607
Fixes: 63097113

7 years agoSelectively disable filtering if estimated safe
John Reck [Wed, 28 Jun 2017 18:08:07 +0000 (11:08 -0700)]
Selectively disable filtering if estimated safe

If the output matches the source rect then use
GL_NEAREST instead of GL_FILTER. This is a more
pixel-exact capture.

Bug: 38242146
Test: CtsUiRendering & CtsViewTestCases:.PixelCopyTest passes on fugu
Change-Id: I9f57a4124374568f83d45fdc8f83cc767ded888a

7 years agoIf the menu hasn't been created yet don't do things with it
Mady Mellor [Wed, 28 Jun 2017 18:08:52 +0000 (18:08 +0000)]
If the menu hasn't been created yet don't do things with it
am: 104be2e019

Change-Id: I670206eb1da007b1eeea5f022124a352b0644b6a

7 years ago[Companion] Dont crash if started with bluetooth off
Eugene Susla [Wed, 28 Jun 2017 17:58:46 +0000 (10:58 -0700)]
[Companion] Dont crash if started with bluetooth off

Bug: 63068644
Test: Turn BT off, and ensure the attached bud doesn't reproduce
Change-Id: I0de5ba6d28d7195dd3ebc7a3af36f057c762de60

7 years agoUse Bundle for inter-process message
yinxu [Tue, 27 Jun 2017 21:05:17 +0000 (14:05 -0700)]
Use Bundle for inter-process message

The message sent from NetworkScanRequestTracker to TelephonyScanManager
might be across different process, so we have to wrap the List<CellInfo> into
Bundle because List<> is not parcelable.

Cherry-picked cleanly from:
https://googleplex-android-review.googlesource.com/#/c/2467157/

Test: Telephony sanity tests
Bug: 30954762

Merged-in: I77945b247530b85c0b82876d528549498a711550
Changg-Id: I77945b247530b85c0b82876d528549498a711550
(cherry picked from commit 56049437095d3cb8334f667ff73061f2926b5416)

Change-Id: Iec4043e611a8f58733a361ec9a52fc74e1c974d5

7 years agoDon't break key event stream when enabling a11y
Phil Weaver [Wed, 28 Jun 2017 16:46:32 +0000 (09:46 -0700)]
Don't break key event stream when enabling a11y

Bug: 62862624
Test: Enable magnification, then enable TalkBack with the
a11y shortcut. Verify that volume keys work.
A11y service CTS, a11y units tests.

Change-Id: I729ab17d24f758b5ce534ffde43d2126a1f9536c

7 years agoMerge "Switch PackageStatusStorage to XML-based storage" am: 4e77ae6d1a
Neil Fuller [Wed, 28 Jun 2017 17:20:30 +0000 (17:20 +0000)]
Merge "Switch PackageStatusStorage to XML-based storage" am: 4e77ae6d1a
am: 4a7e3de5e7

Change-Id: I5db1d32b6141653e7971c4f1dd9931d4042bb19b

7 years agoMerge "Switch PackageStatusStorage to XML-based storage"
Neil Fuller [Wed, 28 Jun 2017 17:13:35 +0000 (17:13 +0000)]
Merge "Switch PackageStatusStorage to XML-based storage"
am: 4e77ae6d1a

Change-Id: Ib30177ef93ecacfbd6ab0fb98f933fbf8af0e270

7 years agoRestrict launching activities on virtual displays
Andrii Kulian [Wed, 28 Jun 2017 16:42:48 +0000 (09:42 -0700)]
Restrict launching activities on virtual displays

If an app creates a Surface and a virtual display backed by that
Surface, it can then launch activities and hijack their content.
This CL restrict activities that can be launched to virtual displays
created by apps only to those who set "allowEmbedded" attribute.
If a virtual display was created by system, apps won't get access to
the surface, so we're not limiting in this case.

Bug: 63094482
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testLaunchNotEmbeddedOnVirtualDisplay
Change-Id: Ied216bdf33df4b5a6cc8cac0e006a4883a36f94f

7 years agoMerge "Switch PackageStatusStorage to XML-based storage"
Neil Fuller [Wed, 28 Jun 2017 17:01:56 +0000 (17:01 +0000)]
Merge "Switch PackageStatusStorage to XML-based storage"

7 years agoIf the menu hasn't been created yet don't do things with it
Mady Mellor [Wed, 21 Jun 2017 00:18:53 +0000 (17:18 -0700)]
If the menu hasn't been created yet don't do things with it

Test: runtest systemui
Fixes: 62594598
Change-Id: I1050e2b2bf1ece960d19ad13cb6a9bf71512db57
(cherry picked from commit 0b3f004acbb0eef38ee5e8d920e934f7ab2f7cde)

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
Bill Yi [Wed, 28 Jun 2017 15:21:44 +0000 (15:21 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev
am: f36a995424  -s ours

Change-Id: I5a453dd7e4e36f992cf55e8b633cf766280b0fae

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Wed, 28 Jun 2017 15:11:54 +0000 (15:11 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Add APIs to get remote device's battery level (1/2)" am: ceaccbfe70
Jack He [Wed, 28 Jun 2017 08:37:50 +0000 (08:37 +0000)]
Merge "Add APIs to get remote device's battery level (1/2)" am: ceaccbfe70
am: 96f98f255b

Change-Id: I004b05f007def7f995112b867f102fe11b88064d

7 years agoMerge "Add APIs to get remote device's battery level (1/2)"
Jack He [Wed, 28 Jun 2017 08:32:54 +0000 (08:32 +0000)]
Merge "Add APIs to get remote device's battery level (1/2)"
am: ceaccbfe70

Change-Id: Ic3253ef666632aaaffe8e1547dc563cd3bca9e37

7 years agoMerge "Add APIs to get remote device's battery level (1/2)"
Treehugger Robot [Wed, 28 Jun 2017 08:26:13 +0000 (08:26 +0000)]
Merge "Add APIs to get remote device's battery level (1/2)"

7 years agoImplement the cleanup action in MbmsDownloadReceiver
Hall Liu [Thu, 22 Jun 2017 01:23:48 +0000 (18:23 -0700)]
Implement the cleanup action in MbmsDownloadReceiver

Implement ACTION_CLEANUP, add result codes for the ordered broadcasts,
and remove the download request extra for file descriptor requests

Change-Id: I5ee19ad0aefbdceacb636b3d17e197a6fb1bdaa6

7 years agoAdd APIs to get remote device's battery level (1/2)
Jack He [Sat, 17 Jun 2017 02:43:58 +0000 (19:43 -0700)]
Add APIs to get remote device's battery level (1/2)

* Add BluetoothDevice.getBatteryLevel() API to retreive battery level
  information of remote device
* Add BluetoothDevice.ACTION_BATTERY_LEVEL_CHANGED intent to notify user
  that remote device's battery level has changed

Bug: 35874078
Test: make, pair with devices and use them
Change-Id: I41051ee25383f5f3a1e505aef6f8c526385f58bd

7 years agodocs: Updated isAutofillSupported description.
Ricardo Loo [Tue, 27 Jun 2017 21:17:33 +0000 (14:17 -0700)]
docs: Updated isAutofillSupported description.

The description for `AutofillManager.isAutofillSupported` doesn't make
clear that either the device or the user can make autofill unsupported.

Bug: 62604325
Test: Ran 'make ds-docs -j16' and staged content to
go/dac-stage/reference/android/view/autofill/AutofillManager.html#isAutofillSupported()

Change-Id: I298b9f535e23dc3cb54fabed36642523753c13a5

7 years agoMerge "Fix an NPE when cancelling full backup in BMS#endFullBackup()" into oc-dev
Michal Karpinski [Tue, 27 Jun 2017 20:46:55 +0000 (20:46 +0000)]
Merge "Fix an NPE when cancelling full backup in BMS#endFullBackup()" into oc-dev
am: 0d1b1a253a

Change-Id: Id2e6a870ff207eb25844ecbeca6b80630b2e0d28

7 years agoDisable requestVisibleBehind.
Robert Carr [Tue, 27 Jun 2017 20:46:14 +0000 (13:46 -0700)]
Disable requestVisibleBehind.

As there is no caller for the SystemAPI convertToTranslucent, there is no situation
where requestVisibleBehind will actually result in the activity becoming
visible behind. However we have bugs in the requestVisibleBehind code-path,
so rather than fix them...it seems better to just prevent ourselves from
running in to them. Full deletion of the code-path is scheduled for post-O
branches.

Change-Id: I6e7c79e036986564d2d443a603e63c341de23057
Fixes: 62512584
Test: Repro from bug. go/wm-smoke.

7 years agoMerge "Use content type specified on the command line" into oc-dev
Todd Kennedy [Tue, 27 Jun 2017 20:40:47 +0000 (20:40 +0000)]
Merge "Use content type specified on the command line" into oc-dev
am: f89bf30312

Change-Id: I33dc8db8cf347b43a404cb0d33b7f6a0a005da6a

7 years agoMerge "Fix an NPE when cancelling full backup in BMS#endFullBackup()" into oc-dev
TreeHugger Robot [Tue, 27 Jun 2017 20:33:23 +0000 (20:33 +0000)]
Merge "Fix an NPE when cancelling full backup in BMS#endFullBackup()" into oc-dev

7 years agoMerge "Use content type specified on the command line" into oc-dev
TreeHugger Robot [Tue, 27 Jun 2017 20:30:45 +0000 (20:30 +0000)]
Merge "Use content type specified on the command line" into oc-dev

7 years agoMerge "Supress roaming indications during a carrier network change." into oc-dev
Shishir Agrawal [Tue, 27 Jun 2017 20:05:04 +0000 (20:05 +0000)]
Merge "Supress roaming indications during a carrier network change." into oc-dev
am: f1b57080a6

Change-Id: I879ad445f1dd1a2c39e71dd29bf155865318eead

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
Bill Yi [Tue, 27 Jun 2017 19:59:48 +0000 (19:59 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev
am: a0376f250f  -s ours

Change-Id: Iebd88570c6104dceaa4344c0ab2f53f354fa0ba9