Commit Graph

4124 Commits

Author SHA1 Message Date
TreeHugger Robot
e7b9355f40 Merge "Camera: Regenerate javadocs due to format change" 2020-12-07 18:52:13 +00:00
Shuzhen Wang
596f4790e1 Camera: Regenerate javadocs due to format change
The new docs make sure <ul></ul> tags outside of <p></p> enclosures

Test: Build and read docs
Change-Id: I3c62509148e5658e2f66d384618a527bbd35ef44
2020-12-04 15:44:33 -08:00
Jeff Sharkey
db4ae71beb Merge changes from topic "nov30"
* changes:
  Hand-migration to TypedXml interface.
  Mechanically apply TypedXml refaster template.
  Mechanical refactoring to new typed XML classes.
  Additional hand-migration to TypedXml interface.
  "Resolve" both human-readable and binary XML.
2020-12-04 21:32:44 +00:00
Kevin Chyn
10a7843d33 Merge "Add sensorId to biometric sensor proto dumpsys" 2020-12-03 19:20:29 +00:00
TreeHugger Robot
5e697c4ea6 Merge "Camera: Document behavior when cropRegion and zoomRation conflict" into rvc-qpr-dev am: cf91d4b9b9 am: a3b333b619
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13145508

Change-Id: I3d4b7164e45f375f97806769b4bcac879088d4db
2020-12-03 18:00:02 +00:00
TreeHugger Robot
0d3d16b4d1 Merge "Rename send_standby_on_sleep in constants and methods" 2020-12-03 16:58:40 +00:00
TreeHugger Robot
a3b333b619 Merge "Camera: Document behavior when cropRegion and zoomRation conflict" into rvc-qpr-dev am: cf91d4b9b9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13145508

Change-Id: Iacdbb68dfd551718cf513e887211c82297d8f651
2020-12-03 16:56:28 +00:00
TreeHugger Robot
cf91d4b9b9 Merge "Camera: Document behavior when cropRegion and zoomRation conflict" into rvc-qpr-dev 2020-12-03 16:46:12 +00:00
Nathalie Le Clair
4dc6b1793a Rename send_standby_on_sleep in constants and methods
Updated the name to better represent the usage of this setting.
The values of the constants remain the same to ensure compatibility.

Bug: 169145038
Test: atest HdmiCecLocalDevicePlaybackTest
Change-Id: Ieba3d94d5db52d39f717b525a8b8ed6e6587b132
2020-12-03 15:47:38 +01:00
TreeHugger Robot
895fc96bc7 Merge "usb: Remove IntDef flag when it isn't a flag" 2020-12-03 11:03:08 +00:00
raychi
920381237f usb: Remove IntDef flag when it isn't a flag
Some Int Def annotations were marked with `flag=true` by mistake.
This commit will remove the definition so that the flag
will be marked as false by default.

Bug: 174239412
Test: full build pass
Change-Id: I32328d76699e396c53dfc62768b2cd24ab48cabd
2020-12-03 06:38:28 +00:00
Kevin Chyn
1c0d722a91 Add sensorId to biometric sensor proto dumpsys
Test: atest CtsBiometricsTestCases
Change-Id: I418fcfb9948be9693889a69cdbd0df4efe919793
2020-12-02 17:27:46 -08:00
TreeHugger Robot
94a8347051 Merge "Add TestApi for setRefreshRateSwitchingType" 2020-12-02 21:07:04 +00:00
Jeff Sharkey
a2c132d9c6 Hand-migration to TypedXml interface.
Previous changes have applied mechanical refactorings, but this change
hand-migrates the remaining logic which was too complex to identify.

This change should have no behavior change; famous last words.

Bug: 171832118
Test: manual
Exempt-From-Owner-Approval: trivial refactoring
Change-Id: I85cd830eb6bfde18fca6e73ee7adfdc385a890de
2020-12-02 13:55:35 -07:00
TreeHugger Robot
bce2821854 Merge changes from topic "r3_flicker_high_brightness" into rvc-qpr-dev am: 11bee77de6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12936277

Change-Id: I10794b1337fca712f2c751ce01b87ea86977cfdf
2020-12-02 01:47:20 +00:00
Treehugger Robot
30ab518467 Merge "HDMICEC: Override hashCode in HdmiDeviceInfo" am: 1d59ab8486 am: 76f22955a6 am: 8bee663c01
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1460262

