Commit Graph

3071 Commits

Author SHA1 Message Date
Treehugger Robot
3194260042 Merge "Fix 'Generic.kl' file has no 'ZOOM_IN' and 'ZOOM_OUT' mapping" am: 378996edac am: d2947a060e am: 2a19f3bf4e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2319754

Change-Id: I1de2b1a695887893ab25b16d8b0d66dea81b1472
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-01 02:31:56 +00:00
Treehugger Robot
2a19f3bf4e Merge "Fix 'Generic.kl' file has no 'ZOOM_IN' and 'ZOOM_OUT' mapping" am: 378996edac am: d2947a060e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2319754

Change-Id: Ife84a4e6da2c7c1898082a249aec5e7c0337ba77
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-30 16:33:44 +00:00
Treehugger Robot
d2947a060e Merge "Fix 'Generic.kl' file has no 'ZOOM_IN' and 'ZOOM_OUT' mapping" am: 378996edac
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2319754

Change-Id: I559e2f51c424107445347303925cfa5751d3b969
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-30 16:04:49 +00:00
zhangzhihao7
fdff9ae59b Fix 'Generic.kl' file has no 'ZOOM_IN' and 'ZOOM_OUT' mapping
'KEYCODE_ZOOM_IN' and 'KEYCODE_ZOOM_OUT' are defined in 'keycodes.h' and 'keyEvent.java', but not mapped in 'Generic.kl'. I think this is used by the camera to adjust the focus and it should be sent to the camera.

Change-Id: Ib5057ca2151de7a91bfec7f646ad9f491789cc0c
Signed-off-by: zhangzhihao7 <zhangzhihao7@xiaomi.corp-partner.google.com>
2022-11-30 11:30:51 +08:00
Almaz Mingaleev
b799b6cf59 Merge "Clean-up after TZUvA feature removal." am: 06b9abf013 am: ac0cf4e9ae am: fe16fe6f8c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2300422

Change-Id: Ifd1e49c1611ed2d55337609e5d07d43761f3e44d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-23 18:37:04 +00:00
Almaz Mingaleev
fe16fe6f8c Merge "Clean-up after TZUvA feature removal." am: 06b9abf013 am: ac0cf4e9ae
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2300422

Change-Id: Id8a86a06c500d6e58571ec903a4238613597eae8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-23 11:28:16 +00:00
Almaz Mingaleev
ac0cf4e9ae Merge "Clean-up after TZUvA feature removal." am: 06b9abf013
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2300422

Change-Id: I1d9b114c135f7e3c80613ae1f7b32346cd0b258f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-23 11:02:13 +00:00
Almaz Mingaleev
06b9abf013 Merge "Clean-up after TZUvA feature removal." 2022-11-23 10:16:21 +00:00
Treehugger Robot
ebd0a052d8 Merge "Fix 'Generic.kl' file has no 'KEYCODE_FOCUS' mapping" am: 826b805842 am: 602bff590b am: 9fdb3eab70
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2300377

Change-Id: Ic6d39f70582dba67ad79390970e3e736066d8c31
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-19 09:48:06 +00:00
Treehugger Robot
9fdb3eab70 Merge "Fix 'Generic.kl' file has no 'KEYCODE_FOCUS' mapping" am: 826b805842 am: 602bff590b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2300377

Change-Id: I3e543d624ac78fd61ca8b52b12a00da8fcbd5170
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-19 09:42:06 +00:00
Treehugger Robot
602bff590b Merge "Fix 'Generic.kl' file has no 'KEYCODE_FOCUS' mapping" am: 826b805842
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2300377

Change-Id: I9bb69d71c12344b0790bd649388ea6b3c63964e3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-19 09:17:10 +00:00
Nate Myren
cf63cdce77 Merge "Add READ_MEDIA_VISUAL_USER_SELECTED to apps automatically" 2022-11-18 00:38:30 +00:00
zhangzhihao7
e95a4454a3 Fix 'Generic.kl' file has no 'KEYCODE_FOCUS' mapping
This keyCode is defined in both 'keyEvent.java' and 'keyCodes.h', but not in the Generic.kl file. The comment of 'KEYCODE_FOCUS' says that this keyCode is used for camera focus, so this keyCode should be sent to the camera app, but now he is not in 'Generic.kl'.

Change-Id: I2d0a49edae0390c9199efe0f01e527b15d14e68e
Signed-off-by: zhangzhihao7 <zhangzhihao7@xiaomi.corp-partner.google.com>
2022-11-16 10:20:28 +08:00
Almaz Mingaleev
69a5f7df1a Clean-up after TZUvA feature removal.
Bug: 148144561
Bug: 198740173
Test: atest FrameworksServicesTest
Test: m
Change-Id: I207cb367209a18df318573c95cd18cd9e3a49c18
2022-11-15 15:19:28 +00:00
Jing Ji
4826749a10 Implement the foreground service type enforcement
Currently it's warning only.

