OSDN Git Service

android-x86/frameworks-base.git
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 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 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 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 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 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 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 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 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

6 years agoMerge "Fix OTA info persistence logic" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 06:22:16 +0000 (06:22 +0000)]
Merge "Fix OTA info persistence logic" into pi-dev

6 years agoExifInterface: Remove casting int[] to long[]
Jin Seok Park [Tue, 20 Mar 2018 01:23:46 +0000 (10:23 +0900)]
ExifInterface: Remove casting int[] to long[]

This CL removes code that directly casts int[] to long[] and instead
iterates through the individual values and casts to int if necessary.
They are cast to integer because StripOffsets/StripByteCounts
Attributes can return either int[] or long[] values, but the maximum
length of a file that ExifInterface can handle is the maximum value
of integer, so it should be safe to cast the long values to integer
values.

Bug: 73091048
Test: Cts
Change-Id: I9f3b98204e0829a8a8a30927bb8c0a698c457654

6 years agoMerge "Fix privacy tags based on go/irpf." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 05:35:25 +0000 (05:35 +0000)]
Merge "Fix privacy tags based on go/irpf." into pi-dev

6 years agoMerge "Ignore mkdirs requests while storage is locked." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 05:18:47 +0000 (05:18 +0000)]
Merge "Ignore mkdirs requests while storage is locked." into pi-dev

6 years agoMerge "Integrate autofill session lifecycle with URL bar changes when on compat mode...
TreeHugger Robot [Tue, 27 Mar 2018 05:15:20 +0000 (05:15 +0000)]
Merge "Integrate autofill session lifecycle with URL bar changes when on compat mode." into pi-dev

6 years agoMerge "Don't allow acccess to uninstalled system providers" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 03:16:25 +0000 (03:16 +0000)]
Merge "Don't allow acccess to uninstalled system providers" into pi-dev

6 years agoMerge "Give DPM callers unsafe labels." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 03:06:37 +0000 (03:06 +0000)]
Merge "Give DPM callers unsafe labels." into pi-dev

6 years agoMerge "API council requested tweaks to TrafficStats." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 02:56:24 +0000 (02:56 +0000)]
Merge "API council requested tweaks to TrafficStats." into pi-dev

6 years agoMerge "Report final progress when finished copying." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 02:52:26 +0000 (02:52 +0000)]
Merge "Report final progress when finished copying." into pi-dev

6 years agoMerge "Revert "Add additional context to MtpDatabase"" into pi-dev
Jerry Zhang [Tue, 27 Mar 2018 02:49:30 +0000 (02:49 +0000)]
Merge "Revert "Add additional context to MtpDatabase"" into pi-dev

6 years agoMerge "Write descriptors for Mtp in UsbService" into pi-dev
Jerry Zhang [Tue, 27 Mar 2018 02:49:02 +0000 (02:49 +0000)]
Merge "Write descriptors for Mtp in UsbService" into pi-dev

6 years agoMerge "Fix NPE when UID doesn't exist." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 02:44:02 +0000 (02:44 +0000)]
Merge "Fix NPE when UID doesn't exist." into pi-dev

6 years agoMerge "API council requested tweaks to SystemClock." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 02:40:24 +0000 (02:40 +0000)]
Merge "API council requested tweaks to SystemClock." into pi-dev

6 years agoMerge "Fix issue where bouncer would go away" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 02:37:35 +0000 (02:37 +0000)]
Merge "Fix issue where bouncer would go away" into pi-dev

6 years agoMerge "Add metrics for new settings conditional cards." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 02:36:14 +0000 (02:36 +0000)]
Merge "Add metrics for new settings conditional cards." into pi-dev

6 years agoRemove unneeded context
Christofer Åkersten [Thu, 22 Mar 2018 14:20:39 +0000 (23:20 +0900)]
Remove unneeded context

Bug: 76001644
Test: compile
Change-Id: Ib6d581650ff22d90da2bdc9ad295eab595aefb25

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

6 years agoMerge "Hide Media*2 APIs" into pi-dev
Christofer Åkersten [Tue, 27 Mar 2018 01:46:42 +0000 (01:46 +0000)]
Merge "Hide Media*2 APIs" into pi-dev

6 years agoFlush the past buckets in anomaly tracker when time jumps forward
Yangster-mac [Tue, 13 Mar 2018 22:39:51 +0000 (15:39 -0700)]
Flush the past buckets in anomaly tracker when time jumps forward

E2e test for count/duration anomaly trackers.

Test: new statsd tests.

BUG: b/74446029

Change-Id: Ia9be0240ba5021d44c1e1f096d67563e9138bb59

6 years agoMerge "Move FIRST_SDK_INT to @TestApi." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 01:40:23 +0000 (01:40 +0000)]
Merge "Move FIRST_SDK_INT to @TestApi." into pi-dev

