Commit Graph

2566 Commits

Author SHA1 Message Date
TreeHugger Robot
302a8b09c7 Merge "Camera: Clarify AF_REGIONS behavior in capture_result" 2018-03-03 01:33:14 +00:00
TreeHugger Robot
e7ea8d4331 Merge "Camera: another update API for external camera" 2018-03-02 19:56:40 +00:00
Arthur Ishiguro
f0cda31e00 Merge "Mark location classes as Parcelable appropriately" 2018-03-01 17:10:14 +00:00
Arthur Ishiguro
f3ab9cdc41 Mark location classes as Parcelable appropriately
Doesn't add the "final" qualifier,
since make will throw errors due to compatibility issues.

Bug: 69622177
Test: Run CHQTS from master and oc-mr1-dev, verify pass
Change-Id: If02203d7862e77ca4fda7b95a39bbfa3d9f6d87d
2018-03-01 03:10:57 +00:00
Dianne Hackborn
337e01ac10 More work on issue #73301635: Ability to extract device configuration
Now include Gl extensions (thanks to whoever wrote the code
I copied!).

Tweak the protos a bit to include missing info and correct
some things.

Add some new test APIs that are needed for CTS.

Bug: 73301635
Test: atest CtsActivityManagerDeviceTestCases:ActivityManagerGetConfigTests
Change-Id: Ie3f8173d217468246e8b6c7f45b7cbfcb352d60f
2018-02-28 11:29:20 -08:00
Yin-Chia Yeh
bb85e1ccb8 Camera: another update API for external camera
Bug: 72261912
Change-Id: I710200238fe76c440951915ca8c81f4a9fbbe7ef
2018-02-27 11:50:48 -08:00
TreeHugger Robot
f42a1080d5 Merge "Deprecate all inner classes of FingerprintManager" 2018-02-26 17:34:07 +00:00
TreeHugger Robot
e406ac080f Merge "camera: Add OisSamples synthetic key" 2018-02-23 18:47:56 +00:00
Chien-Yu Chen
c804d1cc87 camera: Add OisSamples synthetic key
Add a synthetic OisSamples key containing timestamps and
shifts.

Test: CTS
Bug: 64847201
Change-Id: I0d7ce67a91de7dec65543d626e67ddac76c985c5
2018-02-22 15:38:43 -08:00
Kevin Chyn
0b16b3422d Deprecate all inner classes of FingerprintManager
Fixes: 73750835

Test: build API, documentation looks OK
Change-Id: I49b0fce36e7bedc65ce0575728cc55f68ded8764
2018-02-22 11:50:17 -08:00
TreeHugger Robot
955c583eef Merge "Camera: improve Surface equality check" 2018-02-22 09:37:57 +00:00
Yin-Chia Yeh
4f1514724c Camera: improve Surface equality check
Bug: 72134091 73711267
Change-Id: I0d7b42f8621c1fb19ad9645d8b407eb90b05654d
2018-02-21 16:29:16 -08:00
TreeHugger Robot
3190439f2a Merge "Describe how the accessory input stream drops data" 2018-02-21 23:37:28 +00:00
Narayan Kamath
81945916f1 Merge "Remove uses of libcore.util.Objects.hashCode / equals." 2018-02-21 09:34:42 +00:00
Tomasz Wasilczyk
9678d36bfc Merge "Add twasilczyk and randolphs to broadcast radio directories OWNERS." 2018-02-21 00:51:37 +00:00
Shuzhen Wang
a31d58f7c1 Camera: Clarify AF_REGIONS behavior in capture_result
If application specifies 0-weight AF_REGIONS in capture request, the
camera device is allowed to override with non-0-weight AF_REGIONS in
capture result.

Test: Build
Bug: 29398609
Change-Id: I771ba45a1ae0fd26fcacc9891aa4444f718f0f3c
2018-02-20 15:56:13 -08:00
Tomasz Wasilczyk
fb8adc8b2c Add twasilczyk and randolphs to broadcast radio directories OWNERS.
Test: none
Change-Id: Ib21e81a8e77f7bc321e0ff71fa259e63956bf9ae
2018-02-20 19:36:56 +00:00
Narayan Kamath
607223f3b7 Remove uses of libcore.util.Objects.hashCode / equals.
Use public API in java.util.Objects instead.

