OSDN Git Service

android-x86/frameworks-base.git
5 years agoNot showing menu buttons for any headsup notification
shawnlin [Wed, 15 May 2019 12:06:10 +0000 (20:06 +0800)]
Not showing menu buttons for any headsup notification

Since swipe to remove notification behavior was rolled back to P which allows user to
remove a notification in both direction. We should not showing menu
buttons for any heads up notification either as in P.

Now it depends on the mIsUsingBidirectionalSwipe flag of NotificationMenuRow
to show menu buttons & the background.

Bug: 132668574
Test: send headsup notifications and swipe left/right
case and swipe left/right to check the background.

Change-Id: I5b96faed05d6184e02a8ede08f5e7c04ba5c456a

5 years agoMerge "Ignore NetworkTest when running CtsNetTestCases in instant app mode" into...
Paul Hu [Fri, 17 May 2019 06:46:36 +0000 (06:46 +0000)]
Merge "Ignore NetworkTest when running CtsNetTestCases in instant app mode" into qt-dev

5 years agoMerge changes I38958555,Ie6879de8 into qt-dev
Josh Tsuji [Fri, 17 May 2019 03:20:44 +0000 (03:20 +0000)]
Merge changes I38958555,Ie6879de8 into qt-dev

* changes:
  Align bubble behavior with DND settings.
  Don't animate new bubbles in until the stack pos is set.

5 years agoAlign bubble behavior with DND settings.
Joshua Tsuji [Mon, 13 May 2019 17:57:38 +0000 (13:57 -0400)]
Align bubble behavior with DND settings.

As described at https://docs.google.com/presentation/d/1mPxqu8QBWpz-ieWkJGyLzBLcfAJNVUn8sxS1m58ogn8/edit#slide=id.g51f96ac1fd_25_230.

Due to b/132699005, the 'new' dot won't appear if 'Don't pop notifications on screen' is selected in DND restrictions.

Test: atest SystemUITests
Bug: 123540994
Fixes: 123540994
Change-Id: I38958555721fa3d9dd44c451c32c28d9a73415f5

5 years agoMerge "Do not mark in-process NetworkStack as persistent" into qt-dev
Remi NGUYEN VAN [Fri, 17 May 2019 02:29:16 +0000 (02:29 +0000)]
Merge "Do not mark in-process NetworkStack as persistent" into qt-dev

5 years agoMerge "Tracks app window animation endpoint" into qt-dev
Ian Chang [Thu, 16 May 2019 23:59:25 +0000 (23:59 +0000)]
Merge "Tracks app window animation endpoint" into qt-dev

5 years agoMerge "Fixed concurrent access network registration info" into qt-dev
Jack Yu [Thu, 16 May 2019 23:32:25 +0000 (23:32 +0000)]
Merge "Fixed concurrent access network registration info" into qt-dev

5 years agoDon't animate new bubbles in until the stack pos is set.
Joshua Tsuji [Tue, 14 May 2019 20:45:39 +0000 (16:45 -0400)]
Don't animate new bubbles in until the stack pos is set.

Test: atest SystemUITests
Bug: 132782486
Change-Id: Ie6879de845dc1acb4fc5ee467e2384407394d345

5 years agoMerge "Ensure that SysUI & listeners get the newly updated bubble state" into qt-dev
Mady Mellor [Thu, 16 May 2019 22:36:59 +0000 (22:36 +0000)]
Merge "Ensure that SysUI & listeners get the newly updated bubble state" into qt-dev

5 years agoMerge "Hide media on AOD when not playing" into qt-dev
Lucas Dupin [Thu, 16 May 2019 22:33:45 +0000 (22:33 +0000)]
Merge "Hide media on AOD when not playing" into qt-dev

5 years agoMerge "Compare ringtones using IDs." into qt-dev
Jeff Sharkey [Thu, 16 May 2019 21:52:01 +0000 (21:52 +0000)]
Merge "Compare ringtones using IDs." into qt-dev

5 years agoFixed concurrent access network registration info
Jack Yu [Thu, 16 May 2019 21:27:29 +0000 (14:27 -0700)]
Fixed concurrent access network registration info

Fixed by adding synchronization block for every place
accessing network registration info in service state.

Bug: 131883293
Test: Manual
Change-Id: Ic10931b7fab998bfebe09d316a2d87886222dae3

5 years agoMerge "Add new IncidentManager.requestAuthorization method that takes an executor...
Joe Onorato [Thu, 16 May 2019 21:23:54 +0000 (21:23 +0000)]
Merge "Add new IncidentManager.requestAuthorization method that takes an executor." into qt-dev

