OSDN Git Service

android-x86/frameworks-base.git
5 years agoMake QSCarrierText always selected
Fabian Kozynski [Mon, 22 Apr 2019 15:02:40 +0000 (11:02 -0400)]
Make QSCarrierText always selected

We were changing selected value with visibility and that was making the
Carrier text become selected when QS expanded, capturing focus when it
shouldn't. This had also the effect of selecting it on HUN.

This change makes QSCarrierText always selected=true and only changes
its ellipsize with visibility

Test: manual, start expanding QS
Test: manual, send Hangouts message
Fixes: 129661790
Change-Id: I6c60ce288a1875cfd7854ad888170fdd77b2c65a

5 years agoMerge "Adds Assistant invocation type to home long press." into qt-dev
Govinda Wasserman [Mon, 22 Apr 2019 12:24:26 +0000 (12:24 +0000)]
Merge "Adds Assistant invocation type to home long press." into qt-dev

5 years agoMerge "Make LegacyTypeTracker testable" into qt-dev
Chalard Jean [Mon, 22 Apr 2019 12:08:59 +0000 (12:08 +0000)]
Merge "Make LegacyTypeTracker testable" into qt-dev

5 years agoMerge "Define config for wifi fatal firmware alert error code list" into qt-dev
TreeHugger Robot [Mon, 22 Apr 2019 11:11:59 +0000 (11:11 +0000)]
Merge "Define config for wifi fatal firmware alert error code list" into qt-dev

5 years agoMerge "Move Setting constants for NetworkStack" into qt-dev
Chiachang Wang [Mon, 22 Apr 2019 10:37:10 +0000 (10:37 +0000)]
Merge "Move Setting constants for NetworkStack" into qt-dev

5 years agoMerge "Notification shade glass pane should fade in as its being opened." into qt-dev
TreeHugger Robot [Mon, 22 Apr 2019 07:40:20 +0000 (07:40 +0000)]
Merge "Notification shade glass pane should fade in as its being opened." into qt-dev

5 years agoMerge "Restrict access to dangerous methods to <= P" into qt-dev
TreeHugger Robot [Mon, 22 Apr 2019 07:14:10 +0000 (07:14 +0000)]
Merge "Restrict access to dangerous methods to <= P" into qt-dev

5 years agoMake LegacyTypeTracker testable
Chalard Jean [Wed, 10 Apr 2019 14:07:55 +0000 (23:07 +0900)]
Make LegacyTypeTracker testable

...and add basic trivial tests for it.

Test: this, and ConnectivityServiceTest
Bug: 62650382
Change-Id: Ie7ca938e6f66f1b15feb6ed93afa0aebb20884ae

5 years agoMerge "Rename folder dynandroid to dynsystem" into qt-dev
TreeHugger Robot [Mon, 22 Apr 2019 06:01:21 +0000 (06:01 +0000)]
Merge "Rename folder dynandroid to dynsystem" into qt-dev

5 years agoNotification shade glass pane should fade in as its being opened.
Priyank Singh [Sun, 21 Apr 2019 22:42:44 +0000 (15:42 -0700)]
Notification shade glass pane should fade in as its being opened.

Bug: 130168660
Test: Manual
Change-Id: I12d09d5fd1a9d23f5219bbb217deccaabd39fdfc

5 years agoMerge "Clean-up PersisterQueue tests" into qt-dev
TreeHugger Robot [Mon, 22 Apr 2019 04:32:25 +0000 (04:32 +0000)]
Merge "Clean-up PersisterQueue tests" into qt-dev

5 years agoMerge "Adding the touch gestures for the pull down notification shade." into qt-dev
TreeHugger Robot [Mon, 22 Apr 2019 03:33:14 +0000 (03:33 +0000)]
Merge "Adding the touch gestures for the pull down notification shade." into qt-dev

5 years agoRename folder dynandroid to dynsystem
Po-Chien Hsueh [Mon, 22 Apr 2019 02:47:50 +0000 (10:47 +0800)]
Rename folder dynandroid to dynsystem

