Commit Graph

3130 Commits

Author SHA1 Message Date
Kevin Chyn
76d5454a86 Merge "Handle cancellation properly for setDeviceCredentialAllowed(true)" into qt-dev 2019-04-10 08:34:34 +00:00
Kevin Chyn
5a90a653f5 Handle cancellation properly for setDeviceCredentialAllowed(true)
Keep the current auth session until ConfirmDeviceCredential succeeds
or fails. ConfirmDeviceCredential's BP and LSKF screens can be canceled
now.

Bug: 123378871
Bug: 128747871

Test: With modified BiometricPromptDemo, ConfirmDeviceCredential's
      BiometricPrompt and LSKF screens can be canceled

Change-Id: Icaf3f0c55b07fd138a2ee9d214941ea83408f0ee
2019-04-09 22:04:05 -07:00
Rob Carr
f8f5f0290e Merge "Careful with screenshots containing secure layers!" into qt-dev 2019-04-09 00:45:22 +00:00
Robert Carr
66b5664f2d Careful with screenshots containing secure layers!
For purposes of	the screen rotation animation the system server	is allowed
to capture secure (not protected) layers and trusted not to persist screenshots
which may contain secure layers. However when displaying the screen rotation animation,
the layer the screenshot is placed on will itself not be secure, so if we record
the animation the recording will contain persisted versions of the secure content. Make sure
we use the new API from SurfaceFlinger to set FLAG_SECURE if our screenshot contains secure
content.

Bug: 69703445
Test: Transaction_test#SetFlagsSecureEuidSystem
Change-Id: I1b016fb1ad56eccd712442a71cc134e5fa3b1ac6
2019-04-08 15:22:46 -07:00
Christine Franks
66783a8440 Add display white balance enabled methods to CDS
There needs to be a single source of truth about whether DWB is
enabled or disabled.

Bug: 123930917
Test: atest FrameworksServicesTests:DisplayWhiteBalanceTintControllerTest

Change-Id: If634b46c2d0da123901bd5833e2114d958957540
(cherry picked from commit ff6770d669)
2019-04-05 21:36:56 +00:00
Shuzhen Wang
64ed101290 Camera: Clarify camera1 API behavior for getNumberOfCameras
Expose at most 1 camera ID per facing for all logical-physical camera ID
groups.

Test: Build and read docs
Bug: 113705942
Change-Id: I86a06562eafd600d351d8db2582a613b3323404c
2019-04-04 15:55:37 +00:00
Yin-Chia Yeh
796820aa92 Merge "Camera: add QCIF resolution exception" into pi-dev
am: 5b09928b22

Change-Id: I20e60ef6d84c969b1651e449f5a076183d38a7c9
2019-04-04 00:14:38 -07:00
Kevin Chyn
9af1448d50 Merge "Make get/set feature async between settings and service" 2019-04-03 23:46:14 +00:00
TreeHugger Robot
c2bb94fc29 Merge "Add package name when loadModules and attach." 2019-04-03 19:36:20 +00:00
Michael Wright
89df2a72f7 Merge "Expose input region monitoring to system components." 2019-04-03 16:04:03 +00:00
Michael Wright
c7995239ef Expose input region monitoring to system components.
This is to allow SysUI to detect system-wide gestures.

Test: manual
Bug: 123748692
Change-Id: Ic1e2cd6afea219d0e20b29e7150c9a42b75c7a67
2019-04-03 13:46:30 +01:00
Kevin Chyn
e62749a2c2 Make get/set feature async between settings and service
Fixes: 127382095

Test: None
Change-Id: Ib5495bf5a39bc3a2939aad5c721e32375dd9dde3
2019-04-02 19:59:14 -07:00
TreeHugger Robot
fd283c35f0 Merge "Camera: Relax logical camera stream combination requirement" 2019-04-03 00:06:53 +00:00
Yin-Chia Yeh
428256d258 Camera: add QCIF resolution exception
Also fix a typo.

Test: checkbuild
Bug: 120158047
Bug: 122461651
Change-Id: I61eab3f526e307b04a71c8382e9fa76aee7871e1
2019-04-01 12:40:51 -07:00
TreeHugger Robot
afebeabb48 Merge "Camera: Pass physical camera device id during errors" 2019-04-01 17:00:39 +00:00
Shuzhen Wang
de95aafac6 Camera: legecy: disconnect JPEG surface at exit
Test: Camera CTS on Pixel 1 with HAL1 enabled on nyc-mr2
Bug: 128600230
Change-Id: Ide5acf3117c178029c187ed4ad9d270878c220be
2019-03-27 14:05:39 -07:00
TreeHugger Robot
6897a4e51c Merge "Respond to taps and lifts when AOD is off" 2019-03-26 17:34:21 +00:00
Shuzhen Wang
2da73f420f Camera: Relax logical camera stream combination requirement
Depending on hardware capability, a logical camera may not support
concurrent physical streams. Relax the requirement for stream
combination accordingly.

