OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "[AWARE] Unhide Wi-Fi Aware API (baseline)" am: dfe8f5dc13
Etan Cohen [Wed, 11 Jan 2017 23:17:19 +0000 (23:17 +0000)]
Merge "[AWARE] Unhide Wi-Fi Aware API (baseline)" am: dfe8f5dc13
am: 2a4e3bef2c

Change-Id: I6f894d92451032657678639c3021eef07289a6a2

7 years agoMerge "[AWARE] Unhide Wi-Fi Aware API (baseline)"
Etan Cohen [Wed, 11 Jan 2017 23:12:16 +0000 (23:12 +0000)]
Merge "[AWARE] Unhide Wi-Fi Aware API (baseline)"
am: dfe8f5dc13

Change-Id: I581b72ce62966f4c04427603a2b9686dcf46cc42

7 years agoMerge "[AWARE] Unhide Wi-Fi Aware API (baseline)"
Etan Cohen [Wed, 11 Jan 2017 22:59:24 +0000 (22:59 +0000)]
Merge "[AWARE] Unhide Wi-Fi Aware API (baseline)"

7 years agoMerge "Move getActiveScorerPackage() to the score service." am: b5488ec3b3
Jeremy Joslin [Wed, 11 Jan 2017 19:59:27 +0000 (19:59 +0000)]
Merge "Move getActiveScorerPackage() to the score service." am: b5488ec3b3
am: 425a0fdc95

Change-Id: Icd1e76d7987cc9937cce5079dedf610fcd21c903

7 years agoMerge "Move getActiveScorerPackage() to the score service."
Jeremy Joslin [Wed, 11 Jan 2017 19:52:37 +0000 (19:52 +0000)]
Merge "Move getActiveScorerPackage() to the score service."
am: b5488ec3b3

Change-Id: I8819c482a87a8c78ad0a1a39dda74b5ee2e7da4c

7 years agoMerge "Move getActiveScorerPackage() to the score service."
Treehugger Robot [Wed, 11 Jan 2017 19:40:44 +0000 (19:40 +0000)]
Merge "Move getActiveScorerPackage() to the score service."

7 years ago[AWARE] Unhide Wi-Fi Aware API (baseline)
Etan Cohen [Tue, 10 Jan 2017 05:47:32 +0000 (21:47 -0800)]
[AWARE] Unhide Wi-Fi Aware API (baseline)

Baseline Wi-Fi Aware API providing discovery and connectivity (data-path).

Bug: 30983968
Test: unit tests + integration (sl4a) tests passing.
Change-Id: Idd7c6a625f168717b083d5f13e291ce916571933

7 years agoMerge "Fix clipping for edit screen of Quick Settings" am: e3677865a8
Akira Oshimi [Wed, 11 Jan 2017 16:06:22 +0000 (16:06 +0000)]
Merge "Fix clipping for edit screen of Quick Settings" am: e3677865a8
am: 49b68ad0cd

Change-Id: I02de0a87c633f4ffc8cee81e8773e31c9851d19d

7 years agoMerge "Fix clipping for edit screen of Quick Settings"
Akira Oshimi [Wed, 11 Jan 2017 16:01:23 +0000 (16:01 +0000)]
Merge "Fix clipping for edit screen of Quick Settings"
am: e3677865a8

Change-Id: Idb615698c433bd4436950cbf94ced95f02198cd9

7 years agoMerge "Fix clipping for edit screen of Quick Settings"
Treehugger Robot [Wed, 11 Jan 2017 15:51:36 +0000 (15:51 +0000)]
Merge "Fix clipping for edit screen of Quick Settings"

7 years agoMerge "Replace cutils/log.h and log/logger.h with log/log.h" am: e7fcbcb991
Mark Salyzyn [Wed, 11 Jan 2017 15:40:24 +0000 (15:40 +0000)]
Merge "Replace cutils/log.h and log/logger.h with log/log.h" am: e7fcbcb991
am: 6143cbf1e5

Change-Id: Id192d8dd973fe9e70acab72bae9856bc8a62ac75

7 years agoMerge "Replace cutils/log.h and log/logger.h with log/log.h"
Mark Salyzyn [Wed, 11 Jan 2017 15:35:19 +0000 (15:35 +0000)]
Merge "Replace cutils/log.h and log/logger.h with log/log.h"
am: e7fcbcb991

Change-Id: I13ddcd1826ce3df02a6c95875b9fa981c238ca08

7 years agoMerge "Replace cutils/log.h and log/logger.h with log/log.h"
Mark Salyzyn [Wed, 11 Jan 2017 15:24:10 +0000 (15:24 +0000)]
Merge "Replace cutils/log.h and log/logger.h with log/log.h"

7 years agoMerge "Switch ConfigUpdater to the new version of timezone updater code" am: 216303cdb6
Neil Fuller [Wed, 11 Jan 2017 15:02:42 +0000 (15:02 +0000)]
Merge "Switch ConfigUpdater to the new version of timezone updater code" am: 216303cdb6
am: 5be9960f66

