Commit Graph

18371 Commits

Author SHA1 Message Date
Mark Renouf
ca3d495ca6 Merge "Removes unused mAwaitingDelegateResponse" into tm-dev 2022-03-30 10:21:13 +00:00
Matt Casey
cb9d8762c3 Replace USE_DELEGATE_CHOOSER with USE_UNBUNDLED_SHARESHEET
New flag will allow for control via experiment rollout.

Bug: 224544763
Test: Manual test of flag functionality.
Change-Id: I70bc79e12afe4ff629dbd3935c082c51c39a66a7
2022-03-29 23:40:09 +00:00
TreeHugger Robot
44df60c3f9 Merge "Fall back when failing to load size restricted icon" into tm-dev 2022-03-29 23:33:39 +00:00
TreeHugger Robot
93ac91554a Merge "Fix mobile radio battery consumption double counting" into sc-v2-dev am: f709e34b90 am: 9d9976b68f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17206575

Change-Id: I9c301bd9e347fedaa1a04ce8f2e50fda402ece4d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-29 20:54:57 +00:00
TreeHugger Robot
9d9976b68f Merge "Fix mobile radio battery consumption double counting" into sc-v2-dev am: f709e34b90
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17206575

Change-Id: I472e4dc6a9b0ae0f8f76e2b620ec59e53aba0b3a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-29 20:39:43 +00:00
TreeHugger Robot
f709e34b90 Merge "Fix mobile radio battery consumption double counting" into sc-v2-dev 2022-03-29 20:19:40 +00:00
Mark Renouf
b3729dc001 Merge changes from topics "presubmit-am-0adc4a89a1534fb8873a721309ac084a", "presubmit-am-f0e20c2f5d9d42f5b21d0cb6ae2e15cd" into tm-dev
* changes:
  Removes 'mIsHeadlessSpringboardActivity'
  Remove 'startAsCallerImpl' refactoring relic
2022-03-29 19:07:20 +00:00
Tiger Huang
bc1d8093db Send InsetsState to the client via IWindow#resized
In some cases, the InsetsState and the window frame can be changed at
the same time (such as orientation changed). Reporting them separately
might produce incorrect insets.

When the window layout is moved to the client, it uses the configuration
and the InsetsState to compute the window frame. They need to be
reported together as well.

Bug: 161810301
Bug: 160732586
Test: atest ActivityRecordTests WindowStateTests
Test: Add logs to check if we dispatch the correct insets to apps while
      rotating the display.
Change-Id: I5c9f628eda40932def97c5caf968cb62db128e80
2022-03-25 12:39:18 +08:00
Mark Renouf
fe4b81853e Merge "Remove permission token from startActivityAsCaller" into tm-dev 2022-03-25 02:32:08 +00:00
TreeHugger Robot
48709c6565 Merge "Utilize specific info provided by the Modem HAL" into tm-dev 2022-03-24 22:21:56 +00:00
Garfield Tan
e764041142 Fall back when failing to load size restricted icon
Bug: 226295380
Test: Notification still looks good.
Change-Id: Iff1b5ea18253bdc660731382da961f6b99ba33bd
2022-03-24 17:40:36 +00:00
TreeHugger Robot
ce24f91981 Merge "Update the strings to match the Figma mock" into tm-dev 2022-03-24 17:18:35 +00:00
Aleksandr Litovchenko
7bff9fc3d2 Merge "Extract LockPatternView animation parameters." into tm-dev 2022-03-24 15:51:31 +00:00
Dmitri Plotnikov
c10248df56 Merge "Lock BatteryUsageStats snapshot directory" into tm-dev 2022-03-24 15:29:52 +00:00
Aleksandr Litovchenko
e742fd3be3 Extract LockPatternView animation parameters.
Move lock_pattern_line_fade_out_duration and lock_pattern_line_fade_out_delay to resources in order to override it for different devices.

Tests: manually
Bug: 204870856
Bug: 199436708
Change-Id: I758871d2d7ea62bd0ad55f83fc39b6d916cb2bba
(cherry picked from commit 7520086bd06737c00772a4526df637156fb983dd)
2022-03-24 11:18:07 +00:00
TreeHugger Robot
44f3f74955 Merge "Revert "Use new T activity transitions in legacy"" into tm-dev 2022-03-24 07:27:39 +00:00
Michael Wachenschwanz
adfc51a554 Utilize specific info provided by the Modem HAL
ModemActivityInfo can now include Radio Access Technology specific information, if the HAL supports it.
If available, utilize the information.

