OSDN Git Service

android-x86/frameworks-base.git
6 years agoAdd more atoms to statsd
Bookatz [Wed, 25 Oct 2017 03:10:31 +0000 (20:10 -0700)]
Add more atoms to statsd

The following events are added to statsd:
WifiLockStateChanged
WifiSignalStrengthChanged
WifiSignalStrengthChanged
PhoneSignalStrengthChanged

Test: manually confirmed these show up in the statslog.
Change-Id: Ifee27c86a28616d8cb9d43bdf11f9cabe2b367c6

6 years agoAdd wakelock atom to statsd
Bookatz [Wed, 25 Oct 2017 01:39:35 +0000 (18:39 -0700)]
Add wakelock atom to statsd

The wakelock event is logged in statsd.

Test: manually confirmed that the event appears in statslog.
Change-Id: I9ffa4b0042264aabf3526843b4fb1832d183de61

6 years agoAdd some atoms to statsd
Bookatz [Tue, 24 Oct 2017 22:04:41 +0000 (15:04 -0700)]
Add some atoms to statsd

The following atoms (events) are added:
BatteryLevelChanged
ChargingStateChanged
PluggedStateChanged
DeviceTemperatureReported
DeviceOnStatusChanged
WakeupAlarmOccurred
KernelWakeupReported

Test: manual
Change-Id: I1e7d8a842ee67b5da30f20c9e6976c5bc4e0a0ef

6 years agoMerge "Update TextClassifier Javadoc."
TreeHugger Robot [Tue, 24 Oct 2017 21:50:59 +0000 (21:50 +0000)]
Merge "Update TextClassifier Javadoc."

6 years agoMerge "Pass both partition GUID and filesystem UUID."
Jeff Sharkey [Tue, 24 Oct 2017 21:39:20 +0000 (21:39 +0000)]
Merge "Pass both partition GUID and filesystem UUID."

6 years agoMerge "Skip broadcast delivery if user is not running"
Fyodor Kupolov [Tue, 24 Oct 2017 21:35:02 +0000 (21:35 +0000)]
Merge "Skip broadcast delivery if user is not running"

6 years agoMerge "Add EventMetricProducer"
TreeHugger Robot [Tue, 24 Oct 2017 21:05:18 +0000 (21:05 +0000)]
Merge "Add EventMetricProducer"

6 years agoMerge "Simplified ActivityStack.shouldBeVisible()"
TreeHugger Robot [Tue, 24 Oct 2017 21:04:02 +0000 (21:04 +0000)]
Merge "Simplified ActivityStack.shouldBeVisible()"

6 years agoMerge "Expose SmsMessage#FORMAT_ constants as public APIs."
TreeHugger Robot [Tue, 24 Oct 2017 20:42:36 +0000 (20:42 +0000)]
Merge "Expose SmsMessage#FORMAT_ constants as public APIs."

6 years agoMerge "Add OWNERS for settingslib"
TreeHugger Robot [Tue, 24 Oct 2017 20:05:52 +0000 (20:05 +0000)]
Merge "Add OWNERS for settingslib"

6 years agoUpdate TextClassifier Javadoc.
Abodunrinwa Toki [Mon, 23 Oct 2017 23:49:27 +0000 (00:49 +0100)]
Update TextClassifier Javadoc.

Bug: 65112496
Test: none
Change-Id: Id3732a2c8ed372be0f717346e6aa92b9e614ad04

6 years agoMerge "Change cleartext traffic permitted default for P apps"
Chad Brubaker [Tue, 24 Oct 2017 19:28:37 +0000 (19:28 +0000)]
Merge "Change cleartext traffic permitted default for P apps"

6 years agoAdd EventMetricProducer
Yao Chen [Mon, 23 Oct 2017 19:50:02 +0000 (12:50 -0700)]
Add EventMetricProducer

+ Started to use ProtoOutputStream in EventMetricProducer.
  [TODO]: We need to auto-generate fieldIds for StatsLogReport, XXXMetricData, etc.
  [TODO]: We need to add Enum type to liblog, otherwise we cannot reconstruct a proto containing
          an enum

+ Some refactor in metric initialization code. There are still boiler plate code, because Metrics
  are similar but with subtle differences.

Test: statsd_test

Change-Id: Id7e3212566249a8139b9680f04238c455d50c1b8

6 years agoMerge "Move mGlobalGids and mSystemPermissions"
TreeHugger Robot [Tue, 24 Oct 2017 18:41:27 +0000 (18:41 +0000)]
Merge "Move mGlobalGids and mSystemPermissions"

6 years agoMerge "GnssLocationProvider: modify "=" restriction to support URL with "=" inside"
TreeHugger Robot [Tue, 24 Oct 2017 18:33:35 +0000 (18:33 +0000)]
Merge "GnssLocationProvider: modify "=" restriction to support URL with "=" inside"