Change-Id: I7cc9fed8ca298bd559b94ff57fd881b0651a16bd

7 years agoMerge "Don't offer the BT sharing option to the user if BT is disallowed." am: 0c1a4b6a97
Lenka Trochtova [Wed, 11 Jan 2017 14:59:18 +0000 (14:59 +0000)]
Merge "Don't offer the BT sharing option to the user if BT is disallowed." am: 0c1a4b6a97
am: 345362c66f

Change-Id: I56d94f43683581d940d3711c9ca86fee0861b0e6

7 years agoMerge "Switch ConfigUpdater to the new version of timezone updater code"
Neil Fuller [Wed, 11 Jan 2017 14:54:51 +0000 (14:54 +0000)]
Merge "Switch ConfigUpdater to the new version of timezone updater code"
am: 216303cdb6

Change-Id: I106699e4f141b27e0ace17d4997a2a67bf6a7c55

7 years agoMerge "Don't offer the BT sharing option to the user if BT is disallowed."
Lenka Trochtova [Wed, 11 Jan 2017 14:49:09 +0000 (14:49 +0000)]
Merge "Don't offer the BT sharing option to the user if BT is disallowed."
am: 0c1a4b6a97

Change-Id: Ic304d77ea532a1a6a6539ba9d4dca35a0f628ff2

7 years agoMerge "Switch ConfigUpdater to the new version of timezone updater code"
Neil Fuller [Wed, 11 Jan 2017 14:46:46 +0000 (14:46 +0000)]
Merge "Switch ConfigUpdater to the new version of timezone updater code"

7 years agoMerge "Don't offer the BT sharing option to the user if BT is disallowed."
Treehugger Robot [Wed, 11 Jan 2017 14:40:05 +0000 (14:40 +0000)]
Merge "Don't offer the BT sharing option to the user if BT is disallowed."

7 years agoMerge "Refactor RFCOMM / BluetoothSocket usage of LocalSocket" am: 649a89e524
Neil Fuller [Wed, 11 Jan 2017 13:48:14 +0000 (13:48 +0000)]
Merge "Refactor RFCOMM / BluetoothSocket usage of LocalSocket" am: 649a89e524
am: f4e236c794

Change-Id: If23b5efe912c5b0a76487c46723288ff6a903a14

7 years agoMerge "Refactor RFCOMM / BluetoothSocket usage of LocalSocket"
Neil Fuller [Wed, 11 Jan 2017 13:37:37 +0000 (13:37 +0000)]
Merge "Refactor RFCOMM / BluetoothSocket usage of LocalSocket"
am: 649a89e524

Change-Id: Ib8dc0ec183b870931bf4befea5ff32532009fddd

7 years agoMerge "Refactor RFCOMM / BluetoothSocket usage of LocalSocket"
Neil Fuller [Wed, 11 Jan 2017 13:27:09 +0000 (13:27 +0000)]
Merge "Refactor RFCOMM / BluetoothSocket usage of LocalSocket"

7 years agoMerge "Cleanup code given PATCHOAT_FOR_RELOCATION has been removed." am: 8582826f8d
Richard Uhler [Wed, 11 Jan 2017 10:48:00 +0000 (10:48 +0000)]
Merge "Cleanup code given PATCHOAT_FOR_RELOCATION has been removed." am: 8582826f8d
am: 5c5637e1bd

Change-Id: I27f00cca9b511d6950e12b59f179faae21f07147

7 years agoMerge "Cleanup code given PATCHOAT_FOR_RELOCATION has been removed."
Richard Uhler [Wed, 11 Jan 2017 10:37:33 +0000 (10:37 +0000)]
Merge "Cleanup code given PATCHOAT_FOR_RELOCATION has been removed."
am: 8582826f8d

Change-Id: If5d55f55d86c4e4711e36a7f517336fbdda96e3d

7 years agoMerge "Cleanup code given PATCHOAT_FOR_RELOCATION has been removed."
Treehugger Robot [Wed, 11 Jan 2017 10:28:16 +0000 (10:28 +0000)]
Merge "Cleanup code given PATCHOAT_FOR_RELOCATION has been removed."

7 years agoCleanup code given PATCHOAT_FOR_RELOCATION has been removed.
Richard Uhler [Thu, 8 Dec 2016 10:33:09 +0000 (10:33 +0000)]
Cleanup code given PATCHOAT_FOR_RELOCATION has been removed.

Test: make, device boots, installed an app
Test: adb shell cmd package compile -m speed|speed-profile <app>
Bug: 33192586
Change-Id: I8ef7d4926773586251fedf8a7737a8005f119859

7 years agoMerge "Prepare UpstreamNetworkMonitor for extraction" am: f84e5e8f76
Erik Kline [Wed, 11 Jan 2017 08:42:55 +0000 (08:42 +0000)]
Merge "Prepare UpstreamNetworkMonitor for extraction" am: f84e5e8f76
am: d48902d37e

