OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Don't animate dim layer exit when recents animation finishes." into pi-dev
Chavi Weingarten [Tue, 27 Mar 2018 20:56:17 +0000 (20:56 +0000)]
Merge "Don't animate dim layer exit when recents animation finishes." into pi-dev

6 years agoMerge "Track USB data link in batterystats" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 20:52:57 +0000 (20:52 +0000)]
Merge "Track USB data link in batterystats" into pi-dev

6 years agoMerge "Add UsbDeviceAdded and update PhysicalDropDetected" into pi-dev
Andrew Chant [Tue, 27 Mar 2018 20:44:53 +0000 (20:44 +0000)]
Merge "Add UsbDeviceAdded and update PhysicalDropDetected" into pi-dev

6 years agoMerge changes Iba4e52c2,I81160755 into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 20:28:31 +0000 (20:28 +0000)]
Merge changes Iba4e52c2,I81160755 into pi-dev

* changes:
  Public volumes only browsable by mounting user.
  Public volumes are only visible to mounted user.

6 years agoMerge "Remove feature flag for battery settings" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 20:23:23 +0000 (20:23 +0000)]
Merge "Remove feature flag for battery settings" into pi-dev

6 years agoMerge "Avoid binder call while dragging" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 20:10:28 +0000 (20:10 +0000)]
Merge "Avoid binder call while dragging" into pi-dev

6 years agoMerge "Recover dataset picker when view fail to autofill." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 19:48:44 +0000 (19:48 +0000)]
Merge "Recover dataset picker when view fail to autofill." into pi-dev

6 years agoMerge "Camera2: Add distortion correction support" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 19:26:44 +0000 (19:26 +0000)]
Merge "Camera2: Add distortion correction support" into pi-dev

6 years agoMerge "Show dynamic subtext for RestrictedSwitchPreference." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 19:23:50 +0000 (19:23 +0000)]
Merge "Show dynamic subtext for RestrictedSwitchPreference." into pi-dev

6 years agoMerge "[Notif] Add Blocking helper to swipe" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 19:19:40 +0000 (19:19 +0000)]
Merge "[Notif] Add Blocking helper to swipe" into pi-dev

6 years agoTrack USB data link in batterystats
Mike Ma [Sun, 25 Mar 2018 09:32:35 +0000 (02:32 -0700)]
Track USB data link in batterystats

Record USB data link state in addition to plug & charging state, since
modern USB controller can keep USB data link connected with minimum
current. Device is not acutally charging at those times.
Test: manual
Fixes: 76209292

Change-Id: I0710d547399a631d594488a524682ccc32a25ce6

6 years agoMerge "Don't let callers OOM the system process." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 19:05:24 +0000 (19:05 +0000)]
Merge "Don't let callers OOM the system process." into pi-dev

6 years agoMerge "Docs: add more detail to SurfaceTexture#getTimestamp" into pi-dev
Jesse Hall [Tue, 27 Mar 2018 18:54:28 +0000 (18:54 +0000)]
Merge "Docs: add more detail to SurfaceTexture#getTimestamp" into pi-dev

6 years agoMerge "[QS] Update landscape UI" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 18:52:36 +0000 (18:52 +0000)]
Merge "[QS] Update landscape UI" into pi-dev

6 years agoMerge "Tweak FingerprintDialog" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 18:43:17 +0000 (18:43 +0000)]
Merge "Tweak FingerprintDialog" into pi-dev

6 years agoMerge "Adjust the volumeDialog layout" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 18:40:39 +0000 (18:40 +0000)]
Merge "Adjust the volumeDialog layout" into pi-dev

6 years agoAvoid binder call while dragging
Lucas Dupin [Tue, 27 Mar 2018 18:35:33 +0000 (11:35 -0700)]
Avoid binder call while dragging

Test: change auth method, swipe up
Test: brakpoint at binder call
Change-Id: I2a5454e1f80dae094866a5b3f32d02bd528a0696
Fixes: 76456138

6 years agoMerge "Support sliced condition change in GaugeMetric" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 18:27:27 +0000 (18:27 +0000)]
Merge "Support sliced condition change in GaugeMetric" into pi-dev

