OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge "Remove unused methods from INetworkManagementService" into qt-dev
TreeHugger Robot [Thu, 25 Apr 2019 09:09:48 +0000 (09:09 +0000)]
Merge "Remove unused methods from INetworkManagementService" into qt-dev

5 years agoMerge "Interstitial frame for grace period of face auth" into qt-dev
TreeHugger Robot [Thu, 25 Apr 2019 08:58:25 +0000 (08:58 +0000)]
Merge "Interstitial frame for grace period of face auth" into qt-dev

5 years agoMerge "Use correct heads-up notification height." into qt-dev
TreeHugger Robot [Thu, 25 Apr 2019 08:56:42 +0000 (08:56 +0000)]
Merge "Use correct heads-up notification height." into qt-dev

5 years agoMerge "Update exception type thrown when NetworkStack is missing" into qt-dev
Chiachang Wang [Thu, 25 Apr 2019 08:46:01 +0000 (08:46 +0000)]
Merge "Update exception type thrown when NetworkStack is missing" into qt-dev

5 years agoMerge "[DO NOT MERGE] Adding API for defining and invoking DirectActions" into qt-dev
Svetoslav Ganov [Thu, 25 Apr 2019 08:45:49 +0000 (08:45 +0000)]
Merge "[DO NOT MERGE] Adding API for defining and invoking DirectActions" into qt-dev

5 years agoMerge "Fix PIP window is showing on the lockscreen (1/2)" into qt-dev
TreeHugger Robot [Thu, 25 Apr 2019 07:25:13 +0000 (07:25 +0000)]
Merge "Fix PIP window is showing on the lockscreen (1/2)" into qt-dev

5 years ago[DO NOT MERGE] Adding API for defining and invoking DirectActions
Sunny Goyal [Wed, 20 Mar 2019 19:46:55 +0000 (12:46 -0700)]
[DO NOT MERGE] Adding API for defining and invoking DirectActions

DirectActions are abstract actions defined by an Activtiy. The
actual definition of these actions will be available through
the support lib.

This API provides a secure channel for system or assistant to
interact with a running app using these Actions.

Test: atest CtsVoiceInteractionTestCases
Test: added android.voiceinteraction.cts.DirectActionsTest

Bug: 129705716

Change-Id: I0ce568e0d8f41e0fe46306052016a74c7b394efa

5 years agoUpdate exception type thrown when NetworkStack is missing
Chiachang Wang [Thu, 25 Apr 2019 05:35:58 +0000 (22:35 -0700)]
Update exception type thrown when NetworkStack is missing

rethrowFromSystemServer is throwing DeadSystemException which
is different from the original log message. Thus, update the
way to rethrow the same RemoteException.

Bug: 130028724
Test: atest FrameworksNetTest
Test: Kill NetworkStack and check the log message
Change-Id: I60862e276dd4e2d143278b272a9ba54219acce26
Merged-In: Ic1766e839f8f06b539d5f6cfecd29547021fd1d9
Merged-In: I67005a5384888e8acaf1249af79484e2d5ed6f1f
(cherry picked from commit 7f581219e1a4706ea2b4438322a299986847b1c2)

5 years agoMerge "Assign layer to bounds animation layer" into qt-dev
Jorim Jaggi [Thu, 25 Apr 2019 06:39:53 +0000 (06:39 +0000)]
Merge "Assign layer to bounds animation layer" into qt-dev

5 years agoMerge "Ensure we get the right nav bar mode for the current user in sysui" into qt-dev
Winson Chung [Thu, 25 Apr 2019 06:14:57 +0000 (06:14 +0000)]
Merge "Ensure we get the right nav bar mode for the current user in sysui" into qt-dev

5 years agoMerge "Manual revert of ag/6502936" into qt-dev
Winson Chung [Thu, 25 Apr 2019 05:52:07 +0000 (05:52 +0000)]
Merge "Manual revert of ag/6502936" into qt-dev

5 years agoMerge "Add night variant of Theme.DeviceDefault.Settings.Dialog" into qt-dev
Linda Tseng [Thu, 25 Apr 2019 05:51:19 +0000 (05:51 +0000)]
Merge "Add night variant of Theme.DeviceDefault.Settings.Dialog" into qt-dev

5 years agoMerge "Bluetooth: Remove safetynet logging for 120574260" into qt-dev
TreeHugger Robot [Thu, 25 Apr 2019 05:37:05 +0000 (05:37 +0000)]
Merge "Bluetooth: Remove safetynet logging for 120574260" into qt-dev

5 years agoMerge changes from topic "niap-vpn" into qt-dev
Lorenzo Colitti [Thu, 25 Apr 2019 04:23:01 +0000 (04:23 +0000)]
Merge changes from topic "niap-vpn" into qt-dev

