Commit Graph

15368 Commits

Author SHA1 Message Date
satayev
2dcbe22daa Merge "Refactor PlatformCompat and related files." am: 5d37ff2d33 am: 3cfd32b11f am: 1c8e894bd8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1553536

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If7d1fe2f9b0165c3bb46a64b77a2f00756f207e3
2021-01-20 18:55:11 +00:00
satayev
1c8e894bd8 Merge "Refactor PlatformCompat and related files." am: 5d37ff2d33 am: 3cfd32b11f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1553536

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia183bbd2338415608ad962e80336e05bc6d99612
2021-01-20 18:48:02 +00:00
TreeHugger Robot
b4707f9a04 Merge "Option to skip profile password requirement during password enrolment" 2021-01-20 14:40:24 +00:00
satayev
5d37ff2d33 Merge "Refactor PlatformCompat and related files." 2021-01-20 14:13:45 +00:00
Galia Peycheva
c8a82f5ee5 Merge "Add blur feature to package manager" 2021-01-20 14:13:45 +00:00
Artur Satayev
5d640c39a3 Refactor PlatformCompat and related files.
- Fix java style
- Remove some code duplication
- Remove redundant throws declarations for unchecked exceptions
- Fix javadoc typos

Bug: 147113465
Test: N/A
Change-Id: I723ddf3184e2da77f157340c4ef18e9395b99e60
2021-01-20 11:21:40 +00:00
Galia Peycheva
f78234f112 Merge changes from topic "blur_system_api"
* changes:
  Make BackgroundBlurDrawable a SystemApi
  Make window background blurs SystemApi
  Add permission for blur SystemApi
2021-01-20 05:04:01 +00:00
Tiger Huang
d4391287d5 Merge "Add BEHAVIOR_DEFAULT for visual immersive mode" 2021-01-20 04:20:40 +00:00
Benjamin Schwartz
bded2c1344 Merge "Introduce PowerStatsInternal and replace PowerStatsHalWrapper usage" 2021-01-19 21:39:59 +00:00
Treehugger Robot
1151863969 Merge "Fixed Handler Leak on WrapperInit" am: 9c7e15ab31 am: d723dd9191 am: 5a1e5ac1ff
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1495716

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8097c4fc518a6920026c2db5ea902ae21e1172a1
2021-01-19 19:13:23 +00:00
Treehugger Robot
5a1e5ac1ff Merge "Fixed Handler Leak on WrapperInit" am: 9c7e15ab31 am: d723dd9191
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1495716

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I14173b39846f2ef92698731b48dd4dd79d361b97
2021-01-19 19:12:06 +00:00
Miranda Kephart
302cd6f87b Merge "Add shared transitions from screenshot to markup" 2021-01-19 18:38:47 +00:00
Michael Wachenschwanz
605ac95a04 Introduce PowerStatsInternal and replace PowerStatsHalWrapper usage
PowerStatsService will handle PowerStatsHal queries, PowerStatsInternal
will provide the LocalService for querying PowerStatsHal derived data
from other System services.

Bug: 173077356
Test: atest FrameworksCoreTests:com.android.internal.power.MeasuredEnergyStatsTest
Test: atest com.android.server.powerstats.PowerStatsServiceTest

Change-Id: Ibc0165a44ffdbbcc9328c250f1dca3d29616c766
2021-01-19 10:21:58 -08:00
Treehugger Robot
9c7e15ab31 Merge "Fixed Handler Leak on WrapperInit" 2021-01-19 18:05:04 +00:00
Galia Peycheva
36ba33e66a Add blur feature to package manager
Bug: 177523043
Bug: 177524486
Test: adb shell pm list features
Change-Id: Ibda2d51e6517753148609f5ae2e1a7e077b89b1e
2021-01-19 17:07:11 +01:00
Alison Cichowlas
b9ba83d235 Correct duplicate log ID.
Test: atest ChooserActivityTest
Change-Id: I9ad50e48ab381d64f9a7beb18a71a22d879bde5f
2021-01-19 16:05:35 +00:00
Rubin Xu
5eab037be5 Option to skip profile password requirement during password enrolment
Add a new extra for ACTION_SET_NEW_PARENT_PROFILE_PASSWORD which will
allow the flow to not enforce password requirement coming from the
profile side. This is to enable better password enrolment flow when
the DPC is guiding the user to enrol both a personal and work lock.

