OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "ScheduledJobStateChanged: add stop reason" into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 01:30:52 +0000 (01:30 +0000)]
Merge "ScheduledJobStateChanged: add stop reason" into pi-dev

6 years agoMerge "Updated the javadoc of ContentResolver.addPeriodicSync to correct the minimum...
Makoto Onuki [Thu, 22 Mar 2018 00:51:03 +0000 (00:51 +0000)]
Merge "Updated the javadoc of ContentResolver.addPeriodicSync to correct the minimum interval of periodic sync." into pi-dev

6 years agodocs: fixing typo in reference document
kopriva [Thu, 22 Mar 2018 00:39:02 +0000 (00:39 +0000)]
docs: fixing typo in reference document
am: 60b06bd217

Change-Id: Ie0a6380e8287d49b4d80f8742e51345372e5b8a9

6 years agoMerge changes I7f413e38,I20aba7e9 into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 00:29:38 +0000 (00:29 +0000)]
Merge changes I7f413e38,I20aba7e9 into pi-dev

* changes:
  Remove FlpHardwareProvider
  Create the stubs lib for com.android.location.provider

6 years agoMerge "Revert "By default, turn on signal strength update in power save mode."" into...
Xiangyu/Malcolm Chen [Wed, 21 Mar 2018 23:18:25 +0000 (23:18 +0000)]
Merge "Revert "By default, turn on signal strength update in power save mode."" into pi-dev

6 years agoRevert "By default, turn on signal strength update in power save mode."
Xiangyu/Malcolm Chen [Wed, 21 Mar 2018 22:28:32 +0000 (22:28 +0000)]
Revert "By default, turn on signal strength update in power save mode."

This reverts commit cbd29712a934ba1d29b5c5de6a48b22c976e4b8a.

Reason for revert:
No need for a config. We don't ever want to disable signal strength update in power save mode.

Bug: 69644626
Change-Id: I0a7bf991c36076b0eceb816eed1b1bf7434c1d3d

6 years agoMerge "[QS] Update long-press tooltip text" into pi-dev
Rohan Shah [Wed, 21 Mar 2018 23:11:32 +0000 (23:11 +0000)]
Merge "[QS] Update long-press tooltip text" into pi-dev

6 years agoMerge "Added BinderCallsStatsService" into pi-dev
Fyodor Kupolov [Wed, 21 Mar 2018 23:02:58 +0000 (23:02 +0000)]
Merge "Added BinderCallsStatsService" into pi-dev

6 years agoMerge "Unregister lux sensor when not in adaptive mode." into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 22:38:41 +0000 (22:38 +0000)]
Merge "Unregister lux sensor when not in adaptive mode." into pi-dev

6 years agoMerge "Implement new BS warning / notification flow (1/2)" into pi-dev
Makoto Onuki [Wed, 21 Mar 2018 22:32:33 +0000 (22:32 +0000)]
Merge "Implement new BS warning / notification flow (1/2)" into pi-dev

6 years agoMerge "Fix location settings bug on non-GPS devices" into pi-dev
Maggie Wang [Wed, 21 Mar 2018 22:02:03 +0000 (22:02 +0000)]
Merge "Fix location settings bug on non-GPS devices" into pi-dev

6 years agoMerge "Fix wrong SafeUnref type" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 21:34:10 +0000 (21:34 +0000)]
Merge "Fix wrong SafeUnref type" into pi-dev

6 years agoUpdated the javadoc of ContentResolver.addPeriodicSync to correct the minimum interva...
Liefu Liu [Wed, 21 Mar 2018 17:25:49 +0000 (10:25 -0700)]
Updated the javadoc of ContentResolver.addPeriodicSync to correct the minimum interval of periodic sync.

Bug: 76033438
Change-Id: I1ccb7ae174f8f13dae24296a3fb7e9dfcd77c7fa
Fixes: 76033438
Test: javadoc only. presubmit only.