Change-Id: Ia3c21d905c5f4eaa1dd0ea09f3113989e9d8eecc

7 years agoMerge "Prepare UpstreamNetworkMonitor for extraction"
Erik Kline [Wed, 11 Jan 2017 08:38:00 +0000 (08:38 +0000)]
Merge "Prepare UpstreamNetworkMonitor for extraction"
am: f84e5e8f76

Change-Id: I4e4d525ff1dc23189e4ef6978a1980319d6b85f2

7 years agoMerge "Prepare UpstreamNetworkMonitor for extraction"
Erik Kline [Wed, 11 Jan 2017 08:29:17 +0000 (08:29 +0000)]
Merge "Prepare UpstreamNetworkMonitor for extraction"

7 years agoPrepare UpstreamNetworkMonitor for extraction
Erik Kline [Tue, 10 Jan 2017 08:37:54 +0000 (17:37 +0900)]
Prepare UpstreamNetworkMonitor for extraction

Test: as follows:
    - built (bullhead)
    - flashed
    - booted
    - runtest frameworks-net
    - tested basic wifi-to-mobile tethering (no DUN)
Bug: 32163131
Change-Id: Id0b2497f231af5e79ae3bbf42c73bc78031b6fa3

7 years agoFix clipping for edit screen of Quick Settings
Akira Oshimi [Fri, 16 Dec 2016 09:57:28 +0000 (18:57 +0900)]
Fix clipping for edit screen of Quick Settings

The width of the edit screen is fixed when the display size is updated
in landscape mode. So when the device is rotated to portrait mode, the
width is not updated and the edit screen is truncated.
To fix this issue, "match_parent" should be used to match to the width
of Notification Panel always.

Bug: 34206618
Test: manual - go to Settings, rotate device to landscape mode, change
               display size (Default > Large > Default), rotate device
               to portrait mode and show QS edit screen

Change-Id: I35ac623812908a61cd34357e6bda567cab55ace1

7 years agoMerge "Zygote: Add fdsToIgnore" am: 5b22a826d5
Andreas Gampe [Wed, 11 Jan 2017 02:46:57 +0000 (02:46 +0000)]
Merge "Zygote: Add fdsToIgnore" am: 5b22a826d5
am: 140b9b65a1

Change-Id: Ib4c46887ed5d87ef143bd866320d77b75d8711a3

7 years agoMerge changes I5b94a8f0,Ie6cdd846,Ie6b5f5e6,Ib962edf6,I9d779b2d, ... am: 619d6282c3
Calin Juravle [Wed, 11 Jan 2017 02:44:08 +0000 (02:44 +0000)]
Merge changes I5b94a8f0,Ie6cdd846,Ie6b5f5e6,Ib962edf6,I9d779b2d, ... am: 619d6282c3
am: 6d0b836562

Change-Id: I22594f44c2487a7b0933de9c298389f9a6688549

7 years agoAdd an extra debug flag to BackgroundDexOptimizer am: 3a2b7f7d59
Calin Juravle [Wed, 11 Jan 2017 02:43:15 +0000 (02:43 +0000)]
Add an extra debug flag to BackgroundDexOptimizer am: 3a2b7f7d59
am: 236477e86e

Change-Id: I30686bda79e0400d6aaca8ee71ca0c449452ed31

7 years agoSome refactoring in BackgroundDexOptService. am: 95176bb18e
Calin Juravle [Wed, 11 Jan 2017 02:42:21 +0000 (02:42 +0000)]
Some refactoring in BackgroundDexOptService. am: 95176bb18e
am: 377cc26e3a

Change-Id: If18489475e12e1d5c641f512a6b21f0ba70c6b6a

7 years agoDo not try to resolve realpath in DexManager. am: b96dba9bad
Calin Juravle [Wed, 11 Jan 2017 02:41:28 +0000 (02:41 +0000)]
Do not try to resolve realpath in DexManager. am: b96dba9bad
am: b8f31d8a85

Change-Id: I4b9e9c0781a4db89a49d588bcebb953c6144f5a3

7 years agoLog DexManager realpath errors only in debug mode. am: 271bacbf5c
Calin Juravle [Wed, 11 Jan 2017 02:40:14 +0000 (02:40 +0000)]
Log DexManager realpath errors only in debug mode. am: 271bacbf5c
am: 42c7fc7f27

Change-Id: I68f14e9a0b7507a93a9569e670b3693958fd7c09

7 years agoRecord data about dex files use on disk am: 5a9094c1b6
Calin Juravle [Wed, 11 Jan 2017 02:39:00 +0000 (02:39 +0000)]
Record data about dex files use on disk am: 5a9094c1b6
am: dc10a3bdb0

Change-Id: Ife1e626d722ba129cdcb6cd4a8f454cf28ca267c

7 years agoAdd logic for recording dex files use on disk am: 6ea5ace7b3
Calin Juravle [Wed, 11 Jan 2017 02:38:01 +0000 (02:38 +0000)]
Add logic for recording dex files use on disk am: 6ea5ace7b3
am: 34bdf1680a

