OSDN Git Service

android-x86/frameworks-base.git
6 years agoRefactor system properties protos to just include the list treble team
Yi Jin [Wed, 6 Dec 2017 01:44:48 +0000 (17:44 -0800)]
Refactor system properties protos to just include the list treble team
defines http://go/treble-sysprop-compatibility.

Also refactored system properties proto to have nested proto
definitions. The reason to do it is to have flat proto definition makes
it super hard to manage its field numbers as well as hard to use.
Since we have a predefined list. Support parsing nested proto here.

Bug: 68774852
Test: unit tested and on device test
      $ out/host/linux-x86/bin/incident_report -w system_properties
Change-Id: Icfc7cdcae184fb204c81e6434d21399aa84a1285

6 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Fri, 8 Dec 2017 19:58:59 +0000 (19:58 +0000)]
Merge "Import translations. DO NOT MERGE"

6 years agoMerge "Make sure apps cannot forge package name on AssistStructure used for Autofill...
Felipe Leme [Fri, 8 Dec 2017 19:38:58 +0000 (19:38 +0000)]
Merge "Make sure apps cannot forge package name on AssistStructure used for Autofill." into oc-dev am: bd355dbf58 am: d62d68785e  -s ours am: ed6f463636  -s ours
am: 33a431e9a7  -s ours

Change-Id: Iacdf898375e36053b928f9669ddc4090d16a707e

6 years agoMerge "Make sure apps cannot forge package name on AssistStructure used for Autofill...
Felipe Leme [Fri, 8 Dec 2017 19:19:09 +0000 (19:19 +0000)]
Merge "Make sure apps cannot forge package name on AssistStructure used for Autofill." into oc-dev am: bd355dbf58 am: d62d68785e  -s ours
am: ed6f463636  -s ours

Change-Id: Iaf79d6fec857677e66af87927bc1aace01b9f1be

6 years agoMerge "Make sure apps cannot forge package name on AssistStructure used for Autofill...
Felipe Leme [Fri, 8 Dec 2017 18:53:17 +0000 (18:53 +0000)]
Merge "Make sure apps cannot forge package name on AssistStructure used for Autofill." into oc-dev am: bd355dbf58
am: d62d68785e  -s ours

Change-Id: I7f5471c6329e54669c2926779a26536a9dc6e51d

6 years agoMerge "Make sure apps cannot forge package name on AssistStructure used for Autofill...
Felipe Leme [Fri, 8 Dec 2017 18:43:33 +0000 (18:43 +0000)]
Merge "Make sure apps cannot forge package name on AssistStructure used for Autofill." into oc-mr1-dev am: 613d0cd8fb
am: 7c3716792a  -s ours

Change-Id: I4d2ef7b1f975bfed783b3e0c40225c5f7b9cfc13

6 years agoMerge "Make sure apps cannot forge package name on AssistStructure used for Autofill...
Felipe Leme [Fri, 8 Dec 2017 18:39:01 +0000 (18:39 +0000)]
Merge "Make sure apps cannot forge package name on AssistStructure used for Autofill." into oc-dev
am: bd355dbf58

Change-Id: I922cbe5c9b1e71569e09241564faf537fb923604

6 years agoMerge "Optimize Outline::setRoundRect"
TreeHugger Robot [Fri, 8 Dec 2017 18:35:02 +0000 (18:35 +0000)]
Merge "Optimize Outline::setRoundRect"

6 years agoMerge "Fix bad type for txPower in PeriodicAdvertisingReport serialization"
Jakub Pawlowski [Fri, 8 Dec 2017 18:23:34 +0000 (18:23 +0000)]
Merge "Fix bad type for txPower in PeriodicAdvertisingReport serialization"

6 years agoFix bad type for txPower in PeriodicAdvertisingReport serialization
Jakub Pawlowski [Fri, 8 Dec 2017 06:56:03 +0000 (22:56 -0800)]
Fix bad type for txPower in PeriodicAdvertisingReport serialization

Bug: 69634768
Test: compilation
Change-Id: Icedfbaf1ba933637e935ada0fd98aea42c73f2b2

6 years agoMerge "Make sure apps cannot forge package name on AssistStructure used for Autofill...
Felipe Leme [Fri, 8 Dec 2017 18:18:49 +0000 (18:18 +0000)]
Merge "Make sure apps cannot forge package name on AssistStructure used for Autofill." into oc-mr1-dev
am: 613d0cd8fb

Change-Id: Iee0adf135a684e5338250628f35b754a3e69b3d0

6 years agoMerge "Autofill metrics improvements:"
TreeHugger Robot [Fri, 8 Dec 2017 18:18:01 +0000 (18:18 +0000)]
Merge "Autofill metrics improvements:"