6 years agoMerge "WebView: clarify shouldInterceptRequest docs" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 18:23:02 +0000 (18:23 +0000)]
Merge "WebView: clarify shouldInterceptRequest docs" into pi-dev

6 years agoAdd UsbDeviceAdded and update PhysicalDropDetected
Andrew Chant [Fri, 23 Mar 2018 04:07:33 +0000 (21:07 -0700)]
Add UsbDeviceAdded and update PhysicalDropDetected

Add UsbDeviceAdded to log VID, PID, and interface
types of USB devices added to the system.

Add a fall duration to physical drop detected.

Bug: 74260509
Bug: 74261750

Test: Built and booted Walleye

Change-Id: I2b38697ba52869bc448fac2cc4b8bdb3fa75fa64

6 years agoMerge "Refactoring SecureSettingsProto to avoid method limit." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 18:09:37 +0000 (18:09 +0000)]
Merge "Refactoring SecureSettingsProto to avoid method limit." into pi-dev

6 years agoDon't animate dim layer exit when recents animation finishes.
chaviw [Mon, 26 Mar 2018 21:06:17 +0000 (14:06 -0700)]
Don't animate dim layer exit when recents animation finishes.

Recents animation handles animating the entire Task, which includes the
dim layer. After the recents animation is completed, there's no need for
the dim layer to start the exit animation. The recents animation takes
care of fading out the dim layer. Instead, just set the dimmer
mAnimateExit to false so the next call to updateDims will remove the dim
layer instead of starting the exit animation.

Test: Enter quick step with assistant open. Dim no longer flickers
at the end of the quick step animation.
Test: DimmerTests#testRemoveDimImmediately
Fixes: 74606159

Change-Id: Iceb4edde5edffdbba57dca35f258d9b3d7bf74f4

6 years agoShow dynamic subtext for RestrictedSwitchPreference.
yuemingw [Mon, 12 Mar 2018 17:04:04 +0000 (17:04 +0000)]
Show dynamic subtext for RestrictedSwitchPreference.

Show dynamic subtext for RestrictedSwitchPreference when corresponding
restriction is on according to the current settings status controlled
by this RestrictedSwitchPreference. I.e., show "enabled by admin"
when corresponding setting is currently turned on by admin, or
"disabled by admin". In the past, this string is hard coded in xml and
the subtext of RestrictedSwitchPreference always shows one of
"enabled by admin" and "disabled by admin" regardless of the current
status of the setting.

Bug: 73811933
Test: manually by TestDPC
Change-Id: I2bbeee14e650b288d71f6aa59fc63dd78e18d49e

6 years agoMerge "Remove deprecated android.graphics.Canvas APIs" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 18:00:29 +0000 (18:00 +0000)]
Merge "Remove deprecated android.graphics.Canvas APIs" into pi-dev

6 years agoMerge "Guard against null server" into pi-dev
Jerry Zhang [Tue, 27 Mar 2018 17:54:21 +0000 (17:54 +0000)]
Merge "Guard against null server" into pi-dev

6 years agoRecover dataset picker when view fail to autofill.
Felipe Leme [Mon, 26 Mar 2018 23:18:45 +0000 (16:18 -0700)]
Recover dataset picker when view fail to autofill.

When a dataset is selected, the framework tries to autofill all views belonging
to it. But if one (or more view) failed to autofill, we should let the user
recover by tapping the view again.

This scenario typically happens when views are recycled.

Test: atest MutableAutofillIdTest#testViewGoneDuringAutofillCanStillBeFilled
Test: atest CtsAutoFillServiceTestCases # manually retrying flaky failures

Fixes: 76149637

Change-Id: I7a6352c68b4a7d5e4cb80a7346c66efd831f21c8

6 years agoMerge "Only resolve users on content:// Uris." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 17:43:27 +0000 (17:43 +0000)]
Merge "Only resolve users on content:// Uris." into pi-dev

6 years agoMerge "Add exception catching for BlockedNumberContract methods used by Telecom....
Tyler Gunn [Tue, 27 Mar 2018 17:39:26 +0000 (17:39 +0000)]
Merge "Add exception catching for BlockedNumberContract methods used by Telecom." into pi-dev

