OSDN Git Service

android-x86/frameworks-base.git
6 years agoAdd update packages permission
Chad Brubaker [Thu, 11 Jan 2018 22:22:15 +0000 (14:22 -0800)]
Add update packages permission

This subset of INSTALL_PACKAGES allows a privileged application to
install updates to existing applications but not install new
applications.

When combined with INSTALL_SELF_UPDATES this allows privileged apps to
be granted finely scoped install privileges based on their intended
usage instead of the more broad INSTALL_PACKAGES permission.

Test: WIP
Bug: 68731532
Change-Id: Ifbb6f5a18d9e8ff06270fd79ed031b99242c6fa3

6 years agoMerge "ScanResult: Add radio chain information"
TreeHugger Robot [Mon, 8 Jan 2018 19:06:11 +0000 (19:06 +0000)]
Merge "ScanResult: Add radio chain information"

6 years agoMerge "Make sure updateSurfaceSize gets applied after changing config"
TreeHugger Robot [Mon, 8 Jan 2018 19:05:07 +0000 (19:05 +0000)]
Merge "Make sure updateSurfaceSize gets applied after changing config"

6 years agoMerge "Remove all references to FDE enable wipe"
TreeHugger Robot [Mon, 8 Jan 2018 18:59:45 +0000 (18:59 +0000)]
Merge "Remove all references to FDE enable wipe"

6 years agoMerge "Move signing data into SigningDetails container"
Patrick Baumann [Mon, 8 Jan 2018 18:56:40 +0000 (18:56 +0000)]
Merge "Move signing data into SigningDetails container"

6 years agoMerge "Log vibrations in realtime, not the monotonic clock base."
TreeHugger Robot [Mon, 8 Jan 2018 18:05:39 +0000 (18:05 +0000)]
Merge "Log vibrations in realtime, not the monotonic clock base."

6 years agoMerge "Fix canAffectSystemUiFlags"
Jorim Jaggi [Mon, 8 Jan 2018 17:19:54 +0000 (17:19 +0000)]
Merge "Fix canAffectSystemUiFlags"

6 years agoScanResult: Add radio chain information
Roshan Pius [Fri, 27 Oct 2017 22:12:51 +0000 (15:12 -0700)]
ScanResult: Add radio chain information

On devices with multiple radio chains, each scan result could be
received using different combination of the available radio chains
(DBS, MCC). Add a new parameter in the scan result to convey this meta
information about the scan result.

Bug: 68335251
Test: Unit tests
Change-Id: I1fc97745b9e74b768b67b0c80e52ce4a13e69527

6 years agoMerge "Make sure app transition are started simultaneously"
Jorim Jaggi [Mon, 8 Jan 2018 17:13:50 +0000 (17:13 +0000)]
Merge "Make sure app transition are started simultaneously"

6 years agoMerge "Revert "Avoid setting size/position on Transaction if not needed""
Jorim Jaggi [Mon, 8 Jan 2018 17:05:23 +0000 (17:05 +0000)]
Merge "Revert "Avoid setting size/position on Transaction if not needed""

6 years agoMerge "Remove unused target legacy.test.stubs"
Paul Duffin [Mon, 8 Jan 2018 16:46:39 +0000 (16:46 +0000)]
Merge "Remove unused target legacy.test.stubs"

6 years agoRevert "Avoid setting size/position on Transaction if not needed"
Jorim Jaggi [Mon, 8 Jan 2018 16:33:30 +0000 (17:33 +0100)]
Revert "Avoid setting size/position on Transaction if not needed"

Reason: Causes weird issues with transaction reordering

Fixes: 71694437
Fixes: 71692657
This reverts commit 88f620534f9fe2c3a32765b2a34d3092ab889b1a.

6 years agoMerge "Fix window move animation duration scale"
Jorim Jaggi [Mon, 8 Jan 2018 16:33:08 +0000 (16:33 +0000)]
Merge "Fix window move animation duration scale"

6 years agoMake sure updateSurfaceSize gets applied after changing config
Jorim Jaggi [Mon, 8 Jan 2018 15:23:00 +0000 (16:23 +0100)]
Make sure updateSurfaceSize gets applied after changing config

Otherwise we'll apply the old size.

Test: Rotate screen, make sure size is correct.
Test: go/wm-smoke
Change-Id: Ic9474952801241a16c344175104ec2b5d45e7ec8