6 years agoOnly resolve users on content:// Uris.
Jeff Sharkey [Tue, 27 Mar 2018 01:26:22 +0000 (19:26 -0600)]
Only resolve users on content:// Uris.

Otherwise we'd try doing weird things like parsing email addresses
as user numbers and NumberFormatException.

Test: none
Bug: 74004408
Change-Id: I1d0dd77db0abf3e8888e96e3c1cd2c24b54be05f

6 years agoDon't allow acccess to uninstalled system providers
Svet Ganov [Sat, 24 Mar 2018 08:05:33 +0000 (01:05 -0700)]
Don't allow acccess to uninstalled system providers

If system providers are not installed yet we aggressively crash to avoid
creating multiple instance of these providers and then bad things happen!

Test: manual

Bug: 72457712

Change-Id: I5d7da8c05c08f719a8996b48bffa2317193c1275

6 years agoGive DPM callers unsafe labels.
Jeff Sharkey [Tue, 27 Mar 2018 01:19:23 +0000 (19:19 -0600)]
Give DPM callers unsafe labels.

Tests want the full label, so give it to them.

Test: none
Bug: 74254785
Change-Id: Ia358ee54396ee0a0684fd352c7133f54d9f8c4a7

6 years agodocs: fixed typo
Joshua Baxter [Mon, 26 Mar 2018 21:55:14 +0000 (14:55 -0700)]
docs: fixed typo

Test: make ds-docs

Bug: 36941741

Change-Id: I451d8095bcc5d30dbefe3503441d718a69d821ca

6 years agoDisable long press recents whenever overview service is bound
Winson Chung [Tue, 27 Mar 2018 00:27:19 +0000 (17:27 -0700)]
Disable long press recents whenever overview service is bound

- In both the quickstep and fallback cases, we'll rely on the UI to
  enter split screen and not long press recents button.

Bug: 76438197
Test: Manual, long press recents with fallback activity, ensure nothing
      happens

Change-Id: If3f367632c5c9ffae520285c694c71054b02f209

6 years agoUpdate onboarding based on swipe up state
Winson Chung [Tue, 27 Mar 2018 00:25:36 +0000 (17:25 -0700)]
Update onboarding based on swipe up state

- We now use the fallback activity for the existing nav layout, which means
  that we are always bound. We should update the onboarding listener when
  the interaction flags change as well.

Bug: 76309872
Test: Manual
Change-Id: Ib6ad10e9e767adf2e305d8a0a2074516961a60c4

6 years agoMerge "Fix flickering when switching display power modes" into pi-dev
Lucas Dupin [Tue, 27 Mar 2018 00:48:17 +0000 (00:48 +0000)]
Merge "Fix flickering when switching display power modes" into pi-dev

6 years agoMerge "Fixes the inability to start quickscrub because hit target is none" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 00:43:55 +0000 (00:43 +0000)]
Merge "Fixes the inability to start quickscrub because hit target is none" into pi-dev

6 years agoWhitelisting Launcher3 for hidden APIs
Sunny Goyal [Tue, 27 Mar 2018 00:30:52 +0000 (17:30 -0700)]
Whitelisting Launcher3 for hidden APIs

Bug: 76169471
Test: N/A
Change-Id: I72d4ab22acec3ea5095d6f8fb9fe6ff11df097a8

6 years agoMerge "Stop using DynamicLayout in case of non selectable PrecomputedText" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 00:10:11 +0000 (00:10 +0000)]
Merge "Stop using DynamicLayout in case of non selectable PrecomputedText" into pi-dev

6 years agoGuard against null server
Jerry Zhang [Mon, 26 Mar 2018 21:59:39 +0000 (14:59 -0700)]
Guard against null server

If MtpService stops before MtpServer
shuts down, the server will be null,
so don't attempt to use it in that
case.

Bug: 76433619
Test: no errors
Change-Id: I6744cb78908e6a0663a4b60107d5c9c18dda62bb

6 years agoSuppress key validation logs
Siarhei Vishniakou [Mon, 26 Mar 2018 23:18:34 +0000 (16:18 -0700)]
Suppress key validation logs

If the validation of keylayouts / keycharmaps / keyconfigs succeeds, do
not log anything to reduce logspam. The "-q" argument was misplaced in
the original CL.

Bug: 35672363
Test: touch frameworks/base/data/keyboards/Vendor_045e_Product_028e.kl && m
Also, change the behaviour in tools/validatekeymaps/Main.cpp to always
ignore "-q", see that the logs come back.

Change-Id: I3cd2ef161942905c2d8ffce8fc93dd345868066d

6 years agoMerge "Add linter for strings.xml." into pi-dev
Jeff Sharkey [Mon, 26 Mar 2018 23:57:34 +0000 (23:57 +0000)]
Merge "Add linter for strings.xml." into pi-dev