Commit Graph

2455 Commits

Author SHA1 Message Date
TreeHugger Robot
26db21ba9c Merge "Remove @SystemApi annotation from private or package-private members" 2018-01-06 00:54:32 +00:00
Tomasz Wasilczyk
84c4e9f6a9 Merge "Implement part of ITunerSession interface." 2018-01-05 21:26:20 +00:00
Tomasz Wasilczyk
ca98cde254 Implement part of ITunerSession interface.
Methods not covered are related to tuning or program list.

This makes 11 passing test cases and still 6 failing for the new HAL.

Test: instrumentation
Bug: 69958777
Change-Id: I2631d66d05774adb9e8fd42c8309e16f832c4478
2018-01-04 19:43:59 -08:00
TreeHugger Robot
db21daf96c Merge "camera: Add device info version" 2018-01-04 21:52:25 +00:00
TreeHugger Robot
dfaa392fd5 Merge changes I1a61a5c9,I7e0dc28f,If0c923b3
* changes:
  Rethrow RemoteException instead of log in ContextHubManager
  Remove unnecessary log from ContextHubManager
  Remove legacy bug comment in NanoAppInstanceInfo
2018-01-04 21:38:29 +00:00
TreeHugger Robot
01b2f0e1c8 Merge "Track brightness changes in nits rather than backlight values." 2018-01-04 17:51:29 +00:00
Arthur Ishiguro
c8728e964b Rethrow RemoteException instead of log in ContextHubManager
Bug: 67734082
Test: Compile only
Change-Id: I1a61a5c9f47652539f7e1dac3a0c5306e994fcd4
2018-01-04 09:36:14 -08:00
Arthur Ishiguro
6f933f240b Remove unnecessary log from ContextHubManager
Bug: 67734082
Test: None
Change-Id: I7e0dc28f6ee502cc2a9993b5f82bb3409a65aeb3
2018-01-04 09:36:14 -08:00
Arthur Ishiguro
4473d7ee9d Remove legacy bug comment in NanoAppInstanceInfo
This was resolved during the redesign of the service.

Bug: 30970527
Test: None
Change-Id: If0c923b37a88e65216eba623c4898c04c7b02d58
2018-01-04 09:36:01 -08:00
Tomasz Wasilczyk
3b91e9e550 Merge "Implement opening session for HAL 2.0." 2018-01-04 06:04:01 +00:00
Chien-Yu Chen
a1d1d5b1fa camera: Add device info version
Bug: 64847201
Change-Id: I1114473d277d3e87bd7cb731f6ec93652579b4e0
2018-01-03 12:14:53 -08:00
Tomasz Wasilczyk
f58305d137 Implement opening session for HAL 2.0.
Test: bit BroadcastRadioTests:android.hardware.radio.tests.functional.
      RadioTunerTest\#testOpenTuner
Bug: 69958777

Change-Id: Ie371b395986d28dae5f687eeae16f11e4c204490
2018-01-03 20:14:29 +00:00
Arthur Ishiguro
f2b6f014a7 Expose new ContextHubService APIs
Also deprecates old APIs.

Bug: 67734082
Test: make update-api && make
Change-Id: I93166347ce2ec63f9c0cffd0b8b0bbaa488e5ea4
2018-01-03 09:34:04 -08:00
Arthur Ishiguro
78493a1c80 Adds ContextHubClient to callback parameters
Bug: 67734082
Test: make
Change-Id: Id09322c5375ee87a7533e77696e4673854bae4be
2018-01-03 09:34:04 -08:00
Arthur Ishiguro
f3691da800 Renames RESULT_FAILED_PENDING to RESULT_FAILED_BUSY
Bug: 67734082
Test: None
Change-Id: I878f80f012e8d08bca36b41f921e3d191046e8da
2018-01-03 09:04:59 -08:00
Arthur Ishiguro
b3dce5bd81 Changes transaction Listener to OnCompleteListener
Bug: 67734082
Test: None
Change-Id: I7a7b1b448d3a4eeed57fabd333c35faa18c7443d
2018-01-03 09:04:59 -08:00
Jiyong Park
8505e098bd Remove @SystemApi annotation from private or package-private members
Some private or package-private members have been marked as @SystemApi,
which do not make sense as they aren't accessible to apps due to the
access modifier. Having annotation on such members hasn't been harmful,
but will soon trigger CTS failures when we do the exact match for
SystemAPIs; a runtime entity annotated as @SystemApi have to exist in
the documented API (e.g. system-current.txt). So, removing the bogus
annotations.

Bug: 67891551
Test: m -j does not require m update-system-api
Change-Id: I0083475ef5435cf9a582c2ce1be469c92328fe69
2018-01-03 10:03:38 +09:00
Arthur Ishiguro
ac7b959be1 Adds Nullable/NonNull annotations to Context Hub APIs
Also adds NPEs to be consistent with other APIs.

