Commit Graph

3499 Commits

Author SHA1 Message Date
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
TreeHugger Robot
a4d20a71b3 Merge "Fixes Context Hub feature naming and documentation" 2020-02-14 04:34:23 +00: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
TreeHugger Robot
b1a015996b Merge "Camera: Fix an error log spam for external camera" 2020-02-12 00:10:31 +00:00
TreeHugger Robot
b75d9fdbed Merge "Allow crypto + credential auth with BiometricPrompt" 2020-02-11 23:24:25 +00:00
Curtis Belmonte
a8b50a6f5b Make BiometricService check for internal permission
Previously, some paths through BiometricService needed to be accessible
by apps. Now that external calls are routed through AuthService instead,
we can check for the system-only USE_BIOMETRIC_INTERNAL permission
everywhere that we had been checking for USE_BIOMETRIC in
BiometricService.

In order for this to be enforced properly, we also need to move some
of the permission checks that were previously in BiometricService to
AuthService, which is now the primary entry point for applications
invoking the relevant biometric APIs.

Test: com.android.server.biometrics
Test: Manually verified functionality using support biometric demo app

Bug: 148971767
Change-Id: Ieab61276c6375b0d674f73e1833edabc8700fe74
2020-02-11 13:56:45 -08:00
TreeHugger Robot
14e6a15b45 Merge "Access to Device Vibrator State" 2020-02-11 20:13:08 +00:00
Fiona Campbell
004e36da64 Merge "Add support for brightness as a float" 2020-02-11 18:51:02 +00:00
Shuzhen Wang
88193b7318 Camera: Fix an error log spam for external camera
External camera's getCameraCharacteristics call may trigger exception
via parseInt() call. The exception is catched, and we should not log the
message as error.

Test: Build
Change-Id: Ia858b692ef7622f5fcfbf32cc4fd29574a408731
2020-02-11 10:37:58 -08:00
Eino-Ville Talvala
fdfec36692 Camera NDK: New lifecycle for ACameraMetadata_fromCameraMetadata
Instead of requiring the user to call NewGlobalRef/DeleteGlobalRef
for keeping the java object alive when creating an NDK view into it,
reference count the real native data instead, so that there's no need
to keep track of the Java object lifecycle.

- Switch CameraMetadataNative use std::shared_ptr

Test: New CTS tests pass, fail without this CL
Bug: 148972471
Change-Id: I9a00fc1daa1beac35a15484960048facb90499a6
2020-02-11 10:35:18 -08:00
Ilya Matyukhin
dc48d448c0 Merge changes If2a41e5e,If987a317,I86d3d50f
* changes:
  Remove redundant modifiers from the constants
  Add support for 2.2::FingerprintAcquiredInfo::START
  Use @2.2 callback with @2.2 HAL
2020-02-11 02:16:39 +00:00
Kevin Chyn
bf23b86560 Merge changes from topic "biometric-security"
* changes:
  Implementation for BIOMETRIC_ERROR_SECURITY_UPDATE_REQUIRED
  Add API constant for BIOMETRIC_ERROR_SECURITY_UPDATE_REQUIRED
2020-02-11 01:20:00 +00:00
Chris Ye
473c84ff4c Access to Device Vibrator State
Add API to access vibrator state and vibrator state listener.

Bug: 135949568
Change-Id: I96636b432d581cea03a9fc9fecba4c08045f5006
2020-02-11 00:02:37 +00:00
Ilya Matyukhin
144bea08ed Remove redundant modifiers from the constants
Bug: 141335235
Test: build
Change-Id: If2a41e5e3f0cf6466c931b943defa02d7ad0dc8e
2020-02-10 16:00:33 -08:00
Ilya Matyukhin
7c09d39154 Add support for 2.2::FingerprintAcquiredInfo::START
Bug: 139317981
Test: build
Change-Id: If987a317857d9fefae675abd29ed4b822267b95a
2020-02-10 16:00:31 -08:00
Fiona Campbell
d4eb295196 Add support for brightness as a float
Change the framework to handle brightness as a float rather than an int.