6 years agoMerge "Make sure apps cannot forge package name on AssistStructure used for Autofill...
TreeHugger Robot [Fri, 8 Dec 2017 18:16:24 +0000 (18:16 +0000)]
Merge "Make sure apps cannot forge package name on AssistStructure used for Autofill." into oc-dev

6 years agoMerge "Make sure apps cannot forge package name on AssistStructure used for Autofill...
TreeHugger Robot [Fri, 8 Dec 2017 18:05:59 +0000 (18:05 +0000)]
Merge "Make sure apps cannot forge package name on AssistStructure used for Autofill." into oc-mr1-dev

6 years agoMerge "Stop statically including legacy-android-test"
Paul Duffin [Fri, 8 Dec 2017 18:02:27 +0000 (18:02 +0000)]
Merge "Stop statically including legacy-android-test"

6 years agoMerge "Annotate a couple flakytests in ScheduleCalendarTest"
TreeHugger Robot [Fri, 8 Dec 2017 17:12:46 +0000 (17:12 +0000)]
Merge "Annotate a couple flakytests in ScheduleCalendarTest"

6 years agoMerge "Broadcast lifecycle events for instant apps"
TreeHugger Robot [Fri, 8 Dec 2017 17:10:49 +0000 (17:10 +0000)]
Merge "Broadcast lifecycle events for instant apps"

6 years agoMerge "Merge "Remove logtags property" am: f2ed7683da am: 9367657b27 am: a7cfd1e93d"
Android Build Merger (Role) [Fri, 8 Dec 2017 16:51:18 +0000 (16:51 +0000)]
Merge "Merge "Remove logtags property" am: f2ed7683da am: 9367657b27 am: a7cfd1e93d"

6 years agoMerge "Remove logtags property" am: f2ed7683da am: 9367657b27
Colin Cross [Fri, 8 Dec 2017 16:48:10 +0000 (16:48 +0000)]
Merge "Remove logtags property" am: f2ed7683da am: 9367657b27
am: a7cfd1e93d

Change-Id: I95218306f0acb891f7a8324ad8f94ace4ae48886

6 years agoMerge "Add TestablePermissons, which allows basic control"
TreeHugger Robot [Fri, 8 Dec 2017 16:46:08 +0000 (16:46 +0000)]
Merge "Add TestablePermissons, which allows basic control"

6 years agoOptimize Outline::setRoundRect
Stan Iliev [Fri, 8 Dec 2017 16:32:12 +0000 (11:32 -0500)]
Optimize Outline::setRoundRect

Reuse Outline internal memory if the new shape has the same
memory requirement as the previous outline.

Bug: 69849202
Test: Ran APCT, setOutline_mean decreased from ~1400 to ~1000
Change-Id: Ie0185d22122c3c17cb001316ff5a19a833f18f05

6 years agoMerge "Remove logtags property" am: f2ed7683da
Colin Cross [Fri, 8 Dec 2017 16:35:56 +0000 (16:35 +0000)]
Merge "Remove logtags property" am: f2ed7683da
am: 9367657b27

Change-Id: Ic49a94bdf60bde65b02535377163e2da062d4a43

6 years agoMerge "Implement object pool for lifecycler"
Andrii Kulian [Fri, 8 Dec 2017 16:29:02 +0000 (16:29 +0000)]
Merge "Implement object pool for lifecycler"

6 years agoMerge "Remove logtags property"
Colin Cross [Fri, 8 Dec 2017 16:26:26 +0000 (16:26 +0000)]
Merge "Remove logtags property"
am: f2ed7683da

Change-Id: I599af7003bd4ef6cbb8f99ad4caba10ada2f1f43

6 years agoMerge "Remove logtags property"
Colin Cross [Fri, 8 Dec 2017 16:14:07 +0000 (16:14 +0000)]
Merge "Remove logtags property"

6 years agoMerge changes I3a966bc7,I91e6832d
TreeHugger Robot [Fri, 8 Dec 2017 16:03:50 +0000 (16:03 +0000)]
Merge changes I3a966bc7,I91e6832d

* changes:
  Adjust window layout for DisplayCutout
  Display Cutout: Add emulation

6 years agoMerge "Re-add StackWindowControllerTests#testRemoveContainer_deferRemoval."
Bryce Lee [Fri, 8 Dec 2017 16:00:00 +0000 (16:00 +0000)]
Merge "Re-add StackWindowControllerTests#testRemoveContainer_deferRemoval."

6 years agoMerge "Optimize surface hierarchy"
TreeHugger Robot [Fri, 8 Dec 2017 15:10:32 +0000 (15:10 +0000)]
Merge "Optimize surface hierarchy"

