Commit Graph

4936 Commits

Author SHA1 Message Date
Anthony Stange
b626ccc60c Merge "Correct ranges for pitch and roll" am: 68e875719b am: 99b930a64c am: 642b1fe32c am: e342a87830 am: 0979daca79
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1438054

Change-Id: I593928ddce2cdb5cfa8aba29ed1a57f0e0751954
2021-09-08 23:08:37 +00:00
Anthony Stange
0979daca79 Merge "Correct ranges for pitch and roll" am: 68e875719b am: 99b930a64c am: 642b1fe32c am: e342a87830
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1438054

Change-Id: Iaae0931dbe03a58dae2f8e3bc6755a4dfccb2927
2021-09-08 22:48:26 +00:00
Anthony Stange
e342a87830 Merge "Correct ranges for pitch and roll" am: 68e875719b am: 99b930a64c am: 642b1fe32c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1438054

Change-Id: Ib622b9acd726279758060cc0893cab229b24bcbc
2021-09-08 22:32:56 +00:00
Anthony Stange
642b1fe32c Merge "Correct ranges for pitch and roll" am: 68e875719b am: 99b930a64c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1438054

Change-Id: I90732615ad26b4d41d36e9b9b7034bd22f1f4b20
2021-09-08 22:11:40 +00:00
Anthony Stange
99b930a64c Merge "Correct ranges for pitch and roll" am: 68e875719b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1438054

Change-Id: If0c6aebc7ecb401d0f68a00a746f7ae337e4bb86
2021-09-08 22:01:31 +00:00
Anthony Stange
68e875719b Merge "Correct ranges for pitch and roll" 2021-09-08 21:34:34 +00:00
TreeHugger Robot
4744ea9af0 Merge "Framework changes for Context Hub AIDL" 2021-09-08 20:01:15 +00:00
Arthur Ishiguro
7fe2ba5702 Framework changes for Context Hub AIDL
Bug: 194285834
Test: Load on device
Change-Id: I3a0ffa7f3e8af0fa0d127f2e7176c3b0228ef989
2021-09-07 16:47:50 -07:00
Kevin Chyn
86436f3233 Merge "Add callback for when enrollment state changes" into sc-qpr1-dev am: ada5e05660 am: 1b28a2e7f0 am: 605ee86b14
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15730868

Change-Id: I940034fb791e28e6b455f8890d0980fe619117f8
2021-09-07 23:33:50 +00:00
Kevin Chyn
605ee86b14 Merge "Add callback for when enrollment state changes" into sc-qpr1-dev am: ada5e05660 am: 1b28a2e7f0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15730868

Change-Id: I70160fe34a2390e2d275d611b1b24fba1cf10ea8
2021-09-07 23:15:27 +00:00
Kevin Chyn
2f49c497e8 Merge "Add callback for when enrollment state changes" into sc-qpr1-dev am: ada5e05660
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15730868

Change-Id: I20576b5e8311c1ed641dcc2851f78f8286154dbc
2021-09-07 22:47:44 +00:00
Kevin Chyn
1b28a2e7f0 Merge "Add callback for when enrollment state changes" into sc-qpr1-dev am: ada5e05660
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15730868

Change-Id: Iea60534ff6f373cb022d2a43e138e73442b28443
2021-09-07 22:47:27 +00:00
TreeHugger Robot
bb56e9f505 Merge "Camera: Propogate onCameraOpened flag at listener registration" 2021-09-07 20:12:01 +00:00
Shuzhen Wang
5383387933 Camera: Propogate onCameraOpened flag at listener registration
- If camera is opened before the lister is registered, the corresponding
camera state needs to be propagated
- Handle the case of binder death

Test: testCameraManagerListenerCallbacks
Bug: 193475498
Change-Id: I4948c37750340e5e8edaf8b3fe290b1346f8c25c
2021-09-07 10:58:51 -07:00
Naomi Musgrave
fdf6dd0336 Merge "[MediaProjection] Store WindowContext in VirtualDisplay" into sc-v2-dev am: dce45ccae5 am: 8256a13f2c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15739903

Change-Id: Ifec5902688715652e3a89c504d7aadb047395c70
2021-09-03 10:49:21 +00:00
Naomi Musgrave
8256a13f2c Merge "[MediaProjection] Store WindowContext in VirtualDisplay" into sc-v2-dev am: dce45ccae5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15739903