Bug: 169832516
Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Test: m RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.password
Change-Id: Idb33418f3e532dffc96ccb907f5cae0b6185173e
2021-01-19 15:36:05 +00:00
Tiger Huang
d878909a9b Add BEHAVIOR_DEFAULT for visual immersive mode
BEHAVIOR_DEFAULT lets the user can use single gesture to navigate while
system bars are hidden in gesture navigation mode. The user doesn't
need to make navigation bar visible before performing navigation.

BEHAVIOR_DEFAULT will be the default behavior, which means if there is
no system bar behavior (or any legacy sysui flag about immersive)
specified, the behavior will be BEHAVIOR_DEFAULT instead of
BEHAVIOR_SHOW_BARS_BY_TOUCH.

BEHAVIOR_SHOW_BARS_BY_TOUCH and BEHAVIOR_SHOW_BARS_BY_SWIPE are
deprecated. Their behavior is equivalent to BEHAVIOR_DEFAULT now. The
logic about HideNavInputEventReceiver is removed.

Bug: 168913586
Test: atest WindowInsetsControllerTests ViewRootImplTest
            DisplayPolicyTests CommandQueueTest
            LightsOutNotifControllerTest RegisterStatusBarResultTest
Change-Id: Ic818e323abbb38b57bef9fc36fb1afef2a007f1b
2021-01-19 23:33:21 +08:00
Galia Peycheva
42f19b6163 Make BackgroundBlurDrawable a SystemApi
Bug: 177524486
Test: check that using the drawable in the PermissionController works

Change-Id: I0b881ec6e9a41c5aed3ca17589a6d66ced0539bf
2021-01-19 13:50:53 +01:00
Galia Peycheva
e463ad6d1b Make window background blurs SystemApi
This CL makes windowBackgroundBlurEnabled, windowBackgroundBlurRadius
and WM.LP backgroundBlurRadius SystemApis to be used for bross-app blur.

WM.LP.backgroundBlurRadius is protected via a
Manifest.permission.USE_BACKGROUND_BLUR, which is checked both in the
system server and in SurfaceFlinger.

This CL also mokes WM.LP.FLAG_BLUR_BEHIND a SystemApi. It has been a
public API since 2009 and was deprected in 2011. It has been a no-op
ever since that. We are removing it from being a public api and will
use it as a system api in S

