OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge "Run addtl. perm tests when system server changes" into qt-dev
Philip P. Moltmann [Mon, 20 May 2019 16:44:05 +0000 (16:44 +0000)]
Merge "Run addtl. perm tests when system server changes" into qt-dev

5 years agoMerge "Adds setCornerRadius to ActivityView & SurfaceView" into qt-dev
TreeHugger Robot [Mon, 20 May 2019 16:30:20 +0000 (16:30 +0000)]
Merge "Adds setCornerRadius to ActivityView & SurfaceView" into qt-dev

5 years agoMerge "Whitelist background activity starts from device admin in #sendAdminCommandLoc...
Jonathan Scott [Mon, 20 May 2019 16:25:33 +0000 (16:25 +0000)]
Merge "Whitelist background activity starts from device admin in #sendAdminCommandLocked." into qt-dev

5 years agoMerge "Report AUTO_SELECTION as a smart selection event." into qt-dev
Abodunrinwa Toki [Mon, 20 May 2019 16:09:43 +0000 (16:09 +0000)]
Merge "Report AUTO_SELECTION as a smart selection event." into qt-dev

5 years agoMerge "Add a factoryReset method to IIpMemoryStore, and freeze api." into qt-dev
TreeHugger Robot [Mon, 20 May 2019 15:52:29 +0000 (15:52 +0000)]
Merge "Add a factoryReset method to IIpMemoryStore, and freeze api." into qt-dev

5 years agoMerge "End transitions before starting new transition." into qt-dev
TreeHugger Robot [Mon, 20 May 2019 14:15:25 +0000 (14:15 +0000)]
Merge "End transitions before starting new transition." into qt-dev

5 years agoMerge "Ignore tests that are more flaky after start pos fixes." into qt-dev
TreeHugger Robot [Mon, 20 May 2019 14:05:35 +0000 (14:05 +0000)]
Merge "Ignore tests that are more flaky after start pos fixes." into qt-dev

5 years agoMerge "Revert "Set parent for WindowProcessController"" into qt-dev
TreeHugger Robot [Mon, 20 May 2019 13:58:25 +0000 (13:58 +0000)]
Merge "Revert "Set parent for WindowProcessController"" into qt-dev

5 years agoMerge "Revert "Override process config for cold start on secondary screens"" into...
TreeHugger Robot [Mon, 20 May 2019 13:58:25 +0000 (13:58 +0000)]
Merge "Revert "Override process config for cold start on secondary screens"" into qt-dev

5 years agoWhitelist background activity starts from device admin in #sendAdminCommandLocked.
Jonathan Scott [Thu, 16 May 2019 14:13:17 +0000 (15:13 +0100)]
Whitelist background activity starts from device admin in #sendAdminCommandLocked.

Test: cts-verifier > Device Owner Tests > Managed User Test
Fixes: 131815491
Change-Id: I818348159a0b501638ecf06e0621923ebc03d1fa

5 years agoMerge "Fixes QSCustomizer header height" into qt-dev
Fabian Kozynski [Mon, 20 May 2019 13:36:46 +0000 (13:36 +0000)]
Merge "Fixes QSCustomizer header height" into qt-dev

5 years agoMerge "Sets Tile default state to INACTIVE" into qt-dev
TreeHugger Robot [Mon, 20 May 2019 13:34:25 +0000 (13:34 +0000)]
Merge "Sets Tile default state to INACTIVE" into qt-dev

5 years agoMerge "Make ResourceIcon#get thread safe" into qt-dev
Fabian Kozynski [Mon, 20 May 2019 13:19:13 +0000 (13:19 +0000)]
Merge "Make ResourceIcon#get thread safe" into qt-dev

5 years agoMerge "Add 2 attributes for list_divider_material" into qt-dev
TreeHugger Robot [Mon, 20 May 2019 13:15:45 +0000 (13:15 +0000)]
Merge "Add 2 attributes for list_divider_material" into qt-dev

5 years agoAdd a factoryReset method to IIpMemoryStore, and freeze api.
Lorenzo Colitti [Mon, 20 May 2019 12:36:27 +0000 (05:36 -0700)]
Add a factoryReset method to IIpMemoryStore, and freeze api.

Currently unimplemented. Implementation will be in a future CL.

