OSDN Git Service

android-x86/frameworks-base.git
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 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 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 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 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 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 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

5 years agoMerge "Check that sysui states before allowing back gesture" into qt-dev
Winson Chung [Fri, 19 Apr 2019 06:14:46 +0000 (06:14 +0000)]
Merge "Check that sysui states before allowing back gesture" into qt-dev

5 years agoMonitor swap
Rafal Slawik [Tue, 16 Apr 2019 12:16:15 +0000 (13:16 +0100)]
Monitor swap

Pull value of VmSwap from /proc/PID/status when capturing
ProcessMemoryState atom.

Before change:
(average pull time nanos) 43355896
(max pull time nanos) 75649278

After change:
(average pull time nanos) 86307073
(max pull time nanos) 151681474

Delta: 2x increase
Pulling frequency is controled via statsd and we trade-off more
expensive reads for more actionable data (helping detect memory leaks).

Bug: 130624561
Test: atest MemoryStatUtilTest
Test: benchmark pulling ProcessMemoryState atom
Test: manually take a statsd report
Change-Id: I1d90563b70b5253b3d31ddab4810db870620c4d4
(cherry picked from commit 65a9b7122ada9db7a95cdfe31fa97b328bd04a06)

5 years agoMerge "Add a flag to cancelDragAndDrop to skip animation" into qt-dev
TreeHugger Robot [Fri, 19 Apr 2019 05:40:41 +0000 (05:40 +0000)]
Merge "Add a flag to cancelDragAndDrop to skip animation" into qt-dev

5 years agoMerge "Add AppPredictionServiceResolverComparator" into qt-dev
TreeHugger Robot [Fri, 19 Apr 2019 05:37:21 +0000 (05:37 +0000)]
Merge "Add AppPredictionServiceResolverComparator" into qt-dev

5 years agoMerge "Add fallback for TEXTURE_TICK" into qt-dev
TreeHugger Robot [Fri, 19 Apr 2019 05:35:02 +0000 (05:35 +0000)]
Merge "Add fallback for TEXTURE_TICK" into qt-dev

5 years agoPropogate per-display IME status to SysUI
lumark [Thu, 7 Mar 2019 14:14:38 +0000 (22:14 +0800)]
Propogate per-display IME status to SysUI

CL [1] introduced SystemUI to support updating IME window status per
display. (i.e. IStatusBarService#setImeWindowStatus left TODO item to
add displayId parameter to select the target display.)

For IMMS, we applied this API base on current token's displayId, and refined
the code flow in Sysui to reset IME window state for non-target display's
NavBar when single IME switch to another display case.

And make sure some cases in IMMS should reset IME window status:
- When current method unbind.
- When current top window focus display is not same as current token's display.
  (That means the input session may connected but IME window not
  yet attached. Note that it doesn't include external display without
  system decoration and show IME window on default display case since it
  is intentional behavior and we still need to update status for this
  case.)

Also added testSetImeWindowStatusWhenImeSwitchOnDisplay in
NavigationBarFragmentTest to enhance the ability of verifying external
navigation bar.

[1]: 24e7a9fdb51978a47ce29f3816338da04a49d6ca

Bug: 127309955
Bug: 117478341
Test: atest NavigationBarFragmentTest
Test: manual as below steps:
      - Pre-condition:
          1. Enable desktop mode.
          2. Create simulated display.
      - Use case 1):
          1. Launch an activity with input field on simulated display.
          2. Bring up the IME there, expect back key icon on external
             NavBar will changed when IME bring up.
          3. Tap on primary display or launch an activity there.
     (or pressing home key)
          4. Expect IME will hide & back key icon on external NavBar will
             set back.
      - Use case 2):
          1. Launch activity with input field on default display.
          2. Tapping EditText in activity on default display.
  3. Expect IME will bring up here and back key icon on default
     display will changed when IME bring up.
          4. Launch activity without input field in external display.
     (i.e. clock app)
          5. Expect Both Default & external display's nav bar back key icon
     will set back.

Change-Id: Ia414b8aea631e295cccd6f6da44d04bad16545c7

5 years agoMerge "String review follow-up" into qt-dev
TreeHugger Robot [Fri, 19 Apr 2019 05:31:43 +0000 (05:31 +0000)]
Merge "String review follow-up" into qt-dev

5 years agoMerge "Remove restricted uitls methods for cross-profile calendar." into qt-dev
TreeHugger Robot [Fri, 19 Apr 2019 05:24:24 +0000 (05:24 +0000)]
Merge "Remove restricted uitls methods for cross-profile calendar." into qt-dev