6 years agoExpose SmsMessage#FORMAT_ constants as public APIs.
Jeff Davidson [Fri, 13 Oct 2017 18:23:28 +0000 (11:23 -0700)]
Expose SmsMessage#FORMAT_ constants as public APIs.

These constants are intended to be arguments for
SmsManager#injectSmsPdu which is already public, and they are
referenced from CTS as well. Therefore, they should also be public.

Also add a @StringDef for these values and clean up the Javadoc while
we're here to use properly-linked references to other APIs.

Change-Id: I4e513f49f18350b93cccdc0d8a5847d31eefe7e2
Fixes: 67751433
Test: TreeHugger (no functional changes)

6 years agoMerge "Move mPermissionGroups"
TreeHugger Robot [Tue, 24 Oct 2017 18:22:13 +0000 (18:22 +0000)]
Merge "Move mPermissionGroups"

6 years agoPass both partition GUID and filesystem UUID.
Jeff Sharkey [Tue, 24 Oct 2017 17:08:50 +0000 (11:08 -0600)]
Pass both partition GUID and filesystem UUID.

FDE keys are indexed using the partition GUID, while FBE keys will be
indexed using the filesystem UUID, so pass both of those identifiers
along when forgetting a volume.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.AdoptableHostTest
Bug: 25861755
Change-Id: I88e13b6b39c5675403a3199e69f978720f26814a

6 years agoFix SliceProvider threading
Lucas Dupin [Mon, 23 Oct 2017 21:31:45 +0000 (14:31 -0700)]
Fix SliceProvider threading

Binding a slice that lives in the same process would lead to a
deadlock since we'd sleep the main thread while waiting for it
to decrease the CountdownLatch. Now we're checking if we're
already in the main looper and only posting when necessary.

Test: run code in ag/3082570
Change-Id: Id7c4f9dd8d84bf0e513606cbe07bf87750c567e4

6 years agoSimplified ActivityStack.shouldBeVisible()
Wale Ogunwale [Wed, 18 Oct 2017 22:19:59 +0000 (15:19 -0700)]
Simplified ActivityStack.shouldBeVisible()

The method can now be simplified since we have a stack per task so
if a stack should be visible is now a question of if it is occluded
by another stack.

Also,
- Fixed an issue where the windowing mode of the primary split-screen
stack was changing to split-screen-secondary instead of fullscreen
when we are exiting split-screen mode because we are not allowed to
to create fullscreen stack when there is a primary split-screen stack. We
now clear the reference to the primary split-screen stack when exiting
split-screen mode.
- Re-worked windowing mode resolution to be inside ActivityDisplay
object since the determination of the windowing mode is dependant on the
display.

Test: bit FrameworksServicesTests:com.android.server.am.ActivityStackTests
Test: Existing tests pass.
Test: go/wm-smoke
Bug: 64146578
Fixes: 67914671
Change-Id: I7e8cfe49fbf6a5836ded022bb11adcde58ae689c

6 years agoSkip broadcast delivery if user is not running
Fyodor Kupolov [Mon, 23 Oct 2017 18:23:51 +0000 (11:23 -0700)]
Skip broadcast delivery if user is not running

Test: create/switch-to guest repeatedly - no app errors
Bug: 62105195
Change-Id: I2dc9967912771bf7c0adc95c26888f83432388c8

6 years agoMerge "Fix several nits"
Yi Jin [Tue, 24 Oct 2017 17:26:51 +0000 (17:26 +0000)]
Merge "Fix several nits"

6 years agoAdd OWNERS for settingslib
jackqdyulei [Wed, 18 Oct 2017 21:00:56 +0000 (14:00 -0700)]
Add OWNERS for settingslib

Bug: 67953936
Test: Manual
Change-Id: Ic1689755060ae3514b7c44f3c3518d511c12d7a4

6 years agoMerge "Merge "Return a port from bindToPort() in IpSecService" am: 9305fb7ea1 am...
Android Build Merger (Role) [Tue, 24 Oct 2017 17:11:15 +0000 (17:11 +0000)]
Merge "Merge "Return a port from bindToPort() in IpSecService" am: 9305fb7ea1 am: d6ab173f6c am: a18f840082"

6 years agoMerge "Return a port from bindToPort() in IpSecService" am: 9305fb7ea1 am: d6ab173f6c
Benedict Wong [Tue, 24 Oct 2017 17:09:28 +0000 (17:09 +0000)]
Merge "Return a port from bindToPort() in IpSecService" am: 9305fb7ea1 am: d6ab173f6c
am: a18f840082

Change-Id: I0d1c17c3740983ab0cbc24c2cd0d3a530b56ca99

