Commit Graph

477857 Commits

Author SHA1 Message Date
Wei Wang
f5d7e441ce ThermalManagerService: initialize to THROTTLING_NONE explicitly
When there is no HAL connection or HAL malfunctioning, thermal status
will stay in an invalid value, which would be returned when client
register status callback.

This CL will opportunistically assume system is in "NONE" throttling
when in above states such as no HAL connection or HAL malfunctioning.

Bug: 155772239
Test: atest ThermalManagerServiceTest
Test: atest PowerManagerTest
Test: atest thermalmanager-test
Change-Id: I9fceb5ef6f8b9a23983b7b93200f381eaf23a77b
2020-05-21 12:58:51 -07:00
Goven Liu
b74db23313 Revert "[Wi-Fi] Add proto fields for Openroaming network."
This reverts commit d64e9452e4.

Reason for revert:
Those two metrics are added for Openroaming service, but they can not be used finally, so remove them.

Bug: 146669261
Test: No, just remove proto fields.
Change-Id: I601927c443b13a5d2d52e60ad4c910204156a102
2020-05-21 05:51:09 +00:00
TreeHugger Robot
92d678d8ad Merge "Null-check the dragged-out bubble." into rvc-dev 2020-05-21 03:52:31 +00:00
TreeHugger Robot
1b9895eb46 Merge "Remove temp READ_PHONE_STATE fix" into rvc-dev 2020-05-21 03:35:36 +00:00
Hongwei Wang
047a550900 Merge "Ignores entering PiP animation on seamless rotation" into rvc-dev 2020-05-21 03:12:56 +00:00
TreeHugger Robot
8ced9207cc Merge "Add SystemPartitionParseTest to postsubmit" into rvc-dev 2020-05-21 03:12:31 +00:00
Jaewan Kim
c3d57f029b Keep media sessions for stopping user until the stopping is completed am: f281109786
Change-Id: I7bd5edbb0046fa47e0090211c78045a2a67d08a9
2020-05-21 02:55:15 +00:00
Joshua Tsuji
7db91c32aa Null-check the dragged-out bubble.
Test: atest SystemUITests
Fixes: 157163804
Change-Id: Ib47130d61875fc86dfbb723d6c595bc3767ee132
2020-05-20 22:28:59 -04:00
TreeHugger Robot
e63ef53db5 Merge "Prevent conflicting animations from starting." into rvc-dev 2020-05-21 02:03:23 +00:00
TreeHugger Robot
2b24206ecd Merge "Prevent NPE in PulseExpansionHandler" into rvc-dev 2020-05-21 01:57:11 +00:00
Wale Ogunwale
6b937bab20 Merge "Revert "Avoid wm<->am deadlock when checking uri permission"" into rvc-dev 2020-05-21 01:45:08 +00:00
TreeHugger Robot
6b98402100 Merge "Add tests for AtomicFile compatibility behaviors." into rvc-dev 2020-05-21 01:36:58 +00:00
Matt Casey
fe3df2ad27 Merge "Ensure screenshot edit action gets permissions for current user" into rvc-dev 2020-05-21 01:22:15 +00:00
Sudheer Shanka
69a37e8e1a Merge "Update queryBlobsForUser() impl to handle special user ids." into rvc-dev 2020-05-21 01:02:19 +00:00
Hongwei Wang
f4e4bab403 Ignores entering PiP animation on seamless rotation
- Added onFixedRotationStarted/onFixedRotationFinished callback in
  DisplayWindowListener
- onFixedRotationStarted shall be called before onTaskAppeared for PiP
- When onTaskAppeared is received in PipTaskOrganizer, we defer the
  entering PiP transition if fixed rotation is ongoing
- When onFixedRotationFinished is received in PipTaskOrganizer and the
  entering PiP transition is deferred, schedule an immediate
  transition to PiP to make sure all the expected callbacks from
  PipTaskOrganizer are still being sent

Video: http://go/recall/-/aaaaaabFQoRHlzixHdtY/bb8HjJvMZKtpN8YTPKZXmj
Bug: 153861223
Test: manually enter PiP from Play Movies / YT fullscreen
Test: atest ActivityRecordTests \
            RecentsAnimationControllerTest \
            ActivityTaskManagerServiceTests \
            PinnedStackTests
Change-Id: I0dea905d610e2387af56b611be5f93518cc9a153
2020-05-20 17:34:17 -07:00
Josh Tsuji
e7b00f678c Merge "Remove Bubbles from the WM, only after all bubbles finish animating out." into rvc-dev 2020-05-21 00:25:11 +00:00
Wale Ogunwale
f435516c9c Revert "Avoid wm<->am deadlock when checking uri permission"
This reverts commit d638cd6164.

Bug: 157106728
Bug: 115619667
Reason for revert:

