Commit Graph

16393 Commits

Author SHA1 Message Date
Suprabh Shukla
1698c0705e Merge "Suspend dialog improvememts" into sc-dev am: 9da117df72
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14150368

Change-Id: Icda2d764a05d9ec22cf7622a731cd94040e559c0
2021-04-14 00:08:56 +00:00
Suprabh Shukla
9da117df72 Merge "Suspend dialog improvememts" into sc-dev 2021-04-13 23:57:38 +00:00
Dmitri Plotnikov
27ec6b50da Merge "Add BatteryConsumer.getCustomPowerComponentName() and getCustomPowerComponentCount()" into sc-dev am: 07bc3d6d95
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14145993

Change-Id: Ida3b1050ac168abaed05e7ff2859ec50ecb76fd8
2021-04-13 23:49:21 +00:00
Dmitri Plotnikov
07bc3d6d95 Merge "Add BatteryConsumer.getCustomPowerComponentName() and getCustomPowerComponentCount()" into sc-dev 2021-04-13 23:44:29 +00:00
TreeHugger Robot
b890d019fa Merge "ConfirmUserCreationActivity hide non-sys overlays" into sc-dev am: 311c3aea77
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14129558

Change-Id: I7a9eec2686b3a6da5fcaa89d684ada6f443dd682
2021-04-13 23:04:02 +00:00
TreeHugger Robot
311c3aea77 Merge "ConfirmUserCreationActivity hide non-sys overlays" into sc-dev 2021-04-13 22:56:38 +00:00
Mark Renouf
b9650d6d47 Merge "Do not inset scrollBounds by padding unless clipToPadding==true" into sc-dev am: eaefe1464f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14163128

Change-Id: Ifcd7a4a76df81f5c9025005a8301ac91a347d913
2021-04-13 21:31:47 +00:00
Mark Renouf
eaefe1464f Merge "Do not inset scrollBounds by padding unless clipToPadding==true" into sc-dev 2021-04-13 21:06:39 +00:00
Siim Sammul
50ddece0e9 Merge "Change BinderLatencyBuckets to use int[] instead of ArrayList to improve performance." into sc-dev 2021-04-13 19:27:49 +00:00
Dmitri Plotnikov
3885aa960b Add BatteryConsumer.getCustomPowerComponentName() and getCustomPowerComponentCount()
Bug: 184207674
Test: atest FrameworksCoreTests:com.android.internal.os.BatteryStatsTests
Change-Id: Ic41cf53e553a25caa8bb6c84c30e3ea2b7627281
2021-04-13 12:16:13 -07:00
Mark Renouf
5ba19c973a Do not inset scrollBounds by padding unless clipToPadding==true
The intent is to avoid attempting to capture areas of a scrollable
view which will never display content. This is only the case when
clipToPadding = true (which is the default).

Bug: 185153400
Test: atest ScrollCaptureViewSupportTest
Change-Id: I2d97ba480320c3e83c056c0f51d7b4ca51715bd6
2021-04-13 10:53:14 -04:00
Paul Hu
65bc303fa8 Merge "Rename FIRST_SDK_INT to DEVICE_INITIAL_SDK_INT" into sc-dev am: 036d189a8d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14134967

Change-Id: Iaae05598a4d39e4706a5cbbaf2dbc7e6f85de35b
2021-04-13 02:17:42 +00:00
Suprabh Shukla
346118543b Suspend dialog improvememts
Finishing the suspend dialog when the package for which it was shown
gets unsuspended for any reason.

Also, attributing any interaction with this dialog to the suspending
package, as the system is showing the dialog on its behalf.

Test: Manual, from an unrooted shell:
adb shell pm suspend com.android.chrome
Tap to start chrome and wait for the dialog to appear. Then:
adb shell pm unsuspend com.android.chrome
The dialog should disappear. Further,
adb shell dumpsys usagestats
should show USER_INTERACTION for com.android.shell.

