Commit Graph

640958 Commits

Author SHA1 Message Date
Chris Li
97d56c0663 Determine whether to support activities in multi window (2/n)
Replace some existing usages of mSupportsNonResizableMultiWindow with
checking supportsMultiWindow() per Task/Activity.

This is cleanup before updating supportsMultiWindow().

Bug: 176061101
Test: pass existing
Change-Id: I3de46d6ecaae1ad93d031384e9cba6e0e4ebb01d
2021-04-28 18:08:53 -07:00
Treehugger Robot
1084a81a68 Merge "Internal graphics package owners" 2021-04-29 00:55:03 +00:00
Yohei Yukawa
c09a657113 Merge "Make IInputMethodPrivilegedOperations to async (5/N)" into sc-dev 2021-04-29 00:45:17 +00:00
TreeHugger Robot
7c9d3192de Merge "Fix stale EditorInfo upon EditText#setText()" into sc-dev 2021-04-29 00:42:23 +00:00
Jay Thomas Sullivan
7a7834230e Make REVOKE_WHEN_REQUESTED a SystemApi field
We have a reason to reference this flag from the base framework.  Mark
the flag as @SystemApi so it can be referenced.

Bug: 184962595
Test: atest AutoRevokeTest
Change-Id: Id9cb5d32b4afc9c49b8f97996fdfde2d4c239ca4
2021-04-28 20:33:48 -04:00
Evan Rosky
f28044d2d0 Part of compatibility getRaw() support
Many apps currently mis-use getRaw APIs assuming they just
mean screen-space. Until they are educated about it, we need
to add this compatibility layer to apply rotation-only to
getRaw API output. This is a small part of the change, the
rest is in frameworks/native.

Bug: 179274888
Test: atest inputflinger_tests:InputDispatcherTest
Change-Id: I5f3ddf885f6b348201bfc92be128d9a36104abc8
2021-04-28 17:32:55 -07:00
Dmitri Plotnikov
225c01b6f1 Fix mismatch between measured energy value for GNSS
Bug: 186692321
Test: Use BatteryStatsViewer to verify that GNSS energy is as expected

Change-Id: I8c9a003904336d911ac88ae3dfde6069c749c228
2021-04-28 17:18:15 -07:00
Aemon Cannon
08862bc2fc Merge "Add instrumented app to JAR path (isolated splits)" into qt-qpr1-dev am: d2317d0fac am: 9769b95c31
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14240125

Change-Id: Iafbcfb8bf9abb1a6eb7141010848258c06d4d10a
2021-04-29 00:15:25 +00:00
Aemon Cannon
6390c11497 Merge "Add instrumented app to JAR path (isolated splits)" into qt-qpr1-dev am: d2317d0fac am: 9769b95c31
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14240125

Change-Id: I3583e375da79b70dfad84612eb987adad0b73c24
2021-04-29 00:13:49 +00:00
George Chang
469c7c8343 Merge "[SettingsProvider] Remove @Readable for NFC_PAYMENT_DEFAULT_COMPONENT" into sc-dev 2021-04-29 00:13:08 +00:00
Erik Wolsheimer
feb30242a7 Re-enable AppOpsServiceTest#testShutdown
Bug: 183523911
Test: Ran on sargo-userdebug, 20/20 passes
Change-Id: I31c09a4a4780d69c62a1b08893e08efb01a6bf4f
2021-04-29 00:10:08 +00:00
TreeHugger Robot
088d1b952c Merge "Fix tapping on divider bar several times makes split sloggish" into sc-dev 2021-04-29 00:09:14 +00:00
Seigo Nonaka
2a77167ce4 Skip FontFamily creation if the font files don't exists.
Bug: 186580197
Test: atest FontFamilyUpdateRequestTest FontListParserTest
      FontManagerTest NativeSystemFontTest
      PersistentSystemFontConfigTest SystemFontsTest
      SystemFontsUniqueNameTest UpdatableFontDirTest
      UpdatableSystemFontTest
Change-Id: Ibbcfb9ed43d05dd9db0132f3a7cb0321243be054
2021-04-28 17:06:17 -07:00
TreeHugger Robot
ac126aa920 Merge "Hide the manage menu when switching to overflow" into sc-dev 2021-04-29 00:05:29 +00:00
Brad Ebinger
ebcd7d968b Clarify DelegateManagerCallback based on API review
Bug: 181764809
Test: docs only change
Change-Id: I98475f675f10ebd888c64fedf7a48a987d31883c
2021-04-29 00:00:29 +00:00
Daniel Santiago Rivera
3771ef8d64 Added SQLite versions used on API levels 28, 30 and 31.
The android.database.sqlite package summary page now mentions the
versions of SQLite that are available on Android devices running Pie
(API level 28), Q (API level 29), R (API level 30) and S (API level 31)