6 years agoAnnotate a couple flakytests in ScheduleCalendarTest
Geoffrey Pitsch [Fri, 8 Dec 2017 14:53:02 +0000 (09:53 -0500)]
Annotate a couple flakytests in ScheduleCalendarTest

Test: runtest --path ...
Change-Id: I4106bbdb48d4fc39393190e0069afc7707a2b916

6 years agoAdd TestablePermissons, which allows basic control
Jason Monk [Fri, 8 Dec 2017 14:48:25 +0000 (09:48 -0500)]
Add TestablePermissons, which allows basic control

Test: runtest --path frameworks/base/tests/testables
Change-Id: I8db323cfc26f592e2e002c9328ab97bc130d559b

6 years agoMerge "Move and reshape volume dialog"
Julia Reynolds [Fri, 8 Dec 2017 14:13:24 +0000 (14:13 +0000)]
Merge "Move and reshape volume dialog"

6 years agoOptimize surface hierarchy
Jorim Jaggi [Thu, 30 Nov 2017 12:54:36 +0000 (13:54 +0100)]
Optimize surface hierarchy

- Do not reset layer if layer doesn't change. JNI is expensive.
- Only assign child layers once if we have to do multiple passes.
- Fix issue where layouting the starting window caused the surface
to be resized, leading to a blocking SF transaction.

Test: go/wm-smoke
Test: adb logcat -b events | grep 319, inspect transition times.
Fixes: 69632880
Change-Id: I8fffca30591730fae87ed3aeb9df0bdf7d4b55dd

6 years agoAdjust window layout for DisplayCutout
Adrian Roos [Wed, 22 Nov 2017 13:35:58 +0000 (14:35 +0100)]
Adjust window layout for DisplayCutout

Add policy around how the display cutout should influence window layout:
- if not requested, windows should not overlap with the display cutout
 - except windows that asked for LAYOUT_IN_SCREEN | LAYOUT_INSET_DECOR,
   which overlap only with a top cutout, provided they did not request any FULLSCREEN mode.
- the content frame must never overlap with the display cutout
- adds FLAG2_LAYOUT_IN_CUTOUT to explicitly ask to be laid out in the cutout area.

Bug: 65689439
Test: atest com.android.server.policy.PhoneWindowManagerLayoutTest
Change-Id: I3a966bc78ef7a4e076104a996799369c60ab7de1

6 years agoDisplay Cutout: Add emulation
Adrian Roos [Fri, 10 Nov 2017 14:55:18 +0000 (15:55 +0100)]
Display Cutout: Add emulation

Adds an overlay to SystemUI that draws an emulated
cutout in the bounding polygon that the window manager
supplies.

Bug: 65689439
Test: adb shell settings put global emulate_display_cutout 2
Change-Id: I91e6832d7e4594e995241d29d6f1ed0d918d59a0

6 years agoMerge "Introduce isForegroundDefaultLauncher in ShortcutServiceInternal"
TreeHugger Robot [Fri, 8 Dec 2017 13:26:35 +0000 (13:26 +0000)]
Merge "Introduce isForegroundDefaultLauncher in ShortcutServiceInternal"

6 years agoMerge "Increase history of UsageEvents"
TreeHugger Robot [Fri, 8 Dec 2017 13:16:43 +0000 (13:16 +0000)]
Merge "Increase history of UsageEvents"

6 years agoIntroduce isForegroundDefaultLauncher in ShortcutServiceInternal
Tony Mak [Thu, 7 Dec 2017 16:36:16 +0000 (16:36 +0000)]
Introduce isForegroundDefaultLauncher in ShortcutServiceInternal

BUG: 70212757

Test: bit FrameworksServicesTests:com.android.server.pm.ShortcutManagerTest{1..10}

Change-Id: Ia85cf990e3fcf1dae129ca9b1fc4c3af2838a284

6 years agoMerge "Remove duplicate bitmaps from Notification parcels"
TreeHugger Robot [Fri, 8 Dec 2017 11:03:39 +0000 (11:03 +0000)]
Merge "Remove duplicate bitmaps from Notification parcels"

6 years agoMerge "Move list of SystemUI services to xml"
TreeHugger Robot [Fri, 8 Dec 2017 08:16:20 +0000 (08:16 +0000)]
Merge "Move list of SystemUI services to xml"

6 years agoMerge "Split NotificationListener out from StatusBar."
TreeHugger Robot [Fri, 8 Dec 2017 06:28:55 +0000 (06:28 +0000)]
Merge "Split NotificationListener out from StatusBar."

