Commit Graph

640958 Commits

Author SHA1 Message Date
Bill Yi
c2c5a06b0b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Id96198a57b8c58b4788b3dcf19e5f9fd594768aa
2021-05-04 08:03:09 +00:00
Svet Ganov
4bf102ae26 Prepare AttributionSource to expose to native
Separate the internal state of AttributionSource from the
class to make it a simple AIDL we can translate automatically
to native - keeping Java and native parts in sync. This
would allow writing a thin native lib for checking attribution
source permissions which would be used to teach camera and
audio about attributions.

Deinfe an AIDL interface for passing around an attribution
source and opr performing permission checker oprations allowing
native and Java permission checks on attribution chains to be
handled. The Java side permission checker functions are in a dedicated
permisison checker service on top of which sits the PermissionChecker.
We expose similar PermissionChecker native APIs sitting on top
of the same remote interface. The nice thing is that we have
native and Java permisison checkers in sync sharing remoting
code and being close in shape.

For now the PermissionChecker in Java is divorced from the
PermissionManager but in T we will consider how to unify them,
either by an extension object on the PermmissionManager or
APIs on the PermissionManager, or another approach, and then
migrate clients off the PermissionChecker APIs.

Sync app ops were not tracked across multiple binder calls which
prevents moving the permission checks in the system server as
this adds one more hop. Now sync ops are propagated backed the
call stack and only the ops for the package are dispatched to
it and the rest are propagated back to the caller, recursively.

bug: 158792096

Test: atest CtsPermission5TestCases
      atest CtsAppOps2TestCases
      atest CtsPermissionTestCases
      atest CtsPermission2TestCases
      atest CtsPermission3TestCases
      atest CtsPermission4TestCases
      atest CtsPermission5TestCases

Change-Id: Ia5cbd2eb20a2da172a5960afdddd7e467f4bcb0d
2021-05-04 07:42:45 +00:00
lucychang
de719fd8cf Clarify javadoc for ACTION_LONG_CLICK
Clarify in javadoc that ACTION_LONG_CLICK does not include coordinate
information.

Bug: 179692809
Test: manual test
Change-Id: I6a4edda48e140f9ba444fdef67feca4d3ed3d146
2021-05-04 15:26:37 +08:00
Jing Ji
175d114eda Use ActivityManagerService global lock in dumpHeap
Bug: 187013484
Test: adb shell am dumpheap
Change-Id: I1d3d8016f228c1ee9aa82edee7550ba3e50843ae
2021-05-03 23:48:41 -07:00
Lajos Molnar
16ceab17a0 media: propagate profiles to EncoderProfiles
Bug: 171673898
Test: atest CamcorderProfileTest
Change-Id: I486762863cd29239b44846b54b146458426b643b
2021-05-03 23:27:42 -07:00
Lajos Molnar
973b2e89bd media: pass full EncoderProfiles from XML
Get multiple audio/video codec profiles from MediaProfiles object
instead of just wrapping the old CamcorderProfiles objects.

Bug: 171673898
Test: atest CamcorderProfileTest
Change-Id: If56ac6c2a89992361f0491d8175af1f89dffd3d0
2021-05-03 23:27:42 -07:00
Riddle Hsu
eee1089cb5 Merge "Avoid intermediate orientation change" into sc-dev 2021-05-04 06:26:11 +00:00
Ahaan Ugale
e19085a0cd Fix UiTranslationStateCallback crash due to null locales.
The locales aren't available on a RESUMED event; now they're stored on a
STARTED event. The crash happens because the default Callback impl
converts the Locale to a string to support a deprecated method.

Fix: 186392998
Test: manual - install test apk which triggers the crash. no crash with
 this change.