To test with it:
adb shell am compat enable FGS_TYPE_PERMISSION_CHANGE_ID \
    com.my.package.name
adb shell am compat enable FGS_TYPE_DATA_SYNC_DISABLED_CHANGE_ID \
    com.my.package.name

Bug: 246792057
Bug: 254662046
Test: atest CtsAppFgsTestCases
Change-Id: I87a112dc9f254e5ea3231bddaf7f542a19cb7604
2022-11-15 05:18:27 -08:00
Wei Sheng Shih
827093037e Merge "Generalize back animation and transition sequence..." 2022-11-11 06:42:49 +00:00
wilsonshih
da90308633 Generalize back animation and transition sequence...
for both shell and legacy transition system.

The general sequence will be:
1. Create animation leash in core, pass to remote animation runner.
2. Remote animation finish, collect finish transaction before
transition happen. Apply finish transaction here if back event won't
trigger.
3. Check whether next transition is triggered from back gesture via
checking the open/close targets.

The 3rd step introduce another change, which to let the back transition
happen. Instead of consume next transition, we should try to find out
whether the participant was the animation target, because we cannot
assume what the opening target will do in resume stage. For example,
the opening activity could finish itself, or start another activity at
onResume, so in either case, the opening activity will become closing
activity. We can only ensure that activity will participant in next
transition.
So the more robust way should be, find out those targets which were
animated. For shell transition, and add a flag to the corresponding
change, then the transition handler can determine what to do based on
the targets. For legacy transition, ignore those targets when estimate
the transition type in AppTransitionController#getTransitCompatType.

Bug: 238474994
Bug: 131727607
Test: varify transition can be handled for some unexpected scenario:
  1. launch new activity when close app.
  2. launch singleInstance activity when close app.
Test: do back gesture on both shell/legacy transiton system, verify
no flicker happen whenever the back is triggered.

Change-Id: I9364be25c608f7b5797577d26b57bc7d6f2dde9c
2022-11-11 03:11:22 +00:00
Lucas Silva
4759b06cc1 Merge changes Ifece2dc6,Id0c37612 into tm-qpr-dev am: 3dad16a68c am: 973b3adce7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20313650

Change-Id: Ic27a3d830d0825e3319da167843392152801b551
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-09 22:31:22 +00:00
Lucas Silva
973b3adce7 Merge changes Ifece2dc6,Id0c37612 into tm-qpr-dev am: 3dad16a68c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20313650

Change-Id: I6be560ab366bd8bbb6ece691c7e7fbe1af31a358
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-09 21:43:15 +00:00
Lucas Silva
3dad16a68c Merge changes Ifece2dc6,Id0c37612 into tm-qpr-dev
* changes:
  Push active dream component to WindowManager instead of pulling.
  Implement alternate power button behavior for dreams.
2022-11-09 21:26:27 +00:00
Nate Myren
5660b698eb Add READ_MEDIA_VISUAL_USER_SELECTED to apps automatically
If an app requests READ_MEDIA_VIDEO/IMAGES, we should add
READ_MEDIA_VISUAL_USER_SELECTED automatically.

Also updates documentation

Bug: 256921561
Bug: 251783841
Test: atest PhotoPickerPermissionTest
Change-Id: I2ddb2caeeacd8c1d65b7892ea7fc22c024f69325
2022-11-08 15:52:05 -08:00
Lucas Silva
a057442725 Push active dream component to WindowManager instead of pulling.
Instead of pulling the active dream component, we push the component
when a dream is started. This ensures that the active component remains
in sync with the currently active dream.

Bug: 246091760
Test: flashed device and verified dreams are working correctly
Change-Id: Ifece2dc62486b74794f0d333d19bec2ab3bc9229
2022-11-07 20:41:10 +00:00
Issei Suzuki
b2aa206530 Merge "Suppress app transition while recents is running" into tm-qpr-dev am: f66cb50a99 am: daaecf4faa
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20335896

Change-Id: Ieb7e263023d35c214164dc636399d8a208756ce6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-04 10:54:47 +00:00
Issei Suzuki
daaecf4faa Merge "Suppress app transition while recents is running" into tm-qpr-dev am: f66cb50a99
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20335896

Change-Id: I4d1e7c31d45374087032c0c3a11b5dd22c9c4bf8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-04 10:40:55 +00:00
Issei Suzuki
67db8072d3 Suppress app transition while recents is running
This fixes conflict between app transition and recents animation in the
following scenario.

1) App transition animation finishes after app closing animation, which
is controlled by recents, finishes.

During the app closing animation, recents makes the closing app surface
invisible, but app transition animation overrides it to visible again.
This causes a flicker.