6 years agoMerge "Add OWNERS for folder inputmethod"
Lei Yu [Tue, 24 Oct 2017 17:07:24 +0000 (17:07 +0000)]
Merge "Add OWNERS for folder inputmethod"

6 years agoMerge "Return a port from bindToPort() in IpSecService" am: 9305fb7ea1
Benedict Wong [Tue, 24 Oct 2017 16:54:57 +0000 (16:54 +0000)]
Merge "Return a port from bindToPort() in IpSecService" am: 9305fb7ea1
am: d6ab173f6c

Change-Id: Ie59d496a38bf9775c1f40a543a24cb3fec5719bf

6 years agoMerge "AAPT leave <gradient> alone for VDC" into oc-mr1-dev am: 81831f89ce
Tenghui Zhu [Tue, 24 Oct 2017 16:50:06 +0000 (16:50 +0000)]
Merge "AAPT leave <gradient> alone for VDC" into oc-mr1-dev am: 81831f89ce
am: fa1d67a6f8

Change-Id: I967e540cd9f40db3f957f188bcf557bc6a95cb9b

6 years agoMerge "Return a port from bindToPort() in IpSecService"
Benedict Wong [Tue, 24 Oct 2017 16:44:59 +0000 (16:44 +0000)]
Merge "Return a port from bindToPort() in IpSecService"
am: 9305fb7ea1

Change-Id: I51705d5db6af560f2423ef7861bfde6734632ec9

6 years agoMerge "AAPT leave <gradient> alone for VDC" into oc-mr1-dev
Tenghui Zhu [Tue, 24 Oct 2017 16:36:28 +0000 (16:36 +0000)]
Merge "AAPT leave <gradient> alone for VDC" into oc-mr1-dev
am: 81831f89ce

Change-Id: I0ee4801c31a63b8e617adb053a773456814b65ff

6 years agoMerge "Return a port from bindToPort() in IpSecService"
Benedict Wong [Tue, 24 Oct 2017 16:31:21 +0000 (16:31 +0000)]
Merge "Return a port from bindToPort() in IpSecService"

6 years agoMerge "AAPT leave <gradient> alone for VDC" into oc-mr1-dev
Tenghui Zhu [Tue, 24 Oct 2017 16:22:49 +0000 (16:22 +0000)]
Merge "AAPT leave <gradient> alone for VDC" into oc-mr1-dev

6 years agoMerge changes from topic "delete_setWifiApEnabled"
Rebecca Silberstein [Tue, 24 Oct 2017 16:10:41 +0000 (16:10 +0000)]
Merge changes from topic "delete_setWifiApEnabled"

* changes:
  WifiManager: delete the setWifiApEnabled method
  WifiManager: remove last remnants of setWifiApEnabled

6 years agoMerge "Refactor some WebView loading logic into WebViewLibraryLoader."
TreeHugger Robot [Tue, 24 Oct 2017 15:37:56 +0000 (15:37 +0000)]
Merge "Refactor some WebView loading logic into WebViewLibraryLoader."

6 years agoMerge "Make Session package private."
Bryce Lee [Tue, 24 Oct 2017 14:50:27 +0000 (14:50 +0000)]
Merge "Make Session package private."

6 years agoMake Session package private.
Bryce Lee [Mon, 23 Oct 2017 19:57:37 +0000 (12:57 -0700)]
Make Session package private.

This change requires moving initialization of the mock session until
after the dex flags and mock infrastructure has been set up.

Test: bit FrameworksServicesTests:com.android.server.wm.WindowLayersControllerTests
Change-Id: Icb469d09d8f591da6bb6a81a3741e508a3a03bd5

6 years agoMerge "[Magnifier - 6] Simplify API and configuration"
TreeHugger Robot [Tue, 24 Oct 2017 14:37:53 +0000 (14:37 +0000)]
Merge "[Magnifier - 6] Simplify API and configuration"

6 years agoRefactor some WebView loading logic into WebViewLibraryLoader.
Gustav Sennton [Tue, 24 Oct 2017 13:28:26 +0000 (14:28 +0100)]
Refactor some WebView loading logic into WebViewLibraryLoader.

This is in preparation for a patch which with bigger changes for
WebViewLibraryLoader (including tests).

Bug: 28736099
Test: ensure relro loaded into app process on 32-bit device.
Change-Id: Ic1aef697c1010380d8bce466ee14627d9cdff9e7

6 years agoMove mGlobalGids and mSystemPermissions
Todd Kennedy [Tue, 10 Oct 2017 16:55:53 +0000 (09:55 -0700)]
Move mGlobalGids and mSystemPermissions

This is the last tiny move before moving methods to grant/update
permissions.

