Commit Graph

4162 Commits

Author SHA1 Message Date
Clemenz Portmann
f2f545d7a0 Merge "Change android.testPatternData --> android.control.testPatternData" 2020-12-11 22:18:29 +00:00
Eino-Ville Talvala
5d8bb26337 Change android.testPatternData --> android.control.testPatternData
Test: Builds
Bug: 173154486
Change-Id: I0b47857d3c223c31035b9376c3a626cbce4a1826
2020-12-11 12:13:06 -08:00
Michael Groover
202f0a9e7b Merge "Add OWNERS for sensor privacy" am: 05c699d02e am: f2c250acb9 am: 272b06dce4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1520165

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib7e85018f7677944dbdd7417bbfbbc8a6824be68
2020-12-11 10:54:34 +00:00
Treehugger Robot
7bf6618a7c Merge "HDMICEC: Change hashcode for HdmiPortInfo" am: d8cd3c7d2d am: 8f4bb0a2a5 am: d489358491
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1483970

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4b51ab9aca8ae4708dc1b276eb23f549f3e13fcc
2020-12-11 10:52:27 +00:00
Nicolas Geoffray
2fe5ed0076 Merge "Remove FastNative annotations on synchronized methods." 2020-12-11 08:52:40 +00:00
TreeHugger Robot
f52311f658 Merge "Add dumpsys and shell cmd for sensor_privacy" 2020-12-11 04:35:56 +00:00
Evan Severson
c4e6b081b2 Merge "Create a state for the camera and microhpone toggles" 2020-12-11 02:18:21 +00:00
TreeHugger Robot
c65da8c73f Merge "Camera: improve session.close documentation" 2020-12-10 22:58:33 +00:00
Michael Groover
272b06dce4 Merge "Add OWNERS for sensor privacy" am: 05c699d02e am: f2c250acb9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1520165

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4c6999ee0d59f4424cced74423c174bcfcdeeaa3
2020-12-10 19:48:56 +00:00
Michael Groover
05c699d02e Merge "Add OWNERS for sensor privacy" 2020-12-10 19:24:46 +00:00
Yin-Chia Yeh
4991ba70c9 Camera: improve session.close documentation
Added descriptio about preferred way to close camera faster.

Test: build (doc only update)
Bug: 175104220
Change-Id: I750b57afab65b4e77fff6ef79ec64dcebe74e47f
2020-12-10 11:11:58 -08:00
TreeHugger Robot
270499876f Merge "camera2: Mark onCameraOpened/Closed callbacks @SystemApi." 2020-12-10 18:36:31 +00:00
Treehugger Robot
d489358491 Merge "HDMICEC: Change hashcode for HdmiPortInfo" am: d8cd3c7d2d am: 8f4bb0a2a5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1483970

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If924ee797a4d75c93840ea2947d754de30a9f58a
2020-12-10 16:33:04 +00:00
Treehugger Robot
d8cd3c7d2d Merge "HDMICEC: Change hashcode for HdmiPortInfo" 2020-12-10 15:59:53 +00:00
TreeHugger Robot
2c70cd586b Merge changes I944dc1cd,I97c962d5
* changes:
  Track CEC version of CEC devices
  Add HdmiDeviceInfo#mHdmiCecVersion
2020-12-10 12:23:49 +00:00
TreeHugger Robot
ea748be0c9 Merge "Add change id for FLAG_SLIPPERY" 2020-12-10 11:34:06 +00:00
Philip P. Moltmann
6a227526f1 Add dumpsys and shell cmd for sensor_privacy
E.g.

> adb shell dumpsys sensor_privacy
SENSOR PRIVACY MANAGER STATE (dumpsys sensor_privacy)
{
  is_enabled=false
}

> adb shell cmd sensor_privacy enable microphone

> adb shell dumpsys sensor_privacy
SENSOR PRIVACY MANAGER STATE (dumpsys sensor_privacy)
{
  is_enabled=false
  individual_enabled_sensor={
    sensor=1
    is_enabled=true
  }
}

