Commit Graph

641664 Commits

Author SHA1 Message Date
Benedict Wong
9d92b77ad7 Copy up/downstream bandwidth and TCP buffer sizes from underlying
This change copies the relevant pieces of information used to tune the
system for performance

Bug: 188943592
Test: atest FrameworksVcnTests
Change-Id: I2d5dc5b9000fa9d0da9d34772b3704110694c526
2021-05-24 17:23:04 -07:00
Benedict Wong
f8ce665d9f Prevent concurrent modification exceptions in VcnManagementService
In order to prevent concurrent modifications from triggering an
exception in the dump, proxy it to the handler thread.

Adding locks was considered, but would require auditing all callbacks
and proxying them to the handler threads in order to ensure lock
inversion and deadlocks never occur.

Bug: 188840899
Test: FrameworksVcnTests
Test: adb shell dumpsys vcn_management
Change-Id: Ibcc4bdc06301dd77260adaa0c086529f8f524679
2021-05-24 17:22:49 -07:00
Mady Mellor
3952307a8c Merge "Bubbles styling: flyout changes" into sc-dev 2021-05-19 18:28:10 +00:00
Mady Mellor
9f97f89342 Merge "Fix some sizes that weren't changing for font scale / display size`" into sc-dev 2021-05-19 18:18:34 +00:00
Rubin Xu
e25a1b3d91 Merge "Add device admin restrictions for mic/cam toggles" into sc-dev 2021-05-19 18:03:36 +00:00
Steven Moreland
f07675c46c Merge "Parcel: document enforceInterface" into sc-dev 2021-05-19 18:02:16 +00:00
Abel Tesfaye
784886816d Merge "Add LatencyTracker for CameraAutoRotate in RotationResolverManagerPerUserService" into sc-dev 2021-05-19 17:38:51 +00:00
Kevin Chyn
ab0c4fbc4f Merge "Initialize mLastAcquire, and check against it in wasUserDetected" into sc-dev 2021-05-19 17:28:39 +00:00
TreeHugger Robot
175302bb89 Merge "Correct AppWidget layout when WP is off" into sc-dev 2021-05-19 17:26:37 +00:00
Yi Jiang
af8ef20fe7 Merge "Adds unit tests for WOL." into sc-dev 2021-05-19 17:04:44 +00:00
TreeHugger Robot
c6850e0a9f Merge "Add a permission for CDM apps to start FGS from the background (2nd try)" into sc-dev 2021-05-19 16:27:04 +00:00
Jack Yu
365fb56a56 Merge "API Review: Rename CAPABILITY_ALLOWED_NETWORK_TYPES_USED" into sc-dev 2021-05-19 16:26:18 +00:00
Winson Chung
90f649445f Merge "Fix regression in app drag target windows" into sc-dev 2021-05-19 16:18:21 +00:00
Alex Johnston
e9614f06c4 Merge "Security logging broadcast work profile" into sc-dev 2021-05-19 16:17:24 +00:00
Edgar Wang
f414073a73 Merge "Remove the maxLines of FooterPreference." into sc-dev 2021-05-19 16:16:39 +00:00
Neil Fuller
bc9061fdf3 Merge "Add permission to shell for CTS test" into sc-dev 2021-05-19 16:11:12 +00:00
Rahul Sabnis
b8cfbebbec Merge "Update BluetoothDevice#setAlias based on API council feedback: now accepts null input and returns an int (with error codes). Update CompanionDeviceManager#canPairWithoutPrompt to take a UserHandle instead of an int. Adds BluetoothStatusCodes class for all new Bluetooth error / success codes. Moved OOB and hci disconnect constants to the new BluetoothStatusCodes class." into sc-dev 2021-05-19 16:00:04 +00:00
TreeHugger Robot
ee438f960a Merge "Deprecate Context#createApplicationContext" into sc-dev 2021-05-19 15:35:09 +00:00
Rubin Xu
68aa35b03d Merge "Send network & security logging callbacks in foreground" into sc-dev 2021-05-19 15:34:31 +00:00
TreeHugger Robot
393cd159ae Merge "Revert "Remove GET_ACCOUNTS_PRIVILEGED from PermissionController."" into sc-dev 2021-05-19 15:31:56 +00:00
Tiger Huang
a254d7fd43 Merge "Force showing navigation bar while IME is visible" into sc-dev 2021-05-19 15:25:17 +00:00
TreeHugger Robot
cf5b205e9a Merge "Extend set user protected packages for multi-user" into sc-dev 2021-05-19 15:14:39 +00:00
Les Lee
6fff3df429 Merge "Add metered filter for API: buildTemplateCarrier" into sc-dev 2021-05-19 14:32:29 +00:00
Zimuzo Ezeozue
58b0886913 Merge "Improve secondary volume mounts on user switch" into sc-dev 2021-05-19 14:31:11 +00:00
Antoan Angelov
392fd855a4 Merge "SettingsLib logic for updated ActionDisabledByAdminDialogHelper" into sc-dev 2021-05-19 13:50:07 +00:00
Ard Biesheuvel
e6c75ec2dc Revert "Remove GET_ACCOUNTS_PRIVILEGED from PermissionController."
Revert "Remove GET_ACCOUNTS_PRIVILEGED from PermissionController."