6 years agoMerge "Refactor to IpNeighborMonitor and single-threaded semantics" am: b501e7e25b...
Erik Kline [Fri, 8 Dec 2017 06:21:03 +0000 (06:21 +0000)]
Merge "Refactor to IpNeighborMonitor and single-threaded semantics" am: b501e7e25b am: c4ca15786f
am: 91bb7b17d2

Change-Id: I128763174d70cc4b5999f3fcda485604c006a24e

6 years agoMerge "Refactor to IpNeighborMonitor and single-threaded semantics" am: b501e7e25b
Erik Kline [Fri, 8 Dec 2017 06:07:53 +0000 (06:07 +0000)]
Merge "Refactor to IpNeighborMonitor and single-threaded semantics" am: b501e7e25b
am: c4ca15786f

Change-Id: Ic6466a83f6b8e128a74321bb37da21e6d2c174e7

6 years agoMerge "Refactor to IpNeighborMonitor and single-threaded semantics"
Erik Kline [Fri, 8 Dec 2017 05:58:32 +0000 (05:58 +0000)]
Merge "Refactor to IpNeighborMonitor and single-threaded semantics"
am: b501e7e25b

Change-Id: Iddf69a93400af2262e4522592f9898ee0b79314c

6 years agoMerge "Make a static list of flags."
TreeHugger Robot [Fri, 8 Dec 2017 05:50:59 +0000 (05:50 +0000)]
Merge "Make a static list of flags."

6 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Fri, 8 Dec 2017 05:49:03 +0000 (05:49 +0000)]
Merge "Import translations. DO NOT MERGE"

6 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Fri, 8 Dec 2017 05:44:56 +0000 (05:44 +0000)]
Merge "Import translations. DO NOT MERGE"

6 years agoMerge "Refactor to IpNeighborMonitor and single-threaded semantics"
Treehugger Robot [Fri, 8 Dec 2017 05:44:26 +0000 (05:44 +0000)]
Merge "Refactor to IpNeighborMonitor and single-threaded semantics"

6 years agoMerge "Merge "Add assisted dialing properties to the framework." into oc-mr1-dev...
Android Build Merger (Role) [Fri, 8 Dec 2017 05:36:14 +0000 (05:36 +0000)]
Merge "Merge "Add assisted dialing properties to the framework." into oc-mr1-dev am: 5d04d92265 am: 4f6d728e62  -s ours"

6 years agoMerge "Add assisted dialing properties to the framework." into oc-mr1-dev am: 5d04d92265
Eric Erfanian [Fri, 8 Dec 2017 05:34:32 +0000 (05:34 +0000)]
Merge "Add assisted dialing properties to the framework." into oc-mr1-dev am: 5d04d92265
am: 4f6d728e62  -s ours

Change-Id: I0b6554dc99c45e754e4caded2ea1ccff2f75a6dc

6 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Fri, 8 Dec 2017 05:31:41 +0000 (05:31 +0000)]
Merge "Import translations. DO NOT MERGE"

6 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Fri, 8 Dec 2017 05:29:45 +0000 (05:29 +0000)]
Merge "Import translations. DO NOT MERGE"

6 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Fri, 8 Dec 2017 05:21:55 +0000 (05:21 +0000)]
Merge "Import translations. DO NOT MERGE"

6 years agoMerge "Add assisted dialing properties to the framework." into oc-mr1-dev
Eric Erfanian [Fri, 8 Dec 2017 05:20:16 +0000 (05:20 +0000)]
Merge "Add assisted dialing properties to the framework." into oc-mr1-dev
am: 5d04d92265

Change-Id: Ib505b78a810099534907696b546213ad557343fb

6 years agoMerge "Don't send non-resizeable notification in some cases."
Wale Ogunwale [Fri, 8 Dec 2017 05:18:57 +0000 (05:18 +0000)]
Merge "Don't send non-resizeable notification in some cases."

6 years agoMerge "Fix deadlock in SoundTriggerService using intent API."
Chris Thornton [Fri, 8 Dec 2017 05:14:54 +0000 (05:14 +0000)]
Merge "Fix deadlock in SoundTriggerService using intent API."

6 years agoMerge "Add assisted dialing properties to the framework." into oc-mr1-dev
TreeHugger Robot [Fri, 8 Dec 2017 05:02:31 +0000 (05:02 +0000)]
Merge "Add assisted dialing properties to the framework." into oc-mr1-dev

6 years agoMerge "Adds rate limit to checking byte size."
TreeHugger Robot [Fri, 8 Dec 2017 04:46:56 +0000 (04:46 +0000)]
Merge "Adds rate limit to checking byte size."