Bug: 162549680
Test: Above shell commands
Change-Id: I5700ff5b0aae4f64d3bf54b5c51d8ab2779e5abf
2020-12-09 14:42:41 -08:00
Jeff Sharkey
507b4cba66 Merge "Add OWNERS to HDMI control directories" am: fd2f7c893a am: b76f77b9b0 am: 577ee1b6d5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519668

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Icff446e33de2eed8829c605aaedf88d2aeee096e
2020-12-09 20:19:20 +00:00
Jeff Sharkey
577ee1b6d5 Merge "Add OWNERS to HDMI control directories" am: fd2f7c893a am: b76f77b9b0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519668

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I02dfb322253ba59376fe0f63feae055f01eabe3f
2020-12-09 18:48:31 +00:00
Jeff Sharkey
b76f77b9b0 Merge "Add OWNERS to HDMI control directories" am: fd2f7c893a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519668

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8d8dd902baec65abec93557d00a22ad3fcd66347
2020-12-09 18:02:00 +00:00
Evan Severson
41d80b9bb0 Create a state for the camera and microhpone toggles
This change adds the simple getters and setters for the state of the
toggles. The persisted xml format is backwards compatible so no
migration is needed.

Test: None for new state
      Verify old sensor mute works the same
Bug: 162549680

Change-Id: I6a1ef9c703cc5d175c1a5f788a3559eabf0054ad
2020-12-09 09:48:19 -08:00
Marvin Ramin
3b69e14e9a Add OWNERS to HDMI control directories
Test: n/a
Change-Id: I8e77822bb0a87c8b397be28d60528a35b0eda7b2
2020-12-09 09:47:16 +00:00
Marvin Ramin
6f69264f75 Add HdmiDeviceInfo#mHdmiCecVersion
Store CEC version for each device. Defaults to HDMI CEC 1.4b.

Bug: 174732339
Test: make; atest HdmiDeviceInfoTest

Change-Id: I97c962d58b16ddfab9010a1738670a107e12481f
2020-12-09 09:44:05 +01:00
Michael Groover
cfaac0e759 Add OWNERS for sensor privacy
Bug: 175159332
Test: Builds
Change-Id: I430d823ced4065df2a5d1f7a4229eb4d5361e82b
2020-12-08 17:26:23 -08:00
TreeHugger Robot
b1e041d5b5 Merge "Support multi-channel FF vibration effect for input device." 2020-12-08 23:33:24 +00:00
Jayant Chowdhary
f3b7a85fe8 camera2: Mark onCameraOpened/Closed callbacks @SystemApi.
This is so that regular apps don't get to know when camera devices
are opened / closed (as oppsed to being available / unavailable), in addition to not knowing the
package names of the processes that open / close the devices.

Bug: 147710835
Bug: 170870941

Test: builds
Test: atest CameraManagerTest#testCameraManagerListenerCallbacks

Change-Id: I5cad3cb5dd70775d74c5be20d7adf434fd37bfa7
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2020-12-08 11:45:02 -08:00
Jeff Sharkey
0ab7007631 resolve merge conflicts of 358f0d4fc8 to master
Bug: 174932174
Test: I solemnly swear I tested this conflict resolution.
Exempt-From-Owner-Approval: refactoring with team leads buy-in
Change-Id: I9262a08ffc1ccede8e519d0eed90ed2bfcf0232c
2020-12-08 11:01:05 -07:00
Jeff Sharkey
358f0d4fc8 Merge changes from topic "dec5" am: c2793cf12b am: 9af6ac78b0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519384

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2776a545a24f007ccb4b9ee14705978571265ef3
2020-12-08 16:43:19 +00:00
Jeff Sharkey
24d251403b Improve OWNERS coverage across frameworks/base/. am: fab0ab3c9c am: c7c4a74a78
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519383

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5120a3701af3564f363900b20bca75f3ad2a854c
2020-12-08 16:43:17 +00:00
Jeff Sharkey
9af6ac78b0 Merge changes from topic "dec5" am: c2793cf12b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519384

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ifdc390f5ae046c515a30158f3f55b831be147547
2020-12-08 16:05:11 +00:00
Jeff Sharkey
c7c4a74a78 Improve OWNERS coverage across frameworks/base/. am: fab0ab3c9c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519383

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0211462ecbcd9ad66f66af87e31cf12e1582fc65
2020-12-08 16:01:16 +00:00
Jeff Sharkey
52b9862f87 Improve OWNERS coverage across frameworks/base/.
As general background, OWNERS files expedite code reviews by helping
code authors quickly find relevant reviewers, and they also ensure
that stakeholders are involved in code changes in their areas.

