OSDN Git Service

android-x86/frameworks-base.git
6 years agoRename "stats_events" as "atom".
Stefan Lafon [Tue, 14 Nov 2017 17:17:21 +0000 (09:17 -0800)]
Rename "stats_events" as "atom".

Also make atom WakelockStateChanged use the "Type" enum instead of int32.

Test: Unittests are passing. Statsd is working.

Change-Id: I0909e2d97297f78996a81366d66aae62d5bf5ce1

6 years agoMerge "Log the CHANGE_WIFI_STATE App Op in WifiManager (client changes)."
Peter Visontay [Tue, 14 Nov 2017 14:46:20 +0000 (14:46 +0000)]
Merge "Log the CHANGE_WIFI_STATE App Op in WifiManager (client changes)."

6 years agoMerge "Show selection handles even when toolbar is empty."
TreeHugger Robot [Tue, 14 Nov 2017 14:41:52 +0000 (14:41 +0000)]
Merge "Show selection handles even when toolbar is empty."

6 years agoMerge "Camera: Enable API for dynamic camera output surfaces"
TreeHugger Robot [Tue, 14 Nov 2017 14:08:44 +0000 (14:08 +0000)]
Merge "Camera: Enable API for dynamic camera output surfaces"

6 years agoMerge "KeyChain: Adding methods for user-visibility."
Eran Messeri [Tue, 14 Nov 2017 13:43:03 +0000 (13:43 +0000)]
Merge "KeyChain: Adding methods for user-visibility."

6 years agoMerge "Stop observing death of PrintManager listener when it is removed" am: e7240a52...
Koji Fukui [Tue, 14 Nov 2017 12:09:39 +0000 (12:09 +0000)]
Merge "Stop observing death of PrintManager listener when it is removed" am: e7240a52e2 am: 5cb172d17e
am: 9e3ff42caa

Change-Id: I3d643e52e86bbd4ff9bd588fba51fce82fbb35e9

6 years agoMerge "IP connectivity metrics: NetworkEvents have transports" am: f8fdb06c27 am...
Hugo Benichi [Tue, 14 Nov 2017 12:03:25 +0000 (12:03 +0000)]
Merge "IP connectivity metrics: NetworkEvents have transports" am: f8fdb06c27 am: f3ada43f6e
am: 1b2e6c11e7

Change-Id: If452f742e50344e730f63b7329788b19d13280ec

6 years agoMerge "Add L2~L4 information to packet wakeup logs and metrics" am: 6ee20ca7d3 am...
Hugo Benichi [Tue, 14 Nov 2017 11:55:45 +0000 (11:55 +0000)]
Merge "Add L2~L4 information to packet wakeup logs and metrics" am: 6ee20ca7d3 am: ab15f7fc64
am: 4c0b7e52e4

Change-Id: Ia0b300662d4758f31ca583c9cf05f9186b8331aa

6 years agoMerge "Add Network security watchlist service" am: e672ab4c0a am: 1aff5336e0
Hugo Benichi [Tue, 14 Nov 2017 11:49:00 +0000 (11:49 +0000)]
Merge "Add Network security watchlist service" am: e672ab4c0a am: 1aff5336e0
am: 652056767c  -s ours

Change-Id: I0679868ae3422a018cc86881c04a152883072697

6 years agoMerge "Remove GCC-specific pragma and disabled Clang warning" am: bcf27fa6a7 am:...
Pirama Arumuga Nainar [Tue, 14 Nov 2017 11:26:25 +0000 (11:26 +0000)]
Merge "Remove GCC-specific pragma and disabled Clang warning" am: bcf27fa6a7 am: 48a80c1a27
am: b79fefb75a

Change-Id: I0bb636dc921003239f736aa1db91d1ef8c7f8937

6 years agoMerge "Move connectSocket into IBluetoothSocketManager (3/3)" am: 8d742759cc am:...
Jakub Pawlowski [Tue, 14 Nov 2017 11:14:26 +0000 (11:14 +0000)]
Merge "Move connectSocket into IBluetoothSocketManager (3/3)" am: 8d742759cc am: 9c26701b35
am: 58de99a248  -s ours

Change-Id: I67655ed1c95c3e700a9ca8692ce68d7f468afcfa

6 years agoMerge "AAPT2 - Add ProtoApkSerializer implementation to convert from Binary to Proto."
Pierre Lecesne [Tue, 14 Nov 2017 10:58:25 +0000 (10:58 +0000)]
Merge "AAPT2 - Add ProtoApkSerializer implementation to convert from Binary to Proto."

6 years agoMerge changes from topic "am-5e44d23882d545a38f0ea8d1f78a13fa"
Android Build Merger (Role) [Tue, 14 Nov 2017 10:21:03 +0000 (10:21 +0000)]
Merge changes from topic "am-5e44d23882d545a38f0ea8d1f78a13fa"

