Commit Graph

2508 Commits

Author SHA1 Message Date
TreeHugger Robot
0193e5651f Merge "Add setting to control vibration intensity." 2018-01-26 00:09:09 +00:00
TreeHugger Robot
c86a420c6e Merge "Finish broadcast radio HAL 2.0 radio service." 2018-01-25 17:49:26 +00:00
Shuzhen Wang
68dcd18392 Merge "camera2: Add physical camera id in CaptureResult" 2018-01-25 15:52:45 +00:00
Michael Wright
35a0c676ee Add setting to control vibration intensity.
This patch adds two distinct vibration control settings: one for
notifications and ringtones, and one for haptic feedback. Since we don't
always have the exact intent of a given vibration, VibratorService will
do its best to classify each VibrationEffect into one of these two
categories and then scale the vibration accordingly based on the
intensity setting.

Bug: 64185329
Test: cts-tradefed run commandAndExit cts-dev -m CtsOsTestCases -t android.os.cts.VibratorTest
      cts-tradefed run commandAndExit cts-dev -m CtsOsTestCases -t android.os.cts.VibrationEffectTest
Change-Id: If16237f4782281aaab33e4a0f55c29f1a30ac493
2018-01-24 23:39:57 +00:00
TreeHugger Robot
8b4e2ddc41 Merge "Slider always represents absolute brightness" 2018-01-24 21:45:07 +00:00
TreeHugger Robot
ff73b83831 Merge changes Ia3065eb5,I602e8bb0
* changes:
  Update ProgramInfo to match HAL 2.0 changes.
  Implement front-end APIs for announcements.
2018-01-24 19:00:39 +00:00
Michael Wright
d846023804 Slider always represents absolute brightness
Currently the slider represents a gamma adjustment to the brightness
curve when auto brightness is enabled and the absolute screen brightness
when it's not. This is a fairly confusing behavior to most people, so
this consolidates them to a single behavior: the slider always
represents the current brightness and auto-brightness will automatically
adjust it.

This also moves a bunch of the brightness methods from PowerManager over
to DisplayManager, since it's really the DisplayPowerController that's
responsible for determining and setting the display brightness.

Test: atest com.android.server.display.BrightnessMappingStrategyTest
Bug: 69406898
Change-Id: I73b5982809a94cd50d563426a72d7965e923c994
2018-01-24 15:55:05 +00:00
Kevin Chyn
e8f3e1bf29 Minor cleanup for FingerprintDialog
Bug: 67497360

Test: Manual test with test app
Change-Id: I72b4502da411ee92491d6884d6deb72e027a8e9e
2018-01-23 18:10:12 -08:00
Kevin Chyn
aae4a15a22 Add FingerprintDialog API and related plumbing
This commit adds the plumbing which sends the signals from the API
to the component in SysUI. The dialog will be implemented in another
CL in this topic.

Bug: 67497360

Test: Modify Settings to use the new API
Test: FingerprintDialogImpl is able to notify FingerprintDialog clients
      of user events
Test: System dialog is dismissed when client application is killed
      unexpectedly
Test: Open FP settings, lock device, authenticate, authenticate. Repeat

Change-Id: Id28ec9691646bed765dc069cceb4678d9f6db92e
2018-01-23 14:54:48 -08:00
Shuzhen Wang
0960fb462b camera2: Add physical camera id in CaptureResult
- Add physical camera id in capture result.
- Add ability for app to get metadata key/value for physical camera.
- Batch physical and logical camera result within one processCaptureResult call.

Test: testLogicalCamera CTS test
Bug: 64691172
Change-Id: Ic67275aa5b44cbcad7ef98409e4365ee08989736
2018-01-23 08:10:10 -08:00
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
Tomasz Wasilczyk
3b4465e656 Finish broadcast radio HAL 2.0 radio service.
Instrumentation tests are now passing.

Bug: 69958777
Test: instrumentation
Change-Id: I0cabd6bf4565fc51208fddd18fb6f42337755382
2018-01-22 13:43:13 -08:00
Tomasz Wasilczyk
eab3e55096 Update ProgramInfo to match HAL 2.0 changes.
Bug: 70939328
Bug: 69958777
Test: instrumentation (none added)
Change-Id: Ia3065eb5f9fdd881d0eac603dd0c79b23b712be5
2018-01-22 13:43:13 -08:00
Tomasz Wasilczyk
f151a7b337 Implement front-end APIs for announcements.
Bug: 68045105
Test: instrumentation (none added)
Change-Id: I602e8bb0c40516a732d606f745c8f7721583155f
2018-01-22 13:36:44 -08: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