OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge "Fix performance regression by fixing keys used in Typeface.Builder" into qt-dev
TreeHugger Robot [Wed, 24 Apr 2019 03:35:15 +0000 (03:35 +0000)]
Merge "Fix performance regression by fixing keys used in Typeface.Builder" into qt-dev

5 years agoMerge "Check and configure pixel format when locking canvas" into qt-dev
TreeHugger Robot [Wed, 24 Apr 2019 02:28:39 +0000 (02:28 +0000)]
Merge "Check and configure pixel format when locking canvas" into qt-dev

5 years agoMerge "Sharesheet - Scrolling UI adjustments" into qt-dev
TreeHugger Robot [Wed, 24 Apr 2019 01:56:52 +0000 (01:56 +0000)]
Merge "Sharesheet - Scrolling UI adjustments" into qt-dev

5 years agoMerge "Transition to bold when shrinking clock" into qt-dev
TreeHugger Robot [Wed, 24 Apr 2019 01:34:32 +0000 (01:34 +0000)]
Merge "Transition to bold when shrinking clock" into qt-dev

5 years agoMerge "Make MediaController#getSessionInfo() as @NonNull" into qt-dev
Hyundo Moon [Wed, 24 Apr 2019 01:31:39 +0000 (01:31 +0000)]
Merge "Make MediaController#getSessionInfo() as @NonNull" into qt-dev

5 years agoMerge "Camera: Relax BURST_CAPTURE FPS requirements" into qt-dev
TreeHugger Robot [Wed, 24 Apr 2019 01:19:09 +0000 (01:19 +0000)]
Merge "Camera: Relax BURST_CAPTURE FPS requirements" into qt-dev

5 years agoMerge "Add encryption in incidentd." into qt-dev
TreeHugger Robot [Wed, 24 Apr 2019 01:01:25 +0000 (01:01 +0000)]
Merge "Add encryption in incidentd." into qt-dev

5 years agoMerge "Initialize Global Actions Panel when one is available" into qt-dev
TreeHugger Robot [Wed, 24 Apr 2019 00:51:06 +0000 (00:51 +0000)]
Merge "Initialize Global Actions Panel when one is available" into qt-dev

5 years agoMerge "Fix click and long click lock behavior" into qt-dev
Lucas Dupin [Wed, 24 Apr 2019 00:41:45 +0000 (00:41 +0000)]
Merge "Fix click and long click lock behavior" into qt-dev

5 years agoMerge "Fix incorrect error log message in GnssVisibilityControl class" into qt-dev
Anil Admal [Wed, 24 Apr 2019 00:12:41 +0000 (00:12 +0000)]
Merge "Fix incorrect error log message in GnssVisibilityControl class" into qt-dev

5 years agoMerge "ASurfaceControl: fix surface damage" into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 23:57:19 +0000 (23:57 +0000)]
Merge "ASurfaceControl: fix surface damage" into qt-dev

5 years agoMerge "Sharesheet - update direct share loading animation" into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 23:48:41 +0000 (23:48 +0000)]
Merge "Sharesheet - update direct share loading animation" into qt-dev

5 years agoMerge "Add logging for dozing on or off due to sensor wake up." into qt-dev
Steven Wu [Tue, 23 Apr 2019 23:46:43 +0000 (23:46 +0000)]
Merge "Add logging for dozing on or off due to sensor wake up." into qt-dev

5 years agoMerge "Finish up Intent identifier implementation." into qt-dev
Dianne Hackborn [Tue, 23 Apr 2019 22:43:34 +0000 (22:43 +0000)]
Merge "Finish up Intent identifier implementation." into qt-dev

5 years agoMerge "Add overlayable_icons_test to framework/SystemUI" into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 22:39:55 +0000 (22:39 +0000)]
Merge "Add overlayable_icons_test to framework/SystemUI" into qt-dev

5 years agoAdd encryption in incidentd.
Yao Chen [Sun, 21 Apr 2019 21:34:30 +0000 (14:34 -0700)]
Add encryption in incidentd.

+ Sections which require encryption will be encryted on disk.

+ When the sections are requested by clients (e.g., permission controller, report assignee),
  incidentd will decrypte the data.

+ For efficiency, encryption is done ONLY for sections that require encryption.

+ Use Keystore API for key management.

Bug: 131084614
Test: incidentd_test
Change-Id: I84d6b86807ba5bbde1051e847b2df6e79e6b5be5