Change-Id: Iaceca8d29f4c2b0d692c8f6780b0ab963e4e2243
2021-05-04 05:35:26 +00:00
Bill Yi
7a7ded76ce Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I20f112233e6e38ca906c8cc7c8947a1ff958d1b9
2021-05-04 05:32:52 +00:00
SongFerng Wang
19a0cc7574 Merge "Add CAPABILITY_PHYSICAL_CHANNEL_CONFIG_1_6_SUPPORTED" into sc-dev 2021-05-04 05:17:00 +00:00
Songchun Fan
30253adb74 Merge "[IncrementalService] add last read error in dumpsys" into sc-dev 2021-05-04 04:56:04 +00:00
Nader Jawad
d8f57c7cf3 Merge changes from topic "fling_after_pull" into sc-dev
* changes:
  Allow EdgeEffect to fling during pull
  Remove edge effect type from the API.
2021-05-04 04:41:04 +00:00
Grace Jia
0f2aea7903 Merge "Provide all active subscriptions when register default app providers." am: 9ef59ac901 am: 825f59adfe am: 1c653b4768
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1694533

Change-Id: Iebde9c030b4e9d4032c03eafd5cad6c169c0993c
2021-05-04 04:31:20 +00:00
Dmitri Plotnikov
1d211e046e Merge "Use battery capacity estimates provided by Health HAL" into sc-dev 2021-05-04 04:18:36 +00:00
Grace Jia
1c653b4768 Merge "Provide all active subscriptions when register default app providers." am: 9ef59ac901 am: 825f59adfe
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1694533

Change-Id: I2bf871f8c72c12acca809101665545cb16f205b2
2021-05-04 04:13:34 +00:00
Louis Chang
3100c1e4f4 Merge "Do not relaunch bg activities when application info changes" into sc-dev 2021-05-04 04:06:48 +00:00
Grace Jia
825f59adfe Merge "Provide all active subscriptions when register default app providers." am: 9ef59ac901
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1694533

Change-Id: I68ab66a3d1ce51e38f980188671a1af0a3f16fc9
2021-05-04 03:42:10 +00:00
Jieru Shi
9fb45cc8bb Merge "Add impression logging for media recommendation card" into sc-dev 2021-05-04 03:34:55 +00:00
Grace Jia
9ef59ac901 Merge "Provide all active subscriptions when register default app providers." 2021-05-04 03:24:31 +00:00
Beth Thibodeau
56f9faeca4 Allow test to run on lockscreen
Test failed when on lockscreen which could be caused by other tests not
cleaning up properly or unrelated failures, so, add a flag to allow the
test activity to display on lockscreen and ensure power menu will close
afterwards (home key does not work on lockscreen)

Not totally sure this will solve the flakes (although it passes locally
when running with --rerun-until-failure), so also annotating for now

Bug: 176891566
Test: atest; verified passes if run when device locked
Change-Id: Ia4143d145c991edda481519be2d32afcab92dfd5
2021-05-03 22:37:15 -04:00
Lyn Han
f84a7285b7 Remove shade peek
Fixes: 186877166
Test: tap status bar, swipe down - no shade peek
Change-Id: Iecf085f085e0d3e08c23ea3a49f4940c7a2f3af9
2021-05-03 21:23:19 -05:00
JW Wang
15157ecddc Uninstall test apps in-between tests
Don't leave an unclean state to the next test.

Bug: 187123877
Test: atest MultiUserRollbackTest#testMultipleUsers --rerun-until-failure 2
Change-Id: I6c680ef81131c8023013630219124f609c9d5bf7
2021-05-04 10:05:04 +08:00
Dmitri Plotnikov
daa86f4f6a Use battery capacity estimates provided by Health HAL
Bug: 186807039
Test: atest FrameworksCoreTests:com.android.internal.os.BatteryChargeCalculatorTest
Change-Id: I4eb1606843ca1f2f2c0589e0abe6408f6be149c5
2021-05-03 18:50:32 -07:00
Dmitri Plotnikov
acc4e1454e Merge "Remove SystemBatteryConsumer" into sc-dev 2021-05-04 01:47:34 +00:00
Chris Li
314e0d14c4 Merge "Determine whether to support activities in multi window (4/n)" into sc-dev 2021-05-04 01:32:36 +00:00
Jieru Shi
47fa996fb2 Add impression logging for media recommendation card
Working sheet to figure out where to log impression and test scenarios https://docs.google.com/spreadsheets/d/1XZbRaS6vCWfSDwZ9prxiv5RFzdSg3a86C0zB-uSgJ-M/edit?resourcekey=0--PdUHvg7ZJ2NgbSkLs3abQ#gid=0

