Commit Graph

3541 Commits

Author SHA1 Message Date
TreeHugger Robot
4753576dbf Merge "Add caching for getDisplayInfo" into rvc-dev 2020-03-19 18:18:33 +00:00
Tim Murray
890ceb5e5b Add caching for getDisplayInfo
Cache DisplayInfo objects on clients to avoid unnecessary binder traffic.

Test: boots, works, 60->90->60 works
Bug: 140788621

Change-Id: I0dec0f6e293f1345fbe0a30c4a6e39305c94276d
2020-03-19 09:27:43 -07:00
Jayant Chowdhary
af0910c0eb Merge "Mandatory concurrent stream combinations should be generated by metadata-generate." into rvc-dev 2020-03-19 00:49:17 +00:00
Jayant Chowdhary
48dec2e76e Mandatory concurrent stream combinations should be generated by metadata-generate.
Bug: 151462833

Test: builds

Change-Id: I2255ad38a06f7eba3eb591e9147ab694178e4989
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2020-03-18 12:47:04 -07:00
TreeHugger Robot
9b7197fb11 Merge "Camera: clarify offline processing spec" into rvc-dev 2020-03-18 18:25:36 +00:00
TreeHugger Robot
e39527ff51 Merge "Clarify timestamp definition for SensorEvent" into rvc-dev 2020-03-17 17:29:38 +00:00
Yin-Chia Yeh
0e847e45ae Camera: clarify offline processing spec
Test: build
Bug: 149346795
Change-Id: Iefd35ad4e79ce43c3d7eb308d39a1d3f89022be6
2020-03-17 09:42:36 -07:00
Anthony Stange
d2c1159c5c Clarify timestamp definition for SensorEvent
Bug: 149914062
Test: presubmits
Change-Id: Ib686100496ce80febba6258bbab57f95ddb3386c
2020-03-16 17:31:03 -04:00
Jayant Chowdhary
6241aceae8 Merge "camera2: rename getConcurrentStreamingCameraIds() -> getConcurrentCameraIds()" into rvc-dev 2020-03-14 01:44:50 +00:00
Kevin Chyn
6b7b2300c4 Merge "Pass operationId to LSS, add HAT to KeyStore" into rvc-dev 2020-03-13 23:53:16 +00:00
Kevin Chyn
c8cb6852df Pass operationId to LSS, add HAT to KeyStore
Since we're now allowing auth-per-use credential keys, we need to
pass the operationId to SystemUI, which owns the call to verify
credential. Upon receiving a non-null HAT, it should be sent to
KeyStore.

Bug: 148425329

Test: atest com.android.systemui.biometrics
Test: atest com.android.server.biometrics

Change-Id: Iea737bf2dc0d81d87419df96d5cb43d51f10c6e3
2020-03-12 15:49:27 -07:00
Jayant Chowdhary
44bc7d8c23 camera2: rename getConcurrentStreamingCameraIds() -> getConcurrentCameraIds()
Bug: 150896133

Test: builds
Test: atest ConcurrentCameraTest.java

Change-Id: I0634358ed2591448d2f69be329a524fe1a197813
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2020-03-12 13:20:48 -07:00
Philip P. Moltmann
12ac3f406f Rename featureId -> attributionTag
In the core functionality this changes everything including aidl's and
field names:
- Context
- ContentProvider
- AppOps*
- Package parsing

For the rest, this is a shallow change to only change to the changed
APIs. This keeps the change small-ish