2) App transition starts during recents animation.

When a user launches an activity, and immediately after that, swipes up
the screen to close the app. Or a user launches an ChooserActivity on
top of other activity, and swipes up to move back to home.

While recents is running, we assume animation on tasks is controlled by
recents, and visibility is commited without animation after recents
animation finishes. However starting app transition during recents
breaks this assumption, which ends up with playing one more unexpected
closing animation (so users see closing animation twice).

This change also obsolute the logic which exludes launcher activity from
app transition while recents animation is running, since app transition
is delayed until recents animation finishes.

Bug: 223499269
Bug: 231669960
Bug: 232060413
Test: atest AppTransitionTest + manual tests
  Test 1
   1. Launch Gmail app.
   2. Click icon on the bottom tab (e.g. Chat).
   3. Swipe up from the bottom (immediately after step 2).
   4. Verify closing animation only plays once.
  Test 2
   1. Launch "Google TV".
   2. Play a trailer.
   3. Full screen and PIP mode switch twice.
   4. Verify PIP window is shown.
  Test 3
   1. Change phone to portlait mode.
   2. Launch Photo app.
   3. Swipe up from the bottom.
   4. Verify no rotation animation on the launcher.
  Test 4
   1. Launch photo app.
   2. Take screenshot.
   3. Hit share icon to share the screenshot.
   4. Swipe up from the bottom.
   5. Verify photo app closes.
Change-Id: I264b0daf1118b75fae481f0251ed50b556f27c5f
2022-11-02 12:53:29 +00:00
Jing Ji
38cde61727 Merge "ActivityManager#killBackgroundProcesses can kill caller's own app only" 2022-10-22 19:35:18 +00:00
Jing Ji
e8979d4c43 ActivityManager#killBackgroundProcesses can kill caller's own app only
unless it has the privileged permission KILL_ALL_BACKGROUND_PROCESSES.

Bug: 239423414
Test: atest CtsAppTestCases:ActivityManagerTest
Change-Id: I35d20539ffac055a6d61260445620f45584bd9c5
2022-10-17 17:20:06 -07:00
Grace Cheng
f724f5c0fe Merge "Adds LOCATION_BYPASS permission to Shell" 2022-10-13 20:08:53 +00:00
Will Osborn
ae77a78e3f Merge "Allow rotation when display is half-folded" into tm-qpr-dev am: 6d1c1b57b4 am: 151b6249c5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19468929

Change-Id: I33f4d34bf572ca09ab3cd28a5fe25aaa1c373e44
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-13 09:52:24 +00:00
Will Osborn
151b6249c5 Merge "Allow rotation when display is half-folded" into tm-qpr-dev am: 6d1c1b57b4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19468929

Change-Id: I24ca34347ee8cb7dfab88d3765a75999be30eee9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-13 09:19:24 +00:00
Grace Cheng
4d15a49e7c Adds LOCATION_BYPASS permission to Shell
Test: none

Change-Id: I4106647789b15793d04f81283954b06f6377cd54
2022-10-11 23:28:19 +00:00
Xin Li
92da83812c Merge "Merge tm-qpr-dev-plus-aosp-without-vendor@9129937" into stage-aosp-master 2022-10-11 17:39:41 +00:00
William Osborn
9723cfbc38 Allow rotation when display is half-folded
When in 'tabletop' or 'book' mode, allow the display to rotate
even if it is frozen. Then return to the previously locked rotation when
the device is unfolded.

Bug: 240146362
Test: locally tested + ran atest on DisplayRotationTests
Change-Id: I9869f5b070fecd7df70e08323dfacef8b883f470
2022-10-10 20:47:26 +01:00
Hyein Yu
4a61900115 Merge "Add FULL_ACCESS_CELL_BROADCAST_HISTORY permission to shell for CellBroadcast MTS test." am: 70d864fbf1 am: a7e087d1c8 am: 602d511bac
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2228942

Change-Id: If50745a2b18aef596ec55a8d14dcf506941eb5dd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-07 03:40:47 +00:00
Hyein Yu
602d511bac Merge "Add FULL_ACCESS_CELL_BROADCAST_HISTORY permission to shell for CellBroadcast MTS test." am: 70d864fbf1 am: a7e087d1c8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2228942

Change-Id: I9ba3595d7fd44d238ddaad8ba183cbeaa866b85c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-07 03:09:13 +00:00
Arthur Hung
8fcc92bb34 Refactor back navigation animtion (1/2)
In previous design, it would create all necessary leashes when starting
back navigation, and they would be carried by `BackNavigationInfo` and
`BackEvent` and would finally deliver to the shell and animator side.

In this CL, we will use the adapter that wraps a back animation runner
to deliver all leashes in next surface placement after back navigation
has started.