Test: make
Change-Id: I413280f254743a2efa2640a2194693aeb5980605
2018-02-19 14:12:01 +00:00
Philip P. Moltmann
84e047997b Describe how the accessory input stream drops data
Test: Built
Change-Id: I201726cb3900ae0591808565c10d021c50325f06
2018-02-16 16:39:21 -08:00
Philip P. Moltmann
00d2de9495 Add feature annotation to UsbManager
Test: Built
Change-Id: Ib81f8a8deb38c7b7397b4119c98b92de1fe5f17f
2018-02-16 12:55:17 -08:00
Jeff Sharkey
2ab510ee24 Merge "Add RequiresFeature annotation." 2018-02-16 20:45:41 +00:00
Jeff Sharkey
98af2e4fec Add RequiresFeature annotation.
Certain APIs require that a device have a specific feature to operate
correctly, so start annotating them.

Test: builds, boots
Bug: 72284763
Change-Id: Ie2f30284bdfdb6acc4067f434eba3b5433837606
Exempt-From-Owner-Approval: simple annotations
2018-02-16 20:45:22 +00:00
Jerry Zhang
12d5f7d2a1 Merge "Remove urb request size maximum for P api" 2018-02-16 18:44:23 +00:00
TreeHugger Robot
aece1aad3e Merge "Camera: update API for external camera" 2018-02-16 07:05:15 +00:00
TreeHugger Robot
9d06b00ac5 Merge "Camera2: Update logical multi-camera requirement" 2018-02-16 01:34:00 +00:00
TreeHugger Robot
1bd97fa287 Merge "Camera: Remove surface sharing format limitation" 2018-02-16 01:30:41 +00:00
Jerry Zhang
910e9b0404 Remove urb request size maximum for P api
The 16kB maximum for transfers was removed from
the kernel in 3.3. Devio has since supported
arbitrary transfer sizes through scatter gather.

See the following kernel patches for context:
"USB: change the memory limits in usbfs URB submission"
"usbdevfs: Use scatter-gather lists for large bulk transfers".

Larger buffer sizes will be allowed for apps targeting
P and greater. For apps targeting previous apis, the
previous behavior of truncating length to 16384 will
be applied here instead of libusbhost, for bulk transfers
and queue(ByteBuffer, int). The previous behavior
of throwing an exception will continue to apply
for queue(ByteBuffer).

Bug: 67683483
Test: Run usb_async_test app with USB3 : 38MB/s -> 300MB/s
Test: CtsVerifier UsbDeviceTests pass
Change-Id: Ia52440cb725561b0f1db1a75aa1b8ab952585826
2018-02-16 01:09:42 +00:00
Yin-Chia Yeh
bda880e7c7 Camera: add camera owners
Change-Id: If597ba281d33736cdadecf8ac2674333d3a30c24
2018-02-14 23:59:32 +00:00
Yin-Chia Yeh
564ae82230 Camera: update API for external camera
Bug: 72261912
Change-Id: I27fa6f9afcac22c44b8705e17228e1894e2e578f
2018-02-14 13:28:27 -08:00
TreeHugger Robot
07b2dbc2c5 Merge "Camera: Remove individual streaming request limitation" 2018-02-14 20:25:38 +00:00
Shuzhen Wang
03d36e2f74 Camera2: Update logical multi-camera requirement
- Require timestamp source of logical and physical cameras to be the
same.
- Clarify requirement for guaranteed raw stream combinations.

Test: Compile
Bug: 64691172
Change-Id: Ibb82b0028e1626e6e95ba19424216fbe7bcb3204
2018-02-13 17:34:59 -08:00
Emilian Peev
5c19a99a88 Camera: Remove surface sharing format limitation
Surface sharing should work using all supported output
formats.

Bug: 73135123
Test: Camera CTS
Change-Id: I69b403ad8b7bf6e5867754f0808fdc0bb309bde5
2018-02-12 23:06:26 +00:00
Eino-Ville Talvala
601e0f6d76 Camera2: Revise MOTION_TRACKING capability
Simplify the API for the P release.

Test: Revised Camera CTS passes
Bug: 63629224
Change-Id: I3464bd114a2bf4bd866aaf37e942c01114b75a15
2018-02-12 11:29:10 -08:00
Peeyush Agarwal
8c2006d502 Follow up to ambient brightness stats change
- Add docs to public methods of the API
- Use single variable for scheduling write from brightness tracker

Test: atest com.android.server.display.AmbientBrightnessStatsTrackerTest
&& atest android.hardware.display.AmbientBrightnessDayStatsTest
Bug: 69406079
Change-Id: I828e3bde4691240a2c0e0443e60b30665b65b8de
2018-02-09 16:20:18 +00:00
Emilian Peev
f60f4fb003 Camera: Remove individual streaming request limitation
Individual physical streaming requests should be allowed.
Additionally fix a typo inside
'getAvailablePhysicalCameraRequestKeys'.