Revert "Remove GET_ACCOUNTS_PRIVILEGED from PermissionController."

Revert submission 14608710-pc-account-permission

Reason for revert:
Causes kernel presubmit breakage (b/188643368)
[avd/avd_boot_test_kernel_triggered-stable-host-image] DeviceBootTest.DeviceBootTest#DeviceBootTest

Reverted Changes:
I5ed894f7d:Remove GET_ACCOUNTS_PRIVILEGED from PermissionCont...
I2e765abb8:Remove GET_ACCOUNTS_PRIVILEGED from PermissionCont...
Ia11eb94f8:Remove GET_ACCOUNTS_PRIVILEGED from PermissionCont...

Change-Id: I5b3cd130e3d541cd2d97e74bd9da158c47dc0ea8
Bug: 188643368
2021-05-19 13:29:43 +00:00
Caitlin Cassidy
48f518618e Merge "[Device Controls] For custom icons, keep the tint the icon comes with." into sc-dev 2021-05-19 13:16:44 +00:00
TreeHugger Robot
c5efbf1dba Merge "Add hasExternalControl hidden API to Vibrator" into sc-dev 2021-05-19 12:50:27 +00:00
Junyu Lai
b987babf5e Merge changes I3ba50cbd,I970ee365 into sc-dev
* changes:
  [FUI29] Migrate ConnectivityService to use getAllNetworkStateSnapshots
  [FUI27] Fix internal naming of notifyNetworkStatus
2021-05-19 12:36:03 +00:00
Beverly Tai
161bec7e1d Merge "onFinished, update scrim based on lastState" into sc-dev 2021-05-19 12:20:38 +00:00
TreeHugger Robot
cf2f6ff89a Merge "Changed behavior of DPMS.setLocationEnabled() for automotive." into sc-dev 2021-05-19 12:15:04 +00:00
Junyu Lai
5e23456875 Merge "[VCN21] Do not add NOT_VCN_MANAGED capability if specifier is present" into sc-dev 2021-05-19 11:31:39 +00:00
junyulai
106c3bc56f [VCN21] Do not add NOT_VCN_MANAGED capability if specifier is present
Test: atest NetworkRequestTest#testBypassingVcn
Fix: 176939355
Fix: 188597540
Merged-In: I98dd3f4652dc067eb5c4666e952db6c854bcbb10
Change-Id: I98dd3f4652dc067eb5c4666e952db6c854bcbb10
  (cherry-picked from aosp/1705390)
2021-05-19 09:52:03 +00:00
Anna Zappone
0c94c3f6a0 Merge "UX polish updates" into sc-dev 2021-05-19 09:46:13 +00:00
Pierre Barbier de Reuille
2debc0a849 Correct AppWidget layout when WP is off
When the work profile (WP) is off, the layout of the widget is provided
by the system.

The layout must have a background with android:id/background as view id
and clip its outline, or it will be considered "legacy" and have the
wrong outline when moved.