Bug: 169137795
Fixes: 180336589
Change-Id: I70b6f23e2994d8802335e35932ed09209754697c
2021-04-12 19:10:31 -07:00
Paul Hu
036d189a8d Merge "Rename FIRST_SDK_INT to DEVICE_INITIAL_SDK_INT" into sc-dev 2021-04-13 02:05:21 +00:00
Siim Sammul
1aa3fb5e4c Change BinderLatencyBuckets to use int[] instead of ArrayList to improve
performance.

Cherry pick from master with no changes

Test: unit test
Bug: 179999191
Change-Id: Id996b52b5cb69a85f9c6a932ea8d30336fcaf12a
Merged-In: Id996b52b5cb69a85f9c6a932ea8d30336fcaf12a
(cherry picked from commit 9d02e6101e)
2021-04-12 20:58:00 +00:00
Siim Sammul
650d60ad01 Merge "Store the collected binder latency samples in buckets to form a histogram. Add the ability to generate histograms with varying bucket counts and sizes." into sc-dev 2021-04-12 18:49:27 +00:00
Roland Levillain
d07546a852 Merge "Fix typo in documentation of ZygoteCommandBuffer.nativeForkRepeatedly." am: 304329d202 am: 87744c8b58 am: 1e3aafb013 am: 9e2adae46b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1673345

Change-Id: Ic1f6e01b966ad1f29982390b49556b588f549ac5
2021-04-12 18:03:16 +00:00
Roland Levillain
9e2adae46b Merge "Fix typo in documentation of ZygoteCommandBuffer.nativeForkRepeatedly." am: 304329d202 am: 87744c8b58 am: 1e3aafb013
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1673345

Change-Id: I8ed55afb37e23af6c9190eed535b2f2ae1424890
2021-04-12 17:46:03 +00:00
Roland Levillain
1e3aafb013 Merge "Fix typo in documentation of ZygoteCommandBuffer.nativeForkRepeatedly." am: 304329d202 am: 87744c8b58
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1673345

Change-Id: I09389f60afbcf40532e140ce42e27f8ef9576ff6
2021-04-12 17:00:40 +00:00
Roland Levillain
904ec85b61 Fix typo in documentation of ZygoteCommandBuffer.nativeForkRepeatedly.
Test: none (documentation change)
Change-Id: I3373f33b1d3a292f79129048733f7ecacb5c4907
2021-04-12 13:37:03 +00:00
Jeff DeCew
36dc1778c6 Merge "Use ImageResolver for BigPictureStyle when using BigPicture" into sc-dev am: 7e70261733
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13990325

Change-Id: If64e99258f9507bf743458bded305ff24c1201d3
2021-04-09 14:37:25 +00:00
Jeff DeCew
7e70261733 Merge "Use ImageResolver for BigPictureStyle when using BigPicture" into sc-dev 2021-04-09 14:24:34 +00:00
paulhu
016950a485 Rename FIRST_SDK_INT to DEVICE_INITIAL_SDK_INT
As API review feedback, rename Build#VERSION#FIRST_SDK_INT to
Build#VERSION#DEVICE_INITIAL_SDK_INT. As well as update all usage
in frameworks and tests.

Bug: 184735771
Test: m
Change-Id: I72660959cb4e638a8e80fcf2f4e96ea172969f44
2021-04-09 15:47:36 +08:00
Siim Sammul
00f18654d3 Store the collected binder latency samples in buckets to form a
histogram. Add the ability to generate histograms with varying bucket
counts and sizes.

Bug: 179999191
Test: unit tests

Change-Id: I58d3cbdd9ae43c8da121ec41d994b077e29bb371
Merged-In: I58d3cbdd9ae43c8da121ec41d994b077e29bb371
(cherry picked from commit dcd3dc69a1)
2021-04-09 05:34:37 +00:00
Jeff DeCew
64686e20e4 Use ImageResolver for BigPictureStyle when using BigPicture
Bug: 163595585
Fixes: 183719542
Test: manual visual testing
Change-Id: Id86cd976a0f28978d697dd6f46cc29c4b76fcc8b
2021-04-08 20:04:36 -04:00
Adam Bookatz
db79a4f2b0 ConfirmUserCreationActivity hide non-sys overlays
Bug: 180940063
Test: manual verification
Change-Id: I5f676b8cbb0422b67d1e294e216277fdf22f2a6c
2021-04-08 11:31:35 -07:00
Siim Sammul
0d69b341cb Merge "Add dplotnikov@ and gaillard@ as owners for Binder related files" am: dea9900796 am: 4bb24cce53 am: a1a4e83e95 am: 99d2eef8bd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1663985