We previously renamed DynamicAndroid to DynamicSystem. Package name
was also changed to com.android.dynsystem. But the folder name was
unchanged. This CL fixes the inconsistency.

Bug: 126613281
Test: make and run the service with 'adb shell am'
Change-Id: Ib462aec1603a16179c8392b6d51a00d0855d9421

5 years agoMerge "WifiMetrics: add histogram of installed Passpoint profiles for R2" into qt-dev
TreeHugger Robot [Sun, 21 Apr 2019 23:23:15 +0000 (23:23 +0000)]
Merge "WifiMetrics: add histogram of installed Passpoint profiles for R2" into qt-dev

5 years agoMerge "Update the CPU text cache sizes to be the same as their GPU equivalents" into...
Derek Sollenberger [Sun, 21 Apr 2019 23:13:12 +0000 (23:13 +0000)]
Merge "Update the CPU text cache sizes to be the same as their GPU equivalents" into qt-dev

5 years agoMerge "Move locale from LanguageDetectionEvent to base class" into qt-dev
TreeHugger Robot [Sun, 21 Apr 2019 09:02:26 +0000 (09:02 +0000)]
Merge "Move locale from LanguageDetectionEvent to base class" into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Sun, 21 Apr 2019 03:08:23 +0000 (03:08 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Sun, 21 Apr 2019 02:01:32 +0000 (02:01 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Sun, 21 Apr 2019 01:26:41 +0000 (01:26 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "Sharesheet - Fix wrong metric value being recorded" into qt-dev
TreeHugger Robot [Sun, 21 Apr 2019 00:27:23 +0000 (00:27 +0000)]
Merge "Sharesheet - Fix wrong metric value being recorded" into qt-dev

5 years agoAdding the touch gestures for the pull down notification shade.
Priyank Singh [Sat, 20 Apr 2019 01:46:26 +0000 (18:46 -0700)]
Adding the touch gestures for the pull down notification shade.

Bug: 130168660
Test: Manual

Change-Id: Ida234a0bff0485ff1277594f9bff9c15a252d0de

5 years agoMerge "Block clicks on smart actions and replies just after creation/update." into...
TreeHugger Robot [Sat, 20 Apr 2019 22:15:21 +0000 (22:15 +0000)]
Merge "Block clicks on smart actions and replies just after creation/update." into qt-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 20 Apr 2019 22:08:12 +0000 (15:08 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Icd4e215eb16f56988e0e7494f6038ad837bfe56b

5 years agoMerge "Dimmer secondary color on dark mode" into qt-dev
TreeHugger Robot [Sat, 20 Apr 2019 22:06:32 +0000 (22:06 +0000)]
Merge "Dimmer secondary color on dark mode" into qt-dev

5 years agoMerge "Fix SIM PIN listener registration" into qt-dev
Lucas Dupin [Sat, 20 Apr 2019 18:57:06 +0000 (18:57 +0000)]
Merge "Fix SIM PIN listener registration" into qt-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 20 Apr 2019 11:49:14 +0000 (04:49 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I819bfef9bdd3d1a2bcc5474b48ab326b255aee08

5 years agoMerge "Add more documentation for isEmergencyAssistanceEnabled()." into qt-dev
Hai Zhang [Sat, 20 Apr 2019 04:56:25 +0000 (04:56 +0000)]
Merge "Add more documentation for isEmergencyAssistanceEnabled()." into qt-dev

5 years agoMerge "Replace synchronous calls to shared prefs with async calls." into qt-dev
TreeHugger Robot [Sat, 20 Apr 2019 04:50:16 +0000 (04:50 +0000)]
Merge "Replace synchronous calls to shared prefs with async calls." into qt-dev

5 years agoMerge "Update theme after registering config listener" into qt-dev
TreeHugger Robot [Sat, 20 Apr 2019 03:41:52 +0000 (03:41 +0000)]
Merge "Update theme after registering config listener" into qt-dev

5 years agoMerge "Dismiss keyguard if pulsing unlocked" into qt-dev
TreeHugger Robot [Sat, 20 Apr 2019 03:39:32 +0000 (03:39 +0000)]
Merge "Dismiss keyguard if pulsing unlocked" into qt-dev

5 years agoMerge "Fix back button not disappearing" into qt-dev
TreeHugger Robot [Sat, 20 Apr 2019 03:01:02 +0000 (03:01 +0000)]
Merge "Fix back button not disappearing" into qt-dev

5 years agoMerge "Fix NPE for devices that don't use a lock icon in sysui." into qt-dev
TreeHugger Robot [Sat, 20 Apr 2019 02:41:42 +0000 (02:41 +0000)]
Merge "Fix NPE for devices that don't use a lock icon in sysui." into qt-dev

5 years agoMerge "Add tests for user changes." into qt-dev
TreeHugger Robot [Sat, 20 Apr 2019 02:36:02 +0000 (02:36 +0000)]
Merge "Add tests for user changes." into qt-dev

5 years agoMerge "Check PackageManager for feature before getting system service" into qt-dev
Kevin Chyn [Sat, 20 Apr 2019 02:26:16 +0000 (02:26 +0000)]
Merge "Check PackageManager for feature before getting system service" into qt-dev

5 years agoMerge "Tethering: fix using wrong subId problem" into qt-dev
Mark Chien [Sat, 20 Apr 2019 02:04:40 +0000 (02:04 +0000)]
Merge "Tethering: fix using wrong subId problem" into qt-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 20 Apr 2019 01:45:35 +0000 (18:45 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: If428b7190a3facb2043149291b70b8aa8ba0557b

5 years agoMerge "Revert "Update clearData flow for notification settings"" into qt-dev
TreeHugger Robot [Sat, 20 Apr 2019 01:26:27 +0000 (01:26 +0000)]
Merge "Revert "Update clearData flow for notification settings"" into qt-dev

5 years agoMerge "Let there be color" into qt-dev
Lucas Dupin [Sat, 20 Apr 2019 01:22:18 +0000 (01:22 +0000)]
Merge "Let there be color" into qt-dev

5 years agoMerge "Add nullability annotations to android.bluetooth.le.ScanFilter.Builder setServ...
TreeHugger Robot [Sat, 20 Apr 2019 01:01:25 +0000 (01:01 +0000)]
Merge "Add nullability annotations to android.bluetooth.le.ScanFilter.Builder setServiceSolicitationUuid" into qt-dev

5 years agoMerge "DO NOT MERGE - Updated some javadocs." into qt-dev
TreeHugger Robot [Sat, 20 Apr 2019 00:57:06 +0000 (00:57 +0000)]
Merge "DO NOT MERGE - Updated some javadocs." into qt-dev

5 years agoMerge "Do not unnecessarily re-inflate camera preview" into qt-dev
Lucas Dupin [Sat, 20 Apr 2019 00:33:37 +0000 (00:33 +0000)]
Merge "Do not unnecessarily re-inflate camera preview" into qt-dev

5 years agoMerge "Maintain legacy signatures" into qt-dev
TreeHugger Robot [Fri, 19 Apr 2019 23:41:32 +0000 (23:41 +0000)]
Merge "Maintain legacy signatures" into qt-dev

5 years agoRevert "Update clearData flow for notification settings"
Chavi Weingarten [Fri, 19 Apr 2019 23:16:24 +0000 (23:16 +0000)]
Revert "Update clearData flow for notification settings"

This reverts commit 224ef13774019a91bac24c60ba89fc21a5978e16.

Reason for revert: b/130908336 - breaks tests

Change-Id: I124330a970bfca6a9e2db10415c498a1f45580ff
Bug: 130908336

5 years agoDO NOT MERGE - Updated some javadocs.
Felipe Leme [Wed, 17 Apr 2019 18:16:17 +0000 (11:16 -0700)]
DO NOT MERGE - Updated some javadocs.

Test: make ds-docs

Bug: 130726495
Fixes: 130737893

Change-Id: Idaf50cb17b0668f3052d86f256d5428ba4e06a3c

5 years agoMerge "Power key behavior tweaks." into qt-dev
Steve Elliott [Fri, 19 Apr 2019 23:02:08 +0000 (23:02 +0000)]
Merge "Power key behavior tweaks." into qt-dev

5 years agoLet there be color
Lucas Dupin [Fri, 19 Apr 2019 22:38:42 +0000 (15:38 -0700)]
Let there be color

Use notification colors even on night mode (enforcing contrast of
course)

Test: pull down shade on LS and launcher
Fixes: 130756560
Change-Id: I3f3f6e426163e316906692ef8b9c416ca94242ee

5 years agoAdd nullability annotations to android.bluetooth.le.ScanFilter.Builder setServiceSoli...
Zach Johnson [Fri, 19 Apr 2019 21:13:03 +0000 (14:13 -0700)]
Add nullability annotations to android.bluetooth.le.ScanFilter.Builder setServiceSolicitationUuid

Test: compilation
Fixes: 126698824
Change-Id: I4873b46a37df3e103ddc62001cc9f0bc01aea4dc

5 years agoDimmer secondary color on dark mode
Lucas Dupin [Fri, 19 Apr 2019 22:21:59 +0000 (15:21 -0700)]
Dimmer secondary color on dark mode

To help focus on what matters

Test: visual
Fixes: 130755980
Change-Id: I070a7d36d110918d00e78b97b79bb6466c7e4f84

5 years agoFix SIM PIN listener registration
Lucas Dupin [Fri, 19 Apr 2019 22:03:51 +0000 (15:03 -0700)]
Fix SIM PIN listener registration

User correct lifecycle methods for listener regristion,
otherwise error messages would show up on the shared text field

Test: add/remove locked sim card
Test: solve sim challenge, go to bouncer
Fixes: 130906933
Change-Id: I5327c447b770da1148c3e3ef19c6a75e69832a90

5 years agoUpdate theme after registering config listener
Lucas Dupin [Fri, 19 Apr 2019 18:10:48 +0000 (11:10 -0700)]
Update theme after registering config listener

Theme might not be set yet during inflation and we might miss the
event if wait for the view to be added to the window, leading to
theme being out of sync.

Test: adb shell am crash com.android.systemui
Fixes: 130879865
Change-Id: Icd533457732b46b96aeacf9be0c32c02e6b33360

5 years agoMerge "Make Settings and SysUI estimates use same data class" into qt-dev
Salvador Martinez [Fri, 19 Apr 2019 22:00:27 +0000 (22:00 +0000)]
Merge "Make Settings and SysUI estimates use same data class" into qt-dev

5 years agoMerge "Remove the bubble if the notification is no longer FLAG_BUBBLE" into qt-dev
Mady Mellor [Fri, 19 Apr 2019 21:51:57 +0000 (21:51 +0000)]
Merge "Remove the bubble if the notification is no longer FLAG_BUBBLE" into qt-dev

5 years agoReplace synchronous calls to shared prefs with async calls.
Dave Mankoff [Fri, 19 Apr 2019 19:48:29 +0000 (15:48 -0400)]
Replace synchronous calls to shared prefs with async calls.

Also, make a copy of protected data to prevent accidental changes
from outside callers.

Bug: 130525551
Test: Manual.
Change-Id: I7b6efa32bc6db88b79579effaa7ffe1466a80380

5 years agoDismiss keyguard if pulsing unlocked
Lucas Dupin [Fri, 19 Apr 2019 03:57:40 +0000 (20:57 -0700)]
Dismiss keyguard if pulsing unlocked

BouncerExpansionCallback#onFullyShown will never be called when unlocked
because we collapse the shade without showing the PIN pad.
We need some special logic to make sure that the device will wake-up.

Test: swipe up from pulse when locked
Test: swipe up from pulse when unlocked
Fixes: 129315800
Change-Id: I740e598b180ad7aeb5b023a5984942b89ae1df5f

5 years agoMerge "Disable blocking helper" into qt-dev
TreeHugger Robot [Fri, 19 Apr 2019 20:38:02 +0000 (20:38 +0000)]
Merge "Disable blocking helper" into qt-dev

5 years agoMerge "Fix thermal throttling atoms" into qt-dev
TreeHugger Robot [Fri, 19 Apr 2019 20:22:40 +0000 (20:22 +0000)]
Merge "Fix thermal throttling atoms" into qt-dev

5 years agoMaintain legacy signatures
Todd Kennedy [Fri, 19 Apr 2019 20:05:40 +0000 (13:05 -0700)]
Maintain legacy signatures

The signature field is deprecated, but must still be populated. The
thought was that for APEX files [which is a new concept and thus
could use the new way to handle signatures] we could remove this
capability, but, it turns out Play relies on it.

Change-Id: I7096567082d4f798be1d3e6007122750453665ae
Fixes: 130827182
Test: Manual.
Test: Create sample app that dumped the signatures of an APEX
Test: Note that the signatures before this change were 'null' and set to something after this change

5 years agoMerge "Sharesheet - Move work profile text into list" into qt-dev
TreeHugger Robot [Fri, 19 Apr 2019 20:12:27 +0000 (20:12 +0000)]
Merge "Sharesheet - Move work profile text into list" into qt-dev

5 years agoMerge "Add DeviceConfig namespace for settings ui" into qt-dev
Lei Yu [Fri, 19 Apr 2019 19:44:53 +0000 (19:44 +0000)]
Merge "Add DeviceConfig namespace for settings ui" into qt-dev

5 years agoMerge "AudioService: support "full volume devices"" into qt-dev
TreeHugger Robot [Fri, 19 Apr 2019 19:42:27 +0000 (19:42 +0000)]
Merge "AudioService: support "full volume devices"" into qt-dev

5 years agoMerge "Allow caller holding BIND_CONTENT_SUGGESTIONS_SERVICE to make suggestion calls...
TreeHugger Robot [Fri, 19 Apr 2019 19:31:37 +0000 (19:31 +0000)]
Merge "Allow caller holding BIND_CONTENT_SUGGESTIONS_SERVICE to make suggestion calls" into qt-dev

5 years agoUpdate the CPU text cache sizes to be the same as their GPU equivalents
Derek Sollenberger [Thu, 18 Apr 2019 20:21:42 +0000 (16:21 -0400)]
Update the CPU text cache sizes to be the same as their GPU equivalents

Bug: 130684261
Test: uibench jank tests
Change-Id: Ieb837afd76d1990c796baa9794ba54a83b8cd46f

5 years agoFix back button not disappearing
Matthew Ng [Wed, 17 Apr 2019 21:14:18 +0000 (14:14 -0700)]
Fix back button not disappearing

Regression from: ag/7031929

Fixes: 130695273
Test: manual
Change-Id: Ic228ff37e0460424703fd33bbc4e301cc66c9e4c

5 years agoMerge "Move to android_mallopt for malloc debug calls." into qt-dev
Christopher Ferris [Fri, 19 Apr 2019 19:19:19 +0000 (19:19 +0000)]
Merge "Move to android_mallopt for malloc debug calls." into qt-dev

5 years agoMerge "Suppress singletap wakeup gesture while pulsing on dock" into qt-dev
TreeHugger Robot [Fri, 19 Apr 2019 19:10:46 +0000 (19:10 +0000)]
Merge "Suppress singletap wakeup gesture while pulsing on dock" into qt-dev

5 years agoSharesheet - Fix wrong metric value being recorded
Matt Pietal [Fri, 19 Apr 2019 18:47:14 +0000 (14:47 -0400)]
Sharesheet - Fix wrong metric value being recorded

When apps are sending EXTRA_CHOOSER_TARGETS, the wrong value is
getting recorded for metrics tracking. Use the correct offset.

Bug: 130613626
Test: Retest share through Imgur app
Change-Id: I0bccbfb064796f547b2e7b474f5aa06993ac3920

5 years agoMerge "Fixed concatenation to properly discard empty strings" into qt-dev
Fabian Kozynski [Fri, 19 Apr 2019 18:59:37 +0000 (18:59 +0000)]
Merge "Fixed concatenation to properly discard empty strings" into qt-dev

5 years agoFix NPE for devices that don't use a lock icon in sysui.
Brad Stenning [Fri, 19 Apr 2019 18:48:00 +0000 (11:48 -0700)]
Fix NPE for devices that don't use a lock icon in sysui.

Bug: 130880522
Test: Manual
Change-Id: I9daa0eedd73df963069077976fbb3af008c4070d

5 years agoMerge "Fix app transition delayed cases" into qt-dev
TreeHugger Robot [Fri, 19 Apr 2019 18:31:56 +0000 (18:31 +0000)]
Merge "Fix app transition delayed cases" into qt-dev

5 years agoMerge "Propogate per-display IME status to SysUI" into qt-dev
TreeHugger Robot [Fri, 19 Apr 2019 18:31:46 +0000 (18:31 +0000)]
Merge "Propogate per-display IME status to SysUI" into qt-dev

5 years agoMerge "Work on issue #130684057: oom_adj scores for 1P apps are abnormally low" into...
TreeHugger Robot [Fri, 19 Apr 2019 18:29:26 +0000 (18:29 +0000)]
Merge "Work on issue #130684057: oom_adj scores for 1P apps are abnormally low" into qt-dev

5 years agoMove to android_mallopt for malloc debug calls.
Christopher Ferris [Tue, 16 Apr 2019 18:34:58 +0000 (11:34 -0700)]
Move to android_mallopt for malloc debug calls.

Remove the guardrail/MemoryLeakTrackUtil.* files. They aren't used
and they are a copy of frameworks/av/media/utils/MemoryLeakTrackUtil.*.

Bug: 130028357

Test: Enable backtrace for calendar, run am dumpheap -n <PID> <FILE>
Change-Id: I6ce69465b0c04fae97b3622df2763a2996063d85
Merged-In: I6ce69465b0c04fae97b3622df2763a2996063d85
(cherry picked from commit 98180a344cfd08748dcf5a6aa5aebfdeb7e78b62)

5 years agoMerge "Add logging field for direct share selection" into qt-dev
Susi Kharraz-Post [Fri, 19 Apr 2019 17:47:55 +0000 (17:47 +0000)]
Merge "Add logging field for direct share selection" into qt-dev

5 years agoMerge "Adds onInvocationProgress method to AssistManager." into qt-dev
Govinda Wasserman [Fri, 19 Apr 2019 17:37:58 +0000 (17:37 +0000)]
Merge "Adds onInvocationProgress method to AssistManager." into qt-dev

5 years agoRemove the bubble if the notification is no longer FLAG_BUBBLE
Mady Mellor [Thu, 11 Apr 2019 20:36:40 +0000 (13:36 -0700)]
Remove the bubble if the notification is no longer FLAG_BUBBLE

Previously if a notification that was a bubble got updated such that it
would fail our bubble criteria, we wouldn't actually remove the bubble we
would just stop updating that bubble. This CL fixes it so that we'll remove
the bubble in that case.

This CL also factors all of the 'shouldBubble' logic into Notification
InterruptionStateProvider.

Fixes: 128459529
Test: CTSVerifier tests in other CL; atest BubbleControllerTest
Change-Id: Ia2b53a25a28d53bd2bbaebe4fe89f50d8d46a9fb

5 years agoMake Settings and SysUI estimates use same data class
Salvador Martinez [Thu, 11 Apr 2019 17:42:15 +0000 (10:42 -0700)]
Make Settings and SysUI estimates use same data class

This moves everything over to using a shared data class
for Estimates in SettingsLib which will facilitate a cl
that will help ensure greater consistency across
surfaces where battery estimates are shown.

Test: Tests pass
Bug: 124030091
Change-Id: I0b7f1f3a806255ff4804a00e6d90a7846c484484

5 years agoMerge "Update clearData flow for notification settings" into qt-dev
Julia Reynolds [Fri, 19 Apr 2019 17:29:05 +0000 (17:29 +0000)]
Merge "Update clearData flow for notification settings" into qt-dev

5 years agoMerge "Add event logs for top resumed state change" into qt-dev
Andrii Kulian [Fri, 19 Apr 2019 16:52:02 +0000 (16:52 +0000)]
Merge "Add event logs for top resumed state change" into qt-dev

5 years agoPower key behavior tweaks.
Dan Sandler [Sun, 31 Mar 2019 20:00:33 +0000 (16:00 -0400)]
Power key behavior tweaks.

  - Added a new value for config_longPressOnPowerBehavior:
    "5" means "launch assist intent"
  - Added global settings for power key longpress and "very
    long press" (3.5 sec), allowing these functions to be
    tweaked at runtime by privileged code

Bug: 130415373
Test: adb shell settings put global power_long_press 5
      # ^ set longpress to assist
      adb shell settings put global power_very_long_press 1
      # ^ set vlongpress to globalactions (so you can still
      # power off the device)
Test: atest frameworks/base/core/tests/coretests
Change-Id: Ic611b2850dc98fddd7662d32b0a60ca1e8231efb

5 years agoDo not unnecessarily re-inflate camera preview
Lucas Dupin [Fri, 19 Apr 2019 02:23:06 +0000 (19:23 -0700)]
Do not unnecessarily re-inflate camera preview

Camera preview inflation was happening every time the keyguard
visibility changed, causing jank and making sysui drop frames.

Ultimately, the symptom was AOD flashing after pressing power.

Fixes: 130878131
Test: press power to go from and to AOD
Test: double tap power to launch camera (preview is still available)
Test: press power to lock device from launcher
Change-Id: Id3df83d59dcd123a71b37297e9ab70a1e8a52c90

5 years agoDisable blocking helper
Julia Reynolds [Fri, 19 Apr 2019 15:23:55 +0000 (11:23 -0400)]
Disable blocking helper

By default, at least

Test: manual
Fixes: 130739518
Change-Id: Ic83c80740b2d844cad8eb97a08172b57204be8f8

5 years agoMerge "Visual changes in QS and made targets clickable" into qt-dev
Fabian Kozynski [Fri, 19 Apr 2019 16:05:28 +0000 (16:05 +0000)]
Merge "Visual changes in QS and made targets clickable" into qt-dev

5 years agoMerge "Remove ripple from Dark mode tile" into qt-dev
TreeHugger Robot [Fri, 19 Apr 2019 16:02:24 +0000 (16:02 +0000)]
Merge "Remove ripple from Dark mode tile" into qt-dev

5 years agoMerge "GtsPermissionTestCases: Temporarily remove the GtsPermissionTestCases from...
TreeHugger Robot [Fri, 19 Apr 2019 16:01:04 +0000 (16:01 +0000)]
Merge "GtsPermissionTestCases: Temporarily remove the GtsPermissionTestCases from TEST MAPPING." into qt-dev

5 years agoMerge "Use MediaStore.scanFile instead of manually inserting to MediaProvider." into...
Sudheer Shanka [Fri, 19 Apr 2019 15:57:38 +0000 (15:57 +0000)]
Merge "Use MediaStore.scanFile instead of manually inserting to MediaProvider." into qt-dev

5 years agoMerge "Do not show lock screen when SIM is removed" into qt-dev
Lucas Dupin [Fri, 19 Apr 2019 15:54:01 +0000 (15:54 +0000)]
Merge "Do not show lock screen when SIM is removed" into qt-dev

5 years agoSharesheet - Move work profile text into list
Matt Pietal [Thu, 18 Apr 2019 17:38:46 +0000 (13:38 -0400)]
Sharesheet - Move work profile text into list

Move the profile switching logic into the scrollable list area. Fix
visual artifact due to reusing drawable.

Bug: 130353935
Test: atest ChooserActivityTest + visual inspection
Change-Id: I0666b0e61ea696017c2da4854e407d502b7b556c

5 years agoMerge "Change how PagedTileLayout is measured" into qt-dev
TreeHugger Robot [Fri, 19 Apr 2019 15:30:34 +0000 (15:30 +0000)]
Merge "Change how PagedTileLayout is measured" into qt-dev

5 years agoUpdate clearData flow for notification settings
Julia Reynolds [Fri, 19 Apr 2019 15:08:27 +0000 (11:08 -0400)]
Update clearData flow for notification settings

Some settings need to be maintained (like whether the app
is the default dialer), so don't just wipe away all of the settings.

Test: atest; clear data on default dialer and ensure missed call
notification is still in priority bucket
Fixes: 127855529

Change-Id: Ieba035ffd04de9eef64fa0dfa914209d887d40bf

5 years agoAdd logging field for direct share selection
Susi Kharraz-Post [Wed, 17 Apr 2019 20:33:41 +0000 (16:33 -0400)]
Add logging field for direct share selection

To help evaluate the new ranking algo we want to know if the package for
a direct share was also offered as one of the ranked apps.
Logging the position if it is part of the top apps, otherwise logging
-1.
Also added a test case I missed for HashedStringCache and removing the
test for hashing resulting in the same hashed string when called twice
from the ChooserActivityTest since we now cover that in the
HashedStringCacheTest.

Bug: 130658734
Test: Added more test cases in ChooserActivityTest and did manual
testing

Change-Id: I0e34a6bf64114d94197f62b8219652c33c03a410

5 years agoMerge "Add unit tests to ListGridLayout." into qt-dev
Aaron Heuckroth [Fri, 19 Apr 2019 14:22:44 +0000 (14:22 +0000)]
Merge "Add unit tests to ListGridLayout." into qt-dev

5 years agoAdds Assistant invocation type to home long press.
Govinda Wasserman [Fri, 19 Apr 2019 13:42:53 +0000 (09:42 -0400)]
Adds Assistant invocation type to home long press.

This allows both the logging of the Assistant invocation type and for
the Assistant to change its behavior based on the invocation type.

Test: Checked value is added to bundle
BUG:128982146
Change-Id: I1376f4b20fdb82e73d80a396f1e148c1a5fba01e

5 years agoAdds onInvocationProgress method to AssistManager.
Govinda Wasserman [Mon, 15 Apr 2019 14:07:37 +0000 (10:07 -0400)]
Adds onInvocationProgress method to AssistManager.

This will allow Assistant invoction methods such as squeeze to show the
new assistant animations.

Test: Tested locally
BUG:123661896
Change-Id: I6b5cb3e55df3ff109fea1cfcce6d3161f8685401

5 years agoMerge "Check zen modes+manual rule for in consol zen pol" into qt-dev
Beverly Tai [Fri, 19 Apr 2019 13:17:20 +0000 (13:17 +0000)]
Merge "Check zen modes+manual rule for in consol zen pol" into qt-dev

5 years agoMerge "DngCreator: more lens distortion handling" into qt-dev
TreeHugger Robot [Fri, 19 Apr 2019 12:56:17 +0000 (12:56 +0000)]
Merge "DngCreator: more lens distortion handling" into qt-dev

5 years agoMerge "Make sure focused window is tracked by accessibility even if it is obscured...
TreeHugger Robot [Fri, 19 Apr 2019 12:35:16 +0000 (12:35 +0000)]
Merge "Make sure focused window is tracked by accessibility even if it is obscured." into qt-dev

5 years agoMerge "Monitor swap" into qt-dev
TreeHugger Robot [Fri, 19 Apr 2019 08:53:22 +0000 (08:53 +0000)]
Merge "Monitor swap" into qt-dev

5 years agoSuppress singletap wakeup gesture while pulsing on dock
Jerry Chang [Thu, 18 Apr 2019 03:09:13 +0000 (11:09 +0800)]
Suppress singletap wakeup gesture while pulsing on dock

Fix: 129788726
Test: atest SystemUITests
Test: manual
Change-Id: I6a147ea2dce542eb578a29338f437fb58b8490ee

5 years agoMerge "Ensure that we are removing recent tasks for a user including their profiles...
TreeHugger Robot [Fri, 19 Apr 2019 06:56:51 +0000 (06:56 +0000)]
Merge "Ensure that we are removing recent tasks for a user including their profiles" into qt-dev

5 years agoMerge "Change argument of MediaSession2.Builder#setExtras() as @NonNull" into qt-dev
TreeHugger Robot [Fri, 19 Apr 2019 06:52:03 +0000 (06:52 +0000)]
Merge "Change argument of MediaSession2.Builder#setExtras() as @NonNull" into qt-dev