* changes:
  Merge changes from topics "embms-cts-6", "embms-cts-5" am: f6b2b77e40 am: 2cd6464e9b am: 8fd59b38b7
  Add @TestApi for DownloadStateCallback CTS am: 63c5fd60ac am: b96d49e91f am: caac5df325

6 years agoMerge changes from topics "embms-cts-6", "embms-cts-5" am: f6b2b77e40 am: 2cd6464e9b
Hall Liu [Tue, 14 Nov 2017 10:17:36 +0000 (10:17 +0000)]
Merge changes from topics "embms-cts-6", "embms-cts-5" am: f6b2b77e40 am: 2cd6464e9b
am: 8fd59b38b7

Change-Id: I1217efc28d9d9c825dd9bf361d7f2f35510b4b27

6 years agoMerge "Explicit Roboletric version for runner"
Bernardo Rufino [Tue, 14 Nov 2017 10:13:36 +0000 (10:13 +0000)]
Merge "Explicit Roboletric version for runner"

6 years agoAdd @TestApi for DownloadStateCallback CTS am: 63c5fd60ac am: b96d49e91f
Hall Liu [Tue, 14 Nov 2017 10:13:27 +0000 (10:13 +0000)]
Add @TestApi for DownloadStateCallback CTS am: 63c5fd60ac am: b96d49e91f
am: caac5df325

Change-Id: Ifde502de2ae2aa3b22ea90a5f9bd5ece4746284e

6 years agoAAPT2 - Add ProtoApkSerializer implementation to convert from Binary to Proto.
Pierre Lecesne [Fri, 10 Nov 2017 23:50:17 +0000 (23:50 +0000)]
AAPT2 - Add ProtoApkSerializer implementation to convert from Binary to Proto.

Also new flag to choose the conversion direction:
  --output_format [binary|proto].

Test: Manual

Change-Id: I61d381aa49869b0fd6bd9f017dda0cac5ca998bb

6 years agoMerge "Sync statsd to the public proto changes: 1/ use string id/name for all metrics...
TreeHugger Robot [Tue, 14 Nov 2017 08:04:56 +0000 (08:04 +0000)]
Merge "Sync statsd to the public proto changes: 1/ use string id/name for all metrics/configs/matchers. 2/ move alerts out of metric proto."

6 years agoSync statsd to the public proto changes:
Yangster-mac [Tue, 14 Nov 2017 05:43:15 +0000 (21:43 -0800)]
Sync statsd to the public proto changes:
1/ use string id/name for all metrics/configs/matchers.
2/ move alerts out of metric proto.

Test: unit test passed.
Change-Id: I08269f47be30f83f6dbadf873e7d62213449932b

6 years agoMerge "incidentd: Adding proto comments for times that can be -1."
TreeHugger Robot [Tue, 14 Nov 2017 05:24:40 +0000 (05:24 +0000)]
Merge "incidentd: Adding proto comments for times that can be -1."

6 years agoincidentd: Adding proto comments for times that can be -1.
Kweku Adams [Tue, 14 Nov 2017 03:49:37 +0000 (19:49 -0800)]
incidentd: Adding proto comments for times that can be -1.

Bug: 65750826
Test: $ cts-tradefed run cts-dev --module CtsIncidentHostTestCases --test com.android.server.cts.PowerIncidentTest
Change-Id: Iac844fc3f7a9262022ecc74b001936a921ff5233

6 years agoMerge "Support insets on secondary displays"
TreeHugger Robot [Tue, 14 Nov 2017 02:59:12 +0000 (02:59 +0000)]
Merge "Support insets on secondary displays"

6 years agoMerge "Move Ims related settings from global setting to subscription db."
Xiangyu/Malcolm Chen [Tue, 14 Nov 2017 02:51:21 +0000 (02:51 +0000)]
Merge "Move Ims related settings from global setting to subscription db."

6 years agoMerge "incidentd: Updating Settings Provider proto dump."
TreeHugger Robot [Tue, 14 Nov 2017 02:22:34 +0000 (02:22 +0000)]
Merge "incidentd: Updating Settings Provider proto dump."

6 years agoMerge "Listen for launcher package added to connect to it faster"
TreeHugger Robot [Tue, 14 Nov 2017 02:05:37 +0000 (02:05 +0000)]
Merge "Listen for launcher package added to connect to it faster"

6 years agoMerge "Stop observing death of PrintManager listener when it is removed" am: e7240a52e2
Koji Fukui [Tue, 14 Nov 2017 01:51:30 +0000 (01:51 +0000)]
Merge "Stop observing death of PrintManager listener when it is removed" am: e7240a52e2
am: 5cb172d17e

Change-Id: I2169c5d3a0a1d8b4bd6729c4ca56b7a1de2a6249

