Commit Graph

4803 Commits

Author SHA1 Message Date
Arthur Ishiguro
0b577cfbd3 Throw exception for immutable PendingIntents
Fixes: 193833333
Test: Compile
Change-Id: I2ba9e19f8962ef172ecb8defa77a352ad7073ca2
2021-07-16 11:37:45 -07:00
TreeHugger Robot
c9044895a8 Merge "Add additional clarification regarding nanoapp loading APIs" into sc-dev am: 65731d06ce am: 98e82ef00e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15286092

Change-Id: Icc4ce203f0391bdfd26d53f1c98ca854c1215b4b
2021-07-14 20:20:44 +00:00
Arthur Ishiguro
14c466a999 Add additional clarification regarding nanoapp loading APIs
Fixes: 190533027
Test: None, comment only
Change-Id: If54e4093092be697845a53fbd617f6b2b46f420f
2021-07-14 17:30:29 +00:00
Evan Severson
c35e46073d Merge "Update the sensor use dialog if more sensors are accessed" into sc-dev am: 41ff39a156 am: 538c239db7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15246715

Change-Id: Icb666528069dcda45d268746c5573be032010a60
2021-07-14 00:14:13 +00:00
Evan Severson
41ff39a156 Merge "Update the sensor use dialog if more sensors are accessed" into sc-dev 2021-07-13 23:35:32 +00:00
Joshua Mccloskey
a4743da4d3 Merge "Enable vendor error/acquire messages on user build" into sc-dev am: b7020910d3 am: 76dfedc16c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15263625

Change-Id: I5c2e67e6cb808d42e72d7ea4931c39e106f6d5ab
2021-07-13 06:46:46 +00:00
Joshua Mccloskey
b7020910d3 Merge "Enable vendor error/acquire messages on user build" into sc-dev 2021-07-13 06:15:50 +00:00
Joshua Mccloskey
27f49c34b9 Enable vendor error/acquire messages on user build
Test: It builds.
Bug: 184591799
Change-Id: I81d19610e39998e4815da62c21068f4850c41c1e
2021-07-12 15:15:26 -07:00
Evan Severson
85d7336db0 Update the sensor use dialog if more sensors are accessed
If another sensor is accessed after the dialog has been shown we now
update the dialog to reflect all accessed sensors.

Test: Wrote app which opens mic/cam at different times
Fixes: 187139024
Fixes: 187132341
Change-Id: I178bb4f6ea1913e3ee0e2153cf8ac3b2f24e4623
2021-07-09 13:38:47 -07:00
Rucha Katakwar
f11be4d322 Merge "Revert "Camera: Restore FastNative annotation."" into sc-dev am: ea03a04bb8 am: 9a30218f7d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15241850

Change-Id: If780f59469937d5dc3ab97b47f48b8dea28a0d84
2021-07-09 18:41:27 +00:00
Rucha Katakwar
4f83d813d6 Revert "Camera: Restore FastNative annotation."
Bug: 193176503

This reverts commit 99ebd95ef1.
Reason for revert: Recent flakiness as mentioned in b/193176503.This cl was merged in build:7532561. Any test failures post this build shows exception linked to CameraMetadataNative.Reverting this cl to find and fix the issue.

Change-Id: If9fe3ce69f013b842a47745d976942aa71dfb8f6
2021-07-09 17:20:57 +00:00
TreeHugger Robot
3bb2e4eb4b Merge "Camera: Clarify zoom and crop behavior for capture result" into sc-dev am: d377029798 am: 4128c0ad26
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15194139

Change-Id: I505c1b312b0effe1871814bd6ebc67d8ae1dd68a
2021-07-08 21:11:31 +00:00
TreeHugger Robot
48c6fc104c Merge "Camera: Set metadata vendor id in extension proxy service" into sc-dev am: 2d5d1676ff am: d54c08d43a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15224774

Change-Id: I6fd2e1e627926fc63d1192fab551941b904ad082
2021-07-08 20:45:19 +00:00
TreeHugger Robot
d377029798 Merge "Camera: Clarify zoom and crop behavior for capture result" into sc-dev 2021-07-08 20:40:03 +00:00
Emilian Peev
07d8600a35 Camera: Set metadata vendor id in extension proxy service
Set the appropriate vendor id for any native metadata
instantiated within the camera extension proxy service.

Bug: 187341271
Test: Partner verified,
Camera CTS

Change-Id: I07e0be304baac017d44606c1612a24c520bed588
2021-07-08 11:51:56 -07:00
Pyuli Naithani
30a0d0b83f Merge "Add statsd logs for Sensor Privacy." into sc-dev am: cd40c7406f am: 1597cc133d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15193089

Change-Id: I560dff93741a13a962034d2b63d3f42b069815be
2021-07-08 17:54:08 +00:00
Rucha Katakwar
ec1df47fa7 Merge "Camera: Restore FastNative annotation." into sc-dev am: 8893160900 am: 622fa7fbf5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15224637