5 years agoMerge "Ask netd to swap stats map before reading" into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 21:57:09 +0000 (21:57 +0000)]
Merge "Ask netd to swap stats map before reading" into qt-dev

5 years agoMerge "Notification guts redesign" into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 21:45:25 +0000 (21:45 +0000)]
Merge "Notification guts redesign" into qt-dev

5 years agoMerge "Removed the experimental code for gestural mode" into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 21:11:28 +0000 (21:11 +0000)]
Merge "Removed the experimental code for gestural mode" into qt-dev

5 years agoASurfaceControl: fix surface damage
Marissa Wall [Tue, 23 Apr 2019 21:10:15 +0000 (14:10 -0700)]
ASurfaceControl: fix surface damage

There are two problems with surface control.
1) By merging the rects, the Region turned into 0,0,0,0 instead of
an or of the Rects.
2) In the case where an app intends to have a region of 0,0,0,0,
we should treat it the same as a region of 0,0,-1,-1.

Bug: 131175047
Test: ASurfaceControl
Change-Id: Ib2e3b90ac215e069d3d3c2eca81ff1013b4287aa

5 years agoMerge "Let NoMan know when something is no longer a bubble" into qt-dev
Mady Mellor [Tue, 23 Apr 2019 21:07:05 +0000 (21:07 +0000)]
Merge "Let NoMan know when something is no longer a bubble" into qt-dev

5 years agoMerge "3->1 binder calls to OverlayManager for Navbar settings" into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 21:03:36 +0000 (21:03 +0000)]
Merge "3->1 binder calls to OverlayManager for Navbar settings" into qt-dev

5 years agoInitialize Global Actions Panel when one is available
Steve Elliott [Tue, 23 Apr 2019 20:59:06 +0000 (16:59 -0400)]
Initialize Global Actions Panel when one is available

This bug was accidentally introduced when the dialog initialization
logic was modified in ag/6925312.

Test: manual
Bug: 129964234
Change-Id: I7a1a01c22e556b362bbb850be94464530e5a3a96

5 years agoMerge "Do not populate SLOT_KEY with wrong slot info" into qt-dev
Jordan Liu [Tue, 23 Apr 2019 20:40:09 +0000 (20:40 +0000)]
Merge "Do not populate SLOT_KEY with wrong slot info" into qt-dev

5 years agoFix performance regression by fixing keys used in Typeface.Builder
Seigo Nonaka [Tue, 23 Apr 2019 20:21:27 +0000 (13:21 -0700)]
Fix performance regression by fixing keys used in Typeface.Builder

The key used in Typeface.Builder is different from the key used in
findFromCache method. The problem is key generation in Typeface.Builder
since the key should be created from requested parameters not the actual
font styles.

Here is the raw performance differences on walleye-userdebug

android.graphics.perftests.TypefaceCreatePerfTest(us):
  createFromResources: 248 -> 23: (-225, -90.7%)

Bug: 131167183
Test: manually collected perf test result.
Change-Id: Idea25095979707ac84b7f4bc1ede0c2daefd6127

5 years agoFix click and long click lock behavior
Lucas Dupin [Tue, 23 Apr 2019 17:19:27 +0000 (10:19 -0700)]
Fix click and long click lock behavior

Accessibility clicks should unlock the phone and long presses should
disable trust agents.

Fixes: 131059420
Fixes: 130326686
Test: long press with trust agent
Test: double tap with TalkBack on lock screen
Test: double tap with TalkBack on bouncer
Change-Id: Ib2df54c540ebed0adf6c3cbcb82376c02e54d540

5 years agoMerge "Clean up left over prototype code in Navigation Bar" into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 20:12:16 +0000 (20:12 +0000)]
Merge "Clean up left over prototype code in Navigation Bar" into qt-dev

5 years agoMerge "Update settings to properties mapper to use multi property listener." into...
Matt Pape [Tue, 23 Apr 2019 19:54:38 +0000 (19:54 +0000)]
Merge "Update settings to properties mapper to use multi property listener." into qt-dev

5 years agoTransition to bold when shrinking clock
Robert Snoeberger [Mon, 22 Apr 2019 20:22:49 +0000 (16:22 -0400)]
Transition to bold when shrinking clock

Bug: 130223602
Test: visual - AOD to lock screen while playing music
Change-Id: Id03f93854bdb98a83664dc651cf1f30618f09176