In shell side, every animator should be registered by type, so the
adapter could deliver leashes via IRemoteAnimationRunner to the
target animator, and invoke callback when it finished.

This also eliminated all unecessary fields from `BackNavigationInfo` and
`BackEvent`.

Bug: 241808055
Test: atest BackNavigationControllerTests BackAnimationControllerTest
      BackNavigationTest
Change-Id: I8bbec0d8d9631110c3d2788d958b50ae487520a7
2022-09-29 01:21:37 +00:00
Hyein Yu
7f0ea0a6ad Add FULL_ACCESS_CELL_BROADCAST_HISTORY permission to shell for CellBroadcast MTS test.
Grant FULL_ACCESS_CELL_BROADCAST_HISTORY permissions to the shell identity for use within CellBroadcast MTS tests.

Bug: 236217191
Bug: 227422973
Test: atest com.android.cellbroadcastreceiver.compliancetests.CellBroadcastConfigTest
Change-Id: Ief5a4c168968b4dc8c9cf7cc071618d41c23d220
2022-09-26 06:18:26 +00:00
Lucas Silva
58841ffe37 Merge "Add additional logging to dream enforcement logic to debug failures." into tm-qpr-dev am: 591f54ba80 am: b6fa124dc9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19970255

Change-Id: Ieb972fa8a3a223ba233170e6351f47c93575ca18
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-23 05:42:35 +00:00
Lucas Silva
b6fa124dc9 Merge "Add additional logging to dream enforcement logic to debug failures." into tm-qpr-dev am: 591f54ba80
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19970255

Change-Id: Iba9816ef1e6db30c5228589e6a77a5f5b9ef0f32
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-22 15:36:50 +00:00
Yuncheol Heo
650c211a27 Merge "Allow to show non-current users." 2022-09-22 14:05:25 +00:00
Philip Junker
9f07f3414e Merge "Remove unused ringtone sound file." 2022-09-21 07:13:05 +00:00
Lucas Silva
5ec702b7b0 Add additional logging to dream enforcement logic to debug failures.
Bug: 246091760
Test: n/a
Change-Id: I171225b28e0661bf0a0b1b0ef6bdb3a4e85f64ea
2022-09-20 00:49:57 -04:00
Prabir Pradhan
ad914db014 Add Android keycodes for stylus buttons
Ensure the new stylus buttons are not yet sent to apps.
DD: go/android-stylus-buttons

Bug: 246394583
Test: Build, Presubmit
Change-Id: I440a359ec8cffb60b9e87f2e51304c9b0320e16f
2022-09-16 15:42:23 +00:00
Philip Junker
84c8e4657e Remove unused ringtone sound file.
Bug: 246947420
Test: build and flash atd4-userdebug
Test: build and flash adt4_atv-userdebug
Test: atest RingtoneManagertest
Change-Id: I5531059aad27b65abff1a964d917e80738969c27
2022-09-16 14:12:54 +00:00
Vaibhav Devmurari
3884f99abe Merge "Add new keycodes to support keyboard backlight up/down/toggle" 2022-09-08 22:48:36 +00:00
Vaibhav Devmurari
bb12898ad3 Add new keycodes to support keyboard backlight up/down/toggle
Test: None
Bug: 245506418
Change-Id: I54b363cb8ae51e7c828cbc9d9dff1d6eb6050e6f
2022-09-08 16:25:12 +00:00
Chris Li
1fd7ea10e4 Merge "Collect embedded TaskFragment window changes" into tm-qpr-dev am: d0208d9292 am: 929e5378a0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19561152

Change-Id: I16357ce19bbb742dd0fc98b9fc7aef6416e210ac
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-07 06:07:54 +00:00
Chris Li
929e5378a0 Merge "Collect embedded TaskFragment window changes" into tm-qpr-dev am: d0208d9292
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19561152

Change-Id: If22315d886a178ffd74f0a60b21548ac9ab24f30
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-07 05:31:19 +00:00
Yuncheol Heo
f19e021764 Allow to show non-current users.
- Traditionally, we only show the current user and its profile users.
  But, to support the multi-display, multi-user system, we'd like to
  show the background users too.
- This CL will replace WMS.isCurrentProfile() with UMI.isUserVisible().

Bug: 239828153
Test: atest WmTests
Change-Id: Ie432e413aab256b6bac5d4537d19bdcbb0dd8956
2022-09-06 20:26:12 -07:00
Chris Li
d00861c46e Collect embedded TaskFragment window changes
To make sure the embedded TaskFragment surface will be updated when
Shell transition is enabled.

Bug: 207070762
Test: testApplyTransaction_collectTaskFragmentBeforeApplyChange
Change-Id: Id726b67cd30bd68e3ca4bc2665ab0a9024d76dab
2022-09-07 08:54:57 +08:00