6 years agoPublic volumes only browsable by mounting user.
Jeff Sharkey [Tue, 27 Mar 2018 17:35:32 +0000 (11:35 -0600)]
Public volumes only browsable by mounting user.

We can't browse public volumes mounted for a different user, so don't
return an Intent claiming that we can, since it'll just fail.

Test: manual
Bug: 74056525
Change-Id: Iba4e52c2672258b981d2912875e55949bb35e310

6 years agodocs: fixed typo
Joshua Baxter [Tue, 27 Mar 2018 17:34:53 +0000 (17:34 +0000)]
docs: fixed typo
am: 3639e2f929

Change-Id: I6f7381045bb25fdcc9f86e3e2dd0d7b8c4eda853

6 years agoPublic volumes are only visible to mounted user.
Jeff Sharkey [Tue, 27 Mar 2018 17:30:53 +0000 (11:30 -0600)]
Public volumes are only visible to mounted user.

New lower-level security fixes are blocking access, so make these
upper-level APIs reflect those properties.

Test: manual
Bug: 68857050
Change-Id: I81160755180f4f419d8577ea1f18a6ece10c560c

6 years agoMerge "Do not create snapshot on first init" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 17:28:32 +0000 (17:28 +0000)]
Merge "Do not create snapshot on first init" into pi-dev

6 years agoMerge "Use transaction for local activity relaunch" into pi-dev
Andrii Kulian [Tue, 27 Mar 2018 17:24:42 +0000 (17:24 +0000)]
Merge "Use transaction for local activity relaunch" into pi-dev

6 years agoMerge "[Magnifier-35] Do not show when text is large" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 17:20:12 +0000 (17:20 +0000)]
Merge "[Magnifier-35] Do not show when text is large" into pi-dev

6 years ago[Notif] Add Blocking helper to swipe
Rohan Shah [Thu, 15 Mar 2018 21:40:02 +0000 (14:40 -0700)]
[Notif] Add Blocking helper to swipe

Implemented blocking helper UI as part of guts - the
ExpandableNotificationRow that's swiped away is effectively detached
from the notification logic but kept in as a view in the layout (it'll
still show up when looping through the normal view hierarchy). We
purposefully open up NotificationInfo with the intent of showing it as
the blocking helper.

It's animated away/closed when the user interacts with any other content
or swipes away, as with guts (Can be changed in the future if we want it
to stick around for longer).

KIs, that will be tracked in bugs once CL is in:
- Swiping a notification if it's partially hidden by the shelf does not
bring it up into focus
- If only one notification is showing, the shade auto-closes as if it
didn't have any notifications (which it technically doesn't)
- Animation on multiple blocking helper shows cuts too early and doesn't
allow the notification to transition out
- Long press on notification dismisses (it should probably ignore it)
- Metrics are still missing
- Accessibility needs a runthrough

Bug: 63095540,73783854
Test: Visually & Ran all tests
Change-Id: Iaa5e3d5537bbb72c946fdd7ee35b155e22ca2b05

6 years agoMerge "Priority only dnd doesn't change ringer" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 17:14:17 +0000 (17:14 +0000)]
Merge "Priority only dnd doesn't change ringer" into pi-dev

6 years agoDon't let callers OOM the system process.
Jeff Sharkey [Tue, 27 Mar 2018 17:09:16 +0000 (11:09 -0600)]
Don't let callers OOM the system process.

Constrain our default history size to 180 days; if we end up needing
more, we'll dynamically grow the history object.

Test: manual
Bug: 70916680
Change-Id: Id885f9800ad8f45fb0c1a89dab5a4b10ffd9e2f2

6 years agoDocs: add more detail to SurfaceTexture#getTimestamp
Jesse Hall [Fri, 23 Mar 2018 16:43:42 +0000 (09:43 -0700)]
Docs: add more detail to SurfaceTexture#getTimestamp

Copies language from <android/surface_texture.h> that connects
EGL/Vulkan presentation timestamps to SurfaceTexture#getTimestamp.

In the process, reorganized the existing language to talk about
general properties of the timestamp, and then talk about behavior of
specific producers instead of mixing them together.