5 years agoFix incorrect error log message in GnssVisibilityControl class
Anil Admal [Thu, 18 Apr 2019 01:08:46 +0000 (18:08 -0700)]
Fix incorrect error log message in GnssVisibilityControl class

Fixes: 130763415
Test: Verified on a Pixel device.
Change-Id: I83c150df1e99e9fb264fdafd846be1afb33897ed

5 years agoMerge "Camera: fix null pointer dereference" into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 19:37:25 +0000 (19:37 +0000)]
Merge "Camera: fix null pointer dereference" into qt-dev

5 years agoMerge "Revert "Add apex packages to uid_mapping"" into qt-dev
Howard Ro [Tue, 23 Apr 2019 19:36:25 +0000 (19:36 +0000)]
Merge "Revert "Add apex packages to uid_mapping"" into qt-dev

5 years agoMerge "pm set-home-activity waits until completion" into qt-dev
Makoto Onuki [Tue, 23 Apr 2019 19:36:08 +0000 (19:36 +0000)]
Merge "pm set-home-activity waits until completion" into qt-dev

5 years agoRevert "Add apex packages to uid_mapping"
Howard Ro [Tue, 23 Apr 2019 18:59:33 +0000 (18:59 +0000)]
Revert "Add apex packages to uid_mapping"

This reverts commit 67b1e54327e828a39a0706740d3898a8b561a81f.

Bug: 131167067
Reason for revert: b/131167067

Change-Id: I9a6aa7121a83c50fc99954bd2485eccfb26d74f5

5 years agoMerge "Don't start an observer without an extcon device" into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 19:33:35 +0000 (19:33 +0000)]
Merge "Don't start an observer without an extcon device" into qt-dev

5 years agoMerge "Sharesheet - make work profile badges render" into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 19:20:56 +0000 (19:20 +0000)]
Merge "Sharesheet - make work profile badges render" into qt-dev

5 years agoAdd logging for dozing on or off due to sensor wake up.
Steven Wu [Tue, 23 Apr 2019 17:27:33 +0000 (13:27 -0400)]
Add logging for dozing on or off due to sensor wake up.

Test: manual
Bug: 117215619
Change-Id: Ic112fdcf05c934543698d9b6e3b98d56965c64e2

5 years agoMerge "Copy private resources into SettingsLib's ProgressBar." into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 19:11:26 +0000 (19:11 +0000)]
Merge "Copy private resources into SettingsLib's ProgressBar." into qt-dev

5 years ago3->1 binder calls to OverlayManager for Navbar settings
Hyunyoung Song [Tue, 23 Apr 2019 18:24:55 +0000 (11:24 -0700)]
3->1 binder calls to OverlayManager for Navbar settings

Bug: 131112014
Test: builds
Change-Id: I2518ccd28493ef82793c9af192e72ee6521e6fd6

5 years agoMerge "Adding callback when surface params are applied" into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 18:32:26 +0000 (18:32 +0000)]
Merge "Adding callback when surface params are applied" into qt-dev

5 years agoNotification guts redesign
Julia Reynolds [Fri, 19 Apr 2019 19:46:13 +0000 (15:46 -0400)]
Notification guts redesign

Test: atest
Fixes: 130766408
Fixes: 129453207
Bug: 127992400
Fixes: 129507783
Fixes: 130342795
Fixes: 130805969

Change-Id: I93984698c5380badb162774c818a1d040ccf9c1c

5 years agoAdd overlayable_icons_test to framework/SystemUI
Amin Shaikh [Wed, 17 Apr 2019 19:24:42 +0000 (15:24 -0400)]
Add overlayable_icons_test to framework/SystemUI

This ensures that developers do not accidentally delete/rename overlayed icons
without updating overlayable_icons_text.xml and renaming overlayed assets.

Bug: 130438597
Bug: 128571899
Test: make tests
Change-Id: I54411b3a587c4798a190f49071d5a8aa399cd824

5 years agoLet NoMan know when something is no longer a bubble
Mady Mellor [Thu, 18 Apr 2019 20:26:18 +0000 (13:26 -0700)]
Let NoMan know when something is no longer a bubble

This is needed for some of the notification group summary stuff to work.

More importantly, this is needed so that we can properly report to apps
if their notification is bubbled or not, e.g. if the user dismisses the
bubble & the notification is in the shade, that shouldn't be reported as
'FLAG_BUBBLE' as that notification is not actually being shown as a bubble.

