OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "ImageReader: Set inverse diplay transform if needed" into pi-dev
TreeHugger Robot [Wed, 27 Jun 2018 19:26:42 +0000 (19:26 +0000)]
Merge "ImageReader: Set inverse diplay transform if needed" into pi-dev

6 years agoActivate dark theme when the UiMode is UI_MODE_NIGHT_YES.
Dan Sandler [Thu, 21 Jun 2018 17:57:28 +0000 (13:57 -0400)]
Activate dark theme when the UiMode is UI_MODE_NIGHT_YES.

This change also activates night mode when the device enters
battery saver (saving substantial power on OLED screens).

Bug: 80307398
Test: adb shell service call uimode 4 i32 1 # nightfall
      adb shell service call uimode 4 i32 2 # morningtide

Change-Id: I9c08a749d4cd99ab7231363b045949eb2e830dfa

6 years agoMerge "DO NOT MERGE Log notification interruptions to TRON" into pi-dev
TreeHugger Robot [Wed, 27 Jun 2018 01:09:48 +0000 (01:09 +0000)]
Merge "DO NOT MERGE Log notification interruptions to TRON" into pi-dev

6 years agoMerge "Make BT icon more prominent" into pi-dev
TreeHugger Robot [Tue, 26 Jun 2018 23:24:30 +0000 (23:24 +0000)]
Merge "Make BT icon more prominent" into pi-dev

6 years agoMerge "Make RttTextStream's read interruptible" into pi-dev
Hall Liu [Tue, 26 Jun 2018 22:00:17 +0000 (22:00 +0000)]
Merge "Make RttTextStream's read interruptible" into pi-dev

6 years agoMerge "Do not animate scrims when launching camera" into pi-dev
Lucas Dupin [Tue, 26 Jun 2018 21:48:16 +0000 (21:48 +0000)]
Merge "Do not animate scrims when launching camera" into pi-dev

6 years agoDO NOT MERGE Log notification interruptions to TRON
Julia Reynolds [Mon, 18 Jun 2018 13:29:19 +0000 (09:29 -0400)]
DO NOT MERGE Log notification interruptions to TRON

Test: manual
Bug: 110209821
Change-Id: Ic3521f36127aa0e928d0be5ce9819c78c2bc9bc5

6 years agoMerge "Hide system apps until installed (1/2)" into pi-dev
Andrew Sapperstein [Tue, 26 Jun 2018 20:03:38 +0000 (20:03 +0000)]
Merge "Hide system apps until installed (1/2)" into pi-dev

6 years agoDo not animate scrims when launching camera
Lucas Dupin [Tue, 12 Jun 2018 02:16:03 +0000 (19:16 -0700)]
Do not animate scrims when launching camera

There's already a black overlay with a camera icon, it's not necessary
to animate the scrims.

Change-Id: I52472372420eb8ba052a17cdde147d24dafadce0
Fixes: 109767309
Test: double tap power button from lock screen and aod

6 years agoMerge "Docs: fixed variables" into pi-dev
Laura Davis [Tue, 26 Jun 2018 16:42:43 +0000 (16:42 +0000)]
Merge "Docs: fixed variables" into pi-dev

6 years agoMerge "Defer stop for all activities becoming invisible" into pi-dev
Jorim Jaggi [Tue, 26 Jun 2018 11:34:03 +0000 (11:34 +0000)]
Merge "Defer stop for all activities becoming invisible" into pi-dev

6 years agoImageReader: Set inverse diplay transform if needed
Emilian Peev [Tue, 26 Jun 2018 09:13:39 +0000 (10:13 +0100)]
ImageReader: Set inverse diplay transform if needed

Image transform sometimes could be missing the inverse
display flag. Any buffers that pass through BQs will
have this bit reset and moved in a separate buffer item
field. To restore and pass the original transform forward
check whether the flag got reset and re-enable it
accordingly.

Bug: 110641448
Test: Manual using application,
Camera CTS

Change-Id: Ia849f62333be40038a02768563b2f93e2ccf61ce

6 years agoMake RttTextStream's read interruptible
Hall Liu [Tue, 26 Jun 2018 02:48:33 +0000 (19:48 -0700)]
Make RttTextStream's read interruptible

Wrap the FileInputStream in a java.nio.Channel so that sending a
Thread.interrupt() to the thread blocked on the read will actually do
something.

Change-Id: Icc11ba69167f448e2b33d9a1a13a1dfa5e5d0d58
Fixes: 110570772
Test: manual (follow repro steps in bug, but type really fast),treehugger

6 years agoHide system apps until installed (1/2)
Rhed Jao [Wed, 13 Jun 2018 03:16:16 +0000 (11:16 +0800)]
Hide system apps until installed (1/2)

Applying this mechanism for system carrier apps to make visibility
reasonable from the user's perspective. In other words, before
hidden system apps have been installed, they wouldn't be listed
via APIs in PackageManager which are used at all apps list and
search in Settings and so on.