6 years agoMerge "Remove am/wm.proto which is redundant. The naming convention is defined in...
TreeHugger Robot [Wed, 21 Mar 2018 21:24:19 +0000 (21:24 +0000)]
Merge "Remove am/wm.proto which is redundant. The naming convention is defined in core/proto/README.md" into pi-dev

6 years agoMerge "By default, turn on signal strength update in power save mode." into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 21:11:39 +0000 (21:11 +0000)]
Merge "By default, turn on signal strength update in power save mode." into pi-dev

6 years agoMerge changes I4c26aea7,I79911434 into pi-dev
Nathan Harold [Wed, 21 Mar 2018 20:59:02 +0000 (20:59 +0000)]
Merge changes I4c26aea7,I79911434 into pi-dev

* changes:
  Check mOwnedByTransform to avoid DELSA on SPI
  Expose add/removeAddress for IpSecInterfaces

6 years agoMerge "Define phone process as a constant" into pi-dev
Brad Ebinger [Wed, 21 Mar 2018 20:38:00 +0000 (20:38 +0000)]
Merge "Define phone process as a constant" into pi-dev

6 years agoMerge "Enable sanitizer on statsd eng build." into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 20:09:10 +0000 (20:09 +0000)]
Merge "Enable sanitizer on statsd eng build." into pi-dev

6 years agoMerge "add car volume dialog" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 20:07:41 +0000 (20:07 +0000)]
Merge "add car volume dialog" into pi-dev

6 years agoMerge "Screenshot: extend scrim under cutout" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 19:50:40 +0000 (19:50 +0000)]
Merge "Screenshot: extend scrim under cutout" into pi-dev

6 years agoMerge "Suppress all background-state services in user-forced app standby" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 19:45:59 +0000 (19:45 +0000)]
Merge "Suppress all background-state services in user-forced app standby" into pi-dev

6 years agoMerge "Return a boolean from the mandatory backup transport setter." into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 19:34:52 +0000 (19:34 +0000)]
Merge "Return a boolean from the mandatory backup transport setter." into pi-dev

6 years agoMerge "Adding UserManagerHelper class to SettingsLib." into pi-dev
Jovana Knezevic [Wed, 21 Mar 2018 19:34:32 +0000 (19:34 +0000)]
Merge "Adding UserManagerHelper class to SettingsLib." into pi-dev

6 years agoImplement new BS warning / notification flow (1/2)
Makoto Onuki [Tue, 20 Mar 2018 17:40:37 +0000 (10:40 -0700)]
Implement new BS warning / notification flow (1/2)

- Show the battery saver confirmation dialog only for the first time.
- Start counting # of manual activations, which will be used in a
follow-up CL.

Bug: 74120126
Test: Manual tests with ./vendor/google_experimental/users/omakoto/android-battery-tester
Test: m -j ROBOTEST_FILTER=BatterySaverUtilsTest RunSettingsLibRoboTests
Test: cd frameworks/base/packages/SystemUI/tests && \
        atest src/com/android/systemui/power/PowerUITest.java src/com/android/systemui/power/PowerNotificationWarningsTest.java
Change-Id: If6a081a6222e6a87c4cd332364c89856e7648a36

6 years agoFix location settings bug on non-GPS devices
Maggie [Fri, 16 Mar 2018 19:22:20 +0000 (12:22 -0700)]
Fix location settings bug on non-GPS devices

The old location_mode API hardcoded gps and network location provider when it enables/disables location, without checking whether the providers exist on device.
It causes bugs when used together with the new
LocationManager.setLocationEnabled() APIs.

This fix modified LocationManager.setLocationEnabled() API when user
tries to disable location on device. Besides turning off the providers
from LocationManager.getAllProviders(), it also turns off GPS and
network provider explicitly.

To reduce times of binding to the service and chance of race condition, we also
modified SettingsProvider.updateLocationProvidersAllowedLocked() to
accept a string param with multiple location providers to be
enabled or disalbed at the same time.