Bug: 207697945
Test: atest BatteryStatsNoteTest
Change-Id: Ifbd3c8cca7baa35cbccf64883ae5ce87ae39ab74
2022-03-23 18:37:50 -07:00
Pablo Gamito
1250be73c8 Revert "Use new T activity transitions in legacy"
This reverts commit e0ce996ecc.

Reason for revert: Edge extension is likely causing segfaults

Change-Id: Id53e4b7e10e0509742bef4b48263b5c58e06baed
2022-03-23 22:35:26 +00:00
Michael Wachenschwanz
b1b7910ff4 Merge "Ref count isolated uid use for long partial wakelocks" into sc-v2-dev 2022-03-23 21:12:01 +00:00
Michael Wachenschwanz
bd1eff5cef Merge changes from topic "presubmit-am-7620ad0417cd498ea02e09cd0ecc98e9" into sc-v2-dev-plus-aosp
* changes:
  [automerge] Ref count isolated uid use for long partial wakelocks 2p: f548942f3f
  Ref count isolated uid use for long partial wakelocks
2022-03-23 21:12:01 +00:00
Michael Wachenschwanz
7dd534b98a Merge "Ref count isolated uid use for long partial wakelocks" into tm-dev 2022-03-23 20:25:44 +00:00
Lais Andrade
352d8d7abe Merge "Fix PIN lock pattern not respecting user settings" into tm-dev 2022-03-23 18:36:58 +00:00
TreeHugger Robot
d53d398625 Merge changes from topic "presubmit-am-b147b224dae54740a8f3d8017cf416c9-sc-v2-dev" into sc-v2-dev-plus-aosp
* changes:
  [automerge] Fix ServiceConnector failing unbind if not connected. 2p: efc50877d2
  Fix ServiceConnector failing unbind if not connected.
2022-03-23 18:35:38 +00:00
Mark Renouf
871b78954a Removes unused mAwaitingDelegateResponse
These are leftovers from the 'springboard' approach in ChooserActivity
and ResolverActivity.

Change-Id: I11025165dae1e855781b5a59c46e0ffa3d768cfd
2022-03-23 14:55:46 +00:00
Mark Renouf
3782660d73 Removes 'mIsHeadlessSpringboardActivity'
Leftovers from delegate/springboard refactoring path

Change-Id: I5557cae095a112a1e122a1edf7dac07d42feca4e
2022-03-23 14:55:39 +00:00
Mark Renouf
7da1e7d30c Remove 'startAsCallerImpl' refactoring relic
Change-Id: Ica2a2dc2bf1bc758349f02d685738c2c844b566f
2022-03-23 14:55:32 +00:00
Mark Renouf
05a2ef2647 Remove permission token from startActivityAsCaller
The call is protected by the signature permission
START_ACTIVITY_AS_CALLER. This will remove the need for additional data
to be passed from system server.

Bug: 222082547
Bug: 226354782
Test: atest ActivityTaskManagerServiceTests, atest ChooserActivityTest,
      manual testing
Change-Id: I94f34a68e390569ec14dfebb1902a7c30558864f
2022-03-23 14:55:01 +00:00
Rambo Wang
72f706f60a Merge "Introduce CarrierPrivilegesCallback to replace CarrierPrivilegesListener" am: cabb6b9362 am: 592bab637d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2037268

Change-Id: I33770b31f15362225e0190557afbbdda144f742f
2022-03-23 14:26:27 +00:00
Presubmit Automerger Backend
34f0951f96 [automerge] Fix ServiceConnector failing unbind if not connected. 2p: efc50877d2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17321988


Change-Id: If7c0bf7ab6c89e98bdecbc1ef98bf93313fa8176
Merged-In: I6a8c01390130bcec9aff1460004343ca2b207031
2022-03-23 09:33:53 +00:00
Ahaan Ugale
efc50877d2 Fix ServiceConnector failing unbind if not connected.
ServiceConnector does not call unbindService when requested to unbind if
the service isn't currently connected. This causes issues like leaving
zombie Trusted Hotword processes bound forever if the process is stopped
('restarted') immediately after being created (say if audio server
crashes twice in quick succession).