6 years agoMerge "Add null checking in onUidRemovedLocked"
TreeHugger Robot [Mon, 8 Jan 2018 16:18:50 +0000 (16:18 +0000)]
Merge "Add null checking in onUidRemovedLocked"

6 years agoLog vibrations in realtime, not the monotonic clock base.
Michael Wright [Mon, 8 Jan 2018 15:54:05 +0000 (15:54 +0000)]
Log vibrations in realtime, not the monotonic clock base.

Also, keep more vibration logs around for debugging by default and do a
bit of clean up in VibratorService.

Bug: 70283106
Test: flash, run dumpsys vibrator
Change-Id: Ib541be0ed97cdc6e2fda278fa59896d2fde20228

6 years agoMake sure app transition are started simultaneously
Jorim Jaggi [Fri, 5 Jan 2018 17:28:36 +0000 (18:28 +0100)]
Make sure app transition are started simultaneously

Test: go/wm-smoke
Test: Lock device in split screen, make sure everything is
absolutely synchronized when unlocking

Bug: 64674361
Change-Id: I25352d7a6b8beb9729310dd525710dca20a78166

6 years agoAdd null checking in onUidRemovedLocked
Tony Mak [Mon, 8 Jan 2018 14:35:34 +0000 (14:35 +0000)]
Add null checking in onUidRemovedLocked

Bug: 71697620

Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.CrossProfileAppsHostSideTest
Change-Id: I6d7f70c01ab3d6b077ffeb9a076d46159a633682

6 years agoMerge "Clean-up brightness configuration."
TreeHugger Robot [Mon, 8 Jan 2018 13:50:50 +0000 (13:50 +0000)]
Merge "Clean-up brightness configuration."

6 years agoFix window move animation duration scale
Jorim Jaggi [Mon, 8 Jan 2018 13:38:53 +0000 (14:38 +0100)]
Fix window move animation duration scale

Test: go/wm-smoke
Test: Adjust duration scale, observe windows are moving slower

Change-Id: Iac08be3341c5f80b2723bee23f974ebebdcd07fa
Fixes: 71683150

6 years agoFix canAffectSystemUiFlags
Jorim Jaggi [Mon, 8 Jan 2018 12:16:59 +0000 (13:16 +0100)]
Fix canAffectSystemUiFlags

While trying to simplify the method, a bit too much was
simplified. We still need the translucent check in all cases.

Test: go/wm-smoke
Test: WindowStateTests

Change-Id: Ibd4275ddb80a9ef768a0c39ac53a9edeea431411
Fixes: 71512667

6 years agoMerge "Copy child window list when destroying surface"
Jorim Jaggi [Mon, 8 Jan 2018 12:02:07 +0000 (12:02 +0000)]
Merge "Copy child window list when destroying surface"

6 years agoMerge "Start BackupManagerConstants content observer"
TreeHugger Robot [Mon, 8 Jan 2018 11:45:49 +0000 (11:45 +0000)]
Merge "Start BackupManagerConstants content observer"

6 years agoStart BackupManagerConstants content observer
Bartosz Fabianowski [Fri, 5 Jan 2018 10:56:26 +0000 (11:56 +0100)]
Start BackupManagerConstants content observer

BackupManagerConstants has a content observer that is meant to be
notified whenever backup settings change. However, that observer is
never registered.

Bug: 71622864
Test: cts-tradefed run cts-dev --module CtsBackupHostTestCase
Change-Id: Icbd90ef3af83dd2f29e26a5d787505bcf5681154

6 years agoMerge "Tidy up DexLoggerIntegrationTests."
Alan Stokes [Mon, 8 Jan 2018 09:48:43 +0000 (09:48 +0000)]
Merge "Tidy up DexLoggerIntegrationTests."

6 years agoMerge "Add AndroidTest.xml for privacy tests."
Peter Visontay [Mon, 8 Jan 2018 09:12:44 +0000 (09:12 +0000)]
Merge "Add AndroidTest.xml for privacy tests."

6 years agoMerge "Parameter to hide bottom affordances"
TreeHugger Robot [Mon, 8 Jan 2018 07:33:19 +0000 (07:33 +0000)]
Merge "Parameter to hide bottom affordances"

6 years agoMerge "[RTT2] Clean-up the RTT service name"
TreeHugger Robot [Mon, 8 Jan 2018 06:30:57 +0000 (06:30 +0000)]
Merge "[RTT2] Clean-up the RTT service name"