Bug: 72755997
Test: make docs
Change-Id: I88253f9e23df7d7c4fe3c1c51ff2ac494da1913c
(cherry picked from commit 63d2a0e00005e9b5bb6e62d752a23ef2e43b03d4)

6 years agoMerge "[Notif] Disable long click listener after dismiss" into pi-dev
Rohan Shah [Tue, 27 Mar 2018 17:06:51 +0000 (17:06 +0000)]
Merge "[Notif] Disable long click listener after dismiss" into pi-dev

6 years agoMerge "Downgrade OOB warning of priv app to warning" into pi-dev
Victor Hsieh [Tue, 27 Mar 2018 17:04:01 +0000 (17:04 +0000)]
Merge "Downgrade OOB warning of priv app to warning" into pi-dev

6 years agoMerge "Add serialization methods to hidden API light greylist" into pi-dev
David Brazdil [Tue, 27 Mar 2018 16:55:18 +0000 (16:55 +0000)]
Merge "Add serialization methods to hidden API light greylist" into pi-dev

6 years agoAdd serialization methods to hidden API light greylist
David Brazdil [Mon, 26 Mar 2018 15:02:23 +0000 (16:02 +0100)]
Add serialization methods to hidden API light greylist

This patch adds a build-time rule that adds all members with signatures:
  readObject(Ljava/io/ObjectInputStream;)V
  readObjectNoData()V
  readResolve()Ljava/lang/Object;
  serialVersionUID:J
  serialPersistentFields:[Ljava/io/ObjectStreamField
  writeObject(Ljava/io/ObjectOutputStream;)V
  writeReplace()Ljava/lang/Object;
to the hidden API light greylist. This is needed so that apps can retain
the ability to write their own serializers.

Bug: 64382372
Bug: 73255398
Test: make
Change-Id: I0103f47044e957bbff0a39230ff53562f3feddac

6 years agoMerge "Clear calling identity in finish callback" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 16:44:26 +0000 (16:44 +0000)]
Merge "Clear calling identity in finish callback" into pi-dev

6 years agoMerge "Disable long press recents whenever overview service is bound" into pi-dev
Winson Chung [Tue, 27 Mar 2018 16:43:55 +0000 (16:43 +0000)]
Merge "Disable long press recents whenever overview service is bound" into pi-dev

6 years agoMerge "Update onboarding based on swipe up state" into pi-dev
Winson Chung [Tue, 27 Mar 2018 16:43:14 +0000 (16:43 +0000)]
Merge "Update onboarding based on swipe up state" into pi-dev

6 years agoMerge "API council requested tweaks to JobInfo." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 16:25:23 +0000 (16:25 +0000)]
Merge "API council requested tweaks to JobInfo." into pi-dev

6 years agoSupport sliced condition change in GaugeMetric
Yao Chen [Thu, 22 Mar 2018 22:21:52 +0000 (15:21 -0700)]
Support sliced condition change in GaugeMetric

TODO: We need CTS to verify the behavior.

Bug: 73958484
Test: statsd_test
Change-Id: I56406983ddede12bc6a2e12188693a0c51ccae5c

6 years agoMerge "Whitelisting Launcher3 for hidden APIs" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 16:06:54 +0000 (16:06 +0000)]
Merge "Whitelisting Launcher3 for hidden APIs" into pi-dev

6 years agoMerge "[QS] Change spacing for QQS in landscape" into pi-dev
Rohan Shah [Tue, 27 Mar 2018 15:38:26 +0000 (15:38 +0000)]
Merge "[QS] Change spacing for QQS in landscape" into pi-dev

6 years ago[Magnifier-35] Do not show when text is large
Mihai Popa [Wed, 21 Mar 2018 19:45:06 +0000 (19:45 +0000)]
[Magnifier-35] Do not show when text is large

There is no point in displaying the magnifier when the text is large
enough. In this CL we are using the font metrics of the TextView to
decide whether the magnifier should be displayed or not.

Bug: 70608551
Test: manual testing
Change-Id: Icb2fb4412b6b930dfb3322e51fd0139152cf9d39

6 years agoAdd exception catching for BlockedNumberContract methods used by Telecom.
Tyler Gunn [Mon, 26 Mar 2018 22:49:23 +0000 (22:49 +0000)]
Add exception catching for BlockedNumberContract methods used by Telecom.

