Commit Graph

2467 Commits

Author SHA1 Message Date
Tomasz Wasilczyk
793c1030fa Merge "Implement front-end APIs for dynamic program list." 2018-01-15 18:54:19 +00:00
TreeHugger Robot
30b8dd4199 Merge "Tag brightness APIs with @SystemAPI" 2018-01-15 18:31:34 +00:00
Tomasz Wasilczyk
436128f23a Implement front-end APIs for dynamic program list.
Bug: 69860743
Test: instrumentation
Change-Id: I326865c690d315b867626599174e34911564ef9e
2018-01-15 08:26:23 -08:00
Kenny Guy
0ff4489cc5 Tag brightness APIs with @SystemAPI
Make the API for tracking brightness
slider events and setting brightness
curves @SystemAPI and @TestAPI
Add developement scope to the brightness
slider events permission to allow cts
testing.

Bug: 69405990
Test: atest android.permission2.cts.PermissionPolicyTest#testPlatformPermissionPolicyUnaltered
Test: atest BrightnessTrackerTest
Change-Id: I39b0b26454528425b62cf99dc8bbccded4e14a18
2018-01-10 18:27:34 +00:00
Jerry Zhang
8f66b9eb29 Merge "Add setScreenUnlockedFunctions method to UsbManager" 2018-01-10 01:30:03 +00:00
Jerry Zhang
30b9adfad1 Add setScreenUnlockedFunctions method to UsbManager
The screen unlocked functions save effort on setting
the usb config during each connection. These
functions persist between connections and between
boots. When the screen is unlocked and these
functions are set, the current functions will
be automatically set to the screen unlocked functions.

Also added svc command for this so it can be
used and tested while the UI is worked on.

Bug: 62876645
Test: svc usb setScreenUnlockedFunctions mtp
Test: Test functions with locking, unlocking, and
disconnecting, with no lockscreen, swipe, and pattern

Change-Id: Ia05e095917166d25398c4d310b02971e3a1bb12a
2018-01-09 15:36:35 -08:00
Tomasz Wasilczyk
89ee93ac4a Merge "Implement front-end APIs for config flags." 2018-01-09 22:20:14 +00:00
Eino-Ville Talvala
190e388ffe Merge "Camera2: Add MOTION_TRACKING capability/intent, and lens poseReference" 2018-01-09 21:08:00 +00:00
TreeHugger Robot
345d957f45 Merge "Deprecates classes associated with old ContextHubManager APIs" 2018-01-09 16:26:29 +00:00
Tomasz Wasilczyk
ce40fe9b1b Implement front-end APIs for config flags.
Also, publish get/set/updateProperties APIs.

Test: instrumentation
Bug: 69958423
Change-Id: I26178b16326d856203e6c8186a21af66b36705ed
2018-01-08 09:36:27 -08:00
TreeHugger Robot
26db21ba9c Merge "Remove @SystemApi annotation from private or package-private members" 2018-01-06 00:54:32 +00:00
Arthur Ishiguro
581950cd76 Deprecates classes associated with old ContextHubManager APIs
Bug: 67734082
Bug: 69270990
Test: make update-api and make
Change-Id: I1e10eebb56175843c01d86004efbc3846af76b76
2018-01-05 13:27:55 -08:00
Tomasz Wasilczyk
84c4e9f6a9 Merge "Implement part of ITunerSession interface." 2018-01-05 21:26:20 +00:00
Eino-Ville Talvala
ec99efa03b Camera2: Add MOTION_TRACKING capability/intent, and lens poseReference
- MOTION_TRACKING capability defines a camera with accurate lens calibration
  values, accurate timestamps relative to the inertial sensors, and ability
  to limit exposure time to 20ms max.
- Add android.lens.poseReference for supporting gyroscope-centered lens calibration
  data for MOTION_TRACKING.
- Minor changes to some docs formatting.

Test: Builds
Bug: 63629224
Change-Id: Ic303240890c709725f60e69dfff76beea4a0ef91
2018-01-05 12:00:53 -08: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