6 years agoMerge "Add DataUnit to clarify SI-vs-IEC units."
Jeff Sharkey [Mon, 8 Jan 2018 02:08:17 +0000 (02:08 +0000)]
Merge "Add DataUnit to clarify SI-vs-IEC units."

6 years agoAdd DataUnit to clarify SI-vs-IEC units.
Jeff Sharkey [Sun, 7 Jan 2018 23:47:31 +0000 (16:47 -0700)]
Add DataUnit to clarify SI-vs-IEC units.

Mirrors the design of TimeUnit and ChronoUnit which many developers
are already familiar with, making it easy to pick up and use.

Yes, this is an enum.

Bug: 70915728
Test: bit FrameworksCoreTests:android.util.DataUnitTest
Change-Id: Id0cfdac5c81ed89c3c9ece23c964acba4a4f8471

6 years agoMerge "Notifier: Chained attribution support for noteLongPartialWakeLock[finish|start]"
TreeHugger Robot [Sun, 7 Jan 2018 23:09:27 +0000 (23:09 +0000)]
Merge "Notifier: Chained attribution support for noteLongPartialWakeLock[finish|start]"

6 years agoMerge "Add permission necessary to use RecoverableKeyStoreLoader API."
TreeHugger Robot [Sat, 6 Jan 2018 21:28:23 +0000 (21:28 +0000)]
Merge "Add permission necessary to use RecoverableKeyStoreLoader API."

6 years agoAdd API to remove recoverable keys
Robert Berry [Sat, 6 Jan 2018 19:16:25 +0000 (19:16 +0000)]
Add API to remove recoverable keys

Test: adb shell am instrument -w -e package com.android.server.locksettings.recoverablekeystore com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner
Change-Id: Ib69e730467974d34ffe4a700bd6aaf4543a524ae

6 years agoMerge "Check the public key bytes of veriferPublicKey matche the ones in vaultParams"
TreeHugger Robot [Sat, 6 Jan 2018 18:41:05 +0000 (18:41 +0000)]
Merge "Check the public key bytes of veriferPublicKey matche the ones in vaultParams"

6 years agoRemove unused target legacy.test.stubs
Paul Duffin [Fri, 5 Jan 2018 16:04:44 +0000 (16:04 +0000)]
Remove unused target legacy.test.stubs

This target is no longer used so can be safely removed.

Bug: 30188076
Test: make checkbuild
Change-Id: Id15d6916c33647d56cb85bbc4cc926c89ff3d4bd

6 years agoMerge "Fix a few things with the loadtest app."
TreeHugger Robot [Sat, 6 Jan 2018 04:37:59 +0000 (04:37 +0000)]
Merge "Fix a few things with the loadtest app."

6 years agoTurn default gradient into solid black am: 12dad0c4fc
Lucas Dupin [Sat, 6 Jan 2018 04:29:24 +0000 (04:29 +0000)]
Turn default gradient into solid black am: 12dad0c4fc
am: 555e680089  -s ours

Change-Id: Ieafc75f5f6d7aeb05b4a03cdd83cf48ece650b69

6 years agoTurn default gradient into solid black
Lucas Dupin [Sat, 6 Jan 2018 03:34:46 +0000 (03:34 +0000)]
Turn default gradient into solid black
am: 12dad0c4fc

Change-Id: I6f5c702487f46395bd1930d943782d1a9b6bac5d

6 years agoMerge "Turn on Settings security settings v2."
TreeHugger Robot [Sat, 6 Jan 2018 03:31:24 +0000 (03:31 +0000)]
Merge "Turn on Settings security settings v2."

6 years agoMerge "pullers now cache data to throttle frequent pull requests. all pullers have...
TreeHugger Robot [Sat, 6 Jan 2018 01:30:21 +0000 (01:30 +0000)]
Merge "pullers now cache data to throttle frequent pull requests. all pullers have a default 1s cool down before next pull. We can adjust these later. Also add puller stats in StatsdStats"

6 years agoMerge "Re-commit: Smooth scroll RecyclerView on a11y ACTION_SCROLL_*"
TreeHugger Robot [Sat, 6 Jan 2018 01:16:31 +0000 (01:16 +0000)]
Merge "Re-commit: Smooth scroll RecyclerView on a11y ACTION_SCROLL_*"