Test: atest CarrierAppUtilsTest
Test: atest PackageManagerTest
Test: cts DeviceOwnerTest
Test: gts ManagedProfileProvisioningHostsideTest
Bug: 74068582
Change-Id: I1f23aba589b98351a1871a44a3058b67c416f351

6 years agoMerge "Don't apply filter in readback, when there is no scaling" into pi-dev
TreeHugger Robot [Mon, 25 Jun 2018 23:20:23 +0000 (23:20 +0000)]
Merge "Don't apply filter in readback, when there is no scaling" into pi-dev

6 years agoMerge "docs: fixed broken link" into pi-dev
Laura Davis [Mon, 25 Jun 2018 21:27:48 +0000 (21:27 +0000)]
Merge "docs: fixed broken link" into pi-dev

6 years agoDefer stop for all activities becoming invisible
Jorim Jaggi [Mon, 25 Jun 2018 14:14:50 +0000 (16:14 +0200)]
Defer stop for all activities becoming invisible

If we are deferring a stop until a window is becoming visible,
it's a good idea to also defer stopping all other activities that
are go into stopping state to avoid flickers.

Furthermore we need to fix an issue where activities weren't
cleared from mActivitiesWaitingForVisibleActivity which messed
up the newly introduced logic.

This fixes an issue with quickstep when swiping right and the
previous activity hasn't finished pausing yet when we start the
new activity. In the normal case, prev=Launcher and all is fine,
as we wait with stopping launcher until the animation is done. In
the bad case, prev=the previous activity that was on screen before
swiping, so Launcher doesn't get added to the waiting list, which
means that it will be stopped too early, aborting the animation
because Launcher is also driving it.

Test: ActivityManagerDisplayLockedKeyguardTests
Test: go/wm-smoke
Test: Swipe right from Chrome to any other app, observe no jump
Fixes: 80313326
Bug: 110032866
Change-Id: I39454fe218ac10ef73cc4ca23efc7c9fb3bc87ad

6 years agoMerge "docs: fixed typo in deprecation message" into pi-dev
Laura Davis [Mon, 25 Jun 2018 20:46:59 +0000 (20:46 +0000)]
Merge "docs: fixed typo in deprecation message" into pi-dev

6 years agoMerge "Quick scrub has gradient follow user drag" into pi-dev
TreeHugger Robot [Mon, 25 Jun 2018 20:39:46 +0000 (20:39 +0000)]
Merge "Quick scrub has gradient follow user drag" into pi-dev

6 years agoMerge "docs: fixed broken link" into pi-dev
Laura Davis [Mon, 25 Jun 2018 20:09:17 +0000 (20:09 +0000)]
Merge "docs: fixed broken link" into pi-dev

6 years agoDocs: fixed variables
Laura Davis [Mon, 25 Jun 2018 20:05:24 +0000 (13:05 -0700)]
Docs: fixed variables

Test: make ds-docs

Bug: 25134282
Change-Id: Ic91dd3820a409f0f28e23575090e3fd624a0fac0

6 years agoQuick scrub has gradient follow user drag
Matthew Ng [Tue, 12 Jun 2018 23:42:11 +0000 (16:42 -0700)]
Quick scrub has gradient follow user drag

Removed the track drawable and draws a gradient translated to the
position of the drag of the user as the track's background.

Test: quickscrub
Change-Id: Iee893e5f96f4954c77307c5ff9b762a04bd7de9a
Fixes: 109882517

6 years agoMake BT icon more prominent
Evan Laird [Mon, 25 Jun 2018 17:48:26 +0000 (13:48 -0400)]
Make BT icon more prominent

Bluetooth is now rated higher than work profile, cast, and vpn. Also
move volume to the other side of location per the spec.

Test: visual
Change-Id: I169ec5e6d09355e0237aad2f6ee586069d93fd36
Fixes: 110475634

6 years agoRestore separate challenge state on error
Pavel Grafov [Mon, 25 Jun 2018 11:13:38 +0000 (12:13 +0100)]
Restore separate challenge state on error

Otherwise if something goes wrong when tying the profile to the primary
user, challenge will remain in inconsistent state and the user won't
be able to unlock the profile.

Bug: 110262879
Test: manual, unified both compliant and uncompliant challenge.
Change-Id: I2bea3867541f43cbabd5cabbe8a0f61acc2602ca

6 years agoMerge "Conserve expansion after re-inflation" into pi-dev
TreeHugger Robot [Sat, 23 Jun 2018 08:05:06 +0000 (08:05 +0000)]
Merge "Conserve expansion after re-inflation" into pi-dev

6 years agoConserve expansion after re-inflation
Lucas Dupin [Thu, 21 Jun 2018 18:41:34 +0000 (11:41 -0700)]
Conserve expansion after re-inflation

We were updating most of the PhoneStatusBarView state during
re-inflation but not the expansion and its fraction.