Change-Id: I075e6c5224b374f2d03d711e4d5492d60e4da572

7 years agoMerge "Zygote: Add fdsToIgnore"
Andreas Gampe [Wed, 11 Jan 2017 02:33:05 +0000 (02:33 +0000)]
Merge "Zygote: Add fdsToIgnore"
am: 5b22a826d5

Change-Id: I458e354acf620cb434de41790ce94b814ff0a4ea

7 years agoMerge changes I5b94a8f0,Ie6cdd846,Ie6b5f5e6,Ib962edf6,I9d779b2d, ...
Calin Juravle [Wed, 11 Jan 2017 02:28:11 +0000 (02:28 +0000)]
Merge changes I5b94a8f0,Ie6cdd846,Ie6b5f5e6,Ib962edf6,I9d779b2d, ...
am: 619d6282c3

Change-Id: I7f13f7a7557288f2b5cc515b424161c946241d5a

7 years agoAdd an extra debug flag to BackgroundDexOptimizer
Calin Juravle [Wed, 11 Jan 2017 02:28:08 +0000 (02:28 +0000)]
Add an extra debug flag to BackgroundDexOptimizer
am: 3a2b7f7d59

Change-Id: I309923c247bef67ffbdba56955582f6decde3800

7 years agoSome refactoring in BackgroundDexOptService.
Calin Juravle [Wed, 11 Jan 2017 02:27:25 +0000 (02:27 +0000)]
Some refactoring in BackgroundDexOptService.
am: 95176bb18e

Change-Id: I191aeed8a7264bb13c4cef8b1ba135fd03a75d58

7 years agoDo not try to resolve realpath in DexManager.
Calin Juravle [Wed, 11 Jan 2017 02:26:36 +0000 (02:26 +0000)]
Do not try to resolve realpath in DexManager.
am: b96dba9bad

Change-Id: I67aba48784bca9a51f63e47b54c211ba535dd0e4

7 years agoLog DexManager realpath errors only in debug mode.
Calin Juravle [Wed, 11 Jan 2017 02:25:05 +0000 (02:25 +0000)]
Log DexManager realpath errors only in debug mode.
am: 271bacbf5c

Change-Id: I94aca4959284912e6d5008f56617254be2fc3ea7

7 years agoMerge "Delete old WifiNotificationController strings." am: 6daef4499f
Stephen Chen [Wed, 11 Jan 2017 02:24:26 +0000 (02:24 +0000)]
Merge "Delete old WifiNotificationController strings." am: 6daef4499f
am: f412290e94

Change-Id: I40bfd75b95a299516d08b4fdf699317249156eda

7 years agoRecord data about dex files use on disk
Calin Juravle [Wed, 11 Jan 2017 02:24:14 +0000 (02:24 +0000)]
Record data about dex files use on disk
am: 5a9094c1b6

Change-Id: I50378b1351a5ae83ac55f1b26e2e0c5f3230c6d2

7 years agoAdd logic for recording dex files use on disk
Calin Juravle [Wed, 11 Jan 2017 02:23:29 +0000 (02:23 +0000)]
Add logic for recording dex files use on disk
am: 6ea5ace7b3

Change-Id: I82246efd8e78c1c4ac18a67f0274b10545605207

7 years agoMerge "Zygote: Add fdsToIgnore"
Treehugger Robot [Wed, 11 Jan 2017 02:20:36 +0000 (02:20 +0000)]
Merge "Zygote: Add fdsToIgnore"

7 years agoMerge "Delete old WifiNotificationController strings."
Stephen Chen [Wed, 11 Jan 2017 02:20:14 +0000 (02:20 +0000)]
Merge "Delete old WifiNotificationController strings."
am: 6daef4499f

Change-Id: I20a68ca904cc0ad8042be61820808f4ff4680bee

7 years agoMerge changes I5b94a8f0,Ie6cdd846,Ie6b5f5e6,Ib962edf6,I9d779b2d, ...
Treehugger Robot [Wed, 11 Jan 2017 02:15:28 +0000 (02:15 +0000)]
Merge changes I5b94a8f0,Ie6cdd846,Ie6b5f5e6,Ib962edf6,I9d779b2d, ...

* changes:
  Add an extra debug flag to BackgroundDexOptimizer
  Some refactoring in BackgroundDexOptService.
  Do not try to resolve realpath in DexManager.
  Log DexManager realpath errors only in debug mode.
  Record data about dex files use on disk
  Add logic for recording dex files use on disk

7 years agoMerge "Delete old WifiNotificationController strings."
Treehugger Robot [Wed, 11 Jan 2017 02:12:48 +0000 (02:12 +0000)]
Merge "Delete old WifiNotificationController strings."

7 years agoMerge "Moved isCallerActiveScorer() to the score service." am: 663b444196
Jeremy Joslin [Wed, 11 Jan 2017 01:45:43 +0000 (01:45 +0000)]
Merge "Moved isCallerActiveScorer() to the score service." am: 663b444196
am: 5fbd2791ac