6 years agoFix a few things with the loadtest app.
Stefan Lafon [Fri, 5 Jan 2018 06:03:29 +0000 (22:03 -0800)]
Fix a few things with the loadtest app.

Test: Loadtest app is running fine.

Change-Id: I834f6c618f5a6b0b17ecd5592e2ab2209ce7b94a

6 years agoMerge "Added GlobalSettingsToPropertiesMapper"
Fyodor Kupolov [Sat, 6 Jan 2018 00:54:41 +0000 (00:54 +0000)]
Merge "Added GlobalSettingsToPropertiesMapper"

6 years agoMerge "Remove @SystemApi annotation from private or package-private members"
TreeHugger Robot [Sat, 6 Jan 2018 00:54:32 +0000 (00:54 +0000)]
Merge "Remove @SystemApi annotation from private or package-private members"

6 years agoCheck the public key bytes of veriferPublicKey matche the ones in
Bo Zhu [Fri, 5 Jan 2018 22:50:52 +0000 (14:50 -0800)]
Check the public key bytes of veriferPublicKey matche the ones in
vaultParams

Test: adb shell am instrument -w -e package
com.android.server.locksettings.recoverablekeystore
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

Change-Id: Iac26de202be88c8328619b03dd59ab742aa7e4c3

6 years agopullers now cache data to throttle frequent pull requests.
Chenjie Yu [Mon, 18 Dec 2017 23:15:34 +0000 (15:15 -0800)]
pullers now cache data to throttle frequent pull requests.
all pullers have a default 1s cool down before next pull.
We can adjust these later.
Also add puller stats in StatsdStats

Test: unit test
Change-Id: I71894a24c41e059d841591312dbb852f54387b7d

6 years agoMerge "Single color scrim"
TreeHugger Robot [Fri, 5 Jan 2018 23:22:32 +0000 (23:22 +0000)]
Merge "Single color scrim"

6 years agoTurn default gradient into solid black
Lucas Dupin [Mon, 30 Oct 2017 18:09:25 +0000 (11:09 -0700)]
Turn default gradient into solid black

Test: visual
Bug: 66957450
Change-Id: I6a34a35912e4dd4594565f88636ce89689d26f2f
(cherry picked from commit e7476addecb4fec6abd08cfb7aa27c473ce5c1f0)

6 years agoMerge "Refactor PlatformKeyManger to remove mUserId to fix two tests that fail on...
TreeHugger Robot [Fri, 5 Jan 2018 22:59:48 +0000 (22:59 +0000)]
Merge "Refactor PlatformKeyManger to remove mUserId to fix two tests that fail on clean devices without secure screenlocks"

6 years agoMerge "Ancestral restore versioning for PackageManagerBackupAgent"
Michal Karpinski [Fri, 5 Jan 2018 22:46:08 +0000 (22:46 +0000)]
Merge "Ancestral restore versioning for PackageManagerBackupAgent"

6 years agoMerge "Add config flag to enable/disable nav bar auto dim"
TreeHugger Robot [Fri, 5 Jan 2018 22:40:46 +0000 (22:40 +0000)]
Merge "Add config flag to enable/disable nav bar auto dim"

6 years agoMerge "Avoid overwriting bucket in Gauge metric producer as anomaly tracker needs...
TreeHugger Robot [Fri, 5 Jan 2018 22:23:36 +0000 (22:23 +0000)]
Merge "Avoid overwriting bucket in Gauge metric producer as anomaly tracker needs past buckets."

6 years agoMerge "Prevents scheduling sysui frames on smaller devices with no sim"
TreeHugger Robot [Fri, 5 Jan 2018 22:04:22 +0000 (22:04 +0000)]
Merge "Prevents scheduling sysui frames on smaller devices with no sim"

6 years agoMerge "Enable/disable fallback line spacing in TextView"
Siyamed Sinir [Fri, 5 Jan 2018 22:02:07 +0000 (22:02 +0000)]
Merge "Enable/disable fallback line spacing in TextView"

6 years agoMerge "Carrier identification config updater"
Chen Xu [Fri, 5 Jan 2018 21:56:42 +0000 (21:56 +0000)]
Merge "Carrier identification config updater"

6 years agoSingle color scrim
Lucas Dupin [Fri, 5 Jan 2018 19:36:51 +0000 (11:36 -0800)]
Single color scrim