Bug: 73261572
Test: Manual on chromebook
Change-Id: I2e59e0d4cf395b98cd481af5d7f3c762274d7826

6 years agoMerge "Document Job Scheduler internal "calling" vs "source" package" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 19:12:14 +0000 (19:12 +0000)]
Merge "Document Job Scheduler internal "calling" vs "source" package" into pi-dev

6 years agoMerge "Ignore non-existent displays in #topRunningActivityLocked." into pi-dev
Bryce Lee [Wed, 21 Mar 2018 19:01:36 +0000 (19:01 +0000)]
Merge "Ignore non-existent displays in #topRunningActivityLocked." into pi-dev

6 years agoMerge "Added Locking for MmTelFeature" into pi-dev
Brad Ebinger [Wed, 21 Mar 2018 18:56:00 +0000 (18:56 +0000)]
Merge "Added Locking for MmTelFeature" into pi-dev

6 years agoMerge "Fix issue with slippery state for quickstep button case." into pi-dev
Winson Chung [Wed, 21 Mar 2018 18:47:41 +0000 (18:47 +0000)]
Merge "Fix issue with slippery state for quickstep button case." into pi-dev

6 years agoMerge "Don't add stopping apps in relaunch based on stopped flag." into pi-dev
Chavi Weingarten [Wed, 21 Mar 2018 18:30:13 +0000 (18:30 +0000)]
Merge "Don't add stopping apps in relaunch based on stopped flag." into pi-dev

6 years agoMerge "Add metric ACTION_ANOMALY_TRIGGERED" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 18:05:21 +0000 (18:05 +0000)]
Merge "Add metric ACTION_ANOMALY_TRIGGERED" into pi-dev

6 years agoMerge "Renamed config_dozeAfterScreenOff" into pi-dev
Lucas Dupin [Wed, 21 Mar 2018 18:04:49 +0000 (18:04 +0000)]
Merge "Renamed config_dozeAfterScreenOff" into pi-dev

6 years agoEnable sanitizer on statsd eng build.
Yao Chen [Wed, 21 Mar 2018 18:00:53 +0000 (11:00 -0700)]
Enable sanitizer on statsd eng build.

Bug: 74946342

Test: manual
Change-Id: I287def435d077670814db50e4d8398ecee539b74

6 years agoFix wrong SafeUnref type
John Reck [Wed, 21 Mar 2018 17:50:01 +0000 (10:50 -0700)]
Fix wrong SafeUnref type

Test: builds
Change-Id: I5a03551c408736722802ba0e8692c3d85e375112
Fixes: 76029886

6 years agoMerge "Update material_deep_teal_500 to #008577." into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 17:45:25 +0000 (17:45 +0000)]
Merge "Update material_deep_teal_500 to #008577." into pi-dev

6 years agoMerge "Category message is sufficient for message notif" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 17:43:40 +0000 (17:43 +0000)]
Merge "Category message is sufficient for message notif" into pi-dev

6 years agoMerge "Preserve letterbox while dragResizing" into pi-dev
Adrian Roos [Wed, 21 Mar 2018 17:33:27 +0000 (17:33 +0000)]
Merge "Preserve letterbox while dragResizing" into pi-dev

6 years agoMerge "Include additional information in the dumpsys" into pi-dev
Fyodor Kupolov [Wed, 21 Mar 2018 17:25:28 +0000 (17:25 +0000)]
Merge "Include additional information in the dumpsys" into pi-dev

6 years agoMerge "WebView Tracing API: remove LARGE_BUFFER, make RECORD_CONTINUOUSLY the default...
TreeHugger Robot [Wed, 21 Mar 2018 17:14:47 +0000 (17:14 +0000)]
Merge "WebView Tracing API: remove LARGE_BUFFER, make RECORD_CONTINUOUSLY the default mode" into pi-dev