Bug: 67734082
Test: None
Change-Id: Iae2dbc23949d7b4f3edac23f32479d08416b8315
2018-01-02 14:24:42 -08:00
Michael Wright
144aac9dfe Track brightness changes in nits rather than backlight values.
For the moment, the only one that actually knows the true brightness
value is the DisplayPowerController, so have that tell the
BrightnessTracker directly when brightness changes.

Bug: 69405990
Test: atest com.android.server.display.BrightnessTrackerTest
      atest com.android.server.display.BrightnessMappingStrategyTest

Change-Id: Ibf4e501ce2f7b071360bfac501dbbafb3ba55fa5
2018-01-02 20:13:28 +00:00
TreeHugger Robot
b9b1b17298 Merge changes I2266bfec,Id2d6cb6d,Ib18e7783
* changes:
  Change ContextHubTransaction Callback to Listener
  Adds a createClient method with no Executor argument
  Replace Handler with Executor in new APIs
2017-12-22 21:12:49 +00:00
TreeHugger Robot
6a6a0b2fc8 Merge "Camera: Add support for session parameters" 2017-12-22 19:18:49 +00:00
TreeHugger Robot
716a0ac1ee Merge "Camera: pass stream/surface Id instead of Surface" 2017-12-22 00:19:35 +00:00
Arthur Ishiguro
ddb737ff0f Change ContextHubTransaction Callback to Listener
Bug: 67734082
Test: None
Change-Id: I2266bfec41c5012f988d298c5ad1b596cec0d0a0
2017-12-21 11:24:07 -08:00
Arthur Ishiguro
9b9c9d85e8 Adds a createClient method with no Executor argument
Bug: 67734082
Test: make
Change-Id: Id2d6cb6d125ed0f58ebafc5d6e45aff4408595bf
2017-12-21 11:03:50 -08:00
Arthur Ishiguro
e35a6debaa Replace Handler with Executor in new APIs
To conform with new API guideline L1 in go/android-api-guidelines.

Bug: 67734082
Test: make
Change-Id: Ib18e778368dc95c69cdec4faed6dd34cbabdf1a4
2017-12-21 11:03:49 -08:00
Arthur Ishiguro
10f8ce4be5 Renames setCallbackOnComplete method in ContextHubTransaction
setOnCompleteCallback seems easier to understand.

Bug: 67734082
Test: None
Change-Id: Ie1eb63dc5b90a35e847bd5d2a350f97ca277342d
2017-12-20 15:00:01 -08:00
Arthur Ishiguro
6100aa7e72 Rename ContextHubTransaction.Result IntDef
Use RESULT_ instead of TRANSACTION_ to be consistent with the name.

Bug: 67734082
Test: make
Change-Id: Ib7cc4d527cc160ec6788449231cdffa5c3e8fc0d
2017-12-20 09:35:00 -08:00
TreeHugger Robot
ca5f83826c Merge changes I7cd58841,I800bde6f
* changes:
  Implements getContextHubs
  Merges ContextHubService notion of hub ID/handle
2017-12-20 05:45:49 +00:00
TreeHugger Robot
1fa5f21a8b Merge "OutputConfiguration: Fix missing mIsShared in parcel read" 2017-12-20 04:22:33 +00:00
Arthur Ishiguro
c8b4704688 Cleans up ContextHubService dumpsys
Removes fields that are not actually populated from dumpsys.

Bug: 70624255
Test: None
Change-Id: Ida272430102661d25193bc1296057a8c89297df6
2017-12-19 15:07:14 -08:00
Arthur Ishiguro
fdbbd468dc Implements getContextHubs
Bug: 67734082
Test: Run test app that uses this API, verify app can find the
appropriate hub.
Change-Id: I7cd588419bc5b30cf2e8d95ee21f0b6a5592540f
2017-12-19 10:47:47 -08:00
Arthur Ishiguro
ab7113d485 Merges ContextHubService notion of hub ID/handle
Bug: 67734082
Test: Run CHQTS, verify pass
Change-Id: I800bde6fd1c5c503f35d72b58e360ec0ebb204b5
2017-12-19 10:47:47 -08:00
Arthur Ishiguro
9f22dd5857 Modify ContextHubInfo to implement Parcelable
Needed to resolve Java compilation errors when using e.g.
List<ContextHubInfo> in AIDL. Doesn't add the "final" qualifier,
since make will throw errors due to compatibility issues.

Bug: 67734082
Test: make update-api && make
Change-Id: Ie7f99a41eab70455b1c4e86b673e7377be667dfb
2017-12-15 11:50:36 -08:00
TreeHugger Robot
37924ca6ee Merge changes I5a26c853,Ie4ec660a
* changes:
  Implements disableNanoApp
  Implements enableNanoApp
2017-12-15 16:23:23 +00:00
Tomasz Wasilczyk
e4bdecc97d Merge changes from topic "radio-2.0"
* changes:
  Move HAL 1.x related service to its own directory.
  Initial implementation of HAL 2.0 counterpart for radio service.