* changes:
  Reinstate new VPN uid filtering unit tests
  Revert new tests and PackageManager mock
  Block incoming non-VPN packets to apps under fully-routed VPN

5 years agoMerge "Resolve size compatibility bounds by original display attributes" into qt-dev
TreeHugger Robot [Thu, 25 Apr 2019 04:17:33 +0000 (04:17 +0000)]
Merge "Resolve size compatibility bounds by original display attributes" into qt-dev

5 years agoMerge "Make the network stack a persistent process." into qt-dev
Lorenzo Colitti [Thu, 25 Apr 2019 03:53:41 +0000 (03:53 +0000)]
Merge "Make the network stack a persistent process." into qt-dev

5 years agoBluetooth: Remove safetynet logging for 120574260
Jack He [Wed, 24 Apr 2019 23:21:12 +0000 (16:21 -0700)]
Bluetooth: Remove safetynet logging for 120574260

Bug: 120574260
Test: make
Change-Id: Id86c139e654428f8d4376f2d0359329e47c052b9

5 years agoMerge "Do not dismiss BiometricPrompt when "soft" errors are received" into qt-dev
Kevin Chyn [Thu, 25 Apr 2019 03:20:30 +0000 (03:20 +0000)]
Merge "Do not dismiss BiometricPrompt when "soft" errors are received" into qt-dev

5 years agoMerge "Position "At a Glance" on custom clock below status bar." into qt-dev
TreeHugger Robot [Thu, 25 Apr 2019 02:22:08 +0000 (02:22 +0000)]
Merge "Position "At a Glance" on custom clock below status bar." into qt-dev

5 years agoInterstitial frame for grace period of face auth
Lucas Dupin [Wed, 24 Apr 2019 21:56:52 +0000 (14:56 -0700)]
Interstitial frame for grace period of face auth

Delay bouncer for a few millis if face auth is happening to avoid
overlaping animations.

Fixes: 130327140
Test: manual
Test: atest KeyguardBouncerTest
Change-Id: I6873605ba3e8d54af86325d81b10cc6aec131cf2

5 years agoFix QT build breakage.
Sudheer Shanka [Thu, 25 Apr 2019 01:30:32 +0000 (18:30 -0700)]
Fix QT build breakage.

Test: builds
Change-Id: Iff6f516d68659a9b81009f82b6e1874089daa592

5 years agoMake the network stack a persistent process.
Lorenzo Colitti [Wed, 24 Apr 2019 16:51:09 +0000 (09:51 -0700)]
Make the network stack a persistent process.

The network stack should never be killed, because if it does,
recovering networking requires a reboot. Make the process
persistent to reduce the chances of it being killed by the OOM
killer.

Bug: 131046856
Test: builds, boots
Test: process oom_score_adj is -800
Test: process goes from "Persistent Service" to "Persistent" in dumpsys meminfo
Change-Id: Ic8ebf6356e23489f6cd984d680ff9f1b4cbbe52d
Merged-In: Ic8ebf6356e23489f6cd984d680ff9f1b4cbbe52d
(cherry picked from commit c1eedfcd124a6370887d92da4d12cd43d0ef6799)

5 years agoMerge "Update behavior of some DownloadManager APIs." into qt-dev
Sudheer Shanka [Thu, 25 Apr 2019 00:51:59 +0000 (00:51 +0000)]
Merge "Update behavior of some DownloadManager APIs." into qt-dev

5 years agoEnsure we get the right nav bar mode for the current user in sysui
Winson Chung [Wed, 24 Apr 2019 22:17:33 +0000 (15:17 -0700)]
Ensure we get the right nav bar mode for the current user in sysui

- Load resources from the current user's context to ensure the right
  overlays are read
- Create a controller in sysui to dispatch mode change to prevent callers
  from calling with the wrong user's context
- Clean up the quickstep contract to prevent launcher from calling methods
  using the baked in fw resource ids

Bug: 130185871
Test: Switch to secondary user, ensure the mode is read correctly
Change-Id: I00d9276185777e340b3e758345a00d2e9b3e3e64

5 years agoMerge "Pass responseType in NFW notification callback to the framework" into qt-dev
Anil Admal [Wed, 24 Apr 2019 23:50:32 +0000 (23:50 +0000)]
Merge "Pass responseType in NFW notification callback to the framework" into qt-dev

5 years agoMerge "Fix deletion of VkSemaphores in VulkanManager." into qt-dev
Greg Daniel [Wed, 24 Apr 2019 23:30:35 +0000 (23:30 +0000)]
Merge "Fix deletion of VkSemaphores in VulkanManager." into qt-dev

5 years agoMerge "Update appearance of proxied notifications in guts" into qt-dev
Julia Reynolds [Wed, 24 Apr 2019 23:27:36 +0000 (23:27 +0000)]
Merge "Update appearance of proxied notifications in guts" into qt-dev