Change-Id: If5649294845f01a390bccd47fe99add3b27b0829

7 years agoMerge "Moved isCallerActiveScorer() to the score service."
Jeremy Joslin [Wed, 11 Jan 2017 01:41:14 +0000 (01:41 +0000)]
Merge "Moved isCallerActiveScorer() to the score service."
am: 663b444196

Change-Id: I44134284edc88567703435ce663b3d0efd9cff26

7 years agoMerge "Moved isCallerActiveScorer() to the score service."
Treehugger Robot [Wed, 11 Jan 2017 01:30:02 +0000 (01:30 +0000)]
Merge "Moved isCallerActiveScorer() to the score service."

7 years agoMerge changes I559eb049,I52425b84 am: 60d10ea0f4
Hugo Benichi [Wed, 11 Jan 2017 01:29:11 +0000 (01:29 +0000)]
Merge changes I559eb049,I52425b84 am: 60d10ea0f4
am: 575726487f

Change-Id: I0b218cc9a6820380b8e32ea0e020d39929a42826

7 years agoDO NOT MERGE Captive portals: login activity probes like NetworkMonitor am: 2c02197bd...
Hugo Benichi [Wed, 11 Jan 2017 01:27:40 +0000 (01:27 +0000)]
DO NOT MERGE Captive portals: login activity probes like NetworkMonitor am: 2c02197bdd  -s ours
am: 2a913049ab  -s ours

Change-Id: Icf09b29bfe619ee56d4e9ae0d640ed00fbb4ef31

7 years agoDO NOT MERGE Logging improvements in CaptivePortalLoginActivity am: 7f086e162b ...
Hugo Benichi [Wed, 11 Jan 2017 01:26:47 +0000 (01:26 +0000)]
DO NOT MERGE Logging improvements in CaptivePortalLoginActivity am: 7f086e162b  -s ours
am: 7520a07036  -s ours

Change-Id: If035aa5fb1783bfc180c928969f08d89b5dd19f0

7 years agoMerge changes I1eaab5ea,I42928da8 am: b1e3c8aaf4
Hugo Benichi [Wed, 11 Jan 2017 01:25:09 +0000 (01:25 +0000)]
Merge changes I1eaab5ea,I42928da8 am: b1e3c8aaf4
am: 22e7d2ed20

Change-Id: I6b0a8e3c2831933199c8cb55ce8c666e8db186e3

7 years agoDO NOT MERGE Captive portal systel log improvements am: b32417a772 -s ours
Hugo Benichi [Wed, 11 Jan 2017 01:23:51 +0000 (01:23 +0000)]
DO NOT MERGE Captive portal systel log improvements am: b32417a772  -s ours
am: 6352f85398  -s ours

Change-Id: If06761b413cda9d3f79aa79e8ae60cf0ce306946

7 years agoDO NOT MERGE Fix flaky IpPrefixTest. am: f6b180ff1a -s ours
Hugo Benichi [Wed, 11 Jan 2017 01:22:35 +0000 (01:22 +0000)]
DO NOT MERGE Fix flaky IpPrefixTest. am: f6b180ff1a  -s ours
am: 68ec108b6e  -s ours

Change-Id: Ic492f64b8fc44dc9a8ca1abd539fe757c703acac

7 years agoMerge "Fix a use-of-uninitialized-value warning." am: 95ef9ec5b1
John Reck [Wed, 11 Jan 2017 01:21:30 +0000 (01:21 +0000)]
Merge "Fix a use-of-uninitialized-value warning." am: 95ef9ec5b1
am: 44e14d0d2b

Change-Id: I5e5243c75f446d46bb81252583cfa46e47d60309

7 years agoMerge changes I559eb049,I52425b84
Hugo Benichi [Wed, 11 Jan 2017 01:18:07 +0000 (01:18 +0000)]
Merge changes I559eb049,I52425b84
am: 60d10ea0f4

Change-Id: Ided0ebc7e0aaab0f88c2b0af7e3e99fa9e674a60

7 years agoDO NOT MERGE Captive portals: login activity probes like NetworkMonitor
Hugo Benichi [Wed, 11 Jan 2017 01:18:00 +0000 (01:18 +0000)]
DO NOT MERGE Captive portals: login activity probes like NetworkMonitor
am: 2c02197bdd  -s ours

Change-Id: I12ea7b87369c3228bb1fcc914cfdb316a3b501ce

7 years agoDO NOT MERGE Logging improvements in CaptivePortalLoginActivity
Hugo Benichi [Wed, 11 Jan 2017 01:17:16 +0000 (01:17 +0000)]
DO NOT MERGE Logging improvements in CaptivePortalLoginActivity
am: 7f086e162b  -s ours

Change-Id: Id2f32089145a13a199838d8c004504fee1c7c011