Bug: 63539144
Test: Manual. Builds and runs
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.PermissionsHostTest
Test: cts-tradefed run commandAndExit cts-dev -m CtsPermissionTestCases
Test: cts-tradefed run commandAndExit cts-dev -m CtsPermission2TestCases
Test: bit FrameworksServicesTests:com.android.server.pm.PackageManagerSettingsTests
Change-Id: Ic2138cf1e442d9d10e8a3ad6dfa24c403aaeca67

6 years agoMove mPermissionGroups
Todd Kennedy [Fri, 6 Oct 2017 20:46:22 +0000 (13:46 -0700)]
Move mPermissionGroups

Bug: 63539144
Test: Manual. Builds and runs
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.PermissionsHostTest
Test: cts-tradefed run commandAndExit cts-dev -m CtsPermissionTestCases
Test: cts-tradefed run commandAndExit cts-dev -m CtsPermission2TestCases
Test: bit FrameworksServicesTests:com.android.server.pm.PackageManagerSettingsTests
Change-Id: I3b019babc81997d1d70c14675a34b6a8bec5387d

6 years agoMerge "AAPT2: Sanitize resource qualifiers before using in split names." into oc...
Donald Chai [Tue, 24 Oct 2017 11:40:55 +0000 (11:40 +0000)]
Merge "AAPT2: Sanitize resource qualifiers before using in split names." into oc-mr1-dev am: 72b3d46794
am: b08aa082a4

Change-Id: If635231da8db6658ba1e016c4c84292e73972066

6 years agoMerge "AAPT2: Sanitize resource qualifiers before using in split names." into oc...
Donald Chai [Tue, 24 Oct 2017 11:31:04 +0000 (11:31 +0000)]
Merge "AAPT2: Sanitize resource qualifiers before using in split names." into oc-mr1-dev
am: 72b3d46794

Change-Id: I1f87fce18c665433ad916ac47cd3f78ae007c776

6 years agoMerge "AAPT2: Sanitize resource qualifiers before using in split names." into oc...
TreeHugger Robot [Tue, 24 Oct 2017 11:16:03 +0000 (11:16 +0000)]
Merge "AAPT2: Sanitize resource qualifiers before using in split names." into oc-mr1-dev

6 years agoMerge "Use ASM6 Opcodes everywhere in locked_region_code_injection" am: 5aa4dafa58...
Benoit Lamarche [Tue, 24 Oct 2017 10:31:11 +0000 (10:31 +0000)]
Merge "Use ASM6 Opcodes everywhere in locked_region_code_injection" am: 5aa4dafa58 am: 4927808d39
am: bbb2eb3f59

Change-Id: Ic33dffeeac6445773de09ec9c1cb4bc3b79ae5ea

6 years agoMerge "Preserve order of shared library files" am: 596bb64796 am: e74db7c7e2 -s...
Paul Duffin [Tue, 24 Oct 2017 10:20:16 +0000 (10:20 +0000)]
Merge "Preserve order of shared library files" am: 596bb64796 am: e74db7c7e2  -s ours
am: 46080df911  -s ours

Change-Id: I7ebb756b46dd5d35c20af6179b43ad126cb7bf0b

6 years ago[Magnifier - 6] Simplify API and configuration
Andrei Stingaceanu [Tue, 24 Oct 2017 10:17:35 +0000 (11:17 +0100)]
[Magnifier - 6] Simplify API and configuration

* removed "scale" from the show(...) API
* made the zoom scale a dimension => the widget is
  fully self-configured
* fixed the magnifier not always scaling the content
  to the full pop-up window size

Bug: 63531115
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: manual test that shows the magnifier working
Change-Id: Ibf5c571970c8f6bd3cdbc6d46fbe57d08291783c

6 years agoMerge "Use ASM6 Opcodes everywhere in locked_region_code_injection" am: 5aa4dafa58
Benoit Lamarche [Tue, 24 Oct 2017 10:13:58 +0000 (10:13 +0000)]
Merge "Use ASM6 Opcodes everywhere in locked_region_code_injection" am: 5aa4dafa58
am: 4927808d39

Change-Id: I718efd7536331508531bb7c30dfab3638ef60d0e

6 years agoMerge "Preserve order of shared library files" am: 596bb64796
Paul Duffin [Tue, 24 Oct 2017 10:07:37 +0000 (10:07 +0000)]
Merge "Preserve order of shared library files" am: 596bb64796
am: e74db7c7e2  -s ours

Change-Id: I52c45674dc6ddf972694d4e4dc71856453e68a96

6 years agoMerge "Use ASM6 Opcodes everywhere in locked_region_code_injection"
Benoit Lamarche [Tue, 24 Oct 2017 08:54:09 +0000 (08:54 +0000)]
Merge "Use ASM6 Opcodes everywhere in locked_region_code_injection"
am: 5aa4dafa58

Change-Id: Ic8f892399cdfa746a2fab4a841469f41f0fe98f5