6 years agoMerge "Send empty LinkProperties when entering StoppedState." am: efdca004ab am:...
Erik Kline [Fri, 8 Dec 2017 04:23:50 +0000 (04:23 +0000)]
Merge "Send empty LinkProperties when entering StoppedState." am: efdca004ab am: 72aa5bbd4e
am: ca08e38e3a

Change-Id: Ia33d99f181f67f33b14c0c7552f934b089182c4a

6 years agoMerge "Convert services/core/jni to Android.bp" am: 6a4be8613a am: b3e34fd427
Colin Cross [Fri, 8 Dec 2017 04:14:55 +0000 (04:14 +0000)]
Merge "Convert services/core/jni to Android.bp" am: 6a4be8613a am: b3e34fd427
am: 3f5f6b5f56  -s ours

Change-Id: I90c12ddca78a2249aa03f824d7008cc3c7d8332b

6 years agoMerge "Merge "BT: Remove dead code in BluetoothHeadset" am: ea7363402c am: 38ae4d2fce...
Android Build Merger (Role) [Fri, 8 Dec 2017 04:07:08 +0000 (04:07 +0000)]
Merge "Merge "BT: Remove dead code in BluetoothHeadset" am: ea7363402c am: 38ae4d2fce am: aa9829a85a"

6 years agoMerge "BT: Remove dead code in BluetoothHeadset" am: ea7363402c am: 38ae4d2fce
Jack He [Fri, 8 Dec 2017 04:03:52 +0000 (04:03 +0000)]
Merge "BT: Remove dead code in BluetoothHeadset" am: ea7363402c am: 38ae4d2fce
am: aa9829a85a

Change-Id: I451ab8e379cc73b0c592920478e5d5a5761be795

6 years agoMerge "Merge "IMS: Add support for STK CC feature" am: bc813005b8 am: 9c9e54b066...
Android Build Merger (Role) [Fri, 8 Dec 2017 03:58:13 +0000 (03:58 +0000)]
Merge "Merge "IMS: Add support for STK CC feature" am: bc813005b8 am: 9c9e54b066 am: e5146444a4"

6 years agoMerge "IMS: Add support for STK CC feature" am: bc813005b8 am: 9c9e54b066
Jordan Liu [Fri, 8 Dec 2017 03:54:43 +0000 (03:54 +0000)]
Merge "IMS: Add support for STK CC feature" am: bc813005b8 am: 9c9e54b066
am: e5146444a4

Change-Id: Iab760a8db125f30bce6dbda2b3d784fb135995da

6 years agoMerge changes Ib254db7e,I4aa0539a
TreeHugger Robot [Fri, 8 Dec 2017 03:50:57 +0000 (03:50 +0000)]
Merge changes Ib254db7e,I4aa0539a

* changes:
  Anomaly Alert declarations in StatsdStats
  Anomaly detection statsdstats

6 years agoSplit NotificationListener out from StatusBar.
Eliot Courtney [Thu, 19 Oct 2017 08:03:34 +0000 (17:03 +0900)]
Split NotificationListener out from StatusBar.

This decouples the part of status bar that listens for notifications
being posted, updated, or removed.

Bug: 63874929
Bug: 62602530
Test: runtest systemui
Test: Compile and run

Change-Id: I4b685d03f6641bdefa297b752c93e5728cb84132

6 years agoMerge "Send empty LinkProperties when entering StoppedState." am: efdca004ab
Erik Kline [Fri, 8 Dec 2017 03:36:17 +0000 (03:36 +0000)]
Merge "Send empty LinkProperties when entering StoppedState." am: efdca004ab
am: 72aa5bbd4e

Change-Id: Ifc17bf75ec29d19e6d35716211305ea40b8742d3

6 years agoMerge "Send empty LinkProperties when entering StoppedState."
Erik Kline [Fri, 8 Dec 2017 03:27:15 +0000 (03:27 +0000)]
Merge "Send empty LinkProperties when entering StoppedState."
am: efdca004ab

Change-Id: I28628277a2e09e7e01eeb6abb140533cc4b58b0d

6 years agoMerge "Send empty LinkProperties when entering StoppedState."
Treehugger Robot [Fri, 8 Dec 2017 03:14:09 +0000 (03:14 +0000)]
Merge "Send empty LinkProperties when entering StoppedState."

6 years agoMerge "Fix available/remaining PIN/PUK attempts." am: e3ab43eefe am: cc3058f0a1
Jordan Liu [Fri, 8 Dec 2017 03:02:42 +0000 (03:02 +0000)]
Merge "Fix available/remaining PIN/PUK attempts." am: e3ab43eefe am: cc3058f0a1
am: 1cd98a5edf