* Adds onBubbleNotificationChanged to NotificationDelegate to pipe through
  changes in bubble state, currently we only ever change it to 'false' but
  this CL includes ability to flip it to 'true' (and also checks if the
  notif should actually be able to bubble)
* Factors code that indicates something is approved to bubble into own
  method
* Adds way to set BubbleMetadata on a notification (hidden !!)

Bug: 130250809
Test: atest NotificationManagerServiceTest
Change-Id: I8df4cc1231ed5d078ce4d50a70d2631f82fd2306

5 years agoMerge "Add a lock to protect persistent stats snapshot" into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 18:19:06 +0000 (18:19 +0000)]
Merge "Add a lock to protect persistent stats snapshot" into qt-dev

5 years agoDo not populate SLOT_KEY with wrong slot info
Jordan Liu [Mon, 22 Apr 2019 20:58:02 +0000 (13:58 -0700)]
Do not populate SLOT_KEY with wrong slot info

The slotId is not necessarily the phoneId, so do not broadcast as if it
is. SLOT_KEY is a hidden extra so this should not impact apps in general
(if they need the old extra they can still use the hidden PHONE_KEY).

For select broadcasts like SIM_CARD_STATE_CHANGED, we will manually
populate the slot key. This is a temporary solution to b/130664115 and
we should eventually review and consider making the SLOT_KEY public for
some broadcasts.

Bug: 130664115
Test: manual
Change-Id: I84bd4c6bc4277e32cee9916dd18dd80948a808a0
(cherry picked from commit 21c3aeb49de064b011a452143f99b623acb94786)

5 years agoMerge "Add content description to sensors off icon in status bar" into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 17:56:46 +0000 (17:56 +0000)]
Merge "Add content description to sensors off icon in status bar" into qt-dev

5 years agoMerge "Add action metrics for Wi-Fi provision features" into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 17:36:54 +0000 (17:36 +0000)]
Merge "Add action metrics for Wi-Fi provision features" into qt-dev

5 years agoMerge "Fix urn compare in EmergencyNumber" into qt-dev
Shuo Qian [Tue, 23 Apr 2019 17:27:26 +0000 (17:27 +0000)]
Merge "Fix urn compare in EmergencyNumber" into qt-dev

5 years agoMerge "Make sure to sync GPU after deleting memory in trimMemory." into qt-dev
Greg Daniel [Tue, 23 Apr 2019 16:52:06 +0000 (16:52 +0000)]
Merge "Make sure to sync GPU after deleting memory in trimMemory." into qt-dev

5 years agoMerge "Add delay to power-button power-off after gesture wakeup." into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 16:31:24 +0000 (16:31 +0000)]
Merge "Add delay to power-button power-off after gesture wakeup." into qt-dev

5 years agoMerge "Remove allocation from HeaderTileLayout#onLayout" into qt-dev
Fabian Kozynski [Tue, 23 Apr 2019 16:21:57 +0000 (16:21 +0000)]
Merge "Remove allocation from HeaderTileLayout#onLayout" into qt-dev

5 years agoSharesheet - Scrolling UI adjustments
Matt Pietal [Tue, 23 Apr 2019 15:35:53 +0000 (11:35 -0400)]
Sharesheet - Scrolling UI adjustments

Add elevation on scroll for 'scroll under' effect. Remove scrollbars.

Bug: 129979914
Test: Visual inspection
Change-Id: Ia2fd19fc2fd2f3f2e966991e8a907f25c6925df9

5 years agoMerge "Add ID field to the Callback" into qt-dev
Lucas Dupin [Tue, 23 Apr 2019 16:11:20 +0000 (16:11 +0000)]
Merge "Add ID field to the Callback" into qt-dev

5 years agoMerge "Set config_bottomDialogCornerRadius for square icon shape." into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 16:03:47 +0000 (16:03 +0000)]
Merge "Set config_bottomDialogCornerRadius for square icon shape." into qt-dev

5 years agoMerge "[wm] Add tests to check adjust bounds logic will always exit" into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 15:57:37 +0000 (15:57 +0000)]
Merge "[wm] Add tests to check adjust bounds logic will always exit" into qt-dev

