Commit Graph

3475 Commits

Author SHA1 Message Date
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
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
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
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
Eino-Ville Talvala
baa1e13393 Merge "Camera: Add android.scaler.rotateAndCrop control" 2020-01-24 06:04:16 +00:00
Arthur Ishiguro
c88b3ce7c4 Guard Context Hub Service on Context Hub feature
Also adds annotation to require the feature.

Bug: 147677675
Test: Compile and flash, verify Context Hub Service is not found if the
feature flag is not defined
Change-Id: Ia718c76ec4308274dc66cfe975e762997e3539ca
2020-01-23 14:26:03 -08:00
Shuzhen Wang
0d7929c51c Merge "CameraManager: Add physical camera availability callback" 2020-01-23 21:04:19 +00:00
Mike Ma
42e623587a Merge "Dump contexthub in protobuf format" 2020-01-23 19:45:54 +00:00
Ivailo Karamanolev
1a6fad470a Merge changes from topics "add-lights-manager", "lights-aidl-hal"
* changes:
  Add LightsManager implementation to LightsService
  Add Lights AIDL HAL support to LightsService
  Rename Light to LogicalLight to avoid namespace conflicts when adding AIDL HAL lights support.
2020-01-23 16:05:07 +00:00
TreeHugger Robot
2a8fae9828 Merge changes from topic "voiceinteraction-model-enrollment"
* changes:
  async enrollment support AlwaysOnHotwordDetector
  add KeyphraseModelManager
2020-01-23 02:46:50 +00:00
Nicholas Ambur
f771e6c9f6 async enrollment support AlwaysOnHotwordDetector
Added ability for AlwaysOnHotwordDetector to support async enrollment
performed outside of support detected through KeyphraseEnrollmentInfo.

Bug: 147159435
Test: tested enrollment and availability is updated when enrolling
outside of KeyphraseEnrollmentInfo

Change-Id: Ia5d71e90c062ac100d4c6df760acf0d41920853e
2020-01-22 16:40:18 -08:00
Nicholas Ambur
ef84fc4843 add KeyphraseModelManager
Exposes a set of @SystemApi's allowing the active VoiceInteractionService
to enroll voice models.

Bug: 147159435
Test: manual tested enrollment and unenrollment via bundled
hotwordenrollment application and test app.

Change-Id: I94ef3550df236486401a0a6f9de9d874b9bf9b46
2020-01-22 16:40:13 -08:00
Ivailo Karamanolev
090d02ca84 Add LightsManager implementation to LightsService
Includes backend code to support LightsManager binder calls and route
them to the HALs.

Bug: 144979010
Bug: 144978691
Bug: 142715294
Fix: 142230898
Test: atest LightsManagerTest
Test: atest LightsServiceTest
Change-Id: I2db7f2caa432cd1e2389ea5ca6544200ada18675
Exempt-From-Owner-Approval: Reviewed in OOO OWNERS's stead.
2020-01-22 23:49:02 +01:00
Mike Ma
ac0cae7c48 Dump contexthub in protobuf format
Add protobuf dumpsys of connmetrics. Primarily used by incident service
to capture an incident report proto.

Command to invoke (any of the following after lunch and env setup):
$ adb shell dumpsys contexthub --proto
$ adb shell incident 3051
$ incident_report 3051

Bug: 146086599
Test: $ incident_report 3051, then compare the content with "dumpsys
      contexthub"

Change-Id: I6c2ed76a1a17f9bfc60d07e68cd66d5eea00e9b0
2020-01-22 14:03:56 -08:00
Howard Yen
ba5a535640 Merge changes from topic "usb_gadget_reset"
* changes:
  Add svc usb resetUsbGadget method
  Support USB Gadget V1.1 HAL
2020-01-22 20:56:44 +00:00
Shuzhen Wang
34bf53fc6c CameraManager: Add physical camera availability callback
Add CameraManager callback for physical camera availability.

Bug: 119325027
Test: Camera CTS
Change-Id: Ibe0357f5034769511576cc71c04365a1009a2be1
2020-01-22 00:17:31 -08:00
TreeHugger Robot
5561857cc7 Merge "Revert "Adds a new ACCESS_CONTEXT_HUB permission"" 2020-01-22 07:59:31 +00:00
Jaewan Kim
21de9eebb5 Revert "Adds a new ACCESS_CONTEXT_HUB permission"
This reverts commit 4042897855.

Bug: 135951924
Reason for revert:
   Breaks PermissionPolicyTest.platformPermissionPolicyIsUnaltered
   in CtsPermission2TestCases

Change-Id: Ie48fca6a0c54e281aae0db6cd9652b49cebbaa5c
2020-01-22 06:23:44 +00:00
TreeHugger Robot
c455927ff4 Merge changes from topic "OfflineReproc-impl"
* changes:
  Camera: Add API for surface offline mode queries
  Camera: Add initial offline camera session implementation
2020-01-22 04:01:01 +00:00
Arthur Ishiguro
e5b3e8e8f0 Merge "Adds a new ACCESS_CONTEXT_HUB permission" 2020-01-22 02:23:44 +00:00
Arthur Ishiguro
4042897855 Adds a new ACCESS_CONTEXT_HUB permission
Since not all Context Hub applications are location-related, the
use of the LOCATION_HARDWARE permission to control access to the Context Hub
System APIs can be misleading. Create a new permission to access it, and
adds the logic to enforce the permission.

Also clarifies usage of PendingIntent ContextHubClient.

Bug: 135951924
Test: Compile and flash
Change-Id: I5f22db7e57ef4a6c3718acb38c4f313d6a04839f
2020-01-21 14:39:51 -08:00
TreeHugger Robot
06e6d824f1 Merge "Add methods to retrieve the native CameraMetadata pointer." 2020-01-21 22:02:48 +00:00
Emilian Peev
731009ed15 Camera: Add API for surface offline mode queries
Camera clients of devices that support offline processing
capability must be able to check for offline support of
individual surfaces registered within a give capture session.

Bug: 135142453
Test: Camera CTS
Change-Id: Ia5b6ec31a3540925b92761c9ac1f2407214cbcf7
2020-01-21 12:59:56 -08:00
Anthony Stange
51a0c35b5a Add hinge angle sensor type to sensors framework
Adds new hinge angle sensor type that will expose the angle, in degrees,
between two displays on a device.

Bug: 144139857
Test: Make SDK docs and verify updated wording is present
Change-Id: I20e93bc788f06c4dd48d481c368da01b30cc8d4d
2020-01-21 14:54:14 -05:00
Jiawen Chen
5419ea37da Add methods to retrieve the native CameraMetadata pointer.
Test: atest android.hardware.camera2.cts.CameraManagerTest#testCameraCharacteristicsNdkFromSdk android.hardware.camera2.cts.CaptureResultTest#testCameraCaptureResultAllKeys
Bug: 80513080

Change-Id: I296db8425b562e09843159dfab3afa0960b4854f
2020-01-21 14:26:32 -05:00
Automerger Merge Worker
310f576b7f Merge "Add Framework APIs for Identity Credential." am: 2fb5112a35 am: 70485380f7 am: 6079e88fae
Change-Id: Iec2c6c1ec28b5697b8d2b444081a3240bea2af9e
2020-01-21 15:12:56 +00:00
David Zeuthen
70485380f7 Merge "Add Framework APIs for Identity Credential."
am: 2fb5112a35

Change-Id: Ifb511b43fd180980badef43b7ea3009e3a9ba00b
2020-01-21 06:45:12 -08:00