Looked into this some with the Camera test case in b/157106728. The wait()/notify strategy isn't going to work here because we have a 3-lock system vs. 2. We have the WM, UGM, and AM locks involved. Both the WM and UGM lock are held in the call to ActivityManagerInternal#checkContentProviderUriPermission and in the subsequence call that ActivityManagerService#checkContentProviderUriPermission AMS calls back into WMS and UGMS for various reasons which requires their locks...wait()/notify strategy allows us to break out of 1 lock, but things get really messed up if we try to use that strategy to break out of 2 locks.

Change-Id: Ic0f30f6c1b24334105a00790488d2758390e85a1
2020-05-21 00:21:08 +00:00
TreeHugger Robot
1de6b7ed73 Merge "Promote frequently sharing apps as per monthly stats fetched from UsageStatsManager, in case PeopleService does not store enough sharing events when users just swicth to Sharesheet ranking in PeopleService.     Bug: 156320324 Test: atest com.android.server.people.prediction.ShareTargetPredictorTest Test: atest com.android.server.people.prediction.SharesheetModelScorerTest Test: atest com.android.server.people.data.UsageStatsQueryHelperTest" into rvc-dev 2020-05-21 00:15:04 +00:00
TreeHugger Robot
d220792d6b Merge "camera2: Add some more docs to getConcurrentCameraIds" into rvc-dev 2020-05-21 00:15:00 +00:00
TreeHugger Robot
2a5f86f78c Merge "MultiFingerMultiTap: reset the expiration clock when fingers go up." into rvc-dev 2020-05-21 00:06:47 +00:00
Chavi Weingarten
5ffe066041 Merge "Clear calling identity when requesting syncInputTransaction" into rvc-dev 2020-05-21 00:01:15 +00:00
Jacky Kao
226aaf6aeb Merge "Bubble's change could notify to A11y framework" into rvc-dev 2020-05-20 23:43:34 +00:00
Nate Myren
02954118d1 Remove temp READ_PHONE_STATE fix
The fix has propagated through droidfood, and is uneeded.

Bug: 156448914
Test: build
Change-Id: I0421217e1590cd17f9efd0dea031bb1aec98cb14
2020-05-20 16:42:39 -07:00
TreeHugger Robot
df2f706d52 Merge "Increases the shortcut limit to 15 per activity" into rvc-dev 2020-05-20 23:42:24 +00:00
Hai Zhang
c45618242b Add tests for AtomicFile compatibility behaviors.
Bug: 151959443
Bug: 157092639
Test: atest android.util.AtomicFileTest
Change-Id: I84e4f7d482e516ee091170a31d6c2e61c65d8812
2020-05-20 16:33:39 -07:00
TreeHugger Robot
5c77ec2e12 Merge "Maintain compatibility by deleting target directory before renaming into it." into rvc-dev 2020-05-20 23:20:42 +00:00
TreeHugger Robot
129b3ffbbb Merge "Revert "Remove usages of Slog.wtf"" into rvc-dev 2020-05-20 23:08:05 +00:00
TreeHugger Robot
ffea5f8f44 Merge "Fixes order of arguments when fetching uninstalled app info" into rvc-dev 2020-05-20 23:08:05 +00:00
TreeHugger Robot
beac47b12e Merge "Properly keep compatibility with openRead() during a write." into rvc-dev 2020-05-20 22:46:01 +00:00
Joshua Tsuji
04ab640572 Prevent conflicting animations from starting.
This will prevent the stack from becoming separated and confused in some situations. The root cause was that the BubbleStackView returned false by default in its touch handler, which allowed the bubble views to grab touch events they shouldn't have and start animations. However, those bubbles trying to start the animations should have been prevented by the active controller logic, but it wasn't due to a missing check. Might as well fix both causes!

Also, cancel the path animator before starting a new one just in case.

Fixes: 155499044
Test: manual
Change-Id: Idbdb68dfe3cccc69ae3709faad8d3b7078b354a9
2020-05-20 18:45:04 -04:00
Jayant Chowdhary
9c8fe18534 camera2: Add some more docs to getConcurrentCameraIds
- specifying the order of camera open and session configuration.
- explaining the use of CONTROL_ZOOM_RATIO with concurrent operation of cameras.

Bug: 151891611

Test: make doc-comment-check-docs

Change-Id: I3ee3f114f7295570aa6af5dbe35bb32db555811b
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2020-05-20 15:43:47 -07:00
Song Hu
bf9cb7e6e3 Promote frequently sharing apps as per monthly stats fetched from UsageStatsManager, in case PeopleService does not store enough sharing events when users just swicth to Sharesheet ranking in PeopleService.
Bug: 156320324
Test: atest com.android.server.people.prediction.ShareTargetPredictorTest
Test: atest com.android.server.people.prediction.SharesheetModelScorerTest
Test: atest com.android.server.people.data.UsageStatsQueryHelperTest