6 years agoWebView Tracing API: remove LARGE_BUFFER, make RECORD_CONTINUOUSLY the default mode
Tim Volodine [Mon, 19 Mar 2018 20:07:23 +0000 (20:07 +0000)]
WebView Tracing API: remove LARGE_BUFFER, make RECORD_CONTINUOUSLY the default mode

This patch:
- remove the RECORD_UNTIL_FULL_LARGE_BUFFER tracing option, because
  this does not appear really useful in the production setting as
  the buffer size limit exceeds the device memory and can grow
  uncontrollably large.
- make RECORD_CONTINUOUSLY the default mode for tracing, to make
  sure the least memory is used by default (typically 4x less than the
  previous default RECORD_UNTIL_FULL).
- add some missing IntDef values (to make them match with the constants)

BUG: 63750258
Test: CTS

Change-Id: Ib3698273dee776ebc7a8388fc1bd8c80255e3b63

6 years agoMerge "Make autofill save UI RTL compliant" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 17:09:25 +0000 (17:09 +0000)]
Merge "Make autofill save UI RTL compliant" into pi-dev

6 years agoMerge "Some Slices API refinement" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 17:06:40 +0000 (17:06 +0000)]
Merge "Some Slices API refinement" into pi-dev

6 years agoMerge "Added implementation for VTI add/remove address" into pi-dev
Benedict Wong [Wed, 21 Mar 2018 17:03:52 +0000 (17:03 +0000)]
Merge "Added implementation for VTI add/remove address" into pi-dev

6 years agoMerge "Add support for auth-only transforms" into pi-dev
Benedict Wong [Wed, 21 Mar 2018 17:03:48 +0000 (17:03 +0000)]
Merge "Add support for auth-only transforms" into pi-dev

6 years agoMerge "Merge transactions to parent if layer is going to be removed." into pi-dev
Chavi Weingarten [Wed, 21 Mar 2018 17:02:09 +0000 (17:02 +0000)]
Merge "Merge transactions to parent if layer is going to be removed." into pi-dev

6 years agoDefine phone process as a constant
Brad Ebinger [Wed, 14 Mar 2018 23:14:55 +0000 (16:14 -0700)]
Define phone process as a constant

Test: Manual
Bug: 72645729
Merged-In: I8086e4efa15d74bd61c55b72c7b14be4705fcd58
Change-Id: If07728ea2cc0128113ebe947a154f80ff45a7d9d

6 years agoMerge "DisplayCutout: Add back always resource" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 16:50:32 +0000 (16:50 +0000)]
Merge "DisplayCutout: Add back always resource" into pi-dev

6 years agoMerge "Report native allocation size of AnimatedImageDrawable" into pi-dev
Leon Scroggins [Wed, 21 Mar 2018 16:48:19 +0000 (16:48 +0000)]
Merge "Report native allocation size of AnimatedImageDrawable" into pi-dev

6 years agoMerge "Add new hidden API uses to light greylist" into pi-dev
David Brazdil [Wed, 21 Mar 2018 16:28:17 +0000 (16:28 +0000)]
Merge "Add new hidden API uses to light greylist" into pi-dev

6 years agoMerge "Get rid of upperbound on wireless charging anim" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 16:26:12 +0000 (16:26 +0000)]
Merge "Get rid of upperbound on wireless charging anim" into pi-dev

6 years agoMerge "Update logging util to not crash on null" into pi-dev
Salvador Martinez [Wed, 21 Mar 2018 16:23:26 +0000 (16:23 +0000)]
Merge "Update logging util to not crash on null" into pi-dev

6 years agoIgnore non-existent displays in #topRunningActivityLocked.
Bryce Lee [Tue, 20 Mar 2018 20:58:53 +0000 (13:58 -0700)]
Ignore non-existent displays in #topRunningActivityLocked.

Previous changes aimed at driving display creation through
ActivityManagerService. However, there are still cases where
WindowManagerService will encounter the display first (such as add
window). A subsequent changelist enabled this out of band creation.
As a result the WindowManagerService and ActivityManagerService can
still have different lists of displays. This mismatch leads to
#topRunningActivityLocked processing null ActivityDisplays.

