OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "AOD font sizes"
TreeHugger Robot [Sat, 10 Feb 2018 02:45:25 +0000 (02:45 +0000)]
Merge "AOD font sizes"

6 years agoMerge "MediaPlayer2: hook up srcId."
TreeHugger Robot [Sat, 10 Feb 2018 02:31:46 +0000 (02:31 +0000)]
Merge "MediaPlayer2: hook up srcId."

6 years agoMerge "Add InCallService docs to state prerequisites for be being a dialer app."...
Tyler Gunn [Sat, 10 Feb 2018 02:26:52 +0000 (02:26 +0000)]
Merge "Add InCallService docs to state prerequisites for be being a dialer app." am: 6a3031713c am: 07545d18a2
am: a5627cd0e2

Change-Id: I8b423fba0e10abffc757e8d5ad4feb3b01732e01

6 years agoMerge "Add clear method to ProtoOutputStream so it is reusable by just rewinding...
TreeHugger Robot [Sat, 10 Feb 2018 02:20:30 +0000 (02:20 +0000)]
Merge "Add clear method to ProtoOutputStream so it is reusable by just rewinding its internal pointer."

6 years agoMerge "Add InCallService docs to state prerequisites for be being a dialer app."...
Tyler Gunn [Sat, 10 Feb 2018 02:11:17 +0000 (02:11 +0000)]
Merge "Add InCallService docs to state prerequisites for be being a dialer app." am: 6a3031713c
am: 07545d18a2

Change-Id: I040613717aef7626dff3eafb2f49c943255d5795

6 years agoMerge "Require NETWORK_STACK Permission for IpSec Tunnel Mode" am: 43699e90f3 am...
nharold [Sat, 10 Feb 2018 02:11:15 +0000 (02:11 +0000)]
Merge "Require NETWORK_STACK Permission for IpSec Tunnel Mode" am: 43699e90f3 am: e736f83caf
am: 0f7857e587

Change-Id: Ib33ccecfe2fc600c05a208d24df10a474addb0e5

6 years agoMerge "Remove unnecessary interactive check from alarm dumpsys"
TreeHugger Robot [Sat, 10 Feb 2018 02:05:28 +0000 (02:05 +0000)]
Merge "Remove unnecessary interactive check from alarm dumpsys"

6 years agoMerge "[3rd try] JobScheduler to use UID active state for job exemption"
TreeHugger Robot [Sat, 10 Feb 2018 01:59:36 +0000 (01:59 +0000)]
Merge "[3rd try] JobScheduler to use UID active state for job exemption"

6 years agoMerge "Require NETWORK_STACK Permission for IpSec Tunnel Mode" am: 43699e90f3
nharold [Sat, 10 Feb 2018 01:57:50 +0000 (01:57 +0000)]
Merge "Require NETWORK_STACK Permission for IpSec Tunnel Mode" am: 43699e90f3
am: e736f83caf

Change-Id: If7330b4fdf5d2ccbddb590ab81a4b19c1f612b66

6 years agoMerge "Add InCallService docs to state prerequisites for be being a dialer app."
Tyler Gunn [Sat, 10 Feb 2018 01:52:07 +0000 (01:52 +0000)]
Merge "Add InCallService docs to state prerequisites for be being a dialer app."
am: 6a3031713c

Change-Id: I08fb54de452d6f334232d24caf8f89caba85c515

6 years agoMerge "Require NETWORK_STACK Permission for IpSec Tunnel Mode"
nharold [Sat, 10 Feb 2018 01:46:00 +0000 (01:46 +0000)]
Merge "Require NETWORK_STACK Permission for IpSec Tunnel Mode"
am: 43699e90f3

Change-Id: I1f286f0215ce88f947775ded0ddfbc8e0cd7bc55

6 years agoMerge "Declare a WTF if setting an alarm fails"
TreeHugger Robot [Sat, 10 Feb 2018 01:35:48 +0000 (01:35 +0000)]
Merge "Declare a WTF if setting an alarm fails"

6 years agoAOD font sizes
Lucas Dupin [Sat, 10 Feb 2018 00:54:36 +0000 (16:54 -0800)]
AOD font sizes

Rebalanced font size so keyguard message isn't bigger
than the clock.

Test: visual
Change-Id: I0d24c44616b2b1a0787fa9e55ccb439b30a152ac

