Commit Graph

4039 Commits

Author SHA1 Message Date
Ilya Matyukhin
68cf25280c Merge "Define face/ServiceProvider and prepare for migration" 2020-11-02 22:12:48 +00:00
Kevin Chyn
8cc774101a Merge "Add FingerprintManager#hasEnrolledTemplatesForAnySensor" 2020-11-02 19:23:56 +00:00
Ilya Matyukhin
74bfec509e Define face/ServiceProvider and prepare for migration
Bug: 171335732
Test: atest com.android.server.biometrics
Test: enrolled and authenticated face on device
Change-Id: I7dc7dfd666c488b7d5ce8767d88888264cbf1f9f
2020-11-02 18:22:22 +00:00
Kevin Chyn
1f57d49356 Add FingerprintManager#hasEnrolledTemplatesForAnySensor
Also fixes places where "e.rethrowFromSystemServer()" wasn't actually
throwing the exception

Bug: 171420675
Test: Builds

Change-Id: I8a077a9184d6efaeb39ed66652a7f44fa9f8ddb6
2020-10-30 15:10:36 -07:00
Ilya Matyukhin
1c69bac012 Merge "Remove surface from fingerprint methods" 2020-10-29 18:59:38 +00:00
Ilya Matyukhin
ce07974e1b Remove surface from fingerprint methods
Bug: 171912347
Test: atest com.android.server.biometrics
Test: atest FingerprintServiceTest
Test: enrolled and authenticated on blueline
Change-Id: I139569b873e38515d16bbc96a563198d866236ef
2020-10-29 11:56:06 -07:00
Mathew Inwood
3af3fc63fe Add trackingBug to code used by tests.
INJECT_INPUT_EVENT_MODE_WAIT_FOR_FINISH appears to be used by espresso.

Bug: 171972397
Change-Id: Ic9df340620bf6c4e2cdd0dff077548f5807fa8e3
2020-10-29 16:42:26 +00:00
Mathew Inwood
8e742f928e Add maxTargetSdk restriction to unused APIs.
These are APIs that have @UnsupportedAppUsage but for which we don't
have any evidence of them currently being used, so should be safe to
remove from the unsupported list.

This is a resubmit of ag/12929664 with some APIs excluded that caused
test failures; see bugs 171886397, 171888296, 171864568.