6 years agoMerge "Use ASM6 Opcodes everywhere in locked_region_code_injection"
Benoit Lamarche [Tue, 24 Oct 2017 08:42:10 +0000 (08:42 +0000)]
Merge "Use ASM6 Opcodes everywhere in locked_region_code_injection"

6 years agoMerge "Preserve order of shared library files"
Paul Duffin [Tue, 24 Oct 2017 07:59:35 +0000 (07:59 +0000)]
Merge "Preserve order of shared library files"
am: 596bb64796

Change-Id: I95c1cd65ded3b3d14b7f916c8a10825399e7b8ec

6 years agoMerge "Preserve order of shared library files"
Paul Duffin [Tue, 24 Oct 2017 07:48:13 +0000 (07:48 +0000)]
Merge "Preserve order of shared library files"

6 years agoMerge changes from topic "bt_get_cod" am: 35dc02004c am: 178e5873b0
Pulkit Bhuwalka [Tue, 24 Oct 2017 06:47:51 +0000 (06:47 +0000)]
Merge changes from topic "bt_get_cod" am: 35dc02004c am: 178e5873b0
am: f7e25297ae

Change-Id: Ic6d8ff403f54e54d9b353f67f76851bd46b0aff6

6 years agoMerge changes from topic "bt_get_cod" am: 35dc02004c
Pulkit Bhuwalka [Tue, 24 Oct 2017 06:36:52 +0000 (06:36 +0000)]
Merge changes from topic "bt_get_cod" am: 35dc02004c
am: 178e5873b0

Change-Id: I3fef3c3a196af47518affea2ecac04ccadf4de4e

6 years agoMerge "Persist Bluetooth CoD config value across reboot" am: ba45409c92 am: b977674b17
Pulkit Bhuwalka [Tue, 24 Oct 2017 06:32:30 +0000 (06:32 +0000)]
Merge "Persist Bluetooth CoD config value across reboot" am: ba45409c92 am: b977674b17
am: 7cc5e10c2f

Change-Id: I4a0d1e8cc4f879896c3029a8f871d794362e0bca

6 years agoMerge changes from topic "bt_get_cod"
Pulkit Bhuwalka [Tue, 24 Oct 2017 06:27:23 +0000 (06:27 +0000)]
Merge changes from topic "bt_get_cod"
am: 35dc02004c

Change-Id: Iec67ef3cc9c990b4d5285b23b51972915cbbd335

6 years agoMerge "Persist Bluetooth CoD config value across reboot" am: ba45409c92
Pulkit Bhuwalka [Tue, 24 Oct 2017 06:22:08 +0000 (06:22 +0000)]
Merge "Persist Bluetooth CoD config value across reboot" am: ba45409c92
am: b977674b17

Change-Id: I6b6745eb558d664e1f17d5e808c66990cd0038eb

6 years agoMerge changes from topic "bt_get_cod"
Treehugger Robot [Tue, 24 Oct 2017 06:14:37 +0000 (06:14 +0000)]
Merge changes from topic "bt_get_cod"

* changes:
  Add missing intents to protected broadcasts
  Get Bluetooth Class of Device

6 years agoMerge "Persist Bluetooth CoD config value across reboot"
Pulkit Bhuwalka [Tue, 24 Oct 2017 06:13:48 +0000 (06:13 +0000)]
Merge "Persist Bluetooth CoD config value across reboot"
am: ba45409c92

Change-Id: I4d28d0b1b52e587285d3b92b66fdc4b6c1b38720

6 years agoAdd missing intents to protected broadcasts
Pulkit Bhuwalka [Tue, 26 Sep 2017 02:19:46 +0000 (19:19 -0700)]
Add missing intents to protected broadcasts

Intents broadcasted by the Bluetooth stack need to be added to protected
broadcasts else they complain with errors in the log since Bluetooth is
considered a system process. A few of these intents, especially AVRCP
intents were missing in the list.

Bug: None
Test: Verified errors don't show up after introducing the intents while
playing on a sink device.

Change-Id: Ie283c50243d9a1bac3fd937f58bc1ddc20867d2f

6 years agoGet Bluetooth Class of Device
Pulkit Bhuwalka [Wed, 20 Sep 2017 22:10:45 +0000 (15:10 -0700)]
Get Bluetooth Class of Device

Adds API to fetch Bluetooth CoD value of the stack. The API is hidden to
only be used by System code.

Bug: 36015415
Test: Verified fetching of COD from test app on flashed device, after modification
and after after reboot.

Change-Id: Ie35ecf141704c2aac46678da7cabdc7203a088f2

6 years agoMerge "Persist Bluetooth CoD config value across reboot"
Treehugger Robot [Tue, 24 Oct 2017 06:05:45 +0000 (06:05 +0000)]
Merge "Persist Bluetooth CoD config value across reboot"