Bug: 181364757
Test: will append statsd_drive logs
Change-Id: I650d7c960b6e26efb39a32e5eacef01339e351a4
2021-05-03 18:28:08 -07:00
Jackal Guo
e3e92e26c5 Merge "Migrate the usage of sCompatibilityModeEnabled" into sc-dev 2021-05-04 01:18:58 +00:00
Nader Jawad
197743ff9c Update hole punch logic in HWUI
--Updated HWUI holepunch logic for SurfaceView to
also apply the stretch to the hole punch
--Updated RenderNode callbacks to also include
an offset from the ancestor RenderNode that also
has a stretch configured on it
--Added new test activity to verify hole punch
logic

Bug: 179047472
Test: manual
Change-Id: Ibbaf8248a31839ba9dc352ecb9fef54e1276918e
2021-05-03 18:08:47 -07:00
Cecilia Hong
8ea28f9ce9 Merge "[BugFix] Fix the media reco expanded layout when there is less than 6 items." into sc-dev 2021-05-04 01:08:11 +00:00
Cecilia Hong
a0eac6bb92 Merge "Tap a media reco from lock screen: - Open the media activity directly in background to play; - Request to unlock the phone to open the media activity in foreground." into sc-dev 2021-05-04 00:54:23 +00:00
Hui Wang
0f7df5baf9 Update the format of RCS provisioning config XML
Bug: 184275686
Test: atest FrameworksTelephonyTests:com.telephony.ims.RcsConfigTest
Test: atest TeleServiceTests:com.android.phone.RcsProvisioningMonitorTest
Test: atest CtsTelephonyTestCases:android.telephony.ims.cts.ImsServiceTest
Merged-In: I7df3c660326c6bee3db4a4d3a032ce8f1941b15b
Change-Id: I7df3c660326c6bee3db4a4d3a032ce8f1941b15b
2021-05-04 00:42:20 +00:00
Adam He
7fa1b19c86 Remove logging of translation requests/responses/chat related views.
Bug: 176208267
Test: manual verification
Change-Id: Id76ac895c263a32506df6a6dc6a09495904e20cb
2021-05-03 17:29:10 -07:00
Songchun Fan
7a76d7f713 Merge "[IncrementalService] use sysfs_name in mount options and dumpsys" into sc-dev 2021-05-04 00:14:40 +00:00
Daniel Chapin
eed65ac6f5 Merge "Revert "Fix VIP conversations alerting incorrectly."" into sc-dev 2021-05-03 23:39:56 +00:00
Grace Jia
9eef1ea522 Provide all active subscriptions when register default app providers.
Telecom was using old form SimCallManager getting method which was not
MSIM aware. User may found they don't have necessary permissions to call
if they have both eSIM and pSIM activated. Provide all SimCallManager
for active subscriptions to PermissionManager so that all of them can
get proper permissions.

Bug: 172880421
Test: Manually test call function on MSIM device
Change-Id: I87b26bdb9e99274a8adaa64c72cfac0a61f946bd
2021-05-03 23:30:46 +00:00
Ryan Mitchell
a2b4fcde92 Fix uninitialized macro reference member
Reference::allow_raw was left uninitialized.

Bug: 175616308
Test: aapt2_tests
Change-Id: I58a560c7fb278c1aa2b415e456f849999c835155
2021-05-03 16:17:28 -07:00
Dmitri Plotnikov
79e65de313 Remove SystemBatteryConsumer
which has been superceded by AggegateBatteryConsumer

Bug: 186006876
Test: atest FrameworksCoreTests:com.android.internal.os.BatteryStatsTests
Test: Use BatteryStatsViewer to verify that it's still functional
Change-Id: I2e4fe36ff310b6d68923fcecdfd22ce865b1f32d
2021-05-03 16:03:39 -07:00
Ryan Mitchell
6c905696b9 Merge "AAPT: Only print last uses-sdk tag" into sc-dev 2021-05-03 23:00:16 +00:00
Todd Kennedy
48a2cac9ef Merge "Add OWNERS for new files" into sc-dev 2021-05-03 22:53:30 +00:00
Grace Jia
f0d1132b23 [automerger skipped] Merge "Add support for selected contacts device to device sharing." am: 83bc8699a1 am: a9a60d31bc am: 71de23564d -s ours
am skip reason: Merged-In I4f6da463a29ba9cf067d36941a9b4e584012c817 with SHA-1 2bd23cfbcc is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1694227

