Commit Graph

2426 Commits

Author SHA1 Message Date
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
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
Michael Wright
eef0e13f01 Add an API for setting a new brightness curve.
In addition, this also provides multiple strategies for mapping from
ambient room brightness in lux to display brightness. The default one is
the classic strategy, where we map directly from lux to backlight
brightness in an arbitrary unit. The newer and preferred strategy is to
use the physical brightness of the display, but requires that the
brightness properties of the display are appropriately configured.

Bug: 69406783
Test: atest com.android.server.display.BrightnessMappingStrategyTest &&
      atest android.hardware.display.BrightnessConfigurationTest &&
      atest android.hardware.display.PersistentDataStoreTeset

Change-Id: I60227bdb6c299d0fa92686cbf3e5994b336a3a79
2017-12-07 17:10:26 +00:00
Kenny Guy
f41ee681ed Merge "Limit access to package names in brightness slider data." 2017-12-06 17:08:59 +00:00
TreeHugger Robot
153daa89e7 Merge "Modifies logs on findNanoAppOnHub" 2017-12-05 23:16:03 +00:00
Chien-Yu Chen
1f272d89e3 Merge "camera: Add AF scene change key" 2017-12-05 22:19:39 +00:00
Arthur Ishiguro
e1ade4368f Implements the new loadNanoApp/unloadNanoApp APIs
Bug: 67734082
Test: Run a test app that uses the new API to load/unload a nanoapp,
verify that the nanoapp loads/unloads successfully
Change-Id: I8cbd46515ad33f7d9a1805dadcf8a99428686aef
2017-12-05 11:52:41 -08:00
Arthur Ishiguro
afe52464a7 Modifies logs on findNanoAppOnHub
Bug: 63174640
Test: Compile only
Change-Id: I8dd06c061409135d9513a9576efa5ccbebda0921
2017-12-05 08:36:19 -08:00
Kenny Guy
29aa30e56c Limit access to package names in brightness slider data.
Only allow access to package names if the calling package
has PACKAGE_USAGE_STATS.

Bug: 69405990
Test: runtest -c com.android.server.display.BrightnessTrackerTest frameworks-services
Change-Id: I1c924d408a7c74620b9aa9d672c99a6424bb85ca
2017-11-30 15:00:38 +00:00
Arthur Ishiguro
893832bd38 Merge changes Ibf8cd200,I4ea2f293,I17b545da,Ia139fd6d,I3a7e69f8
* changes:
  Handles load and unload lifecycle callbacks
  Handles hub reset at ContextHubClientManager
  Converts old API message clients to the new API format
  Implements client close and death notification
  Creates framework for new API messaging
2017-11-29 21:00:54 +00:00
Arthur Ishiguro
49e030fbd2 Implements client close and death notification
Bug: 67734082
Test: make from root
Change-Id: Ia139fd6d4bb04c569a9ee3672e21e2700daa40a9
2017-11-29 10:35:31 -08:00
Arthur Ishiguro
4e39aa1e19 Creates framework for new API messaging
- Creates IContextHubClientCallback as a proxy to invoke
messaging/life-cycle callbacks for the client.
- Creates IContextHubClient as a proxy to send messages at the client
side.
- Creates a ContextHubClientManager at the service to manage
clients and messaging/lifecycle event callbacks.
- Implements generation of clients at ContextHubManager and sending
messages through ContextHubClient

Bug: 67734082
Test: make from root
Change-Id: I3a7e69f89cd70ea59160a651dcdb729e18027e9f
2017-11-29 10:35:30 -08:00
Chien-Yu Chen
e8d86eb87b camera: Add AF scene change key
Test: CTS
Bug: 64847201
Change-Id: I61b05cce0137ace9f806f3bbad2a72b158469a34
2017-11-27 16:11:19 -08:00
Adrian Roos
e99bc0501a WM: Move WindowManagerPolicy, DisplayFrames and WindowManagerInternal into services
Splits WindowManagerPolicy into a framework and a services part, preventing concepts that are
internal to the window manager from leaking out into the framework.

