Commit Graph

2555 Commits

Author SHA1 Message Date
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
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
Peeyush Agarwal
cc155ddc69 Add Ambient Brightness tracker API
Test: atest com.android.server.display.AmbientBrightnessStatsTrackerTest
&& atest android.hardware.display.AmbientBrightnessDayStatsTest
Bug: 69406079
Change-Id: I4b13c6bdd3e9fdded8086371f46dba0fd3102b98
2018-01-31 11:01:56 +00:00
Emilian Peev
09a02c3094 camera: Extend the multiple capture request requirements
Additional requirements need to be met before submitting
individual physical camera capture requests. Describe the
specific details in the java docs.

Bug: 72524603
Test: Successful build
Change-Id: Ic8d37ab05a3ccd3b4b07a34824f421a71ca69ba0
2018-01-31 10:57:00 +00:00
Kenny Guy
53d0661f38 Add information about brightness config to slider events.
Whether the config is using the default curve.
Whether the config has a user data point.
Whether the config has a power save offset.

Bug: 72482479
Test: atest BrightnessTrackerTest
Change-Id: I137a919ae2604244b0b2f78e00e31b7a72df4967
2018-01-30 18:38:40 +00:00
Jon Dormody
93c4aca119 Merge "Docs: Added a link to the Motion Sensor docs for information on gravity values and calculating alpha. Test: make ds-docs Bug: 6442659" into oc-mr1-dev am: 04d261f309
am: 0762440a7a

Change-Id: I70244cbf5790189959373d1e71ac18a988a399be
2018-01-29 19:48:52 +00:00
Jon Dormody
0762440a7a Merge "Docs: Added a link to the Motion Sensor docs for information on gravity values and calculating alpha. Test: make ds-docs Bug: 6442659" into oc-mr1-dev
am: 04d261f309

Change-Id: I15d0773c820591f153c67382b8826131eb88f98a
2018-01-29 19:34:59 +00:00
Emilian Peev
31c11a05a4 Camera: "getMaxSharedSurfaceCount" should be non-static
Allow for more flexiblity in case the maximum shared
supported shared surface count changes in the future.

Bug: 72562887
Test: Camera CTS
Change-Id: If3be8659c05997502368f51a14152a4516a9f159
2018-01-29 17:02:56 +00:00
Jonathan Dormody
69151702b4 Docs: Added a link to the Motion Sensor docs for information on gravity
values and calculating alpha.
Test: make ds-docs
Bug: 6442659

Change-Id: Ifbb58526d01894c4c7570596348a8bd3e5c9eb4f
2018-01-26 15:21:23 -07:00
TreeHugger Robot
0193e5651f Merge "Add setting to control vibration intensity." 2018-01-26 00:09:09 +00:00
TreeHugger Robot
c86a420c6e Merge "Finish broadcast radio HAL 2.0 radio service." 2018-01-25 17:49:26 +00:00
Tomasz Wasilczyk
58f34065c5 Implement front-end API to retrieve DAB frequency table.
Bug: 69958423
Test: instrumentation (none added)
Change-Id: I7e648f988baf3b14d814588d44b18fd57c108906
2018-01-25 09:07:26 -08:00
Shuzhen Wang
68dcd18392 Merge "camera2: Add physical camera id in CaptureResult" 2018-01-25 15:52:45 +00:00