Commit Graph

640958 Commits

Author SHA1 Message Date
Nicolas Geoffray
6bc439fa55 Merge "Drop the O_NOFOLLOW flag." am: 0e41945e3a am: ee7d15d542 am: 7c53c538ac
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1679497

Change-Id: I8531bc7fd375d1a58c672dcba8d37eada4b4da40
2021-04-23 12:34:41 +00:00
TreeHugger Robot
780d7188ff Merge "Adds shift+capslock key combination to Virtual.kcm." into sc-dev 2021-04-23 12:29:34 +00:00
Riddle Hsu
25457d4257 Support PiP with fixed rotation
Add 2 cases with rotation change:
(a) Enter PiP from fullscreen.
    http://recall/-/d6GxE5mVL8Ww2IPnx7Nk0o/hDfmdrhrBFjJNOdi1s66OW
(b) Launch fullscreen app with the existing PiP.
    http://recall/-/d6GxE5mVL8Ww2IPnx7Nk0o/bUpHZ6Sh98zKZJnRM7oFy9

Steps of (a):
1. Task#setWindowingMode to PiP. If the next fullscreen activity
   will change display orientation, start fixed rotation on it.
   And start deferring orientation change.
2. PipTaskOrganizer#onFixedRotationStarted is called to mark it
   will be a special case.
3. PipTaskOrganizer#onTaskAppeared is called and starts the PiP
   rotation animation by animateResizePip with rotated destination
   bounds from rotated DisplayLayout.