Removed gradient and kept brightest color.

Test: atest ./tests/Internal/src/com/android/internal/colorextraction/types/TonalTest.java
Test: visual
Bug: 64122537
Change-Id: I75cba32172a5869f3d8a57ab9955bffcba60db76

6 years agoMerge "Implement part of ITunerSession interface."
Tomasz Wasilczyk [Fri, 5 Jan 2018 21:26:20 +0000 (21:26 +0000)]
Merge "Implement part of ITunerSession interface."

6 years agoTurn on Settings security settings v2.
Fan Zhang [Fri, 5 Jan 2018 21:10:16 +0000 (13:10 -0800)]
Turn on Settings security settings v2.

Bug: 32953042
Test: rebuild
Change-Id: Ia21d2947306b567dc9580c816c0261836356a281

6 years agoRefactor PlatformKeyManger to remove mUserId to fix two tests that fail
Bo Zhu [Fri, 5 Jan 2018 06:42:36 +0000 (22:42 -0800)]
Refactor PlatformKeyManger to remove mUserId to fix two tests that fail
on clean devices without secure screenlocks

The mUserId is removed to allow a mocked PlatformKeyManager to be passed
into RecoverableKeyStoreManager for tests.

Test: adb shell am instrument -w -e package
com.android.server.locksettings.recoverablekeystore
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

Change-Id: I9b1fda3c7d869b683cd71cb81ea88da5d995ace9

6 years agoParameter to hide bottom affordances
Lucas Dupin [Fri, 5 Jan 2018 20:57:27 +0000 (12:57 -0800)]
Parameter to hide bottom affordances

Created configurable xml parameter to hide the mic/phone
affordance at the bottom of the lock screen, fixed minor
animation issue where circle would still expand if affordance
isn't visible and set default visibility to false.

Test: Double tap to open camera from AoD, lock screen and launcher
Test: visual, set config, look at lock screen
Bug: 64155983
Change-Id: If5cd2c2c369578480c0ad4e8a98970bcfabd5f3e

6 years agoMerge "WebView: clarify docs regarding base64 encoding"
TreeHugger Robot [Fri, 5 Jan 2018 20:55:02 +0000 (20:55 +0000)]
Merge "WebView: clarify docs regarding base64 encoding"

6 years agoMerge "Audio focus: definitive loss of focus removes client from stack"
Jean-Michel Trivi [Fri, 5 Jan 2018 20:20:46 +0000 (20:20 +0000)]
Merge "Audio focus: definitive loss of focus removes client from stack"

6 years agoAvoid overwriting bucket in Gauge metric producer as anomaly tracker needs past buckets.
Yangster-mac [Fri, 5 Jan 2018 20:00:37 +0000 (12:00 -0800)]
Avoid overwriting bucket in Gauge metric producer as anomaly tracker needs past buckets.

Test: statsd unit test passed.
Change-Id: I3c76846da169b36c447c77db76b3deeda87e9e6e

6 years agoMerge "Bugfix: wakeup alarms logging"
TreeHugger Robot [Fri, 5 Jan 2018 19:29:17 +0000 (19:29 +0000)]
Merge "Bugfix: wakeup alarms logging"

6 years agoMerge "Ensure the IME container is never magnified."
Rob Carr [Fri, 5 Jan 2018 19:15:54 +0000 (19:15 +0000)]
Merge "Ensure the IME container is never magnified."

6 years agoMerge "Updates atoms.proto for statsd."
TreeHugger Robot [Fri, 5 Jan 2018 18:44:54 +0000 (18:44 +0000)]
Merge "Updates atoms.proto for statsd."

6 years agoMerge "Remove transport dir name from TransportClient"
TreeHugger Robot [Fri, 5 Jan 2018 18:35:55 +0000 (18:35 +0000)]
Merge "Remove transport dir name from TransportClient"

6 years agoCarrier identification config updater
fionaxu [Fri, 29 Dec 2017 00:41:52 +0000 (16:41 -0800)]
Carrier identification config updater

Bug: 64131637
Test: test_carrier_id_full.sh samples/carrier-ids-sample.pb
Change-Id: I355e90292ef2073e403f13fb0f1d545e0f503c2f

