Commit Graph

2286 Commits

Author SHA1 Message Date
Jeff Sharkey
6f95ab2f1d Break the rules.
Test: none
Bug: 62270037
Change-Id: I042539ae90fdc0d80e9c0ff35aa0baf500b05811
2017-07-17 13:15:16 -06:00
Peng Xu
09d2265a55 Merge "Update Java doc of SensorManager.createDirectChannel" into oc-dev am: 17e641dae5 am: 7bef937503
am: 5f309c6fd3

Change-Id: I03ff03b1ffe5e275f1551c3946eddc4fd766fd7b
2017-07-14 23:27:14 +00:00
Peng Xu
7bef937503 Merge "Update Java doc of SensorManager.createDirectChannel" into oc-dev
am: 17e641dae5

Change-Id: I4391dafa9d153213e35ac58bceb8d2f4c958fde0
2017-07-14 23:07:11 +00:00
Eino-Ville Talvala
b57501a8d9 Merge "CameraManager: Handle camera service being disabled explicitly" into oc-dr1-dev am: 0c0fd0375c
am: 01d6fb2c9c

Change-Id: I7a2399498f7f234a09545107b0fdda3cade6ee30
2017-07-14 05:55:35 +00:00
Arthur Ishiguro
3087951777 Merge "Fix default constructor for NanoApp" 2017-07-13 23:23:26 +00:00
Arthur Ishiguro
afaddaaffb Fix default constructor for NanoApp
Bug: 37274363
Test: Compile and run CHQTS, verify warning not shown
Change-Id: I842f8571be31838b726fecfb138f329dea5f26fe
2017-07-13 13:25:33 -07:00
Eino-Ville Talvala
19d96a197f CameraManager: Handle camera service being disabled explicitly
Previously, CameraManager handled a disabled camera service
implicitly, the same as it handles a temporarily-crashed camera
service.

However, the error reporting for the those cases isn't really the
same, so switch to being explicit - check for the disabled camera
service system property, and if it's set, short-circuit calls.

Test: Camera CTS continues to pass, Watch device with no camera
      service also now passes camera CTS.
Bug: 62269118

Change-Id: I65a97f8c1b0f101999b2c04d4f1096b7f3aee858
2017-07-13 12:23:51 -07:00
Tomasz Wasilczyk
05392d6360 Publish new Broadcast Radio APIs.
Also, rename FEATURE_RADIO to FEATURE_BROADCASTRADIO.

Bug: b/34348946
Bug: b/63405337
Test: instrumentalization
Change-Id: Ibf5851a10b94f9e82db85f740fde6f28efe48666
2017-07-13 07:46:25 -07:00
Peng Xu
19668c0b3a Update Java doc of SensorManager.createDirectChannel
Java doc was left out when addressing API reviewer comments.
This CL fix the discrepancy between the actual logic and java doc.

Bug: 36550285
Test: compiles
Change-Id: I6406892ecdcc5d02f11966fa3fb0b81ed8d3b285
2017-07-05 22:26:03 +00:00
Tomasz Wasilczyk
d6e269ae07 RDS PI is a number, not a string.
Bug: b/63147256
Test: manual, VTS, instumentalization
Change-Id: I3150351857ee9b78ff824e811126beb75d4a43b7
2017-06-29 18:47:45 -07:00
Tomasz Wasilczyk
2880b9a15b Add AM/FM check for BandDescriptor.
Bug: b/36864090
Test: it builds
Change-Id: I846eb73fb284ebb8137557c0bdf68fab852145d7
2017-06-28 14:31:03 -07:00
Alex Sakhartchouk
07d9516d21 Merge "Allow VR Virtual display to rotate with content." into oc-dr1-dev am: 9747b4ace5
am: f251056e0d