5 years agoMerge "Exposing some accessibility methods and state to be used in Launcher" into...
TreeHugger Robot [Wed, 24 Apr 2019 23:23:34 +0000 (23:23 +0000)]
Merge "Exposing some accessibility methods and state to be used in Launcher" into qt-dev

5 years agoMerge "Consistently log back gesture origin" into qt-dev
TreeHugger Robot [Wed, 24 Apr 2019 23:04:29 +0000 (23:04 +0000)]
Merge "Consistently log back gesture origin" into qt-dev

5 years agoMerge "Sharesheet - add label loading placeholder" into qt-dev
TreeHugger Robot [Wed, 24 Apr 2019 22:59:28 +0000 (22:59 +0000)]
Merge "Sharesheet - add label loading placeholder" into qt-dev

5 years agoMerge "Fix SettingsProto corruption" into qt-dev
TreeHugger Robot [Wed, 24 Apr 2019 22:48:14 +0000 (22:48 +0000)]
Merge "Fix SettingsProto corruption" into qt-dev

5 years agoMerge "Removing left over experimental overlays and frame width (1/2)" into qt-dev
TreeHugger Robot [Wed, 24 Apr 2019 22:28:35 +0000 (22:28 +0000)]
Merge "Removing left over experimental overlays and frame width (1/2)" into qt-dev

5 years agoMerge "Disable lock screen and enable location in THM" into qt-dev
William Hester [Wed, 24 Apr 2019 22:27:33 +0000 (22:27 +0000)]
Merge "Disable lock screen and enable location in THM" into qt-dev

5 years agoMerge "Make StatusBarWindowController aware of assist session in progress." into...
Matt Casey [Wed, 24 Apr 2019 22:16:38 +0000 (22:16 +0000)]
Merge "Make StatusBarWindowController aware of assist session in progress." into qt-dev

5 years agoMerge "Protecting AppPrediciton API behind usage stats permission" into qt-dev
TreeHugger Robot [Wed, 24 Apr 2019 22:16:03 +0000 (22:16 +0000)]
Merge "Protecting AppPrediciton API behind usage stats permission" into qt-dev

5 years agoMerge "Bluetooth: Check if packageName belongs to callingUid in binder calls" into...
TreeHugger Robot [Wed, 24 Apr 2019 21:20:53 +0000 (21:20 +0000)]
Merge "Bluetooth: Check if packageName belongs to callingUid in binder calls" into qt-dev

5 years agoMerge "Load the default graphics driver in USAPs." into qt-dev
Christian Wailes [Wed, 24 Apr 2019 21:18:14 +0000 (21:18 +0000)]
Merge "Load the default graphics driver in USAPs." into qt-dev

5 years agoFix SettingsProto corruption
Yao Chen [Wed, 24 Apr 2019 21:16:56 +0000 (14:16 -0700)]
Fix SettingsProto corruption

Bug: 130235331
Test: adb shell dumpsys settings --proto
Change-Id: Id725c2a968593b923059da69c49c59908780df8a

5 years agoMerge "Do not re-show hint text if user is already authenticated" into qt-dev
Kevin Chyn [Wed, 24 Apr 2019 20:50:22 +0000 (20:50 +0000)]
Merge "Do not re-show hint text if user is already authenticated" into qt-dev

5 years agoProtecting AppPrediciton API behind usage stats permission
Sunny Goyal [Wed, 24 Apr 2019 19:02:20 +0000 (12:02 -0700)]
Protecting AppPrediciton API behind usage stats permission

Bug: 130556904
Test: atest CtsAppPredictionServiceTestCases:AppPredictionServiceTest
Change-Id: I1033e12f5c75ab085d1a0ebff81437ee141528ea

5 years agoMake StatusBarWindowController aware of assist session in progress.
Matt Casey [Wed, 24 Apr 2019 18:31:45 +0000 (14:31 -0400)]
Make StatusBarWindowController aware of assist session in progress.

Separate "assist is rendering something" from "assist session is in
progress". If an assist session is in progress, the status bar should be
focusable and back gestures should cause the session to be canceled.

This also intercepts touches outside of the status bar when a session is
in progress, but those touches will cancel (separate CL), so this
shouldn't be a problem.

Bug: 123413054
Test: Ensure in-progress assist sesion is canceled on back, ensure back
is not affected outside of a session.

Change-Id: Ife24b58a7851c5865ff75e66e00e32ae3293a0e8

5 years agoMerge "String change" into qt-dev
TreeHugger Robot [Wed, 24 Apr 2019 20:19:54 +0000 (20:19 +0000)]
Merge "String change" into qt-dev