Change-Id: Ic457b69bdd32bc932aa1266c556ffe7ccdb5c21e
2020-12-02 01:44:41 +00:00
Treehugger Robot
8bee663c01 Merge "HDMICEC: Override hashCode in HdmiDeviceInfo" am: 1d59ab8486 am: 76f22955a6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1460262

Change-Id: I45b89565e6375c9231de0e36698fd025ab317d13
2020-12-02 01:35:34 +00:00
TreeHugger Robot
11bee77de6 Merge changes from topic "r3_flicker_high_brightness" into rvc-qpr-dev
* changes:
  Allow DeviceConfig to change display settings for high zone
  Set fixed fps when ambient or display brightness is high
  Add FakeSettingsProviderRule class
2020-12-02 01:05:39 +00:00
Eino-Ville Talvala
686d7aa0d8 Fix up some camera API javadocs am: 66a993beeb am: 804134ab87 am: bfa0ffbb9f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13061797

Change-Id: Ia7c1e4c1ba0a926681148cf6c5e10e769c5bb4a9
2020-12-01 22:53:16 +00:00
Eino-Ville Talvala
bfa0ffbb9f Fix up some camera API javadocs am: 66a993beeb am: 804134ab87
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13061797

Change-Id: I26aa22702b35761b2ec43e11369514aef80ce663
2020-12-01 22:37:40 +00:00
Eino-Ville Talvala
804134ab87 Fix up some camera API javadocs am: 66a993beeb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13061797

Change-Id: Iaa8732c416f259b2bcf12733bd7afd1f707e0639
2020-12-01 22:24:13 +00:00
Shuzhen Wang
dc921d86ad Camera: Document behavior when cropRegion and zoomRation conflict
In case cropRegion == windowboxing and zoomRatio != 1.0f, specify the
camera framework behavior of overriding cropRegion.

Test: Build
Bug: 172873869
Change-Id: Ic7713260cdd5f51e422be330534dd1e5648ba2fc
2020-12-01 09:35:00 -08:00
Marin Shalamanov
019f990cd1 Add TestApi for setRefreshRateSwitchingType
This CLs adds a test API to replicted the behaviour of the
MATCH_CONTENT_FRAME_RATE user setting. This is intended to
be used from CTS.

Bug: 157504046
Bug: 171952409
Test: atest MatchContentFrameRateTest
Change-Id: I90d9a0d019cdb908b3b13328a78fe370676ad064
2020-12-01 16:15:41 +01:00
Michael Wright
cf55c21064 Allow DeviceConfig to change display settings for high zone
Allow DeviceConfig to change the high zone behavior including
refresh rate and brightness thresholds.

Bug: 166581675
Test: atest DisplayModeDirectorTest
Test: adb shell device_config put display_manager refresh_rate_in_high_zone "90"
Test: adb shell device_config put display_manager fixed_refresh_rate_high_display_brightness_thresholds "200"
Test: adb shell device_config put display_manager fixed_refresh_rate_high_ambient_brightness_thresholds "8000"
Change-Id: I2ac8d95f976748d03f6dc2e60725e9ef1213ed6f
Merged-In: I2ac8d95f976748d03f6dc2e60725e9ef1213ed6f
2020-12-01 19:31:52 +08:00
Jeff Sharkey
8f43151721 Mechanically apply TypedXml refaster template.
This is a purely mechanical CL that applies the output of the
recently added refaster templates to help guide towards more
efficient TypedXml methods.  There is no behavior change.

Bug: 171832118
Test: manual
Exempt-From-Owner-Approval: trivial refactoring
Change-Id: Ic95dd3de77c60482ad36b31706e6b701929f40b3
2020-11-30 20:45:40 -07:00
Jeff Sharkey
236c03b5c3 Mechanical refactoring to new typed XML classes.
Related changes are introducing new TypedXmlSerializer and
TypedXmlPullParser interfaces which offer efficient access to
primitive attributes.

Bug: 171832118
Test: manual
Exempt-From-Owner-Approval: trivial refactoring
Change-Id: Ibd93f353ff3cb1f0b7073ebbeae17fe5194b046b
2020-11-30 20:45:25 -07:00
TreeHugger Robot
a01f750588 Merge changes from topic "r3_flicker_master"
* changes:
  Allow DeviceConfig to change display settings for high zone
  Set fixed fps when ambient or display brightness is high