Change-Id: I04d20a7cec15e321efd688b0dd7a5c740033cd99
2017-06-27 19:01:33 +00:00
TreeHugger Robot
9747b4ace5 Merge "Allow VR Virtual display to rotate with content." into oc-dr1-dev 2017-06-27 16:59:39 +00:00
Alex Sakhartchouk
879d24f423 Allow VR Virtual display to rotate with content.
VR Virtual display was getting letterboxing for apps that
had a fixed orientation in the manifest.

Bug: 62670868
Test: Run orientation locked app, observe requested orientation in VR
testCreateVirtualDisplayRotatesWithContent to verify propagation.
Change-Id: I10eb4f6e54404aa7b66471ab5dc929a4baa49432
2017-06-23 19:15:42 +00:00
Tomasz Wasilczyk
4bd958353e Remove previous implementation of RadioService.
Bug: b/36863239
Test: instrumentalization
Change-Id: Ia56f4aaf7575d83336eaa39df34341bd2f12cbc3
2017-06-23 10:47:28 -07:00
Tomasz Wasilczyk
43953f3412 Merge "Switch to the new Java-based RadioService." 2017-06-23 13:14:02 +00:00
Badhri Jagan Sridharan
685c3450c6 Merge "Log call to setPortRoles" into oc-dr1-dev am: 025b07c38e
am: 4fd5aff33b

Change-Id: Idad8e4bc9afae725f52ca17f933a0fca28acfd0d
2017-06-23 02:15:26 +00:00
Badhri Jagan Sridharan
4641fc3e2a Log call to setPortRoles
Came of bunch of bugs, for instance b/62912250 where some app is
forcing the port role. Logging which package is doing this

Change-Id: I234db3292326d247c82723989b46160fcbd59c10
2017-06-22 16:41:49 -07:00
Tomasz Wasilczyk
9b595f3f85 Switch to the new Java-based RadioService.
As of now, the new service is meant to match all features from the old,
native service.

Bug: b/36863239
Test: instrumentalization
Change-Id: Ib579e433c62498afac91a67253b8b24cf0702b0a
2017-06-22 07:59:01 -07:00
Tomasz Wasilczyk
14752375d7 Adjust log messages emitted by RadioService.
Bug: b/36863239
Test: manual
Change-Id: I36ec04462e9db0fb8477a55e7ecec6f45c5a343e
2017-06-21 17:01:47 -07:00
Tomasz Wasilczyk
68f25c19b8 Merge "Implement hasControl/isClosed call of ITuner." 2017-06-21 22:24:25 +00:00
Yin-Chia Yeh
7797947991 Merge "Camera: remove capture session lock" into oc-dr1-dev am: 104b68d0a5
am: e3fc290f96

Change-Id: I20b88a69fce9533ddca9677dfb6dd2e2c0d28fb0
2017-06-21 04:55:26 +00:00
Yin-Chia Yeh
ec7f4c6ccd Camera: remove capture session lock
Use CameraDeviceImpl#mInterfaceLock for all device/session locking

Test: CTS/stress testing camera open/close
Bug: 62767980
Change-Id: I4e57e9e1d4548c3f9ae85799b742bebed9a0e451
2017-06-20 18:58:39 -07:00
Tomasz Wasilczyk
468a53b710 Implement hasControl/isClosed call of ITuner.
Bug: b/36863239
Test: builds
Change-Id: Ia24a97b60ee5c0756dbe14b3b7c06c07313f4ac6
2017-06-19 15:19:14 -07:00
Zhijun He
9b85471c0c Merge "Camera2: copy user tag to HFR request list" into oc-dr1-dev am: a34c04d5c3
am: 71e07faafb

Change-Id: I5fad04f7a8e3f2f2ba19204e19d41e256b6a1a6e
2017-06-19 05:14:31 +00:00
Zhijun He
3db632603c Camera2: copy user tag to HFR request list
User tag is not part of native metadata, and need carry over explicitly.