5 years agoMerge "Change CarSystemUI notification button from launching Car Notification Center...
TreeHugger Robot [Wed, 24 Apr 2019 20:15:26 +0000 (20:15 +0000)]
Merge "Change CarSystemUI notification button from launching Car Notification Center to opening the panel instead." into qt-dev

5 years agoMerge "Fix crash when launching assist from power button." into qt-dev
Daniel Sandler [Wed, 24 Apr 2019 19:45:17 +0000 (19:45 +0000)]
Merge "Fix crash when launching assist from power button." into qt-dev

5 years agoDo not dismiss BiometricPrompt when "soft" errors are received
Kevin Chyn [Wed, 24 Apr 2019 19:39:40 +0000 (12:39 -0700)]
Do not dismiss BiometricPrompt when "soft" errors are received

Some errors such as ERROR_TIMEOUT should not caues the BiometricPrompt
dialog to be dismissed. Updated plumbing to allow
onBiometricAuthenticated to pass a string indicating the failure reason

Fixes: 131240917

Test: BiometricPromptDemo
Change-Id: I63a6f1138a24fbc3736184efefc620dd5bb640dd

5 years agoMerge "Register Ime consumer only when insets are enabled." into qt-dev
Tarandeep Singh [Wed, 24 Apr 2019 19:34:20 +0000 (19:34 +0000)]
Merge "Register Ime consumer only when insets are enabled." into qt-dev

5 years agoMerge "Fix start position issues and related flyout flickering." into qt-dev
Josh Tsuji [Wed, 24 Apr 2019 19:17:21 +0000 (19:17 +0000)]
Merge "Fix start position issues and related flyout flickering." into qt-dev

5 years agoPosition "At a Glance" on custom clock below status bar.
Robert Snoeberger [Wed, 24 Apr 2019 18:20:38 +0000 (14:20 -0400)]
Position "At a Glance" on custom clock below status bar.

Change summary:
 - Position below status bar on AOD, and account for burn in prevention
   movement.
 - Position below lock icon on lock screen.

Fixes: 130797849
Test: visual - checked position on AOD and lock screen
Test: visual - checked position with music playing
Change-Id: Iad088e8b1d301e19ec9a095462a420e1723aba00

5 years agoExposing some accessibility methods and state to be used in Launcher
Sunny Goyal [Wed, 24 Apr 2019 18:36:37 +0000 (11:36 -0700)]
Exposing some accessibility methods and state to be used in Launcher

Bug: 130905838
Test: Verified the build with updated launcher
Change-Id: I09f77abc8c767fca8879610bc3fcef1f4da7f821

5 years agoMerge "Rename Environment method to follow attribute." into qt-dev
Jeff Sharkey [Wed, 24 Apr 2019 18:57:20 +0000 (18:57 +0000)]
Merge "Rename Environment method to follow attribute." into qt-dev

5 years agoMerge "Remove config specific size for HeaderTileLayout" into qt-dev
TreeHugger Robot [Wed, 24 Apr 2019 18:48:23 +0000 (18:48 +0000)]
Merge "Remove config specific size for HeaderTileLayout" into qt-dev

5 years agoDo not re-show hint text if user is already authenticated
Kevin Chyn [Wed, 24 Apr 2019 18:47:38 +0000 (11:47 -0700)]
Do not re-show hint text if user is already authenticated

Fixes: 131237337

Test: manual
Change-Id: I1b96f9a7933e82fcb540c5aa4feb82d6fc22dd11

5 years agoUpdate appearance of proxied notifications in guts
Julia Reynolds [Wed, 24 Apr 2019 15:58:38 +0000 (11:58 -0400)]
Update appearance of proxied notifications in guts

Test: manual
Fixes: 131174114
Change-Id: I8725d34e7f2e43c17a1d16fba8ecbe20a0a3d3c9

5 years agoMerge "Restructure logging for selection of share targets" into qt-dev
Susi Kharraz-Post [Wed, 24 Apr 2019 18:29:01 +0000 (18:29 +0000)]
Merge "Restructure logging for selection of share targets" into qt-dev

5 years agoMerge "Fix NPE of UXR as a result of incorrect initialization." into qt-dev
TreeHugger Robot [Wed, 24 Apr 2019 18:26:48 +0000 (18:26 +0000)]
Merge "Fix NPE of UXR as a result of incorrect initialization." into qt-dev

5 years agoMerge "WifiSsid: Catch String out of bound exception" into qt-dev
TreeHugger Robot [Wed, 24 Apr 2019 18:18:47 +0000 (18:18 +0000)]
Merge "WifiSsid: Catch String out of bound exception" into qt-dev

5 years agoAdd night variant of Theme.DeviceDefault.Settings.Dialog
lindatseng [Wed, 24 Apr 2019 01:37:43 +0000 (18:37 -0700)]
Add night variant of Theme.DeviceDefault.Settings.Dialog

