Commit Graph

640958 Commits

Author SHA1 Message Date
Bill Yi
ec34735d24 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: bd2554e2cf -s ours
am skip reason: subject contains skip directive

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

Change-Id: Iad88d96ddbb1f3ffc50580d8587eea0298ea6ce3
2021-05-11 00:17:33 +00:00
Vova Sharaienko
48f93dabe0 ActivityManagerService: reroute lmkd atoms logging
- Added support to subscribe for a lmkd LMK_ASYNC_EVENT_STAT event
- Added processing LMK_KILL_OCCURRED and LMK_STATE_CHANGED packets
  with logging to statsd
- Added statsd auto-generated code wrapping the statsd logging

Bug: 184698933
Test: lmkd_unit_test - test check_for_oom tests lmkd message send to AMS
Test: statsd_testdrive 51 54 to inspect statsd logged atoms data
Change-Id: I69ef1a9daa5532244a15665bff06d0ad6b370869
Merged-In: I69ef1a9daa5532244a15665bff06d0ad6b370869
2021-05-11 00:14:58 +00:00
Peter_Liang
ae817912c5 Add the new dock tooltip for accessibility floating menu.
Goal:
Pop up the tooltip to show how to move the menu and
hide after users move the Accessibility floating menu first.

Patch Action:
1. Create new SharedPrefernece for dock tooltip.

Bug: 182532449
Test: atest AccessibilityFloatingMenuViewTest AccessibilityFloatingMenuTest
AnnotationLinkSpanTest AccessibilityFloatingMenuTooltipViewTest
DockTooltipViewTest MigrationTooltipViewTest

Change-Id: I71d29761acd4e9d48f776e5c701149b3ed40fda4
2021-05-11 08:13:09 +08:00
Peter_Liang
0ca995f360 Add the new migration tooltip for accessibility floating menu.(2/n)
Patch Action:
1.Linkify the text related to migration tooltip.
2.Create the component name of the sub setting of
Accessibility button let framework side could launch to
the corresponding setting page.

Bug: 175365399
Test: atest AccessibilityShortcutControllerTest AnnotationLinkSpanTest AccessibilityFloatingMenuTooltipViewTest MigrationTooltipViewTest
Change-Id: I2af5aaa5cf1789f406f423c64c91f0e23c31e6eb
2021-05-11 08:13:09 +08:00
TreeHugger Robot
33fb25731a Merge "[am] check if codePath is null before checking incremental" into sc-dev 2021-05-11 00:13:09 +00:00
Peter_Liang
610c0142d3 Add the new migration tooltip for accessibility floating menu.(1/n)
Goal:
If users have been using the accessibility button in android R, after the device is upgraded from android R to S, the system will pop up the tooltip at the first boot to show the information about the Accessibility button was replaced with the floating menu.

Patch Action:
1. Create the tooltip view
2. Create new secure settings  key for migration tooltip

Bug: 175365399
Test: atest AccessibilityFloatingMenuViewTest AccessibilityFloatingMenuTest AccessibilityFloatingMenuTooltipViewTest
Change-Id: I50b792efcbb631778a668e967fd727806a3f3df4
2021-05-11 08:12:18 +08:00
TreeHugger Robot
54fc08e8cb Merge "BatteryStatsViewer UI improvements:" into sc-dev 2021-05-11 00:11:03 +00:00
Chris Ye
f24599c9f0 Change the brackets in Persian keyboard layout.
Change the brackets in Persian keyboard layout to be consistent with RTL
layout.

Bug: 178953618
Test: Connect a physical keyboard, and choose "Persian" keyboard layout.
Change-Id: Id9a9451a40dbf585c36bd5cdacbf4a94ca1a29d4
2021-05-11 00:08:15 +00:00
Bill Yi
50cae66cd5 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ib794ba78476fb73edcdee9a860ee1f3e4c8450b8
2021-05-11 00:01:55 +00:00
Vova Sharaienko
85e554b8d8 Merge changes from topic "reroute-lmkd-ams" into sc-dev
* changes:
  AMS: added caching DataInputStream object
  ActivityManagerService: reroute lmkd atoms logging