Test: Camera CTS
Bug: 33761753
Change-Id: Ic58783fc204ce71e073f71d0fa50d4d961f4e7ce
2017-06-19 03:44:04 +00:00
Tomasz Wasilczyk
b4d37e53f9 Merge changes from topic 'radio-service'
* changes:
  Add permission check for java RadioService.
  Implement listing broadcast radio modules.
2017-06-16 15:13:08 +00:00
Tomasz Wasilczyk
d15c9dfd8b Implement listing broadcast radio modules.
This provides support for other radio modules than default HAL.

Bug: b/36863239
Bug: b/32621196
Test: instrumentation
Change-Id: I92632597652c35b68f10d13b1ed6931fb49af0b2
2017-06-13 10:21:06 -07:00
Tomasz Wasilczyk
9045e5d226 Merge "Implement remaining ITunerCallback methods." 2017-06-13 15:42:24 +00:00
Will Brazil
308a19531e Merge "Camera2: Cache method list in MethodNameInvoker." into oc-dev am: 71029bf631
am: 5884f6ce0d

Change-Id: I725739aed3207992022aa500bb99072410a9a305
2017-06-13 00:26:49 +00:00
Will Brazil
938fe5c968 Merge "Camera2: Cache method list in MethodNameInvoker." into oc-dev
am: 71029bf631

Change-Id: I99c6322d7e06262861eb0bb8be4ce8d4572ffbae
2017-06-13 00:24:40 +00:00
Will Brazil
5884f6ce0d Merge "Camera2: Cache method list in MethodNameInvoker." into oc-dev
am: 71029bf631

Change-Id: I24120e653feef23b155111cbc69f6b3033b2427c
2017-06-12 20:49:49 +00:00
Will Brazil
cd92f92fa4 Camera2: Cache method list in MethodNameInvoker.
Retrieving list of methods in every invoke() call is very expensive.
Caching the list inside the constructor prevents several unnecessary
calls to Class.getMethods().

Test: Run camera2 CTS
Bug: 62490715

Change-Id: Ib2a93af0f364b055df2eab9bd7870730428429ad
2017-06-12 19:02:52 +00:00
Tomasz Wasilczyk
c9a1ac7819 Implement remaining ITunerCallback methods.
Test: instrumentation tests passes, none added
Bug: b/36863239
Change-Id: I57de30992f679624c8fde0657c0e24b5cbfab905
2017-06-09 13:09:39 -07:00
Jeff Sharkey
28f6dc9512 Merge "Give Doclava our manifest; more permission docs." into oc-dev am: 65d4cbba37
am: 67cb5f5210

Change-Id: Ic4c30cdb8bbfda5b3703eb3c7c36c1bf8ab3a216
2017-06-06 16:17:39 +00:00
Jeff Sharkey
ec68b46bc8 Merge "Annotate @SystemApi with required permissions." into oc-dev am: c1406978a4
am: 7a2e4a8486

Change-Id: Ib629e25dbf047c110feaf03e4ff744b5c6df9aeb
2017-06-06 15:48:24 +00:00
Jeff Sharkey
67cb5f5210 Merge "Give Doclava our manifest; more permission docs." into oc-dev
am: 65d4cbba37

Change-Id: I2ec50efb67debd15d354db69b84fb620eb74bc0e
2017-06-06 15:28:26 +00:00
Jeff Sharkey
bfc4fcde9f Give Doclava our manifest; more permission docs.
We've seen some @SystemApi methods protected with non-system
permissions, so give Doclava the platform AndroidManifest.xml so it
can parse the actual permission protection levels to look for APIs
that are letting in non-system apps.

Also document more @SystemApi permissions.

This is purely a docs change; no logic changes are being made.

Test: make -j32 update-api
Bug: 62263906
Change-Id: Ie0f0a5fb0033817bcc95060f2183a52ae4ae7b06
2017-06-05 17:38:19 -06:00
Jeff Sharkey
7a2e4a8486 Merge "Annotate @SystemApi with required permissions." into oc-dev
am: c1406978a4