5 years agoMerge "Update wirelessly charging text on lockscreen" into qt-dev
TreeHugger Robot [Fri, 19 Apr 2019 05:03:53 +0000 (05:03 +0000)]
Merge "Update wirelessly charging text on lockscreen" into qt-dev

5 years agoMerge "Update Bubble clock face" into qt-dev
TreeHugger Robot [Fri, 19 Apr 2019 04:58:01 +0000 (04:58 +0000)]
Merge "Update Bubble clock face" into qt-dev

5 years agoMerge "psi support for low memory detection inside ActivityManagerService" into qt-dev
Tim Murray [Fri, 19 Apr 2019 04:40:56 +0000 (04:40 +0000)]
Merge "psi support for low memory detection inside ActivityManagerService" into qt-dev

5 years agoTethering: fix using wrong subId problem
Mark Chien [Tue, 16 Apr 2019 13:03:51 +0000 (06:03 -0700)]
Tethering: fix using wrong subId problem

There is the potential bug[1] that default data subId change
intent may lose. So tethering may cache the outdated default
data subId in TetheringConfiguration. Now EntitlementManager
would fetch configuration every time and this would re-exam
whether subId is changed.
Additional passing subId to Settings to avoid default data
subId change right away when launching entitlement check.
Thus, Settings can know whether this is outdated entitlement
check request.
[1] b/129224596

Bug: 129751453
Test: -build, flash, boot
      -atest FrameworksNetTests
      -manual test with carrier SIM

Change-Id: I318cdd86bd7e516f7673bb293d1d9bf967861d8f
Merged-In: I32e238c4786657ecd4bacfa3260c28c3f083cf08
Merged-In: I318cdd86bd7e516f7673bb293d1d9bf967861d8f
(cherry picked from commit 430dd6e98aa1e76219c7ba74b9d9a1b202bf39cc)

5 years agoChange argument of MediaSession2.Builder#setExtras() as @NonNull
Hyundo Moon [Thu, 18 Apr 2019 07:27:41 +0000 (16:27 +0900)]
Change argument of MediaSession2.Builder#setExtras() as @NonNull

Bug: 130777551
Test: make update-api -j;
Change-Id: I39431850d87a6a5e066b83dbbf39e4e9100ac839

5 years agoMerge "[wm]: ensure task positioner controller is always cleaned up" into qt-dev
TreeHugger Robot [Fri, 19 Apr 2019 04:09:23 +0000 (04:09 +0000)]
Merge "[wm]: ensure task positioner controller is always cleaned up" into qt-dev

5 years agoMerge "Rename MediaSession2/MediaController2 methods" into qt-dev
Jin Seok Park [Fri, 19 Apr 2019 03:16:11 +0000 (03:16 +0000)]
Merge "Rename MediaSession2/MediaController2 methods" into qt-dev

5 years agoMerge "Move padlock to the top of the lock screen" into qt-dev
Lucas Dupin [Fri, 19 Apr 2019 03:16:00 +0000 (03:16 +0000)]
Merge "Move padlock to the top of the lock screen" into qt-dev

5 years agoMerge "Make LocaleList.isPseudoLocale a public API" into qt-dev
TreeHugger Robot [Fri, 19 Apr 2019 03:11:31 +0000 (03:11 +0000)]
Merge "Make LocaleList.isPseudoLocale a public API" into qt-dev

5 years agoString review follow-up
Po-Chien Hsueh [Tue, 16 Apr 2019 08:24:27 +0000 (16:24 +0800)]
String review follow-up

Rename "Android On Tap" to "Dynamic System Updates".
And, some string changes to follow review suggestions.

Bug: 129100345
Bug: 129330026
Test: make the package
Change-Id: I440e5beaa3831814d2f7f1063be16d073c5f2c38

5 years agoAdd event logs for top resumed state change
Andrii Kulian [Fri, 19 Apr 2019 02:41:23 +0000 (19:41 -0700)]
Add event logs for top resumed state change

Bug: 130807813
Test: Build and run, check logs
Change-Id: Ib00a38fa308888bfc784d53145fff54325e355d3

5 years agoAdd a flag to cancelDragAndDrop to skip animation
Daichi Hirono [Mon, 15 Apr 2019 06:58:11 +0000 (15:58 +0900)]
Add a flag to cancelDragAndDrop to skip animation

When running cancel animation for drag shadow image, the system cannot
start another drag operation, which is problematic when the system would
start the other drag operation quickly.