6 years agoMerge "MediaFrameworkTest: Configure video snapshot framerate"
TreeHugger Robot [Sat, 10 Feb 2018 00:54:55 +0000 (00:54 +0000)]
Merge "MediaFrameworkTest: Configure video snapshot framerate"

6 years agoMerge "Update internal ViewPager's SavedState to match Support Library version"
TreeHugger Robot [Sat, 10 Feb 2018 00:49:02 +0000 (00:49 +0000)]
Merge "Update internal ViewPager's SavedState to match Support Library version"

6 years agoMerge "Add Connection Event for supplementary service notifications." am: efccc1babe...
Tyler Gunn [Sat, 10 Feb 2018 00:25:05 +0000 (00:25 +0000)]
Merge "Add Connection Event for supplementary service notifications." am: efccc1babe am: 4d2dae8f0c
am: cb64e33660

Change-Id: I782179c6a96d7a953c3201943726ae1e34735ca8

6 years agoRemove unnecessary interactive check from alarm dumpsys
Makoto Onuki [Sat, 10 Feb 2018 00:14:26 +0000 (16:14 -0800)]
Remove unnecessary interactive check from alarm dumpsys

Test: boot && dumpsys alarm
Change-Id: I1fa564917cd7631090219f9df99286ccb83069ff

6 years agoMerge "Add Connection Event for supplementary service notifications." am: efccc1babe
Tyler Gunn [Sat, 10 Feb 2018 00:11:19 +0000 (00:11 +0000)]
Merge "Add Connection Event for supplementary service notifications." am: efccc1babe
am: 4d2dae8f0c

Change-Id: Ide105970d9c91f2fa5e2ec14410da011918d92ec

6 years agoMerge "Send package to permission check"
TreeHugger Robot [Sat, 10 Feb 2018 00:09:23 +0000 (00:09 +0000)]
Merge "Send package to permission check"

6 years agoMerge "Honor INSTANT_APPS_ENABLED only for web intents"
TreeHugger Robot [Sat, 10 Feb 2018 00:07:44 +0000 (00:07 +0000)]
Merge "Honor INSTANT_APPS_ENABLED only for web intents"

6 years agoMerge "use writepixels on surface, the canvas version is deprecated"
TreeHugger Robot [Sat, 10 Feb 2018 00:07:19 +0000 (00:07 +0000)]
Merge "use writepixels on surface, the canvas version is deprecated"

6 years agoMerge "Fix issue with quick switch animation not running."
Winson Chung [Sat, 10 Feb 2018 00:00:49 +0000 (00:00 +0000)]
Merge "Fix issue with quick switch animation not running."

6 years agoMerge "Add InCallService docs to state prerequisites for be being a dialer app."
Tyler Gunn [Sat, 10 Feb 2018 00:00:04 +0000 (00:00 +0000)]
Merge "Add InCallService docs to state prerequisites for be being a dialer app."

6 years agoMerge "Add Connection Event for supplementary service notifications."
Tyler Gunn [Fri, 9 Feb 2018 23:59:33 +0000 (23:59 +0000)]
Merge "Add Connection Event for supplementary service notifications."
am: efccc1babe

Change-Id: Ia8f03045830032e42d2518e97fe74fd55734d524

6 years ago[3rd try] JobScheduler to use UID active state for job exemption
Makoto Onuki [Tue, 6 Feb 2018 19:30:15 +0000 (11:30 -0800)]
[3rd try] JobScheduler to use UID active state for job exemption

JobScheduler used to use procstate foreground state to decide whether
to exempt jobs, but it should use UID's active state instead, so that
if apps in the temp-whitelist schedule jobs, they run immediately.

Test: Boot
Test: atest CtsAlarmManagerTestCases
Test: atest CtsJobSchedulerTestCases
Test: atest CtsBatterySavingTestCases
Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/AppStateTrackerTest.java

Bug: 72125364
Change-Id: I7a5628e76121199f3a5299e2a5576e1481574a6e

6 years agoMerge "Require NETWORK_STACK Permission for IpSec Tunnel Mode"
nharold [Fri, 9 Feb 2018 23:36:59 +0000 (23:36 +0000)]
Merge "Require NETWORK_STACK Permission for IpSec Tunnel Mode"

