Commit Graph

619523 Commits

Author SHA1 Message Date
Nataniel Borges
9d110213e9 Use MediaProjection for screen recording
Use media projection instead of the shell command for screen recording.

Test: atest FlickerTests
Bug: 177077842
Change-Id: I9ac7351bf04004b5512316232637fd5cc2dd5fcc
2021-01-25 08:58:32 +01:00
Nataniel Borges
d04791d65c Split app pair tests into individual assertions
After this CL each assertion in the AppPairs test will appear as independent tests

Bug: 162923992
Test: atest FlickerTests WMShellFlickerTests
Change-Id: Id704301b3396c4330001ef639faed6e978237f10
2021-01-25 08:58:27 +01:00
Nataniel Borges
143d584efd Compatibilize tests with new runner
Runner now prints each assertion individually to aid debugging.

Bug: 162923992
Test: atest FlickerTests WMShellFlickerTests
Change-Id: I1c9a49ec3c283e5e034f0223573fca3ccafaf64c
2021-01-25 08:58:21 +01:00
Taran Singh
930915c245 Merge "Retain IME surface with a timeout" 2021-01-20 15:26:32 +00:00
Jeff DeCew
98668dc59c Merge changes from topic "promote_big_picture"
* changes:
  Unhide the API to promote the picture
  Add (still hidden) API to promote the big picture to the collapsed state