6 years agoMerge "Use ServiceSpecificException in RecoverableKeyStoreMgr"
TreeHugger Robot [Fri, 5 Jan 2018 18:24:14 +0000 (18:24 +0000)]
Merge "Use ServiceSpecificException in RecoverableKeyStoreMgr"

6 years agoMerge "Binding on-demand #8: Miscellaneous usages"
TreeHugger Robot [Fri, 5 Jan 2018 18:21:53 +0000 (18:21 +0000)]
Merge "Binding on-demand #8: Miscellaneous usages"

6 years agoMove signing data into SigningDetails container
Patrick Baumann [Tue, 19 Dec 2017 18:17:21 +0000 (10:17 -0800)]
Move signing data into SigningDetails container

This change replaces fields from Package that relate to signing
with a single SigningDetails container. It does the same with
InstallArgs and InstallParams. This simplifies much of the code
that would have otherwise relied on synchronizing many fields and
will enable PackageManagerService to make install-time descisions
based on package data instead of forcing it to be part of package
parsing.

Test: android.appsecurity.cts.PkgInstallSignatureVerificationTest passes.
Bug: 68860689
Change-Id: I53bc8c6908b61a54004d1b1d45637be9710ae72f

6 years agoRemove transport dir name from TransportClient
Bernardo Rufino [Thu, 4 Jan 2018 14:16:32 +0000 (14:16 +0000)]
Remove transport dir name from TransportClient

To be able to re-use the TransportClient infra for transport
registration, I need to remove transport dir name property from
TransportClient because it's not available before registration
itself. As a result callsites that used getTransportDirName()
from TransportClient will have to go through the
TransportManager for that. Bryan suggested that the
TransportClient wasn't the best place for the property before.

Ref: http://go/br-binding-on-demand
Bug: 17140907
Test: m -j RunFrameworksServicesTests
Change-Id: I3fa335faf97d63adfad1a929336073a70fc8bc02

6 years agoBinding on-demand #8: Miscellaneous usages
Bernardo Rufino [Tue, 2 Jan 2018 16:01:53 +0000 (16:01 +0000)]
Binding on-demand #8: Miscellaneous usages

Migrate usages of the transport binder to binding on-demand:
* getDestinationString()
* isAppEligibleForBackup()
* dump()

For getDestinationString() we'll be introducing an invisible bug for
people that haven't updated GMSCore to include the usage of
updateTransportAttributes() API introduced in earlier CL. The bug is
that that text won't change, it'll remain constant. It's invisible
because currently only place that uses that method is Settings in some
circumstances that depend on the transport, and those circunstances
don't happen with our transports. Check http://ag/1831025.

For isAppEligibleForBackup(), a new filterAppsEligibleForBackup() is
created and there we bind on-demand.

Change-Id: Idc9e31f0e8eda8531e204c05a84fafdaf0247d08
Ref: http://go/br-binding-on-demand
Bug: 17140907
Test: adb shell dumpsys backup, observe destination of transports
Test: adb shell bmgr backupnow --all, observe only eligible apps got backed-up
Test: Force-loaded settings screen and observed destination string
Test: m -j RunFrameworksServicesRoboTests

6 years agoMerge "IWYU for sk_malloc_throw"
Mike Reed [Fri, 5 Jan 2018 16:33:18 +0000 (16:33 +0000)]
Merge "IWYU for sk_malloc_throw"

6 years agoMerge "[AWARE] Uhide the RTT in context of Aware discovery API"
Etan Cohen [Fri, 5 Jan 2018 16:00:15 +0000 (16:00 +0000)]
Merge "[AWARE] Uhide the RTT in context of Aware discovery API"

6 years agoIWYU for sk_malloc_throw
Mike Reed [Fri, 5 Jan 2018 15:25:08 +0000 (10:25 -0500)]
IWYU for sk_malloc_throw

Test: build

Change-Id: I20155994d8d22445afbe9ab9949ae8cce6871a0b

6 years agoCopy child window list when destroying surface
Jorim Jaggi [Fri, 5 Jan 2018 14:40:32 +0000 (15:40 +0100)]
Copy child window list when destroying surface

When removing a child window, we may trigger a layout pass via:

WindowState.removeImmediately calls
WMS.postWindowRemoveCleanupLocked calls
WindowPlacer.performSurfacePlacement

Then, under certain conditions, we either remove a window from
mService.mForceRemoves or mService.mPendingRemove. If a child
is in any of these two lists, it will lead to a crash.