2020-12-01 03:32:49 +00:00
Michael Wright
579350903c Allow DeviceConfig to change display settings for high zone
Allow DeviceConfig to change the high zone behavior including
refresh rate and brightness thresholds.

Bug: 166581675
Test: atest DisplayModeDirectorTest
Test: adb shell device_config put display_manager refresh_rate_in_high_zone "90"
Test: adb shell device_config put display_manager fixed_refresh_rate_high_display_brightness_thresholds "200"
Test: adb shell device_config put display_manager fixed_refresh_rate_high_ambient_brightness_thresholds "8000"
Change-Id: I2ac8d95f976748d03f6dc2e60725e9ef1213ed6f
2020-11-30 18:39:21 +08:00
Lais Andrade
e320282bba Extract input device vibrators code from VibratorService
This code will also be migrated to VibratorManagerService, to give
preference to input devices over the devices vibrators when the user
setting enables it.

This need to remain a server-side code so permissions/setting will be
applied to system vibrations even when they are redirected to input
devices (including vibration scaling).

Bug: 167946816
Bug: 131311651
Test: atest FrameworksServiceTests:VibratorServiceTest
      atest FrameworksServiceTests:InputDeviceVibratorsTest
Change-Id: I6c61c3f20e4d82d44af136917d3755d9f6edd31f
2020-11-25 14:35:35 +00:00
Ady Abraham
d90ac7139c Merge "Handle DISPLAY_EVENT_FRAME_RATE_OVERRIDE" 2020-11-23 23:20:48 +00:00
Ady Abraham
15d23d83a7 Handle DISPLAY_EVENT_FRAME_RATE_OVERRIDE
When getting DISPLAY_EVENT_FRAME_RATE_OVERRIDE from SurfaceFlinger,
expose the overridden frame rate to the relevant application
if the current refresh rate allows that.

Bug: 169271059
Bug: 169271062
Bug: 170503758
Test: manual test using SF backdoor
adb shell service call SurfaceFlinger 1039 i32 <uid> f <refresh rate>

Change-Id: I6ae1a98e6ca13e9d3d095a5713a6b0ca99652256
2020-11-23 20:02:48 +00:00
Venkatarama NG. Avadhani
61e6793d24 HDMICEC: Override hashCode in HdmiDeviceInfo
Adds hashCode override and equals test for the class.

Bug: 168713324
Test: atest HdmiDeviceInfoTest
Change-Id: I77f7a4da113785573718a16895a988de7fff6b0b
2020-11-23 09:49:52 +05:30
Kevin Chyn
fdf810a455 Update framework for fingerprint and multi-biometric CTS
Bug: 173453845
Test: atest CtsBiometricsTestCases

Change-Id: I9d43f362570a2b610af7bfb07c112e0904acc8f4
2020-11-20 17:53:36 -08:00
TreeHugger Robot
1c1acd45d0 Merge "Camera: Enhance camera atoms for system health" 2020-11-19 18:22:50 +00:00
TreeHugger Robot
8faa09f68f Merge "Source device to toggle and follow TV power" 2020-11-19 16:13:44 +00:00
Sean Stout
7790b73220 Implement Phase 5 of Separate Power States
DisplayPowerRequestManager listens for the addition, removal, and change
of Displays and will appropriately create DisplayPowerRequests to manage
their power states.

At this stage the DisplayPowerRequests are simply created; only the
DisplayPowerRequest associated with the default display is interacted
with.

Test: manual
Bug: 138328918
Change-Id: I03f0c95aa23fc711d8d66150f315eed52bc57b2c
2020-11-18 22:38:09 -08:00
Shuzhen Wang
b2443990e9 Camera: Enhance camera atoms for system health
Introduce camera system health atoms, including:
- Camera open, close, and session creation time
- Camera session and stream combination information,
- Stream statistics:
  - stream width, height, format, dataspace, usage flag,
  - max buffer count
  - buffer loss
  - first frame latency.