5 years agoMerge "Add separate hasCapabilityName() methods in GnssCapabilities" into qt-dev
Anil Admal [Tue, 23 Apr 2019 15:32:05 +0000 (15:32 +0000)]
Merge "Add separate hasCapabilityName() methods in GnssCapabilities" into qt-dev

5 years agoMerge "Change getGnssCapabilites() return type to @NonNull" into qt-dev
Anil Admal [Tue, 23 Apr 2019 15:31:48 +0000 (15:31 +0000)]
Merge "Change getGnssCapabilites() return type to @NonNull" into qt-dev

5 years agoMerge "Update Rail Data Collection Frequency" into qt-dev
Blake Kragten [Tue, 23 Apr 2019 14:26:48 +0000 (14:26 +0000)]
Merge "Update Rail Data Collection Frequency" into qt-dev

5 years agoAsk netd to swap stats map before reading
Chenbo Feng [Thu, 28 Feb 2019 03:07:39 +0000 (19:07 -0800)]
Ask netd to swap stats map before reading

To avoid protentail race problem between netd and system_server when
reading the network stats map. Always inform netd before reading the
stats and let netd to do a swap between active stats map and inactive
stats map. So the system_server can safely remove the stats after
reading.

Bug: 126620214
Test: android.app.usage.cts.NetworkUsageStatsTest
      android.net.cts.TrafficStatsTest

Change-Id: I8fa37c26bec23ffca0b29b679e72ba1189f557f1
Merged-In: I8fa37c26bec23ffca0b29b679e72ba1189f557f1
(cherry picked from commit f729cb5fd654a0f099128734f849800fde9ba525)

5 years agoAdd a lock to protect persistent stats snapshot
Chenbo Feng [Fri, 12 Apr 2019 01:44:45 +0000 (18:44 -0700)]
Add a lock to protect persistent stats snapshot

Since the network stats could be polled from multiple services at
runtime, it is not thread safe for networkStatsFactory to hold a
persistent stats snapshot without any protection. Use a internal lock to
prevent concurrent modification on mPersistentSnapshot to fix the
problem.

Bug: 124764595
Test: android.app.usage.cts.NetworkUsageStatsTest
      android.net.cts.TrafficStatsTest

Change-Id: I73851336452110afb74d6dd1ca5e50047d5b3d4a
Merged-In: I73851336452110afb74d6dd1ca5e50047d5b3d4a
Merged-In: I22afb46f17697e8b6359d4f593802e0f4b95db8b
(cherry picked from commit 25243b4eb93c234412a35f9e5d9f1649f8964f83)

5 years agoMerge "Freeze the networkstack-aidl-interfaces interface" into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 14:15:25 +0000 (14:15 +0000)]
Merge "Freeze the networkstack-aidl-interfaces interface" into qt-dev

5 years agoMerge "Remove QS initial tooltip" into qt-dev
Fabian Kozynski [Tue, 23 Apr 2019 14:08:25 +0000 (14:08 +0000)]
Merge "Remove QS initial tooltip" into qt-dev

5 years agoAdding callback when surface params are applied
Sunny Goyal [Wed, 10 Apr 2019 22:48:06 +0000 (15:48 -0700)]
Adding callback when surface params are applied

Bug: 123874711
Test: Verified that there are no leak logs
Change-Id: I5dcb27c9c44d674363824e703b923fa83e3132b9

5 years agoMerge "Allow second consecutive activity start." into qt-dev
Alan Stokes [Tue, 23 Apr 2019 13:26:40 +0000 (13:26 +0000)]
Merge "Allow second consecutive activity start." into qt-dev

5 years agoMerge "Make QSCarrierText always selected" into qt-dev
Fabian Kozynski [Tue, 23 Apr 2019 12:58:11 +0000 (12:58 +0000)]
Merge "Make QSCarrierText always selected" into qt-dev

5 years agoAdd delay to power-button power-off after gesture wakeup.
Santos Cordon [Tue, 9 Apr 2019 16:02:38 +0000 (17:02 +0100)]
Add delay to power-button power-off after gesture wakeup.

Adds a small delay to avoid turning off the device if the user
hits the power button right after the device wakes up via a gesture.

Bug: 126560003
Test: Manual
Change-Id: I3116ce98f244e5660573d5fa764a77083aee7fc5

5 years agoMerge "Fix NPE when scheduling transaction for null client" into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 10:35:27 +0000 (10:35 +0000)]
Merge "Fix NPE when scheduling transaction for null client" into qt-dev