Exempt-From-Owner-Approval: Rename
Fixes: 148792795
Test: TH
Change-Id: I2a2245fe76e09e62cb13d5785d2efb4a304ba54a
Merged-In: I2a2245fe76e09e62cb13d5785d2efb4a304ba54a
2020-03-12 19:26:10 +00:00
Nicholas Ambur
fa47464c2b Merge "lazy load enrollment application UID in VIMS" into rvc-dev 2020-03-11 17:47:56 +00:00
TreeHugger Robot
a9caa7d016 Merge "Rename LightsManager.setLights to requestLights" into rvc-dev 2020-03-11 09:06:01 +00:00
TreeHugger Robot
abb2d5847d Merge "Camera: Add new hidden API for camera open/close callback" into rvc-dev 2020-03-10 23:27:46 +00:00
Nicholas Ambur
c04b49fd2e lazy load enrollment application UID in VIMS
Enrollment application services are only avaiable for package manager
to query after the system on-boot-completed status. Lazy loading the
KeyphraseEnrollmentInfo class until first client access ensures all
packages are loaded prior to query.

Bug: 151095585
Test: erase userdata and boot device; ensure no enrollment application
crashes when boot device for first time; dump enrollment database with
`dumpsys voiceinteraction` and confirm model is present in database.

Change-Id: I6009d5834fff8848a17e5edef9d39395b1586318
2020-03-10 20:24:48 +00:00
Shuzhen Wang
6d76d3b1f6 Camera: Add new hidden API for camera open/close callback
The hidden API is used by SystemUI process to adjust the system UI based
on when a certain camera is opened or closed.

Test: Manually observe callbacks in SystemUI when running camera CTS
Bug: 150540299
Change-Id: I04cae782d96f0e32be8ef588dcd328f84b32887a
2020-03-10 09:35:50 -07:00
Robin Lee
e51b6e1cff Rename LightsManager.setLights to requestLights
Per API feedback on clarifying that while we strive our best to provide
excellent service to our customers, we cannot fulfil all of their orders
at once.

Fix: 150332011
Change-Id: Iac156ea5cb312cce16fbaf10fc1f8bcd6743d377
2020-03-10 11:29:25 +01:00
David Zeuthen
d50b281a32 Identity Credential: Apply changes identified in API review.
Bug: 150817385
Test: atest android.security.identity.cts
Merged-In: I4e005fa7a81ef363a80278224bb706441dad2241
Change-Id: I25e09df09e8a56dc7f639b2aa4636af0166d5050
2020-03-09 15:32:48 -04:00
Ytai Ben-Tsvi
d5065ba8a5 Pass models to soundtrigger middleware with shared memory
This both avoids the need to make extra copied for the models and
allows exceeding the parcel size limits.

Bug: 150100907
Test: Manual testing of basic sound trigger functionality
Change-Id: Ic4c5c1a9de3e29b1b6fa82442254e1afe7daec19
2020-02-28 13:01:24 -08:00
Nicholas Ambur
a163d079d8 Merge "add enrollment application UID tracking" into rvc-dev 2020-02-27 18:01:24 +00:00
Jayant Chowdhary
d7cc17c164 camera2: Add documentation for getConcurrentStreamingCameraIds specifying multi-process use.
Add documentation specifying that camera devices advertised by
getConcurrentStreamingCameraIds() refer to those devices which can be
configured concurrently by the same client application.

Bug: 150225538

Test: m offline-sdk-docs

Change-Id: I4997f10ca73de45fd58d22261c7456402d761a57
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2020-02-26 22:44:42 +00:00
Nicholas Ambur
679e7d5beb add enrollment application UID tracking
KeyphraseEnrollmentInfo class now keeps track of the different enrollment
application UIDs. It can be queries whether a given UID matches an
existing enrollment application.

Bug: 148159858
Test: build and test that enrollment application can still enroll models
with new UID check

Merged-In: Ib60ebb259e4e3ddaa07da15e2cf55fd6099ad4d0
Change-Id: Ib60ebb259e4e3ddaa07da15e2cf55fd6099ad4d0
(cherry picked from commit 84b798555d)
2020-02-25 01:17:06 +00:00
Kevin Chyn
df244da79a Merge changes from topic "biometric-and-credential"
* changes:
  Always start AuthController
  Clean up biometric system server