7 years agoMerge changes I1eaab5ea,I42928da8
Hugo Benichi [Wed, 11 Jan 2017 01:14:10 +0000 (01:14 +0000)]
Merge changes I1eaab5ea,I42928da8
am: b1e3c8aaf4

Change-Id: I744394de40b72744ac60f3d6c2a138c6e876ee28

7 years agoDO NOT MERGE Captive portal systel log improvements
Hugo Benichi [Wed, 11 Jan 2017 01:14:04 +0000 (01:14 +0000)]
DO NOT MERGE Captive portal systel log improvements
am: b32417a772  -s ours

Change-Id: Ibce1d4e604e5fd8c67c012cd7f264e4585117b24

7 years agoDO NOT MERGE Fix flaky IpPrefixTest.
Hugo Benichi [Wed, 11 Jan 2017 01:12:54 +0000 (01:12 +0000)]
DO NOT MERGE Fix flaky IpPrefixTest.
am: f6b180ff1a  -s ours

Change-Id: I929a0ef7a6a044d2263a04867c2701653c3634de

7 years agoMerge "Fix a use-of-uninitialized-value warning."
John Reck [Wed, 11 Jan 2017 01:11:59 +0000 (01:11 +0000)]
Merge "Fix a use-of-uninitialized-value warning."
am: 95ef9ec5b1

Change-Id: I0b088bc47b1311ace1000cc700fd81d56eec4b7f

7 years agoMerge changes I559eb049,I52425b84
Treehugger Robot [Wed, 11 Jan 2017 01:06:56 +0000 (01:06 +0000)]
Merge changes I559eb049,I52425b84

* changes:
  DO NOT MERGE Captive portals: login activity probes like NetworkMonitor
  DO NOT MERGE Logging improvements in CaptivePortalLoginActivity

7 years agoMerge changes I1eaab5ea,I42928da8
Treehugger Robot [Wed, 11 Jan 2017 01:02:05 +0000 (01:02 +0000)]
Merge changes I1eaab5ea,I42928da8

* changes:
  DO NOT MERGE Captive portal systel log improvements
  DO NOT MERGE Fix flaky IpPrefixTest.

7 years agoMerge "Fix a use-of-uninitialized-value warning."
John Reck [Wed, 11 Jan 2017 00:57:34 +0000 (00:57 +0000)]
Merge "Fix a use-of-uninitialized-value warning."

7 years agoZygote: Add fdsToIgnore
Andreas Gampe [Thu, 5 Jan 2017 20:45:58 +0000 (12:45 -0800)]
Zygote: Add fdsToIgnore

Add file descriptors that should be ignored in the file descriptor
table check.

Use this to ignore the pipe file descriptors when starting an app
with invoke-with (wrapper).

Bug: 32607405
Test: m
Test: Device boots
Test: Apps start
Test: adb root && adb shell setprop wrap.com.android.calculator2 logwrapper && adb shell am start -S -n com.android.calculator2/.Calculator
Change-Id: I4a30dfc9382d3172cc815bd41b17a123799354f6

7 years agoAdd an extra debug flag to BackgroundDexOptimizer
Calin Juravle [Thu, 22 Dec 2016 16:50:05 +0000 (18:50 +0200)]
Add an extra debug flag to BackgroundDexOptimizer

This makes testing/debugging the job a bit easier.

Test: device boots, packages get compiled
Bug: 32871170

(cherry picked from commit a50d58e22630cd651a815381639e70476991bdbf)

Change-Id: I5b94a8f0b3bbf9075dcaecf028aaf79a21aaab7b

7 years agoSome refactoring in BackgroundDexOptService.
Calin Juravle [Thu, 22 Dec 2016 16:50:05 +0000 (18:50 +0200)]
Some refactoring in BackgroundDexOptService.

Extract postOta/idle optimizations in their own method.
In preparation for adding the logic to handle secondary dex files.

Test: device boots, pacakges get compiled
Bug: 32871170

(cherry picked from commit be6a71a0b3f369843a26c91dd5123d0499f00e7e)

Change-Id: Ie6cdd8461e7214f5de68bc9172f4171ebf72aa39

7 years agoDo not try to resolve realpath in DexManager.
Calin Juravle [Thu, 22 Dec 2016 16:47:05 +0000 (18:47 +0200)]
Do not try to resolve realpath in DexManager.

PM should already provide the real path of the application directory.

Test: runtest -x .../DexManagerTests.java

Bug: 33807524
Bug: 32871170

(cherry picked from commit c066205cea051c6d9f386188b9cb426c03dbee2d)

Change-Id: Ie6b5f5e61d08710e7ef7d3149b7b13cc7d03a242

7 years agoLog DexManager realpath errors only in debug mode.
Calin Juravle [Thu, 22 Dec 2016 14:31:19 +0000 (14:31 +0000)]
Log DexManager realpath errors only in debug mode.

Test: runtest -x .../DexManagerTests.java
Bug: 33807524

(cherry picked from commit bb9ed1f3c93f0267fa97d6cbeb58ecd1de41d795)

Change-Id: Ib962edf67ce7f5b9b93c9bc6855675e00e025810