2017-12-14 21:57:14 +00:00
Tomasz Wasilczyk
d65b3ca029 Initial implementation of HAL 2.0 counterpart for radio service.
Test: KitchenSink
Bug: 69958777
Change-Id: I7c697af76114e8c5d158ca592d2711b980101d60
2017-12-14 13:01:11 -08:00
Arthur Ishiguro
54e1a89cd8 Implements disableNanoApp
Bug: 67734082
Test: Run a test app to issue an disable request, verify HAL code is
executed via logs and client receives an error response.
Change-Id: I5a26c85372bd10a0224bf2a696982dccbca0c275
2017-12-14 11:52:39 -08:00
Arthur Ishiguro
0ed545c7e5 Implements enableNanoApp
Bug: 67734082
Test: Run a test app to issue an enable request, verify HAL code is
executed via logs and client receives an error response.
Change-Id: Ie4ec660a094082887eaefbdfc2e1fd8d1ee7c0e3
2017-12-14 11:52:39 -08:00
TreeHugger Robot
895d73105b Merge "Add more IntDef prefixes for auto-documenting." 2017-12-14 07:17:52 +00:00
Jeff Sharkey
ce8db99114 Add more IntDef prefixes for auto-documenting.
Test: builds, boots
Bug: 70177949
Exempt-From-Owner-Approval: annotation-only changes
Change-Id: I76dde6054e06f52240bd4b1a0f196dcb74623608
2017-12-13 20:05:36 -07:00
TreeHugger Robot
88a149f2f7 Merge changes Iff6557fc,Ie1686e82,I88972653,Iab60b4df,Ie25460e7
* changes:
  Handles failure for transaction queue full
  Reorganize use of error code enums
  Removes setters from NanoAppInstanceInfo
  Renames nanoapp instance IDs to handles in ContextHubService
  Creates a NanoAppStateManager at ContextHubService
2017-12-14 01:00:15 +00:00
TreeHugger Robot
2c2ce763b7 Merge "Add an API for setting a new brightness curve." 2017-12-13 19:19:53 +00:00
Arthur Ishiguro
3504737e46 Removes setters from NanoAppInstanceInfo
Removing these fields since they are not public APIs,
and is not used internally in the service.

Bug: 67734082
Test: None
Change-Id: I8897265365849ab5d0106849e41d16577a91ead9
2017-12-13 10:57:24 -08:00
Arthur Ishiguro
fb9e4c7a7c Creates a NanoAppStateManager at ContextHubService
Created to decouple the internal nanoapp state management at the
service with ContextHubService class

Bug: 67734082
Test: Compile and flash, run CHQTS and verify pass, also verify with
logs that the cache is updated accordingly after load/unload/query
Change-Id: Ie25460e7f8d903cdcb22f0a1c4870bb93ccbad3e
2017-12-13 10:54:04 -08:00
TreeHugger Robot
b5079d1f47 Merge changes I2a808b9f,I8cbd4651
* changes:
  Implements queryNanoApps API
  Implements the new loadNanoApp/unloadNanoApp APIs
2017-12-11 20:44:25 +00:00
Arthur Ishiguro
4493e14984 Implements queryNanoApps API
Bug: 67734082
Test: Run a test app to use the new query API, verify returns the
expected set of nanoapps
Change-Id: I2a808b9f80dd0d9168466f80b79ca1fa35da242c
2017-12-11 10:57:09 -08:00
Emilian Peev
75a5570f7d Camera: Add support for session parameters
Session-wide parameters are a subset of the available capture
parameters that can cause severe processing delays when
modified. The costs can be mitigated if clients are able to
pass their initial values during capture session initialization.
For performance reasons clients are also advised to avoid changing
them during active sessions.

Bug: 64450664
Test: Camera CTS
Change-Id: Ide9ee4402ed45d30add6575062b46427163f99dd
2017-12-11 15:06:10 +00:00
Tor Norbye
f740c7ea08 Switch @IntDef from long to int, and add @LongDef
This CL mirrors changes made to the android.support.annotation version
of IntDef, to keep the usage and semantics identical (though the
internal version of @IntDef and @LongDef are of course hidden and not
part of the SDK.)

Test: These annotations have source retention and therefore have
no runtime impact; the change was compiling the SDK.

Change-Id: Idaf47e8d983c88be1bd8f938615c86611014b45a
2017-12-08 20:54:50 -08:00
Shuzhen Wang
b4d0fa3d3f OutputConfiguration: Fix missing mIsShared in parcel read
Test: Camera CTS
Bug: 69683251
Change-Id: I7ea4aa8ed4baa5a5e7d25a0073361d827ba86c13
2017-12-08 17:20:29 -08:00
Chien-Yu Chen
2adc8ec68e camera: Update AF scene change key
Update the generated docs.

Test: make
Bug: 64847201
Change-Id: I4737a982afa3b237feaf84ec777716066c870ce0
2017-12-07 14:45:50 -08:00