This changelist skips over displays not yet encountered by
ActivityManagerService in #topRunningActivityLocked. Such displays
have no stacks and therefore no activities that could be the top
running activity.

Test: atest FrameworksServicesTests:com.android.server.am.ActivityStackSupervisorTests#testTopRunningActivityLockedWithNonExistentDisplay
Fixes: 74593710
Change-Id: I316e5305f7ce233a04ecf18d605eebdf723b0920

6 years agoMerge "UsageEvents for slices pinning" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 16:07:32 +0000 (16:07 +0000)]
Merge "UsageEvents for slices pinning" into pi-dev

6 years agoMerge "Ensure rotate disable2 flag can be set on boot" into pi-dev
Mike Digman [Wed, 21 Mar 2018 16:03:00 +0000 (16:03 +0000)]
Merge "Ensure rotate disable2 flag can be set on boot" into pi-dev

6 years agoMerge "Update IME/keyboard switcher navbar icon to GM" into pi-dev
Mike Digman [Wed, 21 Mar 2018 16:02:45 +0000 (16:02 +0000)]
Merge "Update IME/keyboard switcher navbar icon to GM" into pi-dev

6 years agoMerge "Distinguish between bringing stack to front and delivering to top." into pi-dev
Bryce Lee [Wed, 21 Mar 2018 15:58:08 +0000 (15:58 +0000)]
Merge "Distinguish between bringing stack to front and delivering to top." into pi-dev

6 years agoMerge "Add unit test for ActivityStackSupervisor#testApplySleepTokensLocked." into...
Bryce Lee [Wed, 21 Mar 2018 15:57:48 +0000 (15:57 +0000)]
Merge "Add unit test for ActivityStackSupervisor#testApplySleepTokensLocked." into pi-dev

6 years agoAdd new hidden API uses to light greylist
David Brazdil [Tue, 20 Mar 2018 19:48:01 +0000 (19:48 +0000)]
Add new hidden API uses to light greylist

From common apps.

Bug: 64382372
Bug: 74430927
Test: make
Change-Id: I81c38a78fcdc7c33f54cd25823b301ba29638019

6 years agoMerge "Restore state if password change fails" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 15:41:34 +0000 (15:41 +0000)]
Merge "Restore state if password change fails" into pi-dev

6 years agoMerge "Update QS customizer add tiles string." into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 15:33:49 +0000 (15:33 +0000)]
Merge "Update QS customizer add tiles string." into pi-dev

6 years agoMerge "Intercept touches in the emulated DisplayCutout" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 15:31:38 +0000 (15:31 +0000)]
Merge "Intercept touches in the emulated DisplayCutout" into pi-dev

6 years agoMerge "DO NOT MERGE Update references to backup/restore agent timeouts" into pi-dev
Annie Meng [Wed, 21 Mar 2018 15:18:35 +0000 (15:18 +0000)]
Merge "DO NOT MERGE Update references to backup/restore agent timeouts" into pi-dev

6 years agoMerge "More APIs on hidden API light greylist / vendor list" into pi-dev
David Brazdil [Wed, 21 Mar 2018 15:14:54 +0000 (15:14 +0000)]
Merge "More APIs on hidden API light greylist / vendor list" into pi-dev

6 years agoMerge "Rename persist.traced.enable to sys.traced.enable_override" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 15:09:25 +0000 (15:09 +0000)]
Merge "Rename persist.traced.enable to sys.traced.enable_override" into pi-dev

6 years agoMerge "Animate clock after unlocking" into pi-dev
Lucas Dupin [Wed, 21 Mar 2018 15:02:44 +0000 (15:02 +0000)]
Merge "Animate clock after unlocking" into pi-dev

6 years agoReturn a boolean from the mandatory backup transport setter.
Lenka Trochtova [Fri, 9 Mar 2018 14:47:50 +0000 (15:47 +0100)]
Return a boolean from the mandatory backup transport setter.