Change-Id: I67ddb422ef54ef0462f6a6342c515bce740b3872

6 years agoMerge "DO NOT MERGE - Backported some Autofill Javadoc improvements from master....
Felipe Leme [Fri, 8 Dec 2017 02:55:34 +0000 (02:55 +0000)]
Merge "DO NOT MERGE - Backported some Autofill Javadoc improvements from " into oc-mr1-dev am: 11238d4f36
am: 0d4faf1483  -s ours

Change-Id: I8053d6554fcc5090746054e592cd6a5c96a26d83

6 years agoMerge "Bluetooth HID Device: format code, fix docstring, hide unplug()" am: 0d3990b23...
Hansong Zhang [Fri, 8 Dec 2017 02:51:25 +0000 (02:51 +0000)]
Merge "Bluetooth HID Device: format code, fix docstring, hide unplug()" am: 0d3990b235 am: c2205a8d3d
am: 3c84b37f80

Change-Id: I31ca6fb738fc840fc27e834e9c90dda7bb7d3a12

6 years agoMerge "Use correct user id for permission check for instant foreground service" am...
Svetoslav Ganov [Fri, 8 Dec 2017 02:44:47 +0000 (02:44 +0000)]
Merge "Use correct user id for permission check for instant foreground service" am: b76e984536 am: 2ba5aba394
am: 5302b62103

Change-Id: I127b3eb522a7bfe18ae8e8932858b99406c67ade

6 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 8 Dec 2017 02:43:32 +0000 (18:43 -0800)]
Import translations. DO NOT MERGE

Change-Id: I341283c0e4a42a3a61f771a0c3a7e81e3e53b0c5
Auto-generated-cl: translation import

6 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 8 Dec 2017 02:41:34 +0000 (18:41 -0800)]
Import translations. DO NOT MERGE

Change-Id: Ifd109043e3ccfbe8341a5ea39d7e58c9c6d9e5e2
Auto-generated-cl: translation import

6 years agoFix deadlock in SoundTriggerService using intent API.
Chris Thornton [Fri, 8 Dec 2017 02:26:31 +0000 (18:26 -0800)]
Fix deadlock in SoundTriggerService using intent API.

The callback of the SoundTriggerService using the intent API used to try
and grab the same lock that other calls to the STS were using when they
accessed the SoundTriggerHelper.

This happens because most functions in the STH grab the STH's lock,
including the one that handles the recognition events. The recognition
event callback in the STS would then try to grab the STS lock, while
implicitly holding the STH one.

However, a concurrent call to the STS from outside could first grab the
STS lock, then call into the STH which may need the STH lock, resulting
in a deadlock.

By removing the requirement that the STS callback grab the main STS
lock, this condition is avoided.

Bug: 70346433
Test: On device
Change-Id: I44571fba786a82a17423d45f503be9537b476a01

6 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 8 Dec 2017 02:23:45 +0000 (18:23 -0800)]
Import translations. DO NOT MERGE

Change-Id: I27c7f4ed9f8c49c6c80e933ba047951a243c711a
Auto-generated-cl: translation import

6 years agoAdds rate limit to checking byte size.
David Chen [Tue, 5 Dec 2017 21:43:51 +0000 (13:43 -0800)]
Adds rate limit to checking byte size.

Since there is a separate guardrail for memory used by uid map, we
no longer add the memory from uid map with the memory per each
config's metrics. We also prevent the byte size check from happening
too frequently. In order to mock the MetricsManager, we refactor
some of the existing methods.

Test: Added unit-tests and verified they all pass on marlin.
Change-Id: I15cf105f7d95f4016fdb0443b0a33eebe862cafb

6 years agoDon't send non-resizeable notification in some cases.
Wale Ogunwale [Fri, 8 Dec 2017 02:17:12 +0000 (18:17 -0800)]
Don't send non-resizeable notification in some cases.

Don't send non-resizeable notification when putting other stacks in
the system in split-screen secondary windowing mode due to us entering
split screen mode since they won't be visible.

Also, added isVisible to containers in the window manager proto.

Change-Id: If83076514c160ad7b2a639e32d6f9fc85e70bd53
Fixes: 70355262
Test: go/wm-smoke and steps from bug.

6 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 8 Dec 2017 02:19:13 +0000 (18:19 -0800)]
Import translations. DO NOT MERGE

Change-Id: I34dc5c75711cb291d0025aaaa145d816e72a2863
Auto-generated-cl: translation import

6 years agoMerge changes from topic "am-4007d3bc6c424f8380499c1ff1758d7f"
Android Build Merger (Role) [Fri, 8 Dec 2017 02:17:50 +0000 (02:17 +0000)]
Merge changes from topic "am-4007d3bc6c424f8380499c1ff1758d7f"