2021-01-20 15:15:02 +00:00
Bill Yi
5be018438d [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into mainline-prod am: 60bb74aa94 -s ours
am skip reason: subject contains skip directive

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I32a31c9fb47d5a4fceb3646bc3e9ad0b23823657
2021-01-20 14:49:32 +00:00
TreeHugger Robot
b4707f9a04 Merge "Option to skip profile password requirement during password enrolment" 2021-01-20 14:40:24 +00:00
Eran Messeri
9e5c68e73f Merge "Log metrics for setting Organization ID" 2021-01-20 14:24:04 +00:00
Galia Peycheva
c8a82f5ee5 Merge "Add blur feature to package manager" 2021-01-20 14:13:45 +00:00
Bill Yi
60bb74aa94 Merge "Import translations. DO NOT MERGE ANYWHERE" into mainline-prod 2021-01-20 14:12:47 +00:00
Bill Yi
4eae405930 Merge changes from topic "presubmit-am-1cef63352d234bdaa48f0c6843b3b986"
* changes:
  [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: edaa970434
  Import translations. DO NOT MERGE ANYWHERE
2021-01-20 14:12:47 +00:00
Bill Yi
798de05620 Merge changes from topic "presubmit-am-200c688679ac42f2af6863e45f5355e7"
* changes:
  [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 0b61f380f6
  Import translations. DO NOT MERGE ANYWHERE
2021-01-20 14:12:33 +00:00
TreeHugger Robot
dbc2f45b54 Merge "Cache result from VibratorService.hasVibrator in SystemVibrator" 2021-01-20 14:11:15 +00:00
Alberto Gonzalez
6efe9769ac Merge "Use crashing process' UID and PID, rather than Binder caller." 2021-01-20 13:08:37 +00:00
Robert Shih
21cfd9b232 Merge changes from topic "requiresSecureDecoder"
* changes:
  javadoc for MediaDrm#requiresSecureDecoder param mime
  MediaDrm: query secure codec requirement w/o session
2021-01-20 13:05:15 +00:00
Jan Tomljanovic
a636a4db08 Merge changes from topic "174841445"
* changes:
  Reset toast rate limiting when it is manually enabled.
  Add a method to reset quota for the given app.
2021-01-20 11:43:39 +00:00
Lais Andrade
e69b5f4177 Cache result from VibratorService.hasVibrator in SystemVibrator
The existing implementation of performHapticFeedback in
PhoneWindowManager uses both hasVibrator and vibrate methods from
Vibrator class. The implementation of VibratorService.hasVibrator is
already constant, returning true if the device has a built in vibrator.

This adds a cache for this value to SystemVibrator, to avoid binder
calls to system_server after the first one.

Bug: 170127981
Test: manual
Change-Id: I68934a41068f4388449321d08a42d8bf890ea91e
2021-01-20 11:35:13 +00:00
TreeHugger Robot
fa0e9b637a Merge "Remove mountExtStorageFull" 2021-01-20 11:31:15 +00:00
Wei Sheng Shih
9e39a623e3 Merge "Fix non-top activity being boosted while finishing." 2021-01-20 11:12:27 +00:00
Bill Yi
35d78346f6 [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: edaa970434
Blank merge reason: commit message contains skip directive

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

Change-Id: I6864c3e2efaf9bc4b9266b8d2f5f3e549601fb58
2021-01-20 11:11:19 +00:00
Bill Yi
edaa970434 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1ebf3d6183a54280073cc7f83f00b49a2ae1eaa9
2021-01-20 03:10:52 -08:00
TreeHugger Robot
18e3f45261 Merge "Reduce logging by HdmiCecConfig" 2021-01-20 11:07:38 +00:00
Robert Shih
fed6252a3c javadoc for MediaDrm#requiresSecureDecoder param mime
Bug: 136119370
Test: build
Change-Id: I5a227ffd0b723fc3aaa81fb4e5827b23b9b4ab56
2021-01-20 01:56:44 -08:00
Philip Junker
cc9aa6193a Merge "Add support for a home sound effect" 2021-01-20 09:00:25 +00:00
Marvin Ramin
1064660e05 Reduce logging by HdmiCecConfig
HdmiLogger is not enabled by default to make logcat more readable.

Test: manual
Change-Id: I0ddd3a8d8028fceccb9f53520d9e3d755f4b52b6
2021-01-20 09:46:09 +01:00
TreeHugger Robot
02f6a89cd2 Merge "Move CEC volume control setting to CEC config" 2021-01-20 08:13:15 +00:00
Bill Yi
5f3f9a2dff [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 0b61f380f6
Blank merge reason: commit message contains skip directive

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

Change-Id: Ia0312958157d285049753617ccabab1d4f38945f
2021-01-20 08:03:17 +00:00
Bill Yi
0b61f380f6 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1647a044f6f0c8bd52fd291d5d57ab55d821c392
2021-01-20 00:02:33 -08:00
TreeHugger Robot
ede25d217e Merge changes Id1340420,I92b1abbd
* changes:
  Add a Subject to simplify WatchdogEventLogger assertion (2/n)
  Use Truth (1/n)
2021-01-20 07:08:35 +00:00
TreeHugger Robot
1e465216e3 Merge "transcoding: Fix a bug in ApplicationMediaCapabilites." 2021-01-20 06:10:06 +00:00
Arc Wang
148195ee60 Merge "Add SettingsSpinnerPreference" 2021-01-20 05:51:45 +00:00
Ned Burns
9e4440d785 Merge "Converts FeatureFlags to use overlayable resource flags" 2021-01-20 05:31:51 +00:00
Ned Burns
6b240f30c2 Converts FeatureFlags to use overlayable resource flags
Updates the FeatureFlags wrapper to be backed by resource booleans.
These flags can be modified via RRO to create different build
configurations.

These flags can be locally overridden on all configurations where
are_flags_overrideable is true. It's intended that this value is
true for development builds but not production ones.

Test: atest SystemUITests:FeatureFlagReaderTest
Bug: 177954419
Change-Id: I847fa2659c0ca000431681f24f460269efbd49af
2021-01-20 05:25:20 +00:00
Robert Shih
205f7a9fb1 MediaDrm: query secure codec requirement w/o session
Bug: 136119370
Test: GtsMediaTestCases
Change-Id: I37982e77deff5e2ac21c2d1a5bdf07b1d1f08b15
2021-01-19 21:12:10 -08:00
Galia Peycheva
f78234f112 Merge changes from topic "blur_system_api"
* changes:
  Make BackgroundBlurDrawable a SystemApi
  Make window background blurs SystemApi
  Add permission for blur SystemApi
2021-01-20 05:04:01 +00:00
John Reck
0acf0dade3 Merge "Remove DisplayList.h dependency from Canvas.h" 2021-01-20 04:52:14 +00:00
TreeHugger Robot
3f8337ff57 Merge "Add APIs that can notify client ui translation state." 2021-01-20 04:43:54 +00:00
Tiger Huang
d4391287d5 Merge "Add BEHAVIOR_DEFAULT for visual immersive mode" 2021-01-20 04:20:40 +00:00
TreeHugger Robot
903dc9269f Merge "Refactor font parser for making SystemApi." 2021-01-20 04:18:20 +00:00
TreeHugger Robot
121f5679a8 Merge "Only throw IllegalStateException when the service is BG-FGS-launch restricted." 2021-01-20 03:22:58 +00:00
hkuang
6594cb8a07 transcoding: Fix a bug in ApplicationMediaCapabilites.
The creater have not parsed the unsupported codec/hdr types.

Bug: 176993974
Test: atest  CtsMediaTranscodingTestCases:ApplicationMediaCapabilitiesTest
Change-Id: Id6a692ae468948ea5672e22f0b3af0b6e50ecfad
2021-01-19 19:19:12 -08:00
John Reck
2e48df3705 Remove DisplayList.h dependency from Canvas.h
Canvas is included in a lot of places, reduce include
dependencies

Test: make
Change-Id: Iab513de8d4bc3eb18220307acc124859dbf44030
2021-01-19 21:58:40 -05:00
Chris Li
bd22adfb6c Merge "Task letterbox for resizable fixed-orientation app in dual DisplayAreas" 2021-01-20 02:30:03 +00:00
wilsonshih
0167c30214 Fix non-top activity being boosted while finishing.
The endTask condition should check whether there is no un-finishing
activity in the task.

Fixes: 176942303
Test: atest ActivityRecordTests
Change-Id: Id8e28599ba47af0b17a2f6b834b62acfb8d4e99a
2021-01-20 10:17:56 +08:00
Ivan Chiang
61b1b4e80f Merge "Revert "Add privileged to BROADCAST_CLOSE_SYSTEM_DIALOGS"" 2021-01-20 01:53:15 +00:00
Rhed Jao
3fe0566282 Merge "Deprecates unsupported splitName attributes" 2021-01-20 01:49:14 +00:00
Ivan Chiang
0c2c8dab31 Revert "Add privileged to BROADCAST_CLOSE_SYSTEM_DIALOGS"
Revert "Add BROADCAST_CLOSE_SYSTEM_DIALOGS to launcher via privi..."

Revert "Udpate BROADCAST_SYSTEM_DIALOGS permission in CTS"

Revert submission 13328953-acsd-privileged

Reason for revert: DeviceBootTest#REBOOT_TEST fail on b/177952808.
Reverted Changes:
Id3fdaf36f:Udpate BROADCAST_SYSTEM_DIALOGS permission in CTS
I40a28210f:Add BROADCAST_CLOSE_SYSTEM_DIALOGS to launcher via...
If027c6824:Add privileged to BROADCAST_CLOSE_SYSTEM_DIALOGS

Change-Id: I2a2e12af9075727e0d6f0be07467c4ba9285b2d3
2021-01-20 01:46:08 +00:00
Chris Li
3e4f8e1a7c Task letterbox for resizable fixed-orientation app in dual DisplayAreas
Before, when both DisplayAreaGroups set ignoreOrientationRequest to
false, launching two resizable apps with different orientations will
end up with two apps in the same orientations. One app is in the
orientation different from its request.

This is because Task only letterboxes when ignoreOrientationRequest is
true, but it should also letterbox when the TaskDisplayArea can't
specify orientation (happens when it doesn't have focus).

Bug: 176566401
Test: atest WmTests:DualDisplayAreaGroupPolicyTest
Change-Id: I6f093f3c2631970fcc2fa839e5b394106e5acc29
2021-01-20 01:45:41 +00:00
Keun-young Park
81eb442457 Merge changes from topic "carshell"
* changes:
  add Shell-package-library to allow product type level update
  Change target package for com.android.car.shell
2021-01-20 01:27:49 +00:00
Hui Yu
2018e68d0b Only throw IllegalStateException when the service is BG-FGS-launch
restricted.

Bug: 177941003
Test: atest android.app.cts.ActivityManagerProcessStateTest#testForegroundServiceAppOp
Change-Id: I16124dc04e14f772d392c9eb361c644de8d72afd
2021-01-19 17:20:55 -08:00