5 years agoMerge "Fix movement of RTC alarms with time changes" into qt-dev
TreeHugger Robot [Thu, 16 May 2019 21:16:41 +0000 (21:16 +0000)]
Merge "Fix movement of RTC alarms with time changes" into qt-dev

5 years agoMerge "Add alert description to IncidentDetails in statsd_config" into qt-dev
Yao Chen [Thu, 16 May 2019 21:09:55 +0000 (21:09 +0000)]
Merge "Add alert description to IncidentDetails in statsd_config" into qt-dev

5 years agoMerge "Clean up ProcessRecord when reuse a pid." into qt-dev
Hui Yu [Thu, 16 May 2019 20:50:45 +0000 (20:50 +0000)]
Merge "Clean up ProcessRecord when reuse a pid." into qt-dev

5 years agoMerge "Fix BatterySaverStateMachineTest." into qt-dev
TreeHugger Robot [Thu, 16 May 2019 20:22:52 +0000 (20:22 +0000)]
Merge "Fix BatterySaverStateMachineTest." into qt-dev

5 years agoMerge "Allow "cmd overlay list" to list all overlays" into qt-dev
Ryan Mitchell [Thu, 16 May 2019 20:11:09 +0000 (20:11 +0000)]
Merge "Allow "cmd overlay list" to list all overlays" into qt-dev

5 years agoMerge "Metrics for content capture." into qt-dev
Adam He [Thu, 16 May 2019 19:53:04 +0000 (19:53 +0000)]
Merge "Metrics for content capture." into qt-dev

5 years agoMerge "Fixed an NPE in the RegionSamplingHelper" into qt-dev
Selim Cinek [Thu, 16 May 2019 19:46:59 +0000 (19:46 +0000)]
Merge "Fixed an NPE in the RegionSamplingHelper" into qt-dev

5 years agoMerge "Tuned the back gesture further" into qt-dev
Selim Cinek [Thu, 16 May 2019 19:45:47 +0000 (19:45 +0000)]
Merge "Tuned the back gesture further" into qt-dev

5 years agoCompare ringtones using IDs.
Jeff Sharkey [Thu, 16 May 2019 19:39:27 +0000 (13:39 -0600)]
Compare ringtones using IDs.

Comparing by constructing full Uris doesn't work when one of the
values has been canonicalized.

Bug: 132816653
Test: atest android.media.cts.RingtoneManagerTest#testAccessMethods
Change-Id: Id4b26820e76ec3d1d56ba6cf3c76375dafcf92c0

5 years agoHide media on AOD when not playing
Lucas Dupin [Thu, 16 May 2019 02:47:11 +0000 (19:47 -0700)]
Hide media on AOD when not playing

Media seems stuck on AOD if paused or stopped and still visible.

Test: play pause with bluetooth headphones
Test: play pause on lock screen
Test: skip songs on lock screen, go to aod
Fixes: 131314881
Change-Id: I3574bbf628b708d2f9d4c4363a912de5ded951ac

5 years agoMerge "Camera: Fix some documentation typos" into qt-dev
TreeHugger Robot [Thu, 16 May 2019 18:59:55 +0000 (18:59 +0000)]
Merge "Camera: Fix some documentation typos" into qt-dev

5 years agoMerge "Fix EncodedBuffer_test to run after making EncodedBuffer inherit from RefBase...
TreeHugger Robot [Thu, 16 May 2019 18:54:50 +0000 (18:54 +0000)]
Merge "Fix EncodedBuffer_test to run after making EncodedBuffer inherit from RefBase" into qt-dev

5 years agoAdd new IncidentManager.requestAuthorization method that takes an executor.
Joe Onorato [Thu, 16 May 2019 18:47:45 +0000 (11:47 -0700)]
Add new IncidentManager.requestAuthorization method that takes an executor.

This is @hide for Q now that we're past API freeze, and will be
@SystemApi in master.

Bug: 126700920
Bug: 126701153
Bug: 130351719
Test: bit GtsIncidentConfirmationTestCases
Test: bit GtsIncidentManagerTestCases
Change-Id: Iac6a058017a86c1927502c529e5a7f3881eb56a7

5 years agoEnsure that SysUI & listeners get the newly updated bubble state
Mady Mellor [Wed, 15 May 2019 20:38:11 +0000 (13:38 -0700)]
Ensure that SysUI & listeners get the newly updated bubble state

This CL fixes two issues:

1) When bubbles are posted we should note that the notification has
   interrupted
2) When the bubble flag state changes it gets propagated to any listeners

Fixes: 131187135
Test: atest NotificationManagerServiceTest
Change-Id: I003a36b9938a4d1f4a69efea463a39fd0df1abda

5 years agoMerge "Add short version bluetooth device summary" into qt-dev
Lei Yu [Thu, 16 May 2019 18:18:45 +0000 (18:18 +0000)]
Merge "Add short version bluetooth device summary" into qt-dev