6 years agoMerge "Prevent restoring task when updating task"
TreeHugger Robot [Tue, 24 Oct 2017 01:50:51 +0000 (01:50 +0000)]
Merge "Prevent restoring task when updating task"

6 years agoMerge "NetdEventListener: add rolling log of connect and dns stats" am: 64ef2a4d28...
Hugo Benichi [Tue, 24 Oct 2017 00:35:31 +0000 (00:35 +0000)]
Merge "NetdEventListener: add rolling log of connect and dns stats" am: 64ef2a4d28 am: a3e7c1a3db
am: 47fb2aa929

Change-Id: I2a46f705a2a28c1e09d50a853f11edef13ad6821

6 years agoMerge "Move SimStatus and ImeiInfo Pref Controllers to SettingsLib"
TreeHugger Robot [Tue, 24 Oct 2017 00:28:00 +0000 (00:28 +0000)]
Merge "Move SimStatus and ImeiInfo Pref Controllers to SettingsLib"

6 years agoMerge "NetdEventListener: add rolling log of connect and dns stats" am: 64ef2a4d28
Hugo Benichi [Tue, 24 Oct 2017 00:25:11 +0000 (00:25 +0000)]
Merge "NetdEventListener: add rolling log of connect and dns stats" am: 64ef2a4d28
am: a3e7c1a3db

Change-Id: Iaad5f5b142209ce36f70249a438b3dd66fb92f07

6 years agoMerge "NetdEventListener: add rolling log of connect and dns stats"
Hugo Benichi [Tue, 24 Oct 2017 00:14:48 +0000 (00:14 +0000)]
Merge "NetdEventListener: add rolling log of connect and dns stats"
am: 64ef2a4d28

Change-Id: I7f25f4ed42f0aecea7a1bb09b8c65a5d2e4a84cd

6 years agoMerge "NetdEventListener: add rolling log of connect and dns stats"
Hugo Benichi [Mon, 23 Oct 2017 23:54:53 +0000 (23:54 +0000)]
Merge "NetdEventListener: add rolling log of connect and dns stats"

6 years agoMerge "Export AIDL for keystore Android.bp."
Jeff Sharkey [Mon, 23 Oct 2017 23:50:52 +0000 (23:50 +0000)]
Merge "Export AIDL for keystore Android.bp."

6 years agoFix several nits
Yi Jin [Mon, 23 Oct 2017 22:42:44 +0000 (15:42 -0700)]
Fix several nits

1. Change the APIs of ProtoOutputStream to be able to write bytes
2. Fix the tests in incidentd, stdout is closed so can't capture the
value, use temporaryFile instead.

Test: N/A
Change-Id: Ibc31f2efd068afc6c06188d92f57ca5a754c3683

6 years agoPrevent restoring task when updating task
Winson Chung [Mon, 23 Oct 2017 18:10:58 +0000 (11:10 -0700)]
Prevent restoring task when updating task

Cherry-pick from: Ie501add4b72a63be0b8514136f10a09fbdd0c6c3

Symptom: App activity shown between launcher & wallpaper.

RootCause:
Some AM public Apis (getTaskInfo(), setExcluteFromRecent()) will calling
AM.anyTaskForIdLocked with MATCH_TASK_IN_STACKS_OR_RECENT_TASKS_AND_RESTORE
parameter to get task record & add task into stack bottom,
that will affect wm side also create task & bring task stack to bottom
due to task.createWindowContainer() in restoreRecentTaskLocked().

Solution:
using MATCH_TASK_IN_STACKS_OR_RECENT_TASKS to get task record without
restore record into stack.

Bug: 67634904
Test: As below issue described sample app flows. b/68038609

Change-Id: I8241c0956a3323a70e754c794dd562540ff4eaf4
Signed-off-by: Winson Chung <winsonc@google.com>
6 years agoMerge "Change Bluetooth HID Profile Name (1/6)" am: 8218b219f3 am: c8a370aeba
Hansong Zhang [Mon, 23 Oct 2017 22:59:33 +0000 (22:59 +0000)]
Merge "Change Bluetooth HID Profile Name (1/6)" am: 8218b219f3 am: c8a370aeba
am: 5140894a5d  -s ours

Change-Id: I2a9e23646d21bc97b02e9648704e5f766432d3cd

6 years agoMerge "Change Bluetooth HID Profile Name (1/6)" am: 8218b219f3
Hansong Zhang [Mon, 23 Oct 2017 22:46:31 +0000 (22:46 +0000)]
Merge "Change Bluetooth HID Profile Name (1/6)" am: 8218b219f3
am: c8a370aeba

Change-Id: I2c5da84f5b57496e2a0ef45fb17085670f7465a9