Test: Pull down shade, run: adb shell service call overlay 4 s16 "com.android.systemui.theme.dark" i32 1 i32 0
Test: Switch to guest user, switch back
Test: Reboot, look at status bar
Change-Id: I41669fb32419ad02a11586ba248a68b47d450413
Merged-In: I41669fb32419ad02a11586ba248a68b47d450413
Fixes: 110530608
Fixes: 110147405
Fixes: 79122419

6 years agoMerge "Camera: Update surface sharing format restrictions" into pi-dev
TreeHugger Robot [Sat, 23 Jun 2018 00:11:04 +0000 (00:11 +0000)]
Merge "Camera: Update surface sharing format restrictions" into pi-dev

6 years agodocs: fixed typo in deprecation message
Laura Davis [Mon, 11 Jun 2018 17:33:17 +0000 (10:33 -0700)]
docs: fixed typo in deprecation message

Test: make ds-docs

Bug: 68303139
Change-Id: I7fc9f35bc118f8b661740a46f52d62beea1e67f1

6 years agoMerge "docs: Edited UNINSTALL_SHORTCUT permission desc." into pi-dev
Kevin Hufnagle [Fri, 22 Jun 2018 21:58:38 +0000 (21:58 +0000)]
Merge "docs: Edited UNINSTALL_SHORTCUT permission desc." into pi-dev

6 years agoDon't apply filter in readback, when there is no scaling
Stan Iliev [Fri, 22 Jun 2018 21:33:43 +0000 (17:33 -0400)]
Don't apply filter in readback, when there is no scaling

Fix check for scaling in SkiaOpenGLReadback: old code was not
taking into account that matrix rotation swaps width/height.

Test: Passed PixelCopyTest#testWindowProducerCopyToRGBA16F
Bug: 110097060
Change-Id: I0d26416fa72a026bc376417773d5a73548b1f1a5

6 years agoMerge "Allow quickscrub after deadzone consumes touch" into pi-dev
TreeHugger Robot [Fri, 22 Jun 2018 19:24:08 +0000 (19:24 +0000)]
Merge "Allow quickscrub after deadzone consumes touch" into pi-dev

6 years agoMerge "Skip updating stack config if it is detached from a display" into pi-dev
Andrii Kulian [Fri, 22 Jun 2018 18:14:25 +0000 (18:14 +0000)]
Merge "Skip updating stack config if it is detached from a display" into pi-dev

6 years agoMerge "SettingsBackupAgent: notify of apBand conversion" into pi-dev
TreeHugger Robot [Fri, 22 Jun 2018 17:52:26 +0000 (17:52 +0000)]
Merge "SettingsBackupAgent: notify of apBand conversion" into pi-dev

6 years agoMerge "Do not announce selected state for QS tiles." into pi-dev
TreeHugger Robot [Fri, 22 Jun 2018 17:12:54 +0000 (17:12 +0000)]
Merge "Do not announce selected state for QS tiles." into pi-dev

6 years agoMerge "Remove managed profile toast" into pi-dev
TreeHugger Robot [Fri, 22 Jun 2018 15:19:20 +0000 (15:19 +0000)]
Merge "Remove managed profile toast" into pi-dev

6 years agoAllow quickscrub after deadzone consumes touch
Matthew Ng [Thu, 14 Jun 2018 22:16:55 +0000 (15:16 -0700)]
Allow quickscrub after deadzone consumes touch

Moved deadzone detection to QuickScrubController so that quick scrub can
still occur. If anything is consumed by deadzone, no other touches will
occur however quickscrub can be detected and function with launcher. No
other events except for touch down will be sent to launcher.

Test: scrub right above the home button
Change-Id: I4b4e7a8eacf8fe38d8644116a526c175adaba790
Fixes: 80536498

6 years agoMerge "Add config to disallow the battery % option" into pi-dev
TreeHugger Robot [Thu, 21 Jun 2018 21:18:36 +0000 (21:18 +0000)]
Merge "Add config to disallow the battery % option" into pi-dev

6 years agoMerge "Catch unbinding errors" into oc-mr1-dev
Julia Reynolds [Thu, 21 Jun 2018 21:15:26 +0000 (14:15 -0700)]
Merge "Catch unbinding errors" into oc-mr1-dev
am: ebd047e92f

Change-Id: Ifd29c608bb23afb5ed630d9fc57d40f41b7d0921

6 years agoMerge "Catch unbinding errors" into oc-mr1-dev
TreeHugger Robot [Thu, 21 Jun 2018 21:00:27 +0000 (21:00 +0000)]
Merge "Catch unbinding errors" into oc-mr1-dev

6 years agoMerge "Only enable setAntiBurnInOffsetX() in AOD(Ambient) condition" into pi-dev
Selim Cinek [Thu, 21 Jun 2018 20:40:56 +0000 (20:40 +0000)]
Merge "Only enable setAntiBurnInOffsetX() in AOD(Ambient) condition" into pi-dev