2020-02-21 21:37:14 +00:00
Marin Shalamanov
7f66d5f1b3 Merge "Use Integer instead of int in DeviceProductInfo" 2020-02-21 15:59:12 +00:00
Marin Shalamanov
f5d6ae6c72 Use Integer instead of int in DeviceProductInfo
Test: m
Change-Id: I9acb25aebd0fd3e2fec248ce630d0455d6132755
2020-02-21 13:01:32 +01:00
Haining Chen
6c839dd1c6 Merge "Implementations of biometric contraints for weak and convenience tiers (1) 24 hours fallback (2) 4 hours idle timeout" 2020-02-20 21:05:24 +00:00
Kevin Chyn
7d07c89235 Clean up biometric system server
1) BiometricService / AuthService always need to be started, since on
   Android 11 and later, the public credential auth API comes through this
   path.

2) Consolidate getAuthenticatorId() and expose via AuthService. This is
   used only by the platform during key generation. Instead of asking
   each individual service, AuthService will return a list of IDs for
   sensors which are enrolled and meet the required strength.

Test: atest com.android.server.biometrics
Test: fingerprint device, CtsVerifier biometric section
Test: face unlock device, CtsVerifier biometric section
Test: remove biometrics from device, CtsVerifier biometric section

Bug: 148419762
Bug: 149795050

Change-Id: I2c5385b1cd4f343fabb0010e1fe6fb1ea8283391
2020-02-20 11:12:51 -08:00
Marin Shalamanov
636b1713c7 Small cleanup in DeviceProductInfo.
This CL fixes a var name and puts "final" in the corrent order.

Test: m
Change-Id: Id7ec3ac1c6f63d03cabe0d878e84a9ed24386d33
2020-02-20 14:52:07 +01:00
Jayant Chowdhary
fd3d196de2 Merge "camera2: Update documentation for getConcurrentStreamingCameraIds to account for availability callbacks." 2020-02-20 06:43:15 +00:00
Jayant Chowdhary
69531d8331 Merge "camera2: Update spec for mandatory concurrent stream combinations." 2020-02-20 03:04:01 +00:00
Haining Chen
c06c481fcb Implementations of biometric contraints for weak and convenience tiers
(1) 24 hours fallback
(2) 4 hours idle timeout

Bug: 141025588

Test: atest AuthServiceTest
Test: atest KeyguardUpdateMonitorTest
Test: atest BiometricsUnlockControllerTest
Test: atest KeyguardIndicationControllerTest
Test: make -j
Change-Id: I1078ce39a2ae1e4c250b6468e477b703e3016e2c
2020-02-19 23:58:31 +00:00
Automerger Merge Worker
e94ac536ec Merge "USB: [API feedback] Add bitmask @IntDef annonation to setCurrentFunctions" am: 2f9800a47d am: 65de31ca5d am: bac02c1de2
Change-Id: I3dd8104d264a423b19ccfe8affc4a2f4de58b101
2020-02-19 23:07:54 +00:00
Jayant Chowdhary
cf36cd1ecc camera2: Update documentation for getConcurrentStreamingCameraIds to account for availability callbacks.
Bug: 148995918

Test: builds
Test: make doc-comment-check-docs

Change-Id: Ib6f09034c470a7439912fb4aa569b6e1f69db5ab
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2020-02-19 10:38:14 -08:00
Automerger Merge Worker
65de31ca5d Merge "USB: [API feedback] Add bitmask @IntDef annonation to setCurrentFunctions" am: 2f9800a47d
Change-Id: Iaf10cf1c347b93eb87fa476d59b41fa35022cd80
2020-02-19 03:15:57 +00:00
Marin Shalamanov
98af159104 DeviceProductInfo API.
DeviceProductInfo API that can be used to prime an Android TV remote
with entries from an infrared database for controlling connected
audio and TV devices. See go/display-identifiers.