5 years agoTuned the back gesture further
Selim Cinek [Wed, 15 May 2019 02:10:04 +0000 (19:10 -0700)]
Tuned the back gesture further

Previously the back gesture was slightly
too bouncy, so we toned it down a bit.
We're also tuning the vibration to require
a longer duration for it to lift.
Overall the back animation wasn't working
great because of smearing, so we also
simplified that aspect.

Fixes: 130682266
Test: atest SystemUITests
Change-Id: Iff714ccc28fcba25c9b21155c687e2852c8599b7

5 years agoAdd alert description to IncidentDetails in statsd_config
Yao Chen [Thu, 16 May 2019 17:34:18 +0000 (10:34 -0700)]
Add alert description to IncidentDetails in statsd_config

Bug: 132890267
Test: statsd_test
Change-Id: I68ad2cec07d17f3e4db40c780713d5d0228831a7

5 years agoMerge "Make the USAP Pool refill delay configurable." into qt-dev
Christian Wailes [Thu, 16 May 2019 17:23:03 +0000 (17:23 +0000)]
Merge "Make the USAP Pool refill delay configurable." into qt-dev

5 years agoMerge "Don't clear source bounds when set to null during an animation." into qt-dev
Chavi Weingarten [Thu, 16 May 2019 16:51:07 +0000 (16:51 +0000)]
Merge "Don't clear source bounds when set to null during an animation." into qt-dev

5 years agoMerge "Move hardcoded values from autofill_save layout file to dimensions." into...
TreeHugger Robot [Thu, 16 May 2019 16:25:58 +0000 (16:25 +0000)]
Merge "Move hardcoded values from autofill_save layout file to dimensions." into qt-dev

5 years agoMerge "Change CellSignalStrengthGsm.mTimingAdvance to greylist-max-p" into qt-dev
David Brazdil [Thu, 16 May 2019 16:24:26 +0000 (16:24 +0000)]
Merge "Change CellSignalStrengthGsm.mTimingAdvance to greylist-max-p" into qt-dev

5 years agoMerge "Set parent for WindowProcessController" into qt-dev
Andrii Kulian [Thu, 16 May 2019 16:24:06 +0000 (16:24 +0000)]
Merge "Set parent for WindowProcessController" into qt-dev

5 years agoMerge "Override process config for cold start on secondary screens" into qt-dev
Andrii Kulian [Thu, 16 May 2019 16:24:06 +0000 (16:24 +0000)]
Merge "Override process config for cold start on secondary screens" into qt-dev

5 years agoMerge "Center GlobalActionsDialog when it does not take up the full screen." into...
Aran Ink [Thu, 16 May 2019 14:25:50 +0000 (14:25 +0000)]
Merge "Center GlobalActionsDialog when it does not take up the full screen." into qt-dev

5 years agoMerge "Make dimens in StatusBarIconView resources" into qt-dev
Fabian Kozynski [Thu, 16 May 2019 12:44:29 +0000 (12:44 +0000)]
Merge "Make dimens in StatusBarIconView resources" into qt-dev

5 years agoMerge "Stop putting credential confirmation activity to the home task." into qt-dev
Pavel Grafov [Thu, 16 May 2019 12:05:14 +0000 (12:05 +0000)]
Merge "Stop putting credential confirmation activity to the home task." into qt-dev

5 years agoStop putting credential confirmation activity to the home task.
Pavel Grafov [Mon, 13 May 2019 17:19:33 +0000 (18:19 +0100)]
Stop putting credential confirmation activity to the home task.

Previously when the user tapped "back" on the credential confirmation
screen, the phone would show home screen automatically. Now this is
handled explicitly in WorkLockActivity to prevent from showing credential
confirmation screens in a loop.

Test: manual, making home and back gesture on work challenge screen
Test: manual, starting work challenge in split-screen mode
Test: manual, invoking work challenge via notification/recents/launcher
Bug: 129045018
Change-Id: Iffd14396e3888416b11d2e7dd2408cab683d4506

5 years agoMerge "Do not compare ID when deduplicating SecurityEvent" into qt-dev
Rubin Xu [Thu, 16 May 2019 11:17:48 +0000 (11:17 +0000)]
Merge "Do not compare ID when deduplicating SecurityEvent" into qt-dev

5 years agoMerge "Align qt-dev and master" into qt-dev
Susi Kharraz-Post [Thu, 16 May 2019 10:54:04 +0000 (10:54 +0000)]
Merge "Align qt-dev and master" into qt-dev