Change-Id: Idcaee98e8e290eb156ba6bfec29312e255429f7f
2021-04-08 08:03:04 +00:00
Siim Sammul
99d2eef8bd Merge "Add dplotnikov@ and gaillard@ as owners for Binder related files" am: dea9900796 am: 4bb24cce53 am: a1a4e83e95
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1663985

Change-Id: I5314145f0152294cd247500a95f68c8b21997785
2021-04-08 07:47:30 +00:00
Wilson Wu
1327db14c5 Merge "Add null check for IInputMethodPrivilegedOperations" into sc-dev am: 3d8971e4fa
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14100412

Change-Id: I6f3fe5caa7032a747c139ed7c8ef263823d75d97
2021-04-08 02:39:07 +00:00
Wilson Wu
3d8971e4fa Merge "Add null check for IInputMethodPrivilegedOperations" into sc-dev 2021-04-08 02:03:29 +00:00
Kholoud Mohamed
77488ded3f Merge "Add set/verify lock credentials testAPIs in KeygyardManager" into sc-dev am: 45dc22e11c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13929331

Change-Id: I1834dd888c22571a1b78242ab3cd39333abb5674
2021-04-08 00:52:27 +00:00
Kholoud Mohamed
45dc22e11c Merge "Add set/verify lock credentials testAPIs in KeygyardManager" into sc-dev 2021-04-08 00:38:36 +00:00
Siim Sammul
a1a4e83e95 Merge "Add dplotnikov@ and gaillard@ as owners for Binder related files" am: dea9900796 am: 4bb24cce53
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1663985

Change-Id: Iba4ffa2f74d4fa04889f9e05dbf1e7462cfce4e9
2021-04-07 21:36:06 +00:00
Lucas Dupin
44b3135d1f Merge "Dual tone shade implementation" into sc-dev am: 759d038afb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13973777

Change-Id: I0f0a6a1bcd2585f7ec307c93acb4005e893e2490
2021-04-07 20:09:51 +00:00
Lucas Dupin
759d038afb Merge "Dual tone shade implementation" into sc-dev 2021-04-07 20:07:41 +00:00
Nicholas Ambur
257fffff06 Merge "rm permission from getActiveServiceComponentName" into sc-dev am: 6fb83178e0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14105626

Change-Id: I85f0214ec9ceff0b6ed04826595c58f9e5877947
2021-04-07 20:05:50 +00:00
Nicholas Ambur
6fb83178e0 Merge "rm permission from getActiveServiceComponentName" into sc-dev 2021-04-07 19:13:19 +00:00
Michal Brzezinski
8bec3cf08e Dual tone shade implementation
Splitting behindScrim into two separate scrims: qs and notificatins.
QsScrim role is solely to show dark background behind quick settings.
NotificationsScrim serves as past behindScrim, that is takes fullscreen
when on keyguard and draws notifications background.
Bottom of the quick settings panel determines where qsScrim ends and
notificationsScrim begins.

Fixes: 183953523
Test: atest ScrimControllerTest
Change-Id: I86897f23072281745cef23ef8eed51e06b21818b
2021-04-07 16:01:16 +00:00
Wu Ahan
cd731488a8 Merge "Fix memory leak due to not removing ended or cancelled tasks" into sc-dev am: a5e7d2ff0e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14112445

Change-Id: I0abfae1095fe575f2d868ea45de81f38ee5e34dd
2021-04-07 15:32:08 +00:00
Ahan Wu
eae7d291f9 Fix memory leak due to not removing ended or cancelled tasks
While the tracker session ends abnormaly, we should also remove the task
which is kept by InteractionJankMonitor, or a memory leak happens.