Add night variant of Theme.DeviceDefault.Settings.Dialog to support
panel in dark mode.  Also adding night variant here can ensure this
theme can reused by others.

Test: Manual
Fixes: 130815366
Change-Id: Idd8683a42dfb9dfffb8fc3f5a59c35a4a83a8de1

5 years agoConsistently log back gesture origin
Hyunyoung Song [Wed, 24 Apr 2019 17:47:19 +0000 (10:47 -0700)]
Consistently log back gesture origin

Bug: 127848641
Test: builds, manually verified

TL;DR;; the unhandled back gesture direction was opposite of handled
back gesture.

Change-Id: I828543bc86e6fbb24d1a6ee5d6b5b92118401323

5 years agoMerge "Add dumpable to QSTile. Dump QSTileHost, QSPanel, QuickQSPanel" into qt-dev
Fabian Kozynski [Wed, 24 Apr 2019 18:05:15 +0000 (18:05 +0000)]
Merge "Add dumpable to QSTile. Dump QSTileHost, QSPanel, QuickQSPanel" into qt-dev

5 years agoLoad the default graphics driver in USAPs.
Chris Wailes [Thu, 18 Apr 2019 00:55:48 +0000 (17:55 -0700)]
Load the default graphics driver in USAPs.

This patch causes unspecialized app processes to load the OpenGL driver
after they are forked.  The ZygoteProcess code will then take an
application's driver preference into account when selecting how to
launch it.

Test: m & boot & launch & inspect traces for driver loading
Bug: 130029351
Change-Id: If6fa02f9c387596162e75a685b04208b45a5c86b
Merged-In: If6fa02f9c387596162e75a685b04208b45a5c86b
(cherry picked from commit 301a1c46da930bb927bd86227c6e1d44c70c349d)

5 years agoFix start position issues and related flyout flickering.
Joshua Tsuji [Wed, 17 Apr 2019 17:29:10 +0000 (13:29 -0400)]
Fix start position issues and related flyout flickering.

- Cancel animations when explicitly moving the stack to the start position, so that the new translation doesn't get animated away.
- Set the flyout to 0 alpha before posting the animation, so it's invisible from the start.
- Tell the stack if the drag finished with a dismiss intent, so we can reset the drag flags.

Bug: 130441552
Test: atest SystemUITests
Change-Id: I31d753a6fb76468c4e2b68563f9c5f06fbd782a1

5 years agoMerge "Fix bug with blinking caption tooltip on rocker click. Also clean up some...
Anthony Tripaldi [Wed, 24 Apr 2019 17:30:13 +0000 (17:30 +0000)]
Merge "Fix bug with blinking caption tooltip on rocker click. Also clean up some older code that flashed the dialog on screen initially and triggered dismiss too often." into qt-dev

5 years agoMerge "Update caption toggle icon with GM2 icons used elsewhere in the system." into...
TreeHugger Robot [Wed, 24 Apr 2019 17:27:34 +0000 (17:27 +0000)]
Merge "Update caption toggle icon with GM2 icons used elsewhere in the system." into qt-dev

5 years agoMerge "Update process mountpoints when it's storage permissions changes." into qt-dev
Sudheer Shanka [Wed, 24 Apr 2019 16:59:43 +0000 (16:59 +0000)]
Merge "Update process mountpoints when it's storage permissions changes." into qt-dev

5 years agoMerge "AudioAttributes: fix regression with setLegacyStreamType in Builder" into...
Jean-Michel Trivi [Wed, 24 Apr 2019 16:54:32 +0000 (16:54 +0000)]
Merge "AudioAttributes: fix regression with setLegacyStreamType in Builder" into qt-dev

5 years agoMerge "Update the stack bounds for IME changes even if we're expanded." into qt-dev
Josh Tsuji [Wed, 24 Apr 2019 16:34:20 +0000 (16:34 +0000)]
Merge "Update the stack bounds for IME changes even if we're expanded." into qt-dev

5 years agoRemove unused methods from INetworkManagementService
Rubin Xu [Wed, 24 Apr 2019 14:54:34 +0000 (07:54 -0700)]
Remove unused methods from INetworkManagementService

Remove unused public methods setPermission() and clearPermission()

Bug: 114231106
Test: make

Change-Id: I7acbbd36f41bef1356a158bed075c7be330728f4
(cherry picked from commit a430eda4ddbd9ac55d1b4def92885de08cec4bfb)

5 years agoPass responseType in NFW notification callback to the framework
Anil Admal [Wed, 24 Apr 2019 15:57:59 +0000 (08:57 -0700)]
Pass responseType in NFW notification callback to the framework

Bug: 131153085
Test: Manual verification
Change-Id: I7a0310802f18595feedee32de23041080306dc56