Bug: 130313958
Test: Cancel drag operation by calling cancelDragAndDrop
Change-Id: I5d6650a0ce9a4cd80bbdb1beabc9e514349ccadc

5 years agoMerge "Adding @hide API to return whether an APN is metered or not." into qt-dev
Xiangyu/Malcolm Chen [Fri, 19 Apr 2019 02:18:45 +0000 (02:18 +0000)]
Merge "Adding @hide API to return whether an APN is metered or not." into qt-dev

5 years agoAdd AppPredictionServiceResolverComparator
George Hodulik [Sat, 13 Apr 2019 00:10:31 +0000 (17:10 -0700)]
Add AppPredictionServiceResolverComparator

This will sort the share activities based on the APS sorting.
We add a constructor for ResolverListController which takes an
AbstractResolverComparator, so that ChooserActivity may pass in
the APS comparator if it is enabled and available.

Test: Manually tested on APS sorter that did no sorting.
Test: atest frameworks/base/core/tests/coretests/src/com/android/internal/app
Bug: 129014961
Change-Id: I542254ffb0debad45bcd8d5073cc3f3e1bafc616
Signed-off-by: George Hodulik <georgehodulik@google.com>
5 years agoGtsPermissionTestCases: Temporarily remove the GtsPermissionTestCases
easoncylee [Fri, 19 Apr 2019 01:09:31 +0000 (09:09 +0800)]
GtsPermissionTestCases: Temporarily remove the GtsPermissionTestCases
from TEST MAPPING.

Bug: 124834825

Test: atest --test-mapping frameworks/base/services/core/java/com/android/server/pm/permission/TEST_MAPPING
Change-Id: Iffbf902cda2d79a1f70042d050512b63ef56a0c3

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

5 years agoRevert "Remove the bubble if the notification is no longer FLAG_BUBBLE"
Mady Mellor [Fri, 19 Apr 2019 01:39:23 +0000 (01:39 +0000)]
Revert "Remove the bubble if the notification is no longer FLAG_BUBBLE"

This reverts commit 34a3073cfd47f70c5453f6eb1ccf446b0f7ee387.
Bug: 128459529
Reason for revert: I bypassed treehugger but after looking at all the test failures some of them might have been me

Change-Id: I5e34001a3340610a86ab5d9f6ffd29ef6ecd7b39

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

5 years agoUse MediaStore.scanFile instead of manually inserting to MediaProvider.
Sudheer Shanka [Fri, 19 Apr 2019 01:26:56 +0000 (18:26 -0700)]
Use MediaStore.scanFile instead of manually inserting to MediaProvider.

Bug: 126378047
Test: manual
Change-Id: Ided7c2fa861055d41581b15bd9d0678a29bcb825

5 years agoEnsure that we are removing recent tasks for a user including their profiles
Winson Chung [Wed, 17 Apr 2019 22:40:11 +0000 (15:40 -0700)]
Ensure that we are removing recent tasks for a user including their profiles

- Also ensure that only the recents component can freeze the task list

Bug: 130662533
Test: atest RecentTasksTest
Change-Id: I0bdebcfd03f998b5a897e7622e9207c442b05957

5 years agoMove padlock to the top of the lock screen
Lucas Dupin [Wed, 17 Apr 2019 23:50:58 +0000 (16:50 -0700)]
Move padlock to the top of the lock screen

Test: tap on notification on lock screen
Test: tap on notification on shade locked
Test: swipe down from the top expanding QS
Test: swipe up from LS
Test: switch between pin, pattern and password
Test: add and remove locked sim card
Test: atest KeyguardBottomAreaTest
Test: atest KeyguardClockPositionAlgorithmTest
Test: atest KeyguardMessageAreaTest
Test: atest KeyguardIndicationControllerTest
Test: atest StatusBarKeyguardViewManagerTest
Test: atest KeyguardBouncerTest
Test: atest KeyguardPatternViewTest
Fixes: 130398499
Fixes: 130298363
Fixes: 129784068
Fixes: 130223966
Change-Id: Ib1706de259fa4b1f4ef13f654cbd931457733d82

5 years agoAdding @hide API to return whether an APN is metered or not.
Malcolm Chen [Thu, 18 Apr 2019 20:49:17 +0000 (13:49 -0700)]
Adding @hide API to return whether an APN is metered or not.

In addition, make isMmsDataEnabled more generic:
isDataEnabledForApn

Bug: 128616035
Test: manual
Change-Id: Icd520c3094dd761a13435fae79b7b6b3ba2ebda9