Test: m
Bug: 128499160
Change-Id: Ia11ecd33f528d01667b1baeb8671b7213a31eef5
Merged-In: Ia11ecd33f528d01667b1baeb8671b7213a31eef5
(cherry picked from commit 10ddc681cf8ffc2c189ff975ad5885b32e670cb9)

5 years agoRevert "Set parent for WindowProcessController"
Andrii Kulian [Mon, 20 May 2019 12:18:09 +0000 (12:18 +0000)]
Revert "Set parent for WindowProcessController"

This reverts commit 33ab86910e9090d10dd91d760d2dc53e1f3e99e6.

Reason for revert: b/132986140
Bug: 132986140
Bug: 131915789
Change-Id: I75824cd02d4c6a557c6997ebca01354155f8cd93

5 years agoRevert "Override process config for cold start on secondary screens"
Andrii Kulian [Mon, 20 May 2019 12:18:01 +0000 (12:18 +0000)]
Revert "Override process config for cold start on secondary screens"

This reverts commit ceef7461c2b082d450040b22872e691424095fc6.

Reason for revert: b/132986140
Bug: 132986140
Bug: 131915789
Change-Id: I95b28fb4d5eca1927be213e070177f8f3626d9b7

5 years agoAdd 2 attributes for list_divider_material
Mill Chen [Wed, 8 May 2019 10:50:05 +0000 (18:50 +0800)]
Add 2 attributes for list_divider_material

We added two attributes for list divider, one gets set up the color of list
divider and the other gets set up the opacity of its color. This
approach facilitates updating the color of the list divider for device
default themes.

Bug: 129943610
Test: visual
Change-Id: Ia319a31e223a86d71720e2dab63dce200ca824df

5 years agoMerge "Add dumpsys network_stack version" into qt-dev
Remi NGUYEN VAN [Mon, 20 May 2019 10:00:24 +0000 (10:00 +0000)]
Merge "Add dumpsys network_stack version" into qt-dev

5 years agoMerge "Add Standby Bucket and job duration to ScheduledJobStateChanged atom." into...
Ben Murdoch [Mon, 20 May 2019 08:18:34 +0000 (08:18 +0000)]
Merge "Add Standby Bucket and job duration to ScheduledJobStateChanged atom." into qt-dev

5 years agoMerge "Revise metrics for emergency dialer" into qt-dev
TreeHugger Robot [Mon, 20 May 2019 08:16:09 +0000 (08:16 +0000)]
Merge "Revise metrics for emergency dialer" into qt-dev

5 years agoAdd dumpsys network_stack version
Remi NGUYEN VAN [Mon, 20 May 2019 07:47:48 +0000 (16:47 +0900)]
Add dumpsys network_stack version

This is necessary to allow testing for the network stack version and the
version it is getting from the system server.

Test: flashed, WiFi working
Test: dumpsys network_stack version shows data (although version numbers
      being fixed)
Bug: 133124190

Change-Id: I9ea85c29667d4510225637071990732360841db6

5 years agoMerge "SettingsLib: Add an API method to query whether a package is a system module...
Narayan Kamath [Mon, 20 May 2019 07:42:53 +0000 (07:42 +0000)]
Merge "SettingsLib: Add an API method to query whether a package is a system module." into qt-dev

5 years agoMerge "Changes to MediaProjection UX." into qt-dev
Narayan Kamath [Mon, 20 May 2019 07:41:48 +0000 (07:41 +0000)]
Merge "Changes to MediaProjection UX." into qt-dev

5 years agoMerge "Change warning logs to debug logs" into qt-dev
TreeHugger Robot [Mon, 20 May 2019 07:19:29 +0000 (07:19 +0000)]
Merge "Change warning logs to debug logs" into qt-dev

5 years agoRevise metrics for emergency dialer
Leo Hsu [Fri, 3 May 2019 13:28:07 +0000 (21:28 +0800)]
Revise metrics for emergency dialer

Add new metrics constants and deprecate old ones for Emergency Dialer.

Bug: 124427605
Test: Manually. Check the result of
'adb logcat -b events | grep -e sysui_multi_action'

Change-Id: Ia72709a237a78e3a80540cb8f18c80f2bfe37adc