6 years agoMerge "IP connectivity metrics: NetworkEvents have transports" am: f8fdb06c27
Hugo Benichi [Tue, 14 Nov 2017 01:46:23 +0000 (01:46 +0000)]
Merge "IP connectivity metrics: NetworkEvents have transports" am: f8fdb06c27
am: f3ada43f6e

Change-Id: I8cd50ea805fe3e533c0fc21b220827155cb0d23b

6 years agoMerge "Add L2~L4 information to packet wakeup logs and metrics" am: 6ee20ca7d3
Hugo Benichi [Tue, 14 Nov 2017 01:40:06 +0000 (01:40 +0000)]
Merge "Add L2~L4 information to packet wakeup logs and metrics" am: 6ee20ca7d3
am: ab15f7fc64

Change-Id: I9dba29b10c824d382b08b16313e49cc8c775f7eb

6 years agoMerge "Add Network security watchlist service" am: e672ab4c0a
Hugo Benichi [Tue, 14 Nov 2017 01:35:24 +0000 (01:35 +0000)]
Merge "Add Network security watchlist service" am: e672ab4c0a
am: 1aff5336e0

Change-Id: I08c10fccb2a8c814c1bedb6ad2a17b843a5af722

6 years agoMerge "Additional System APIs for restricted profiles"
Fyodor Kupolov [Tue, 14 Nov 2017 01:34:17 +0000 (01:34 +0000)]
Merge "Additional System APIs for restricted profiles"

6 years agoMerge "Create secondary dex profiles relative to the provided dex path"
Calin Juravle [Tue, 14 Nov 2017 01:30:10 +0000 (01:30 +0000)]
Merge "Create secondary dex profiles relative to the provided dex path"

6 years agoMerge "Remove GCC-specific pragma and disabled Clang warning" am: bcf27fa6a7
Pirama Arumuga Nainar [Tue, 14 Nov 2017 01:28:33 +0000 (01:28 +0000)]
Merge "Remove GCC-specific pragma and disabled Clang warning" am: bcf27fa6a7
am: 48a80c1a27

Change-Id: Ib564870756d7dc89c7e65c9fa50439a65cd3f115

6 years agoMerge "Move connectSocket into IBluetoothSocketManager (3/3)" am: 8d742759cc
Jakub Pawlowski [Tue, 14 Nov 2017 01:23:04 +0000 (01:23 +0000)]
Merge "Move connectSocket into IBluetoothSocketManager (3/3)" am: 8d742759cc
am: 9c26701b35

Change-Id: I8d0d486b73f8b8130db216a42f1ff045875e3849

6 years agoMerge changes from topics "embms-cts-6", "embms-cts-5" am: f6b2b77e40
Hall Liu [Tue, 14 Nov 2017 01:16:42 +0000 (01:16 +0000)]
Merge changes from topics "embms-cts-6", "embms-cts-5" am: f6b2b77e40
am: 2cd6464e9b

Change-Id: I33811f8c6198da52d7ec5a863528e8c6ed723f2d

6 years agoMerge "Unit tests for ValueMetricProducer StatsPullerManager is refactored so that...
TreeHugger Robot [Tue, 14 Nov 2017 01:11:54 +0000 (01:11 +0000)]
Merge "Unit tests for ValueMetricProducer StatsPullerManager is refactored so that we can mock it. It may need more refactor pass to make is safer for longer runs."

6 years agoAdd @TestApi for DownloadStateCallback CTS am: 63c5fd60ac
Hall Liu [Tue, 14 Nov 2017 01:11:51 +0000 (01:11 +0000)]
Add @TestApi for DownloadStateCallback CTS am: 63c5fd60ac
am: b96d49e91f

Change-Id: I6ba017e942c0da8a345e34b45badde6662a5abdd

6 years agoSupport insets on secondary displays
Wale Ogunwale [Tue, 14 Nov 2017 01:01:29 +0000 (01:01 +0000)]
Support insets on secondary displays

Indroduced DisplayFrames object to track frames used to calculate
window insets per display vs. at a global level in PhoneWindowManager.

Bug: 64148922
Change-Id: I19f166920eba0a4f933a223a77e096bcc8dab0c1
Test: bit FrameworksServicesTests:com.android.server.wm.ScreenDecorWindowTests
Test: go/wm-smoke

6 years agoMerge "Fix for incorrect model version info"
TreeHugger Robot [Tue, 14 Nov 2017 00:56:25 +0000 (00:56 +0000)]
Merge "Fix for incorrect model version info"

6 years agoMerge "MediaPlayer: simplify buffering control."
Wei Jia [Tue, 14 Nov 2017 00:55:44 +0000 (00:55 +0000)]
Merge "MediaPlayer: simplify buffering control."

6 years agoMerge "Apps targeting P need phone pemrisison to get device serial - framework"
TreeHugger Robot [Tue, 14 Nov 2017 00:41:58 +0000 (00:41 +0000)]
Merge "Apps targeting P need phone pemrisison to get device serial - framework"