Change-Id: If875e37610b59e5643b886926d1eb0357a00f586
2021-05-03 22:49:09 +00:00
George Mount
07406f3642 Allow EdgeEffect to fling during pull
Bug: 186430321

EdgeEffect was restarting the fling from the start if onAbsorb()
was called after onPullDistance(). This CL does not reset
the distance in onAbsorb().

Test: new test
Change-Id: I0657059c275f42cfe229a3aaa8bf37c87e0394f1
2021-05-03 22:45:10 +00:00
George Mount
b1aee44bea Remove edge effect type from the API.
Fixes: 186758538

Relnote: "Removes edge effect type from the API -- EdgeEffect now
supports only stretch edge effect for all applications."

Test: existing tests, modified to work with stretch
Change-Id: Iec7a9d4a0316ff3ba7297c4565bb881a1adcf949
2021-05-03 22:45:10 +00:00
Tyler Gunn
11b91fa682 Merge "Fix potential strict mode violation when stopping RTT." into sc-dev 2021-05-03 22:45:06 +00:00
Sudheer Shanka
b1b9e93270 Merge "Include uid in batterystats logs." into sc-dev 2021-05-03 22:40:02 +00:00
Mady Mellor
1f6d6d5d33 Add the priority person highlight back to bubbles badge
In BubbleViewInfo task where the icons are fetched, we were creating
the ringed badge for priority people but we weren't using it. Instead
the original badge drawable was being used.

This switched the app badge to be a bitmap & uses the bitmap with the
priority person ring.

Also fixes an issue where the ring would draw through a badge that
also had the work profile indicator. This is done by drawing the
highlight first and then drawing the badge on top.

Test: manual 1) have a conversation notif that can bubble
             2) mark it as priority
             => Observe that the bubble is created and it has the
                ringed bitmap
             3) dismiss the bubble
             => check that the ring is present on the bubble in the
                bubble overflow
             4) repeat above steps with a bubble from workprofile,
                ensure it has the ring and the workprofile badge
Bug: 185202938
Change-Id: Ief297f073f9684930b3a08fd93e90bbaae3180ca
2021-05-03 15:35:38 -07:00
Evan Laird
5f59d2224c Privacy chip (2/many)
- Introduce StatusBarLocationPublisher to decouple the controlling of the
privacy dots and the status bar itself.
- Fix some code comments
- Fix RTL (mostly) for animations
- Animate the chip into the status bar left/right sides (based on rtl)
  so it always shows in the system area

Test: atest SystemUITests
Bug: 177323724

Change-Id: Ib76e9e19f4f70b77f30011b2aceebbeb6c870f81
2021-05-03 18:35:02 -04:00
Grace Jia
71de23564d Merge "Add support for selected contacts device to device sharing." am: 83bc8699a1 am: a9a60d31bc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1694227

Change-Id: I88e4170b568b7c7fe1610800d6b6181d171a3abc
2021-05-03 22:30:55 +00:00
Grace Jia
a9a60d31bc Merge "Add support for selected contacts device to device sharing." am: 83bc8699a1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1694227

Change-Id: I05940a27d251fa64f9228900f9418bc6d63cdd36
2021-05-03 22:11:08 +00:00
Songchun Fan
d48a25ee64 [IncrementalService] add last read error in dumpsys
BUG: 184844615
Test: dumpsys
Change-Id: I3e8178c8a62dc5d09c718b140bb48bda85a3bae5
2021-05-03 14:58:18 -07:00
Nikita Dubrovsky
f3c059b9f0 Merge "Release drag-and-drop URI permissions on gc if not tied to an activity" into sc-dev 2021-05-03 21:53:10 +00:00