Bug: 167166562
Bug: 177524486
Test: manual - use PermissionController dialog to check SystemApis work
Change-Id: Icf98c3607b7d7ccdfb67b279e9fc5a83eba14204
2021-01-19 13:50:36 +01:00
Treehugger Robot
eb716a055c Merge "Use API RouteInfo constructor in VpnConfig" am: 78426b28cc am: 5f2a3aca17 am: 2789600fdb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1552496

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ibc64e9dfa4dd56ef817469e2ecffcb662b64c8de
2021-01-18 06:32:54 +00:00
Treehugger Robot
2789600fdb Merge "Use API RouteInfo constructor in VpnConfig" am: 78426b28cc am: 5f2a3aca17
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1552496

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib005c7b3c640f88e89868ff334aae5dcfd7f3852
2021-01-18 06:04:45 +00:00
Yunfan Chen
93d1656697 Merge "Ensure notifying when only caption insets changed" 2021-01-18 05:24:47 +00:00
Treehugger Robot
78426b28cc Merge "Use API RouteInfo constructor in VpnConfig" 2021-01-18 05:08:58 +00:00
Roshan Pius
50c705a8a8 Merge "LocationPermissionChecker: Exempt privileged components from location check" am: 2324ff48be am: 3f78d1ce0a am: b8dd50f3b4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1550515

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I66afba490765f4eae803d0ea4e2cc3eb54528aa4
2021-01-18 03:24:51 +00:00
Roshan Pius
b8dd50f3b4 Merge "LocationPermissionChecker: Exempt privileged components from location check" am: 2324ff48be am: 3f78d1ce0a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1550515

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I45afdaba68269d59cfcf670ef7fdef6a19b3a9d2
2021-01-18 02:52:29 +00:00
Roshan Pius
2324ff48be Merge "LocationPermissionChecker: Exempt privileged components from location check" 2021-01-18 01:33:31 +00:00
Zoey Chen
3ed50cfe93 Merge "[Telephony] PhoneStateListener redesign for new event" am: 3521a14be4 am: 26c225c0ed
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519637

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic283ea7e43bd3a2875acb5528f19ded0974ae42e
2021-01-16 01:49:34 +00:00
Zoey Chen
3521a14be4 Merge "[Telephony] PhoneStateListener redesign for new event" 2021-01-16 00:56:51 +00:00
Jeff Sharkey
b613e454b7 Merge "Add owners for locksettings related files" am: e768557623 am: fec42d6f3f am: 97eae7f9cc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1551936

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I883f057b43b0fc206626a309ec8f522c84cb9bbf
2021-01-15 17:23:38 +00:00
Jeff Sharkey
97eae7f9cc Merge "Add owners for locksettings related files" am: e768557623 am: fec42d6f3f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1551936

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I202e553135198c01d9389966a1bf2913d4e7f507
2021-01-15 17:06:01 +00:00
Jeff Sharkey
e768557623 Merge "Add owners for locksettings related files" 2021-01-15 16:02:26 +00:00
Rubin Xu
80c94ce1cc Add owners for locksettings related files
Bug: 174932174
Test: builds
Change-Id: I2759a0387e55d0ce7e5fd14bb08a8018d7946c2d
2021-01-15 16:00:08 +00:00
Roshan Pius
7692fba5c1 LocationPermissionChecker: Exempt privileged components from location check
This is a port of the exemption that exists in WifiPermissionsUtil.
Settings, sysui, network stack needs to be able to access all network
state regardless of location toggle. If we want to move sysui, etc to
retrieve WifiInfo via NetworkCapabilities (which is the current plan),
this exemption is essential since UI should reflect wifi state
regardless of location toggle state.

Bug: 162602799
Test: atest LocationPermissionCheckerTest
Change-Id: I49ce465eccce27bb7a860d882360436fd9ec19c6
2021-01-15 06:51:39 -08:00
Remi NGUYEN VAN
6f27155e9b Use API RouteInfo constructor in VpnConfig
VpnConfig is planned to be outside of the connectivity module, so it
needs to use its public API and not private symbols.

Change the RouteInfo constructor to use the equivalent API version.

Bug: 174436414
Test: m
Change-Id: Iae264e9b50ec6e97ce39bd2bab6f22f5844bf270
2021-01-15 23:44:49 +09:00
Alison Cichowlas
de71c34838 Add edit to share dialog action bar.
Bug: 150960874
Test: atest ChooserActivityTest & manual verification
Change-Id: Ie52aaab90f678d32d9b67f95d81f86b82d1b9c7c
2021-01-14 21:42:09 +00:00
TreeHugger Robot
85cab1fa8b Merge "Use API for binding service with custom user and executor." 2021-01-14 10:36:55 +00:00
Zoey Chen
041679fa9a [Telephony] PhoneStateListener redesign for new event
1. Add int EVENT_* and expose these as @SystemApi
 2. Add listener interface
 3. Deprecated LISTEN_*
 4. un/registerPhoneStateListener
 5. get event from event listener
 6. Add event to list

Test: manual and
atest TelephonyManagerTest#testRegisterPhoneStateListener
atest TelephonyManagerPermissionTest
atest CtsTelephonyTestCases:PhoneStateListenerTest
atest TelephonyRegistryManagerTest
atest CtsTelecomTestCases:android.telecom.cts.IncomingCallTest
atest CtsTelecomTestCases:android.telecom.cts.OutgoingCallTest

Bug: 167684594
Change-Id: Id89a541745fb8700e1ebd2cc162ee55cd1055661
Merged-In: Id89a541745fb8700e1ebd2cc162ee55cd1055661
2021-01-14 16:58:33 +08:00
Rafal Slawik
23ac0f8f3a Merge "Measure total time in state" 2021-01-14 08:03:35 +00:00
Hai Zhang
a95881f6ca Use API for binding service with custom user and executor.
There is actually already a public API overload for
Context.bindService() which allows binding the service with the user
of Context.getUser() and a custom Executor.