Bug: 73813043
Bug: 64012357
Test: cts-tradefed run cts -m CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.DeviceOwnerTest#testGetAndSetMandatoryBackupTransport
Test: cts-tradefed run cts -m CtsBackupHostTestCase --test android.cts.backup.BackupDeviceOwnerHostSideTest

Change-Id: I7f47a41070b767a6be8b986be485b4ad782690cf

6 years agoCategory message is sufficient for message notif
Beverly [Tue, 20 Mar 2018 19:42:12 +0000 (15:42 -0400)]
Category message is sufficient for message notif

If a notification is marked with category message, then
it is sufficient enough to be deemed a "message" notification.
However, to be considered an important message, we still
check if the message is from the default messaging app and has
category = message.

Change-Id: I4f2b502634b805919bdf8b82e3bdf475c0992bdd
Fixes:76019310
Test: AttentionManagementVerifierActivity
Test: atest services/tests/uiservicestests/src/com/android/server/notification/NotificationComparatorTest.java

6 years agoGet rid of upperbound on wireless charging anim
Beverly [Mon, 19 Mar 2018 14:42:06 +0000 (10:42 -0400)]
Get rid of upperbound on wireless charging anim

Previously, if the battery percentage was above 95%, then
wireless charging wouldn't turn the screen on nor play the
wireless charging animation. Now the charging
animation will trigger even if battery percentage is above 95%.

Test: manual
Change-Id: I531334548d41cba8a1a4c28dff484d3f2dfefe01
Fixes: 75029514

6 years agoMore APIs on hidden API light greylist / vendor list
David Brazdil [Wed, 21 Mar 2018 14:27:20 +0000 (14:27 +0000)]
More APIs on hidden API light greylist / vendor list

New scan after updates.

Bug: 64382372
Bug: 76062566
Test: make
Change-Id: Ia2c67222bddccb0b7f607ee0ce8951611a668dc3

6 years agoUsageEvents for slices pinning
Jason Monk [Wed, 14 Mar 2018 13:20:39 +0000 (09:20 -0400)]
UsageEvents for slices pinning

Test: atest frameworks/base/services/tests/servicestests
Bug: 73455786
Change-Id: I6a37f5525c29d3f47aa37e262c8834840309ba44

6 years agoScreenshot: extend scrim under cutout
Adrian Roos [Wed, 21 Mar 2018 13:46:10 +0000 (14:46 +0100)]
Screenshot: extend scrim under cutout

Change-Id: I931f1017650240583eac3423d257e9385a7af097
Fixes: 76012211
Test: Enable cutout, take screenshot, verify scrim does extend under status bar

6 years agoDisplayCutout: Add back always resource
Adrian Roos [Wed, 21 Mar 2018 13:44:13 +0000 (14:44 +0100)]
DisplayCutout: Add back always resource

Temporarily adds back "always" value for layoutInDisplayCutoutMode
until all usages have been migrated to "shortEdges".

Bug: 74983661
Test: make droid
Change-Id: I27189d17129a8dd6e5e9ac3aaf997967df21e8ef

6 years agoRename persist.traced.enable to sys.traced.enable_override
Hector Dearman [Wed, 21 Mar 2018 11:55:19 +0000 (11:55 +0000)]
Rename persist.traced.enable to sys.traced.enable_override

Allowing for both a default in the system
image and an override form the server requires at least two properties.
Given that we're using two properties anyway we can change the
server override to match the pattern of the other flags and not be
a persisted setting.

Test: Manual.
Bug: b/76077784
Merged-In: I98932085430cdeaf4ccd036a0751f119c0cdeb3c
Change-Id: I98932085430cdeaf4ccd036a0751f119c0cdeb3c

6 years agoMerge "Correct exiting pip animation state." into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 13:29:37 +0000 (13:29 +0000)]
Merge "Correct exiting pip animation state." into pi-dev