The content resolver can throw in some instances when using the blocked
number provider.  Rather than crashing all of telecom, adding exception
handling to provide graceful fallback in these cases.

Test: Compile / build
Bug: 74965829
Merged-In: Iae4c2dfc912e0d2a4194deb62568ee2f78ce4e22
Change-Id: Iae4c2dfc912e0d2a4194deb62568ee2f78ce4e22
(cherry picked from commit b408ebe55737438ac257872cb7f26e21701ec459)

6 years agoMerge "Handle insets for letterboxing correctly" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 15:10:27 +0000 (15:10 +0000)]
Merge "Handle insets for letterboxing correctly" into pi-dev

6 years agoDowngrade OOB warning of priv app to warning
Victor Hsieh [Tue, 27 Mar 2018 14:22:32 +0000 (07:22 -0700)]
Downgrade OOB warning of priv app to warning

We can't enforce priv apps to uncompress .dex and .so just yet until all
priv apps from Play have done so.

Also fix the wrong default value.

Test: build
Bug: 76440172
Bug: 63920015
Change-Id: I98ab7272702c1693752f8e4ecb53e1b1eb5e1f35

6 years agoMerge "Fix broken test RecoverySnapshotStorageTest" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 14:55:46 +0000 (14:55 +0000)]
Merge "Fix broken test RecoverySnapshotStorageTest" into pi-dev

6 years agoMerge "Suppress expected exception due to missing network_watchlist.xml" into pi-dev
Ricky Wai [Tue, 27 Mar 2018 14:48:52 +0000 (14:48 +0000)]
Merge "Suppress expected exception due to missing network_watchlist.xml" into pi-dev

6 years agoMerge "Added safeguards for pushed brighntess curve." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 14:43:14 +0000 (14:43 +0000)]
Merge "Added safeguards for pushed brighntess curve." into pi-dev

6 years agoAPI council requested tweaks to JobInfo.
Jeff Sharkey [Tue, 27 Mar 2018 01:10:02 +0000 (19:10 -0600)]
API council requested tweaks to JobInfo.

Split network estimates into separate download/upload values, and
add missing accessor methods.

Test: none
Bug: 749454087403254174032817
Change-Id: I4c92b8a867690dc4f048701f13142655c3370958

6 years agoRemove deprecated android.graphics.Canvas APIs
Derek Sollenberger [Thu, 22 Feb 2018 21:16:33 +0000 (16:16 -0500)]
Remove deprecated android.graphics.Canvas APIs

Bug: 73777445
Test: compile
Change-Id: Ie68f2fbe3c3be82f3c20529d535875d4cc204b7c

6 years agoMerge "Add link to notification app listing in shade" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 14:09:18 +0000 (14:09 +0000)]
Merge "Add link to notification app listing in shade" into pi-dev

6 years agoMerge "Don't treat user switch as slider interaction." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 14:01:25 +0000 (14:01 +0000)]
Merge "Don't treat user switch as slider interaction." into pi-dev

6 years agoMerge "Show ripples for QS tiles and footer buttons." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 14:00:19 +0000 (14:00 +0000)]
Merge "Show ripples for QS tiles and footer buttons." into pi-dev

6 years agoMerge "Add metric PREVIOUSLY_CONNECTED_DEVICES" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 13:46:41 +0000 (13:46 +0000)]
Merge "Add metric PREVIOUSLY_CONNECTED_DEVICES" into pi-dev

6 years agoMerge "Fix tile text display for large font/display sizes" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 13:24:53 +0000 (13:24 +0000)]
Merge "Fix tile text display for large font/display sizes" into pi-dev

6 years agoMerge "Show status labels in wifi QS tile." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 13:10:24 +0000 (13:10 +0000)]
Merge "Show status labels in wifi QS tile." into pi-dev

6 years agoMerge "WM: Move mLayoutSeq to DisplayContent" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 13:09:27 +0000 (13:09 +0000)]
Merge "WM: Move mLayoutSeq to DisplayContent" into pi-dev

6 years agoMerge "Update screenshot saving strings." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 13:03:33 +0000 (13:03 +0000)]
Merge "Update screenshot saving strings." into pi-dev