6 years agoMerge "Prevent AAPT from versioning <animated-selector> tags." into oc-mr1-dev am...
Nick Butcher [Fri, 9 Feb 2018 23:11:17 +0000 (23:11 +0000)]
Merge "Prevent AAPT from versioning <animated-selector> tags." into oc-mr1-dev am: 35e1410551
am: 0ac5791e9e

Change-Id: Idbcf3a51211a87574bd4aff8d01fb49e504b3981

6 years agoMerge "Add AttributeSet.getAttributeNamespace()."
TreeHugger Robot [Fri, 9 Feb 2018 22:57:27 +0000 (22:57 +0000)]
Merge "Add AttributeSet.getAttributeNamespace()."

6 years agoMerge "The volume dialog window size should match content"
TreeHugger Robot [Fri, 9 Feb 2018 22:55:39 +0000 (22:55 +0000)]
Merge "The volume dialog window size should match content"

6 years agoMerge "Fix imports in text related graphics classes"
Siyamed Sinir [Fri, 9 Feb 2018 22:47:41 +0000 (22:47 +0000)]
Merge "Fix imports in text related graphics classes"

6 years agoMerge "Prevent AAPT from versioning <animated-selector> tags." into oc-mr1-dev
Nick Butcher [Fri, 9 Feb 2018 22:42:26 +0000 (22:42 +0000)]
Merge "Prevent AAPT from versioning <animated-selector> tags." into oc-mr1-dev
am: 35e1410551

Change-Id: If9f28bfe12d75fca6b8f07c15b77f78267ef6292

6 years agoMerge "Remove redundant final modifiers from api" am: 0ac66edaea am: 42b86e3dec
Adam Lesinski [Fri, 9 Feb 2018 22:42:19 +0000 (22:42 +0000)]
Merge "Remove redundant final modifiers from api" am: 0ac66edaea am: 42b86e3dec
am: ca8b6fdf1b  -s ours

Change-Id: I4bb87d7ab1c3b4d01c4d76ed42e06b338bba97a0

6 years agoUpdate internal ViewPager's SavedState to match Support Library version
Alan Viverette [Fri, 9 Feb 2018 22:38:45 +0000 (17:38 -0500)]
Update internal ViewPager's SavedState to match Support Library version

Fixes: 71992105
Test: no
Change-Id: Ic4569b21d8a26a62bba91742b442f0c3ea8bcc9e

6 years agoMerge "Watchdog: Print annotated stack trace, if possible" am: 2bd33a69d9 am: 0bc85c4e4d
Andreas Gampe [Fri, 9 Feb 2018 22:33:03 +0000 (22:33 +0000)]
Merge "Watchdog: Print annotated stack trace, if possible" am: 2bd33a69d9 am: 0bc85c4e4d
am: a2671a8bb8

Change-Id: I1eed8502f81fcecd9a295ee8f121ae44c046d72b

6 years agoMerge "Prevent AAPT from versioning <animated-selector> tags." into oc-mr1-dev
TreeHugger Robot [Fri, 9 Feb 2018 22:27:53 +0000 (22:27 +0000)]
Merge "Prevent AAPT from versioning <animated-selector> tags." into oc-mr1-dev

6 years agoMerge "Remove redundant final modifiers from api" am: 0ac66edaea
Adam Lesinski [Fri, 9 Feb 2018 22:21:21 +0000 (22:21 +0000)]
Merge "Remove redundant final modifiers from api" am: 0ac66edaea
am: 42b86e3dec

Change-Id: If8366b5803f9d063d7c8131272a398983e93fde6

6 years agoAdd clear method to ProtoOutputStream so it is reusable by just
Yi Jin [Sat, 3 Feb 2018 00:25:11 +0000 (16:25 -0800)]
Add clear method to ProtoOutputStream so it is reusable by just
rewinding its internal pointer.

Bug: 72319159
Test: atest incidentd_test and atest statsd_test
Change-Id: Id046b987a7460d68300e5d4d46ae56aec1eba2d0

6 years agoMerge "Merge "Pass calling package for invocations of endCall API." am: 44289caa11...
Android Build Merger (Role) [Fri, 9 Feb 2018 22:20:39 +0000 (22:20 +0000)]
Merge "Merge "Pass calling package for invocations of endCall API." am: 44289caa11 am: e05da7e86b am: 654b7fc322"