5 years agoMerge "Support vendor color modes for sf mode sysprop" into qt-dev
Christine Franks [Mon, 20 May 2019 04:51:18 +0000 (04:51 +0000)]
Merge "Support vendor color modes for sf mode sysprop" into qt-dev

5 years ago[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
Bill Yi [Mon, 20 May 2019 04:44:52 +0000 (21:44 -0700)]
[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
am: 72ecec0909 -s ours
am skip reason: subject contains skip directive

Change-Id: Ifd0dd8cb6441b000dc2030b35d6ad135dec2a953

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Mon, 20 May 2019 04:42:17 +0000 (04:42 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Mon, 20 May 2019 04:25:27 +0000 (04:25 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 20 May 2019 01:26:23 +0000 (18:26 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I2b9eb3a2f4543f79debd422951609abfad6b42f3

5 years agoMerge "[wm]: Fixed TaskPositioner leak" into qt-dev
TreeHugger Robot [Sun, 19 May 2019 23:12:25 +0000 (23:12 +0000)]
Merge "[wm]: Fixed TaskPositioner leak" into qt-dev

5 years agoMerge "Fix handling multiple staged rollback sessions ready signal" into qt-dev
Zimuzo Ezeozue [Sun, 19 May 2019 18:33:45 +0000 (18:33 +0000)]
Merge "Fix handling multiple staged rollback sessions ready signal" into qt-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 19 May 2019 15:42:07 +0000 (08:42 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I3f1a1c2c797ee233efa4db9c137f70493aa5e029

5 years agoMerge "Fix dropped rotation events when unlocking orientation" into qt-dev
TreeHugger Robot [Sun, 19 May 2019 14:23:32 +0000 (14:23 +0000)]
Merge "Fix dropped rotation events when unlocking orientation" into qt-dev

5 years agoFix dropped rotation events when unlocking orientation
Steve Elliott [Fri, 17 May 2019 18:39:53 +0000 (14:39 -0400)]
Fix dropped rotation events when unlocking orientation

When unlocking orientation on the same frame as a rotation takes place
(example: orientation is locked to landscape, but phone is physically
oriented to portrait), onConfigurationChange is not invoked, and so
Global Actions is positioned as if it were in the locked orientation,
even though it has been rotated.

We work around this by post()ing the rotation unlock, so that it
happens on the next frame, at which point onConfigurationChange is
correctly invoked and the layout is re-oriented properly.

Fixes: 132581161
Test: manual
Change-Id: I1c11844e24bea115f9f44560fef8db863d19d7af

5 years agoMerge "Fix issue with wrong user task being resolved" into qt-dev
Winson Chung [Sun, 19 May 2019 03:54:23 +0000 (03:54 +0000)]
Merge "Fix issue with wrong user task being resolved" into qt-dev

5 years agoIgnore tests that are more flaky after start pos fixes.
Joshua Tsuji [Sun, 19 May 2019 03:44:17 +0000 (23:44 -0400)]
Ignore tests that are more flaky after start pos fixes.

Test: atest SystemUITests
Fixes: 133035560
Change-Id: Ic0b9d7cd6231e7fa4f925e6a490a4d120f92fb7d

5 years agoMerge "Revert "Align bubble behavior with DND settings."" into qt-dev
Josh Tsuji [Sun, 19 May 2019 03:11:35 +0000 (03:11 +0000)]
Merge "Revert "Align bubble behavior with DND settings."" into qt-dev

5 years agoMerge "Adds a PhoneStateMonitor to the AssistManager" into qt-dev
TreeHugger Robot [Sat, 18 May 2019 18:26:13 +0000 (18:26 +0000)]
Merge "Adds a PhoneStateMonitor to the AssistManager" into qt-dev

5 years ago[automerger skipped] Import translations. DO NOT MERGE
Bill Yi [Sat, 18 May 2019 14:57:23 +0000 (07:57 -0700)]
[automerger skipped] Import translations. DO NOT MERGE
am: d1ab5aced6 -s ours
am skip reason: subject contains skip directive

Change-Id: I0c65f5c6aaf40e69e29bba12f8aa470169e12302

5 years agoMerge "Add throttling by job run session." into qt-dev
Kweku Adams [Sat, 18 May 2019 14:38:56 +0000 (14:38 +0000)]
Merge "Add throttling by job run session." into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Sat, 18 May 2019 14:27:54 +0000 (14:27 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoFix issue with wrong user task being resolved
Winson Chung [Fri, 17 May 2019 00:36:05 +0000 (17:36 -0700)]
Fix issue with wrong user task being resolved

- Setup wizard used to finish itself and start home automatically, but now
  we have the Tips app show afterwards which requires the user to swipe
  up to go home as a part of learning the gesture. Previously that would
  have created the home task for the secondary user and subsequent swipes
  would work, but in the new flow, the creation of the secondary user
  home task would never happen because the recents animation logic tries
  to find the primary user's home task. This is only an issue on the first
  launch for the secondary user, subsequent launches after completing SUW
  will start home as a part of switching users.

  This change ensures that we account for the user when trying to resolve
  an existing target activity.

Bug: 132410734
Test: atest RecentsAnimationTest
Change-Id: If14ad535948c5aadd83af528592b320dba62c40e

5 years agoMerge "Ensure that we use the current user context when adding nav mode listeners...
Winson Chung [Sat, 18 May 2019 14:24:16 +0000 (14:24 +0000)]
Merge "Ensure that we use the current user context when adding nav mode listeners" into qt-dev

5 years agoFix handling multiple staged rollback sessions ready signal
Zimuzo [Thu, 16 May 2019 17:09:23 +0000 (18:09 +0100)]
Fix handling multiple staged rollback sessions ready signal

After we stage a session for rollback, we need to wait for the
session to be ready and then reboot. To ensure we don't miss the
ready signal, we register a BroadcastReceiver to listen to session changes
and also check for session ready right away. This caused a race condition
where we may handle post-ready twice. This caused a crash because we
attempt to unregister the receiver twice, it's also a problem because
we could log the same event twice.

Now, we store the rollback ids we are about to handle and ensure we never
handle post-ready more than once.

Test: Manual test && atest StagedRollbackTest
Bug: 132866890
Change-Id: I5187ff20fb83b29f7a00a28bf6ad8105ca4f0067

5 years agoMerge "Allow updates to importance of default apps" into qt-dev
TreeHugger Robot [Sat, 18 May 2019 09:25:23 +0000 (09:25 +0000)]
Merge "Allow updates to importance of default apps" into qt-dev

5 years agoMerge "Remove assist status stuff from StatusBar." into qt-dev
Matt Casey [Sat, 18 May 2019 09:21:58 +0000 (09:21 +0000)]
Merge "Remove assist status stuff from StatusBar." into qt-dev

5 years agoMerge "Add workaround for b/124210145" into qt-dev
TreeHugger Robot [Sat, 18 May 2019 06:16:21 +0000 (06:16 +0000)]
Merge "Add workaround for b/124210145" into qt-dev

5 years agoMerge "Add DeviceConfig flags to Privacy Indicators" into qt-dev
TreeHugger Robot [Sat, 18 May 2019 06:14:40 +0000 (06:14 +0000)]
Merge "Add DeviceConfig flags to Privacy Indicators" into qt-dev

5 years agoMerge "Aggresive performance optimizations." into qt-dev
Jeff Sharkey [Sat, 18 May 2019 05:48:35 +0000 (05:48 +0000)]
Merge "Aggresive performance optimizations." into qt-dev

5 years agoAggresive performance optimizations.
Jeff Sharkey [Sat, 18 May 2019 00:48:11 +0000 (18:48 -0600)]
Aggresive performance optimizations.

Now that we have LocalCallingIdentity, we can start caching it in
very narrow cases.  We must be careful to not cache too long, since
any changes to granted permissions for the UID mean we need to
re-evaluate any cached answers.

The best middle-ground for this in the Q release is to use an active
camera session as a proxy for when we should create a cache object
and then later invalidate it.  (It's very unlikely that a user
changes permissions while actively using the camera, and this is
a strong signal that the caller is sensitive to performance.)

Many other sprinkled optimizations to avoid extra binder calls into
the OS, such as aggressively caching VolumeInfo related details.

Track IDs that are owned by each LocalCallingIdentity, to speed up
all future security checks.

Dispatch all change notifications asynchronously, and delay them by
several seconds while the camera is being actively used, to give
more important foreground work a fighting chance.  Invalidate
thumbnails asynchronously.

Optimizations to ModernMediaScanner where it's safe to skip the
"reconcile" and "clean" steps when we're focused on a single file
that we successfully scanned.

Local tests show this CL improves performance of a test app that
takes 100 rapid shots by 45%.  (All the collective optimizations
done so far this week add up to a 70% improvement.)

Bug: 130758409
Test: atest --test-mapping packages/providers/MediaProvider
Exempt-From-Owner-Approval: trivial manifest change
Change-Id: I38cc826af47d41219ef44eae6fbd293caa0c01d5

5 years agoMerge "Add watchdog triggered staged rollback test" into qt-dev
TreeHugger Robot [Sat, 18 May 2019 05:44:20 +0000 (05:44 +0000)]
Merge "Add watchdog triggered staged rollback test" into qt-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 18 May 2019 05:07:53 +0000 (22:07 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ie71c6b1ae7229c5b77a93235ce1e596ce7185f57

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 18 May 2019 04:44:54 +0000 (21:44 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I474bf516ef1703354dfc47007c50c934b5825cf4

5 years agoMerge "StatsCompanionService: register thermal event on all types" into qt-dev
TreeHugger Robot [Sat, 18 May 2019 04:20:00 +0000 (04:20 +0000)]
Merge "StatsCompanionService: register thermal event on all types" into qt-dev

5 years agoMerge "Fixing the metrics_constants jump" into qt-dev
TreeHugger Robot [Sat, 18 May 2019 04:15:20 +0000 (04:15 +0000)]
Merge "Fixing the metrics_constants jump" into qt-dev

5 years agoMerge "Revert "Reset system fixed to clean storage perm model 2"" into qt-dev
Philip P. Moltmann [Sat, 18 May 2019 02:33:23 +0000 (02:33 +0000)]
Merge "Revert "Reset system fixed to clean storage perm model 2"" into qt-dev

5 years agoMerge "Add timestamp and read status extra constants to MAP Client" into qt-dev
Sal Savage [Sat, 18 May 2019 02:22:38 +0000 (02:22 +0000)]
Merge "Add timestamp and read status extra constants to MAP Client" into qt-dev

5 years agoMerge "Make package whitelist the last check in activity starter." into qt-dev
TreeHugger Robot [Sat, 18 May 2019 02:18:29 +0000 (02:18 +0000)]
Merge "Make package whitelist the last check in activity starter." into qt-dev

5 years agoRevert "Align bubble behavior with DND settings."
Josh Tsuji [Sat, 18 May 2019 01:55:47 +0000 (01:55 +0000)]
Revert "Align bubble behavior with DND settings."

This reverts commit 7aa18112b52b3e369b0c03cc95848866cda0319b.

Reason for revert: b/132891091

Bug: 132891091
Change-Id: I7775bfe2d0c65908f0f6ec14e52beaf58528e19a

5 years agoMerge "Wait for scrim animation before showing lock icon" into qt-dev
TreeHugger Robot [Sat, 18 May 2019 01:20:39 +0000 (01:20 +0000)]
Merge "Wait for scrim animation before showing lock icon" into qt-dev

5 years agoMerge "Correct pointer position" into qt-dev
TreeHugger Robot [Sat, 18 May 2019 00:24:50 +0000 (00:24 +0000)]
Merge "Correct pointer position" into qt-dev

5 years agoMerge "Making wifi icon point to the new status_bar_system_icon_size" into qt-dev
John Choi [Sat, 18 May 2019 00:19:20 +0000 (00:19 +0000)]
Merge "Making wifi icon point to the new status_bar_system_icon_size" into qt-dev

5 years agoAdd throttling by job run session.
Kweku Adams [Tue, 14 May 2019 20:44:32 +0000 (13:44 -0700)]
Add throttling by job run session.

A session is considered a period of time when jobs for an app ran.
Overlapping jobs are counted as part of the same session. This adds a
way to limit the number of job sessions an app can run. This includes a
mechanism to coalesce sessions -- if a second session started soon after
one just ended, they will only be counted as one session.

Bug: 132227621
Test: atest com.android.server.job.controllers.QuotaControllerTest
Test: atest CtsJobSchedulerTestCases
Change-Id: Id2ac4037731f57547d00985e8d549b9e990a5f3e

5 years agoMerge "Bind print svcs as "in foreground" for location" into qt-dev
TreeHugger Robot [Fri, 17 May 2019 23:10:30 +0000 (23:10 +0000)]
Merge "Bind print svcs as "in foreground" for location" into qt-dev

5 years agoMerge "Camera: Always return 'null' for unsupported formats" into qt-dev
TreeHugger Robot [Fri, 17 May 2019 21:35:23 +0000 (21:35 +0000)]
Merge "Camera: Always return 'null' for unsupported formats" into qt-dev

5 years agoRemove assist status stuff from StatusBar.
Matt Casey [Wed, 15 May 2019 22:49:37 +0000 (18:49 -0400)]
Remove assist status stuff from StatusBar.

Assist views no longer live in StatusBar.

Bug: 132065047
Test: Manual test, no expected behavior change.
Change-Id: I427eedf8c989b7af4f957a6e946919d57b83e827

5 years agoChange idleness according to screen status
Eric Jeong [Thu, 16 May 2019 19:21:16 +0000 (12:21 -0700)]
Change idleness according to screen status

- Unlike DeviceIdlenessTracker, CarIdlenessTracker didn't listen to
screen status change.
- android.jobscheduler.cts.DeviceStatesTest#testDeviceChangeIdleActiveState
fails due to the above reason.
- It is natural to exit idle when screen is turned on, unless forced idle
is set or car is in garage mode.

Bug: 130662327
Test: Run CtsJobSchedulerTestCases
Change-Id: I8c04c619b34b9e72027914e080aa0f4ef7519422

5 years agoRun addtl. perm tests when system server changes
Philip P. Moltmann [Wed, 17 Apr 2019 21:44:38 +0000 (14:44 -0700)]
Run addtl. perm tests when system server changes

- Tests for signature permissions

Test: atest --test-mapping frameworks/base/services/core/java/com/android/server/pm/permission:presubmit
Bug: 130516222
Change-Id: I37d7d1b11fd4c857bd932d935f94a5d393b79fd7

5 years agoMerge "Camera: Handle out-of-order frameNumber for ZSL requests" into qt-dev
TreeHugger Robot [Fri, 17 May 2019 21:20:44 +0000 (21:20 +0000)]
Merge "Camera: Handle out-of-order frameNumber for ZSL requests" into qt-dev

5 years agoMerge "Whitelist all perms on installExistingPackage" into qt-dev
Philip P. Moltmann [Fri, 17 May 2019 19:56:19 +0000 (19:56 +0000)]
Merge "Whitelist all perms on installExistingPackage" into qt-dev

5 years agoMaking wifi icon point to the new status_bar_system_icon_size
John Choi [Fri, 17 May 2019 19:52:59 +0000 (12:52 -0700)]
Making wifi icon point to the new status_bar_system_icon_size

This matches what core SystemUI does.

Bug: 132354163
Test: manual
Change-Id: I39b1d80077581472d884b1a159b775522516226f

5 years agoMerge "Remove old logic from tinting prototype" into qt-dev
Winson Chung [Fri, 17 May 2019 19:33:34 +0000 (19:33 +0000)]
Merge "Remove old logic from tinting prototype" into qt-dev

5 years agoCorrect pointer position
Lyn Han [Thu, 16 May 2019 21:17:30 +0000 (14:17 -0700)]
Correct pointer position

Pointer pointed to the right of bubble center. This happened because:
- Bubbles live in expanded view container (x includes expanded view padding)
- Pointer lives in expanded view, which has padding (x does not include padding)

This change removes expanded view padding when deriving pointer location from bubbles.

Bug: 132907741
Test: manual

Change-Id: Ic301d578fee4e6a36be9642ba30ac0cc74cdd3cb

5 years agoPowerManagerService: notify SurfaceFlinger on power hint
Ady Abraham [Wed, 8 May 2019 21:56:38 +0000 (14:56 -0700)]
PowerManagerService: notify SurfaceFlinger on power hint

To reduce jank on the first buffer, SurfaceFlinger needs to know when there is a touch
event so it can move to performance refresh rate before the first buffer

Test: switch between apps using gesture navigation
Bug: 131906818
Change-Id: I077e6d367d05ed9847d84e7e73ca776a9277b87a

5 years agoMerge "Fix @Suppress annotation to be the kotlin style" into qt-dev
Evan Laird [Fri, 17 May 2019 17:02:52 +0000 (17:02 +0000)]
Merge "Fix @Suppress annotation to be the kotlin style" into qt-dev

5 years agoWait for scrim animation before showing lock icon
Lucas Dupin [Fri, 17 May 2019 02:48:30 +0000 (19:48 -0700)]
Wait for scrim animation before showing lock icon

Fixes: 132198859
Test: unlock with fingerprint
Change-Id: I9cb01bee696991102cbb65cc1f6f443f42f70e70

5 years agoMerge "DecorView: Adjust light scrim" into qt-dev
Adrian Roos [Fri, 17 May 2019 16:28:22 +0000 (16:28 +0000)]
Merge "DecorView: Adjust light scrim" into qt-dev

5 years agoAdd DeviceConfig flags to Privacy Indicators
Fabian Kozynski [Mon, 6 May 2019 14:18:41 +0000 (10:18 -0400)]
Add DeviceConfig flags to Privacy Indicators

Restricts Privacy Indicators behind the same flags as Permissions Hub.

When flag is set to false:
* PrivacyItemController is set to not listening (listens to changes in
flag)
* Location icon is reverted back to P behavior
* Location icon is shown in QS Header icons (listens to changes in
flags)
* No privacy chip shown.

We need to listen to changes because most of our views/controllers
persist forever.

Test: manual, change the flag and observe things appear/disappear
Fixes: 131826452
Fixes: 132644949

Change-Id: I329596760f3c06feb2161b077af008da782a50be

5 years agoChanges to MediaProjection UX.
Narayan Kamath [Fri, 17 May 2019 14:58:24 +0000 (15:58 +0100)]
Changes to MediaProjection UX.

Description strings are changed for privileged apps that hold the
REMOTE_DISPLAY_PROVIDER permission.

Test: Visual
Bug: 132924545
Bug: 132924713
Change-Id: Ib9a3be6dc096124d5cec4769ed1f7e8e3eec63f5

5 years agoAllow updates to importance of default apps
Beverly [Thu, 16 May 2019 19:46:11 +0000 (15:46 -0400)]
Allow updates to importance of default apps

As long as it's not IMPORTANCE_NONE

Test: manual
    1. Messages app > Settings > Notifications
    2. Change behavior from Prioritized to Gentle
    3. Back
    4. Click on Notifications again
    5. Observe: setting was changed to Gentle
Test: atest PreferencesHelperTest
Fixes: 131893709
Change-Id: I1710435e9dfa741b14a8de3da07bff1d17e884b8

5 years agoMerge "Change the icon for the LOGGED_IN notification." into qt-dev
Lorenzo Colitti [Fri, 17 May 2019 13:58:09 +0000 (13:58 +0000)]
Merge "Change the icon for the LOGGED_IN notification." into qt-dev

5 years agoMerge "Fix Invalid SIM is not displayed for card error condition and add test case...
Andy Chou [Fri, 17 May 2019 13:38:53 +0000 (13:38 +0000)]
Merge "Fix Invalid SIM is not displayed for card error condition and add test case testTelephonyCapable_SimState_CardIOError()" into qt-dev

5 years agoAdd watchdog triggered staged rollback test
Richard Uhler [Wed, 6 Mar 2019 10:39:46 +0000 (10:39 +0000)]
Add watchdog triggered staged rollback test

Test: atest StagedRollbackTest
Bug: 132758573
Bug: 132866890
Change-Id: I80e4ebf3659702992f32504690ea5ec4bab88534

5 years agoMake ResourceIcon#get thread safe
Fabian Kozynski [Mon, 13 May 2019 19:24:10 +0000 (15:24 -0400)]
Make ResourceIcon#get thread safe

Putting a new element in a SparseArray copies the backing array. As
ResourceIcon#get is called both from the main and BG thread, this is not
safe and sometimes leads to a bad state for ResourceIcon#ICONS. In
particular, keys would be assigned to wrong Icon, leading to QS tiles
retrieving and displaying the wrong icon.

Test: atest ResourceIconTest (it fails without the synchronize)
Test: no observable delays caused by icon updates
Fixes: 132435191

Change-Id: I9b3f535d925aa23529b59c0eacb4e67186fdabd2

5 years agoMerge "Workaround for USAP support in jitzygote." into qt-dev
Nicolas Geoffray [Fri, 17 May 2019 12:31:12 +0000 (12:31 +0000)]
Merge "Workaround for USAP support in jitzygote." into qt-dev

5 years agoMerge "Add support for returning installed apex modules in getInstalledModules" into...
TreeHugger Robot [Fri, 17 May 2019 12:13:32 +0000 (12:13 +0000)]
Merge "Add support for returning installed apex modules in getInstalledModules" into qt-dev

5 years agoFixing the metrics_constants jump
Susi Kharraz-Post [Tue, 14 May 2019 21:23:43 +0000 (17:23 -0400)]
Fixing the metrics_constants jump

There were merge problems because master was modified independent of
qt-dev. This should be fixed by now so moving the number back to next
available.

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

5 years agoDecorView: Adjust light scrim
Adrian Roos [Wed, 15 May 2019 17:38:49 +0000 (19:38 +0200)]
DecorView: Adjust light scrim

Fixes: 132939499
Test: Verify edge-to-edge-ified share sheet has an appropriate scrim
Change-Id: Ic0274ba2f9f3c36ec436fe5dab172efd13158e16

5 years agoWorkaround for USAP support in jitzygote.
Nicolas Geoffray [Thu, 16 May 2019 13:36:06 +0000 (14:36 +0100)]
Workaround for USAP support in jitzygote.

USAP improve app startup by ~5ms, so enable it for the
jitzygote experiment.

Bug: 119800099
Test: boots and usap processes live
Change-Id: I918d81f56cc7e9fcc8a053feadd7878108e6d590

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 agoChange the icon for the LOGGED_IN notification.
Lorenzo Colitti [Fri, 17 May 2019 06:16:56 +0000 (23:16 -0700)]
Change the icon for the LOGGED_IN notification.

This notification is shown when the user has already logged in to
the network, so it should not have a question mark on it.

Fix: 130526201
Test: atest FrameworksNetTests
Test: manually signed in to portal
Change-Id: I8250236bc4ba251492a6cb9bf23e67666ef860d3
Merged-In: I8250236bc4ba251492a6cb9bf23e67666ef860d3
(cherry picked from commit fce363555029b92b1532058555797d6ef1afb09c)

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 agoAdds a PhoneStateMonitor to the AssistManager
Govinda Wasserman [Wed, 8 May 2019 12:02:47 +0000 (08:02 -0400)]
Adds a PhoneStateMonitor to the AssistManager

This allows the AssistManager to determine the state of the phone when
the Assistant is invoked. This will be used for logging and allowing the
Assistant to alter its behavior based on the invokation state.

Note that SysUI is currently unable to differentiate between Launcher
states, so all Launcher states will be reported as PHONE_STATE_HOME.

Test: Tested locally
BUG:128982146
Change-Id: Iee40e42830f5a07845240c98bec5b87bd7c08eb7

5 years agoStatsCompanionService: register thermal event on all types
Wei Wang [Thu, 16 May 2019 23:59:53 +0000 (16:59 -0700)]
StatsCompanionService: register thermal event on all types

Previous stats only looks at SKIN type event, but with new version of
ATOM pushed we should record all event.

Test: Build
Bug: 119688911
Change-Id: I4b2da35f2c2a13ed7de2a9f3a9f6ec1644a2d675

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 ago[wm]: Fixed TaskPositioner leak
yj81.kwon [Wed, 24 Apr 2019 01:53:57 +0000 (18:53 -0700)]
[wm]: Fixed TaskPositioner leak

If application process handles motion events late, it requests to start
moving task after MotionEvent.ACTION_UP is already fired. In that case,
system will wait for event that is not comming and cannot end drag state.
It's expected that the system finishes moving task when system receives
ACTION_UP by transfering touch focus. In a problem case, ACTION_UP event
is already sent to the application process before transfering touch focus.

If application receives ACTION_UP event after requesting moving task,
notify the system of finishing previous request.

Test: Quickly try to resize freeform windowing app repeatedly.
Test: atest WmTests:TaskPositioningControllerTests
Bug: 129507487

Change-Id: Ifa457ddc55524cae6da455e770472781a7805282
(cherry picked from commit 9a1cd7b5063229da536a1281916ae15ec9246d1a)