Fix: 223845998
Test: manual - locally comment out code that immediately connects the
 service, then `for i in {1..10}; do adb shell cmd voiceinteraction\
 restart-detection; done` - without fix results in an extra process
Change-Id: I6a8c01390130bcec9aff1460004343ca2b207031
Merged-in: I6a8c01390130bcec9aff1460004343ca2b207031
(cherry picked from commit 52e0dafcb3)
2022-03-23 09:33:37 +00:00
Rambo Wang
aa1e3b0a67 Introduce CarrierPrivilegesCallback to replace CarrierPrivilegesListener
Add new interface in CarrierPrivilegesCallback to notify the registrants
that carrier service for current user has changed.

Reshape the parameters of onCarrierPrivilegesChanged callback with
both Set instead of List/Array.

CarrierPrivilegesListener is deprecated. Once all clients have migrated
to CarrierPrivilegesCallback, it will be throughly cleaned up.

Bug: 216549778
Test: atest CarrierPrivilegesTrackerTest CarrierServiceTest
Test: atest WifiCarrierInfoManagerTest TelephonyRegistryManagerTest
Test: atest TelephonySubscriptionTrackerTest

Change-Id: I18e443d91f1db951f1461511821c0f5f673da3a3
Merged-In: I38d03e3921112c313f3c1d204ed04f6e1756ff39
(cherry picked from commit b66e3e3aa8)
2022-03-22 20:45:05 -07:00
Lais Andrade
9bab88b20a Fix PIN lock pattern not respecting user settings
The LockPatternView had a boolean attribute mEnableHapticFeedback that
held a copy of the user settings for enabling "Touch feedback"
vibrations. This attribute was used together with
HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING deprecated setting to
bypass the user settings in the vibrator service.

This change removes the use of this deprecated flag and lets the
Vibrator service apply the user settings for "Touch feedback" to
vibrations generated for the PIN lock input in LockPatternView.

Fix: 216656312
Test: manual
Change-Id: If9733c059e5059b6e58b6f84d100df2a0abafab6
2022-03-22 22:58:08 +00:00
Jernej Virag
d27d7fe051 Merge changes from topic "revert-17199637-revert-17083643-large-icons-tm-XHQQYXZDHH-KIGUXQGTHZ" into tm-dev
* changes:
  Size restrict right notification icon size
  Downscale large bitmaps in CachingIconView
  Support downscaling of Drawable icons in LocalImageResolver
2022-03-22 20:07:04 +00:00
Issei Suzuki
f51bb0783b Merge "Migrate DEBUG_ANIM logcat message to ProtoLog." into tm-dev 2022-03-22 18:19:19 +00:00
Eric Biggers
3abc52220b Merge "Stop using FDE-related constants from IVold" am: 489ba5ac07 am: 84f05b1b9c am: e1a9ca0ec8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2031025

Change-Id: Ic411eb688afe449212dee247d2ecb39471c4314f
2022-03-22 18:04:27 +00:00
Eric Biggers
e1a9ca0ec8 Merge "Stop using FDE-related constants from IVold" am: 489ba5ac07 am: 84f05b1b9c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2031025

Change-Id: Id7be68ef1c367fb461236a0c14b4dbb8e0ca5bdd
2022-03-22 17:47:04 +00:00
Eric Biggers
489ba5ac07 Merge "Stop using FDE-related constants from IVold" 2022-03-22 17:37:32 +00:00
Pablo Gamito
fa5aefba20 Merge changes from topic "t-activity-backport" into tm-dev
* changes:
  Use new T activity transitions in legacy
  Backport window extension animation support
2022-03-22 15:15:48 +00:00
Calvin Pan
1da7fdde5e Merge changes from topic "app_selection_in_locale_picker" into tm-dev
* changes:
  Add subtitle in System language
  Reuse LocalePickerWithRegion in app language selection