2021-05-10 23:41:04 +00:00
Chris Ye
66f0f96ff3 Change the brackets in Hebrew keyboard layout.
Change the brackets in Hebrew keyboard layout to be consistent with RTL
layout.

Bug: 178953618
Test: Connect a physical keyboard, and choose "Hebrew" keyboard layout.
Change-Id: Idf11370996771c63148db145c0921eb1077c1176
2021-05-10 23:39:07 +00:00
Nader Jawad
9272f21612 Updated StretchEffect types
Added additional shader stretch effect type
to distinguish between shader based stretches that
are configured in HWUI as well as those that
are configured in both HWUI and SurfaceFlinger

Bug: 184297961
Test: manual
Change-Id: Ie1083cef7cbaf4f877783d67d429af7f5edd0a3c
2021-05-10 16:38:09 -07:00
Ady Abraham
26c834522b Add preferredMaxDisplayRefreshRate
Add a new private window attribute for allowing apps to specify the max
display refresh rate. This is useful for use cases such as keyguard
where the refresh rate should be limited to preserve power.

In the next CLs the preferredDiplayModeId would be enabled for
frame rate override (60-on-120) and the preferredMaxDisplayRefreshRate
would be the alternative to control the display refresh rate (as opposed
to the frame rate experienced by the app).

Test: atest RefreshRatePolicyTest
Test: atest DisplayModeDirectorTest
Test: Launch camera app and observe refresh rate
Bug: 183226498
Change-Id: I1c5e9f6047cbea4bfb581251b8dd2b9058b3e378
2021-05-10 16:37:33 -07:00
Alexander Dorokhine
a0553f4d59 Update framework from Jetpack.
Changes included:
* 8b28ee6: Adds cts test to verify that CJK search.
* 96876cf: Display a single document selected from the documents list
* 8acd6a2: Add PackageIdentifier CTS test.
* 7e6f029: Add SearchSpec.Builder CTS tests.
* 7a545c8: Add CTS tests for AppSearchSchema property config builders.
* 9224f38: Add RemoveByDocumentIdRequest CTS tests.
* 6dadb66: Add tests for ReportUsageRequest and ReportSystemUsageRequest.
* 08b6b0a: Add StorageInfo.Builder Cts Tests
* b178f79: Add cts test for SearchResult, MatchInfo and MatchRange
* 158a0fa: Add GetByDocumentIdRequestCtsTest CTS tests.
* b3d5fb0: Logging stats for SetSchema.
* 7605e1e: Add test coverage for SetSchemaRequest.
* 55e10b2: Add test coverage for GenericDocument.
* 0038649: Allow reuse of SearchSpec.Builder.
* 1a309db: Mark testDocument_toString test as @Ignore
* d682ee2: Add test coverage to androidx.appsearch.exceptions
* 9dce38b: Refactor SetSchemaResponseCtsTest to unit test
* c24fd88: Prevent SearchSpec.Builder from copying members unless reused.
* 0b3b84f: Allow reuse of SearchResult.Builder.
* 56d897c: Allow reuse of builders related to AppSearchSchema.
* 27c774a: Allow reuse of remaining builders except GenericDocument.
* ffffb62: Add test coverage for SetSchemaResponse.
* 8b61217: Refactor CTS package to put 'cts' at the highest level.

