Commit Graph

2277 Commits

Author SHA1 Message Date
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
Charles He
c8b8bc949b Merge "Fingerprint: call onRemovalSucceeded with # of remaining templates." into oc-dev am: 50be382341
am: 16a2759492

Change-Id: I0caf8f5367fe611ddacb6132ea5f0baac8ad75e6
2017-05-17 13:20:42 +00:00
Charles He
16a2759492 Merge "Fingerprint: call onRemovalSucceeded with # of remaining templates." into oc-dev
am: 50be382341

Change-Id: I5c6f8dfed5777de8098fa6a02d5a3124addedf22
2017-05-17 13:15:42 +00:00
Tomasz Wasilczyk
d3d53f6692 Implement program list and forced analog features of ITuner.
Test: instrumentation
Bug: b/36863239
Change-Id: Ib900a444f36d33dc9d55a99e699f9b6ce0c943ad
2017-05-16 15:37:07 -07:00
Charles He
ee17d352d6 Fingerprint: call onRemovalSucceeded with # of remaining templates.
The onRemoved() callback from fingerprint daemon provides a "remaining"
parameter which contains the number of fingerprint templates yet to be
removed in the current removal operation. This is especially useful when
a group is removed, as remaining == 0 indicates the end of the group
removal.

In this CL, we wire up FingerprintManager so that the "remaining"
parameter gets passed to RemovalCallback#onRemovalSucceeded(). This
would allow clients like Settings to make use of the information.

Bug: 37938345
Test: manual, both with and without work profile
Change-Id: Idf46ef42e1d178cd3dc267aaf4219f03e27be766
2017-05-16 16:34:21 +01:00
Kevin Chyn
88c76aef23 Merge "Add missing break statements in FingerprintManager" into oc-dev am: e25a2564e5
am: c7a3cf5850

Change-Id: I5d509bdb15a645ae002b0f9862644da3aac8b456
2017-05-13 00:42:52 +00:00
Kevin Chyn
c7a3cf5850 Merge "Add missing break statements in FingerprintManager" into oc-dev
am: e25a2564e5

Change-Id: Iae1ded28be8ea7df2c466ce2592a5574b1cee994
2017-05-13 00:32:46 +00:00
TreeHugger Robot
e25a2564e5 Merge "Add missing break statements in FingerprintManager" into oc-dev 2017-05-13 00:27:13 +00:00
Kevin Chyn
f8567234e0 Merge "strong fp lockout after 20 failed attempts" into oc-dev am: 310818ff82
am: 3ed8955aa3

Change-Id: Id8de8c421f31faa6ec30a8bd1e8d5d2585642363
2017-05-13 00:03:18 +00:00
Kevin Chyn
3ed8955aa3 Merge "strong fp lockout after 20 failed attempts" into oc-dev
am: 310818ff82

Change-Id: I52787e3db92ae9795932156335ee5c55f5c920a9
2017-05-12 23:49:48 +00:00