Change-Id: Ie569e2e34788cb7f590520ad9e610c801887e47d
2021-09-03 10:38:47 +00:00
Naomi Musgrave
dce45ccae5 Merge "[MediaProjection] Store WindowContext in VirtualDisplay" into sc-v2-dev 2021-09-03 10:35:11 +00:00
Kevin Chyn
f7a019f584 Add callback for when enrollment state changes
Bug: 195663312

(New tests):
Test: manual, FingerprintManager no longer shows up in strict
      mode logs when changing keyguard states
Test: atest FingerprintStateCallbackTest

(Existing cases below):
Test: atest com.android.server.biometrics
Test: atest CtsBiometricsTestCases
Test: atest com.android.systemui.biometrics
Test: atest KeyguardUpdateMonitorTest

Change-Id: I57304f9ed938cbe4ec63683b826ead086cc33a5b
2021-09-02 16:11:04 -07:00
Naomi Musgrave
065f4d876e [MediaProjection] Store WindowContext in VirtualDisplay
Follow on from ag/15684817, where the WindowContext is cached in
MediaProjection. To allow multiple VirtualDisplays to be created
from the same MediaProjection, instead create a new WindowContext
for each one, and associate with that VirtualDisplay.

As before, the WindowContext must be stored in a field to prevent
it from being garbage collected.

Bug: 197579637
Bug: 198415847
Test: manual
Change-Id: If3f84b3778104bf12617d224876700f8ee3b2b45
2021-09-02 13:08:24 +00:00
Joe Bolinger
88fdc5060b Merge changes from topic "more-cancel-sc-qpr1-dev" into sc-qpr1-dev am: 16a7d2e7bd am: 02eb16d887 am: 1c6d4006c1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15727904

Change-Id: I815ef2d4fbcbdbedf5b0094ac8fe54875a41e98e
2021-09-01 22:54:32 +00:00
Joe Bolinger
4590f4a7c7 Merge "Add a default string for failures." into sc-qpr1-dev am: 7d26092122 am: ead0fe8093 am: 1e51b94ffa
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15671476

Change-Id: I39bf5e25d2bfbf19700aa6682f6b08b4ac4a34ea
2021-09-01 22:53:41 +00:00
Joe Bolinger
1c6d4006c1 Merge changes from topic "more-cancel-sc-qpr1-dev" into sc-qpr1-dev am: 16a7d2e7bd am: 02eb16d887
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15727904

Change-Id: I91c4de88902de11510d6ac79db5e9db61c4dc2ec
2021-09-01 22:36:28 +00:00
Joe Bolinger
1e51b94ffa Merge "Add a default string for failures." into sc-qpr1-dev am: 7d26092122 am: ead0fe8093
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15671476

Change-Id: I4fb9d5377ed2c11cbd9a2fc144f6f646088736c1
2021-09-01 22:36:14 +00:00
Joe Bolinger
02eb16d887 Merge changes from topic "more-cancel-sc-qpr1-dev" into sc-qpr1-dev am: 16a7d2e7bd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15727904

Change-Id: Id9964610269328c04806b44d10b9bb555b1f63e0
2021-09-01 22:23:39 +00:00
Joe Bolinger
c346dab881 Merge changes from topic "more-cancel-sc-qpr1-dev" into sc-qpr1-dev am: 16a7d2e7bd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15727904

Change-Id: Id8fb1fac31177116d974bd99f1056f6565d986ea
2021-09-01 22:23:23 +00:00
Joe Bolinger
ead0fe8093 Merge "Add a default string for failures." into sc-qpr1-dev am: 7d26092122
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15671476

Change-Id: I00b3c562eb7ac39d4b7c0a3fe5e16abe088235fd
2021-09-01 22:23:05 +00:00
Joe Bolinger
a77a337eda Merge "Add a default string for failures." into sc-qpr1-dev am: 7d26092122
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15671476

Change-Id: I4cabc454b70f147a1fad609ad5c5d1c9f92036f0
2021-09-01 22:22:46 +00:00
Joe Bolinger
16a7d2e7bd Merge changes from topic "more-cancel-sc-qpr1-dev" into sc-qpr1-dev
* changes:
  Add requestId to authentication entry points.
  Check cancel status whenever cookies are received.
