Commit Graph

3463 Commits

Author SHA1 Message Date
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
Eino-Ville Talvala
a9b1d60f9e Camera: Add android.scaler.rotateAndCrop control
Intended for backward compatibility support for camera apps that do
not handle multi-window scenarios like inset portrait or foldables
with dynamic screen changes.

Test: New CTS tests pass
Bug: 134631897
Change-Id: I1cc85d4413e6af2b490b86916933a5cd7ce84a6a
2020-01-21 00:30:11 -08:00
David Zeuthen
045b6de975 Add Framework APIs for Identity Credential.
The Identity Credential APIs provides an interface to a secure store
for user identity documents.  These APIs are deliberately fairly
general and abstract.  To the extent possible, specification of the
message formats and semantics of communication with credential
verification devices and Issuing Authorities (IAs) is out of scope for
these APIs.

The Identity Credential APIs rely on user authentication to protect
data elements in credentials which is implemented through
auth-tokens. This CL contains changes to CryptoObject to allow this.

Bug: 111446262
Test: CtsIdentityTestCases
Change-Id: I48f21a561b762d86c9ca8d229962782572412f47
2020-01-20 15:56:57 -05:00
Emilian Peev
301abd4940 Camera: Add initial offline camera session implementation
Offline camera sessions allow clients to migrate still
ongoing capture requests to offline processing mode.
When offline mode is enabled, the initial active capture
session along with the open camera device can be closed
and further re-used while offline processing is still
ongoing.
Split and re-use parts of camera device implementation
along with its current state for offline mode.

Bug: 135142453
Test: Camera CTS
Change-Id: I5eb4055e2af4265ece0fb7271bdf5f4cf2d5aaf3
2020-01-20 10:32:20 -08:00
Kenny Guy
cae6c351b7 Update brightness configuration per API review.
Add Millis to methods that deal with milliseconds.

Bug: 147835087
Test: atest BrightnessConfigurationTest
Test: atest AutomaticBrightnessControllerTest

Change-Id: Ib959762a2fb54efb965252071953c8af46403961
2020-01-20 15:10:59 +00:00
Galia Peycheva
a85b3d56a3 Merge "Add a TestApi to DM to get the last requested MPP" 2020-01-20 08:05:39 +00:00
Galia Peycheva
35f900a4d0 Add a TestApi to DM to get the last requested MPP
This CL exposes DisplayManager.getRequestedMinimalPostProcessing
for testing purposes. The call is propagated to
LogicalDisplay.getRequestedMinimalPostProcessingLocked().

Bug: 139369866

Test: m, flash, atest
CtsWindowManagerDeviceTestCases:MinimalPostProcessingTests

Change-Id: I7736d6e7a5c97d663111d10efa66d6d38a7e70bd
2020-01-17 20:23:01 +01:00
Howard Yen
db8f11654b Support USB Gadget V1.1 HAL
USB Gadget V1.1 HAL supports USB port reset interface.

Bug: 138702846
Test: build pass, function works
Change-Id: Ia4b3b85bb0ce74307599832f849d3e23c2546187
2020-01-17 22:23:12 +08:00
Andrii Kulian
2b3b20c388 Merge changes from topic "app_config_compat"
* changes:
  Update resource config for default display
  Override process config to match activity config
  Set parent for WindowProcessController
2020-01-17 04:56:41 +00:00
TreeHugger Robot
ba3882446c Merge "Camera: Add new UNDEFINED pose reference enum" 2020-01-16 21:49:19 +00:00
Ytai Ben-Tsvi
2e8f78b322 Improve exception handling in SoundTrigger
This unified the exception handling of SoundTrigger and
SoundTriggerModule and adds support for some ServiceSepcificExceptions
that may occur.

Change-Id: I018c7b249058758f0f3b5af34ee06a2396ecb6a7
Bug: 147435580
2020-01-15 13:10:33 -08:00
Andrii Kulian
946e8df660 Update resource config for default display
When a launched application doesn't occupy the entire screen space,
there is a mismatch between the configuration of the process and the
configuration of activities. This leads to compatibility issues with
apps that don't expect this, read display metrics from Application
resources and try to apply them in activities.

The platform may apply a compatibility mode, in which the process
configuration will match the config of the top running activity. This
means that the process configuration may change and runtime and
result in display adjustments that are different from the default
values. This CL propagates resource configuration updates even for
default display to make sure that the config changes are reflected
for non-activity contexts.

Test: CtsWindowManagerDeviceTestCases:AppConfigurationTests
Change-Id: I91cadc83a82a3be8c8dee810bbd1aa97cbe4e97f
2020-01-15 12:22:46 -08:00
TreeHugger Robot
d5dc1844bb Merge "fix parceling issue with KeyphraseSoundModel" 2020-01-15 05:36:57 +00:00