6 years agoMerge "Pass calling package for invocations of endCall API." am: 44289caa11 am: e05da...
Tyler Gunn [Fri, 9 Feb 2018 22:19:49 +0000 (22:19 +0000)]
Merge "Pass calling package for invocations of endCall API." am: 44289caa11 am: e05da7e86b
am: 654b7fc322

Change-Id: Id7c74fa539b7e7e26dfdc8b612d9299d8c20c19b

6 years agoMerge "Clean up usage of COWArrayList in a11y code"
TreeHugger Robot [Fri, 9 Feb 2018 22:17:41 +0000 (22:17 +0000)]
Merge "Clean up usage of COWArrayList in a11y code"

6 years agoMerge "Add Connection Event for supplementary service notifications."
Tyler Gunn [Fri, 9 Feb 2018 22:10:50 +0000 (22:10 +0000)]
Merge "Add Connection Event for supplementary service notifications."

6 years agoMerge "Watchdog: Print annotated stack trace, if possible" am: 2bd33a69d9
Andreas Gampe [Fri, 9 Feb 2018 22:09:07 +0000 (22:09 +0000)]
Merge "Watchdog: Print annotated stack trace, if possible" am: 2bd33a69d9
am: 0bc85c4e4d

Change-Id: I88e72448c88e6948de3f6d2e6f0f20d1a39a31a1

6 years agoHonor INSTANT_APPS_ENABLED only for web intents
Patrick Baumann [Thu, 8 Feb 2018 22:21:15 +0000 (14:21 -0800)]
Honor INSTANT_APPS_ENABLED only for web intents

Bug: 65959668
Test: manual - toggle setting with test app and verify behavior
Test: atest EphemeralTest
Change-Id: I379a17027abd337610243c1f7c55e9ba733d03fe

6 years agoMerge "Remove redundant final modifiers from api"
Adam Lesinski [Fri, 9 Feb 2018 22:00:21 +0000 (22:00 +0000)]
Merge "Remove redundant final modifiers from api"
am: 0ac66edaea

Change-Id: I69d90dc2869943544e88ed01391d4a6b1107aa90

6 years agoMerge "Pass calling package for invocations of endCall API." am: 44289caa11
Tyler Gunn [Fri, 9 Feb 2018 21:57:39 +0000 (21:57 +0000)]
Merge "Pass calling package for invocations of endCall API." am: 44289caa11
am: e05da7e86b

Change-Id: If051e7875ba1863bc67dd029fa9b5cc0c858d103

6 years agoDeclare a WTF if setting an alarm fails
Christopher Tate [Fri, 9 Feb 2018 19:13:19 +0000 (11:13 -0800)]
Declare a WTF if setting an alarm fails

This doesn't crash, but does trigger incident reporting.

Also adjust the dumpsys output to be a bit more sensible, and to include
not only last-wakeup but also last-trigger breadcrumbs.

Bug: 65489393
Test: manual
Change-Id: Ifb11f673ad5242b0320092731c9d8311a29f1170

6 years agoMerge "Fix Editor ActionMode content rectangle"
Siyamed Sinir [Fri, 9 Feb 2018 21:57:14 +0000 (21:57 +0000)]
Merge "Fix Editor ActionMode content rectangle"

6 years agoMerge "Watchdog: Print annotated stack trace, if possible"
Andreas Gampe [Fri, 9 Feb 2018 21:46:16 +0000 (21:46 +0000)]
Merge "Watchdog: Print annotated stack trace, if possible"
am: 2bd33a69d9

Change-Id: I618fcab94211da7b259b4761faeb26daea658a48

6 years agoMerge "Add checkstyle check to graphics package"
Siyamed Sinir [Fri, 9 Feb 2018 21:44:35 +0000 (21:44 +0000)]
Merge "Add checkstyle check to graphics package"

6 years agoMerge "Pass calling package for invocations of endCall API."
Tyler Gunn [Fri, 9 Feb 2018 21:42:29 +0000 (21:42 +0000)]
Merge "Pass calling package for invocations of endCall API."
am: 44289caa11

Change-Id: Ifc44839a3235755e9f231f37dd99f22bb96b39a9

6 years agofix isActiveNetworkMetered with VPNs am: c81ef19954
Eric Enslen [Fri, 9 Feb 2018 21:40:42 +0000 (21:40 +0000)]
fix isActiveNetworkMetered with VPNs am: c81ef19954
am: 351b45873d