6 years agoReport native allocation size of AnimatedImageDrawable
Leon Scroggins III [Tue, 20 Mar 2018 15:11:13 +0000 (11:11 -0400)]
Report native allocation size of AnimatedImageDrawable

Bug: 73641604
Test: infeasible

Fix nNativeByteSize's return value to be jlong, instead of long.
Add up the bytes used by the SkAnimatedImage and SkPictures and store
them on the AnimatedImageDrawable for registration.
Note that this is an approximation, and it assumes it will be drawn to a
hardware canvas and animated.

6 years agoMerge "Amend package whitelist." into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 12:52:46 +0000 (12:52 +0000)]
Merge "Amend package whitelist." into pi-dev

6 years agoMerge "DisplayCutout: make dock divider cutout aware" into pi-dev
Adrian Roos [Wed, 21 Mar 2018 12:52:15 +0000 (12:52 +0000)]
Merge "DisplayCutout: make dock divider cutout aware" into pi-dev

6 years agoPreserve letterbox while dragResizing
Adrian Roos [Wed, 21 Mar 2018 12:48:26 +0000 (13:48 +0100)]
Preserve letterbox while dragResizing

Fixes an issue where the letterbox would disappear while entering
and leaving dragResizing, because this clears the hasDrawnState.

To fix this, also treat preserved surfaces as ready to show for
letterboxing purposes.

Change-Id: I4d6e1b1a27d99542370fde8924f126eca1ea80d5
Fixes: 76008154
Test: Enable double cutout, enter split screen, go home, touch slider verify the letterbox does not flicker.

6 years agoMerge "Add RecoverySession importKeyChainSnapshot method" into pi-dev
Robert Berry [Wed, 21 Mar 2018 12:25:37 +0000 (12:25 +0000)]
Merge "Add RecoverySession importKeyChainSnapshot method" into pi-dev

6 years agoMerge "Use the new root cert file under the core/ folder" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 12:10:23 +0000 (12:10 +0000)]
Merge "Use the new root cert file under the core/ folder" into pi-dev

6 years agoRestore state if password change fails
Rubin Xu [Wed, 21 Mar 2018 09:13:44 +0000 (09:13 +0000)]
Restore state if password change fails

Bug: 73299306
Fixes: 73299306
Test: Call LockPatternUtils.clearLock() with wrong password,
      make sure device still unlocks after reboot
Change-Id: I640fc62cbe0c0c57e980455d4f499df02dee0832

6 years agoMerge "Add API WebView.getWebViewLooper()" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 11:59:28 +0000 (11:59 +0000)]
Merge "Add API WebView.getWebViewLooper()" into pi-dev

6 years agoUpdate QS customizer add tiles string.
Amin Shaikh [Wed, 21 Mar 2018 11:39:24 +0000 (07:39 -0400)]
Update QS customizer add tiles string.

Change-Id: Iddea2dd8bd48b980e083fac447e905616031b365
Fixes: 27961533
Test: visual

6 years agoMerge "Enable hidden API blacklist" into pi-dev
Nicolas Geoffray [Wed, 21 Mar 2018 10:50:30 +0000 (10:50 +0000)]
Merge "Enable hidden API blacklist" into pi-dev

6 years agoMerge "Add hidden API uses to light greylist" into pi-dev
David Brazdil [Wed, 21 Mar 2018 10:33:07 +0000 (10:33 +0000)]
Merge "Add hidden API uses to light greylist" into pi-dev

6 years agoAdd RecoverySession importKeyChainSnapshot method
Robert Berry [Mon, 19 Mar 2018 18:00:46 +0000 (18:00 +0000)]
Add RecoverySession importKeyChainSnapshot method

This imports the keys directly into the keystore of LockSettingsService,
allowing them to be accessed via the RecoveryController getKey method.
This is better as it does not expose raw key material to any app.

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

Change-Id: I4991b0cff1d2fa2e5bd0b53a71c096499e93e98b