6 years agoincidentd: Updating Settings Provider proto dump.
Kweku Adams [Tue, 31 Oct 2017 22:32:09 +0000 (15:32 -0700)]
incidentd: Updating Settings Provider proto dump.

Handling potential null cases, adding comments, logging new settings,
and dumping historical operations.

Bug: 65750829
Test: flash device and check incident.proto output
Change-Id: I66fe324a91fba136e73761cfb74f3527de75d3ad

6 years agoMerge "Adding metric vals dnd settings"
TreeHugger Robot [Tue, 14 Nov 2017 00:01:48 +0000 (00:01 +0000)]
Merge "Adding metric vals dnd settings"

6 years agoMerge "AAPT2 - Convert command to copy all the files."
Pierre Lecesne [Mon, 13 Nov 2017 23:52:28 +0000 (23:52 +0000)]
Merge "AAPT2 - Convert command to copy all the files."

6 years agoMerge "Add AgnssRil initialization"
Jaekyun Seok [Mon, 13 Nov 2017 23:38:03 +0000 (23:38 +0000)]
Merge "Add AgnssRil initialization"

6 years agoMerge changes I0d090d52,I77296f91
TreeHugger Robot [Mon, 13 Nov 2017 22:41:23 +0000 (22:41 +0000)]
Merge changes I0d090d52,I77296f91

* changes:
  Anchor the volume dialog to hardware keys.
  Switch default stream from RING to MUSIC.

6 years agoApps targeting P need phone pemrisison to get device serial - framework
Svet Ganov [Mon, 13 Nov 2017 19:52:22 +0000 (11:52 -0800)]
Apps targeting P need phone pemrisison to get device serial - framework

Test: cts-tradefed run cts-dev -m CtsAppSecurityHostTestCases
          -t android.appsecurity.cts.PermissionsHostTest#testSerialAccessPolicy

bug:30978688

Change-Id: I2f65cd556798e20d1b029fbcf151d09f818c1bda

6 years agoMerge "Deprecate framework Fragments and Loaders"
TreeHugger Robot [Mon, 13 Nov 2017 22:34:34 +0000 (22:34 +0000)]
Merge "Deprecate framework Fragments and Loaders"

6 years agoAdding metric vals dnd settings
Beverly [Fri, 3 Nov 2017 21:27:02 +0000 (17:27 -0400)]
Adding metric vals dnd settings

Test: N/A
Bug: 63077372
Change-Id: I31ec9eea46193806cbb97bcc0c9924aae45e02f0

6 years agoMerge "Add instrumentation data to host proto lib"
Mike Ma [Mon, 13 Nov 2017 22:24:40 +0000 (22:24 +0000)]
Merge "Add instrumentation data to host proto lib"

6 years agoMerge "Fix leak of FILE* in dumping"
TreeHugger Robot [Mon, 13 Nov 2017 22:11:49 +0000 (22:11 +0000)]
Merge "Fix leak of FILE* in dumping"

6 years agoMerge "Adds definitions for soft AP metrics in wifi.proto"
Mehdi Alizadeh [Mon, 13 Nov 2017 22:04:58 +0000 (22:04 +0000)]
Merge "Adds definitions for soft AP metrics in wifi.proto"

6 years agoAdd AgnssRil initialization
Jaekyun Seok [Mon, 13 Nov 2017 06:03:21 +0000 (15:03 +0900)]
Add AgnssRil initialization

Bug: 64841550
Bug: 64278167
Test: succeeded building and tested on sailfish
Change-Id: I3c949ea9bf441bf98139f0007cd1849b30dfeaca

6 years agoMerge "Revert "Support insets on secondary displays""
TreeHugger Robot [Mon, 13 Nov 2017 21:43:56 +0000 (21:43 +0000)]
Merge "Revert "Support insets on secondary displays""

6 years agoUnit tests for ValueMetricProducer
Chenjie Yu [Thu, 9 Nov 2017 18:50:09 +0000 (10:50 -0800)]
Unit tests for ValueMetricProducer
StatsPullerManager is refactored so that we can mock it.
It may need more refactor pass to make is safer for longer runs.

Test: unit test
Change-Id: Ief0c99710e4d06e1454678f8b749c9599467d114

6 years agoAAPT2 - Convert command to copy all the files.
Pierre Lecesne [Fri, 10 Nov 2017 22:31:01 +0000 (22:31 +0000)]
AAPT2 - Convert command to copy all the files.

Test: Manual

Change-Id: I8705966cb34ff41eb362126a35956720147fae91

6 years agoMerge "Stop observing death of PrintManager listener when it is removed"
Koji Fukui [Mon, 13 Nov 2017 20:53:35 +0000 (20:53 +0000)]
Merge "Stop observing death of PrintManager listener when it is removed"
am: e7240a52e2