Bug: 183574903
Bug: 179680545
Bug: 183239895
Bug: 183239507
Bug: 183239552
Bug: 183239611
Bug: 183239665
Bug: 183239677
Bug: 183239702
Bug: 183239768
Bug: 183239769
Bug: 183240150
Bug: 183239894
Bug: 183239741
Bug: 183239511
Bug: 183239590
Bug: 184396610
Bug: 182958600
Bug: 184396708
Bug: 183239760
Bug: 183239899
Bug: 183239508
Bug: 183239762
Bug: 183239705
Bug: 183240098
Bug: 173532925
Bug: 183239669
Bug: 183239682
Bug: 187424629
Bug: 183239509
Bug: 183151637
Bug: 178060626
Bug: 184575547
Bug: 184575981
Bug: 184575930
Bug: 184175556
Bug: 180481315
Bug: 183239740
Test: Presubmit
Change-Id: I5a119d5c779ac48601f88e28867fd5bc3e373065
2021-05-10 16:34:29 -07:00
Chris Ye
3d7c3388e0 Change the '[]' and '<>' brackets in Arabic keyboard layout.
Change the '[]' and '<>' brackets in Arabic keyboard layout to be consistent with RTL
layout.

Bug: 178953618
Test: Connect a physical keyboard, and choose "Arabic" keyboard layout.
Change-Id: I715fc387536124f13dab63b64f197354d4594870
2021-05-10 23:31:29 +00:00
Yi Jiang
1e577bb281 Merge "Simplifies the service resolving logic in RRMS" into sc-dev 2021-05-10 23:30:48 +00:00
TreeHugger Robot
8a67239a67 Merge "Remove char limit for new user dialog message" into sc-dev 2021-05-10 23:20:06 +00:00
Alexander Dorokhine
610afe52c4 Unhide the storage attribution API with system visibility.
Bug: 179160886
Test: StorageStatsManagerLocalTest
Change-Id: I3a8994e215baff123df65d89d2d71b9e12de2af5
2021-05-10 15:59:31 -07:00
Beth Thibodeau
3fa5f04742 Close guts during transitions
- Animate close when swiping between players in carousel
- Close when long pressing on the guts
- Close when screen turns off
- If media only shows in QS, close after going to QQS or lockscreen

Fixes: 184535725
Fixes: 182292357
Test: visual
Test: atest com.android.systemui.media
Change-Id: I596d8dc30d714098cb84f0f0779c2e233fffcf0e
2021-05-10 18:24:12 -04:00
Calin Juravle
f0d01f45b1 Wait for BOOT_COMPLETE event before scheduling the bootDexoptJob
Also, clean up logging and transition to Slog.

Test: manual
Bug: 179094324
Change-Id: I87740397b6f8fc85faf4bbb2222434f90ebad554
2021-05-10 15:22:39 -07:00
Benedict Wong
a91e5123fc Merge "Add additional logging to improve debugability of VcnManagementService" am: 3996048bad am: 30b760733b am: 4182201ae9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1692661

Change-Id: I24973d2eff043af411460df6227954e55249f2ec
2021-05-10 22:21:30 +00:00
Brad Ebinger
16ccba2dee [automerger skipped] Merge "Add the REGISTRATION_TECH_NR Tech type" am: 0ad0a88143 am: e8d7017b66 am: 5272296d19 -s ours
am skip reason: Merged-In I4b0f9882dcf36e2ff7151778cbadb8e83513df5a with SHA-1 5934699aab is already in history

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

Change-Id: I466ecb4434215b8d081c5a23342708a72d67b172
2021-05-10 22:20:44 +00:00
Dmitri Plotnikov
e43992bbdb Convert BatteryStats.dumpLocked from BatteryStatsHelper to BatteryUsageStats
Bug: 162380414
Test: atest FrameworksCoreTests:BatteryUsageStatsTest

Change-Id: Icb508c60e037ee983c0ebde5905ec0a08fe648c3
2021-05-10 15:20:18 -07:00
Kweku Adams
937355815f Use BatteryManagerInternal to determine low battery.
BatteryManagerInternal calls into BatteryService, which has its own
logic for identifying low battery. BatteryService's low battery logic
takes a user's setting into account. Switch to using BatteryService's
logic so we can standardize on battery low logic.

Bug: N/A
Test: Android builds

(cherry-pick from commit de95150c42)

