Commit Graph

2584 Commits

Author SHA1 Message Date
Robert Carr
12ddbdc0b1 Merge changes I68dab076,Ife50c3d3,I705518be,I949fbe81 into pi-dev am: 0a6e6e8911
am: d28cdb8cb9

Change-Id: I19c111ccf54b61f955112160632a8ca26f084767
2018-03-15 02:11:13 +00:00
Robert Carr
ae606b4457 Eliminate usage of global transaction for display configuration.
For seamless rotation to work in the brave new world we need the setting
of the display projection to occur in the same transaction as the
reconfiguration of the stack SurfaceControl. To understand this simply see
that the inverse rotation for seamless rotation happens at the
WindowStateAnimator level so if the stack bounds weren't updated to the new
rotation we would clip. This means: We need to use the pending transaction.
We also need to port the rotation animation to use the pending transaction
as it needs to perform transactions at the same time as setting the display
projection. A pleasant consequence is we can eliminate some "inTransaction"
code-paths that always seemed to be a bit of a wart.

Bug: 72038766
Test: Manual. go/wm-smoke.
Change-Id: I949fbe8150d452c1ef5c13e704ddf87269f824f3
2018-03-14 12:01:01 -07:00
Yin-Chia Yeh
7a29d074a8 Merge "Revert "Camera: SessionConfiguration should use Executors"" into pi-dev am: 6896508045
am: 2ccd6d1ea6

Change-Id: I9c9c4318c88fc125d629c043808dc41c1bdd9957
2018-03-14 01:55:40 +00:00
TreeHugger Robot
6896508045 Merge "Revert "Camera: SessionConfiguration should use Executors"" into pi-dev 2018-03-13 22:44:21 +00:00
Yin-Chia Yeh
90d6fccf01 Revert "Camera: SessionConfiguration should use Executors"
This reverts commit 004e73c38c.

Bug: 74605221
Bug: 73953366
Change-Id: I1665c3d235434f57a4cd4aa5f082720b83ac10cc
2018-03-13 20:57:42 +00:00
TreeHugger Robot
4c2ef0271a Merge "Move display id into MotionEvent" 2018-03-12 18:02:43 +00:00
TreeHugger Robot
9d3d6b4076 Merge "Camera: SessionConfiguration should use Executors" into pi-dev 2018-03-12 14:55:34 +00:00
TreeHugger Robot
59444f6abf Merge "Revert "Plumb IME subtype change from IMMS to IMS."" into pi-dev 2018-03-12 08:49:20 +00:00
TreeHugger Robot
c8b967a5de Merge changes from topic "yukawa-b66498367" into pi-dev
* changes:
  Revert "Switch and store keyboard layouts based on IME subtype."
  Revert "Accept null subtype in InputMethodSubtypeHandle."
2018-03-12 01:58:06 +00:00
Tomasz Wasilczyk
940c6919c8 Fix basic broadcastradio HAL 1.1/2.0 functionality.
This change fixes a few minor gaps preventing the reference radio app
from accessing HAL 1.1 and 2.0 devices:
- createAmFmSelector not detecting the radio band
- don't allow configuration-dependant operations before the configuration
  is applied
- allow the initial configuration to be auto-selected

Bug: 74353024
Test: manual
Change-Id: If47872c1bf4cf57c6c39715218d90df9701c372d
2018-03-08 10:00:34 -08:00
TreeHugger Robot
9a2857d927 Merge "Tag @SystemApi to ambient brightness stats API" into pi-dev 2018-03-08 15:59:50 +00:00
Yohei Yukawa
19a4000632 Revert "Plumb IME subtype change from IMMS to IMS."
This reverts commit b097b8262b [1].

Reason for revert:
This is the part 3 of a series of reverts to unlaunch Bug 25752812,
which aimed to improve UX but did not work well.

Note that since this was just a plumbing CL, reverting this CL itself
should introduce no user-visible behavior change.

See I7a2ed6dd39dcd8207d3d94e12cd01d5d67ba4bb5 for the detailed reason
of revert.

 [1]: I58e71ffce9ac9131551a00dd35e24235dadfef87

Bug: 66498367
Test: Manually done
Change-Id: I3e2b9a9faf5234e53d20953886d9d55af680087d
2018-03-07 19:15:38 -08:00
Yohei Yukawa
2d9accb29f Revert "Switch and store keyboard layouts based on IME subtype."
This reverts commit d5f7ed9fe9 [1].

Reason for revert:
This is the part 2 of a series of reverts to unlaunch Bug 25752812,
which aimed to improve UX but did not work well.

See I7a2ed6dd39dcd8207d3d94e12cd01d5d67ba4bb5 for the detailed reason
of revert.

 [1]: Ie88ce1ab77dbfe03ab51d89c1dc9e0a7ddbb3216

Bug: 66498367
Test: Manually done
Change-Id: I207919e3cb081d77712371f58463a5d423717c8f
2018-03-07 19:15:15 -08:00
Yohei Yukawa
36abd8a6d6 Revert "Accept null subtype in InputMethodSubtypeHandle."
This reverts commit 46ac35d09b [1].

Reason for revert:
This is the part 1 of a series of reverts to unlaunch Bug 25752812,
which aimed to improve UX but did not work well.

See I7a2ed6dd39dcd8207d3d94e12cd01d5d67ba4bb5 for the detailed reason
of revert.

 [1]: Ia013784a594ad3beaf30976d047f5ac0fa8185be

Bug: 66498367
Test: Manually done
Change-Id: Ifd17b53704b3dff75b6ef3be6835f51271859933
2018-03-07 19:14:47 -08:00
Tomasz Wasilczyk
fc67739432 Implement front-end support for HAL 2.0 metadata.
Bug: 73816100
Test: instrumentation
Change-Id: I1d4e9094f7a2eaf13a14f5fa560a391fcbae9804
2018-03-07 22:36:24 +00:00
Peeyush Agarwal
90eabcc288 Tag @SystemApi to ambient brightness stats API
Bug: 72931803
Test: Manual
Change-Id: I41ac5569e97cc33c57af55a37135a3f7617a2385
(cherry picked from commit 1584fa6f08)
2018-03-07 16:13:08 +00:00
Emilian Peev
004e73c38c Camera: SessionConfiguration should use Executors
Handlers from clients should not be used any more.
Executors are the preferred method for invoking any
registered callbacks. Replace handlers as much as
possible with executors.

Bug: 73953366
Test: Camera CTS
Change-Id: I96aee1bc46e83dfb76a4c40c7f8ebbe18610788b
2018-03-07 11:01:33 +00:00
Siarhei Vishniakou
85ddfffd2f Move display id into MotionEvent
Display id is now part of MotionEvent.

Test: atest view.MotionEventTest view.KeyEventTest
Bug: 64258305

Change-Id: Ifadd6b34f4dd5a91669baf146daa62944d1de974
2018-03-06 11:53:07 -08:00
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