We can construct an Executor from our Handler, but this executor is
required to remain the same instance for different calls to
bindService() for the same ServiceConnection by the API, so we should
keep the Executor instance, as well as the Handler instance, instead
of calling getJobHandler() every time. In fact getJobHandler() is
already required to return the same instance, or bindServiceAsUser()
would have thrown the same exception for different Handlers.

Also removed a check in ContextImpl.bindService() to allow mainline
modules to use the bindService() API with Context multi-user.

Bug: 158736025
Test: presubmit
Change-Id: I95717a4a74267dff4fbe1898a82cdfa7f195cc06
2021-01-13 15:00:37 -08:00
Winson Chung
c31ec3d518 Merge "Migrate FrameTracker to use ST Jank information" 2021-01-13 19:36:00 +00:00
Miranda Kephart
0dab35d6d1 Add shared transitions from screenshot to markup
Fixes earlier issue where UI didn't get dismissed correctly.

Avoids removing the ExitTransitionCoordinator callback too early,
so that we get the hideSharedElements call.

Bug: 170138961
Bug: 159419046
Test: manual
Change-Id: I78193e46c97d01943df9b8438a29c6ee1e0106ff
2021-01-13 16:10:54 +00:00
Chiachang Wang
03f70bab17 Merge "[IT4.21] Update the label type of idle timer" am: 4bdcbf4608 am: bf710b7402 am: e276fd4654
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1535721

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9445412f619fa8d4d0e7888a333bbdffdca013bf
2021-01-13 10:33:55 +00:00
Chiachang Wang
e276fd4654 Merge "[IT4.21] Update the label type of idle timer" am: 4bdcbf4608 am: bf710b7402
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1535721

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6d54f242cee6171c8666efed21d83349366b7070
2021-01-13 10:12:15 +00:00
Chiachang Wang
4bdcbf4608 Merge "[IT4.21] Update the label type of idle timer" 2021-01-13 09:10:43 +00:00
Chiachang Wang
3ce298dff1 [IT4.21] Update the label type of idle timer
The first parameter of adding idle timer is an unique identity
to communicate between ConnectivityService and netd. Netd will
notify the activity change using the identity, so it's fine to
replace the legacy type with transport type since we should
deprecate the usage of legacy type.

Bug: 170598012
Test: atest FrameworksNetTests
Change-Id: Ia00606539b86872cca9a92285bd940c8a720a033
2021-01-13 14:10:15 +08:00
Jeff Sharkey
e069ac2c91 Merge "Interface to dynamically generate DropBox data." 2021-01-13 01:28:33 +00:00
Jeff Sharkey
8eebdbe4b5 Interface to dynamically generate DropBox data.
The existing DropBoxManager APIs require that data be entirely
pre-cooked before it can be added.  This adds significant overhead
to Log.wtf() style messages which collect logcat data, since we
need to copy that log data through a pipe to an in-memory buffer.

To avoid that overhead, this change introduces an EntrySource
interface which can either be pre-cooked data or dynamically
generated data written directly to an open FD on disk.  Future
changes will adjust the Log.wtf() logic to use this new interface
to have logcat write directly into an FD.

In addition, this interface paves the way for leveraging a newer
F2FS feature which transparently compresses and decompresses data in
the kernel, instead of forcing us to use DEFLATE in userspace.

This change drops periodic quota checking while recording new
entries, and instead adjusts to pre-flight the quota checks before
writing starts.  It also drops the expensive fsync(), since these
logs are collected on a best-effort basis.

Bug: 176843501
Test: atest CtsDropBoxManagerTestCases
Test: atest FrameworksServicesTests:com.android.server.DropBoxTest
Change-Id: Ic78e99a32cfaf4edac066a73a6864c9c9e9fdeef
2021-01-12 13:51:28 -07:00
Jonathan Miranda
41c074582d Merge "Fix startPostponedEnterTransition being called too early." 2021-01-12 19:01:13 +00:00
Benjamin Franz
a633741730 Merge "Add new overridable annotation to platform compat" am: 458515e464 am: 899cd8920b am: 9f7867cee2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1540124

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If74ec1464e1a52a14ab1aeb81ca676622a52a72d
2021-01-12 16:48:26 +00:00