Change-Id: I49c6bdd7edbaf98a62f50cb65ba00f160c800f0c
Test: make ds-docs -j16
2021-04-28 23:38:30 +00:00
Treehugger Robot
0399c4944f [automerger skipped] Merge "Expose carrier privilege rules certificates as @TestApi." am: c2c84d169a am: 1819888bfb am: faf48c00ae -s ours
am skip reason: Merged-In I942d4c0c7c786d7c8b561e5e65773367cefffb31 with SHA-1 5bf8a8436f is already in history

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

Change-Id: Iee54e3eeafc0c15af6dfda4c6ad37addd850b813
2021-04-28 23:31:44 +00:00
Treehugger Robot
284b71639f Merge "Update OWNERS for CachedAppOptimizer" am: 6ed3f581bb am: da34aa41a8 am: 0b5edbb77f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1684130

Change-Id: I2da7f20955ec8cf5f53d82d3bac878c47c6b21e9
2021-04-28 23:31:10 +00:00
Christine Franks
cd007b59c2 Merge "Check real virtual display id for input devices" into sc-dev 2021-04-28 23:27:33 +00:00
Evan Rosky
53d1bb6e50 Adapt transition merge during recents into onTaskAppeared.
If an incoming transition merge request contains only a task
open, this will be converted into the existing onTaskAppeared
callback that recents expects.

Bug: 186132704
Test: open app, swipe to overview, scroll to another app, launch.
Change-Id: Ifd288fbb73e2b4ea7011066bda5c3694b5f579d9
2021-04-28 16:20:24 -07:00
Aemon Cannon
9769b95c31 Merge "Add instrumented app to JAR path (isolated splits)" into qt-qpr1-dev am: d2317d0fac
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14240125

Change-Id: Id18fda9f958e8b4555a044c866f7f695c440856a
2021-04-28 23:19:50 +00:00
Treehugger Robot
faf48c00ae Merge "Expose carrier privilege rules certificates as @TestApi." am: c2c84d169a am: 1819888bfb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1683909

Change-Id: I03d4f77bd168d642e2fa2514beb3fc2033cd39cf
2021-04-28 23:11:58 +00:00
Treehugger Robot
0b5edbb77f Merge "Update OWNERS for CachedAppOptimizer" am: 6ed3f581bb am: da34aa41a8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1684130

Change-Id: Ia596c766764b8a235811ee75b9d5ba4e020c02b9
2021-04-28 23:11:35 +00:00
Chris Ye
c9b9464ad8 Rename Battery to BatteryState.
Rename Battery to BatteryState, and rename the method hasBattery to
isPresent.
Return NaN in getCapacity() if capacity can not be read.

Bug: 180733860
Test: atest android.hardware.input.cts.tests

Change-Id: I8e855be0b263479c2744b817df5f591c9d1e4a64
2021-04-28 16:08:39 -07:00
yinxu
c7dda3037d Mock the makeCopy() method in the unit test
Bug: 186599784
Test: atest NetworkControllerWifiTest
Change-Id: I3794af59da52d0fa800deb0fe67d8ff1a9f5e496
2021-04-28 16:02:19 -07:00
Brad Ebinger
37a3528f56 Do not throw NPE if GRUU uri is not populated
Instead of GRUU URI parsing cause NPE if the string is empty,
check to make sure the string is populated before trying to parse.

Test: atest CtsTelephonyTestCases
Change-Id: I194ed8cc0e7df359ff9cf826e233f29e80ad71ff
2021-04-28 22:46:27 +00:00
chaviw
286642aecd Updated DisplayHash APIs
Test: DisplayHashingServiceImplTest
Test: DisplayHashManagerTest
Fixes: 185274179
Fixes: 185940192
Change-Id: I8562fc8f0f3b53d41214a80168be5d14b9eb4c10
2021-04-28 17:43:03 -05:00
Julia Reynolds
a54b71543a [automerger skipped] Restrict alarm broadcast am: f1e84b42b1 -s ours am: eaf40f342d -s ours am: 26925dd638 -s ours am: a0d1066582 -s ours am: c44348150d -s ours
am skip reason: Merged-In I4f8e56729d90f8f5288d08881129b1c45d5790e7 with SHA-1 f1e84b42b1 is already in history

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