Change-Id: Iae7a3a8195ae4901cd1d9d673fe0cf8a27845488
2020-05-20 15:37:26 -07:00
Joshua Tsuji
4395bbdd29 Remove Bubbles from the WM, only after all bubbles finish animating out.
This fixes the issue where the last bubble doesn't get an exit animation, saves memory, and is less unnecessarily risky when you have no bubbles.

Test: add and remove a lot of bubbles
Bug: 134514227
Change-Id: If3e3164e8a76a0155496b05e5ba8994d8da61c1a
2020-05-20 18:36:02 -04:00
Winson
67b17b47ef Add SystemPartitionParseTest to postsubmit
This ignores failures in the other parsing comparison tests
in favor of a specific test that runs through the system APKS on
the device and verifies that no exceptions are thrown.

Bug: 155935153

Test: manual add a broken APK and verify failure in
    SystemPartitionParseTest

Change-Id: I4a02b3dcd8ab993f27c6fc52bb4048d8f2eab273
2020-05-20 15:25:24 -07:00
TreeHugger Robot
b5e095733c Merge "A11y Scroll Forward/Up Now Unlock or Show Bouncer" into rvc-dev 2020-05-20 22:16:27 +00:00
Chavi Weingarten
98df02ebac Merge "Check embedded windows for IME target" into rvc-dev 2020-05-20 22:05:30 +00:00
Chris Li
3a2d5379e5 Merge "Remove unused TEST_MAPPING file." into rvc-dev 2020-05-20 22:02:53 +00:00
Ameer Armaly
b4eb89e468 MultiFingerMultiTap: reset the expiration clock when fingers go up.
We were resetting the expiration clock every time a finger went down, but were not resetting it when fingers went up. As a result the user had a super narrow window to get all the fingers up before the gesture canceled.
Bug: 156880174
Test: atest GestureManifoldTest
Change-Id: I81dd9cd67729cfae38952d44295c3340c5426028

Change-Id: I1b6323ac413bcbd46fd9292fbb4cf7ebdf2b6246
2020-05-20 14:48:52 -07:00
Mehdi Alizadeh
52e9487184 Merge "Logs error when bitmap icon is used in long-lived shortcuts" into rvc-dev 2020-05-20 21:46:05 +00:00
Sudheer Shanka
7d4bd02097 Update queryBlobsForUser() impl to handle special user ids.
+ Fix blob_store dumpsys to handle "-a" option.

Bug: 157088471
Bug: 157165696

Test: atest --test-mapping apex/blobstore
Test: manual
Change-Id: Ibf3413385bb3227a874027aa542f94084fbcd289
2020-05-20 14:26:40 -07:00
Hai Zhang
30afab690e Properly keep compatibility with openRead() during a write.
Bug: 157092639
Test: atest AppIdleHistoryTests#testFilesCreation
Change-Id: I7d6808139aa41b25715293207b8ad42f9f42ef65
2020-05-20 14:15:12 -07:00
TreeHugger Robot
03026df535 Merge "Remove refs to QSFragment" into rvc-dev 2020-05-20 21:07:18 +00:00
Mehdi Alizadeh
bc62377b95 Merge "In ShortcutService, save data of each package in a separate file" into rvc-dev 2020-05-20 20:51:50 +00:00
TreeHugger Robot
a01520b395 Merge "Create a shim for StatusBarManager click methods" into rvc-dev 2020-05-20 20:51:43 +00:00
Eran Messeri
defcfd0b47 Merge "Unlock the work profile for remote input" into rvc-dev 2020-05-20 20:51:36 +00:00
Patrick Baumann
fb7f5ef921 Revert "Remove usages of Slog.wtf"
This reverts commit 5de8369e20.

Reason for revert: Found source of the bad uids. Adding wtf logs back.

Change-Id: I45434eed78d0b2d5c8df9ff1557ee4bd1e0dd4d0
Test: atest AppEnumerationTests
Bug: 156863453
Bug: 157066842
2020-05-20 20:51:23 +00:00
Mehdi Alizadeh
6184b48e6e Merge "Allows pinned-only shortcuts to get cached" into rvc-dev 2020-05-20 20:48:46 +00:00
Mehdi Alizadeh
6815d60d0a Merge "Fixes the wrong error logs for shortcut ranks (false alarm)" into rvc-dev 2020-05-20 20:48:08 +00:00
Dave Mankoff
21e199517a A11y Scroll Forward/Up Now Unlock or Show Bouncer
Fixes: 154875595
Test: atest SystemUITests && manual
Change-Id: Ic5060fd978d5de8a2a853ba1a32ce377a3c8d996
2020-05-20 16:40:22 -04:00
TreeHugger Robot
315edf11f8 Merge "Show lock message in Global Actions" into rvc-dev 2020-05-20 20:17:44 +00:00