7 years agoRecord data about dex files use on disk
Calin Juravle [Fri, 16 Dec 2016 16:22:00 +0000 (16:22 +0000)]
Record data about dex files use on disk

Add DexManager to keep track of how dex files are used.

Every time a dex file is loaded, PackageManager will notify DexManager
which will process the load. The DexManager will look up what package
owns the dex file and record its use in package-dex-usage.list (through
PackageDexUsage).

Test: device boots, package-dex-usage.list is created and contains valid data, after device reboot the list is succesfully read from disk.
runtest -x .../PackageDexUsageTests.java
runtest -x .../DexManagerTests.java

Bug: 32871170

(cherry picked from commit b8976d8f22fecaa9ed39276d9d8ded17d35b51a6)

Change-Id: I9d779b2d39814d7c54fc7a888df93d403a001df5

7 years agoAdd logic for recording dex files use on disk
Calin Juravle [Thu, 1 Dec 2016 17:53:07 +0000 (17:53 +0000)]
Add logic for recording dex files use on disk

Add PackageDexUsage to handle the I/O operations of dex usage data. It
is responsible to encode, save and load dex

Test: runtest -x .../PackageDexUsageTests.java

Bug: 32871170

(cherry picked from commit 0318162abcbd07a0472989df43e00e353fac731b)

Change-Id: I6d483d480d62aa14cb1663560fd88092469a2835

7 years agoMove getActiveScorerPackage() to the score service.
Jeremy Joslin [Tue, 10 Jan 2017 21:08:32 +0000 (13:08 -0800)]
Move getActiveScorerPackage() to the score service.

Implemented getActiveScorerPackage() in the NetworkScoreService to
make it more efficient (no need to query PM).

Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
Bug: 33781558
Change-Id: Iee7610e4982b44aefa1ef8b6c208292b8f9adcf8
Merged-In: I2144351c2c09cad30f80399069364f3572e38445

7 years agoMoved isCallerActiveScorer() to the score service.
Jeremy Joslin [Tue, 10 Jan 2017 00:22:20 +0000 (16:22 -0800)]
Moved isCallerActiveScorer() to the score service.

Implemented isCallerActiveScorer() in the NetworkScoreService to make
it more efficient (no need to query PM). Exposed the call as a new
internal API on NetworkScoreManager and deprecated the call on
NetworkScorerAppManager.

Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
Bug: 33781558
Change-Id: I8ad232f8ef34b6e2f155ebb232e64300303300f0
Merged-In: I0e2142af95b068d322343f7c9362ac53d46b545e

7 years agoMerge "Fix naming of key" am: 0b74a1dabb
Jordan Liu [Tue, 10 Jan 2017 23:44:43 +0000 (23:44 +0000)]
Merge "Fix naming of key" am: 0b74a1dabb
am: c68c2f6885

Change-Id: Ibdd5177ea43ee9c2ea5603363429a7207a59d5ba

7 years agoMerge changes Ia1f2535c,I9ca93f31,If5b53f6f,I119e0bfc am: 98d86fe2b7
Robert Sesek [Tue, 10 Jan 2017 23:41:13 +0000 (23:41 +0000)]
Merge changes Ia1f2535c,I9ca93f31,If5b53f6f,I119e0bfc am: 98d86fe2b7
am: c6d9f0fbce

Change-Id: I0010cbf45a5e9fc10f86dbfbda510d34ba4b7429

7 years agoDynamically add the webview_zygote's preloaded APK to the zygote FD whitelist. am...
Robert Sesek [Tue, 10 Jan 2017 23:40:15 +0000 (23:40 +0000)]
Dynamically add the webview_zygote's preloaded APK to the zygote FD whitelist. am: 54e387ddbe
am: 839a185b2e

Change-Id: I1e761ea737447b347f2542419d18d1f42b1b50db

7 years agoSplit core/jni/fd_utils-inl.h into a .h/.cpp pair. am: 8225b7c951
Robert Sesek [Tue, 10 Jan 2017 23:39:28 +0000 (23:39 +0000)]
Split core/jni/fd_utils-inl.h into a .h/.cpp pair. am: 8225b7c951
am: 63a7fe6de8

Change-Id: I9148523bae8466e56cf00d7624c53c22318215f7

7 years agoZygote: Additional whitelisting for legacy devices. am: f701ba36b3
Narayan Kamath [Tue, 10 Jan 2017 23:38:18 +0000 (23:38 +0000)]
Zygote: Additional whitelisting for legacy devices. am: f701ba36b3
am: 7a69406767

Change-Id: I932aa16137686cce2be00a13f32978df34857709

7 years agoMerge "resolve merge conflicts of 53726c0bbfaf to nyc-mr1-dev-plus-aosp" into nyc...
Andreas Gampe [Tue, 10 Jan 2017 23:34:41 +0000 (23:34 +0000)]
Merge "resolve merge conflicts of 53726c0bbfaf to nyc-mr1-dev-plus-aosp" into nyc-mr1-dev-plus-aosp