Bug: 187907544
Test: Add a widget for the WP and turn the WP off.
Change-Id: Ibee31f5f0e510313ae7f8dc78c208c45a4d0e1fd
2021-05-19 09:28:02 +00:00
Neil Fuller
8168766af7 Merge "Tidy configuration associated with geotz" into sc-dev 2021-05-19 08:33:00 +00:00
Marie Matheson
f5bb354999 Merge "Updates BannerMessagePreference to new style" into sc-dev 2021-05-19 08:26:03 +00:00
Remi NGUYEN VAN
743563b8c3 Merge "Move config_apf* resources to NetworkStack" into sc-dev 2021-05-19 07:54:19 +00:00
Robert Horvath
2314129406 Merge "Support generic profile types" into sc-dev 2021-05-19 07:47:08 +00:00
Winson Chung
7aeb642c91 Fix regression in app drag target windows
- Only disallow non-local, non-global intercepting windows from
  receiving drags.  The window which originated the drag still might
  want to receive drag events to kick off animations/etc.

Bug: 178690347
Test: atest DragDropControllerTests
Change-Id: I856d179993e687ba343e35d87bd1f3c613e637db
2021-05-18 22:52:55 -07:00
Chris Li
b9034aba83 Merge "Determine whether to support activities in multi window (9/n)" into sc-dev 2021-05-19 05:47:41 +00:00
TreeHugger Robot
4d225a0e3c Merge "Update bubble user education screens to use proper colors" into sc-dev 2021-05-19 04:36:06 +00:00
Stanislav Zholnin
94ba8dd4df Merge "Track OP_PHONE_CALL_MICROPHONE and OP_PHONE_CALL_CAMERA in Discrete registry." into sc-dev 2021-05-19 04:10:21 +00:00
TreeHugger Robot
252a579657 Merge "Only show filtered RecentLocationAccess apps" into sc-dev 2021-05-19 03:41:57 +00:00
Hongwei Wang
21f0b70da5 Merge "Do not move PiP upon Display change during exit" into sc-dev 2021-05-19 03:27:00 +00:00
lesl
559d4ec575 Add metered filter for API: buildTemplateCarrier
This CL modifies NetworkTemplate#buildTemplateCarrier to force on
metered carrier network and rename to buildTemplateCarrierMetered.
This method was introduced recently and has no callers.

This method will be used in Settings and NetworkPolicyManagerService
to display and manage data usage on carrier metered networks.

Settings/NetworkPolicyManagerService will use it instead of the existing
method buildTemplateMobileAll method, which only matches metered networks.
That code will change from matching metered mobile networks to matching
metered carrier networks.

Note: The carrier metered network includes metered mobile network and
metered "merged carrier wifi network" that is a specific cerrier wifi network
which provides the same user experience as mobile.

Bug: 176396812
Test: atest -c NetworkTemplateTest
Change-Id: I7196d62bb60844458a6c4b1d94e2baccb71e15cd
Merged-In: I7196d62bb60844458a6c4b1d94e2baccb71e15cd
2021-05-19 02:53:39 +00:00
Remi NGUYEN VAN
5363620962 Move config_apf* resources to NetworkStack
The resources are only read by NetworkStack through their respective
ApfCapabilities SystemApi methods.
As the resources are being migrated out of frameworks/base resources
anyway, move them directly to NetworkStack instead of moving them to
ServiceConnectivityResources.

Also test that the framework resources are not overlaid or modified.
This should avoid OEM integration errors where the overlays are kept as
in R, without overlaying the resource in the NetworkStack package.

Bug: 185850634
Test: atest CtsNetTestCases
BYPASS_INCLUSIVE_LANGUAGE_REASON=Need to mention legacy APIs

Merged-In: I7a15ddcad5af11fa307d9dbe3a77b31a1179e5b3
(clean cherry-pick)

Change-Id: I7a15ddcad5af11fa307d9dbe3a77b31a1179e5b3
2021-05-19 11:00:58 +09:00
Rhed Jao
ce8a8e8d01 Merge "Fix LauncherApps package removed Callback failed on multi-users" into sc-dev 2021-05-19 01:58:08 +00:00
TreeHugger Robot
eea27600d3 Merge "Take PIP snapshot in the shell and use bounds state size for crossfading" into sc-dev 2021-05-19 01:06:32 +00:00
TreeHugger Robot
3e2c6580a5 Merge "Clarify some UCE API docs" into sc-dev 2021-05-19 00:52:27 +00:00