5 years agoMerge "Notify FSC about app ops in main thread" into qt-dev
Fabian Kozynski [Wed, 24 Apr 2019 16:01:10 +0000 (16:01 +0000)]
Merge "Notify FSC about app ops in main thread" into qt-dev

5 years agoResolve size compatibility bounds by original display attributes
Riddle Hsu [Wed, 17 Apr 2019 06:57:42 +0000 (14:57 +0800)]
Resolve size compatibility bounds by original display attributes

Previously, the rotation of bounds is simulated by swapping the width
and height, and also adjust the insets in app bounds. But it is still
not accurate enough because the decors can be moved or resized according
to rotation.

Now the activity bounds are computed as it is in a pseudo display that
provides the same size and insets information as the original display
where the activity launched.

This change also handles a special case for task level letterboxing.
The container bounds for activity is also calculated as the task,
so the activity can always best fit in the parent when the orientation
is changed.

Fixes: 130417317
Bug: 112288258
Test: atest ActivityRecordTests TaskRecordTests
Test: atest SizeCompatModeActivityControllerTest
Test: Enable fully gestural navigation and launch camera.
      The restart button should not show after rotating screen.

Change-Id: Ifbb31f9ee84723c85bd4cbc03abd8cdf70fee6af

5 years agoAssign layer to bounds animation layer
Jorim Jaggi [Wed, 24 Apr 2019 15:41:35 +0000 (17:41 +0200)]
Assign layer to bounds animation layer

Test: AppWindowTokenAnimationTests
Fixes: 130139437
Change-Id: Id68eabdacb569bcca292dace00b7e524fef9f0da

5 years agoRemove config specific size for HeaderTileLayout
Fabian Kozynski [Wed, 24 Apr 2019 15:10:21 +0000 (11:10 -0400)]
Remove config specific size for HeaderTileLayout

HeaderTileLayout width should always be MATCH_PARENT. The width is
controlled at the QSContainerImpl level by making it the width of
notification panel and it's MATCH_PARENT all the way down.

Test: visual, using emulator on really high density screen and phone
Fixes: 128776927
Change-Id: I3d5dc679cb77fb50ccadd6c3cb86a022e5f02f70

5 years agoMerge "Call PermissionControllerService on workerthread" into qt-dev
Philip P. Moltmann [Wed, 24 Apr 2019 15:28:25 +0000 (15:28 +0000)]
Merge "Call PermissionControllerService on workerthread" into qt-dev

5 years agoSharesheet - add label loading placeholder
Mike Digman [Tue, 23 Apr 2019 21:52:45 +0000 (14:52 -0700)]
Sharesheet - add label loading placeholder

When loading DS targets we show an animated icon, also want to
show a label placeholder.

Fixes: 129979593
Test: manual, visual
Change-Id: I2f8fbbad552dd412fd5aed3dfad9ac2a5abed0b0

5 years agoAudioAttributes: fix regression with setLegacyStreamType in Builder
Jean-Michel Trivi [Tue, 23 Apr 2019 23:49:50 +0000 (16:49 -0700)]
AudioAttributes: fix regression with setLegacyStreamType in Builder

A regression was introduced by commit @6d69bde which caused a new
  Builder instance to be created when using setLegacyStreamType(),
  instead of returning the current one.

Bug: 130274354
Test: atest android.media.cts.AudioAttributesTest#testSetLegacyStreamOnBuilder
Change-Id: Ib66a0beb5f0f4489a6003cb9be6b8313b3318eac

5 years agoMerge "Don't apply rounded-corner animation on non-default display" into qt-dev
Tiger Huang [Wed, 24 Apr 2019 14:59:09 +0000 (14:59 +0000)]
Merge "Don't apply rounded-corner animation on non-default display" into qt-dev

5 years agoMerge "Delete unused timeout constant." into qt-dev
Lorenzo Colitti [Wed, 24 Apr 2019 14:30:05 +0000 (14:30 +0000)]
Merge "Delete unused timeout constant." into qt-dev

5 years agoReinstate new VPN uid filtering unit tests
Rubin Xu [Wed, 24 Apr 2019 10:05:12 +0000 (03:05 -0700)]
Reinstate new VPN uid filtering unit tests

Mock out PackageManager and returns correct information corresponding
to the test app package itself.

Test: atest --generate-new-metrics 10 com.android.server.ConnectivityServiceTest
Bug: 114231106
Bug: 130397860

Merged-In: Ic2faef44831575b2d03bc00ef2553d5c549adc95
Change-Id: Ic2faef44831575b2d03bc00ef2553d5c549adc95
(cherry picked from commit 4469b1d8a543613d91a58a88488fd2022a0696b9)

5 years agoString change
Julia Reynolds [Wed, 24 Apr 2019 14:06:16 +0000 (10:06 -0400)]
String change