6 years agoFix broken test RecoverySnapshotStorageTest
Robert Berry [Tue, 27 Mar 2018 11:16:06 +0000 (12:16 +0100)]
Fix broken test RecoverySnapshotStorageTest

This throws an NPE now.

Bug: 75952916
Test: runtest frameworks-services -p \
      com.android.server.locksettings.recoverablekeystore
Change-Id: I094036dbe7e0c149b234a60729aa7fec8db3e2d9

6 years agoMerge "Allow third party cookies in the captive portal login app." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 12:55:40 +0000 (12:55 +0000)]
Merge "Allow third party cookies in the captive portal login app." into pi-dev

6 years agoMerge "[RTT] Collect metrics on observed IEEE 802.11mc supporting APs" into pi-dev
Etan Cohen [Tue, 27 Mar 2018 12:51:20 +0000 (12:51 +0000)]
Merge "[RTT] Collect metrics on observed IEEE 802.11mc supporting APs" into pi-dev

6 years agoMerge "Update AnimatedImageDrawable docs" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 12:47:22 +0000 (12:47 +0000)]
Merge "Update AnimatedImageDrawable docs" into pi-dev

6 years agoMerge "Permission Check For DPM.isDeviceProvisioned" into pi-dev
Eric Sandness [Tue, 27 Mar 2018 12:25:53 +0000 (12:25 +0000)]
Merge "Permission Check For DPM.isDeviceProvisioned" into pi-dev

6 years agoMerge "Suppress key validation logs" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 12:18:22 +0000 (12:18 +0000)]
Merge "Suppress key validation logs" into pi-dev

6 years agoHandle insets for letterboxing correctly
Jorim Jaggi [Mon, 26 Mar 2018 13:46:01 +0000 (15:46 +0200)]
Handle insets for letterboxing correctly

Add letterbox insets to main window insets to get the correct
amount of insets.

Test: Go to recents in landscape with cutout.
Change-Id: I45882d5fb3166252e4b4a333177211623fae34b0
Fixes: 72757033

6 years agoAdded safeguards for pushed brighntess curve.
Dan Gittik [Fri, 23 Mar 2018 14:46:15 +0000 (14:46 +0000)]
Added safeguards for pushed brighntess curve.

Currently, the only safeguard is making sure the brightness curve isn't too dark to turn
auto-brightness off (or connect the phone to a computer and reset the curve with ADB).

Test: atest BrightnessMappingStrategyTest.

Change-Id: Ic87292fe51639a0001d0d5643ca24cda37de5753
Fixes: 74439069

6 years agoDon't treat user switch as slider interaction.
Kenny Guy [Wed, 14 Mar 2018 17:30:20 +0000 (17:30 +0000)]
Don't treat user switch as slider interaction.

Bug: 73825714
Test: Manual, switch users check event not in dumpsys display.
Change-Id: I1a8c3bfe713b160ffe1268350a616c72f794e579

6 years agoAdd metric PREVIOUSLY_CONNECTED_DEVICES
hughchen [Tue, 27 Mar 2018 04:04:59 +0000 (12:04 +0800)]
Add metric PREVIOUSLY_CONNECTED_DEVICES

Bug: 74134939
Test: Build
Change-Id: I134e1aea2a562a8a3f33b340a7dfc643b89886d4

6 years agoSuppress expected exception due to missing network_watchlist.xml
Ricky Wai [Fri, 23 Mar 2018 18:05:49 +0000 (18:05 +0000)]
Suppress expected exception due to missing network_watchlist.xml

Test: NULL
Bug:73264037
Change-Id: I640ad865fe85191f7d9e5fe887be10884c7bb801

6 years agoClear calling identity in finish callback
Jorim Jaggi [Tue, 27 Mar 2018 11:06:09 +0000 (13:06 +0200)]
Clear calling identity in finish callback

Test: go/wm-smoke
Fixes: 76138720
Change-Id: Id6b1afd757d4374a401abe4ee68fe99ed182a62e

6 years agoDo not create snapshot on first init
Robert Berry [Tue, 27 Mar 2018 10:45:11 +0000 (11:45 +0100)]
Do not create snapshot on first init