Change-Id: I177eff1237dd59514ccf91397a3d307148bc37b1

6 years agoMerge "Add "uses-sdk" to AndroidManifest for ActivityManagerPerfTests"
TreeHugger Robot [Fri, 9 Feb 2018 21:33:22 +0000 (21:33 +0000)]
Merge "Add "uses-sdk" to AndroidManifest for ActivityManagerPerfTests"

6 years agofix isActiveNetworkMetered with VPNs
Eric Enslen [Fri, 9 Feb 2018 21:26:09 +0000 (21:26 +0000)]
fix isActiveNetworkMetered with VPNs
am: c81ef19954

Change-Id: I8d59bc23e9153c54e64af59816d11301b490c9eb

6 years agoAdd AttributeSet.getAttributeNamespace().
Dianne Hackborn [Fri, 9 Feb 2018 01:47:53 +0000 (17:47 -0800)]
Add AttributeSet.getAttributeNamespace().

Why not.

Bug: 73101753
Test: Build and booted
Change-Id: I8f712ce9d7ed06eceef04d50a733a9471429b94c

6 years agoThe volume dialog window size should match content
Julia Reynolds [Fri, 9 Feb 2018 20:40:20 +0000 (15:40 -0500)]
The volume dialog window size should match content

So tapping outside the panel taps on underlying windows

Test: manual
Change-Id: Ie90567d6f1c16657b33f932fb95804f8b26383f9
Fixes: 73165559

6 years agoMerge "Add missing callback to StatusBarService for inline reply"
Amith Yamasani [Fri, 9 Feb 2018 20:49:32 +0000 (20:49 +0000)]
Merge "Add missing callback to StatusBarService for inline reply"

6 years agoMerge "Remove redundant final modifiers from api"
Adam Lesinski [Fri, 9 Feb 2018 20:48:28 +0000 (20:48 +0000)]
Merge "Remove redundant final modifiers from api"

6 years agoMerge "Update Inactive Apps to show standby buckets"
Amith Yamasani [Fri, 9 Feb 2018 20:41:59 +0000 (20:41 +0000)]
Merge "Update Inactive Apps to show standby buckets"

6 years agoFix issue with quick switch animation not running.
Winson Chung [Fri, 9 Feb 2018 01:53:26 +0000 (17:53 -0800)]
Fix issue with quick switch animation not running.