Change-Id: I3f4a720df40fd73d50004536a7fd477b04fb522b
2021-07-08 17:52:42 +00:00
Pyuli Naithani
cd40c7406f Merge "Add statsd logs for Sensor Privacy." into sc-dev 2021-07-08 17:24:53 +00:00
Rucha Katakwar
8893160900 Merge "Camera: Restore FastNative annotation." into sc-dev 2021-07-08 17:17:17 +00:00
TreeHugger Robot
689e73bc69 Merge "Update documentation about the SensorPrivacyManager" into sc-dev am: 03a1ffcd1a am: 797cc34e75
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15224142

Change-Id: I56de0802889fd3bbf596e91b3e7632a34bacfcbf
2021-07-08 00:31:44 +00:00
Pyuli Naithani
76be38c05c Add statsd logs for Sensor Privacy.
BUG: 192269258

Test: ran statsd_testdrive 381

Change-Id: I6f1f2bfe13889f7b3a39684769715cbd4f6009e3
2021-07-07 22:26:45 +00:00
Rucha Katakwar
99ebd95ef1 Camera: Restore FastNative annotation.
FastNative annotations were removed from native methods since it can't
be used with 'synchronized'. These methods need not be synchronized.
As per comments in ag/13184856, when the annotations were added first
effect was that ART did the fast native calls but because synchronized
fast native methods are not supported it was not doing the synchronized
nor the unlock at exit.So FastNative but not synchronized.

Removing synchronized and restoring FastNative annotation to optimize.
Did sanity testing like open/close camera,taking photos,clear all apps.

bug:175396433

Test: Camera ITS scene0 Pass, All Camera CTS tests Pass.
Change-Id: Ib7acd363120ee0bf2a1dea92628b4697f3b211bb
2021-07-07 22:20:27 +00:00
Evan Severson
83ed960b96 Update documentation about the SensorPrivacyManager
Remove information about system api methods so they don't end up in the
public documentation.

Test: None
Fixes: 193049421
Change-Id: Iff2bae46f935b63366c737dab6610da7b3ffff39
2021-07-07 12:50:13 -07:00
Shuzhen Wang
6ae7bfcf02 Camera: Clarify zoom and crop behavior for capture result
Test: Build
Bug: 191317747
Change-Id: I403a1019be8c0cdcd69519bf4b17142c3b1726b2
2021-07-07 10:51:29 -07:00
Jayant Chowdhary
6e054ce580 Merge "camera2: Update mandatory streams for ultra high resolution sensors." into sc-dev am: f9158d2217 am: cdb7755ba4 am: 1af66d5c23
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15018023

Change-Id: I49016fad810e21f91df793b1eb44aa8aea8ebaaa
2021-07-03 06:08:44 +00:00
Jayant Chowdhary
f9158d2217 Merge "camera2: Update mandatory streams for ultra high resolution sensors." into sc-dev 2021-07-03 05:35:54 +00:00
Jayant Chowdhary
53be09b2df camera2: Update mandatory streams for ultra high resolution sensors.
The updated mandatory streams include default sensor pixel mode targets
in addition to maximum resolution sensor pixel mode targets, in the same
camera capture session. This is so that sensor pixel mode can be
switched per CaptureRequest without creating a new session.

Bug: 184574750

Test: Camera CTS

Change-Id: Idc2c23f4942942fb81f243dc7ffea5dcbf94dec5
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2021-07-02 12:04:59 -07:00
Joshua Mccloskey
3af302aeda Merge "Added rate limiter for calibration notification" into sc-dev am: 55ffd5b10c am: 7b2d1bafdb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15155993

Change-Id: I2210914804b4cc00ee40bf862b93738b3dab1431
2021-07-02 14:33:36 +00:00
Joshua Mccloskey
55ffd5b10c Merge "Added rate limiter for calibration notification" into sc-dev 2021-07-02 14:14:09 +00:00
Curtis Belmonte
38e054fa17 Merge "Don't attempt caching for BiometricManager.Strings" into sc-dev am: 80cfdd10db am: 7d4fcf0fa2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15177519

Change-Id: I2df11762aed332a848999987e0c2e3f446447b1c
2021-07-01 21:03:11 +00:00
Curtis Belmonte
80cfdd10db Merge "Don't attempt caching for BiometricManager.Strings" into sc-dev 2021-07-01 20:47:01 +00:00
Ady Abraham
321410bd4f Merge "Add preferredMinDisplayRefreshRate" into sc-dev am: ac57d157da am: f93779e6b4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15141394

Change-Id: I2c92530dbfc27c3e1a547adbb8d480f6de78189b
2021-07-01 18:32:44 +00:00
Curtis Belmonte
8858de4478 Don't attempt caching for BiometricManager.Strings
Always fetch the latest requested string when a getter method of
BiometricManager.Strings is called, rather than attempted to cache the
strings.

Test: atest BiometricManagerTest