5 years agoDo not mark in-process NetworkStack as persistent
Remi NGUYEN VAN [Thu, 16 May 2019 09:02:11 +0000 (18:02 +0900)]
Do not mark in-process NetworkStack as persistent

The in-process NetworkStack runs in the system process, so it does not
need to be marked persistent.
Doing so causes a spurious com.android.networkstack.inprocess process to
be running, wasting memory.

Bug: 131046856
Test: Flashed sailfish, networking works, no extra process started
Test: Flashed walleye, networking still works
Test: aapt dump xmltree NetworkStack.apk AndroidManifest.xml unchanged
Change-Id: I0eb896c825ffe2581950c0bdd2b31ebd7eae0982

5 years agoMerge "Clarify UsageStatsManager#queryUsageStats behavior" into qt-dev
Michael Wachenschwanz [Thu, 16 May 2019 06:18:48 +0000 (06:18 +0000)]
Merge "Clarify UsageStatsManager#queryUsageStats behavior" into qt-dev

5 years agoMerge "Add KEY_ENABLE_WHEN_COMPLETED for testing" into qt-dev
Po-Chien Hsueh [Thu, 16 May 2019 05:58:23 +0000 (05:58 +0000)]
Merge "Add KEY_ENABLE_WHEN_COMPLETED for testing" into qt-dev

5 years agoMerge "Show open padlock when keyguard is hidden" into qt-dev
TreeHugger Robot [Thu, 16 May 2019 04:20:25 +0000 (04:20 +0000)]
Merge "Show open padlock when keyguard is hidden" into qt-dev

5 years agoMerge "Cache resolved details about remote callers." into qt-dev
Jeff Sharkey [Thu, 16 May 2019 03:29:16 +0000 (03:29 +0000)]
Merge "Cache resolved details about remote callers." into qt-dev

5 years agoFixed an NPE in the RegionSamplingHelper
Selim Cinek [Thu, 16 May 2019 02:21:23 +0000 (19:21 -0700)]
Fixed an NPE in the RegionSamplingHelper

Apparently the viewRootImpl can be null as well, handling
that too now.

Fixes: 132436973
Test: manual, try back affordance
Change-Id: I3a1a2dbef62fc1928d0efac437a77d5654975689

5 years agoMerge "Mark testCreateRemoveStartingWindow as flaky" into qt-dev
Jeff Chang [Thu, 16 May 2019 02:18:19 +0000 (02:18 +0000)]
Merge "Mark testCreateRemoveStartingWindow as flaky" into qt-dev

5 years agoMerge "Fix NullPointerException when mLockPatternUtils is not set." into qt-dev
TreeHugger Robot [Thu, 16 May 2019 02:03:48 +0000 (02:03 +0000)]
Merge "Fix NullPointerException when mLockPatternUtils is not set." into qt-dev

5 years agoOverride process config for cold start on secondary screens
Andrii Kulian [Thu, 2 May 2019 01:58:28 +0000 (18:58 -0700)]
Override process config for cold start on secondary screens

Some apps use Application context to get display configuration and
metrics for their activities. This leads to incorrect configuration
used for activities on secondary screens. This is an issue on the
application side, but the framework can provide some compatibility -
override process-level config to match the display where the first
activity was launched.

Once an activity in the process is launched on the default display,
stop watching other displays config to preserve compatibility.

Bug: 131179060
Test: atest WmTests:ActivityRecordTests#testSetProcessOverridesConfig
Test: Launch GMail on secondary screen
Change-Id: If76f4a83c708f47fd914da68dd4b7366ffd8b88c

5 years agoMerge "Calculate pattern bounds correctly" into qt-dev
Lucas Dupin [Thu, 16 May 2019 01:44:52 +0000 (01:44 +0000)]
Merge "Calculate pattern bounds correctly" into qt-dev

5 years agoMerge "Revoke prior uri grants when MediaProvider db gets recreated." into qt-dev
Sudheer Shanka [Thu, 16 May 2019 01:27:38 +0000 (01:27 +0000)]
Merge "Revoke prior uri grants when MediaProvider db gets recreated." into qt-dev

5 years agoMerge "Update timeout string" into qt-dev
Kevin Chyn [Thu, 16 May 2019 01:24:00 +0000 (01:24 +0000)]
Merge "Update timeout string" into qt-dev

5 years agoCache resolved details about remote callers.
Jeff Sharkey [Thu, 16 May 2019 01:19:59 +0000 (19:19 -0600)]
Cache resolved details about remote callers.

The logic in MediaProvider is technically correct, but it's sometimes
inefficient in calling into the OS multiple times with the same
questions, such as validating getCallingPackage().

To mitigate this overhead, and start paving the way for more dynamic
delegation of permission checks, collect these details into a
LocalCallingIdentity object.  We carefully perform all permissions
checking against this new object, and avoid using any other
thread-local values from ContentProvider or Binder.