Currently the first time the RecoveryController is initialized, it sets
a snapshot pending. This is because there is no cert, so it installs the
cert, and the existing logic also sets snapshot pending. This fixes that.

Bug: 74949975
Test: runtest frameworks-services -p \
      com.android.server.locksettings.recoverablekeystore

Change-Id: If150524c3fc41fd2ee9cc6310109b41d62dcbb29

6 years agoMerge "More flexible API enforcement policy." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 10:34:38 +0000 (10:34 +0000)]
Merge "More flexible API enforcement policy." into pi-dev

6 years agoMerge "Require strong auth after user is stopped" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 10:29:36 +0000 (10:29 +0000)]
Merge "Require strong auth after user is stopped" into pi-dev

6 years agoMerge "DPM: Separate storage of PasswordMetrics from other state" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 10:22:46 +0000 (10:22 +0000)]
Merge "DPM: Separate storage of PasswordMetrics from other state" into pi-dev

6 years agoMerge "Add javadoc to explain ApnSetting conflict." into pi-dev
Yueming Wang [Tue, 27 Mar 2018 10:19:13 +0000 (10:19 +0000)]
Merge "Add javadoc to explain ApnSetting conflict." into pi-dev

6 years agoMerge "Permission Check For DPM.getUserProvisioningState" into pi-dev
Eric Sandness [Tue, 27 Mar 2018 09:52:58 +0000 (09:52 +0000)]
Merge "Permission Check For DPM.getUserProvisioningState" into pi-dev

6 years agoPermission Check For DPM.isDeviceProvisioned
Eric Sandness [Tue, 27 Mar 2018 08:56:40 +0000 (09:56 +0100)]
Permission Check For DPM.isDeviceProvisioned

Require the caller of DPM.isDeviceProvisioned() to hold the MANAGE_USERS
permission.  The only callers should be within the framework itself, or
apps involved in device provisioning which already hold this permission.

Bug: 62343414
Test: Set TestDPC as Device Owner and use it to reset password
Test: com.android.server.devicepolicy.DevicePolicyManagerTest
Test: com.android.server.locksettings.LockSettingsServiceTests
Test: com.google.android.gts.devicepolicy.DevicePolicyManagerTest
Change-Id: Ie53deb5ba8679a5b431f2a8da60ec9710c44d56f

6 years agoMerge "Fix setRecoverySecretTypes to not always set snapshot pending" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 09:09:54 +0000 (09:09 +0000)]
Merge "Fix setRecoverySecretTypes to not always set snapshot pending" into pi-dev

6 years agoMerge changes from topics "session2_seekcompleted", "session2_pullout", "session2_fas...
Jaewan Kim [Tue, 27 Mar 2018 08:39:45 +0000 (08:39 +0000)]
Merge changes from topics "session2_seekcompleted", "session2_pullout", "session2_fastforward" into pi-dev

* changes:
  MediaPlayerBase: Add PlayerEventCallback#onSeekCompleted()
  MediaSession2: Pull out Command/CommandGroup from the MediaSession2
  MediaController2: Add fastForward() / rewind()

6 years agoAdd javadoc to explain ApnSetting conflict.
yuemingw [Wed, 21 Mar 2018 16:32:09 +0000 (16:32 +0000)]
Add javadoc to explain ApnSetting conflict.

As per discussion with Amit, it's better to define "conflict"
of ApnSetting in DevicePolicyManager API javadoc.

Bug: 72153573
Test: not required.
Change-Id: I765dace36a3c9c491c988dc0a87479cdec620e37

6 years agoMore flexible API enforcement policy.
Mathew Inwood [Thu, 22 Feb 2018 13:19:53 +0000 (13:19 +0000)]
More flexible API enforcement policy.

This CL adds the basics to set black, dark gray or light gray list
enforcement, rather than just black as before. It's not possible to
actually set the policy per-package yet.

PackageDexOptimizer still uses a single bit, for API checks on/off, rather
than the new enum. It assumes blacklist enforcement internally. This can
be improved in a follow up CL.

(cherry-picked from commit e52130ae4cf3b046b38a09fc7cc7712f5b7fb83d)

Test: m
Test: Boot device