Change-Id: I427b6a2c9e3cc9a0a76d2665273672cfc46b1fca
2021-04-28 22:42:15 +00:00
Todd Kennedy
229773b648 Merge "PackageParser OWNERS noparent" am: 26a5186ab1 am: 159886625a am: 2678377c4b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1688565

Change-Id: Iacc17024700bdb7ac9c7d044288bd35b0dfb0054
2021-04-28 22:41:50 +00:00
Aemon Cannon
d2317d0fac Merge "Add instrumented app to JAR path (isolated splits)" into qt-qpr1-dev 2021-04-28 22:38:41 +00:00
Hongwei Wang
09381e117e Ignore moveTaskToBack transition for PiP
YT calls Activity#moveTaskToBack(false) when tapping on background play
in PiP mode. Simply ignore any system transition in this case.

See also go/pip-move-task-to-back

Video: http://recall/-/aaaaaabFQoRHlzixHdtY/g1i3IAyUeSJua1dA61OhXQ
Bug: 175279237
Test: Tap background play when in PiP, see Video
Change-Id: I7319fe6e12208e51e516bc4ea82ee7325ccecc11
2021-04-28 15:30:26 -07:00
Treehugger Robot
1819888bfb Merge "Expose carrier privilege rules certificates as @TestApi." am: c2c84d169a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1683909

Change-Id: I9ddeafeacae76ecc4aa80eecd6503b2fea8378b9
2021-04-28 22:28:31 +00:00
Brad Ebinger
7f4e2af723 Add the ability to get Accept-Contact header params
- Add the ability to get tag param from from and to headers
- Add the ability to parse Accept-Contact header feature
tags that start with "+" for session tracking.

Test: CtsTelephonyTestCase:SipDelegateManagerTest TeleServiceTests
Bug: 173828358
Change-Id: I29aca0911a6600b99bc462ea816bdd283751ea00
2021-04-28 22:27:16 +00:00
Svet Ganov
4f0b921e9d Remap per app id for AR/location sources
Since the AR and location source concepts define what the
app can do, i.e. it can provide activity recognition or
location to other apps, we treat that app as the AR/location
source and allow op remapping for app users (as this app
runs for all users as a separate instance).

bug: 185504196

Test: manual

Change-Id: Iab15e2d4a2c3f6f15fe8a22c61ea7272460ea4d2
2021-04-28 22:25:23 +00:00
Tianjie
adc5a1d764 Always use the server based provider if HAL isn't installed
If the device doesn't have the reboot escorw HAL, default the provider
to server-based. It helps OEM testing before our P/H flag rollout;
because most OEM devices don't install the HAL.

Test: unittests
Change-Id: Ia43ab0abb769bbf8e11e61841f4a647ae2acc6be
2021-04-28 15:24:47 -07:00
Julia Reynolds
e14ac7b727 [automerger skipped] Restrict alarm broadcast am: f1e84b42b1 -s ours am: eaf40f342d -s ours am: 26925dd638 -s ours am: 27b30e8ced -s ours
am skip reason: Merged-In I4f8e56729d90f8f5288d08881129b1c45d5790e7 with SHA-1 7dfcfe85ae is already in history

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

Change-Id: If181da0ec2c4f4039db10117a7f0e34001e24aa8
2021-04-28 22:22:29 +00:00
Treehugger Robot
da34aa41a8 Merge "Update OWNERS for CachedAppOptimizer" am: 6ed3f581bb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1684130

Change-Id: Ifb144bc700a0e2e730aa99bc8875873a86c37461
2021-04-28 22:21:50 +00:00
Julia Reynolds
c44348150d [automerger skipped] Restrict alarm broadcast am: f1e84b42b1 -s ours am: eaf40f342d -s ours am: 26925dd638 -s ours am: a0d1066582 -s ours
am skip reason: Merged-In I4f8e56729d90f8f5288d08881129b1c45d5790e7 with SHA-1 7dfcfe85ae is already in history

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

Change-Id: I19491880ed7817982f83dcb2ea8d180b73733cfd
2021-04-28 22:21:33 +00:00
Todd Kennedy
2678377c4b Merge "PackageParser OWNERS noparent" am: 26a5186ab1 am: 159886625a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1688565