Local tests show this CL improves performance of a test app that
takes 100 rapid shots by 37%.

This change is a no-op refactoring.

Bug: 130758409115619667
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: If250a7675f2246cd10881acf615619d6d6061f3d

5 years agoMerge "Update fontchain_linter.py to support more flags." into qt-dev
Qingqing Deng [Thu, 16 May 2019 01:16:35 +0000 (01:16 +0000)]
Merge "Update fontchain_linter.py to support more flags." into qt-dev

5 years agoUpdate timeout string
Kevin Chyn [Thu, 16 May 2019 01:15:17 +0000 (18:15 -0700)]
Update timeout string

Fixes: 132656781

Test: Builds
Change-Id: Ia2bc75bec380d650ec71f50675aa64a67e49d12a

5 years agoShow open padlock when keyguard is hidden
Lucas Dupin [Wed, 15 May 2019 20:47:05 +0000 (13:47 -0700)]
Show open padlock when keyguard is hidden

The device will be unlocked when the keyguard is not showing yet
because of a screen timeout or when the user disabled "power button
locks immediately." We need to present the correct state on AOD,
saying that the phone is unlocked.

Test: lock/unlock after screen off delay
Test: pulse after screen off delay (look at padlock)
Test: pulse after pressing power (look at padlock)
Test: lock/unlock after power button press
Fixes: 129316806
Change-Id: I2f0e401b61bb1df4a46ff2f9f78e27ea38f01fc0

5 years agoFix EncodedBuffer_test to run after making EncodedBuffer inherit from RefBase
Joe Onorato [Fri, 10 May 2019 23:33:49 +0000 (16:33 -0700)]
Fix EncodedBuffer_test to run after making EncodedBuffer inherit from RefBase

Test: bit libprotoutil_test:*
Bug: 129717537
Change-Id: I44cf2e631a5ac1bb8b4ee2c269cfc50438fb1782

5 years agoMerge "Dismiss BiometricPrompt when screen turns off" into qt-dev
Kevin Chyn [Thu, 16 May 2019 00:32:49 +0000 (00:32 +0000)]
Merge "Dismiss BiometricPrompt when screen turns off" into qt-dev

5 years agoClean up ProcessRecord when reuse a pid.
Hui Yu [Tue, 7 May 2019 21:02:57 +0000 (14:02 -0700)]
Clean up ProcessRecord when reuse a pid.

When Zygote starts a process with a pid, system_server may have this
pid associate with a old process which is killed by the OS but
system_server has not finished cleanup. In this case, clean up the old
ProcessRecord so the new process can use the pid.

This problem is exposed because the asynchronous process start change.
attachApplicationLocked() may happen before handleProcessStartedLocked() and
the mPidsSelfLocked may still have the old ProcessRecord associate with
the new process's pid.

Pid alone can not uniquely identify the process in mPidsSelfLocked.
In addition to pid, use the startSeq to uniquely identify the ProcessRecord. Refactor
PidMap.put() and PidMap.remove() to take a ProcessRecord as parameter.
In PidMap.remove(), check startSeq before removing ProcessRecord from
the map.

Bug: 131105245
Test: Using the POC test steps in b/131105245. Without the fix, the issue
can be reproduced in few attempts. With the fix, the issue can not be reproduced
any more.

Change-Id: I5d421f6c68f6b3437d51c94f4aef77e08a7bf002

5 years agoDismiss BiometricPrompt when screen turns off
Kevin Chyn [Thu, 16 May 2019 00:28:16 +0000 (17:28 -0700)]
Dismiss BiometricPrompt when screen turns off

Fixes: 131761855

Test: Follow instructions in bug
Change-Id: If3ee6cd9dd515a4e42177b079019b3622570d66f

5 years agoUpdate fontchain_linter.py to support more flags.
Qingqing Deng [Fri, 10 May 2019 22:23:09 +0000 (15:23 -0700)]
Update fontchain_linter.py to support more flags.

Android Q will support all region flags in UNSUPPORTED_FLAGS list.
BL - Saint Barthélemy
BQ - Caribbean Netherlands
MQ - Martinique
RE - Réunion
TF - French Southern Territories

Bug: 127811703
Test: Verified on device.
Test: m fontchain_lint
Test: minikin_tests --gtest_filter=EmojiTest.cpp
Test: atest cts/tests/tests/text/src/android/text/cts/EmojiTest.java
Test: atest frameworks/base/core/tests/coretests/src/android/text/EmojiTest.java
Change-Id: Ice1fb10af35dc4e180735d9712167b71635920da