Bug: 184651704
Test: atest FrameworksCoreTests:InteractionJankMonitorTest
Test: atest FrameworksCoreTests:FrameTrackerTest
Change-Id: I56f7759ef39d34cedc795042d3210d9be375cf77
2021-04-07 02:47:04 -08:00
Siim Sammul
756e87e336 Add dplotnikov@ and gaillard@ as owners for Binder related files
Change-Id: Ib3db46b8f0840780bb06090ec46005e5ab392343
2021-04-07 07:08:31 +00:00
Wilson Wu
fa57a2e068 Add null check for IInputMethodPrivilegedOperations
InputMethodManagerService should not initialize null
IInputMethodPrivilegedOperations to InputMethodService.

Add null check when setting the IInputMethodPrivilegedOperations
parameter to improve code readability.

Bug: 183992652
Test: atest CtsInputMethodTestCases
Change-Id: Ie4a8dff268177c5219c7c5495a2de6bc69b0ee25
2021-04-07 12:32:54 +08:00
Nicholas Ambur
ff66bbffac rm permission from getActiveServiceComponentName
remove the ACCESS_VOICE_INTERACTION_SERVICE permission from
VoiceInteractionManagerService.getActiveServiceComponentName

Test: build and verify no stability impact
Bug: 173122149
Change-Id: I9e42b7b6e205ec352b3cfbac51022dd7594d1d0f
2021-04-06 13:14:42 -07:00
TreeHugger Robot
385d38993c Merge "Make note/startOperation return SyncNotedAppOp, add mode" into sc-dev am: 0751e1b15f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14069372

Change-Id: I9236a6abd710e5847f332cab5caa115ae1fa6f33
2021-04-06 18:44:43 +00:00
TreeHugger Robot
0751e1b15f Merge "Make note/startOperation return SyncNotedAppOp, add mode" into sc-dev 2021-04-06 18:34:05 +00:00
Siim Sammul
c31917ddd4 Create BinderLatencyObserver to collect binder call latency stats.
Pushing these as a metric will come in a future change.

Test: unit tests
Bug: 180584913

Change-Id: I8a123f7aed7c0ce416814372f2287b04a8a04ac0
Merged-In: I8a123f7aed7c0ce416814372f2287b04a8a04ac0
(cherry picked from commit 8d0ecde2b8)
2021-04-06 15:32:20 +00:00
kholoud mohamed
60742372cb Add set/verify lock credentials testAPIs in KeygyardManager
Added the following testAPIs that are guarded by
SET_AND_VERIFY_LOCKSCREEN_CREDENTIALS and
ACCESS_KEYGUARD_SECURE_STORAGE permissions:
* setLock
* checkLockCredentials

Also refactored methods out of LockPatternUtils
to LockSettingsService to allow clearing the caller identity.

Test: atest com.android.server.locksettings
Test: atest LockscreenCredentialTest
Test: atest PasswordComplexityTest after replacing usage of adb
commands with the new testAPIs
Bug: 182260585
Change-Id: Idc0432773c92ada9deb3e370526cb2ce219595dc

Change-Id: I28cbe6093a56a231022c61a6821accf01d28cda6
2021-04-06 15:15:36 +01:00
Wu Ahan
c1c41be8c7 Merge "End the trace section while the surface has destroyed" into sc-dev am: 790f33d571
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13981701

Change-Id: I5dc78441b9462c76821eb49c59e5529e4f01ee6c
2021-04-06 13:58:42 +00:00
Wu Ahan
790f33d571 Merge "End the trace section while the surface has destroyed" into sc-dev 2021-04-06 13:36:37 +00:00
Galia Peycheva
4e0eba72cf Merge "Fix stale background blur drawable in DecorView" into sc-dev am: adb4b12d77
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13930319

Change-Id: I26331490deb6cd3df92410ca1badcc326cc9ac84
2021-04-06 10:40:08 +00:00