Change-Id: Idc81f05fe3820d1bcbfd81d6497c0608ef37fae3

6 years agoMerge "Stop observing death of PrintManager listener when it is removed"
Treehugger Robot [Mon, 13 Nov 2017 20:42:09 +0000 (20:42 +0000)]
Merge "Stop observing death of PrintManager listener when it is removed"

6 years agoMerge "Sync PRIV_APP_OOB_ENABLED setting to pm.dexopt.priv-apps-oob"
TreeHugger Robot [Mon, 13 Nov 2017 20:31:52 +0000 (20:31 +0000)]
Merge "Sync PRIV_APP_OOB_ENABLED setting to pm.dexopt.priv-apps-oob"

6 years agoMerge "Add api lint to upload checks"
TreeHugger Robot [Mon, 13 Nov 2017 20:30:58 +0000 (20:30 +0000)]
Merge "Add api lint to upload checks"

6 years agoMerge "Get rid of manually created IKeystoreService."
Dmitry Dementyev [Mon, 13 Nov 2017 20:16:52 +0000 (20:16 +0000)]
Merge "Get rid of manually created IKeystoreService."

6 years agoAdd instrumentation data to host proto lib
Mike Ma [Mon, 13 Nov 2017 20:06:45 +0000 (12:06 -0800)]
Add instrumentation data to host proto lib

Add instrumentation data proto to host proto lib and add a few comment
to am instrument.
Test: no test needed

Change-Id: Ibbb0394dcf0ad27b53d5c97104456798863ce82c

6 years agoMerge "Don't show "always use" when app can't be default"
TreeHugger Robot [Mon, 13 Nov 2017 20:11:49 +0000 (20:11 +0000)]
Merge "Don't show "always use" when app can't be default"

6 years agoMerge "Change conditional keep rule syntax"
TreeHugger Robot [Mon, 13 Nov 2017 20:02:41 +0000 (20:02 +0000)]
Merge "Change conditional keep rule syntax"

6 years agoAdds definitions for soft AP metrics in wifi.proto
Mehdi Alizadeh [Wed, 18 Oct 2017 22:42:35 +0000 (15:42 -0700)]
Adds definitions for soft AP metrics in wifi.proto

Adds definitions for soft AP metrics related to number of connected
clients and soft AP sessions

Bug: 68712260
Test: None
Change-Id: I515afd215a04fd50b0045fa1d81eebb9354f7bb2

6 years agoFix leak of FILE* in dumping
John Reck [Mon, 13 Nov 2017 19:32:39 +0000 (11:32 -0800)]
Fix leak of FILE* in dumping

Avoid fdopen as fclose, which frees the FILE*, will close
the FD which we don't want. Just normalize on dprintf instead,
and we can add buffering if it turns out to matter at some point

Test: ran 'dumpsys gfxinfo framestats' in a loop while observing PSS
Change-Id: I7808753641aa1055cfdf570c3e017017f11f1dee

6 years agoRevert "Store FontCollection in MinikinPaint"
Seigo Nonaka [Sat, 11 Nov 2017 00:02:17 +0000 (00:02 +0000)]
Revert "Store FontCollection in MinikinPaint"

This regresses the performance.

Bug: 69165958

This reverts commit c0a35e7b0ecbd35c9c39205fec6ef2555e86db8b.

Change-Id: I86f0b55dc83fdde4ca04659ec0f7bb3589f571fa

6 years agoDeprecate framework Fragments and Loaders
Ian Lake [Mon, 13 Nov 2017 18:26:46 +0000 (10:26 -0800)]
Deprecate framework Fragments and Loaders

Redirect developers to use the Support Library
versions of Fragments and Loaders to ensure that
they get consistent behavior across versions of
Android and all devices as well as access to
Lifecycle improvements.

Test: Confirmed APIs deprecated in current.txt
BUG: 68381801
Change-Id: I58ec599e557fc93c8547c45ba7c9ced96b0c8616

6 years agoAdd api lint to upload checks
Jason Monk [Fri, 10 Nov 2017 20:43:17 +0000 (15:43 -0500)]
Add api lint to upload checks

Currently will never block upload, only considered a warning, but
will print out any lint issues discovered.

Test: do an upload
Bug: 69115822
Change-Id: I69b8e5a3f92ac28ee3c954408e88a1056c33af65

6 years agoExplicit Roboletric version for runner
Bernardo Rufino [Mon, 13 Nov 2017 17:26:17 +0000 (17:26 +0000)]
Explicit Roboletric version for runner