Bug: 72524845
Test: Successful build

Change-Id: I7d0fe660d49b4144701757bfce8d6cb2fcd63b1f
2018-02-08 17:41:13 +00:00
TreeHugger Robot
c437b8ecde Merge "Camera2: Add API to expose all physical camera metadata" 2018-02-06 02:47:40 +00:00
TreeHugger Robot
62d8fc2594 Merge "camera: Extend the multiple capture request requirements" 2018-02-05 21:13:21 +00:00
TreeHugger Robot
39d080503e Merge "Dump usb as DualDump" 2018-02-03 02:56:30 +00:00
Jeff Sharkey
ad357d1839 Pass in the user defined by Context.
The majority of Manager-style classes already use Context.getUserId()
when making calls into the OS, so clean up the remaining callers to
unify behind this strategy.

This gives @SystemApi developers a nice clean interface to interact
across user boundaries, instead of manually adding "AsUser" or
"ForUser" method variants, which would quickly become unsustainable.

Test: builds, boots
Bug: 72863821
Exempt-From-Owner-Approval: trivial changes
Change-Id: Ib772ec4438e57a2ad4950821b9432f9842998451
2018-02-03 02:11:45 +00:00
Philip P. Moltmann
371a3b879b Dump usb as DualDump
This allows to dump the USB state as proto-buf. This in turn allows to
automatically process this data.

Test: adb shell dumpsys usb
      incident_report usb
      No automated test possible as no field is guaranteed to be set
Change-Id: Ifdf22bfaf9c78226c420b11c43278013ce69f849
2018-02-02 16:40:26 -08:00
TreeHugger Robot
703ab4dfc0 Merge "Implement front-end API to retrieve DAB frequency table." 2018-02-02 19:59:22 +00:00
Shuzhen Wang
2d5bbe4b6f Camera2: Add API to expose all physical camera metadata
Give the app ability to query all the physical camera's physical
metadata within TotalCaptureResult.

With this new API, getPhysicalCameraKey becomes redundant.

Test: Camera ITS for logical multi-camera
Bug: 66697407
Change-Id: I4a0cbc81bef705e870f7e4ec79dc3481f9e87ae6
2018-02-02 11:21:03 -08:00
TreeHugger Robot
940384bf41 Merge changes from topic "biometric-fingerprint"
* changes:
  Deprecate FingerprintManager APIs
  Remove FingerprintManager dependencies from FingerprintDialog
2018-02-02 08:26:09 +00:00
Kevin Chyn
ff548a614b Deprecate FingerprintManager APIs
Bug: 72519498

Test: builds
Change-Id: I61363b68fc048529e17bffb49e9bf345d3ba4dcf
2018-02-01 19:32:55 -08:00
Kevin Chyn
6668256128 Remove FingerprintManager dependencies from FingerprintDialog
This change also adds the BiometricAuthenticator interface for the future
BiometricManager

Fixes: 72529467

Test: FingerprintDialog, FingerprintSystemDialog apks
Test: CTS Verifier apk

Change-Id: I703d004a3aebcbc473329d531505ffb647b91950
2018-02-01 18:28:35 -08:00
Peeyush Agarwal
e3a08ab5e1 Make ambient brightness day stats a system API
Test: atest android.hardware.display.AmbientBrightnessDayStatsTest
Bug: 69406079
Change-Id: I83f476f22a2100d324862cbea2a139eababa9d4e
2018-02-01 17:48:42 +00:00
TreeHugger Robot
9d3986bdc3 Merge "Add Ambient Brightness tracker API" 2018-02-01 12:15:15 +00:00
TreeHugger Robot
3d67f4a039 Merge "Add information about brightness config to slider events." 2018-02-01 10:37:30 +00:00
Jerry Zhang
327b809ad1 Refactor and clean up USB, add tests
Change UsbManager apis to use long instead of string, to match
usb hal. Change UsbDeviceManager internals to match as well.

Remove isFunctionEnabled and add getEnabledFunctions. Callers
would often call isFunctionEnabled for every possible function
to get the list of functions, so getEnabledFunctions reduces the
number of aidl calls.

Separate out dependencies between UsbHandler and UsbDeviceManager
and staticize the UsbHandler classes. Add unit tests with
mocked out dependencies to test state transitions for UsbHandler.

Bug: 62876645
Test: atest UsbTests
Change-Id: I785c4c24121a70e725de9742c6af50a6bf1baea0
2018-01-31 11:40:48 -08:00
TreeHugger Robot
f6659f9613 Merge "Camera: "getMaxSharedSurfaceCount" should be non-static" 2018-01-31 16:00:47 +00:00