Test: AutomaticBrightnessControllerTest
BrightnessConfigurationTest
BrightnessMappingStrategyTest
BrightnessUtilsTest
DevicePolicyManagerTest
DisplayManagerServiceTest
DisplayTest
DozeScreenBrightnessTest
PowerManagerTest
PowerManagerVrTest
SettingsProviderTest

Exempt-From-Owner-Approval: Changing param from int to float

Change-Id: I413641cd987c5ec8f82753c0388a33f85a9682de
2020-02-10 23:44:40 +00:00
Kevin Chyn
eeadeaac02 Add API constant for BIOMETRIC_ERROR_SECURITY_UPDATE_REQUIRED
Bug: 148419762
Test: make -j
Test: See next CL

Change-Id: I3c272792fe2366239478aa3ad7bfbb8d9bbacf56
2020-02-10 15:06:27 -08:00
Siarhei Vishniakou
cf07528a0e New VerifiedInputEvent api
The Verified{Input/Key/Motion}Event api are the same as
{Input/Key/Motion}Event api.
The VerifiedMotion class is the same as the MotionEvent class, but
contains less information. It only contains the information that the
system is able to verify.
Same applies to VerifiedKeyEvent.

The class VerifiedInputEvent contains common information applicable to
both Key and Motion.

Test: atest VerifiedKeyEventTest VerifiedMotionEventTest
Bug: 134977432
Change-Id: I4770104eb4c025263da7efeea9c7a658dff74ac9
2020-02-10 13:43:55 -08:00
joshmccloskey
a8f15a5d2e Configure BiometricPrompt to use AuthService.
BioetricPrompt was incorrectly using BiometricService directly. After
adding a few minor modifications, BiometricPrompt correctly goes through
AuthService.

Test: Verified that BiometricPromptDemo apk is able to authenticate.
Test: Verified that BiometricPromptDemo apk is able to cancel
authenticatoins.
Bug: 141025588

Change-Id: I29646c33a1904c6ad71f3ed2a4b02b6fe159517b
2020-02-10 10:32:49 -08:00
TreeHugger Robot
a830364eb2 Merge "fix SoundTriggerModule java doc" 2020-02-07 23:45:45 +00:00
TreeHugger Robot
21d778f061 Merge changes I640f6470,Idca3ccc6
* changes:
  add java doc for SoundTriggerManager.Model
  fix naming discrepancy in SoundTrigger
2020-02-07 01:07:14 +00:00
Nicholas Ambur
3482290b82 fix SoundTriggerModule java doc
Bug: 148852573
Test: build and boot smoke test
Change-Id: I214cd58a640036fdf04bacd3a0d755e5b2f513bf
2020-02-06 15:29:29 -08:00
TreeHugger Robot
6cd4ee4ce6 Merge "add getters to SoundTrigger.ModelParamRange" 2020-02-06 21:43:42 +00:00
Ilya Matyukhin
ef410e3c1e Add support for fingerprint@2.2 and face@1.1
This CL adds the necessary plumbing, but not implementation, to do the
following:

biometrics.fingerprint@2.2:
- enroll_2_2(..., handle windowId)
- authenticate_2_2(..., handle windowId)

biometrics.face@1.1:
- enroll_1_1(..., handle windowId)
- enrollRemotely(...)

Bug: 148493694
Bug: 145562442
Test: enrolled and authenticated with Keyguard and BiometricPrompt
Test: compiled face@1.0 HAL as face@1.1 and made sure it works
Change-Id: I22e25df4d880d16d21a940e7dff6d233b64743d1
2020-02-06 01:49:40 -08:00
Nicholas Ambur
ce5cd840c9 fix naming discrepancy in SoundTrigger
adjusted SoundTrigger.AudioCapabilities constants

Bug: 148853209
Test: manual bulid and test
&& atest SoundTriggerMiddlewareImplTest