Test: ./out/host/linux-x86/bin/statsd_testdrive 227
Test: CTS PerformanceTest
Bug: 154159000
Change-Id: I858d64f3324bb9652a59e5857f2730c92c616a8e
2020-11-18 09:49:17 -08:00
Kevin Chyn
ed128abf43 Merge "Add sensorId to IFingerprintService#authenticate" 2020-11-17 19:26:11 +00:00
Nathalie Le Clair
6815a7ce80 Source device to toggle and follow TV power
For source devices, toggleAndFollowTvPower() will result in
1. Toggling of the HDMI-connected display (=TV) power state over CEC
2. The source device following the TV power state

Bug: 167962015
Test: atest HdmiCecLocalDevicePlaybackTest

Change-Id: I1881c279143075629e590501de82fadc3e1d56d6
2020-11-17 14:01:38 +01:00
Kevin Chyn
8fa1280e2d Add sensorId to IFingerprintService#authenticate
Adds permission-protected sensorId parameter for internal clients.

Fixes: 173046031
Test: atest KeyguardUpdateMonitorTest
Change-Id: I5ccea9f55ae0d541fc381a24549695b32b797ef6
2020-11-16 16:12:10 -08:00
Aurimas Liutikas
59d98a07a9 Merge "Remove legacy style metalava suppression" am: e1bb600fc7 am: 66574f225e am: 1c505e8cda
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1421698

Change-Id: Ib1b078a6e6c6e19391277d19c0f8d748eee6300b
2020-11-16 21:40:21 +00:00
Aurimas Liutikas
1c505e8cda Merge "Remove legacy style metalava suppression" am: e1bb600fc7 am: 66574f225e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1421698

Change-Id: Idd656e3803c247b03808259c582599898c064b27
2020-11-16 21:13:46 +00:00
Kevin Chyn
b55a8d49e9 Merge changes from topic "biometricservice-cts"
* changes:
  Initial implementation of BiometricManager TestApis
  Add BiometricManager#getUiPackage TestApi
2020-11-16 18:50:24 +00:00
Aurimas Liutikas
e1bb600fc7 Merge "Remove legacy style metalava suppression" 2020-11-16 17:40:07 +00:00
TreeHugger Robot
baf630d362 Merge changes from topic "USB-GADGET-HAL-v1.2"
* changes:
  Add methods for Usb Gadget Hal v1.2
  Support USB Gadget V1.2 HAL
2020-11-16 10:43:46 +00:00
Eino-Ville Talvala
66a993beeb Fix up some camera API javadocs
Test: m offline-sdk-docs
Bug: 173204437
Change-Id: If333d6fd5023d0bc5d778437d1745dcd209ccbd9
Merged-In: If333d6fd5023d0bc5d778437d1745dcd209ccbd9
2020-11-15 23:58:33 +00:00
TreeHugger Robot
886277e4d0 Merge "Fix up some camera API javadocs" 2020-11-14 06:37:43 +00:00
Kevin Chyn
3eb5c9c2d7 Initial implementation of BiometricManager TestApis
1) Finishes Face10 test implementation

2) Adds createTestSession and getSensorProperties to
   IBiometricAuthenticator. This way, BiometricService, which
   is the source of truth for all sensors is able to implement or
   forward TestApi requests as appropriate.

3) Removes a few unused parameters (callingUid, callingPid,
   callingUserId)

4) Moves proto def to a biometric proto. This is basically the
   common TestApi equivalent for getting states of _any_ sensor
   service (FingerprintService, FaceService, etc)

5) Moves AuthSession states to biometric.proto

6) Updates SysUI components to use separate positive buttons
   for better readability and testing

Bug: 171357779
Test: atest CtsBiometricsTestCases on fingerprint/face devices
Test: atest com.android.server.biometrics

Change-Id: I5d884d4a9f4afa3f947eb4587e869bacd6b2f805
2020-11-13 20:05:16 -08:00
Eino-Ville Talvala
5671dcdfb6 Fix up some camera API javadocs
Test: m offline-sdk-docs
Bug: 173204437
Change-Id: If333d6fd5023d0bc5d778437d1745dcd209ccbd9
2020-11-13 17:51:02 -08:00
Kevin Chyn
ef4cd62246 Add BiometricManager#getUiPackage TestApi
Bug: 171357779
Test: atest CtsBiometricsTestCases
Change-Id: I3847c7bf63260ebef8436704826af37e15f2da92
2020-11-13 17:50:12 -08:00