Also fix missing MANDATORY_STREAM_COMBINATIONS issue for hidden physical
camera.

Test: Updated camera CTS, ITS
Bug: 119325664
Change-Id: Iddbef330d7e091d55ac44124a03fca5a932ae13a
2019-03-26 10:15:48 -07:00
Lucas Dupin
62206ccb11 Respond to taps and lifts when AOD is off
Gesture registration happens in the doze machine, meaning
that there's a dependency between slpi gestures and the
doze service.

Fixes: 118930173
Test: manual
Change-Id: Ic8fd0ed1d2192720a8f0313544d491a498a5cb05
2019-03-25 16:27:51 -07:00
Emilian Peev
d0e96e3a38 Camera: Pass physical camera device id during errors
Failing capture requests associated with physical cameras
must return information about the specific device.

Bug: 128835627
Test: Camera CTS
Change-Id: Icfac9bc442fbe78d9398ce1c1b5faba40022c558
2019-03-25 19:21:06 +00:00
Christine Franks
e17d742ce5 Synchronize NightDisplayListener
Bug: 124232236
Test: manual
Change-Id: Ie0db4e53d20781f21f4fe49670706721e56c9ca7
2019-03-21 12:55:34 -07:00
Andrei Onea
e30e3928f9 Add @UnsupportedAppUsage annotations
For packages:
  android.companion
  android.filterfw
  android.hardware.camera2.utils
  android.inputmethodservice
  android.net.nsd
  android.os
  android.preference
  android.security.keymaster
  android.service.dreams
  android.telecom
  android.telephony.ims.compat.feature
  android.telephony
  android.util
  android.view.accessibility
  android.media.effect

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I9c2f8347952f3cc65759472b0e1a2717b285e44e
2019-03-21 14:04:57 +00:00
jiabin
1f4b4dd742 Add package name when loadModules and attach.
Adding package name when loading modules and attaching can help check
the permission of capturing hotword.

Test: test with logging.
Bug: 74078996
Bug: 122721589
Change-Id: I283d2e15283542384822d547bc1f322384172896
2019-03-20 18:05:14 -07:00
TreeHugger Robot
7ae743134f Merge "Fix color sampling API per review comments." 2019-03-19 11:12:45 +00:00
TreeHugger Robot
e147bba371 Merge "Update acquisition strings" 2019-03-19 02:50:43 +00:00
Kevin Chyn
650c3faaa1 Merge "Update BiometricPrompt documentation" 2019-03-19 00:53:31 +00:00
Kevin Chyn
7e7b509f17 Update acquisition strings
Fixes: 128629012
Fixes: 128452700
Bug: 111548033

Test: Builds
Change-Id: If5ea688cbd6603d05c9f6883e8038ce3a7bc6a6c
2019-03-18 17:40:32 -07:00
TreeHugger Robot
01e63ea5fd Merge "Camera: Update "RecommendedStreamConfigurationMap" annotations" 2019-03-18 23:42:53 +00:00
Kenny Guy
517f16ca19 Fix color sampling API per review comments.
Fix the API review javadoc comments on the color sampling API.

Test: atest BrightnessTrackerTest
Bug: 125800625
Change-Id: I5cbeea02b4350232b95485ec59f8a3c02e708b23
2019-03-18 16:01:23 +00:00
Emilian Peev
506acca748 Camera: Add low latency suggested use case
Extend the recommended configuration map use cases
with additional entry for low latency snapshots.
The map could be absent in case devices are not able
to support such low latency requests.

Bug: 128450197
Test: Camera CTS
Change-Id: Ica9285978aeb40fce636f519f38488ac539c0bce
2019-03-18 08:50:45 -07:00
Kevin Chyn
2927d2c6d9 Update BiometricPrompt documentation
Bug: 128452510

Test: Builds
Change-Id: I561324c90e8beb25aefd16c3b656c40db0588f15
2019-03-16 19:27:12 -07:00
Kevin Chyn
00220617cd Merge changes from topic "face-hidl"
* changes:
  Update framework together with HIDL onRemoved
  Update constants with HIDL