Change-Id: Idca3ccc671b90f6f31c872669400b44fbbd5b9bd
2020-02-05 09:50:38 -08:00
Nicholas Ambur
b6e48c213d add getters to SoundTrigger.ModelParamRange
Bug: 148852573
Test: manual test app with GTS test
Change-Id: Id8660ce70f926689449119f455579bc2ad2454cb
2020-02-05 09:50:33 -08:00
TreeHugger Robot
225bfa7c6b Merge "Require internal permission for BIOMETRIC_CONVENIENCE" 2020-02-03 21:55:40 +00:00
TreeHugger Robot
bc0a0675c0 Merge "Camera: Various offline processing fixes" 2020-02-03 16:08:21 +00:00
Yogisha Dixit
7adc47737b Merge "Add a content observer for DOZE_SUPPRESSED." 2020-02-03 14:53:39 +00:00
Yogisha Dixit
b6594defbe Add a content observer for DOZE_SUPPRESSED.
Test: manual, atest PlatformScenarioTests:DozeMachineTest
Bug: 147584235, 147587999
Change-Id: I5265f8d0572813e28278134196fc0fd26e0dfb25
2020-02-03 12:20:39 +00:00
Curtis Belmonte
421858b185 Require internal permission for BIOMETRIC_CONVENIENCE
At the request of Android API council, this commit adds the
@RequirePermission annotation to the @SystemApi constant
BiometricManager.Authenticators#BIOMETRIC_CONVENIENCE.

Test: atest com.android.server.biometrics
Fixes: 148596159
Change-Id: I9ec3fdf70b0abde601301012c8940116462fcc38
2020-02-01 00:04:53 +00:00
Andrii Kulian
e57f2dc246 Exempt-From-Owner-Approval: Fix usages of WindowManager.getDefaultDisplay() in f/b
Replace the existing usages of now-deprecated API
WindowManager.getDefaultDisplay() with WindowMetrics or
Context.getDisplay() in frameworks/base.

Bug: 128338354
Test: Build, auto test
Change-Id: I02d38a022c5e0e6e9d699f03d35b65d6c8126da9
2020-01-31 01:15:21 +00:00
Emilian Peev
ce371cacc1 Camera: Various offline processing fixes
Minor fixes along the offline processing code path
that enable the asynchronous public API.

Bug: 135142453
Test: Camera CTS
Change-Id: I1d9cc78b14cc3fa15c825fa80dbdf8c3060ae73a
2020-01-29 17:45:58 -08:00
TreeHugger Robot
6308b5e2ad Merge "Guard Context Hub Service on Context Hub feature" 2020-01-28 19:09:55 +00:00
Jayant Chowdhary
1636af3a1a Merge "camera2: Add apis for querying concurrent streaming support." 2020-01-27 18:24:07 +00:00
Kenny Guy
183063afdf Merge "Update brightness configuration per API review." 2020-01-27 17:53:59 +00:00
Jayant Chowdhary
a24f94b1fe camera2: Add apis for querying concurrent streaming support.
- getConcurrentStreamingCameraIds
- isConcurrentSessionConfigurationSupported

Bug: 77960042

Test: CTS
Test: GCA (Sanity)

Change-Id: I669901ec4b0c897f80193c99939181ac2ddd8b60
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2020-01-26 19:01:05 -08:00
Arthur Ishiguro
0cf065e13c Revert "Revert "Adds a new ACCESS_CONTEXT_HUB permission""
This reverts commit 21de9eebb5.

Bug: 135951924
Test: Compile
Reason for revert: Uploaded CL to fix test failure

Change-Id: I29e2937406aaea92a5e24c06819ea22bf9c8b58d
2020-01-24 13:15:23 -08:00
TreeHugger Robot
394041d988 Merge "Add hinge angle sensor type to sensors framework" 2020-01-24 18:45:01 +00:00
Remi NGUYEN VAN
f142af20f6 Merge "Local Tethering with ncm interface" 2020-01-24 13:59:55 +00:00
Milim Lee
31ef4c0520 Local Tethering with ncm interface
Bug: 130840842
Test: build, boot
      atest TetheringTest
      manual test (call startTethering(TETHERING_NCM))

Change-Id: Icc6c4d6be39e787503cecf3a5835b40d4be12a57
2020-01-24 19:18:04 +09:00