Fixes: 192573011
Change-Id: Ic73e2d0092d200e5912084e1b8f4efdb81bbf2d8
2021-07-01 11:14:11 -07:00
Ady Abraham
ac57d157da Merge "Add preferredMinDisplayRefreshRate" into sc-dev 2021-07-01 17:58:23 +00:00
Joshua Mccloskey
abe0fae715 Merge "Added fingerprint acquired too bright" into sc-dev am: 24a0b944cd am: 8684ec08b2 am: f8f4244fcb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15089868

Change-Id: I373dccd0d5d1a59d2e8a6750c3396a97abdf98d3
2021-06-30 21:06:50 +00:00
Joshua Mccloskey
1862a1ac04 Added rate limiter for calibration notification
Test: Manually verified notification was only shown once per time period
Fixes: 192105305
Change-Id: I115996ee0ad51ac5bb160a0f6aa3395df49f724f
2021-06-30 13:48:18 -07:00
Ady Abraham
540012bf1e Add preferredMinDisplayRefreshRate
Add a new private window attribute for allowing apps to specify the min
display refresh rate in addition to the existing
preferredMaxDisplayRefreshRate. This is useful for use cases such as
keyguard where the refresh rate should be limited to a single value,
and using preferredDisplayModeId would not lock the display
refresh rate, as frame rate override might be enabled.

Test: atest RefreshRatePolicyTest FrameRateSelectionPriorityTests DisplayModeDirectorTest
Bug: 183226498
Bug: 184176119
Change-Id: I343569b3cbccd73001703dca78f0f99e196a4d52
2021-06-30 11:32:26 -04:00
Joshua Mccloskey
7580fad2fd Added fingerprint acquired too bright
Test: Manually verified too too bright acquired message appears
on keyguard.
Bug: 191954958

Change-Id: I679acf4f4fd07f0a6d7d8f05a89bc239ff117fbe
2021-06-29 12:15:18 -07:00
Nathalie Le Clair
21bed66099 Remove nchalko from OWNERS
Bug: 181697107
Test: none

Change-Id: I9cc8ba9e9762f27cd2fc85357f5f8e37c311aad8
2021-06-29 15:57:05 +00:00
TreeHugger Robot
66a6af5ac0 Merge "Camera: Disallow concurrent extension sessions" into sc-dev am: efb3fafeff am: c948b1e5ce
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14343769

Change-Id: I891cbbdab8658494d3059de2b3735a60568aec15
2021-06-28 19:03:54 +00:00
TreeHugger Robot
efb3fafeff Merge "Camera: Disallow concurrent extension sessions" into sc-dev 2021-06-28 18:31:16 +00:00
Joshua Mccloskey
dc88e81796 Merge "Added fingerprint bad calibration notification" into sc-dev am: f4ecf18a39 am: 3fd42db742
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15057260

Change-Id: I1c8327c6718d2ec76568b2534c32ee5e6a085ef2
2021-06-25 22:56:58 +00:00
Joshua Mccloskey
c3ecb5fffb Added fingerprint bad calibration notification
Test: Verified notification shows upon receiving error message and
disappears after enrollment.
Bug: 189133688

Change-Id: I6552326c9d9d2078fc39163be45524b3da7d00d8
2021-06-24 16:32:59 -07:00
Emilian Peev
876e6afd6c Camera: Disallow concurrent extension sessions
Support for concurrent extension processing sessions
is not yet mandated. To avoid inconsistent behavior
across devices, explicitly document and disallow
concurrent extension sessions at the framework level.

Bug: 187341271
Test: Manual using test application,
Camera CTS

Change-Id: Ibff194c58bbb37e884c27151a2a27fb21e3db928
2021-06-24 15:33:35 -07:00
Anh Pham
61d2be2dd0 Merge "Update API doc w/ high-rate permission requirement" into sc-dev am: 3e244be4e9 am: 3e787848d1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15054857

Change-Id: I18b6ed16f1004a71f73bebaf45217de0ec818445
2021-06-24 06:50:41 +00:00
Anh Pham
3e244be4e9 Merge "Update API doc w/ high-rate permission requirement" into sc-dev 2021-06-24 06:22:24 +00:00
TreeHugger Robot
bd231611a4 Merge "Camera: Switch camera extension proxy service package name" into sc-dev am: 81419f4be3 am: dde87e7167
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14986716

Change-Id: Ib821eeaac59b7b85b8e213982cde3bc290f238c6
2021-06-23 19:26:00 +00:00
TreeHugger Robot
81419f4be3 Merge "Camera: Switch camera extension proxy service package name" into sc-dev 2021-06-23 18:55:59 +00:00
Anh Pham
629ba4958e Update API doc w/ high-rate permission requirement
Test: Build successfully
Bug: 191301110
Change-Id: I653036036bea0e2889807ec44ed98206a427dfb8
2021-06-23 19:49:50 +02:00
TreeHugger Robot
b92e1b839f Merge "Added fingerprint acquire immobile message" into sc-dev am: 64e22ca06d am: 1eb2cf70df
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15017991

Change-Id: Ia035a0373db67658995f3b402a9b39648845ab03
2021-06-22 19:53:19 +00:00