5 years agoFreeze the networkstack-aidl-interfaces interface
Lorenzo Colitti [Tue, 23 Apr 2019 08:55:01 +0000 (01:55 -0700)]
Freeze the networkstack-aidl-interfaces interface

This freezes the interface as of the latest beta build, not the tip of
tree. IIpClient#setL2KeyAndGroupHint is not in the frozen definition in
particular.

Generated with:
m networkstack-aidl-interfaces-freeze-api \
    ipmemorystore-aidl-interfaces-freeze-api

Test: flashed, booted, WiFi and captive portal working
Bug: 128803828
Change-Id: Ideabe73fc93bbefca2d624ee9ca190cf31419424
Merged-In: Ideabe73fc93bbefca2d624ee9ca190cf31419424
(cherry picked from commit 9b89cdaaf401a6b77e160807039c06e537fa600a)

5 years agoMerge "Restore window to undefined instead of freeform windowing mode" into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 09:15:26 +0000 (09:15 +0000)]
Merge "Restore window to undefined instead of freeform windowing mode" into qt-dev

5 years agoMerge "provide a resource overlay to configure customized DNS Server." into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 09:05:45 +0000 (09:05 +0000)]
Merge "provide a resource overlay to configure customized DNS Server." into qt-dev

5 years agoMerge "Remove CtsActivityManagerDeviceTestCases reference" into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 09:00:25 +0000 (09:00 +0000)]
Merge "Remove CtsActivityManagerDeviceTestCases reference" into qt-dev

5 years agoMerge "Move some telephony methods to max-sdk-p list." into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 08:58:36 +0000 (08:58 +0000)]
Merge "Move some telephony methods to max-sdk-p list." into qt-dev

5 years agoAllow second consecutive activity start.
Alan Stokes [Thu, 18 Apr 2019 12:41:58 +0000 (13:41 +0100)]
Allow second consecutive activity start.

If we start two activities in onCreate the second one was being
blocked - because the current activity is no longer top but the new
activity is not yet visible. So we treat an INITIALIZING activity
as being visible for this purpose.

Bug: 130645908
Test: atest BackgroundActivityLaunchTest RootWindowContainerTests \
WmTests:ActivityStarterTests \
CtsWindowManagerDeviceTestCases:ActivityStarterTests
Change-Id: I96749f8b4d385527c91725827880bd12371d2411

5 years agoMerge "Fix an argument to the legacy broadcast" into qt-dev
Chalard Jean [Tue, 23 Apr 2019 07:04:26 +0000 (07:04 +0000)]
Merge "Fix an argument to the legacy broadcast" into qt-dev

5 years agoMerge "Fix a bug where + before % is ignored" into qt-dev
Chalard Jean [Tue, 23 Apr 2019 07:03:24 +0000 (07:03 +0000)]
Merge "Fix a bug where + before % is ignored" into qt-dev

5 years agoMerge "Wifi usability: Add timestamp in WifiUsabilityStats" into qt-dev
Mingguang Xu [Tue, 23 Apr 2019 06:00:22 +0000 (06:00 +0000)]
Merge "Wifi usability:  Add timestamp in WifiUsabilityStats" into qt-dev

5 years agopm set-home-activity waits until completion
Bookatz [Wed, 17 Apr 2019 02:41:28 +0000 (19:41 -0700)]
pm set-home-activity waits until completion

PackageManagerShellActivity.runSetHomeActivity used to be synchronous,
but in Q the underlying calls became asynchronous. This cl:

1. changes the shell command to use RoleManager's addRoleHolderAsUser,
instead of calling into PackageManagerService.
2. uses a RemoteCallback to restore the wait-until-complete aspect of
the shell command.
3. consequently, the shell command now accepts either a package name
or a component, but either way, the component will be determined
automatically from the package.

(This is an alternative to ag/6989721; see comments there for
motivation)

Fixes: 128686703
Fixes: 130167856
Test: atest CtsShortcutHostTestCases CtsShortcutManagerTestCases
(.ShortcutManagerThrottlingTest#testActivityUnthrottled fails, but that
is presumably unrelated)
Test: atest android.content.pm.cts.shortcutmanager.ShortcutManagerLauncherApiTest
Test: atest android.content.pm.cts.shortcuthost.ShortcutManagerMultiuserTest
Change-Id: Ibce6282bf401ca471469448262ea87cfc504cf4f