Test: go/wm-smoke
Change-Id: I4eac6a6ec9092521542590fad1aa9643818b2fe6
Fixes: 71499373

6 years agoTidy up DexLoggerIntegrationTests.
Alan Stokes [Fri, 5 Jan 2018 14:36:00 +0000 (14:36 +0000)]
Tidy up DexLoggerIntegrationTests.

Addressing comments from ag/3381420.
I also fixed two lines that were slightly too long.

Bug: 63927552
Test: atest DexLoggerIntegrationTests
Change-Id: I258d0aa2068c76175d30c0be9ba95482d3db9437

6 years agoMerge "Mark tests flaky"
Jorim Jaggi [Fri, 5 Jan 2018 14:34:06 +0000 (14:34 +0000)]
Merge "Mark tests flaky"

6 years agoDefine a @SystemApi string ID for each App Op.
Peter Visontay [Mon, 18 Dec 2017 20:34:03 +0000 (20:34 +0000)]
Define a @SystemApi string ID for each App Op.

Internal numeric op codes may change, but the public string IDs must consistently refer to the same operation.

Bug: 63907873
Test: Ran the tests being added in this this topic: make CtsPermissionTestCases -j32 && cts-tradefed run singleCommand cts-dev -m CtsPermissionTestCases --test android.permission.cts.AppOpsTest
Change-Id: I12bd9e2384d938120a403c4d76be4c1479ffd4ee

6 years agoUse ServiceSpecificException in RecoverableKeyStoreMgr
Robert Berry [Fri, 5 Jan 2018 12:43:13 +0000 (12:43 +0000)]
Use ServiceSpecificException in RecoverableKeyStoreMgr

This is so we can better convey error codes to the client.

Test: adb shell am instrument -w -e package
com.android.server.locksettings.recoverablekeystore
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

Change-Id: I02d0ed07e895d3a0297f77934830e19bb6abf43e

6 years agoMark tests flaky
Jorim Jaggi [Fri, 5 Jan 2018 12:14:39 +0000 (13:14 +0100)]
Mark tests flaky

Bug: 71602314
Change-Id: Iebbc8d6bf4e2a528bf19f84782a892f506ca75a8

6 years agoMerge "Add createNewItem() to RingBuffer util class."
TreeHugger Robot [Fri, 5 Jan 2018 10:59:28 +0000 (10:59 +0000)]
Merge "Add createNewItem() to RingBuffer util class."

6 years agoMerge "BatteryStatsImpl: Support chained attribution for BT events."
Narayan Kamath [Fri, 5 Jan 2018 09:16:21 +0000 (09:16 +0000)]
Merge "BatteryStatsImpl: Support chained attribution for BT events."

6 years agoNotifier: Chained attribution support for noteLongPartialWakeLock[finish|start]
Narayan Kamath [Tue, 2 Jan 2018 18:57:17 +0000 (18:57 +0000)]
Notifier: Chained attribution support for noteLongPartialWakeLock[finish|start]

Test: BatteryStatsNoteTest
Bug: 62390666
Change-Id: I1f393b475cb18171f4d24f8774f3509a00e2a404

6 years agoMerge "BatteryStats: Add WorkChain support for WiFi events."
Narayan Kamath [Fri, 5 Jan 2018 09:02:18 +0000 (09:02 +0000)]
Merge "BatteryStats: Add WorkChain support for WiFi events."

6 years agoMerge "Remove unused userId parameter from RecoverableKeyStoreManager."
TreeHugger Robot [Fri, 5 Jan 2018 08:22:18 +0000 (08:22 +0000)]
Merge "Remove unused userId parameter from RecoverableKeyStoreManager."

6 years agoMerge "Do not block ambient mode IPC"
TreeHugger Robot [Fri, 5 Jan 2018 07:19:13 +0000 (07:19 +0000)]
Merge "Do not block ambient mode IPC"

6 years agoMerge "Use the configs from disk after reboot and separate out ConfigManager startup...
Howard Ro [Fri, 5 Jan 2018 06:44:38 +0000 (06:44 +0000)]
Merge "Use the configs from disk after reboot and separate out ConfigManager startup for unit test to avoid reading configs for tests"

6 years agoWebView: clarify docs regarding base64 encoding
Nate Fischer [Fri, 5 Jan 2018 05:57:33 +0000 (21:57 -0800)]
WebView: clarify docs regarding base64 encoding