Change-Id: I40770bf3f2d5c706cd578548be07f4fa1f5f4565
2021-04-28 22:15:56 +00:00
Treehugger Robot
c2c84d169a Merge "Expose carrier privilege rules certificates as @TestApi." 2021-04-28 22:13:50 +00:00
Julia Reynolds
27b30e8ced [automerger skipped] Restrict alarm broadcast am: f1e84b42b1 -s ours am: eaf40f342d -s ours am: 26925dd638 -s ours
am skip reason: Merged-In I4f8e56729d90f8f5288d08881129b1c45d5790e7 with SHA-1 7dfcfe85ae is already in history

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

Change-Id: I87f8f694dea99fb78baf6d8f0e5031dee4a464b3
2021-04-28 22:08:30 +00:00
Treehugger Robot
6ed3f581bb Merge "Update OWNERS for CachedAppOptimizer" 2021-04-28 22:07:27 +00:00
Julia Reynolds
a0d1066582 [automerger skipped] Restrict alarm broadcast am: f1e84b42b1 -s ours am: eaf40f342d -s ours am: 26925dd638 -s ours
am skip reason: Merged-In I4f8e56729d90f8f5288d08881129b1c45d5790e7 with SHA-1 7dfcfe85ae is already in history

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

Change-Id: Ib3bb54f4f504df1672899a7470ad66abe6d77cab
2021-04-28 22:06:50 +00:00
Suprabh Shukla
d77b127e37 Fixing empty PendingAlarmInfo after alarm store changes
The alarm store implementation might change, leaving the pointer passed
to MetricsHelper with an empty instance.

Also reordered some code to reduce unnecessary locking.

Test: Manually, run:
adb shell device_config put alarm_manager lazy_batching false
Then:
./out/host/linux-x86/bin/statsd_testdrive 10106
should show non-zero values.

Bug: 177556103
Change-Id: I55b4318d14632f227adfd79f7a08bb50af98f03a
2021-04-28 14:59:11 -07:00
Ryan Mitchell
326e35ffaf Add <macro> tag to aapt2
AAPT2 Macros are compile-time resources definitions that are expanded
when referenced during the link phase.

A macro must be defined in the res/values.xml directory. A macro
definition for a macro named "foo" looks like the following:
 <macro name="foo">contents</macro>

When "@macro/foo" is used in the res/values directory or in a compiled
XML file, the contents of the macro replace the macro reference and
then the substituted contents are compiled and linked. If the macro
contents reference xml namespaces from its original definition, the
namespaces of the original macro definition will be used to determine
which package is being referenced.

Macros can be used anywhere resources can be referenced using the
@package:type/entry syntax.

Macros are not included in the final resource table or the R.java since
they are not actual resources.

Bug: 175616308
Test: aapt2_tests
Change-Id: I48b29ab6564357b32b4b4e32bff7ef06036382bc
2021-04-28 14:58:23 -07:00
Todd Kennedy
159886625a Merge "PackageParser OWNERS noparent" am: 26a5186ab1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1688565

Change-Id: I7ecf3b8cbaff927662f8288e7e0f53e8c3303d05
2021-04-28 21:51:15 +00:00
Julia Reynolds
26925dd638 [automerger skipped] Restrict alarm broadcast am: f1e84b42b1 -s ours am: eaf40f342d -s ours
am skip reason: Merged-In I4f8e56729d90f8f5288d08881129b1c45d5790e7 with SHA-1 7dfcfe85ae is already in history

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

Change-Id: Iaf9103ad8ba918cd3b836cc2ad63c07ef350a5e1
2021-04-28 21:50:41 +00:00
cecilia
a2655ec281 Skip showing the Smartspace recommendation card if it's an empty update.
Smartspace always sends out an update on headphones connection for a reliable triggering:
- A valid recommendation list with >= 3 items;
- Otherwise, an empty list only for triggering.

If it's the latter case, the recommendation should not be shown.

Fixes: 186585554
Test: Studio builds
Change-Id: I441454809f7c6b10e21d18f46c10e01efc892db0
2021-04-28 21:48:05 +00:00
George Mount
109e474959 Allow intercept touch event while animating edge glow.
Bug: 185906621

During overscroll animation, there is no need to call
disallowInterceptTouchEvents(). This removed the
call so that parents can intercept touch events.

Test: Ia9ac6d81a5b60222f489ea87f31ecba0c1d48cea
Test: manual testing

Change-Id: Ie5d9428d95b86d7a976c2f3c519547151a45cec5
2021-04-28 21:47:12 +00:00
Pinyao Ting
a2bbcf9523 Merge "Consolidate shortcut usage report api." into sc-dev 2021-04-28 21:46:37 +00:00