2021-09-01 22:06:13 +00:00
Joe Bolinger
7d26092122 Merge "Add a default string for failures." into sc-qpr1-dev 2021-09-01 22:05:34 +00:00
Joe Bolinger
bdd477a5d1 Add requestId to authentication entry points.
The CancellationSignal passed into the authentication methods is not
associated with the request and can be used to cancel the current
operation, even if it is more recent. The new id prevents outdated
signals from being using.

Note that there are still issues with the Callbacks that are not
addressed (see bug for details).

Bug: 194405579
Bug: 189451155
Bug: 191716671
Test: atest com.android.systemui.biometrics com.android.server.biometrics

Change-Id: Id71be912cc88ae90df8087eb8f1a6fc3e110f883
2021-09-01 08:49:26 -07:00
Ady Abraham
fd3ff85879 Merge "DisplayManagerGlobal: fix native refresh rate callback registration" into sc-qpr1-dev am: c265f32026 am: a999a6220a am: 1b473a4d6b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15689742

Change-Id: I0abfb22dc5eb1bb1a20afd73eaf7dbf94b1eb038
2021-08-31 00:54:30 +00:00
Ady Abraham
1b473a4d6b Merge "DisplayManagerGlobal: fix native refresh rate callback registration" into sc-qpr1-dev am: c265f32026 am: a999a6220a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15689742

Change-Id: Ie85ca93f7ec1e4296d4e222c9bbf43201a5aff7e
2021-08-31 00:42:11 +00:00
Ady Abraham
a999a6220a Merge "DisplayManagerGlobal: fix native refresh rate callback registration" into sc-qpr1-dev am: c265f32026
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15689742

Change-Id: I36a45529613eb6cfc64a27ef5e424d57ea919698
2021-08-31 00:31:42 +00:00
Ady Abraham
c1d91ef5d2 Merge "DisplayManagerGlobal: fix native refresh rate callback registration" into sc-qpr1-dev am: c265f32026
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15689742

Change-Id: I1f37e1e8c0c3a6ced87634d195e795284578e3de
2021-08-31 00:31:42 +00:00
Rucha Katakwar
1a09d7445b Merge "Camera:Fix the memory leak caused during HFR mode." 2021-08-27 23:17:14 +00:00
Rucha Katakwar
236ed73e26 Camera:Fix the memory leak caused during HFR mode.
During high speed recording mode, it was observed that there was a
memory leak due to too many nodes at mPendingFrameNumbersWithOtherType
list. After ag/1962479 added batching for HFR it only updates the
FrameNumberTracker every 4 or 8 frames during high speed recording. This
change fixes that by updating every frame. A map is used to store
requestIds which have batchOutput. For every such requests we update
each frame in the batch in a for loop.

bug: 194618660

Test: 1. Did validity check with the change. Now frameNumber is incremented
by 1 instead of every 4 or 8 in FrameNumberTracker.
2. The mPendingFrameNumbersWithOtherType for otherType is empty during
HFR recording.
3. Verified using other modes of camera and did not observe any
crashes.
4. CTS tests Pass.

Change-Id: I2638e6663e7b70e4ef7a29dfeb27d423c9c7137d
2021-08-27 14:13:38 -07:00
Ady Abraham
0ee31107ed DisplayManagerGlobal: fix native refresh rate callback registration
When AChoreographer is the only callback registered with
DisplayManagerGlobal and there are no other display listeners,
DisplayManagerGlobal incorrectly skips callback registration with DMS.

Bug: 193945763
Test: atest DisplayManagerGlobalTest
Change-Id: I4b737fa0a91541fe331edcf3454724200e2db971
2021-08-27 20:26:46 +00:00
Android Build Prod User
922a3d588e Merge "Small formatting change in CCM matrix doc." 2021-08-25 19:14:23 +00:00
Clemenz Portmann
be0ee33657 Small formatting change in CCM matrix doc.
bug: 197741294

Change-Id: I00ea0887a7e2d35c8212ba2fe29c98ce02d2d8f6
2021-08-25 15:31:13 +00:00
Joe Bolinger
1cf97a94e0 Add a default string for failures.
Test: N/A
Fix: 196639965
Change-Id: I3db7c4e0837641ad6aa7094894df92d5b2581b0e
2021-08-25 02:48:16 +00:00
Mikhail Naganov
1571010b20 Move common audio AIDL types to audio.media.audio.common
The following types are being moved from 'android.media':
 - AudioChannelLayout
 - AudioFormatDescription
 - AudioFormatType
 - PcmType