* changes:
  Merge changes from topic "predicates_aosp" am: 76c275e7d3 am: 28f32f26b7 am: ff8201b34b  -s ours
  Emit all APIs using Predicates. am: bc4f48b21d am: 751de6e6bd am: c690bb763c  -s ours
  Massage APIs for upcoming doclava change. am: 983df8cc6c am: 5b89182ff8 am: d14328ff9b  -s ours

6 years agoRefactor to IpNeighborMonitor and single-threaded semantics
Erik Kline [Fri, 19 May 2017 00:29:48 +0000 (09:29 +0900)]
Refactor to IpNeighborMonitor and single-threaded semantics

IpReachabilityMonitor (and IpNeighborMonitor) are only accessed from
the IpManager StateMachine's thread. Consequently lots of locking can
now be removed.

Additionally:
    - rename BlockingSocketReader to PacketReader
    - incorporate IpReachabilityMonitor output in dump()

Test: as follows
    - runtest frameworks-net passes
    - "adb shell ip neigh change <address> dev wlan0 nud failed"
      triggers wifi to disconnect
Bug: 62476366
Bug: 67013397
Change-Id: I18aca29ae0019a72a7e559c2832e0d9b0e33d81e

6 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 8 Dec 2017 02:11:59 +0000 (18:11 -0800)]
Import translations. DO NOT MERGE

Change-Id: I21cf2bccb3bb43584cb1a53b25d8e26b2a926d1d
Auto-generated-cl: translation import

6 years agoMerge changes from topic "predicates_aosp" am: 76c275e7d3 am: 28f32f26b7
Jeff Sharkey [Fri, 8 Dec 2017 02:11:47 +0000 (02:11 +0000)]
Merge changes from topic "predicates_aosp" am: 76c275e7d3 am: 28f32f26b7
am: ff8201b34b  -s ours

Change-Id: I8bcfb125b501a3f6db65b931bcf416c72bc849c6

6 years agoEmit all APIs using Predicates. am: bc4f48b21d am: 751de6e6bd
Jeff Sharkey [Fri, 8 Dec 2017 02:07:28 +0000 (02:07 +0000)]
Emit all APIs using Predicates. am: bc4f48b21d am: 751de6e6bd
am: c690bb763c  -s ours

Change-Id: Ibe93b39db84fa6dd59e791e8baf6087fa9c696de

6 years agoMassage APIs for upcoming doclava change. am: 983df8cc6c am: 5b89182ff8
Jeff Sharkey [Fri, 8 Dec 2017 02:04:09 +0000 (02:04 +0000)]
Massage APIs for upcoming doclava change. am: 983df8cc6c am: 5b89182ff8
am: d14328ff9b  -s ours

Change-Id: I2cf84b4f39baa5419fbf8a8ff98fab82cc0e0fb2

6 years agoMerge "Disable RT animations for notification actions"
TreeHugger Robot [Fri, 8 Dec 2017 02:04:06 +0000 (02:04 +0000)]
Merge "Disable RT animations for notification actions"

6 years agoAnomaly Alert declarations in StatsdStats
Bookatz [Thu, 7 Dec 2017 21:53:21 +0000 (13:53 -0800)]
Anomaly Alert declarations in StatsdStats

StatsdStats now tracks the number of times an anomaly is detected (per
config, per alert name).

Also adds a configKey to AnomalyTracker, which is needed, not only for
statsdstats, but also (in the future) for reporting the header
information to incidentd.

Bug: 67978682
Test: adb shell data/nativetest64/statsd_test/statsd_test
Change-Id: Ib254db7e1edb4f0f193f4772d17f14934cdf7e30

6 years agoAutofill metrics improvements:
Felipe Leme [Wed, 6 Dec 2017 00:30:06 +0000 (16:30 -0800)]
Autofill metrics improvements:

* Added new metrics:
  - AUTOFILL_USERDATA_UPDATED
  - AUTOFILL_FIELD_CLASSIFICATION_MATCHES
  - FIELD_AUTOFILL_MATCH_SCORE
  - FIELD_AUTOFILL_NUM_FIELD_CLASSIFICATION_IDS
* Fixed how FIELD_CLASS_NAME is set for AUTOFILL_SERVICE_DISABLED_ACTIVITY
* Added extra info on some existing metrics:
  - FIELD_FLAGS on AUTOFILL_SESSION_STARTED
  - TYPE_CLOSE on AUTOFILL_REQUEST to indicate a null response from service
  - FIELD_AUTOFILL_NUM_FIELD_CLASSIFICATION_IDS on AUTOFILL_REQUEST to indicate the number of ids in a
    field classfification request