5 years agoRevoke prior uri grants when MediaProvider db gets recreated.
Sudheer Shanka [Wed, 8 May 2019 18:48:56 +0000 (11:48 -0700)]
Revoke prior uri grants when MediaProvider db gets recreated.

Bug: 132084545
Test: manual
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: Ibf2f2357d712a212f25b3bd005572ac74fe524fd

5 years agoMove hardcoded values from autofill_save layout file to dimensions.
Aarthi Balachander [Wed, 15 May 2019 00:25:20 +0000 (17:25 -0700)]
Move hardcoded values from autofill_save layout file to dimensions.

Bug: 131176731
Test: Ran tests
Change-Id: Ibfafd26a9fddc6f50ac04e3630fbd40210154eff

5 years agoMake the USAP Pool refill delay configurable.
Chris Wailes [Wed, 15 May 2019 21:00:22 +0000 (14:00 -0700)]
Make the USAP Pool refill delay configurable.

This patch fetches the USAP pool refill delay value from device_config
instead of hardcoding it.

Bug: 131362095
Test: Build and launch 10+ apps successfully
Change-Id: I244d83a38bde32620bd4bf50e9031c25c6267091
Merged-In: I244d83a38bde32620bd4bf50e9031c25c6267091
(cherry picked from commit 365e50bfa4371f56c5b9d83e07acbf704f675536)

5 years agoMerge "Talkback for focus on collapsed bubble stack" into qt-dev
TreeHugger Robot [Wed, 15 May 2019 23:09:47 +0000 (23:09 +0000)]
Merge "Talkback for focus on collapsed bubble stack" into qt-dev

5 years agoMerge "Keyguard for Auto should only show up in case of a user switcher screen. Else...
TreeHugger Robot [Wed, 15 May 2019 22:50:03 +0000 (22:50 +0000)]
Merge "Keyguard for Auto should only show up in case of a user switcher screen. Else, its safe to dismiss it otherwise." into qt-dev

5 years agoMerge "Initialize biometric settings for user" into qt-dev
Kevin Chyn [Wed, 15 May 2019 22:33:54 +0000 (22:33 +0000)]
Merge "Initialize biometric settings for user" into qt-dev

5 years agoCalculate pattern bounds correctly
Lucas Dupin [Wed, 15 May 2019 21:32:50 +0000 (14:32 -0700)]
Calculate pattern bounds correctly

Use stable position on screen to calculate if pattern should be
dragged or not. Before we were only comparing bounds to events,
that would be on different coordinates (on a parent for example.)

Test: draw pattern starting at top left
Test: draw pattern starting at bottom right
Fixes: 132687980
Change-Id: Ibe2d7fc113bf8bc3a9ab4910b3ab21062b59e7f3

5 years agoKeyguard for Auto should only show up in case of a user switcher screen. Else, its...
Priyank Singh [Wed, 15 May 2019 21:12:10 +0000 (14:12 -0700)]
Keyguard for Auto should only show up in case of a user switcher screen. Else, its safe to dismiss it otherwise.

Bug: 131176319
Test: Manual
Change-Id: I96b9b36779f2d2cc846bbf9e309111d1836d51b1

5 years agoMerge "Revert "hwui: ro.hwui.render_ahead=0 queue on high FPS"" into qt-dev
Miguel de Dios [Wed, 15 May 2019 21:06:07 +0000 (21:06 +0000)]
Merge "Revert "hwui: ro.hwui.render_ahead=0 queue on high FPS"" into qt-dev

5 years agoUpdate API docs for TelecomManager#endCall.
Tyler Gunn [Wed, 15 May 2019 20:48:50 +0000 (13:48 -0700)]
Update API docs for TelecomManager#endCall.
am: 3acf511895

Change-Id: I4a895eafeb98339bf617b396f779708bb6e6ee13

5 years agoMerge "Persist active metric status across system server" into qt-dev
TreeHugger Robot [Wed, 15 May 2019 20:45:31 +0000 (20:45 +0000)]
Merge "Persist active metric status across system server" into qt-dev

5 years agoSet parent for WindowProcessController
Andrii Kulian [Wed, 8 May 2019 21:24:43 +0000 (14:24 -0700)]
Set parent for WindowProcessController

If WindowProcessController was registered to display configuration
changes, then an override from display level can erase some of the
configuration fields. This can result in incomplete configuration.
Since process configuration is used as a "global" config in some
places, it should always be complete and contain all fields.

This CL uses ActivityRootContainer as parent for a
WindowProcessController, so any overrides should be applied on top
of global configuration and the resulting full config will always be
complete.

Bug: 131915789
Test: WindowProcessControllerTests#testConfigurationForSecondaryScreen
Change-Id: Id4d30ec9fc64dbdf3f31347240f6bb3cbd655fb2