Bug: 123899489
Test: make
Change-Id: If9d42711a1442bef57924e5ad01023697edd95ed

5 years agoFix bug with blinking caption tooltip on rocker click. Also clean up
Anthony Tripaldi [Tue, 23 Apr 2019 21:56:56 +0000 (17:56 -0400)]
Fix bug with blinking caption tooltip on rocker click. Also clean up
some older code that flashed the dialog on screen initially and
triggered dismiss too often.

Bug: 131178834
Test: VolumeDialogImplTest still passes with atest
Change-Id: Ia8879aabe1d97fd2bb78620b962ad959bbbeaa25

5 years agoNotify FSC about app ops in main thread
Fabian Kozynski [Wed, 24 Apr 2019 13:25:14 +0000 (09:25 -0400)]
Notify FSC about app ops in main thread

Test: build
Bug: 131188506
Change-Id: I7c73344d65ac0322c32ad13e6f81ad52c7b629d7

5 years agoMerge "Fix broken test case 'testOverlayInfoStateTransitions'" into qt-dev
TreeHugger Robot [Wed, 24 Apr 2019 13:21:34 +0000 (13:21 +0000)]
Merge "Fix broken test case 'testOverlayInfoStateTransitions'" into qt-dev

5 years agoMerge "Backwards-incompatible resolv module API change for making setResolverConfigur...
Wayne Ma [Wed, 24 Apr 2019 13:05:59 +0000 (13:05 +0000)]
Merge "Backwards-incompatible resolv module API change for making setResolverConfiguration take a parcelable." into qt-dev

5 years agoRevert new tests and PackageManager mock
Lorenzo Colitti [Fri, 12 Apr 2019 10:50:22 +0000 (19:50 +0900)]
Revert new tests and PackageManager mock

A mocked PackageManager caused test failures in existing tests.
Revert that for now to make tests pass again.

Bug: 114231106
Bug: 130397860
Test: atest FrameworksNetTests

Merged-In: Ib59e211d4329f885108de9ea0a74669ffb144e17
(cherry picked from commit 8574c9bf350ca60e2b21c759aa75bc3843ffde17)

Change-Id: I603a0b0dfb67a942679a668c182aa650774c80b2

5 years agoDelete unused timeout constant.
Lorenzo Colitti [Wed, 24 Apr 2019 10:10:52 +0000 (03:10 -0700)]
Delete unused timeout constant.

Test: m
Bug: 129312219
Change-Id: I5b4c8b42dea515f674ff10d64d0e1d06d849cca1
Merged-In: I5b4c8b42dea515f674ff10d64d0e1d06d849cca1
(cherry picked from commit 21c692d71783d1c14a82910feaa3965367af85a6)

5 years agoMerge "Remove Settings constants for NetworkStack" into qt-dev
TreeHugger Robot [Wed, 24 Apr 2019 11:46:25 +0000 (11:46 +0000)]
Merge "Remove Settings constants for NetworkStack" into qt-dev

5 years agoBlock incoming non-VPN packets to apps under fully-routed VPN
Rubin Xu [Thu, 11 Apr 2019 18:45:43 +0000 (11:45 -0700)]
Block incoming non-VPN packets to apps under fully-routed VPN

When a fully-routed VPN is running, we want to prevent normal apps
under the VPN from receiving packets originating from any local non-VPN
interfaces. This is achieved by using eBPF to create a per-UID input
interface whitelist and populate the whitelist such that all
non-bypassable apps under a VPN can only receive packets from the VPN's
TUN interface (and loopback implicitly)

This is the framework part of the change that build the whitelist.
The whitelist needs to be updated in the following cases:
* When a VPN is connected and disconnected
    This will cover the change to allowBypass bit, since that can't be
    changed without reconnecting.
* When a VPN's NetworkCapabilites is changed (whitelist/blacklist app changes)
* When a new app is installed
* When an existing app is removed
* When a VPN becomes fully-routed or is no longer fully-routed

New user/profile creation will automatically result in a whitelist app change
transition so it doesn't need to be handled specially here.

Due to the limitation of the kernel IPSec interacting with eBPF (sk_buf->ifindex
does not point to the virtual tunnel interface for kernel IPSec), the whitelist
will only apply to app VPNs but not legacy VPN connections, to prevent breaking
connectivity with kernel IPSec entirely.

Test: atest PermissionMonitorTest
Test: atest android.net.RouteInfoTest
Test: atest com.android.server.ConnectivityServiceTest
Test: atest HostsideVpnTests
Bug: 114231106

Merged-In: I5af81bc80dadd086261ba4b1eb706cc873bb7cfa
Change-Id: I5af81bc80dadd086261ba4b1eb706cc873bb7cfa
(cherry picked from commit 65968ea16bf49f678d4a43c220e1d67393170459)