Some teams under frameworks/base/ have been using OWNERS files
successfully for many years, and we're ready to expand them to cover
more areas.  Here's the historical coverage statistics for the last
two years of changes before these new OWNERS changes land:

-- 56% of changes are fully covered by OWNERS
-- 17% of changes are partially covered by OWNERS
-- 25% of changes have no OWNERS coverage

Working closely with team leads, we've now identified clear OWNERS on
a per-package basis, and we're using "include" directives whenever
possible to to simplify future maintenance.  With this extensive
effort, we've now improved our coverage as follows:

-- 98% of changes are fully covered by OWNERS
-- 1% of changes are partially covered by OWNERS
-- 1% of changes have no OWNERS coverage

This specific change is automatically generated by a script that
identifies relevant "include" directives.

Bug: 174932174
Test: manual
Exempt-From-Owner-Approval: refactoring with team leads buy-in
Merged-In: I3480ddf2fe7ba3dfb922b459d4da01fa17a2c813
Change-Id: I3480ddf2fe7ba3dfb922b459d4da01fa17a2c813
2020-12-08 08:36:28 -07:00
Jeff Sharkey
fab0ab3c9c Improve OWNERS coverage across frameworks/base/.
As general background, OWNERS files expedite code reviews by helping
code authors quickly find relevant reviewers, and they also ensure
that stakeholders are involved in code changes in their areas.

Some teams under frameworks/base/ have been using OWNERS files
successfully for many years, and we're ready to expand them to cover
more areas.  Here's the historical coverage statistics for the last
two years of changes before these new OWNERS changes land:

-- 56% of changes are fully covered by OWNERS
-- 17% of changes are partially covered by OWNERS
-- 25% of changes have no OWNERS coverage

Working closely with team leads, we've now identified clear OWNERS on
a per-package basis, and we're using "include" directives whenever
possible to to simplify future maintenance.  With this extensive
effort, we've now improved our coverage as follows:

-- 98% of changes are fully covered by OWNERS
-- 1% of changes are partially covered by OWNERS
-- 1% of changes have no OWNERS coverage

This specific change is automatically generated by a script from
detailed ownership information confirmed by team leads.

Bug: 174932174
Test: manual
Exempt-From-Owner-Approval: refactoring with team leads buy-in
Merged-In: I9789c97c1de8e5d962b48c29c57d82fe83729eba
Change-Id: I9789c97c1de8e5d962b48c29c57d82fe83729eba
2020-12-08 08:36:27 -07:00
Nicolas Geoffray
7c4c101a7b Remove FastNative annotations on synchronized methods.
FastNative doesn't work on synchronized methods.

Bug: 175016705
Test: 004-JniTest
Change-Id: I1e34c78a8438c67e5a1bedb83eb977389ee9a82d
2020-12-08 09:48:08 +00:00
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
Siarhei Vishniakou
5006597d68 Add change id for FLAG_SLIPPERY
We need to figure out whether any apps are using FLAG_SLIPPERY. Ideally,
we should lock this down and only allow it for system uses. Add a change
id for this logging here.

Bug: 157929241
Test: adb shell dumpsys platform_compat
Change-Id: I7a12828e768a145054d31fbf07f130a2f06735de
2020-12-04 08:35:07 -10: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
Xin Li
d31ee38811 Merge rvc-qpr-dev-plus-aosp-without-vendor@6881855
Bug: 172690556
Merged-In: I78222391b83a4add8e964340ec08bb8a1306e1c6
Change-Id: I28bbf40820674675ccf765c912aa8140d3f74ab2
2020-12-02 00:38:58 -08:00