6 years agoMerge "Anomaly detection for count reads from config"
TreeHugger Robot [Mon, 23 Oct 2017 22:36:01 +0000 (22:36 +0000)]
Merge "Anomaly detection for count reads from config"

6 years agoMerge "Change Bluetooth HID Profile Name (1/6)"
Hansong Zhang [Mon, 23 Oct 2017 22:33:50 +0000 (22:33 +0000)]
Merge "Change Bluetooth HID Profile Name (1/6)"
am: 8218b219f3

Change-Id: Ic085deaa070b4008b34d03b507f81a5df220764a

6 years agoMerge "Change Bluetooth HID Profile Name (1/6)"
Treehugger Robot [Mon, 23 Oct 2017 22:22:41 +0000 (22:22 +0000)]
Merge "Change Bluetooth HID Profile Name (1/6)"

6 years agoMerge "Stop octopus animation when paused"
TreeHugger Robot [Mon, 23 Oct 2017 22:21:43 +0000 (22:21 +0000)]
Merge "Stop octopus animation when paused"

6 years agoChange Bluetooth HID Profile Name (1/6)
Hansong Zhang [Fri, 20 Oct 2017 22:55:59 +0000 (15:55 -0700)]
Change Bluetooth HID Profile Name (1/6)

Make the Bluetooth HID profile name consistent with the Bluetooth HID service
name.

BluetoothInputHost → BluetoothHidDevice
BluetoothInputDevice → BluetoothHidHost
IBluetoothInputHost → IBluetoothHidDevice
IBluetoothInputDevice → IBluetoothHidHost
BluetoothProfile.INPUT_HOST → BluetoothProfile.HID_DEVICE
BluetoothProfile.INPUT_DEVICE → BluetoothProfile.HID_HOST

(Cherry-picked from commit c26c76c63d933f8057f795d05624f91b811c8c71)
Merged-In: Iadb890a54dd3d6868b87514472bbac6bb0c6179f
Bug: 68055651
Test: make
Change-Id: Iadb890a54dd3d6868b87514472bbac6bb0c6179f

6 years agoMerge "Skip blocking InputConnection APIs after unbind"
TreeHugger Robot [Mon, 23 Oct 2017 22:10:02 +0000 (22:10 +0000)]
Merge "Skip blocking InputConnection APIs after unbind"

6 years agoExport AIDL for keystore Android.bp.
Jeff Sharkey [Mon, 23 Oct 2017 22:04:31 +0000 (16:04 -0600)]
Export AIDL for keystore Android.bp.

Test: builds, boots
Bug: 67041047
Change-Id: Iaff1de1f9c015a824ffc1f4946ced4a13d9bd7c1

6 years agoMerge "Change Bluetooth HID Profile Name (1/11)"
TreeHugger Robot [Mon, 23 Oct 2017 21:15:46 +0000 (21:15 +0000)]
Merge "Change Bluetooth HID Profile Name (1/11)"

6 years agoAdd OWNERS for folder inputmethod
jackqdyulei [Wed, 18 Oct 2017 23:05:00 +0000 (16:05 -0700)]
Add OWNERS for folder inputmethod

Bug: 67953936
Test: Manual
Change-Id: I83a96aac64024e57707f9024b9c3d9e681568ba2

6 years agoMerge "Add config to display VM number as default number of CF" am: 3e26cb18fb am...
Jordan Liu [Mon, 23 Oct 2017 21:04:29 +0000 (21:04 +0000)]
Merge "Add config to display VM number as default number of CF" am: 3e26cb18fb am: 9953542c3a
am: d44b0c454f

Change-Id: I8b9025467e1ebf9c74438eddbf1273fc53f3af53

6 years agoStop octopus animation when paused
Dan Sandler [Wed, 18 Oct 2017 20:06:28 +0000 (16:06 -0400)]
Stop octopus animation when paused

Bug: 65597560
Test: 1. launch easter egg
         adb shell am start \
           -a android.intent.action.MAIN \
           -c com.android.internal.category.PLATLOGO
      2. go home
         adb shell input keyevent 3
      3. ensure octo is not consuming CPU
         adb shell top

Change-Id: I5e95e56ddb212f951b461264d3af40682d08fee3

6 years agoMerge "Add config to display VM number as default number of CF" am: 3e26cb18fb
Jordan Liu [Mon, 23 Oct 2017 20:48:04 +0000 (20:48 +0000)]
Merge "Add config to display VM number as default number of CF" am: 3e26cb18fb
am: 9953542c3a

Change-Id: I93696ab322ca9a2edcbf03efeb33cbf9f6c6279a

6 years agoMerge "Add config to display VM number as default number of CF"
Jordan Liu [Mon, 23 Oct 2017 20:39:20 +0000 (20:39 +0000)]
Merge "Add config to display VM number as default number of CF"
am: 3e26cb18fb