Bug: 70241978
Test: verified output of 'adb shell logcat -b events | grep sysui' while
      running CTS tests associated with the changes

Change-Id: I05d8d0325e9b338dd3d874e5b95a08cedf4b271c

6 years agoAnomaly detection statsdstats
Bookatz [Fri, 1 Dec 2017 19:13:32 +0000 (11:13 -0800)]
Anomaly detection statsdstats

Adds statsdstats for tracking the number of anomaly alarms registered.

Test: adb shell data/nativetest64/statsd_test/statsd_test
Bug: 67978682
Change-Id: I4aa0539a13c60ccb3b7fd2a4f41c4ad867f3a4ea

6 years agoMerge "Fix sync initialization on secondary users"
TreeHugger Robot [Fri, 8 Dec 2017 01:59:19 +0000 (01:59 +0000)]
Merge "Fix sync initialization on secondary users"

6 years agoMerge "Convert services/core/jni to Android.bp" am: 6a4be8613a
Colin Cross [Fri, 8 Dec 2017 01:58:57 +0000 (01:58 +0000)]
Merge "Convert services/core/jni to Android.bp" am: 6a4be8613a
am: b3e34fd427

Change-Id: I336ae24f31e3435914876edb06fbb198f9417cfd

6 years agoMerge "App Shortcuts: Update javadoc."
TreeHugger Robot [Fri, 8 Dec 2017 01:57:53 +0000 (01:57 +0000)]
Merge "App Shortcuts: Update javadoc."

6 years agoMerge "Merge "fix system app's abi error after uninstall updated version." am: a863c7...
Android Build Merger (Role) [Fri, 8 Dec 2017 01:57:28 +0000 (01:57 +0000)]
Merge "Merge "fix system app's abi error after uninstall updated version." am: a863c7f6b7 am: b9f9a5b672 am: 128335413a"

6 years agoRemove logtags property
Colin Cross [Fri, 8 Dec 2017 01:55:05 +0000 (17:55 -0800)]
Remove logtags property

logtags previously needed to be listed in logtags and srcs, now
they only need to be listed in logtags.

Test: m checkbuild
Change-Id: I7750116675d9497782642a9b8c86288d42bf0a54

6 years agoMerge "fix system app's abi error after uninstall updated version." am: a863c7f6b7...
liulvping [Fri, 8 Dec 2017 01:55:39 +0000 (01:55 +0000)]
Merge "fix system app's abi error after uninstall updated version." am: a863c7f6b7 am: b9f9a5b672
am: 128335413a

Change-Id: Iea121bfaa29e04bbaa9f9bc1747292ff98a824a3

6 years agoMerge "Merge "Fix doc typo. Improve class javadoc..." am: e08f918a6e am: 26d28ef826...
Android Build Merger (Role) [Fri, 8 Dec 2017 01:51:28 +0000 (01:51 +0000)]
Merge "Merge "Fix doc typo. Improve class javadoc..." am: e08f918a6e am: 26d28ef826 am: ac8f2c94fd"

6 years agoMerge "Fix doc typo. Improve class javadoc..." am: e08f918a6e am: 26d28ef826
Neil Fuller [Fri, 8 Dec 2017 01:49:33 +0000 (01:49 +0000)]
Merge "Fix doc typo. Improve class javadoc..." am: e08f918a6e am: 26d28ef826
am: ac8f2c94fd

Change-Id: I3a587c589237460122cd2aacaed20c462e303db9

6 years agoMerge "BT: Remove dead code in BluetoothHeadset" am: ea7363402c
Jack He [Fri, 8 Dec 2017 01:48:22 +0000 (01:48 +0000)]
Merge "BT: Remove dead code in BluetoothHeadset" am: ea7363402c
am: 38ae4d2fce

Change-Id: I93ba53e4cf31e6dfc6e98d70cd73a93ec930ccb1

6 years agoMerge "Convert services/core/jni to Android.bp"
Colin Cross [Fri, 8 Dec 2017 01:46:48 +0000 (01:46 +0000)]
Merge "Convert services/core/jni to Android.bp"
am: 6a4be8613a

Change-Id: Icbb98c844347418c003a75d80394448cacfb036f

6 years agoMerge "Merge "Disable AVB check in runtime vintf" am: 86c9951383 am: a241b4d488 am...
Android Build Merger (Role) [Fri, 8 Dec 2017 01:45:49 +0000 (01:45 +0000)]
Merge "Merge "Disable AVB check in runtime vintf" am: 86c9951383 am: a241b4d488 am: 3a315ab982  -s ours"