5 years agoMerge "AudioService: manage hearing aid volume for calls" into qt-dev
Jean-Michel Trivi [Tue, 23 Apr 2019 05:07:11 +0000 (05:07 +0000)]
Merge "AudioService: manage hearing aid volume for calls" into qt-dev

5 years agoAdd action metrics for Wi-Fi provision features
Arc Wang [Mon, 15 Apr 2019 10:16:58 +0000 (18:16 +0800)]
Add action metrics for Wi-Fi provision features

  // ACTION: Share a Wi-Fi network by generating a QR code
  ACTION_SETTINGS_SHARE_WIFI_QR_CODE

  // ACTION: Connect to a Wi-Fi network by scanning a QR code
  ACTION_SETTINGS_ENROLL_WIFI_QR_CODE

  // ACTION: Share Wi-Fi hotspot by generating a QR code
  ACTION_SETTINGS_SHARE_WIFI_HOTSPOT_QR_CODE

Bug: 130521826
Test: manual
Change-Id: I99e55b53c49830347e48f688aa38afc3912e71b1

5 years agoFix an argument to the legacy broadcast
Chalard Jean [Thu, 11 Apr 2019 05:09:07 +0000 (14:09 +0900)]
Fix an argument to the legacy broadcast

Test: new test for this
Fixes: 62650382
Change-Id: I918b8271d3c3c058553ca888cb54cd36a6efba66
Merged-In: I0fc408d546ae9d72b7dd9415e502252b484d4329
Merged-In: I9282930106d1eee3274d9e5c4e89de60e929a0e6

5 years agoRemove CtsActivityManagerDeviceTestCases reference
Tadashi G. Takaoka [Tue, 23 Apr 2019 02:01:48 +0000 (11:01 +0900)]
Remove CtsActivityManagerDeviceTestCases reference

Bug: 130526034
Test: atest --test-mapping frameworks/base/services/core/java/com/android/server/am
Change-Id: I68e3645bc5fc32c5c577551c18b9e8560c3f1216

5 years agoFix NPE when scheduling transaction for null client
Louis Chang [Wed, 17 Apr 2019 09:15:01 +0000 (17:15 +0800)]
Fix NPE when scheduling transaction for null client

Application process was crash and the application thread was set
to null when obtaining the client transaction object. NPE was
thrown by using it to schedule transaction.

Bug: 130006936
Test: WindowProcessControllerTests
Test: ActivityStartControllerTests
Test: RootActivityContainerTests

Change-Id: I65ecb124e014e5d80ebc283884475619f95239fa

5 years agoMerge "Vulkan Doc: update descriptions for Vulkan feature flags" into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 02:04:05 +0000 (02:04 +0000)]
Merge "Vulkan Doc: update descriptions for Vulkan feature flags" into qt-dev

5 years agoFix urn compare in EmergencyNumber
sqian [Mon, 22 Apr 2019 18:14:09 +0000 (11:14 -0700)]
Fix urn compare in EmergencyNumber

Test: Sanity
Bug: 130979270
Change-Id: I585ecafcf9996e24befec2dbe86465a1d5a0f030
Merged-In: I585ecafcf9996e24befec2dbe86465a1d5a0f030
(cherry picked from commit 3b35404279f4573069130cbd6f53c3f787d9046d)

5 years agoMerge "Add @Nullable annotation to getAccessibilityWindowId" into qt-dev
Sara Kato [Tue, 23 Apr 2019 01:28:23 +0000 (01:28 +0000)]
Merge "Add @Nullable annotation to getAccessibilityWindowId" into qt-dev

5 years agoMerge "Adjust toast window parameters to support FLAG_SHOW_WHEN_LOCKED" into qt-dev
Jeff Chang [Tue, 23 Apr 2019 01:25:48 +0000 (01:25 +0000)]
Merge "Adjust toast window parameters to support FLAG_SHOW_WHEN_LOCKED" into qt-dev

5 years agoMerge "DimLayer: More release fixes." into qt-dev
Rob Carr [Tue, 23 Apr 2019 01:15:20 +0000 (01:15 +0000)]
Merge "DimLayer: More release fixes." into qt-dev

5 years agoMerge "Update dark mode custom accent colors." into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 01:13:59 +0000 (01:13 +0000)]
Merge "Update dark mode custom accent colors." into qt-dev