Change-Id: Ie332a31b699b375d7a9ff56f314346546244010e

6 years agoAnomaly detection for count reads from config
Bookatz [Thu, 19 Oct 2017 17:13:49 +0000 (10:13 -0700)]
Anomaly detection for count reads from config

Count anomaly detection now reads in parameters from the config.
Also adds refractory period.

Test: Manually, using ConfigManager's fake config
Change-Id: I5618c0c6dcd6ef35e14d32315d5ea75ba58f0031

6 years agoGnssLocationProvider: modify "=" restriction to support URL with "=" inside
Zheng Zhang [Mon, 16 Oct 2017 17:27:28 +0000 (10:27 -0700)]
GnssLocationProvider: modify "=" restriction to support URL with "=" inside

Bug: 67846626
Change-Id: I0a1f2de573bfd5e2043d6a24c91564817186074b

6 years agoMerge "Add config to display VM number as default number of CF"
Jordan Liu [Mon, 23 Oct 2017 20:27:28 +0000 (20:27 +0000)]
Merge "Add config to display VM number as default number of CF"

6 years agoChange cleartext traffic permitted default for P apps
Chad Brubaker [Thu, 19 Oct 2017 20:23:47 +0000 (13:23 -0700)]
Change cleartext traffic permitted default for P apps

For applications targeting P and above the network security
config's cleartextTrafficPermitted will default to false instead of
the previous true.

Bug: 63931636
Test: network security config cts tests
Change-Id: Ia697358ad84e2092443c3eff518003c6a11e4630

6 years agoMerge "Allow package local mocking for ActivityManager Unit Tests."
Bryce Lee [Mon, 23 Oct 2017 20:07:42 +0000 (20:07 +0000)]
Merge "Allow package local mocking for ActivityManager Unit Tests."

6 years agoMerge "[PASSPOINT] Add API to return all matching configurations"
Etan Cohen [Mon, 23 Oct 2017 19:58:32 +0000 (19:58 +0000)]
Merge "[PASSPOINT] Add API to return all matching configurations"

6 years agoMerge "Add pushing many batterystats events to statsd"
TreeHugger Robot [Mon, 23 Oct 2017 19:43:50 +0000 (19:43 +0000)]
Merge "Add pushing many batterystats events to statsd"

6 years agoMerge "Updated the whitelist to match the state of platform apps"
Fyodor Kupolov [Mon, 23 Oct 2017 19:34:31 +0000 (19:34 +0000)]
Merge "Updated the whitelist to match the state of platform apps"

6 years agoMerge "Throw clear error if a row doesn't fit into CursorWindow"
Fyodor Kupolov [Mon, 23 Oct 2017 18:44:23 +0000 (18:44 +0000)]
Merge "Throw clear error if a row doesn't fit into CursorWindow"

6 years agoMerge "Rename registerLanguageList to registerLocaleList."
TreeHugger Robot [Mon, 23 Oct 2017 18:37:49 +0000 (18:37 +0000)]
Merge "Rename registerLanguageList to registerLocaleList."

6 years agoMerge "Refactor MetricProducer so that a big chunk of boiler plate code can be removed."
TreeHugger Robot [Mon, 23 Oct 2017 18:21:04 +0000 (18:21 +0000)]
Merge "Refactor MetricProducer so that a big chunk of boiler plate code can be removed."

6 years agoMerge "Don't wait for NFC when shutting down."
TreeHugger Robot [Mon, 23 Oct 2017 18:04:13 +0000 (18:04 +0000)]
Merge "Don't wait for NFC when shutting down."

6 years agoMerge "Add setTime and setTimeZone API."
Yueming Wang [Mon, 23 Oct 2017 17:29:09 +0000 (17:29 +0000)]
Merge "Add setTime and setTimeZone API."

6 years agoAdd pushing many batterystats events to statsd
Bookatz [Tue, 10 Oct 2017 22:49:28 +0000 (15:49 -0700)]
Add pushing many batterystats events to statsd

Statsd is now informed for starts/stops/etc of the following events:
BleScan
BleScanUnoptimized
BleScanResult
Sensor
Gps
Sync
ScheduledJob
UidWakelock (aggregate wakelock)
LongPartialWakelock
BatterySaverMode (power save mode)
DeviceIdleMode (doze)
ScreenBrightness
Audio
Video (media codec)
Camera
Flashlight
ProcessLifeCycle

TODO: Note that, although tags are java constants (e.g.
StatsLog.SCREEN_STATE), the values passed in for states do not have java
constants associated with them, so we use literals (0 vs 1 for off vs
on). In the future, when corresponding java constants exist, these can
be updated.

Test: manually confirmed statslog received each type of events
Change-Id: I24282cdb56265bba61dceb0932112804273dcfc8