6 years agoMerge "Always ignore summaries" into pi-dev
TreeHugger Robot [Thu, 21 Jun 2018 18:55:33 +0000 (18:55 +0000)]
Merge "Always ignore summaries" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Thu, 21 Jun 2018 18:35:27 +0000 (18:35 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Thu, 21 Jun 2018 18:33:40 +0000 (18:33 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Thu, 21 Jun 2018 18:11:30 +0000 (18:11 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Update docs and ensure PHONE_STATE is more predictable for unknown numbers...
Tyler Gunn [Thu, 21 Jun 2018 18:10:16 +0000 (18:10 +0000)]
Merge "Update docs and ensure PHONE_STATE is more predictable for unknown numbers." into pi-dev

6 years agoRemove managed profile toast
Julia Reynolds [Tue, 19 Jun 2018 19:12:42 +0000 (15:12 -0400)]
Remove managed profile toast

Change-Id: I9f324a94d7fab35b0f00a1bd9c675708dac6f85a
Fixes: 110418889
Test: atest SystemUITests

6 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 21 Jun 2018 16:42:26 +0000 (09:42 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ia75664c86821774661b830e2fc6ed8ef0392f58c

6 years agoMerge "Fix issue with manual touch dispatch" into pi-dev
TreeHugger Robot [Thu, 21 Jun 2018 16:10:35 +0000 (16:10 +0000)]
Merge "Fix issue with manual touch dispatch" into pi-dev

6 years agoAlways ignore summaries
Julia Reynolds [Tue, 19 Jun 2018 19:39:23 +0000 (15:39 -0400)]
Always ignore summaries

Test: runtest systemui-notification
Bug: 78643290
Change-Id: Ia036e528666af336897431dd11efeffc92accdc7
(cherry picked from commit 760fa7613ef7ca7aee25c76a147cf29114268af2)

6 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 21 Jun 2018 12:09:41 +0000 (05:09 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: If0cc65463dca8363427a9021601aee4401caccaa

6 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 21 Jun 2018 07:55:32 +0000 (00:55 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I5e7887dbf5d42f3ff85a303356dc74c78c55b863

6 years agoMerge "Stabilize hidden API lists" into pi-dev
TreeHugger Robot [Thu, 21 Jun 2018 06:07:22 +0000 (06:07 +0000)]
Merge "Stabilize hidden API lists" into pi-dev

6 years agoMerge "More light grey APIs." into pi-dev
TreeHugger Robot [Thu, 21 Jun 2018 05:21:01 +0000 (05:21 +0000)]
Merge "More light grey APIs." into pi-dev

6 years agoMerge "Fix race condition in MediaHTTPConnection" into pi-dev
Marco Nelissen [Wed, 20 Jun 2018 22:14:33 +0000 (22:14 +0000)]
Merge "Fix race condition in MediaHTTPConnection" into pi-dev

6 years agoMore light grey APIs.
Nicolas Geoffray [Wed, 13 Jun 2018 20:22:06 +0000 (21:22 +0100)]
More light grey APIs.

bug: 110157261
bug: 110065832
bug: 110179435
bug: 110174713
bug: 110191494
bug: 110282922
bug: 110289776
bug: 110314356
bug: 110340642
bug: 110382035
Bug: 110444248
Bug: 110447432
bug: 110378707

Test: m
Change-Id: I5d7c0f9d471eab22e23cc335f03cebecb642f871

6 years agoDon't throw uri exceptions for user chosen sounds
Julia Reynolds [Wed, 13 Jun 2018 14:45:21 +0000 (10:45 -0400)]
Don't throw uri exceptions for user chosen sounds

Bug: 109889733
Test: runtest systemui-notification
Change-Id: I5ed599deca83f97899affce44e3ed8fbcacae366
(cherry picked from commit 218871ee3ffffea964658be327ffd06e1e3eed61)

6 years agoUpdate docs and ensure PHONE_STATE is more predictable for unknown numbers.
Tyler Gunn [Tue, 19 Jun 2018 16:55:43 +0000 (09:55 -0700)]
Update docs and ensure PHONE_STATE is more predictable for unknown numbers.

In P the PHONE_STATE broadcast behavior changed due to new permission
requirements.  Updating the API docs for this broadcast to make it more
clear to developers how the broadcast will work given different permission
scenarios.

Also, made a minor change to how the "EXTRA_INCOMING_NUMBER" is populated
on the phone state broadcast.  Originally we opted to remove
EXTRA_INCOMING_NUMBER when the number is empty.  Developer feedback reveals
it is difficult to know for an unknown caller (where numer is empty)
whether the broadcast they're receiving is the one associated with the
broadcast for receivers with READ_CALL_LOG, or the one for receivers
without it.  This minor change eliminates the need to count broadcasts and
instead allows the developer to just focus on whether the extra is present
or not.

Test: make docs and verify the javadoc appears as expected.
Test: Used test app to confirm functionality.
Bug: 110190165
Change-Id: I35967d53274b99d66b63f4ff5acb60a689745f9d

6 years agoFix race condition in MediaHTTPConnection
Marco Nelissen [Tue, 19 Jun 2018 19:38:23 +0000 (12:38 -0700)]
Fix race condition in MediaHTTPConnection

getSize() and getMIMEType() rely on seekTo() having completed.
If seekTo() was called on a different thread, for example because
NuCachedSource2 was doing reads on a background thread, getSize()
could return -1 if it was called after connection was established,
but before the response had been parsed.

Bug: 110230427
Test: manual
Change-Id: I469b47e025f1c7a7ef3123d3347668f0541e6f2d

6 years agoFix issue with manual touch dispatch
Jorim Jaggi [Tue, 19 Jun 2018 15:27:08 +0000 (17:27 +0200)]
Fix issue with manual touch dispatch

Need to dispatch it to the view that guards against the disabled
flags.

Change-Id: I0082ef24ed6aa06631f475cc33a0cf3f5f138911
Merged-In: I0082ef24ed6aa06631f475cc33a0cf3f5f138911
Fixes: 110228458
Test: Expand above notch from SUW

6 years agoMerge "Clean up RemoteCallbackList when we're done with it." into pi-dev
TreeHugger Robot [Wed, 20 Jun 2018 07:47:35 +0000 (07:47 +0000)]
Merge "Clean up RemoteCallbackList when we're done with it." into pi-dev

6 years agoMerge "Prefer default Internet network for upstream tethering." into pi-dev
TreeHugger Robot [Wed, 20 Jun 2018 04:28:50 +0000 (04:28 +0000)]
Merge "Prefer default Internet network for upstream tethering." into pi-dev

6 years agoOnly enable setAntiBurnInOffsetX() in AOD(Ambient) condition
Bill Lin [Wed, 13 Jun 2018 10:07:15 +0000 (18:07 +0800)]
Only enable setAntiBurnInOffsetX() in AOD(Ambient) condition

NotificationPanelView detect the ACTION_DOWN X-position for expanding Panel
and dispatch x-offset to QSFrame and StackScroller
However, StackScroller reset the translateX via updateAntiBurnInTranslation()
Base on previous patches to enhance setAntiBurnInOffsetX policy
     1. ag/3536525 (Fixes: 72527703)
     2. ag/3846247 (Fixes: 77541088)

Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayoutTest.java
Change-Id: I52c86e865d97282e40b6f2847a2ff0190e4d80e9
Fix: 110102296

6 years agoMerge "Revert isResolvingImsBinding ITelephony interface" into pi-dev
Brad Ebinger [Tue, 19 Jun 2018 22:36:52 +0000 (22:36 +0000)]
Merge "Revert isResolvingImsBinding ITelephony interface" into pi-dev

6 years agoMerge "Enable REQUEST_LOCATION from GNSS HAL" into pi-dev
Yu-Han Yang [Tue, 19 Jun 2018 21:08:48 +0000 (21:08 +0000)]
Merge "Enable REQUEST_LOCATION from GNSS HAL" into pi-dev

6 years agoMerge "Camera: codegen doc update" into pi-dev
Shuzhen Wang [Tue, 19 Jun 2018 20:19:38 +0000 (20:19 +0000)]
Merge "Camera: codegen doc update" into pi-dev

6 years agodocs: Edited UNINSTALL_SHORTCUT permission desc.
Kevin Hufnagle [Fri, 2 Feb 2018 19:07:15 +0000 (11:07 -0800)]
docs: Edited UNINSTALL_SHORTCUT permission desc.

Added a callout and a message that more strongly discourages use of
the UNINSTALL_SHORTCUT permission.

Test: make ds-docs -j16

Bug: 72864896
Change-Id: Iacb7a1718c4688e9061bdfd3b50b7afc8f170abb

6 years agoRevert isResolvingImsBinding ITelephony interface
Brad Ebinger [Thu, 14 Jun 2018 00:11:50 +0000 (17:11 -0700)]
Revert isResolvingImsBinding ITelephony interface

Reverting the only user of this interface.

Bug: 109762920
Test: GTS/Unit tests for ImsService
Change-Id: Id2e1ac2e4fbbcb7f019e79568f21ee56c94b6c1f
Merged-In: Id2e1ac2e4fbbcb7f019e79568f21ee56c94b6c1f

6 years agoCamera: Update surface sharing format restrictions
Emilian Peev [Tue, 19 Jun 2018 12:43:18 +0000 (13:43 +0100)]
Camera: Update surface sharing format restrictions

Surface sharing supports all formats except jpeg and
RAW private.

Bug: 110412079
Test: documentation builds without errors.
Change-Id: I72c5d744fed1b62eedd7a83522021ebad17e49b7

6 years agodocs: fixed broken link
Laura Davis [Mon, 18 Jun 2018 23:09:32 +0000 (16:09 -0700)]
docs: fixed broken link

Test: make ds-docs

Bug: 76021493
Change-Id: Ide61b82925270896e373083fdc1d5c27c9bdc819

6 years agoSettingsBackupAgent: notify of apBand conversion
Rebecca Silberstein [Sat, 2 Jun 2018 00:31:40 +0000 (17:31 -0700)]
SettingsBackupAgent: notify of apBand conversion

Added support to notify user of a change to their softap configuration
preferences after being restored via SettingsBackupAgent.

Bug: 80251951
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Test: manually confirmed configs are converted for different device
Change-Id: I4cec15549d694cdb1a7b09f1426d027eec021122

6 years agoPrefer default Internet network for upstream tethering.
Erik Kline [Thu, 14 Jun 2018 08:36:40 +0000 (17:36 +0900)]
Prefer default Internet network for upstream tethering.

Rather than use the crufty config.xml list of upstream transport types,
use ConnectivityService's notion of the default network for the upstream.
In cases where a DUN network is required and the default network is
currently a mobile network, look for a DUN network (code in Tethering
is currently responsible for requesting one).

Test: as follows
    - built, flashed, booted
    - runtest frameworks-net
    - tethered via mobile, joined captive portal network, maintained
      laptop access via mobile until captive passed (then used wifi)
    - disabled client mode wifi, disabled mobile data, plugged in
      ethernet adapter, observed connectivity via ethernet
Bug: 32163131
Bug: 62648872
Bug: 63282480
Bug: 109786760
Bug: 110118584
Bug: 110260419
Change-Id: I925b75994e31df8046f3ef9916a2457b4210485e

6 years agoCamera: codegen doc update
Yin-Chia Yeh [Fri, 15 Jun 2018 22:37:08 +0000 (15:37 -0700)]
Camera: codegen doc update

Test: N/A. Doc update
Bug: 109666939
Change-Id: I2bd176a7f5ada755c8a79201d142a98131e2e82c

6 years agodocs: fixed broken link
Laura Davis [Mon, 18 Jun 2018 21:49:23 +0000 (14:49 -0700)]
docs: fixed broken link

Test: make ds-docs

Bug: 110243990
Change-Id: Ia6f487ce88d59def5d6974c0d63d67c29ec5cf34

6 years agoMerge "Fix NotificaitonPanelView x-axis shift with IME" into pi-dev
TreeHugger Robot [Mon, 18 Jun 2018 18:42:47 +0000 (18:42 +0000)]
Merge "Fix NotificaitonPanelView x-axis shift with IME" into pi-dev

6 years agoMerge "Fade to black without showing system wallpaper" into pi-dev
Lucas Dupin [Mon, 18 Jun 2018 18:08:41 +0000 (18:08 +0000)]
Merge "Fade to black without showing system wallpaper" into pi-dev

6 years agoFix NotificaitonPanelView x-axis shift with IME
felkachang [Mon, 11 Jun 2018 07:56:15 +0000 (15:56 +0800)]
Fix NotificaitonPanelView x-axis shift with IME

IME will trigger the fitSystemWindow. And, there is a difference of
the parameter insets between IME and no IME. The insets.right and
insets.left report 0 without IME but positive number with IME
because IME is a type of system window and trigger fitSystemWindow
and then take the cutout as part of system window.

StatusBarWindowView handle the following condition
cutout > 0 && cutout == systemWindowInset and make its children not
layout on the safe inset both of cut out and system window. In order
to handle that cut out become system window, to take the maximum of
cut out and system window to make sure that the safe inset is
decided in StatusBarWindowView and its view decent only care about
the corner cut out.

Because StatusBarWindowView make both of PhoneStatusBarView's parent
and NotificationPanelView to have the margin for both of cutout and
system window, the counting of the padding and panel translation of
the HeadsUpStatusBarView need to do the relative changes.

Change-Id: Iafdc6a85e0e7d360b1bfc1e820f6e0779c32753f
Fix: 79957419
Fix: 109945733
Fix: 109865908
Test: atest SystemUITests

6 years agoMerge "Fixed an issue where the contentHeight was wrong" into pi-dev
Selim Cinek [Mon, 18 Jun 2018 17:32:20 +0000 (17:32 +0000)]
Merge "Fixed an issue where the contentHeight was wrong" into pi-dev

6 years agoMerge "Pulse animation synchronization" into pi-dev
TreeHugger Robot [Mon, 18 Jun 2018 16:57:24 +0000 (16:57 +0000)]
Merge "Pulse animation synchronization" into pi-dev

6 years agoFade to black without showing system wallpaper
Lucas Dupin [Mon, 11 Jun 2018 23:18:15 +0000 (16:18 -0700)]
Fade to black without showing system wallpaper

When on the lock screen, and going to AOD animated, user would
temporarily see the system wallpaper. That's not what we want,
we want to fade from semi-transparent black to black, on top
of the backdrop - lock screen wallpaper or media art.

Test: press power on the lock screen when playing media
Test: press power on the lock screen after dismissing media
Test: unlock from AOD
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Fixes: 80575770
Change-Id: I6796e844add889ff86be0cd2052db7c5d5073039

6 years agoMerge "DO NOT MERGE Fix crash in case of no overlays" into pi-dev
Jorim Jaggi [Mon, 18 Jun 2018 15:52:09 +0000 (15:52 +0000)]
Merge "DO NOT MERGE Fix crash in case of no overlays" into pi-dev

6 years agoMerge "Prevent showing windows while animating to avoid color mode switch" into pi-dev
Jorim Jaggi [Mon, 18 Jun 2018 15:25:03 +0000 (15:25 +0000)]
Merge "Prevent showing windows while animating to avoid color mode switch" into pi-dev

6 years agoStabilize hidden API lists
David Brazdil [Fri, 15 Jun 2018 13:05:42 +0000 (14:05 +0100)]
Stabilize hidden API lists

Hidden API lists are auto-generated using a combination of Doclava
/Makefile rules and manually curated lists. As OEMs make their own
changes to the framework, they might arrive at slightly different
lists. This is not desirable as the entire ecosystem should enforce
the same rules. This patch adds the files generated by Doclava to
the code base, which will stabilize the lists for everyone.

The problem is exacerbated by the fact that the Doclava-generated
private-dex.txt contains only classes explored by Doclava. This can
change rather unexpectedly as OEMs make changes and start/stop using
internal classes otherwise only used in unexplored code. If the file
is extended, they might start blacklisting new APIs. If the file
shrinks, they might start whitelisting APIs they should restrict
access to and have trouble passing CTS.

(Avoid merging out of pi trees)

Test: m ; check that produced lists have not changed
Bug: 109824927
Merged-In: I0e9653d9cd7e4b748870bacb6fbcecae535ebb2a
Change-Id: I1463a06d6510e7051a64d5d516f4c589638ca11c

6 years agoPrevent showing windows while animating to avoid color mode switch
Jorim Jaggi [Fri, 8 Jun 2018 13:25:35 +0000 (15:25 +0200)]
Prevent showing windows while animating to avoid color mode switch

If we switch the color mode during a transition, it's pretty much
guaranteed that SF is going to jank. To work around that, we
disallow showing the real content while an activity with a
non-standard-color mode is animating.

Test: Reopen photos, observe no jank
Bug: 79878256
Change-Id: Id27db483844d9424ccfb9afdebd31325eae0cdd8

6 years agoDO NOT MERGE Fix crash in case of no overlays
Jorim Jaggi [Mon, 18 Jun 2018 12:24:11 +0000 (14:24 +0200)]
DO NOT MERGE Fix crash in case of no overlays

Fixes: 110330180
Test: Rotate a device without overlays/cutout
Change-Id: Ib0701e26893489fcee0de6aaec26901aef0b8348

6 years agoMerge "WiFi: Add configs for SAR support of body sensors" into pi-dev
Ahmed ElArabawy [Mon, 18 Jun 2018 12:26:40 +0000 (12:26 +0000)]
Merge "WiFi: Add configs for SAR support of body sensors" into pi-dev

6 years agoMerge changes from topic "am-aabaca13-84ab-4de5-bfa1-2add13867c06" into oc-dev am...
Bill Yi [Mon, 18 Jun 2018 07:23:36 +0000 (00:23 -0700)]
Merge changes from topic "am-aabaca13-84ab-4de5-bfa1-2add13867c06" into oc-dev am: 3c047ea7fa am: 3cca4e7b06
am: d4a1791bd7

Change-Id: I165a9d006345b6624877fc3b453ceb2b0baa83fb

6 years ago[automerger skipped] Import translations. DO NOT MERGE skipped: 422582d9c4 skipped...
Bill Yi [Mon, 18 Jun 2018 07:15:09 +0000 (00:15 -0700)]
[automerger skipped] Import translations. DO NOT MERGE skipped: 422582d9c4 skipped: b06ba83b23 am: 437da4c13d  -s ours am: f57c14b641  -s ours
am: bc1dc5c368  -s ours

Change-Id: Ied727ed9887bc299b944611f1caed5896d8e81ce

6 years agoMerge changes from topic "am-aabaca13-84ab-4de5-bfa1-2add13867c06" into oc-dev am...
Bill Yi [Mon, 18 Jun 2018 07:09:08 +0000 (00:09 -0700)]
Merge changes from topic "am-aabaca13-84ab-4de5-bfa1-2add13867c06" into oc-dev am: 3c047ea7fa
am: 3cca4e7b06

Change-Id: Ifaa547b16411e79759647dd9cc53ea76526f5e5d

6 years ago[automerger skipped] Import translations. DO NOT MERGE skipped: 422582d9c4 skipped...
Bill Yi [Mon, 18 Jun 2018 07:02:54 +0000 (00:02 -0700)]
[automerger skipped] Import translations. DO NOT MERGE skipped: 422582d9c4 skipped: b06ba83b23 am: 437da4c13d  -s ours
am: f57c14b641  -s ours

Change-Id: Id5433baa969e08bd0253cb921bdaa541a1eaad3a

6 years agoMerge changes from topic "am-aabaca13-84ab-4de5-bfa1-2add13867c06" into oc-dev
Bill Yi [Mon, 18 Jun 2018 06:55:44 +0000 (23:55 -0700)]
Merge changes from topic "am-aabaca13-84ab-4de5-bfa1-2add13867c06" into oc-dev
am: 3c047ea7fa

Change-Id: Ie97567da2988d921748f9b4ca86f658a5222f43b

6 years ago[automerger skipped] Import translations. DO NOT MERGE skipped: 422582d9c4 skipped...
Bill Yi [Mon, 18 Jun 2018 06:53:27 +0000 (23:53 -0700)]
[automerger skipped] Import translations. DO NOT MERGE skipped: 422582d9c4 skipped: b06ba83b23
am: 437da4c13d  -s ours

Change-Id: I8227403ab7fa849fcc096d3a0acfa583843abf3b

6 years ago[automerger skipped] Import translations. DO NOT MERGE skipped: cbc81e618d skipped...
Bill Yi [Mon, 18 Jun 2018 06:33:25 +0000 (23:33 -0700)]
[automerger skipped] Import translations. DO NOT MERGE skipped: cbc81e618d skipped: 693ad9800b am: cb1a10f5b6  -s ours am: d996012ef5  -s ours
am: 97ee183747  -s ours

Change-Id: I606378e5028548c5189a9fe554a868512112578c

6 years agoMerge changes from topic "am-aabaca13-84ab-4de5-bfa1-2add13867c06" into oc-dev
TreeHugger Robot [Mon, 18 Jun 2018 06:27:04 +0000 (06:27 +0000)]
Merge changes from topic "am-aabaca13-84ab-4de5-bfa1-2add13867c06" into oc-dev

* changes:
  [automerger skipped] Import translations. DO NOT MERGE skipped: 422582d9c4 skipped: b06ba83b23
  [automerger skipped] Import translations. DO NOT MERGE skipped: 422582d9c4
  Import translations. DO NOT MERGE

6 years ago[automerger skipped] Import translations. DO NOT MERGE skipped: cbc81e618d skipped...
Bill Yi [Mon, 18 Jun 2018 06:26:21 +0000 (23:26 -0700)]
[automerger skipped] Import translations. DO NOT MERGE skipped: cbc81e618d skipped: 693ad9800b am: cb1a10f5b6  -s ours
am: d996012ef5  -s ours

Change-Id: Idcb8df6ed5993f00170408e685080aa525f291e1

6 years ago[automerger skipped] Import translations. DO NOT MERGE skipped: cbc81e618d skipped...
Bill Yi [Mon, 18 Jun 2018 06:18:56 +0000 (23:18 -0700)]
[automerger skipped] Import translations. DO NOT MERGE skipped: cbc81e618d skipped: 693ad9800b
am: cb1a10f5b6  -s ours

Change-Id: Ib5adcfbe4afabfee3e391ec528272f210b408a10

6 years ago[automerger skipped] Import translations. DO NOT MERGE skipped: 422582d9c4 skipped...
Android Build Merger (Role) [Sun, 17 Jun 2018 12:14:12 +0000 (12:14 +0000)]
[automerger skipped] Import translations. DO NOT MERGE skipped: 422582d9c4 skipped: b06ba83b23

Change-Id: Iae0ad51f828f91b8211e0671900f2ffa1265c655

6 years ago[automerger skipped] Import translations. DO NOT MERGE skipped: 422582d9c4
Android Build Merger (Role) [Sun, 17 Jun 2018 12:14:05 +0000 (12:14 +0000)]
[automerger skipped] Import translations. DO NOT MERGE skipped: 422582d9c4

Change-Id: I3f93da28223af89a03736689e7f35a723b864ff5

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 17 Jun 2018 12:13:32 +0000 (05:13 -0700)]
Import translations. DO NOT MERGE

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

6 years ago[automerger skipped] Import translations. DO NOT MERGE skipped: cbc81e618d skipped...
Android Build Merger (Role) [Sun, 17 Jun 2018 10:03:39 +0000 (10:03 +0000)]
[automerger skipped] Import translations. DO NOT MERGE skipped: cbc81e618d skipped: 693ad9800b

Change-Id: I387f439df9441d64a658344837e4a2bd0f88a128

6 years ago[automerger skipped] Import translations. DO NOT MERGE skipped: cbc81e618d
Android Build Merger (Role) [Sun, 17 Jun 2018 10:03:31 +0000 (10:03 +0000)]
[automerger skipped] Import translations. DO NOT MERGE skipped: cbc81e618d

Change-Id: I6a3ddad855bdc4ae74eab3e6e2cd42290176aab4