* Our test target uses default roboletric target
(platform-robolectric-prebuilt), which is 3.1.1.
* Runner was updated to 3.4.2 recently (ag/3181301).
* `make RunFrameworksServicesRoboTests` broke because
org.robolectric.res.builder.DefaultPackageManager doesn't exist in new
verion (http://robolectric.org/migrating/#packagemanager-1).

Hardcoded version in our target until we migrate to new version (I tried
but there were some other errors)

Test: make RunFrameworksServicesRoboTests
Change-Id: Ie934dedec3340620611f3d72b75e5eefba430f35

6 years agoAnchor the volume dialog to hardware keys.
Julia Reynolds [Wed, 8 Nov 2017 16:19:09 +0000 (11:19 -0500)]
Anchor the volume dialog to hardware keys.

Test: manual
Bug: 63096355
Change-Id: I0d090d524cb88f3c1c353de5b096b665657f05cf

6 years agoSync PRIV_APP_OOB_ENABLED setting to pm.dexopt.priv-apps-oob
Victor Hsieh [Tue, 7 Nov 2017 19:12:51 +0000 (11:12 -0800)]
Sync PRIV_APP_OOB_ENABLED setting to pm.dexopt.priv-apps-oob

The settings value is used as a proxy for server side experiment to
populate configuration to the device.  This is only for experiment and
should be removed later.

Test: adb shell settings put global priv_app_oob_enabled 0
      # saw pm.dexopt.priv-apps-oob changed to false
Test: adb shell settings put global priv_app_oob_enabled 1
      # saw pm.dexopt.priv-apps-oob changed to true
Bug: 67415855
Bug: 63920015

Change-Id: I4eb2beb14cd2c86c4bfc439d9742e95d3aba45a9

6 years agoRevert "Support insets on secondary displays"
Wale Ogunwale [Mon, 13 Nov 2017 16:49:19 +0000 (16:49 +0000)]
Revert "Support insets on secondary displays"

This reverts commit 9bc2692939d4dececbfde5ea67df4594a7842bd1.

Change-Id: Ia065372e9e220e653b4729a290663c3536d99307
Fixes: 69241956
Bug: 64148922

6 years agoSwitch default stream from RING to MUSIC.
Julia Reynolds [Tue, 7 Nov 2017 15:33:08 +0000 (10:33 -0500)]
Switch default stream from RING to MUSIC.

When changing volume.

Test: manual, cts
Bug: 63096355
Change-Id: I77296f91c58b1e5f0169fc1699e27b80b391408a

6 years agoMerge "IP connectivity metrics: NetworkEvents have transports"
Hugo Benichi [Mon, 13 Nov 2017 13:24:10 +0000 (13:24 +0000)]
Merge "IP connectivity metrics: NetworkEvents have transports"
am: f8fdb06c27

Change-Id: I92dfce6a78de18036ca0b54fdf2ee95e715c678b

6 years agoMerge "IP connectivity metrics: NetworkEvents have transports"
Hugo Benichi [Mon, 13 Nov 2017 13:13:44 +0000 (13:13 +0000)]
Merge "IP connectivity metrics: NetworkEvents have transports"

6 years agoFix for incorrect model version info
Jan Althaus [Mon, 13 Nov 2017 11:07:04 +0000 (12:07 +0100)]
Fix for incorrect model version info

In a number of cases, the model version info was not set correctly,
resulting in incorrect model version information (always 0) being
logged.

Bug: 69240688
Test: Manually tested that the logs are correct. (Both with only factory and only update model)
Change-Id: I89e88635eecd4e4a3f299b2cf5cdd09d6ff53bdf

6 years agoStop observing death of PrintManager listener when it is removed
Koji Fukui [Fri, 20 Oct 2017 07:42:51 +0000 (16:42 +0900)]
Stop observing death of PrintManager listener when it is removed

Symptom:
Global reference table overflow happens on system_server.

Root cause:
When a listener is added to the PrintManager, death notification for
the listener is registered. So the listener is added to global
reference table.
But the death notification is not unregistered when the listener is
removed from PrintManager. The listener isn't removed from the global
reference table until client process die. If client process repeatedly
add/remove listener, the global reference table overflow.

Solution:
Call unlinkToDeath() when the listener is removed from PrintManager.

Test: cts-tradefed run cts-dev -m Print
Bug: 68746445
Change-Id: I0b133e4607317a15e51bdf6e1248552dcc920d6d

6 years agoUpdate smart select metrics for new system event fields
Jan Althaus [Mon, 6 Nov 2017 11:31:59 +0000 (12:31 +0100)]
Update smart select metrics for new system event fields

We are now adding new system UI event fields specifically for smart select.
This CL adds corresponding new metric field values and changes the log
event building accordingly.

Bug: 67674199
Test: Manually tested that the logs are correct.
Change-Id: I5b90c8b194de2d46d7d6be1f1c314be9a2239298

6 years agoMerge "Introduce CrossProfileApps API"
TreeHugger Robot [Mon, 13 Nov 2017 06:43:44 +0000 (06:43 +0000)]
Merge "Introduce CrossProfileApps API"

6 years agoIP connectivity metrics: NetworkEvents have transports
Hugo Benichi [Fri, 10 Nov 2017 23:06:43 +0000 (08:06 +0900)]
IP connectivity metrics: NetworkEvents have transports

Also removes netId field from inside NetworkEvent and stop populating
the network_id field of the NetworkEvent field, deprecating it.

Bug: 34901696
Test: runtest frameworks-net,
      manually looking at $ adb shell dumpsys connmetrics

Change-Id: I2c36860f976898883714f72f4d18e06da250c6a6

6 years agoMerge "Add L2~L4 information to packet wakeup logs and metrics"
Hugo Benichi [Mon, 13 Nov 2017 04:06:11 +0000 (04:06 +0000)]
Merge "Add L2~L4 information to packet wakeup logs and metrics"
am: 6ee20ca7d3

Change-Id: I8fea75c477d4b5fbbded7dee2dff8644c6f97241

6 years agoMerge "Add L2~L4 information to packet wakeup logs and metrics"
Hugo Benichi [Mon, 13 Nov 2017 03:58:34 +0000 (03:58 +0000)]
Merge "Add L2~L4 information to packet wakeup logs and metrics"

6 years agoMediaPlayer: simplify buffering control.
Wei Jia [Fri, 10 Mar 2017 17:52:26 +0000 (09:52 -0800)]
MediaPlayer: simplify buffering control.

Test: pass cts tests
Bug: 36280094
Change-Id: If1e2dac511d038b88f7e867eb7ff8b345cb04478

6 years agoMerge "Add Network security watchlist service"
Hugo Benichi [Sun, 12 Nov 2017 22:36:21 +0000 (22:36 +0000)]
Merge "Add Network security watchlist service"
am: e672ab4c0a

Change-Id: I3e3d8dbc220879752826faa7570f04585c2f1107

6 years agoMerge "Add Network security watchlist service"
Hugo Benichi [Sun, 12 Nov 2017 22:24:56 +0000 (22:24 +0000)]
Merge "Add Network security watchlist service"

6 years agoAdd Network security watchlist service
Ricky Wai [Fri, 27 Oct 2017 13:46:01 +0000 (14:46 +0100)]
Add Network security watchlist service

Partial cherry pick from commit 1a6e667cb6e9211908d02eb21c50c006473376f9
adding a new INetdEventCallback type.

Bug: 63908748
Test: built, flashed, $ runtest frameworks-net
Change-Id: I1b95cc4e5cbbfbdbd7429d61e2dcb67b90d278bb
Merged-In: I09595178bac0070a867bc5e0501a7bf2c840e398

6 years agoAdd L2~L4 information to packet wakeup logs and metrics
Hugo Benichi [Thu, 12 Oct 2017 12:33:40 +0000 (21:33 +0900)]
Add L2~L4 information to packet wakeup logs and metrics

Example of $ adb shell dumpsys connmetrics list:
...
WakeupStats(wlan0, 21851s, total: 85, root: 0, system: 4, apps: 63, non-apps: 0, no uid: 18, l2 unicast/multicast/broadcast: 85/0/0, ethertype 0x800: 23, ethertype 0x86dd: 62, ipNxtHdr 6: 74, ipNxtHdr 17: 1, ipproto 58: 10)
...
WakeupEvent(06:55:54.094, wlan0, -1, eth=0x800, dstHw=10:e:7e:26:3f:c1, ipNxtHdr=6, srcIp=216.58.200.110, dstIp=100.112.108.29, srcPort=443, dstPort=46878)
WakeupEvent(06:57:14.379, wlan0, -1, eth=0x86dd, dstHw=10:e:7e:26:3f:c1, ipNxtHdr=58, srcIp=ff02::1, dstIp=fe80::fa00:4:fd00:1)
WakeupEvent(06:57:52.786, wlan0, 1000, eth=0x800, dstHw=10:e:7e:26:3f:c1, ipNxtHdr=6, srcIp=172.217.27.67, dstIp=100.112.108.29, srcPort=80, dstPort=49360)
WakeupEvent(06:58:02.919, wlan0, 10004, eth=0x86dd, dstHw=10:e:7e:26:3f:c1, ipNxtHdr=6, srcIp=2401:fa00:4:fd00:a585:13d1:6a23:4fb4, dstIp=2404:6800:4006:809::200a, srcPort=443, dstPort=46197)
WakeupEvent(06:58:05.586, wlan0, 10004, eth=0x86dd, dstHw=10:e:7e:26:3f:c1, ipNxtHdr=6, srcIp=2401:fa00:4:fd00:a585:13d1:6a23:4fb4, dstIp=2404:6800:4006:803::200a, srcPort=443, dstPort=46096)

Bug: 66869042
Test: runtest frameworks-net
      + manual testing by monitoring $ dumpsys connmetrics list
Change-Id: I03215c0c9fb7feda3e6ceb1b916f61f4ffb15344

6 years agoadd CpuTimePerUidPuller and CpuTimePerUidFreqPuller
Chenjie Yu [Tue, 7 Nov 2017 01:56:44 +0000 (17:56 -0800)]
add CpuTimePerUidPuller and CpuTimePerUidFreqPuller
Note: these pullers return monotonically increasing numbers.
The uids could include isolated uids that needs further translation in
statsd.

Test: manually tested on device and check print outs
Change-Id: I7097aec0417a3ac567b9b86149b757ac27cd58d8

6 years agopull cpu time per freq
Chenjie Yu [Fri, 3 Nov 2017 16:33:15 +0000 (09:33 -0700)]
pull cpu time per freq
also adjust lock for ValueMetricProducer.cpp

Test: manual test
Change-Id: Ib96e3011d7bcf44ac92346d880196c425623a86f

6 years agoMerge "Remove GCC-specific pragma and disabled Clang warning"
Pirama Arumuga Nainar [Sat, 11 Nov 2017 13:37:00 +0000 (13:37 +0000)]
Merge "Remove GCC-specific pragma and disabled Clang warning"
am: bcf27fa6a7

Change-Id: If8aa81372dd6fcc433867892e27c37670184fbc6

6 years agoMerge "Remove GCC-specific pragma and disabled Clang warning"
Treehugger Robot [Sat, 11 Nov 2017 13:29:23 +0000 (13:29 +0000)]
Merge "Remove GCC-specific pragma and disabled Clang warning"

6 years agoMerge "Implement Cpu Info Section"
TreeHugger Robot [Sat, 11 Nov 2017 03:44:38 +0000 (03:44 +0000)]
Merge "Implement Cpu Info Section"

6 years agoMerge "Inform WindowManager when Activity is reordered to front."
TreeHugger Robot [Sat, 11 Nov 2017 03:32:40 +0000 (03:32 +0000)]
Merge "Inform WindowManager when Activity is reordered to front."

6 years agoMerge "Use -Werror in frameworks/base/core/tests/webkit/apk_with_native_libs"
Chih-hung Hsieh [Sat, 11 Nov 2017 02:32:01 +0000 (02:32 +0000)]
Merge "Use -Werror in frameworks/base/core/tests/webkit/apk_with_native_libs"

6 years agoImplement Cpu Info Section
Yi Jin [Thu, 2 Nov 2017 00:08:27 +0000 (17:08 -0700)]
Implement Cpu Info Section

Support carriage return in Read class, and add a new way to parse lines
which is not able to split purly by delimiters

Bug: 65642861
Test: unit test and on device test
Change-Id: Ib82dd4e458bb7d2fa33462b23fbe11b828325916

6 years agoMerge "Create magnifier bench scene"
TreeHugger Robot [Sat, 11 Nov 2017 01:22:55 +0000 (01:22 +0000)]
Merge "Create magnifier bench scene"

6 years agoMerge "Revert "Eliminate native/JNI/callback USB Descriptor parsing mechanism""
TreeHugger Robot [Sat, 11 Nov 2017 01:18:12 +0000 (01:18 +0000)]
Merge "Revert "Eliminate native/JNI/callback USB Descriptor parsing mechanism""

6 years agoMerge "make statsd less chatty."
TreeHugger Robot [Sat, 11 Nov 2017 01:03:59 +0000 (01:03 +0000)]
Merge "make statsd less chatty."

6 years agoInform WindowManager when Activity is reordered to front.
Bryce Lee [Fri, 8 Sep 2017 22:55:22 +0000 (15:55 -0700)]
Inform WindowManager when Activity is reordered to front.

This event was captured on the ActivityManager side through
TaskRecord::moveActivityToFrontLocked. However, this change was
not conveyed to the WindowManager, leading to potential issues, such
as sending key events to the wrong Activity.

Change-Id: Ia5cf3dc0f2dac8fa10adc775c2ebb08beee0c064
Fixes: 65031003
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerActivityVisibilityTests#testReorderToFrontBackstack
(cherry picked from commit c033f8de620db59ff94ef905a4ab66ac3e212c06)

6 years agoMerge "1. Add FIELD_COUNT_REPEATED bit masks to repeated fields that were previously...
TreeHugger Robot [Sat, 11 Nov 2017 00:46:54 +0000 (00:46 +0000)]
Merge "1. Add FIELD_COUNT_REPEATED bit masks to repeated fields that were previously missing 2. Resolve segfault when serializing proto into vector of uint8_t 3. Add a local byte size variable for EventMetric data as we cannot call size() of ProtoOutputStream before we finish writing. 4. Replace hardcoded conversion of second to nano second with NS_PER_SEC"