Docs change only, no change to logic.

This CL provides a better loadData() example, using base64 encoding.
This uses the Base64 class already provided by Android to automatically
handle the encoding.

This also changes the percent-encoding docs to:

 * Link to the official RFC
 * No longer provide examples of characters to encode (one example was
   incorrect, '\' is not %27)

Bug: 70555565
Test: make docs (manually verify things look good)
Test: I built a sample app and tested Base64#encodetoString to make sure the flags are correct
Change-Id: If9f810e6b568efdc5d1ad84ac64f2abf3788f40b

6 years agoDo not block ambient mode IPC
Lucas Dupin [Thu, 4 Jan 2018 22:28:52 +0000 (14:28 -0800)]
Do not block ambient mode IPC

This can happen asynchronously, blocking may lower
frame rate.

Bug: 70857288
Test: press power button, look at AoD wallpaper
Change-Id: I453082adc0d5f58eb8e7cbf7663fca0cd0183075

6 years agoBug fix: gauge metric producer does not need the atom id parameter.
Yangster-mac [Thu, 4 Jan 2018 21:28:38 +0000 (13:28 -0800)]
Bug fix: gauge metric producer does not need the atom id parameter.

Test: statsd unit test passed
Change-Id: Ifd1e2f7a05a03886eb227ac1ae0e30b884e49f0c

6 years agoMerge "FBE devices now fully support adoptable storage."
Jeff Sharkey [Fri, 5 Jan 2018 03:53:56 +0000 (03:53 +0000)]
Merge "FBE devices now fully support adoptable storage."

6 years agoMerge "Intent to manage subscription plans."
Jeff Sharkey [Fri, 5 Jan 2018 03:49:06 +0000 (03:49 +0000)]
Merge "Intent to manage subscription plans."

6 years agoEnable/disable fallback line spacing in TextView
Siyamed Sinir [Thu, 4 Jan 2018 03:39:39 +0000 (19:39 -0800)]
Enable/disable fallback line spacing in TextView

Add API to enable/disable fallback line spacing in TextView.

Test: bit FrameworksCoreTests:android.widget.TextViewFallbackLineSpacingTest

Bug: 65161512

Change-Id: I76ba7bdb7d25c7a94653144536295c50d8b0e495

6 years agoImplement part of ITunerSession interface.
Tomasz Wasilczyk [Thu, 4 Jan 2018 20:26:40 +0000 (12:26 -0800)]
Implement part of ITunerSession interface.

Methods not covered are related to tuning or program list.

This makes 11 passing test cases and still 6 failing for the new HAL.

Test: instrumentation
Bug: 69958777
Change-Id: I2631d66d05774adb9e8fd42c8309e16f832c4478

6 years agoMerge "Move Field proto out of stats_log.proto to keep it clean."
TreeHugger Robot [Fri, 5 Jan 2018 02:45:33 +0000 (02:45 +0000)]
Merge "Move Field proto out of stats_log.proto to keep it clean."

6 years agoEnsure the IME container is never magnified.
Robert Carr [Fri, 5 Jan 2018 02:27:42 +0000 (18:27 -0800)]
Ensure the IME container is never magnified.

The existing logic works based on the window types inside
containers but if we magnify the IME container before the
IME window is ever added then things can get out of whack.

Bug: 70640763
Test: Manual
Change-Id: Icb937c2e1c37a77190eed1c6248277036b7c0e6d

6 years agoMerge "Account: Fix the risk of sqliteconnection leak" am: 766f0a4981 am: 130d5e3915
Fyodor Kupolov [Fri, 5 Jan 2018 02:18:24 +0000 (02:18 +0000)]
Merge "Account: Fix the risk of sqliteconnection leak" am: 766f0a4981 am: 130d5e3915
am: 28c72b43d9

Change-Id: Ibcf49239bae44081d2c8e10fe05ad3f6a07b52a1

6 years agoMerge "Account: Fix the risk of sqliteconnection leak" am: 766f0a4981
Fyodor Kupolov [Fri, 5 Jan 2018 02:10:46 +0000 (02:10 +0000)]
Merge "Account: Fix the risk of sqliteconnection leak" am: 766f0a4981
am: 130d5e3915

Change-Id: I89eb0c20c06c7b077b59a4aa66b6693014192e43