Merged-In: I0cc4538bb80ce21e42721eccf6b6671d52a24084
Change-Id: I0cc4538bb80ce21e42721eccf6b6671d52a24084
2021-05-10 15:19:43 -07:00
Felipe Leme
447b075ee0 Added more logging statements on PackageInstallerActivity.
Bug: 132268723
Test: manual verification

Change-Id: I738ea84b4cc14cf35437e46b1896ccb051bd21ec
2021-05-10 15:18:23 -07:00
Makoto Onuki
26f28d4a29 Merge "Send a broadcast when an app is granted SCHEDULE_EXACT_ALARM" into sc-dev 2021-05-10 22:14:48 +00:00
Nader Jawad
020efbc1a8 Merge "Add a linear variant of the stretch effect" into sc-dev 2021-05-10 22:12:48 +00:00
Benedict Wong
4182201ae9 Merge "Add additional logging to improve debugability of VcnManagementService" am: 3996048bad am: 30b760733b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1692661

Change-Id: I4837423409cb93232a80e29164962343d743febd
2021-05-10 22:01:40 +00:00
Brad Ebinger
5272296d19 Merge "Add the REGISTRATION_TECH_NR Tech type" am: 0ad0a88143 am: e8d7017b66
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1699607

Change-Id: Ia0c185d18b404a35c116b35309008c67ecc271b2
2021-05-10 22:01:23 +00:00
Evan Laird
c7621ff49e Add check for the new animation scheduler state
Previously the animation scheduler was IDLE while not animating and
while showing the dot. Recently SHOWING_PERSISTENT_DOT was added and
that needs to be checked.

Test: manual
Fixes: 187608678
Change-Id: I9eeb94a12878923b73920d2b3fc85cef7e7d28f9
2021-05-10 17:45:52 -04:00
Benedict Wong
30b760733b Merge "Add additional logging to improve debugability of VcnManagementService" am: 3996048bad
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1692661

Change-Id: I1597db8e8f437b797abdb70253f7b7a0fc6b77dd
2021-05-10 21:44:38 +00:00
Evan Severson
5c25e20c54 Add delay for mic/cam toggle dialog
This allows us to consolidate both mic and camera into a single dialog
when requested at approximately the same time. Also it allows (as a
workardound to b/181721787) for the dialog to be shown when an app
quickly opens another activity after opening mic/cam.

Also we special case telecom to show the microphone dialog when a phone
call is placed so that the user is able to easily take action on
unmuting the microphone.

Bug: 183985427
Fixes: 184163956
Test: atest CtsSensorPrivacyTestCases
Change-Id: I4cb897ee34d1ceeb4a2ad6104f812b15a2a4f357
2021-05-10 14:43:57 -07:00
yinxu
d322045db9 Set the mCarrierConfigTracker before using it
Bug: 187676976
Test: unit tests
Change-Id: Iee806ee3f79507914b4fcee85d11d8d08a502847
2021-05-10 14:43:27 -07:00
Brad Ebinger
e8d7017b66 Merge "Add the REGISTRATION_TECH_NR Tech type" am: 0ad0a88143
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1699607

Change-Id: I2009c95ad2d87b4d3a23fbe62de32d1081874dc4
2021-05-10 21:37:35 +00:00
Bill Yi
0254efa400 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7b3f051ff2c83c6989994924ccb59044c3c25f57
2021-05-10 21:36:11 +00:00
TreeHugger Robot
d825a07bc4 Merge "Add TODO to SoundTriggerMiddlewarePermission hack" into sc-dev 2021-05-10 21:34:57 +00:00
Nate Myren
fed1d46d18 Add concept of "paused" appOp (started, but MODE_IGNORED)
Ensure that we record historical ops for started, ingored ops, during
the time they are not set to ignored