7 years agoFix a use-of-uninitialized-value warning.
George Burgess IV [Tue, 10 Jan 2017 23:33:57 +0000 (15:33 -0800)]
Fix a use-of-uninitialized-value warning.

This warning was generated by the static analyzer:
warning: The left expression of the compound assignment is an
uninitialized value. The computed value will also be garbage
        *mDirtyMask |= animator->dirtyMask();

This can be fixed by initializing dirtyMask before using it in
AnimateFunctor.

Bug: None
Test: Static analyzer no longer complains about this.
Change-Id: I892749079cf93a012f1bed059a3f0c8bbaed9d7e

7 years agoresolve merge conflicts of 53726c0bbfaf to nyc-mr1-dev-plus-aosp
Andreas Gampe [Tue, 10 Jan 2017 23:12:18 +0000 (15:12 -0800)]
resolve merge conflicts of 53726c0bbfaf to nyc-mr1-dev-plus-aosp

Change-Id: Iddf65660f9ac1d66907c8a3d2a3d34d9f3f66d81

7 years agoMerge "Fix naming of key"
Jordan Liu [Tue, 10 Jan 2017 22:59:18 +0000 (22:59 +0000)]
Merge "Fix naming of key"
am: 0b74a1dabb

Change-Id: I8eaaee259d96c2c2da70828cd882a86ae6bde8f1

7 years agoMerge "Fix naming of key"
Jordan Liu [Tue, 10 Jan 2017 22:51:49 +0000 (22:51 +0000)]
Merge "Fix naming of key"

7 years agoMerge "Cleanup test method names." am: 8e9fd295c8
Jeremy Joslin [Tue, 10 Jan 2017 22:39:23 +0000 (22:39 +0000)]
Merge "Cleanup test method names." am: 8e9fd295c8
am: 361412ced4

Change-Id: I160b077d4faff67a721e9557f7dae10682dc2d81

7 years agoMerge changes Ia1f2535c,I9ca93f31,If5b53f6f,I119e0bfc
Robert Sesek [Tue, 10 Jan 2017 22:33:04 +0000 (22:33 +0000)]
Merge changes Ia1f2535c,I9ca93f31,If5b53f6f,I119e0bfc
am: 98d86fe2b7

Change-Id: If98bcf93212e84c0e01eb3281b729e1760762356

7 years agoDynamically add the webview_zygote's preloaded APK to the zygote FD whitelist.
Robert Sesek [Tue, 10 Jan 2017 22:33:00 +0000 (22:33 +0000)]
Dynamically add the webview_zygote's preloaded APK to the zygote FD whitelist.
am: 54e387ddbe

Change-Id: I7b4e809767e4cdd64da4094decc929504e1e93d8

7 years agoSplit core/jni/fd_utils-inl.h into a .h/.cpp pair.
Robert Sesek [Tue, 10 Jan 2017 22:32:05 +0000 (22:32 +0000)]
Split core/jni/fd_utils-inl.h into a .h/.cpp pair.
am: 8225b7c951

Change-Id: Ic5a021e5851f158caddc7f58ad7098a070f6219a

7 years agoZygote: Additional whitelisting for legacy devices.
Narayan Kamath [Tue, 10 Jan 2017 22:30:41 +0000 (22:30 +0000)]
Zygote: Additional whitelisting for legacy devices.
am: f701ba36b3

Change-Id: Ic12fdc0261f258dcd1019290a057fef4fcedd0f3

7 years agoZygote: Additional whitelists for runtime overlay / other static resources.
Narayan Kamath [Tue, 10 Jan 2017 22:29:55 +0000 (22:29 +0000)]
Zygote: Additional whitelists for runtime overlay / other static resources.
am: 0ff7ef60f5

Change-Id: Ia4ee03a2a8e801918306cacf5ff1f69401f3847d

7 years agoMerge "Cleanup test method names."
Jeremy Joslin [Tue, 10 Jan 2017 22:28:51 +0000 (22:28 +0000)]
Merge "Cleanup test method names."
am: 8e9fd295c8

Change-Id: Idb000e2b6cd8b7ba2046d329e039f6b05424686e

7 years agoMerge changes Ia1f2535c,I9ca93f31,If5b53f6f,I119e0bfc
Treehugger Robot [Tue, 10 Jan 2017 22:21:01 +0000 (22:21 +0000)]
Merge changes Ia1f2535c,I9ca93f31,If5b53f6f,I119e0bfc

* changes:
  Dynamically add the webview_zygote's preloaded APK to the zygote FD whitelist.
  Split core/jni/fd_utils-inl.h into a .h/.cpp pair.
  Zygote: Additional whitelisting for legacy devices.
  Zygote: Additional whitelists for runtime overlay / other static resources.

7 years agoMerge "Cleanup test method names."
Treehugger Robot [Tue, 10 Jan 2017 22:18:56 +0000 (22:18 +0000)]
Merge "Cleanup test method names."