Commit Graph

2495 Commits

Author SHA1 Message Date
TreeHugger Robot
3bc6f794e6 Merge "camera: Modify AF scene change" 2018-01-23 03:03:31 +00:00
Yin-Chia Yeh
2d3cae80d9 Merge "Camera: remove NOT_PRESENT cameras" am: 174df238ac am: 0e32a62cd4
am: 75774be569

Change-Id: I71a313e35f20c51403227523060914495e67c3bc
2018-01-23 02:52:15 +00:00
Yin-Chia Yeh
75774be569 Merge "Camera: remove NOT_PRESENT cameras" am: 174df238ac
am: 0e32a62cd4

Change-Id: I5b2d1d756daf1fabd8d42b9161de6a63d8989302
2018-01-23 02:35:28 +00:00
Yin-Chia Yeh
0e32a62cd4 Merge "Camera: remove NOT_PRESENT cameras"
am: 174df238ac

Change-Id: I2c0dd5ccd8c8a165b568563051ad42dba6082792
2018-01-23 02:12:57 +00:00
Shuzhen Wang
98da482eca Merge "camera: Add support for multiple camera capture requests" 2018-01-23 00:36:16 +00:00
TreeHugger Robot
58d241ce54 Merge "camera: Add OIS data keys" 2018-01-22 23:22:30 +00:00
Shuzhen Wang
e322374217 Merge "camera2: Add support for logical camera" 2018-01-22 20:30:15 +00:00
Yin-Chia Yeh
0c9f1e5ff5 Merge "Camera: codegen spec update" 2018-01-22 19:55:20 +00:00
Emilian Peev
2100ae7d2b camera: Add support for multiple camera capture requests
Camera capture requests need an extension to support multiple
physical cameras. Clients should be able to include the list
of additional physical camera ids as part of the request builder
call and then be able to modify them individually.

Test: Manual using camera application,
Camera CTS
Bug: 64691172

Change-Id: I280cb24b41076a2fb5603e91db30f060f7b53456
2018-01-21 16:27:59 -08:00
Shuzhen Wang
23d2938f22 camera2: Add support for logical camera
- Add physicalCameraId in OutputConfiguration
- Add static metadata for logical camera

Test: LogicalCameraDeviceTest CTS test
Bug: 64691172
Change-Id: I1b3ea005796d07e361cc3d1b04aa6e5ca26643f4
2018-01-21 16:26:11 -08:00
Svet Ganov
82f09bcf93 No camera for idle uids - framework
If a UID is idle (being in the background for more than
cartain amount of time) it should not be able to use the
camera. If the UID becomes idle we generate an eror and
close the cameras for this UID. If an app in an idle UID
tries to use the camera we immediately generate an error.
Since apps already should handle these errors it is safe
to apply this policy to all apps to protect user privacy.

Test: Pass - cts-tradefed run cts -m CtsCameraTestCases
      Added - CameraTest#testCameraAccessForIdleUid

Change-Id: If6ad1662f2af6592b6aca1aeee4bd481389b5e00
2018-01-21 02:55:49 -08:00
TreeHugger Robot
d931b34944 Merge "Add new HardwareBuffer usages and formats." 2018-01-20 16:42:51 +00:00
Chien-Yu Chen
5f9da396ac camera: Modify AF scene change
Allow DETECT in all AF modes.

Test: CTS
Bug: 64847201
Change-Id: I278016b502d17d3b9c6fd91cf2baadb405dd2dff
2018-01-19 18:55:36 -08:00
Yin-Chia Yeh
0c961165c2 Camera: remove NOT_PRESENT cameras
So hot plug cameras won't stay forever in
device status map.

Change-Id: I0290ff2eccb3d48a0f72c48f32a97909d20623ad
2018-01-20 00:55:45 +00:00
Chien-Yu Chen
c9cf5b95b2 camera: Add OIS data keys
Test: CTS
Bug: 64847201
Change-Id: I505e1b9e2bcfea515e3292c870808d4c15024567
2018-01-19 16:24:15 -08:00
Tomasz Wasilczyk
e8caa3bc5c Merge "Update ProgramSelector to match HAL 2.0." 2018-01-19 22:51:47 +00:00
Yin-Chia Yeh
43cea5a7a7 Camera: codegen spec update
Adding new EXTERNAL hardware level.

Bug: 64874137 63873538
Change-Id: Ic9126ac85b9a0e6cf029afcecc09a3d224983d74
2018-01-19 12:18:39 -08:00
Craig Donner
7c37b90a02 Add new HardwareBuffer usages and formats.
Bug: 66900669
Test: build
Change-Id: Icbfb143073f4b1ed947ba325a3799d6748980c75
2018-01-19 10:16:22 -08:00
TreeHugger Robot
f54bb2af3c Merge "Camera: Update MOTION_TRACKING requirements" 2018-01-19 06:08:23 +00:00
TreeHugger Robot
98b6993af6 Merge "camera: Add external flash mode key" 2018-01-19 04:19:23 +00:00
Eino-Ville Talvala
5b38e15ed9 Camera: Update MOTION_TRACKING requirements
- Change the required stream combination to the latest definition.
- Improve request template docs

Test: Build, check docs output
Bug: 63629224
Change-Id: Idec4579dc24ca8e9967cf78870fd09143caa5a5a
2018-01-18 13:14:41 -08:00
Tomasz Wasilczyk
fae3d0d192 Update ProgramSelector to match HAL 2.0.
Bug: 69308221
Test: it builds
Change-Id: I502dc5bfdf48dc34e0f551d01eec01887c8ec2b6
2018-01-18 07:20:52 -08:00
Kenny Guy
0e4bc3f2ba Merge "Add more brightness config details to dumpsys" 2018-01-18 15:18:08 +00:00
Arthur Ishiguro
1d3b23cb9b Implements toString in NanoAppMessage/ContextHubMessage
Bug: 31069172
Test: Compile only
Change-Id: I1b59bcd0ff75d3824a136b903e5db0c15b55ccf5
2018-01-17 15:03:29 -08:00
Kenny Guy
05ce809b82 Add more brightness config details to dumpsys
Allow client to add a description to a brightness
config and dump to dumpsys
Dump time and package name of system app that
set the last brightness config.

Bug: 71854421
Test: atest PersistentDataStoreTest
Test: manaual - check adb shell dumpsys display
Change-Id: I5ff0c0d3a4c5e30c9d4aa7eea850c7174ee20450
2018-01-17 20:42:42 +00:00
Adrian Roos
e1d68cda9d DisplayCutout: Reload displays when resource overlays change
This allows the DisplayManager to pick up changes to the
DisplayCutout resource, which is used to implement emulation
of the overlay.

Bug: x
Test: adb shell overlay enable ...; verify cutout is picked up immediately and not only after toggling the display
Change-Id: I0fa2d50366a17231f45990d2d3854321d48653f0
2018-01-17 12:55:34 +01:00
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
Jerry Zhang
7ca5d3a334 DO NOT MERGE: Add setScreenUnlockedFunctions method to UsbManager
Cherry-pick from 30b9adfad1

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-12 15:35:43 +00:00
Chien-Yu Chen
2cf3357982 camera: Add external flash mode key
Test: CTS
Bug: 64847201
Change-Id: Ia8cc0d063cc7f56757bf3916245ade88732ed498
2018-01-11 11:35:41 -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