BUG: 73337509
Change-Id: Ieb4bd9cc439c6a5b8fb9424d8902d8b46aec309f
Merged-In: Idd73c9938592c5c4d67cfb9efefdffed0dd5f262

6 years agoMerge "Reset SIM state if the subscription is no longer active." into pi-dev
Richard Chou [Tue, 27 Mar 2018 08:02:17 +0000 (08:02 +0000)]
Merge "Reset SIM state if the subscription is no longer active." into pi-dev

6 years agoMerge "ExifInterface: Remove casting int[] to long[]" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 07:57:14 +0000 (07:57 +0000)]
Merge "ExifInterface: Remove casting int[] to long[]" into pi-dev

6 years agoMerge "Remove from hidden API light greylist" into pi-dev
David Brazdil [Tue, 27 Mar 2018 07:53:02 +0000 (07:53 +0000)]
Merge "Remove from hidden API light greylist" into pi-dev

6 years agoMediaPlayerBase: Add PlayerEventCallback#onSeekCompleted()
Jaewan Kim [Tue, 27 Mar 2018 00:35:59 +0000 (09:35 +0900)]
MediaPlayerBase: Add PlayerEventCallback#onSeekCompleted()

PlayerEventCallback#onSeekCompleted() will be called when the
MediaPlayerBase#seekTo() is completed. Following callbacks are also
added to listen the event.
  - SessionCallback#onSeekCompleted()
  - ControllerCallback#onSeekCompleted()

Bug: 74370608
Test: Build
Change-Id: Ib1ecd75f7e217ed9a927db3ab443073a1aef2074

6 years agoMediaSession2: Pull out Command/CommandGroup from the MediaSession2
Jaewan Kim [Mon, 26 Mar 2018 23:32:25 +0000 (08:32 +0900)]
MediaSession2: Pull out Command/CommandGroup from the MediaSession2

Bug: 74648408
Test: Build
Change-Id: I0a3d1ab6320c7b276e7b1defdccf9fa371ae02c0

6 years agoMediaController2: Add fastForward() / rewind()
Jaewan Kim [Mon, 19 Mar 2018 14:09:00 +0000 (23:09 +0900)]
MediaController2: Add fastForward() / rewind()

Following CLs are included
  - Add MediaController2#fastForward() / rewind()
  - Add MediaSession2.SessionCallback#onFastForward() / rewind()

Bug: 74724709
Test: Build
Change-Id: I0dd2b6c21931df937006ae26011ea9538720afee

6 years agoMerge "Flush the past buckets in anomaly tracker when time jumps forward" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 07:21:21 +0000 (07:21 +0000)]
Merge "Flush the past buckets in anomaly tracker when time jumps forward" into pi-dev

6 years agoMerge "Remove unneeded context" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 07:17:24 +0000 (07:17 +0000)]
Merge "Remove unneeded context" into pi-dev

6 years agoAdjust the volumeDialog layout
Lin Guo [Fri, 23 Mar 2018 01:46:42 +0000 (18:46 -0700)]
Adjust the volumeDialog layout

Bug: 73134851

Test: manual
Change-Id: Ibb02352528d792710a821566b7ba1358d59fea4c

6 years agoMerge "Move alpha long/short to the base CellIdentity according API Review." into...
TreeHugger Robot [Tue, 27 Mar 2018 06:40:37 +0000 (06:40 +0000)]
Merge "Move alpha long/short to the base CellIdentity according API Review." into pi-dev

6 years agoUse transaction for local activity relaunch
Andrii Kulian [Tue, 20 Mar 2018 04:51:53 +0000 (21:51 -0700)]
Use transaction for local activity relaunch

To know that onPostCreate callback should be executed we should use
TransactionExecutor for the entire transaction. It will fill
PendingActions object during the launch and the callback will be
triggered after onStart.
This CL changes local activity relaunch to use Lifecycler
infrastructure. We should immediately execute local recreate
requests, because if we wait until the scheduled message to be
handled, we may already be in a different state and final state
request in the scheduled relaunch transaction will already be
obsolete.

Bug: 72029061
Bug: 64610483
Bug: 76088057
Bug: 73747058
Test: ActivityLifecycleTests
Change-Id: Ia53ecd199c83d030932c4493064e58568805f2a5