- We were intercepting touch before the quickscrub controller had a chance
  to handle the touch, which meant that we canceled the recents animation
  before passing the quick switch event to launcher.  Instead, just move
  the cancel recents animation logic to the key button view (before
  handling up) and ensure that we intercept from the button only in the
  cases we desire (a quick switch/scrub, recents animation start, or if
  it's a dock drag (not currently enabled).

Test: Fling on the nav button to quickswitch, ensure recents animation
      runs

Change-Id: Id89fda56f2996a38a9aea99179b5e2870b531003

6 years agoFix imports in text related graphics classes
Siyamed Sinir [Fri, 9 Feb 2018 20:10:34 +0000 (12:10 -0800)]
Fix imports in text related graphics classes

Test: atest CanvasTest
Test: atest TypefaceTest
Test: atest PaintTest

Change-Id: I0d022e39a68be1b22d3036e928eaec1929789261

6 years agoMerge "ByteStringUtils: fix hex parsing to include lowercase input."
TreeHugger Robot [Fri, 9 Feb 2018 19:49:15 +0000 (19:49 +0000)]
Merge "ByteStringUtils: fix hex parsing to include lowercase input."

6 years agoMerge "Refactor ZygoteProcess to deal in LocalSocketAddress."
TreeHugger Robot [Fri, 9 Feb 2018 19:44:55 +0000 (19:44 +0000)]
Merge "Refactor ZygoteProcess to deal in LocalSocketAddress."

6 years agoAdd checkstyle check to graphics package
Siyamed Sinir [Fri, 9 Feb 2018 19:34:57 +0000 (11:34 -0800)]
Add checkstyle check to graphics package

Test: None
Change-Id: I1c8342dda2678917e245e48ab141b2953a522197

6 years agoAdd InCallService docs to state prerequisites for be being a dialer app.
Tyler Gunn [Fri, 2 Feb 2018 21:18:02 +0000 (13:18 -0800)]
Add InCallService docs to state prerequisites for be being a dialer app.

The InCallService documentation does not clearly state that an app which
wants to become the default dialer app also needs to handle the DIAL
intent.  This change updates the documentation to make this clear.

Test: Built documentation and verified its contents.
Bug: 72857373
Change-Id: I738a8475df37035a0a7f4ad1639df76d967f81dc

6 years agoMerge "Simplify method management for IAudioService"
TreeHugger Robot [Fri, 9 Feb 2018 19:25:21 +0000 (19:25 +0000)]
Merge "Simplify method management for IAudioService"

6 years agoFix Editor ActionMode content rectangle
Siyamed Sinir [Fri, 9 Feb 2018 19:24:16 +0000 (11:24 -0800)]
Fix Editor ActionMode content rectangle

We have made a mistake in a previous change and change the single cursor
selection bounds in a wrong way.

Test: atest CtsWidgetTestCases:TextViewTest
Bug: 72244890
Change-Id: Ie597ff5a9f82e04d673534e35c49da513132cd5b

6 years agoMerge "Watchdog: Print annotated stack trace, if possible"
Treehugger Robot [Fri, 9 Feb 2018 19:24:03 +0000 (19:24 +0000)]
Merge "Watchdog: Print annotated stack trace, if possible"

6 years agoClean up usage of COWArrayList in a11y code
Eugene Susla [Thu, 8 Feb 2018 22:00:03 +0000 (14:00 -0800)]
Clean up usage of COWArrayList in a11y code

The single usage we had was already mostly guarded by lock -
replaced with a regular list to prevent confusion

Fixes: 71795155
Test: atest CtsAccessibilityServiceTestCases
Change-Id: I1c3235aadb0db4907cbe92a17cc58d2c8a8b5564

6 years agoMerge "Fixed bug with turnScreenOn window flag."
TreeHugger Robot [Fri, 9 Feb 2018 19:08:29 +0000 (19:08 +0000)]
Merge "Fixed bug with turnScreenOn window flag."

6 years agoMerge "Shore up dividing by zero protections."
TreeHugger Robot [Fri, 9 Feb 2018 18:54:31 +0000 (18:54 +0000)]
Merge "Shore up dividing by zero protections."

6 years agoMerge "Prevent AAPT from versioning <animated-selector> tags."
TreeHugger Robot [Fri, 9 Feb 2018 18:53:23 +0000 (18:53 +0000)]
Merge "Prevent AAPT from versioning <animated-selector> tags."

6 years agoMerge "Pass calling package for invocations of endCall API."
Tyler Gunn [Fri, 9 Feb 2018 18:49:08 +0000 (18:49 +0000)]
Merge "Pass calling package for invocations of endCall API."

6 years agoMerge "Restrict DisplayContent creation."
Bryce Lee [Fri, 9 Feb 2018 18:45:55 +0000 (18:45 +0000)]
Merge "Restrict DisplayContent creation."

6 years agoMerge "Don't propagate unrequested permissions"
TreeHugger Robot [Fri, 9 Feb 2018 18:44:43 +0000 (18:44 +0000)]
Merge "Don't propagate unrequested permissions"

6 years agoMerge "Interrupt blanking callback when diplay turns on"
Lucas Dupin [Fri, 9 Feb 2018 18:31:40 +0000 (18:31 +0000)]
Merge "Interrupt blanking callback when diplay turns on"

6 years agoMerge "Follow up to ambient brightness stats change"
TreeHugger Robot [Fri, 9 Feb 2018 18:20:41 +0000 (18:20 +0000)]
Merge "Follow up to ambient brightness stats change"

6 years agoMerge "Improve temporary logging around activity destruction."
TreeHugger Robot [Fri, 9 Feb 2018 18:05:05 +0000 (18:05 +0000)]
Merge "Improve temporary logging around activity destruction."

6 years agoMerge "Remove black frame when pulsing"
Lucas Dupin [Fri, 9 Feb 2018 17:50:37 +0000 (17:50 +0000)]
Merge "Remove black frame when pulsing"

6 years agoShore up dividing by zero protections.
Jeff Sharkey [Fri, 9 Feb 2018 17:06:59 +0000 (10:06 -0700)]
Shore up dividing by zero protections.

We're already trying to protect against zero elsewhere in this file,
but we've seen evidence of it still happening, so add last-ditch
protections.

Test: builds, boots
Bug: 73060623
Change-Id: I0549ed08f906521a8dbd9ff6162f80fa9b388434

6 years agouse writepixels on surface, the canvas version is deprecated
Mike Reed [Thu, 8 Feb 2018 21:28:53 +0000 (16:28 -0500)]
use writepixels on surface, the canvas version is deprecated

Test: make

Change-Id: I6af16bf4a8c9952d2e493cbd34b6db58d581a694

6 years agoFixed bug with turnScreenOn window flag.
chaviw [Wed, 7 Feb 2018 17:37:16 +0000 (09:37 -0800)]
Fixed bug with turnScreenOn window flag.

The test
ActivityManagerActivityVisibilityTests#testTurnScreenOnActivity_withRelayout
was failing due to issues with how the turnScreenOn flag was handled.
This change centralizes the logic about when to turn the screen on. The
check for whether the screen should be turned on will happen on each
relayout but is guarded by a flag set in resume. This way the screen can only
have the chance to turn on if a resume was just called.

Change-Id: I0a6e4a11de92fa41c8a49cbfd1b78bd8b38a1b4a
Fixes: 68091612
Test: WindowStateTests
Test: ActivityManagerActivityVisibilityTests

6 years agoSimplify method management for IAudioService
Mikhail Naganov [Wed, 31 Jan 2018 18:28:49 +0000 (10:28 -0800)]
Simplify method management for IAudioService

Move all the methods called from native to the beginning,
so adding new Java-only methods does not affect transaction IDs
of methods called from native.

Also, remove unused imports from IAudioService.aidl

Bug: 72256604
Test: Loopback test in Java, OpenSL ES, and AAudio modes
Change-Id: Icc89e3ed7a052c26eb0e72ba31e3a4a973bcfd35

6 years agoMerge "Add support for vibrator HAL 1.2 effects."
TreeHugger Robot [Fri, 9 Feb 2018 16:36:13 +0000 (16:36 +0000)]
Merge "Add support for vibrator HAL 1.2 effects."

6 years agoFollow up to ambient brightness stats change
Peeyush Agarwal [Thu, 8 Feb 2018 12:39:39 +0000 (12:39 +0000)]
Follow up to ambient brightness stats change

- Add docs to public methods of the API
- Use single variable for scheduling write from brightness tracker

Test: atest com.android.server.display.AmbientBrightnessStatsTrackerTest
&& atest android.hardware.display.AmbientBrightnessDayStatsTest
Bug: 69406079
Change-Id: I828e3bde4691240a2c0e0443e60b30665b65b8de

6 years agoMerge "Upload tombstone with the system_server_native_crash tag."
Anton Hansson [Fri, 9 Feb 2018 16:15:08 +0000 (16:15 +0000)]
Merge "Upload tombstone with the system_server_native_crash tag."

6 years agoRestrict DisplayContent creation.
Bryce Lee [Fri, 2 Feb 2018 23:09:21 +0000 (15:09 -0800)]
Restrict DisplayContent creation.

This changelist limits DisplayContent the display
container/controller creation. All other callpoints now can only
retrieve existing DisplayContents. This removes the chances of
arbitrary calls generating a DisplayContent without the related
ActivityDisplay on the ActivityManager side.

Since display creation is now driven on the ActivityManager side,
the ActivityManagerService must be initialized and associated with
the WindowManagerService before the WindowManagerService can be fully
initialized. This is reflected in changes to SystemServer.

Fixes: 72228411
Test: go/wm-smoke-auto
Change-Id: I8dddb5fc109be4363de5ba87faff9d9885009042

6 years agoImprove temporary logging around activity destruction.
Bryce Lee [Thu, 8 Feb 2018 22:37:06 +0000 (14:37 -0800)]
Improve temporary logging around activity destruction.

This changelist improves logging for capture details around
b/71506345. These modifications are intended to be reverted once
the root cause has been found.

Bug: 71506345
Test: manual
Change-Id: I1dd5eba710e81bf78632359d4ee4c047fefa5da6

6 years agoMerge "SkColorTypeShiftPerPixel is deprecated"
TreeHugger Robot [Fri, 9 Feb 2018 15:55:34 +0000 (15:55 +0000)]
Merge "SkColorTypeShiftPerPixel is deprecated"

6 years agoMerge "Handle non-primary user only apps in watchlist report"
Ricky Wai [Fri, 9 Feb 2018 15:01:57 +0000 (15:01 +0000)]
Merge "Handle non-primary user only apps in watchlist report"

6 years agoUpload tombstone with the system_server_native_crash tag.
Anton Hansson [Tue, 6 Feb 2018 10:51:18 +0000 (10:51 +0000)]
Upload tombstone with the system_server_native_crash tag.

This allows monitoring system server native crashes separately from
all the other native crashes.

Note that this now double-reports native crashes in system server,
once with SYSTEM_TOMBSTONE tag and once with the
system_server_native_crash tag. This can likely be cleaned up to
only report the latter, once it's been verified to work.

Test: "ls /data/system/dropbox" after triggering a native SS crash.
Bug: 63172851
Change-Id: Ib09275b53627c0219e2f74ea2ab102575f9b33c0

6 years agoPrevent AAPT from versioning <animated-selector> tags.
Nick Butcher [Tue, 9 Jan 2018 15:24:21 +0000 (15:24 +0000)]
Prevent AAPT from versioning <animated-selector> tags.

Bug: 69359529
Test: Manually tested with ag/3178054
Change-Id: I10ae4d96c2a31a0a7c363d7a9292ecdfd3bb526a

6 years agoHandle non-primary user only apps in watchlist report
Ricky Wai [Wed, 7 Feb 2018 17:31:04 +0000 (17:31 +0000)]
Handle non-primary user only apps in watchlist report

Bug: 72995507
Test: Install an app in work profile and able to generate watchlist
report
Test: runtest frameworks-services -c com.android.server.net.watchlist.WatchlistLoggingHandlerTests

Change-Id: I01e4e3986b9a5db7cb9929a5924a4bf7b13bbcd0

6 years agoFix ArcVideoService compile error
Risan [Fri, 9 Feb 2018 10:52:00 +0000 (19:52 +0900)]
Fix ArcVideoService compile error

This CL fixes ArcVideoService to include
components/arc/common/video.mojom.h instead of video.mojom.h. Direct
include to video.mojom.h is deprecated after ag/3559847.

Bug: 73146261
Test: Compiled.
Change-Id: I8a3275bcdbfd73646a8aa94c5ef4e44c7fd458db

6 years agoMerge "AssetManager2: Fix issue with native cast"
TreeHugger Robot [Fri, 9 Feb 2018 10:36:33 +0000 (10:36 +0000)]
Merge "AssetManager2: Fix issue with native cast"

6 years agoMerge "Add tests for PerformBackupTask"
TreeHugger Robot [Fri, 9 Feb 2018 09:56:33 +0000 (09:56 +0000)]
Merge "Add tests for PerformBackupTask"

6 years agoMerge "AssetManager2: Fix list function"
TreeHugger Robot [Fri, 9 Feb 2018 08:18:16 +0000 (08:18 +0000)]
Merge "AssetManager2: Fix list function"

6 years agoMerge "Atom: CallStateChanged"
TreeHugger Robot [Fri, 9 Feb 2018 07:32:21 +0000 (07:32 +0000)]
Merge "Atom: CallStateChanged"

6 years agoMerge "Fix issue #72116995: Add permission guarding Service#startForeground"
TreeHugger Robot [Fri, 9 Feb 2018 07:31:46 +0000 (07:31 +0000)]
Merge "Fix issue #72116995: Add permission guarding Service#startForeground"

6 years agoAssetManager2: Fix issue with native cast
Adam Lesinski [Fri, 9 Feb 2018 06:57:00 +0000 (22:57 -0800)]
AssetManager2: Fix issue with native cast

The NDK wasn't fully updated to be aware of the fact that
the implementation of AAssetManager changed.

Bug: 73120367
Test: manual - YouTube TV doesn't crash
Change-Id: I6d897ddf197bdcac8118d26e55f40ab9542f5013

6 years agoMerge "Send broadcast to pkg installers on config change"
TreeHugger Robot [Fri, 9 Feb 2018 07:22:03 +0000 (07:22 +0000)]
Merge "Send broadcast to pkg installers on config change"