AudioChannelLayout replaces legacy-based AudioChannelMask type.
AudioFormatDescription replaces legacy-based AudioFormat type.
Updated conversion functions.

Bug: 188932434
Test: atest AidlConversionUnitTests
Test: atest SoundHw2CompatTest
Test: atest SoundTriggerMiddlewareImplTest
Change-Id: Id002177f6b7f651389b59b0f476e6e2d28be4592
2021-08-24 14:27:11 -07:00
Mikhail Naganov
36173350d7 Add android.media.audio.common.AidlConversion class
This class is intended to host conversion functions
between the types from AIDL android.media.audio.common
packages and SDK Java API types, as well as legacy
system/audio.h (native) types.

Move existing conversion functions from Soundtrigger's
utility functions to AidlConversion.

Bug: 188932434
Test: atest SoundHw2CompatTest
Change-Id: I3041fce921112c06fb001638e35b26abb3fd0c72
2021-08-23 15:39:26 -07:00
Kenneth Ford
d7f8256ffc Merge changes from topic "top-focused-DevStMan" into sc-v2-dev am: c810e5c6dd am: dc540c0494
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15474618

Change-Id: I0b73daf3583e5e113ca1f997bdeb2271b8032447
2021-08-21 04:15:47 +00:00
Darryl L Johnson
1e6b17d9f4 Allow override requests to outlive the requesting process. am: 7dde391fc1 am: 34d5b8b16b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15377221

Change-Id: I8b100d79e09e9670777e47b040a64e9c734fcfc0
2021-08-21 04:15:33 +00:00
Kenneth Ford
dc540c0494 Merge changes from topic "top-focused-DevStMan" into sc-v2-dev am: c810e5c6dd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15474618

Change-Id: I353f3d5ff6c4ad4b3780cb729e62920d6eb2ce7f
2021-08-21 03:12:22 +00:00
Darryl L Johnson
34d5b8b16b Allow override requests to outlive the requesting process. am: 7dde391fc1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15377221

Change-Id: I828547ba4716ebdc0a1190423538887f839b279d
2021-08-21 03:12:17 +00:00
Kenneth Ford
1f70abe98d Allow top focused activities to call requestState
Previously you could only modify the device state
if you held the CONTROL_DEVICE_STATE permission. This
change allows top focused activities to do the same

Bug: 192671754
Test: atest DeviceStateManagerTests
Change-Id: Iba0c1800a1fb17024020e657b76a54eec9c89348
2021-08-20 22:58:36 +00:00
Darryl L Johnson
7dde391fc1 Allow override requests to outlive the requesting process.
This change introduces a flag, FLAG_CANCEL_STICKY_REQUESTS, on the
device states that are provided by the DeviceStateProvider. If the flag
is set on a device state it indicates that the device state should
cancel any outstanding sticky requests when entered. If at least one
device state is configured to be a terminal device state (has the flag
set) the service will be configured to allow sticky requests, otherwise
requests will continue to be cancelled when the requesting process dies.

Fixes: 192671286

Test: atest DeviceStateManagerServiceTest
Test: atest DeviceStateProviderImplTest
Test: atest DeviceStateTest
Test: atest OverrideRequestControllerTest
Change-Id: I7a6bdc9334342fa818920b56a4f0c22629bb101f
2021-08-20 20:59:05 +00:00
Jooyung Han
b51da7460f Merge "tuner: use typed Map<String, String>" am: 6f3ebef588 am: 150af91f9c am: 8a3b6fc1e6 am: 38bbe2b326 am: 773acea2ff
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1801772

Change-Id: I7178ae0a91a3cf36106152d26be2fb53070eaca4
2021-08-19 22:06:47 +00:00
Jooyung Han
773acea2ff Merge "tuner: use typed Map<String, String>" am: 6f3ebef588 am: 150af91f9c am: 8a3b6fc1e6 am: 38bbe2b326
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1801772

Change-Id: Ic5436a57c8a7e2fc32d9cecf76376c10d5a9c8a0
2021-08-19 21:53:33 +00:00