summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-09-13Merge cherrypicks of [15818447, 15818448, 15817598, 15818379, 15818380, ↵android-12.0.0_r5android12-d1-s2-releaseAndroid Build Coastguard Worker
15818381, 15818382, 15818383, 15818384, 15818385, 15818469, 15818035, 15818470, 15818471, 15818472, 15818397, 15818161, 15818386, 15818487, 15818488, 15818162, 15818163, 15818398, 15818399, 15818400, 15818401, 15818402, 15818403, 15818404, 15818405, 15818406, 15818527, 15818256, 15818257, 15818258, 15817906, 15817599, 15817600, 15818547] into sparse-7706357-L05800000951102060 Change-Id: I34b1213de03241ed137afdcb8646b834d67b187e
2021-09-13[DO NOT MERGE] Make sure WiFi and Cell tiles are not created in Provider Modelyinxu
Bug: 199176067 Test: Manual tests, unit tests Change-Id: Ic1b286a31c429b781652dcb24a1351b85f81edeb (cherry picked from commit bc6f74dbc32ca4f382d045f285789d9292d144a4)
2021-09-13The telephonyDisplayInfo is wrong after doing compatibility.SongFerngWang
If one of the callers is do compatibility, then other caller get wrong telephonyDisplayInfo. Bug: 197521539 Test: Manually test at local and test the compatibility part and verify the 5G+ icon. Test: atest com.android.internal.telephony.TelephonyRegistryTest Change-Id: Ic938f7623c802d04edc67678391cadc80c7dd084 (cherry picked from commit 5e9cca3afd5f925e84941b7ebdd110ea8141835e)
2021-09-13Surface: Release references to BlastBufferQueue and SurfaceControl on ↵Vishnu Nair
Surface#destroy SurfaceView clients may hold on to surface references. In S this means they would extend the lifetime of the SurfaceControl resulting in "leaking" buffers until the references are cleared or the app is terminated. Fix this by calling a new destroy function on Surface which will explicitly remove references to the SurfaceControl and BBQ it holds. This is safe because SurfaceView controls the lifecycle of the Surface and knows when the Surface will become invalid. Once invalid, the Surface cannot become valid again. Test: repro steps in bug Bug: 198133921 Change-Id: I5c7e43736f025fc0965eae2f19719ba40df3cb70 Merged-In: I5c7e43736f025fc0965eae2f19719ba40df3cb70 (cherry picked from commit 43b0f37a70b36e0dd3b47352d3b5ecdd594e1551)
2021-09-13Make sure the removeObservers be called correctlyAhan Wu
Handle the surface destroyed case and add a timeout for finish call. Bug: 196171638 Bug: 197555842 Test: adb shell dumpsys SurfaceFlinger Test: check the offscreen layers Test: see 198714745#comment6 Change-Id: Ic6d2521d788c50e10b81b556849194a97f240376 Merged-In: Iec1eb82d1a4756a7b85c8fbdd05f4132a74c613c (cherry picked from commit 59e29276f9a7c1f79fda46c60a49589fc0af7ee3)
2021-09-13RESTRICT AUTOMERGE Update UDFPS enroll progress when help receivedCurtis Belmonte
Fixes a bug where the completion animation is sometimes played near the end of enrollment if ACQUIRED_GOOD is followed by a help message. Test: Manual Bug: 198989936 Bug: 199192982 Change-Id: I0fcf6d2cfbf33fb9b90d3ccf1fcbd7734a55edbd Merged-In: Ifda20133f1ee90c9e1612e9066c19efbb6ffc9cd Merged-In: Ic12b85bd6f8f1d4068952eb83bcc8a1df21f2e8e (cherry picked from commit dc583a9024cf980e55edcbee283ba0716b53fba9)
2021-09-13RESTRICT AUTOMERGE Show tip/edge hints for UDFPS enrollmentCurtis Belmonte
Shows visual hints during the tip and edge stages of UDFPS enrollment. Test: Manual Bug: 198858684 Change-Id: Ib2e08fcb7c524916a874932d1b9d558b19028ff0 Merged-In: Ifda20133f1ee90c9e1612e9066c19efbb6ffc9cd Merged-In: Ic12b85bd6f8f1d4068952eb83bcc8a1df21f2e8e (cherry picked from commit 1d4c7dc05bd43e6573274ca8290293ef85d8da2d)
2021-09-13RESTRICT AUTOMERGE Support UDFPS multi-stage enrollmentCurtis Belmonte
Adds support for showing multiple stages during UDFPS enrollment: 1. Initial touch & center enroll 2. Guided enroll (or continued center enroll for a11y) 3. Fingertip enroll 4. Edge enroll Also mitigates an issue where the completion animation sometimes runs before enrollment is complete. This is accomplished by rolling back the completion animation when we detect this case. Test: Manual Bug: 198858684 Bug: 198989936 Change-Id: I425e06e2409df2c6c3dd699ad8abd26c536753e2 Merged-In: Ifda20133f1ee90c9e1612e9066c19efbb6ffc9cd Merged-In: Ic12b85bd6f8f1d4068952eb83bcc8a1df21f2e8e (cherry picked from commit aee9eaa9deb5109fda8cdd5798b44a03c5430689)
2021-09-03Merge cherrypicks of [15750529, 15750548, 15750351, 15750587, 15750549, ↵Android Build Coastguard Worker
15750550, 15750473, 15750474, 15750475, 15741570, 15741571, 15741572, 15741573, 15741574, 15741575] into sc-d1-release Change-Id: Ia604adf081b3e313ff27c6f4e119718e2196a343
2021-09-03Udfps enrollment now focuses on fingerprint regionJoshua Mccloskey
Test: Verified manually that the region that accesibility focuses on is around the fingerprint sensor. Test: Verified in landscape/reverse landscape/portrait & with/without accessibility enabled. Bug: 195614793 Change-Id: I2be5e5bf657254e843dc863afa56318708ec3411 (cherry picked from commit 2b229d14711971ce6d97e796b66c834ecd427146)
2021-09-01Merge cherrypicks of [15732630, 15732754, 15732755, 15732756, 15732757, ↵Android Build Coastguard Worker
15733137, 15733138, 15732858, 15733570, 15733571, 15733572, 15733573, 15733574, 15732859, 15733575, 15733576, 15733685, 15733686] into sc-d1-release Change-Id: Id632c9017517e2f36dd6be234269658f83f095a3
2021-09-01Update unpaused udfps alpha when showing udfps bouncerBeverly
This will make sure the alpha is updated correctly before showing the udfps affordance. This CL also updates the dumpsys to be more accurate of the actual alpha value being used. Test: manual, atest UdfpsKeyguardViewControllerTest Fixes: 197160246 Merged-In: I86a73dacfd2fc4f5b910e1e1e4f6535e91d00da3 Change-Id: I86a73dacfd2fc4f5b910e1e1e4f6535e91d00da3 (cherry picked from commit a73d30e2974c0ab481214bad43e7cc488615d7b7)
2021-09-01Use ArrayMap instead of SparseArray to manage the ProviderKeyJing Ji
As the ArrayMap handles the hash code collision properly. Bug: 197647956 Test: atest CtsContentTestCases:android.content.cts Change-Id: Ibb57a22c08b0fa5462505d586d5fb0aaf908c80f (cherry picked from commit 119dd01b497b5e6e25009785ec36c9877675deef)
2021-09-01Fix IME flickering when swiping out to homeMing-Shin Lu
When switching tasks between different users (i.e. primary and work-profile user), if the source task has shown IME, when going to the target task, IMMS will first unbind the current input method of the current user and hide the soft-keyboard and the window token by HIDE_SWITCH_USER reason, and then re-bind the input method of the target user when focused to the target task. If the hide soft-keyboard somehow being delayed and comes after the target task has been focused and be the next IME target, user will see the window removal transition on top of this IME target window. (i.e. launching Google chat apps with IME shown from work-profile and then swiping out to home screen) Even if we disable window animation in Activity#onDestory in IME client side, the next relayout can come before that, so window exit transition still happens. To fix this timing issue, add animateExit parameter in WindowManagerInternal#removeToken for IMMS not to perform window exit animation and to hide the window surface permanentaly, so we can avoid the window surface becoming visible again unexpectedly during relayout. Fix: 197494607 Fix: 195449326 Test: atest WindowTokenTests#\ testRemoveWindowToken_noAnimateExitWhenSet Test: manual as issue steps: 1. Enter Google chat 2. Start typing a message 3. Swipe home 4. Expect no IME surface flicker happens Merged-In: I044257b5ac0d92dd06dae8eba996ea0ac6f1e659 Change-Id: I044257b5ac0d92dd06dae8eba996ea0ac6f1e659 (cherry picked from commit 0b44f104b3893877960f7a9a41927911469ae563)
2021-09-01Only update the display when brightness and state are valid.Michael Wright
If either are invalid then we're in an indeterminant state and need to wait until that's resolved. This should only happens at boot and then is immediately corrected when we set our initial desired state. By not checking the validity of the to-be-applied state, we're actually turning the display to our assumed state briefly (i.e. OFF) even though we don't know what state we actually want yet. Fixes: 196566901 Fixes: 196274559 Fixes: 195071558 Test: Reboot device, no flicker in boot animation Change-Id: Ie5a4c186e3af31eb8810f5c7014a4e2cc7cdbf91 (cherry picked from commit a00cda677956e0553a6de4df8f25ebc9b2b3039e)
2021-08-30Merge cherrypicks of [15712549, 15712550, 15712551, 15712641, 15712642, ↵android-12.0.0_r4android12-d1-s1-releaseAndroid Build Coastguard Worker
15712643, 15710166, 15711786, 15711787, 15711788, 15711789, 15712646, 15712631, 15712552, 15712632, 15712633, 15712634, 15712559, 15712560, 15712561] into sc-d1-release Change-Id: I2850a9e1a3d8bd3c15a5b3cb1809017aa9f1f0da
2021-08-30[RESTRICT AUTOMERGE] Workaround to dump error log instead of exceptionChilun
This is a short-term workaround to dump error log instead of throwing the exception to unblock the test. Bug: 197484331 Test: build pass Change-Id: I2ece3b9d85edc1ae43038e6f69b35f59b160a3dd (cherry picked from commit f8fc1326f762012e87f501fb0aeff3adc4c9a9d5)
2021-08-30notification stack scroller doesn't need a11y focusBeverly
Only its contents need to get focus. This was causing the empty space on the lock screen to get a11y focus with the description "no label" Test: manual (large clock - tap in empty space, no focus is given) Fixes: 195614563 Change-Id: If8b8d069ef111a8df1bc659e25dd5c01a79528a2 (cherry picked from commit 755fdb467ac8d92525cef69195c6964e153495d2)
2021-08-30Fix issue when adding existing connections via remote connection services.Tyler Gunn
When an existing connection is added to represent an IMS conference participant, it is added with an associated parent conference specified. This was NOT passed along to the connection manager via the RemoteConnectionService API since there is no equivalent API present for that operation. To work around this, we stash the parent conference's ID into the connection extras. We will use that later so that Telecom can know which conference is the parent of this call. Also, removing restriction in RemoteConnectionService which would ignore conferences with no children. This assumption was incorrect for VOLTE conferences since they will start with no children. As a consequence we would ALWAYS skip adding IMS conferences to the connection manager, which would mean that it had no way of knowing about the conference that the existing connections are associated with. Test: Manual test with connection manager APIS on live network; make conference and verify that the correct objects are being created wrapped by the connection manager. Bug: 188420526 Change-Id: Ie58afed7a3b7eeaa7e329e80479d273e4c50ec82 Change-Id: I4250f9459c7a1b82936583a10e93d049fdfb4c5d (cherry picked from commit fdc4bff3198fcaedfa29f45d92525c0351acd583)
2021-08-30RESTRICT AUTOMERGE Disable the Trusted Hotword requirementAhaan Ugale
The requirement to use a sandboxed HotwordDetectionService to avoid incurring the mic indicator will be added back in a future release. With this change, SoundTrigger events and hotword-source audio do not incur the mid indicator for any process. This change adds back the permissions logic from I3275647d0f9a6e3ce8b97a556f56723b49170c8e, adjusted to account for the changes from I4fc3b3e8defed59a900fd156273e9e695a322b0c (preflight permission checks were made to accept soft denials, so simply reusing enforcePermissionForPreflight does not work anymore - it would pop up a dialog if the mic sensor is muted). We preserve the behavior of showing the indicator when the detected event is delivered from the Trusted Hotword process (no false-positives here, so we can accurately show it). Fix: 197034852 Test: manual - dsp and non-dsp; true and false positives; mute mic sensor - events aren't delivered and no dialog is shown, hotword still works after unmuting; mute mic and restart, unmute after starting reco; Trusted and non-Trusted hotwording Test: atest CameraMicIndicatorsPermissionTest Test: atest HotwordDetectionServiceBasicTest Test: atest android.cts.statsdatom.appops.AppOpsTests#testAppOps Change-Id: I68f2f37b5ce835e7fd8649b382eaee9fc299ec79 (cherry picked from commit 0e7131f3090fc0b7b8c040d09de4d5d4d62c0d19)
2021-08-25Merge cherrypicks of [15671342, 15671402, 15670951, 15671362, 15671363, ↵Android Build Coastguard Worker
15671364, 15671365, 15671366, 15671343, 15671344, 15671345, 15671346, 15671347, 15671367, 15671368, 15671369, 15671370] into sc-d1-release Change-Id: I2832b48a48fbe423e57202e03f28ce5250eb1e30
2021-08-25Fix udfps flicker on camera launch + exitBeverly
Test: atest UdfpsKeyguardViewControllerTest Test: manually trigger double-tap power button for camera and then dismiss the camera Bug: 197160246 Merged-In: Id3aa20662df8cdd6676141f5f70e5eae0cec6215 Change-Id: Id3aa20662df8cdd6676141f5f70e5eae0cec6215 (cherry picked from commit e8f14f48132385f831055efa01dc8178f2482e94)
2021-08-25On keyguard unoccluding, set notif scrim alpha to KEYGUARD_SCRIM_ALPHABeverly
We still want the keyguard notification scrim after the unoccluding transition. Test: manual, atest ScrimControllerTest Bug: 197160246 Change-Id: I210ba3491eb98c30bec121c6119f6dfb1d6aeba7 (cherry picked from commit 7ec73696bde41235a76844c97a5e115c434110be)
2021-08-25Fix flicker when unlocking the screen.Selim Cinek
Fixes: 197113783 Test: atest ScrimControllerTest Test: fp from: shade locked, aod, lock screen Test: switch between light and dark themes, look at scrim anim Change-Id: Iacd46b99c5a86c8f7a7706b91b0b78a3beb4c414 Merged-In: Iacd46b99c5a86c8f7a7706b91b0b78a3beb4c414 (cherry picked from commit c2dda240a72d254df893de857f1d2a76e9940942)
2021-08-25Notification playback: pause on releaseJean-Michel Trivi
When releasing a MediaPlayer outside of a playback completion (back to back notifications), pause and wait 100ms before releasing the player. Bug: 193832902 Test: create back-to-back notifications, check for glitch Change-Id: Ib8baba4bf2b41e75b526e8490b6c2f31c85c193c (cherry picked from commit c69743ea169f8e0c87ecb48d6d9e81a1286605ee)
2021-08-23Merge cherrypicks of [15655787, 15655957, 15655958, 15655667, 15653543, ↵Android Build Coastguard Worker
15655905, 15655932, 15655788, 15654749, 15655933, 15655934, 15655935, 15655959, 15655960, 15655961, 15655962, 15655963, 15656056, 15655906, 15655907, 15655789] into sc-d1-release Change-Id: I6f18d59c9376b79a6d7e32b87c367067a3001cac
2021-08-23Fixes two bright flashes of the notification scrimSelim Cinek
We were previously going to UNLOCKED state if if there was no camera preview leading to a bright flash in light mode. we now only do this when the whole screen is obscured anyway by the camera preview. This also fixes another scrim issue where the unocclusion would flash the notification scrim, because it's expanding, which usually shows the bouncer with a bright background during the expansion. Test: atest SystemUITests Fixes: 197160246 Merged-In: I418e878698c2606856b93faf774cd87830773815 Change-Id: I418e878698c2606856b93faf774cd87830773815 (cherry picked from commit ee48cd0962191e6304a11937e9a80151792bcdfb)
2021-08-20Merge cherrypicks of [15636132, 15634622, 15636419, 15634623, 15635081, ↵Android Build Coastguard Worker
15636346, 15636347, 15635821, 15635822, 15635823, 15635824, 15636496, 15636421, 15635984, 15636005, 15636133, 15635225, 15635189, 15636250, 15636380, 15636422, 15636348, 15636349, 15636350, 15632848, 15636382, 15636383, 15636266, 15636351, 15636423, 15636352, 15635986, 15636220, 15636252] into sc-d1-release Change-Id: I47bcf050a97320291050dbefbeefee426e76ffac
2021-08-20Use an exact alarm for location timeout.Kweku Adams
Use an exact alarm for the location timeout to avoid keeping the GPS active for too long. Bug: 194385761 Test: atest DeviceIdleTest Test: atest FrameworksMockingServicesTests:DeviceIdleControllerTest Change-Id: I52b7ec6d993705ee605e3780a29a484c0d48e633 (cherry picked from commit a7cb583f3a7b13b06e09c4377e0e01145f7e0464)
2021-08-20New blue baseline colorsLucas Dupin
More neutral baseline colors, created from #00BFFF Test: manual Test: atest SystemPalette Fixes: 197143813 Change-Id: I4dcb62962dfb6f674f63bd99cac7582cec72e888 (cherry picked from commit 0140709a2ef16976fb88af3e0c3edef9884107c1)
2021-08-20WaitForNegativeProximity stopped with power button.Santos Cordon
If the device is in a state where it is waiting for negative proximity event to turn the screen back on (as with phone calls), this CL makes it so that power button will also turn the screen back on, even if proximity is still positive. Test: make phone call, cover prox, end call. Previously power button had no effect in this state, now it turns the screen back on. Bug: 190459207 Change-Id: I3ce33fe81e5ee0c0652517a8ce46632519ba73c6 (cherry picked from commit 325cf315e64e7698bee012737b64b3fc53473d23)
2021-08-20Check for forceVisible when updating from a new status eventEvan Laird
In the case where we get a status event update that doesn't trigger a new scheduled event, we also need to check to see if the forceVisible bit flipped, otherwise we will fail to show the persistent dot. Bug: 197025130 Test: manual Change-Id: I261bce40e0a4525e7d1302a983c5fb4622ddc6e2 (cherry picked from commit cc30c17347308af647f413294aaf2dc9355abe8c)
2021-08-19Merge cherrypicks of [15619363, 15619364, 15619365, 15619399, 15619400, ↵Android Build Coastguard Worker
15619401, 15619366, 15619367, 15619368, 15619369, 15619424, 15619425, 15619426, 15619427, 15619428, 15619402, 15619403, 15619404, 15619370, 15619371, 15619372, 15619373, 15618427, 15619429, 15619405, 15619406, 15619407, 15619408, 15619374, 15619375, 15619409] into sc-d1-release Change-Id: I3f325119268052e46c64712ef8ed6b17d4c884f6
2021-08-19Removed strong zoom as shade starts to be pulledLucas Dupin
Removed steep animation curve when the shade is being pulled, such as it's not closer to what exists in other system areas, like all apps drawer and -1. It was necessary to convert ints to floats, given that conversion was causing precision loss, making the wallpaper zoom stutter. Test: pull down drawer over app or launcher Test: launch apps from QS Test: change device brightness from QS Test: atest NotificationShadeDepthControllerTest Fixes: 195667456 Change-Id: Ibe778fbe3811434dd5123a471eec0d21db1fd09a (cherry picked from commit 0d0e40497896fde734c28bf941fa0937164cd99a) (cherry picked from commit 73477ded8ce859ddfa2186039b91a51f69ac5ce4)
2021-08-19Bug Fix: fix NullPointerException while scrolling message appsJoanne Chung
The issue will occur when the view is removed from the hierarchy by the time the translation response returns. Do a null check to make sure the view still exists. Bug: 196933332 Test: atest CtsTranslationTestCases Tese: manual. not see the crash when scrolling the apps. Change-Id: Ifee933a802385750d431800ef50f6f2c306ccc0f (cherry picked from commit 018e3d97d0d5b704c7fbaf6477c35e9b9d93b29d)
2021-08-19Accessibility for privacy status animationsEvan Laird
This CL adds contentDescriptions to the privacy event chip and the ongoing privacy dot views. This is a partial fix which allows talkback for the ongoing privacy chip, and allows talkback scrolling to the privacy dot. However, due to the fact that the dot lives in a different window, the privacy dot shows up in the wrong part of the accesibility tree and still needs to be virtually placed in the status bar. Bug: 187197696 Test: manual Change-Id: I6210e18c75a1aab61cbcf619a9a31c459fffe544 (cherry picked from commit c14dd63160ee9fb303e3cd92ff63825a1303362a)
2021-08-19Fix lint error for those module used in mainline moduleEdgar Wang
Bug: 187861723 Test: rebuild Change-Id: I3a8c9e00f164d0f0dd381b188ecfd0c4a758a277 Merged-In: I3a8c9e00f164d0f0dd381b188ecfd0c4a758a277 (cherry picked from commit d56251bae4a305f5668adce8bfbfa1b31b8dc5e3)
2021-08-18Merge cherrypicks of [15605627, 15607206, 15607301, 15607207, 15606407, ↵Android Build Coastguard Worker
15607147, 15605835] into sc-d1-release Change-Id: I03d6b560c785d72c487821ced689a0ec7b447397
2021-08-18Update icon for BiometricPrompt fingerprint animationsCurtis Belmonte
Use the new fingerprint icon for the fingerprint -> error and error -> fingerprint animations shown on BiometricPrompt. Test: Manual: 1. Enroll a fingerprint 2. Trigger BiometricPrompt (e.g. Internet > Settings > Share) 3. Try authenticating with an unenrolled fingerprint 4. Verify the updated animations are shown Fixes: 196453178 Change-Id: Ief3cf752d12897955886e0787701774bd6a0403e (cherry picked from commit ddf464bc3239e10cf5edd7c166f71a4c71f69ea0)
2021-08-17Snap for 7647318 from b8787c6f80cb01837e644f90c5df0126a777d9f3 to sc-d1-releaseAndroid Build Coastguard Worker
Change-Id: If23c50aff9139bad264428a410dec7b71933f5ea
2021-08-16Merge "Revert "Use StorageManager#isUserKeyUnlocked to determine CE storage ↵Winson Chiu
in PMS"" into sc-dev
2021-08-16Merge "Use layout parameters to determine lock icon location" into sc-devBeverly Tai
2021-08-16Merge "DO NOT MERGE: Register NetworkController to DumpManager" into sc-devNeha Jain
2021-08-16Revert "Use StorageManager#isUserKeyUnlocked to determine CE storage in PMS"Winson Chiu
This reverts commit 76e6f9d221567f5a3b3726e7a67d3551198356f3. Reason for revert: b/196030595 Bug: 196030595 Change-Id: Idf42eee3277ceace275aad3e11c7ee692f1171a6
2021-08-16Merge "Remove Webview Overlays on destroy" into sc-devHuihong Luo
2021-08-16Merge "Preserve certain "Nearby devices" implicit grants." into sc-devJeff Sharkey
2021-08-16Merge "Guard against null info when applying widget RROs" into sc-devRyan Mitchell
2021-08-16DO NOT MERGE: Register NetworkController to DumpManagerEvan Laird
It seems that enough Dependency.get() calls were removed for NetworkController that the dumpsys stopped including NetworkController in it. This CL manually registers NetworkController so we can have those logs back. Test: `adb shell dumpsys activity service com.android.systemui/.SystemUIService | grep NetworkController` Fixes: 196486687 Change-Id: Id8865dd2159a6e3d85ebe80a3d0c4e05d0c16491
2021-08-16Use layout parameters to determine lock icon locationBeverly
So we don't rely on the coordinates coming from centering the view (using gravity). Test: manual Fixes: 196280198 Change-Id: Iee7a7e5732d27a782d51e39e4d52b3601814bec3
2021-08-16Merge "Don't create one-handed-background-panel after rotation" into sc-devSelim Cinek