5 years agoAllow "cmd overlay list" to list all overlays
Ryan Mitchell [Mon, 13 May 2019 23:27:30 +0000 (16:27 -0700)]
Allow "cmd overlay list" to list all overlays

Listing the overlays using the OMS shell command should print all
overlays (besides static android RROs).

Bug: 132645448
Test: adb shell cmd overlay list
Test: adb shell cmd overlay list android
Change-Id: I17e90e2ad90bce40d3aebed56a429f46f09673db

5 years agoMerge "Disable auto dimming when color sampling is enabled" into qt-dev
Winson Chung [Wed, 15 May 2019 20:27:04 +0000 (20:27 +0000)]
Merge "Disable auto dimming when color sampling is enabled" into qt-dev

5 years agoMake dimens in StatusBarIconView resources
Fabian Kozynski [Wed, 15 May 2019 14:04:39 +0000 (10:04 -0400)]
Make dimens in StatusBarIconView resources

Now the expected size and desired size of System Icons can be overlaid.
Resources as part of core, so they can be overlaid by Car.

Also, makes sure that maybeUpdateIconScaleDimens is the one called to
sort out what updateIconScaleXXXX should be called.

Test: visual, using icons that are not 17dp
Fixes: 132354163
Change-Id: I902050d4b3c44587a023614f738ebad1d857b8bf

5 years agoInitialize biometric settings for user
Kevin Chyn [Wed, 15 May 2019 19:17:38 +0000 (12:17 -0700)]
Initialize biometric settings for user

The settings cache was being set only when user changes or the settings
changed. The cache needs to be initialized if trying to read before
they are set.

Fixes: 132692298

Test: manual
Change-Id: I8a2b0c21e5cd569e87858d401f40dc6f84962111

5 years agoCamera: Fix some documentation typos
Emilian Peev [Wed, 15 May 2019 19:00:13 +0000 (12:00 -0700)]
Camera: Fix some documentation typos

Bug: 132419505
Test: Successful build
Change-Id: Ifb610998422264f565a16eae005e7096a6a2f611

5 years agoMerge "Do not verify version in ConversationActions/LangIdInstallReceiver." into...
TreeHugger Robot [Wed, 15 May 2019 18:58:29 +0000 (18:58 +0000)]
Merge "Do not verify version in ConversationActions/LangIdInstallReceiver." into qt-dev

5 years agoAlign qt-dev and master
Susi Kharraz-Post [Wed, 15 May 2019 18:42:06 +0000 (14:42 -0400)]
Align qt-dev and master

This CL only adds a new line to re-align qt-dev and master for
metrics_constants to make it possible to rebase the enums.

Bug: 132719892
Test: N/A
Change-Id: Ie6354c904f3751f8620ff3ae7d420754b6314b33

5 years agoFix BatterySaverStateMachineTest.
Kweku Adams [Wed, 15 May 2019 18:23:19 +0000 (11:23 -0700)]
Fix BatterySaverStateMachineTest.

1. Disable actually posting a notification so that the test doesn't deal
with a SecurityException.
2. Verify that the notification is only posted when expected.
3. Put the state change from PENDING_STICKY_ON to OFF at the
beginning of the block. setStickyActive() calls putGlobalSetting(),
which ends up calling setSettingsLocked() which then goes back to
updateStateLocked(). Since this is all in the same thread, the test was
seeing the state machine post the notification twice. Putting the
state change at the beginning prevents the "second" notification.

Bug: 132620259
Test: atest com.android.server.power.batterysaver.BatterySaverStateMachineTest
Test: atest CtsBatterySavingTestCases
Change-Id: I1ceecc150bc57a37002d7de4ece09b503ec583c8

5 years agoDisable auto dimming when color sampling is enabled
Winson Chung [Tue, 14 May 2019 23:22:57 +0000 (16:22 -0700)]
Disable auto dimming when color sampling is enabled

Bug: 132371142
Test: Manual, launch app/rotate and ensure that the handle does not dim
Change-Id: I2616dd81b8453e7d8fb196273499db373a10fa93

5 years agoMetrics for content capture.
Adam He [Wed, 23 Jan 2019 23:59:09 +0000 (15:59 -0800)]
Metrics for content capture.

Bug: 119613670
Test: statsd_testdrive & manual test
Change-Id: Ib2c61d2a3c08a9db779790417eb0177c2420d8fd
Merged-In: If43465ccee7454a7ebf9e15caa23fce7bae33cfe

5 years agoTalkback for focus on collapsed bubble stack
Lyn Han [Wed, 8 May 2019 21:06:33 +0000 (14:06 -0700)]
Talkback for focus on collapsed bubble stack