5 years agoDon't apply rounded-corner animation on non-default display
Tiger Huang [Wed, 24 Apr 2019 10:39:53 +0000 (18:39 +0800)]
Don't apply rounded-corner animation on non-default display

Non-default displays usually don't have rounded-corners. It doesn't
make sense to apply rounded-corner animations on them. Besides, we
don't know if an external display has rounded-corners or not.

Bug: 131040127
Test: Follow the reproduction steps in the bug.
Change-Id: I0b892bfb50875eaa59b2bf5ba07074bb3494042b

5 years agoMerge "Make Watchdog request timeout flag configurable" into qt-dev
Shafik Nassar [Wed, 24 Apr 2019 10:39:39 +0000 (10:39 +0000)]
Merge "Make Watchdog request timeout flag configurable" into qt-dev

5 years agoMerge "Add test for rollback of same version apk." into qt-dev
TreeHugger Robot [Wed, 24 Apr 2019 10:24:57 +0000 (10:24 +0000)]
Merge "Add test for rollback of same version apk." into qt-dev

5 years agoMerge "Change the test mapping configuration of GTS modules by using "imports.""...
TreeHugger Robot [Wed, 24 Apr 2019 09:36:07 +0000 (09:36 +0000)]
Merge "Change the test mapping configuration of GTS modules by using "imports."" into qt-dev

5 years agoFix broken test case 'testOverlayInfoStateTransitions'
Mårten Kongstad [Wed, 10 Apr 2019 12:33:12 +0000 (14:33 +0200)]
Fix broken test case 'testOverlayInfoStateTransitions'

Commit e0b984e8054 "Diff overlays between PackageManagerService and
OverlayManagerService" removed the OverlayInfo.STATE_TARGET_UPGRADING
state. Update the OverlayManagerServiceImplTests tests accordingly.

Bug: 130257545
Test: atest 'com.android.server.om.OverlayManagerServiceImplTests#testOverlayInfoStateTransitions'
Change-Id: I06fed8cfe4daf0206843d140ae7ab594cc89ab09

5 years agoMerge "Fix idmap scan to apply odm and oem policies" into qt-dev
TreeHugger Robot [Wed, 24 Apr 2019 08:33:38 +0000 (08:33 +0000)]
Merge "Fix idmap scan to apply odm and oem policies" into qt-dev

5 years agoMerge "Add support for /oem/overlay" into qt-dev
TreeHugger Robot [Wed, 24 Apr 2019 08:33:38 +0000 (08:33 +0000)]
Merge "Add support for /oem/overlay" into qt-dev

5 years agoMerge changes I84461d40,Ib3ab9105 into qt-dev
Lorenzo Colitti [Wed, 24 Apr 2019 08:11:26 +0000 (08:11 +0000)]
Merge changes I84461d40,Ib3ab9105 into qt-dev

* changes:
  Allow overlaying the DNS probe timeout.
  Add a timeout for the DNS probe.

5 years agoMerge "Disable flaky tests" into qt-dev
TreeHugger Robot [Wed, 24 Apr 2019 06:58:00 +0000 (06:58 +0000)]
Merge "Disable flaky tests" into qt-dev

5 years agoRegister Ime consumer only when insets are enabled.
Tarandeep Singh [Tue, 23 Apr 2019 23:25:38 +0000 (16:25 -0700)]
Register Ime consumer only when insets are enabled.

As of today we register Ime consumer in IMM onWindowGainedFocus().
However, it does nothing functionally when ViewRootImpl#sNewInsetsMode is disabled.
This CL adds a check to not register consumer at the first place.

This may also be causing a leak. Added a TODO to revisit that before we
enable the flag.

Bug: 131181940
Test: atest ViewRootImpl
Test: atest InsetsController
Change-Id: I6b2b62d10670d63edafeb1b24c25b26c7721f3ad

5 years agoMerge "Run performInitialGrantsIfNecessaryAsync() on main thread." into qt-dev
TreeHugger Robot [Wed, 24 Apr 2019 05:57:24 +0000 (05:57 +0000)]
Merge "Run performInitialGrantsIfNecessaryAsync() on main thread." into qt-dev

5 years agoAllow overlaying the DNS probe timeout.
Lorenzo Colitti [Wed, 24 Apr 2019 05:43:50 +0000 (14:43 +0900)]
Allow overlaying the DNS probe timeout.

Test: m
Bug: 129312219
Change-Id: I84461d40e4d2e63ce8c111c047cbc085cb49443e

5 years agoMerge "Race condition while injecting ACTION_OUTSIDE" into qt-dev
Jackal Guo [Wed, 24 Apr 2019 05:47:11 +0000 (05:47 +0000)]
Merge "Race condition while injecting ACTION_OUTSIDE" into qt-dev