2019-03-14 21:53:31 +00:00
Eino-Ville Talvala
f85bf68041 Merge "Camera: Centralize OWNERS" 2019-03-14 17:13:46 +00:00
TreeHugger Robot
bbb81852b4 Merge "Revert "Camera: Temporarily add @UnsupportedAppUsage to various Key things."" 2019-03-14 16:56:38 +00:00
Eino-Ville Talvala
06185b2a4e Camera: Centralize OWNERS
Test: Builds
Change-Id: I90dfa29624de114b442621031ee82805fb901f21
2019-03-13 15:27:01 -07:00
George Lu
b62f541a9e Merge "Catch IllegalStateException in RadioManager.openTuner()" 2019-03-13 16:26:30 +00:00
George Lu
de874608e7 Catch IllegalStateException in RadioManager.openTuner()
b/126887436 is caused by the failure to catch this exception, which
prevents the creation of RadioAppService, which in turn causes
RadioActivity to crash upon creation.

Bug: 126887436
Test: Manually verified mitigation of b/126887436
Change-Id: I99a35c6c26a00ea1b977a592fc1c08e3127b6351
2019-03-13 04:01:23 +00:00
TreeHugger Robot
63d37cc4bd Merge "Camera: Update priority callback documentation" 2019-03-12 22:57:58 +00:00
Emilian Peev
c474a8b320 Camera: Update priority callback documentation
Describe the callback purpose so it is consistent
with the rest of the callbacks.

Bug: 128427361
Test: Successful build
Change-Id: Ia97dbd33eb65f8166865ce0b297a83d4728507ff
2019-03-12 12:04:46 -07:00
Kevin Chyn
d3d2583dff Update constants with HIDL
Test: Builds
Bug: 127993599
Change-Id: I02c7a841a9ddd98808b174c889a0f3f203b01107
2019-03-11 14:48:28 -07:00
David Brazdil
3f6c596f0a Merge "Move Camera.EventHandler constructor to greylist" am: b31032b3b0 am: 7746e7c553
am: 847b02cac4

Change-Id: I24e65e05fcf46b584af80c732330623ec521870f
2019-03-08 07:45:34 -08:00
David Brazdil
67e37d6fc7 Revert "Camera: Temporarily add @UnsupportedAppUsage to various Key things."
This reverts commit 60331e278d.

Reason for revert: Not needed after issue was fixed.

Bug: 126901248
Change-Id: I8955caf9ab7851ada8c4830e73e51f8bbdfffca9
2019-03-08 11:27:17 +00:00
Treehugger Robot
b31032b3b0 Merge "Move Camera.EventHandler constructor to greylist" 2019-03-07 23:16:40 +00:00
David Brazdil
982df3ba83 Move Camera.EventHandler constructor to greylist
Exempted-From-Owner-Approval: Automatic changes to the codebase
affecting only @UnsupportedAppUsage annotations, themselves added
without requiring owners approval earlier.

Bug: 122331906
Test: m appcompat
Change-Id: I3abc8221706bd69668c90aa61b8ca5f137a88bb9
2019-03-07 17:44:10 +00:00
Eino-Ville Talvala
e739064b74 Merge "Camera: Annotate the Key constructors with nullability." 2019-03-07 00:25:36 +00:00
Eino-Ville Talvala
79d4aac39b Camera: Annotate the Key constructors with nullability.
Test: Builds
Bug: 126699273
Change-Id: Ifd14a79ff6ffbb19ef1a45ac0da45efa2be748b1
2019-03-06 14:26:10 -08:00
Kevin Chyn
f2f31c212b Merge "Update framework together with IBiometricsFace.hal" 2019-03-06 19:29:58 +00:00
Andrei Onea
8c2fb5b99b Add @UnsupportedAppUsage annotations
For packages:
  android.database
  android.hardware.display
  android.hardware.input
  android.hardware.location
  android.location
  android.media
  android.media.projection
  android.media.tv

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Merged-In: I570c08292f8a9f512c96f9dce13f5337718f112c
Change-Id: I1d6c60fcb53f404d5775163bf6929395921f5a45
2019-03-06 15:39:19 +00:00
Kevin Chyn
b95f152910 Update framework together with IBiometricsFace.hal
Bug: 123262389

Test: Builds
Change-Id: I7d6f874e93180cb41f30cf02dd7f47c57dd6bb92
2019-03-05 17:41:12 -08:00
Kevin Chyn
e64d74ecaf Update BiometricPrompt API naming
Fixes: 126190552

Test: make -j56 update-api
Test: make -j56
Change-Id: I1c0700106e46b8dbfb825df341a8196a33f8bc83
2019-03-04 22:34:07 -08:00