Bug: 131610000
Test: manual
Change-Id: I6aa79dfea751c47c86e93f56f7916dd56dbc003f

5 years agoMerge "Restore new SurfaceView background implementation." into qt-dev
Rob Carr [Wed, 15 May 2019 17:41:01 +0000 (17:41 +0000)]
Merge "Restore new SurfaceView background implementation." into qt-dev

5 years agoCenter GlobalActionsDialog when it does not take up the full screen.
Aran Ink [Wed, 15 May 2019 17:32:37 +0000 (13:32 -0400)]
Center GlobalActionsDialog when it does not take up the full screen.

Fixes: 132770089
Test: Manual -- power menu appears centered along edge in all orientations.
Change-Id: If42345e255f4f463a8137ff56ac2b5d6a9601da4

5 years agoMerge "Adjusts the USAP pool refill mechanism." into qt-dev
Christian Wailes [Wed, 15 May 2019 17:24:52 +0000 (17:24 +0000)]
Merge "Adjusts the USAP pool refill mechanism." into qt-dev

5 years agoDo not compare ID when deduplicating SecurityEvent
Rubin Xu [Wed, 15 May 2019 16:39:46 +0000 (17:39 +0100)]
Do not compare ID when deduplicating SecurityEvent

Two SecurityEvents should be considered identical as long as
their event content equals, disregarding the id field.

Test: manual
Change-Id: I811f9a104ed3a0d9e02991aeb9e3653c5c02efc3
Fix: 132367517

5 years agoMerge "Revert "Revert "Remove deprecated System APIs added in Q.""" into qt-dev
Ian Pedowitz [Wed, 15 May 2019 16:28:54 +0000 (16:28 +0000)]
Merge "Revert "Revert "Remove deprecated System APIs added in Q.""" into qt-dev

5 years agoMerge "Revert "Revert "Finalizing Q resources""" into qt-dev
Ian Pedowitz [Wed, 15 May 2019 16:28:54 +0000 (16:28 +0000)]
Merge "Revert "Revert "Finalizing Q resources""" into qt-dev

5 years agoMerge "Revert "Revert "Removing deprecated APIs added to Q""" into qt-dev
Ian Pedowitz [Wed, 15 May 2019 16:28:54 +0000 (16:28 +0000)]
Merge "Revert "Revert "Removing deprecated APIs added to Q""" into qt-dev

5 years agoMerge "Revert "Revert "Android Q is API 29""" into qt-dev
Ian Pedowitz [Wed, 15 May 2019 16:28:54 +0000 (16:28 +0000)]
Merge "Revert "Revert "Android Q is API 29""" into qt-dev

5 years agoMerge "Fix shadow and animation clipping for Global Actions Dialog." into qt-dev
Aran Ink [Wed, 15 May 2019 16:20:58 +0000 (16:20 +0000)]
Merge "Fix shadow and animation clipping for Global Actions Dialog." into qt-dev

5 years agoMerge "Clean up the arguments annotation and verify items on IpMemoryStoreTest."...
TreeHugger Robot [Wed, 15 May 2019 15:56:26 +0000 (15:56 +0000)]
Merge "Clean up the arguments annotation and verify items on IpMemoryStoreTest." into qt-dev

5 years agoMerge "apf: Remove IPv6 NAT-T keepalive related codes and ApfTest improvement" into...
Aaron Huang [Wed, 15 May 2019 15:27:14 +0000 (15:27 +0000)]
Merge "apf: Remove IPv6 NAT-T keepalive related codes and ApfTest improvement" into qt-dev

5 years agoMerge "Dropping NAT-T keepalive packet from APF" into qt-dev
Aaron Huang [Wed, 15 May 2019 15:26:56 +0000 (15:26 +0000)]
Merge "Dropping NAT-T keepalive packet from APF" into qt-dev

5 years agoMerge "Grant device ID access to app with carrier privlege on any sub ID" into qt-dev
Michael Groover [Wed, 15 May 2019 15:26:13 +0000 (15:26 +0000)]
Merge "Grant device ID access to app with carrier privlege on any sub ID" into qt-dev

5 years agoClean up the arguments annotation and verify items on IpMemoryStoreTest.
Xiao Ma [Sat, 11 May 2019 01:56:55 +0000 (18:56 -0700)]
Clean up the arguments annotation and verify items on IpMemoryStoreTest.

Bug: 131133347
Test: atest FrameworksNetTests

Merged-In: I8ce3bed435fbbb814d71fe48ffd305ff3f947f3f
Merged-In: I1db13a48b59d743482436ecf8a20d7f12edd6e1c
(cherry picked from commit 7567c4ac50508c2bcd38b37fc48b299912a34cf5)

Change-Id: I78024c0e25d812639d1236faa59d383742ae2141