APIs excluded:
Landroid/bluetooth/le/ScanRecord;->parseFromBytes([B)Landroid/bluetooth/le/ScanRecord;
Landroid/os/Process;->myPpid()I
Landroid/os/SharedMemory;->getFd()I
Landroid/hardware/input/InputManager;->INJECT_INPUT_EVENT_MODE_WAIT_FOR_FINISH:I

Bug: 170729553
Test: Treehugger
Change-Id: I8285daa8530260251ecad6f3f38f98e263629ca7
2020-10-29 11:51:12 +00:00
Kevin Chyn
6a7992b9dd Merge "Add sensorLocationX/Y and sensorRadius to SensorProps" 2020-10-29 00:11:59 +00:00
Hongwei Wang
286c33a5c5 Merge "Revert "Add maxTargetSdk restriction to unused APIs."" 2020-10-28 23:58:21 +00:00
Hongwei Wang
050275cd83 Revert "Add maxTargetSdk restriction to unused APIs."
This reverts commit 72f07d6a8a.

Reason for revert: Droidcop-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?testMethod=testAppZygotePreload&testClass=android.app.cts.ServiceTest&atpConfigName=suite%2Ftest-mapping-presubmit-retry_cloud-tf&testModule=CtsAppTestCases&fkbb=6936597&lkbb=6936969&lkgb=6936551&testResults=true&branch=git_master&target=cf_x86_phone-userdebug>, bug b/171886397

Bug: 171886397
Change-Id: Ibe0f0430a3451477c1ee8ef56a596e91ea1e7672
2020-10-28 20:16:22 +00:00
Mathew Inwood
ee5d369323 Merge "Add maxTargetSdk restriction to unused APIs." 2020-10-28 09:39:20 +00:00
Sean Stout
54755995ac Merge "Introduce DisplayGroup" 2020-10-28 04:30:04 +00:00
Kevin Chyn
cf22a0bcdc Add sensorLocationX/Y and sensorRadius to SensorProps
Removes the above properties from the Udfps Styleable, but
ensures that the properties are passed in after inflation and
before attachment.

Bug: 171071087
Test: atest com.android.systemui.biometrics
Test: com.android.server.biometrics
Change-Id: I6ff932772c8e2be22210c16b58e603f8a363f247
2020-10-27 20:43:24 -07:00
Jayant Chowdhary
16695b9a47 Merge "Fix minor typos in CameraCharacteristics documentation." 2020-10-28 01:44:17 +00:00
Sean Stout
a9f63583d0 Introduce DisplayGroup
A DisplayGroup is a collection of LogicalDisplays which are tied
together for certain behaviors and operations. This CL simply introduces
the class, however in the future it will be used for multi-display power
state work.

Bug: 138328918
Test: manual - build and deploy
Change-Id: I3d736b2758a3363678afc962872fcbe7f4e96806
2020-10-27 18:38:55 -07:00
Mathew Inwood
72f07d6a8a Add maxTargetSdk restriction to unused APIs.
These are APIs that have @UnsupportedAppUsage but for which we don't
have any evidence of them currently being used, so should be safe to
remove from the unsupported list.

Bug: 170729553
Test: Treehugger
Change-Id: I4c8fd0006f950de9955242e93968fb0996ceb372
2020-10-27 15:46:07 +00:00
Jayant Chowdhary
222f878c0a Fix minor typos in CameraCharacteristics documentation.
Test: builds

Change-Id: I76dcdecbbe27be44f6e8a1a8e11d9399c5e0d32a
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2020-10-26 15:56:22 -07:00
TreeHugger Robot
2c3b30b430 Merge "Camera: Add CaptureResult#getCameraId()" 2020-10-26 22:35:17 +00:00
Eino-Ville Talvala
575f3d7e47 Camera: Add CaptureResult#getCameraId()
To simplify tracking of capture results from multi-camera clusters,
add a method to get the camera ID that produced the capture result.

Test: atest CtsCameraTestCases
Bug: 171709658
Change-Id: I1109fd000ce9fbb57bb5b7ae281d0f42a5218cf7
2020-10-26 13:13:19 -07:00
Kevin Chyn
688d81ebc9 Merge changes from topics "fingerprintmanager-cts", "fp-aidl-cts"
* changes:
  Update IFingerprint providers for CTS
  Initial FingerprintManager E2E CTS
2020-10-26 17:42:00 +00:00
Kevin Chyn
a524fc37db Initial FingerprintManager E2E CTS
Bug: 170518383
Test: atest FingerprintManagerTest

Change-Id: Iea5b281a6a799491c25030ad87f48225a1cfb387
2020-10-23 12:40:15 -07:00
Bernardo Rufino
3d5a183897 Merge "Block untrusted touches in permissive mode" 2020-10-23 19:40:01 +00:00
Bernardo Rufino
bf4e8931bc Block untrusted touches in permissive mode
Don't block the touch but show a toast and log a message. After having
fixed b/166617888, we should start getting dogfood feedback.

Test: Simulate untrusted touch and verify toast
Bug: 158002302
Change-Id: I7de1bfc2bb4b7d7ce018790b33b1c162f3ebe82a
2020-10-23 07:38:42 +00:00
Michal Olech
b71636ad79 [CEC Configuration] Rename getAvailableCecSettings to getUserCecSettings
Also:
* use @CecSettingName more extensively in the API and method signature.
* add getAllCecSettings() method to HdmiCecConfig.

Bug: 168020131
Test: atest HdmiCecConfigTest
Change-Id: I318357befb05324afd0132dfcbaf2d9cc6f7bf33
2020-10-22 14:50:31 +02:00
Michal Olech
ec820fd42c Merge changes from topic "CecConfigZero"
* changes:
  [CEC Configuration] Add CEC Configuration APIs
  [CEC Configuration] Add XML schema parser API
2020-10-22 11:41:21 +00:00
Michal Olech
b4fd0e8576 [CEC Configuration] Add CEC Configuration APIs
Bug: 166426337
Bug: 169144568
Test: atest HdmiCecConfigTest

Change-Id: I7f109027103e73955d09b251a7a94aee9beded67
2020-10-22 11:26:40 +02:00
Jeff Sharkey
1992cdb4de Merge changes from topic "oct16c"
* changes:
  Apply fixes for EfficientStrings.
  Apply fixes for EfficientStrings.
  Apply fixes for EfficientStringsChecker.
  Apply fixes for EfficientCollections.
  Trivial refactor for consistent naming.
  Expand formatSimple() to support widths.
  Refinement of EfficientStringsChecker.
2020-10-21 15:27:15 +00:00
Jeff Sharkey
c603ca2dd8 Apply fixes for EfficientStrings.
Refactoring to avoid StringBuffer synchronization overhead.

Bug: 170978902
Test: none
Exempt-From-Owner-Approval: trivial refactoring
Change-Id: Ibf843ed780c1202d5d96a11eaca889e592f19263
2020-10-20 22:00:20 -06:00
Jeff Sharkey
1c08f48253 Apply fixes for EfficientStringsChecker.
The recently-built Error Prone checker has found many instances where
we're always paying the cost of StringBuilder concatenation, even in
the typical cases where preconditions are successfully met.

Benchmarks have shown that even when replacing these with varargs
formatter strings, the default case is 20x faster.

Bug: 170978902
Test: none
Exempt-From-Owner-Approval: trivial refactoring
Change-Id: If8c00bc73467bfb91ec16c162969c9d26ca53646
2020-10-20 22:00:16 -06:00
Kevin Chyn
e89674f9d8 Merge "Add missing parameters to notifyAcquired and notifyError" 2020-10-20 21:32:39 +00:00
Kevin Chyn
247408b28f Add missing parameters to notifyAcquired and notifyError
Adds missing acquireInfo and errorCode parameters

Bug: 169459906
Test: make -j update-api && make -j
Change-Id: I8cae7662e9d4ad7dad6064365479d0e08b7e4d11
2020-10-20 12:21:33 -07:00
Anton Hansson
c0e3a09690 Merge "Remove @TestApi from @SystemApi symbols" 2020-10-20 13:41:39 +00:00
Santos Cordon
ae31181f13 Merge "Integrate LogicalDisplayMapper with DisplayFoldController." 2020-10-20 11:47:44 +00:00
Anton Hansson
586a3cf229 Remove @TestApi from @SystemApi symbols
I ran these commands:
    cd frameworks/base
    grep -rl '@TestApi' --include '*.java' | xargs perl -i -p0e \
        's/\@SystemApi[\s\n]+(\@\w+[\s\n]+)?\@TestApi/\@SystemApi\1/gs'
    grep -rl '@TestApi' --include '*.java' | xargs perl -i -p0e \
        's/\@TestApi[\s\n]+(\@\w+[\s\n]+)?\@SystemApi/\1\@SystemApi/gs'

Bug: 171179806
Test: m checkapi
Change-Id: I772790b783b0a8730b8bf680c9e569a886b8d789
2020-10-20 09:04:03 +01:00
Treehugger Robot
3c61e7fd71 Merge "Fix documentation of heart beat sensor" am: 3bef7fe58b am: a3d54aaa88 am: 4807d99163 am: 8570351c5a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1465663

Change-Id: Id274e65bade2dbafdf213f282bd7343bb9425d18
2020-10-20 00:29:06 +00:00
Treehugger Robot
8570351c5a Merge "Fix documentation of heart beat sensor" am: 3bef7fe58b am: a3d54aaa88 am: 4807d99163
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1465663

Change-Id: I9197744b37e3f2a082624e28a59a0a7e36536d87
2020-10-20 00:06:15 +00:00
Treehugger Robot
4807d99163 Merge "Fix documentation of heart beat sensor" am: 3bef7fe58b am: a3d54aaa88
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1465663

Change-Id: I7ccbaa984ded806aee599066dc13eacc31244ead
2020-10-19 23:45:44 +00:00
Treehugger Robot
a3d54aaa88 Merge "Fix documentation of heart beat sensor" am: 3bef7fe58b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1465663

Change-Id: Ib6ec0365c09e32ea0bce3cb00c20d1d3d8345916
2020-10-19 23:16:43 +00:00
Arthur Ishiguro
63b75dd100 Fix documentation of heart beat sensor
Bug: 158617116
Test: None
Change-Id: Ic6b2c631e0deced70790860ed2080eb5a8089091
2020-10-19 12:35:12 -07:00
Santos Cordon
5838d68069 Integrate LogicalDisplayMapper with DisplayFoldController.
Test: Manual - ensure folding mechanism still works
Bug: 130724654
Change-Id: I5fe88e2635ed2b1731ac2f1a197b6b99e18d4ebc
2020-10-19 17:28:59 +01:00
Ilya Matyukhin
c9046a071a Merge "Move generateChallenge/revokeChallenge to ISession" 2020-10-17 00:10:47 +00:00
Santos Cordon
b254db1866 Swap default display when lid-switch is toggled.
For devices with multiple internal displays that support
a lid-switch, automatically swap which DisplayDevice is
associated with the default Logical Display.

Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/display
Bug: 130724654
Change-Id: I7280b4f49c0f11df4ecd0f2a1547c95c168265c7
2020-10-16 11:55:44 +00:00
Kevin Chyn
1a77a3bea7 Move generateChallenge/revokeChallenge to ISession
This also makes challenges user-specific, which is fine. Older
HAL interfaces can just ignore the userId parameter.

Test: Enroll, auth on existing devices
Fixes: 170517180
Fixes: 171002801
Change-Id: Ie0fc030476350bc3c35fc28643108ad4d4d3f2ce
2020-10-15 19:00:51 -07:00
Roman Kalukiewicz
24403f7ef2 Add @Nullable annotation to the parameter of Object.equals() methods.
Those annotations could be inferred by some tools (like Kotlin), but the
https://checkerframework.org/ doesn't check inherited annotations
complaining about all equals() invocations that get nullable argument.

The change was generated by running

find . -name \*.java | xargs sed -i 's/public boolean equals(Object /public boolean equals(@Nullable Object /'

in the frameworks/base directory and by automatically adding and
formatting required imports if needed. No manual edits.

Bug: 170883422
Test: Annotation change only. Should have not impact.
Exempt-From-Owner-Approval: Mechanical change not specific to any component.
Change-Id: I5eedb571c9d78862115dfdc5dae1cf2a35343580
2020-10-15 10:48:01 -07:00
TreeHugger Robot
e339e9fabe Merge "Remove unnecessary @hide from private method" 2020-10-15 01:44:50 +00:00
Kevin Chyn
2857c4d19a Remove unnecessary @hide from private method
Bug: 169459906
Test: Builds
Change-Id: I9d69ed4fa016abc69f7987b4ec51754f561ae508
2020-10-14 10:59:00 -07:00
TreeHugger Robot
000e6794a2 Merge "Update Biometric TestApis" 2020-10-14 17:53:17 +00:00
Darryl Johnson
829b71b0f1 Merge "Add binder interface to DeviceStateManagerService." 2020-10-14 02:59:36 +00:00
Darryl L Johnson
76b1f31b9a Add binder interface to DeviceStateManagerService.
Test: None
Bug: 159401801

Change-Id: Ia37bb555d2baf43de8d1415731eb0ce5064da907
2020-10-13 14:43:04 -07:00