4. When onPipAnimationEnd, use WCT#scheduleFinishEnterPip to notify
   that the animation is done, so the deferred orientation change
   can continue to update (PinnedTaskController#setEnterPipBounds).
   The end transaction of animation (reset matrix) is deferred
   until fixed rotation is finished. Also freeze the PiP task
   configuration one time, to avoid extra configuration change
   (letterboxed) by rotation change.
5. The seamless rotation starts, the PiP surface is transformed
   to previous rotation based on the bounds of previous step. So
   the PiP task can show the same orientation as rotated display.
   The frozen flag of PiP task configuration is cleared.
6. PipTaskOrganizer#onFixedRotationFinished is called. The final
   PiP destination bounds and the deferred transaction of step 4
   will be sent to WM.

Steps of (b):
1. Fixed rotation happens (PipTaskOrganizer#onFixedRotationStarted)
   when there is an existing PiP. Apply fade-out animation.
2. PipTaskOrganizer#onMovementBoundsChanged is called to update
   rotated destination bounds.
3. PipTaskOrganizer#onFixedRotationFinished is called to apply
   fade-in animation with new bounds.

Other changes:
- WCT#scheduleFinishEnterPip was used to set bounds and notify
  windowing mode change. That is already done by other config
  change oepration of WCT. So this redundant operation is changed
  to be a signal to notify that the PiP animation is done.
- Ignore calculating letterbox bounds for PiP activity because
  it should fill the task.
- Add PinnedTaskController#DEFER_ORIENTATION_CHANGE_TIMEOUT_MS
  to avoid using alpha animation after swiping from any task.
- Consider source rect hint with rotation.

Bug: 165794724
Bug: 175836469
Test: DisplayContentTests#testFixedRotationWithPip
      PipAnimationControllerTest#pipTransitionAnimator_rotatedEndValue

Change-Id: I2c26b5d93996193caaf020bd0e2314c8e1789545
2021-04-23 20:16:55 +08:00
Beverly
7770028a62 Add ability to customize haptics on auth success/fail
Temporary change for UX:
With adb commands, you can customize haptic feedback for fingerprint and
face authentication fail / success.

Test: manual, atest BiometricsSchedulerTest
Bug: 185124905
Change-Id: If2c1a23095a74edc40409ad2bfc35ca704852e19
2021-04-23 08:13:42 -04:00
Nicolas Geoffray
7c53c538ac Merge "Drop the O_NOFOLLOW flag." am: 0e41945e3a am: ee7d15d542
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1679497

Change-Id: Ie059d5363f2b1c0727aee64043a5149e2e679097
2021-04-23 12:13:35 +00:00
Alex Johnston
ad5cac3115 Remove PasswordMetrics.validatePasswordMetrics isPin param
* Remove isPin parameter and use actualMetrics.credType,
  which now includes CREDENTIAL_TYPE_PIN

Bug: 184103377
Test: manual testing
      atest com.android.server.devicepolicy.DevicePolicyManagerTest
      atest com.android.cts.devicepolicy.ProfileOwnerTest
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest
Change-Id: Ib79856b14981ef715c941e3cd56bd29ca196f3bb
2021-04-23 13:11:24 +01:00
TreeHugger Robot
e9c115e9b2 Merge "Update Geocoder docs to strengthen warnings" into sc-dev 2021-04-23 12:10:53 +00:00
TreeHugger Robot
c59b1057d8 Merge "Use LruCache to cache advanced bluetooth deivce icon" into sc-dev 2021-04-23 11:59:04 +00:00
Nicolas Geoffray
ee7d15d542 Merge "Drop the O_NOFOLLOW flag." am: 0e41945e3a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1679497

Change-Id: I6cb244f2f67945e4ac8d89fcdd33d35129c5ad13
2021-04-23 11:54:05 +00:00
Anton Hansson
dda049457b Merge "Rename and move stub defaults to modules/common" am: 373a27036b am: 3d7a4355c1 am: 25adb03255
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1675888

Change-Id: I0a4eb4cf84973274920b4614f8eac63db38b7551
2021-04-23 11:41:56 +00:00
Nicolas Geoffray
0e41945e3a Merge "Drop the O_NOFOLLOW flag." 2021-04-23 11:29:01 +00:00
Anton Hansson
25adb03255 Merge "Rename and move stub defaults to modules/common" am: 373a27036b am: 3d7a4355c1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1675888

Change-Id: I970124c77daf9c1ad8cc5b00ca53e5eb4adc60f1
2021-04-23 11:18:17 +00:00
Neil Fuller
1b2c66567e Merge "Move tests to CTS" into sc-dev 2021-04-23 10:58:22 +00:00
Anton Hansson
3d7a4355c1 Merge "Rename and move stub defaults to modules/common" am: 373a27036b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1675888

Change-Id: I92bbdb7df4608727e7110c524fa61b14128b5f45
2021-04-23 10:56:28 +00:00
Bill Yi
3af16a21a1 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ibb04aca134acc59a620d5bf0b3c24b0d9c70cb91
2021-04-23 10:51:37 +00:00
Bill Yi
9bd54c3212 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I527357a76cb3869fc386750b2a0b9d165758d2f5
2021-04-23 10:48:06 +00:00
Yi-Ling Chuang
4b014fbac2 Add fade through threshould to the transition
Fixes: 177480673
Test: rebuild
Change-Id: I5dde8d990e437717bc0a52fa522ea13105af6cde
2021-04-23 18:47:04 +08:00
Ricky Wai
81a9d50ccf Merge "Allow current active live wallpaper app to bypass app switching protection" into sc-dev 2021-04-23 10:45:21 +00:00
Bill Yi
d22ffe4721 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I4479640b70f498fe7963c2417a372455a4843fe0
2021-04-23 10:44:37 +00:00
Bill Yi
1c65436484 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I02d7c362b5208b6ae67e0481904003a2351c50f8
2021-04-23 10:41:38 +00:00
Bill Yi
74090c7054 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ifd1bbd6e2bae61f1bbe0bcd9a00d7a179c1cb5d7
2021-04-23 10:40:08 +00:00
Anton Hansson
373a27036b Merge "Rename and move stub defaults to modules/common" 2021-04-23 10:38:25 +00:00
Kholoud Mohamed
3a7975ee33 Merge "Changed dpm shell commands to use 'cmd device_policy'" into sc-dev 2021-04-23 10:02:54 +00:00
Alex Johnston
06abbc7d47 Fix installKeyPair cred mng app access control
* Should not be user selectable

Bug: 186159641
Test: atest android.devicepolicy.cts.CredentialManagementAppTest
Change-Id: Ie1ddbe79ed5fe6e9aba33aeb3fd92fe275a48d47
2021-04-23 11:01:09 +01:00
Flavio Fiszman
249cef5cf5 Check if username is null
Change-Id: If5409e98f9e5a9bca4fea111af3a463bdf86324b
Test: manual
Bug: 185916268
2021-04-23 10:32:51 +01:00
Shan Huang
fd0acf04c5 Merge "Support setting charger port location via config." into sc-dev 2021-04-23 09:16:32 +00:00
Fiona Campbell
79ec034fdd Allow sensors to be specified per display
Add a field in display device configurations that allows sensors to be stored.
Read the sensor type and name through dpc.

Bug: 128782163
Test: manual
Change-Id: I4cd778fca085b398b21457104a6a58ad0dae46e2
2021-04-23 10:14:30 +01:00
Galia Peycheva
460ce763eb Fix synchronization for BlurController.mBlurEnabled
Bug: 177523043
Test: atest BlurTests
Change-Id: Ia730c29aa94e7fcbe09c640e891d6e03bda224d6
2021-04-23 11:14:15 +02:00
Galia Peycheva
85bb3e4da0 Use global setting instead of forceWindowBlurDisabled
This CL removes the existing TestApi
WindowManager#setForceCrossWindowBlurDisabled and replaces it
with Settings.Global#ENABLE_WINDOW_BLURS.

Bug: 14186649
Test: m && atest BlurTests
Change-Id: Ia15b7932ea973a9ed195c507558cdc71f194b366
2021-04-23 11:13:43 +02:00
mavishsu
b2c772f0b3 Adds shift+capslock key combination to Virtual.kcm.
Bug: 185564467
Test: Manual test.
1. Push modified Virtual.kcm file to the device
2. Check caps+shift can input lowercase letters

Change-Id: I9f78ce7f8f6690db08958241b5baf3c9fce04b10
2021-04-23 08:58:58 +00:00
Vadim Caen
7817164210 API to override the splashscreen theme
By default, the SplashScreen uses the manifest theme.
This API allows user to change the theme used for the splashcreen for
the whole application.

Test: atest CtsWindowManagerDeviceTestCases:SplashscreenTests#testOverrideSplashscreenTheme
Bug: 185109768

Change-Id: I64e24910f6529a0ea2867b67d7e5963b971164b4
2021-04-23 10:53:59 +02:00
Bill Lin
4add47c730 Merge changes I741b1915,Ida2f23da into sc-dev
* changes:
  2/ Migrate isInOneHanded() in OneHandedState
  1/ Add OneHandedState to manage the transition flow
2021-04-23 08:37:07 +00:00
Louis Chang
1637653a78 Merge "Try fixing the flakiness of TaplTestsQuickstep#testSwitchToOverview" into sc-dev 2021-04-23 08:34:36 +00:00
Treehugger Robot
ee8a15ba74 [automerger skipped] Merge "bpfmt native/android/Android.bp" am: b33f9df49c am: f91d043cfc am: 0a653daa3e -s ours
am skip reason: skip tag Change-Id I444579e5672b3bc421f7e73f27bb0d12d92a9a03 with SHA-1 b16eb69e6d is already in history

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

Change-Id: I8ef039408595fa8b28718c9f4e3691c2d95e2e85
2021-04-23 07:59:27 +00:00
Winson Chung
d743386cc3 Merge "Update launch cookie when moving a task to front" into sc-dev 2021-04-23 07:37:37 +00:00
Treehugger Robot
0a653daa3e Merge "bpfmt native/android/Android.bp" am: b33f9df49c am: f91d043cfc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1684528

Change-Id: I5657c340dc381858e5f2edddc6ee8c515e01b4b5
2021-04-23 07:36:38 +00:00
Charles Chen
467ebb6069 Verify IME switch dialog on DualDisplayContent
The current WindowContext mechanism has already covered
the case when ImeContainer reparent to another RootDisplayArea.
When ImeContainer is moved, it sends a onConfigurationChanged
callback, which propagates to the associated WindowContext
and updates its Resources.
Add a test to verify IME switch dialog behavior on display
with dual RootDisplayArea.

fixes: 178462039
Test: atest InputmethodMenuControllerTest

Change-Id: If880ff7207a12d509e8bc37a99583280c793e38c
2021-04-23 15:22:18 +08:00
Treehugger Robot
f91d043cfc Merge "bpfmt native/android/Android.bp" am: b33f9df49c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1684528

Change-Id: Ieabf281255a870d5bb54df317f57ae8a148a70a4
2021-04-23 07:16:36 +00:00
Remi NGUYEN VAN
f520ca6ea4 [automerger skipped] Merge "Use connectivity resources in service-connectivity" am: efcd27a0dc am: 10c557f3c6 am: de6d2772ed -s ours
am skip reason: skip tag Change-Id I778d94a5aac0c4e20e78b1ba3a002495c17a38a0 with SHA-1 6211f92cc6 is already in history

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

Change-Id: Iacd373f6c0e9296aa90d2cd366cd81868f37cfa7
2021-04-23 06:57:14 +00:00
Remi NGUYEN VAN
c9fd0e57e2 Merge "Add AOSP certificates for connectivity resources" am: 410973d590 am: 1f2fdb0668 am: 3c436880d5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1684645

Change-Id: Ia7809d391c86f2a9aa5ce43a5d3f4c145bf12e2c
2021-04-23 06:56:38 +00:00
Treehugger Robot
b33f9df49c Merge "bpfmt native/android/Android.bp" 2021-04-23 06:48:09 +00:00
Remi NGUYEN VAN
de6d2772ed Merge "Use connectivity resources in service-connectivity" am: efcd27a0dc am: 10c557f3c6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1646967

Change-Id: I919b54b5527fbe3f9609c6ae70a31a651e4fda90
2021-04-23 06:36:06 +00:00
Remi NGUYEN VAN
3c436880d5 Merge "Add AOSP certificates for connectivity resources" am: 410973d590 am: 1f2fdb0668
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1684645

Change-Id: Ifa29b6c542a1b229d5fe32cf81c5189541af3f28
2021-04-23 06:35:34 +00:00
Louis Chang
8b5afd93b6 Do not relaunch bg activities when application info changes
Update the configurations via ActivityTaskManager to prevent the
activities being relaunched while in background. Instead, the
activities will be relaunched after brought to front and being visible.

This also prevents all activities in the system being relaunched
at the same time.

Bug: 185301309
Test: update app info via shell command while activity in background
Change-Id: Ibf93b9e3f203578c25e0b6b50494065938790f24
2021-04-23 14:34:38 +08:00
TreeHugger Robot
32a48b01f0 Merge "Fix magnification bounds cut out with floating a11y button" into sc-dev 2021-04-23 06:14:21 +00:00
Remi NGUYEN VAN
10c557f3c6 Merge "Use connectivity resources in service-connectivity" am: efcd27a0dc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1646967

Change-Id: I2169a7c0c8b5eb1073789ffc115cdec73fbe3ab8
2021-04-23 06:10:14 +00:00
TreeHugger Robot
9efd8c3d35 Merge "Make PendingIntent mutable in UiModeManger" into sc-dev 2021-04-23 06:09:32 +00:00
TreeHugger Robot
74c93b7ba8 Merge "Camera: Update streamConfigurationMap doc for 1080p min JPEG size" into sc-dev 2021-04-23 06:09:14 +00:00
Remi NGUYEN VAN
1f2fdb0668 Merge "Add AOSP certificates for connectivity resources" am: 410973d590
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1684645

Change-Id: Ia8e130fe84aecefb29ee8eded1fa480517ac4ebf
2021-04-23 06:05:36 +00:00
Shan Huang
677600f973 Support setting charger port location via config.
Test: Manual
Bug: 182719493
Change-Id: I20baedc860b7cffa66a1f28fe678516e5efce52f
2021-04-23 14:04:12 +08:00