Fixes: 185945831
Test: atest SensorPrivacyCameraTest,SensorPrivacyMicrophoneTest
Change-Id: Icd6febd8ec371848280178d0b3e053ab221d93ed
2021-05-10 14:30:38 -07:00
Benedict Wong
3996048bad Merge "Add additional logging to improve debugability of VcnManagementService" 2021-05-10 21:22:23 +00:00
Siim Sammul
d3dc23dd45 [automerger skipped] Merge "Create BinderLatencyObserver to collect binder call latency stats. Pushing these as a metric will come in a future change." am: 60cd2fa626 am: 0e29db726c am: e29e864c6f -s ours
am skip reason: Merged-In I8a123f7aed7c0ce416814372f2287b04a8a04ac0 with SHA-1 c31917ddd4 is already in history

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

Change-Id: Ifa0ff35c5aac39865654681cd4af922696b41c1b
2021-05-10 21:22:05 +00:00
Rahul Sabnis
30002e7cd3 Merge "Update docs for BluetoothDevice#fetchUuidsWithSdp to reflect that if the device is bonding, we either broadcast cached UUIDs or wait for SDP to be performed after the device is bonded." am: d8c539d8b8 am: 27918f0cf2 am: 634cd45795
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1698769

Change-Id: I0b4ae79183c1b6e72c75369a25ca375acd4e5331
2021-05-10 21:21:20 +00:00
Benedict Wong
d155b44859 Add log prefixes to uniquely identify each VCN/gwConn
This change adds additional logging prefixes to uniquely identify
connections and vcn instances to allow for better debugging.

Test: atest FrameworksVcnTests
Change-Id: Ied1aa2b2502c9cbe59358755eb65ed369fdbd987
2021-05-10 14:17:30 -07:00
Bill Yi
aa5779f75a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7a3385d7f177d0968fcf6c45bbbdbbbdaca281e3
2021-05-10 21:15:32 +00:00
Siim Sammul
e29e864c6f Merge "Create BinderLatencyObserver to collect binder call latency stats. Pushing these as a metric will come in a future change." am: 60cd2fa626 am: 0e29db726c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1697178

Change-Id: I0af62c50b32487734cc49a0f649c544728179593
2021-05-10 21:03:50 +00:00
Rahul Sabnis
634cd45795 Merge "Update docs for BluetoothDevice#fetchUuidsWithSdp to reflect that if the device is bonding, we either broadcast cached UUIDs or wait for SDP to be performed after the device is bonded." am: d8c539d8b8 am: 27918f0cf2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1698769

Change-Id: I47b4ad9a346b2f384790541928cf7eaae5edddc7
2021-05-10 21:02:56 +00:00
Brad Ebinger
0ad0a88143 Merge "Add the REGISTRATION_TECH_NR Tech type" 2021-05-10 21:02:25 +00:00
Bill Yi
bd2554e2cf Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I786a9fe4073de6356b45fbaa88cfe5247788a274
2021-05-10 20:59:47 +00:00
Myles Watson
025714ff33 Bluetooth ScanFilter: Allow null in setDeviceAddress
Bug: 187076761
Test: manual scan filter test
Change-Id: I6456be4baab4b2a2b6d4607619ff92370b8b457d
2021-05-10 13:52:32 -07:00
Siim Sammul
0e29db726c Merge "Create BinderLatencyObserver to collect binder call latency stats. Pushing these as a metric will come in a future change." am: 60cd2fa626
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1697178

Change-Id: I025d7728e7cc5dd6a3491d254013f7832ea4b01d
2021-05-10 20:44:20 +00:00
Automerger Merge Worker
cad1671717 Merge "Merge "Enforce system/root/shell for dexopt operation." am: c900ba3cd6" into stage-aosp-master am: c8c54db537 am: e24feb4224
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1699071

Change-Id: Iddf95d3ab4ff4121482e599b3c0c1be2dc72a7c3
2021-05-10 20:38:17 +00:00
Calin Juravle
b5d991b3e9 Merge "Enforce system/root/shell for dexopt operation." am: c900ba3cd6 am: 274d5098fe am: ad770e97d4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1699071

Change-Id: Ib85c0b3dc6750bd027b13842e85aec8e3ac189eb
2021-05-10 20:37:37 +00:00