6 years agoMerge "Temporarily whitelist platform test packages for hidden API" into pi-dev
David Brazdil [Wed, 21 Mar 2018 10:12:57 +0000 (10:12 +0000)]
Merge "Temporarily whitelist platform test packages for hidden API" into pi-dev

6 years agoAmend package whitelist.
Mathew Inwood [Thu, 15 Mar 2018 14:05:53 +0000 (14:05 +0000)]
Amend package whitelist.

Now that Antons cleanup of all packages is complete, we can generate this
whitelist from those packages that specify

  LOCAL_PRIVATE_PLATFORM_APIS := true

This is the resulting list of packages. This change also includes fixes to
the method; previously, packges that didn't specify any certificate may
have been exluded.

Test: Verify that device boots.
This is a cherry-pick of change I1f578322135274b80708d4bb7664f7732ac33cc7
from AOSP.

Bug: 64382372
Change-Id: Iada043cb85f9b3281893ed9a2828771b8f1ef045

6 years agoMerge "Add new Intent start a package's Open By Default page directly." into pi-dev
Ben Lin [Wed, 21 Mar 2018 06:07:45 +0000 (06:07 +0000)]
Merge "Add new Intent start a package's Open By Default page directly." into pi-dev

6 years agoUse the new root cert file under the core/ folder
Bo Zhu [Wed, 21 Mar 2018 05:44:18 +0000 (22:44 -0700)]
Use the new root cert file under the core/ folder

This CL also adds an alias param to the RecoverySession#start method.

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

Change-Id: I870f4f89bd6e319e1687a981aa04af0d23f3c922

6 years agoMerge "Allow statsd to be given empty config." into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 05:34:16 +0000 (05:34 +0000)]
Merge "Allow statsd to be given empty config." into pi-dev

6 years agoMerge "Create task record with window container controller when adding task" into...
Winson Chung [Wed, 21 Mar 2018 04:37:02 +0000 (04:37 +0000)]
Merge "Create task record with window container controller when adding task" into pi-dev

6 years agoMerge "Stop creating PrecomputedText in StaticLayout" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 04:28:54 +0000 (04:28 +0000)]
Merge "Stop creating PrecomputedText in StaticLayout" into pi-dev

6 years agodocs: fixing typo in reference document
kopriva [Wed, 21 Mar 2018 03:11:31 +0000 (20:11 -0700)]
docs: fixing typo in reference document

Test: make ds-docs

Bug: 36998786
Change-Id: I7b0f5623eec608436eacd5d27d63a3f6b41cc419

6 years agoMerge changes from topic "SoundTriggerJobService-steps" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 03:27:56 +0000 (03:27 +0000)]
Merge changes from topic "SoundTriggerJobService-steps" into pi-dev

* changes:
  Throttle number of sound trigger operations / day
  Add SoundTriggerDetectionService
  Expose SoundTriggerManager and SoundTrigger APIs

6 years agoMerge "Fix confusing Log.e message in SpellCheckerSession" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 03:25:49 +0000 (03:25 +0000)]
Merge "Fix confusing Log.e message in SpellCheckerSession" into pi-dev

6 years agoMerge "Screen off animation" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 02:57:19 +0000 (02:57 +0000)]
Merge "Screen off animation" into pi-dev

6 years agoMerge "Get current and default brightness configs." into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 02:31:19 +0000 (02:31 +0000)]
Merge "Get current and default brightness configs." into pi-dev

6 years agoAnimate clock after unlocking
Lucas Dupin [Tue, 20 Mar 2018 04:32:19 +0000 (21:32 -0700)]
Animate clock after unlocking

Change-Id: I660e493e3909bf74a9d6b8f60009899ebf5dffe5
Fixes: 74586970
Test: visual

6 years agoMerge "Fix docs for LocationRequest#setLowPowerMode()" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 02:20:10 +0000 (02:20 +0000)]
Merge "Fix docs for LocationRequest#setLowPowerMode()" into pi-dev