Change-Id: I305967cad945a807c3f8234efabaad0ef8b591d1
2017-06-05 22:28:21 +00:00
Jeff Sharkey
d86b8fea43 Annotate @SystemApi with required permissions.
Most @SystemApi methods should be protected with system (or higher)
permissions, so annotate common methods with @RequiresPermission to
make automatic verification easier.

Verification is really only relevant when calling into system
services (where permissions checking can happen on the other side of
a Binder call), so annotate managers with the new @SystemService
annotation, which is now automatically documented.

This is purely a docs change; no logic changes are being made.

Test: make -j32 update-api && make -j32 offline-sdk-docs
Bug: 62263906
Change-Id: I2554227202d84465676aa4ab0dd336b5c45fc651
2017-06-05 13:27:11 -06:00
Alexey Polyudov
85c362700f Merge "sensors: pass sensor handle along with injected event" 2017-05-25 21:00:24 +00:00
Eino-Ville Talvala
ae7023c1cd Merge "Camera2: Fix broken onCaptureBufferLost callback" into oc-dev am: 906948e7e2
am: d939f92dd0

Change-Id: If83f2175a06961cbe30ab1dfe9b849752ba882f3
2017-05-25 17:42:41 +00:00
Eino-Ville Talvala
d939f92dd0 Merge "Camera2: Fix broken onCaptureBufferLost callback" into oc-dev
am: 906948e7e2

Change-Id: I0007db72b0ca923c0e42bbb6ddadf34e927b5612
2017-05-25 17:25:34 +00:00
Eino-Ville Talvala
906948e7e2 Merge "Camera2: Fix broken onCaptureBufferLost callback" into oc-dev 2017-05-25 17:11:06 +00:00
Kevin Chyn
093f1098de Merge "Revert fix for FingerprintManager leak" into oc-dev am: 807a8c6e7c
am: 23e33539cd

Change-Id: Iadbfa00e79d3607fe64186991f008a55ac5b05f3
2017-05-25 04:41:34 +00:00
Kevin Chyn
23e33539cd Merge "Revert fix for FingerprintManager leak" into oc-dev
am: 807a8c6e7c

Change-Id: I9f9132b1785c4e7c7d04dcc7decfbc4e447fbdd0
2017-05-25 04:33:07 +00:00
Kevin Chyn
5e797faaf4 Revert fix for FingerprintManager leak
Bug: 38509779
Bug: 32295793

Setting to null causes problem seen in b/38509779
Using weakreference will cause problems if the application
declares AuthenticationClient as a weak reference as well and would
very likely break a lot of existing apps.

Test: manual
Change-Id: Iedbdd76f3a402b766ce8a799bf76324d1164a0ec
2017-05-24 16:58:18 -07:00
Alexey Polyudov
5b5e11c483 sensors: pass sensor handle along with injected event
Change-Id: I5e8eacfa940c082a14a9876f455c55b84b975086
2017-05-24 15:00:17 -07:00
Eino-Ville Talvala
cad1bfe68b Camera2: Fix broken onCaptureBufferLost callback
Turns out this never worked. 😱

- Add missing oncaptureBufferLost proxy method
- To avoid this issue in the future, change CameraDeviceImpl.CaptureCallback to be
  an interface instead of an abstract class; now all implementers _must_ implement
  all the methods
- For the short-circuit local callback when no callback is provided by the user,
  implement all no-ops explicitly.

Test: Camera CTS continues to pass; manual testing with injected buffer drops
Bug: 62004599
Change-Id: I7732903dbc00e80084162e067de66b5db6cee74c
2017-05-23 14:29:31 -07:00
Tomasz Wasilczyk
39ac214838 Implement isAntennaConnected interface of ITuner.
Test: instrumentation
Bug: b/36863239
Change-Id: I325cc29a696a6163fd3db1f2a75e64a2b1ddf514
2017-05-17 14:55:17 -07:00