2022-03-22 03:35:28 +00:00
Dmitri Plotnikov
6add0aa96e Lock BatteryUsageStats snapshot directory
From documentation:
"File locks are held on behalf of the entire Java virtual machine.
They are not suitable for controlling access to a file by multiple threads within the same virtual machine."

This means that we should use two locks: one internal to system server,
and another cross-process.

Bug: 216454829
Test: atest FrameworksCoreTests:BatteryStatsTests
Change-Id: I7689ab91a0759f99da700383647f4f8a1fae4362
2022-03-21 17:59:16 -07:00
Michael Wachenschwanz
7589e541d1 Ref count isolated uid use for long partial wakelocks
The isolated uids need to be kept in the map while it is holding a long
partial wakelock.

Bug: 218298973
Test: atest BatteryStatsNoteTest
Change-Id: I86456137e6d6ad47f9974da281defc04d20fb32f
(cherry picked from commit fd48aa6fa6)
Merged-In: I86456137e6d6ad47f9974da281defc04d20fb32f
2022-03-22 00:31:53 +00:00
Michael Wachenschwanz
05dcf05246 Fix mobile radio battery consumption double counting
On ODPM enabled devices, the total mobile radio power consumption was
being used when reporting the idle/suspended power. This means app
mobile radio power consumption was effectively being double counted.

Bug: 209525694
Test: atest MobileRadioPowerCalculatorTest
Change-Id: Ibc1a504014ac10c285b71273ba50493ba237f6a9
Merged-In: Ibc1a504014ac10c285b71273ba50493ba237f6a9
2022-03-21 23:45:31 +00:00
Presubmit Automerger Backend
67266c9682 [automerge] Ref count isolated uid use for long partial wakelocks 2p: f548942f3f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17229945

Bug: 218298973
Change-Id: I1f7c23a58c725917cf27a85a4ec3b02e8a44af19
Merged-In: I86456137e6d6ad47f9974da281defc04d20fb32f
2022-03-21 23:00:19 +00:00
Michael Wachenschwanz
f548942f3f Ref count isolated uid use for long partial wakelocks
The isolated uids need to be kept in the map while it is holding a long
partial wakelock.

Bug: 218298973
Test: atest BatteryStatsNoteTest
Change-Id: I86456137e6d6ad47f9974da281defc04d20fb32f
(cherry picked from commit fd48aa6fa6)
Merged-In: I86456137e6d6ad47f9974da281defc04d20fb32f
2022-03-21 15:48:23 -07:00
Treehugger Robot
c5a6c17fa5 Merge "Add i18n Settings OWNER for system language settings" am: 06da2b3f5c am: 11f453bf93 am: af02ce3a8e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2033224

Change-Id: If9d907174100844d173289f2f2ab19278ce6297f
2022-03-21 21:47:19 +00:00
Treehugger Robot
af02ce3a8e Merge "Add i18n Settings OWNER for system language settings" am: 06da2b3f5c am: 11f453bf93
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2033224

Change-Id: I3ceb4c857eb22b06d6d9b8e097c404e17d94c004
2022-03-21 21:17:34 +00:00
Taran Singh
4cff41a3f2 Merge "Finish handwriting session for recents gesture" into tm-dev 2022-03-21 20:54:31 +00:00
Matt Casey
a127b9c0d3 Merge "Remove "Copied" toast from sharesheet." into tm-dev 2022-03-21 20:01:06 +00:00
Calvin Pan
969826576a Add subtitle in System language
Bug: 223090003
Test: Check the UI in per-app language selection page
Change-Id: I647f678016461b557e9f6d5de459fd2dee789b0d
2022-03-21 23:43:02 +08:00
Jernej Virag
6f2b34baf8 Downscale large bitmaps in CachingIconView
CachingIconView is used to displayed (smallish) icons in Notifications. Those can accidentally be made very large if big resources are used.
This makes CachingIconView use LocalImageResolver to load those images with limited size. This fixes large memory use of notification header icons.

Bug: 210690571
Bug: 218845090

Test: atest CachingIconViewTest
      atest NotificationManagerTest
      Verified with notification test APK on a Pixel

Change-Id: Ia37c1fd31a7720e6ec2fd20d7466d8dcaffa6507
2022-03-21 13:39:08 +00:00