5 years agoMerge "Handle NPE when the notification shade is opened via click on button." into...
TreeHugger Robot [Tue, 23 Apr 2019 00:44:47 +0000 (00:44 +0000)]
Merge "Handle NPE when the notification shade is opened via click on button." into qt-dev

5 years agoAdd carrier display name related CarrierConfig
Pengquan Meng [Thu, 18 Apr 2019 02:36:58 +0000 (19:36 -0700)]
Add carrier display name related CarrierConfig

Bug: 122921456
Test: build
Change-Id: I79836b2912be5223a2269e660bfaadf4aa72b930

5 years agoMerge "Adding null check when unregistering slice relay handler" into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 00:04:28 +0000 (00:04 +0000)]
Merge "Adding null check when unregistering slice relay handler" into qt-dev

5 years agoMerge "No service timeout when debbuger is attached" into qt-dev
TreeHugger Robot [Mon, 22 Apr 2019 23:58:26 +0000 (23:58 +0000)]
Merge "No service timeout when debbuger is attached" into qt-dev

5 years agoMerge "Sharesheet - Dark theme tweaks" into qt-dev
TreeHugger Robot [Mon, 22 Apr 2019 23:56:27 +0000 (23:56 +0000)]
Merge "Sharesheet - Dark theme tweaks" into qt-dev

5 years agoUpdate Rail Data Collection Frequency
Blake Kragten [Tue, 16 Apr 2019 17:23:11 +0000 (10:23 -0700)]
Update Rail Data Collection Frequency

Fixed the frequency of the rail updates by updating the rails when
either the wifi or radio activity info is updated.

Test: Compiled onto phone, ran wifi and modem test cases and collected
bug report. Viewed a more accurate frequency of rail energy data.

Bug: 130174319

Change-Id: I4d79e58dfcc90e1c30253f524c85f26a8299f8d6

5 years agoAudioService: manage hearing aid volume for calls
Jean-Michel Trivi [Mon, 22 Apr 2019 19:21:50 +0000 (12:21 -0700)]
AudioService: manage hearing aid volume for calls

Add a mechanism to support audio devices that behave like "absolute
  volume" in AVRCP, but that support multiple use cases based on
  the audio mode.
Treat hearing aid as such a device:
  any change in audio mode will cause the volume of the corresponding
  dominent use case to be applied.
Fix a typo in SCO client death that caused a class cast issue.

Bug: 131091438
Bug: 129163231
Test: set hearing aid volume to X for media, take phone call and set volume to Y,
end call, verify volume is X for media.

Change-Id: Id778f69b98825c83b7137917bd81e973298ab8bb

5 years agoMerge "Fix NPE for devices that don't use a lock icon on the bouncer." into qt-dev
TreeHugger Robot [Mon, 22 Apr 2019 23:30:57 +0000 (23:30 +0000)]
Merge "Fix NPE for devices that don't use a lock icon on the bouncer." into qt-dev

5 years agoMerge "Remove framework.aidl rules" into qt-dev
Colin Cross [Mon, 22 Apr 2019 23:26:55 +0000 (23:26 +0000)]
Merge "Remove framework.aidl rules" into qt-dev

5 years agoCopy private resources into SettingsLib's ProgressBar.
Joel Galenson [Mon, 22 Apr 2019 19:40:17 +0000 (12:40 -0700)]
Copy private resources into SettingsLib's ProgressBar.

Bug: 130871088
Test: See progress bar.
Change-Id: I45283cd973bc0a37e1cc37758cd9ce7717b506ed

5 years ago[wm] Add tests to check adjust bounds logic will always exit
Vishnu Nair [Mon, 22 Apr 2019 23:14:47 +0000 (16:14 -0700)]
[wm] Add tests to check adjust bounds logic will always exit

In previous release, there was a scenario where the logic will result in
an infinite loop crashing the system. This change refactors the adjust
bounds logic to make it easier to test. Also adds a new test without any
candidate bounds and verifies it always returns.

Test: atest WmTests:TaskLaunchParamsModifierTests
Bug: 129491503

Change-Id: Iba94ade78cab154b823ae6ad5a6c3da198957715

5 years agoMerge "Fixed content capture whitelist for specific activities." into qt-dev
TreeHugger Robot [Mon, 22 Apr 2019 22:34:09 +0000 (22:34 +0000)]
Merge "Fixed content capture whitelist for specific activities." into qt-dev