Test: make droid
Change-Id: I7b6a54f55f76f6fbb5f27090981b8f1d4d8be88b
2017-11-23 17:23:26 +01:00
TreeHugger Robot
e19dc30bd3 Merge "Check camera permissions for any devices using the VIDEO class" 2017-11-22 12:50:19 +00:00
Kenny Guy
e9a4b16ea1 Merge "Daily idle job for writing out brightness events." 2017-11-21 17:57:39 +00:00
Kenny Guy
cfe7b70e99 Daily idle job for writing out brightness events.
Schedule a job for idle + charging to kick off
writing out brighness slider events.
While writing events discard ones outside our
time window.

Bug: 69405990
Test: Manual using adb to kick off job.
Test: runtest -c com.android.server.display.BrightnessTrackerTest frameworks-services
Change-Id: Ibc79d1c80ced26827d6f985bc70ae165df106a42
2017-11-21 14:44:26 +00:00
Arthur Ishiguro
3fbc4f3845 Merge changes Id0ece760,I160b5a62,I8b7563d0
* changes:
  Creates utility functions to convert between messages
  Removes setters from ContextHubInfo
  Replace JNI code with Java HIDL at ContextHubService
2017-11-20 19:25:18 +00:00
TreeHugger Robot
a14a9d46c3 Merge "Revert "Revert "Implement front-end APIs for generic vendor-specific parameters.""" 2017-11-20 18:28:36 +00:00
Arthur Ishiguro
6cc8d47c9c Removes setters from ContextHubInfo
No longer needed after JNI code is removed.

Bug: 66965339
Test: Compile only
Change-Id: I160b5a621fd15dd8509ce779d5ff9b98c6395c94
2017-11-20 08:59:59 -08:00
Tomasz Wasilczyk
8e932c61db Revert "Revert "Implement front-end APIs for generic vendor-specific parameters.""
This reverts commit 3ccddd6747.

Change-Id: I2fefc0f128cc6f50ce51cbb2d689d931e7d34cf2
2017-11-17 16:18:40 +00:00
TreeHugger Robot
0f11fd496d Merge "Adds CHRE platform ID to ContextHubInfo" 2017-11-17 05:07:54 +00:00
Arthur Ishiguro
27155bc799 Adds CHRE platform ID to ContextHubInfo
Adds a parameterized constructor and the platform ID to the
ContextHubInfo.

Bug: 67734082
Test: make update-api && make from root
Change-Id: I98822f625c5173cdbd281b24550de434b67b18d3
2017-11-16 18:51:00 -08:00
TreeHugger Robot
cd8d0c07e7 Merge "Revert "Implement front-end APIs for generic vendor-specific parameters."" 2017-11-17 02:13:07 +00:00
Tomasz Wasilczyk
3ccddd6747 Revert "Implement front-end APIs for generic vendor-specific parameters."
This reverts commit 7c22694dc2.

Change-Id: I311166b4cfb55ea032c89a5a7ce49eeaeb02338e
2017-11-17 00:21:21 +00:00
Tomasz Wasilczyk
c99d6c1908 Merge "Implement front-end APIs for generic vendor-specific parameters." 2017-11-16 20:43:43 +00:00
TreeHugger Robot
902cb0b68b Merge "Camera2: Update generated docs to latest version" 2017-11-16 18:29:52 +00:00
Emilian Peev
c8ed5ecdc4 Check camera permissions for any devices using the VIDEO class
Any USB devices that are of class VIDEO or have similar
interfaces should check whether the calling client has
camera permissions before granting access to the device.
The above restriction will apply for any packages that
target P or above.

Bug: 27367690
Test: Manual using 3-rd party USB webcam applications.
Change-Id: I7b4f808d344cae33fde93e6d81c7cceed523e24a
2017-11-16 09:00:00 +00:00
Eino-Ville Talvala
9dc7ec1f54 Camera2: Update generated docs to latest version
- Move camera reference doc images to /reference/images
- Minor formatting changes due to merging SDK/NDK metadata definitions
- Minor wording changes for the same

Bug: 69175492
Bug: 29102963
Bug: 33262893
Test: Build and manual inspection of generated docs diff
Change-Id: Ieaf0c1943eba378cc94a22d184734602c40e25e7
2017-11-15 13:30:21 -08:00
Tomasz Wasilczyk
7c22694dc2 Implement front-end APIs for generic vendor-specific parameters.
Bug: 65862441
Test: instrumentalization
Change-Id: Ieec0431c9d851de3215c4cf8eb84581db7e001bc
2017-11-15 08:54:09 -08:00