Bug: 145299597
Test: adb shell dumpsys display
Change-Id: I8d709d55d830eed932b51bb8c374d32e20eecf6d
2020-02-18 19:36:29 +01:00
Dominik Laskowski
b26dbebce0 Merge "Plumb display connection type to DMS" 2020-02-14 22:54:08 +00:00
James Wei
77dc3e9ff2 USB: [API feedback] Add bitmask @IntDef annonation to setCurrentFunctions
Bug: 148285097
Test: Manual test: USB function switch: MTP, PTP, RNDIS, MIDI
Test: atest UsbTests
Test: atest UsbManagerTests
Change-Id: I27f8097b0a8174f7c1d14b856442e8962b56a906
2020-02-14 17:44:43 +08:00
TreeHugger Robot
a4d20a71b3 Merge "Fixes Context Hub feature naming and documentation" 2020-02-14 04:34:23 +00:00
Jayant Chowdhary
ac404c12d5 camera2: Update spec for mandatory concurrent stream combinations.
Bug: 77960042

Test: atest ConcurrentCameraTest.java

Change-Id: I01fd6c5eab1ed8bc716be98c24a93d45f2ddaed3
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2020-02-13 15:28:41 -08:00
Curtis Belmonte
faebfd0ad8 Merge "Add internal API for credential text in BiometricPrompt" 2020-02-13 20:29:14 +00:00
Curtis Belmonte
4584d88d41 Add internal API for credential text in BiometricPrompt
Adds a hidden API behind an internal permission check that allows the
Settings app to use specific text to BiometricPrompt for credential
auth. This allows the work authentication prompt to use work-specific
language when verifying work credentials, while retaining more generic
language when authenticating with biometrics.

Test: Work lock prompt shows "Enter your work ___" for credential
Test: Work lock prompt now shows "Verify it's you" for face

Bug: 149003660
Change-Id: Idf06f7e008f4bdb448b0d539522efd2e9290a3bb
2020-02-13 09:47:48 -08:00
Arthur Ishiguro
49e96a8ab7 Fixes Context Hub feature naming and documentation
- Adds "_" in variable name for consistency with feature string
- Adds documentation on what the feature is used for

Bug: 149475852
Test: None
Change-Id: I6eca279df8409de1155cd7014647a705d0d31d6f
2020-02-13 08:08:55 -08:00
Kevin Chyn
e38367008f Merge "Biometric phenotype updates" 2020-02-13 04:40:05 +00:00
Siarhei Vishniakou
b0f1fe887a Merge "New VerifiedInputEvent api" 2020-02-12 22:55:00 +00:00
Kevin Chyn
eab9fe1560 Biometric phenotype updates
1) Always update strength after registerAuthenticator. Otherwise the
   flag will not be applied (e.g. after reboot)
2) Add strings for onAuthenticationError

Bug: 148419762

Test: manual
Test: atest BiometricServiceTest

Change-Id: Ia20a91e401d6753b55d6aa4a36d487fc15465ba5
2020-02-12 14:54:31 -08:00
Curtis Belmonte
5cf71d715e Merge changes from topic "bio_service_restrict"
* changes:
  Make BiometricService check for internal permission
  Configure BiometricPrompt to use AuthService.
2020-02-12 19:29:04 +00:00
Dominik Laskowski
26290bb074 Plumb display connection type to DMS
Secondary physical displays are now properly categorized as TYPE_INTERNAL
or TYPE_EXTERNAL, rather than assumed to be external. LocalDisplayAdapter
distinguishes between primary/secondary and internal/external categories
when populating DisplayInfo.

Bug: 134771872
Test: dumpsys display
Change-Id: Id43a72411131588897f29b8d8db417f8c9e78259
2020-02-12 10:47:27 -08:00
Eino-Ville Talvala
53e0762358 Merge "Camera NDK: New lifecycle for ACameraMetadata_fromCameraMetadata" 2020-02-12 18:09:33 +00:00