Commit Graph

2909 Commits

Author SHA1 Message Date
Shuzhen Wang
a8d36036f2 Camera: Enhance support for monochrome camera
- Add new Color Filter Array enum.
- Clarify doc for Bayer pattern related metadata.
- Add DngCreator support for monochrome camera raw.

Test: Camera CTS
Test: Capture a monochrome DNG image and inspect with LightRoom
Bug: 70216652
Change-Id: I329f224e3763dd5c777815a3cbb9dd7bd198c038
2018-11-12 16:31:39 -08:00
Michael Dooley
4d75ccd328 Merge "Converting sound trigger v2.2 getModelState to be asynchronous" 2018-11-12 19:27:39 +00:00
Chilun
8753ad366b Implement new API of external display settings (1/2)
- Using DisplaySettings class for storing the display settings.
- Define flags in WindowManager.
- Have direct IWindowManager APIs to set and change display settings at
  runtime.
- Mark TODO to original usage of the flags.
- Add test case of DisplaySettings.
- Expose some APIs for CTS usage.

Bug: 114338689
Test: atest DisplayWindowSettingsTests
Test: atest CtsApacheHttpLegacy27ApiSignatureTestCases
Change-Id: I64ed14866d45cd5817fc3c895b6110c79c37b0ad
2018-11-10 16:49:56 +08:00
mike dooley
b2ab04aefd Converting sound trigger v2.2 getModelState to be asynchronous
Test: built android with checkbuild flag

Change-Id: I4c6f2388c93b6e577113fc7f2cd19242628ee50f
Bug-Id: 70206501
2018-11-09 08:36:15 +01:00
Kevin Chyn
a85b4a2d29 Merge "Return correct error when HW there is no biometric hardware" 2018-11-09 04:42:35 +00:00
TreeHugger Robot
74514bcbcc Merge "Reject PendingIntents owned by another client" 2018-11-08 03:15:58 +00:00
Kweku Adams
22b63148b1 Merge "Clarifying some battery saver policy variables." 2018-11-07 23:25:24 +00:00
Kweku Adams
7e5c7018d3 Clarifying some battery saver policy variables.
The flags for the network firewall, screen brightness adjustment, and
data saver are essentially to decide whether to turn on these features
or not, so having them be *_disabled is confusing for someone to read.
These flags differ from others such as animation_disabled or
vibration_disabled, which are actually turning off features instead of
enabling them. I'm updating the internal variable names and adding
documentation to make the behavior clearer. I haven't changed the flag
names themselves since that could make things a little more difficult if
someone wants to set flags later on.

Bug: 117126975
Test: atest com.android.server.power.BatterySaverPolicyTest
Change-Id: If3fa220f9f62117eac39b54bf771a9cc17bcc911
2018-11-07 15:21:51 -08:00
Shuzhen Wang
89d277a982 Merge "Camera: Add support for recommended stream configurations" 2018-11-07 22:54:02 +00:00
Arthur Ishiguro
72c676e343 Reject PendingIntents owned by another client
Removes ambiguity when regenerating a ContextHubClient.

Bug: 117612105
Test: Compile only
Change-Id: Ie105366d8b46b69c332859d9b096f6e6c05ca271
2018-11-07 13:40:41 -08:00
Marcin Oczeretko
ebeb8b8afd Fix javadocs in CameraDevice
Test: n/a
Change-Id: Ib48760c377f9f12ece99c555ef1556d1063a2686
2018-11-07 14:48:31 +00:00
Shuzhen Wang
68e8199c64 Merge "Camera: Unhide and update Y8 format spec" 2018-11-07 05:54:39 +00:00
Kevin Chyn
e739daf2e8 Return correct error when HW there is no biometric hardware
Devices that have no biometric hardware should still get the
BIOMETRIC_ERROR_HW_NOT_PRESENT error. Currently they get the
BIOMETRIC_ERROR_HW_UNAVAILABLE error which is slightly wrong.

Fixes: 119109074

Test: Builds
Change-Id: I32134a35fd2844bc6a4a64ded9695ae596496ef2
2018-11-06 20:08:42 -08:00
Kevin Chyn
8d45688b6d Merge "Add placeholders for IrisManager/Service" 2018-11-06 06:29:22 +00:00
Arthur Ishiguro
3685d31475 Merge changes I9f2d4e1b,Iad9ada1f,Ic8d269b4
* changes:
  Implements PendingIntent based createClient API
  Adds bindClient method to service AIDL
  Close unregistered clients with no PendingIntent
2018-11-06 03:34:31 +00:00
Kevin Chyn
51676d293a Add placeholders for IrisManager/Service
With the system services in place, we can add SELinux policies

Bug: 116530289

Test: Builds
Change-Id: I0fd0dfbbbf258eb4a0ef9019247baaf323578959
2018-11-05 18:57:15 -08:00
TreeHugger Robot
16e9f5993d Merge "Removes ContextHubBroadcastReceiver" 2018-11-06 01:35:40 +00:00
Arthur Ishiguro
6cc24a5df3 Implements PendingIntent based createClient API
Bug: 117612105
Test: Compile and flash, verify API user can regenerate a
      ContextHubClient
Change-Id: I9f2d4e1b4389e32b0828d494d74151ec56fa9d57
2018-11-02 11:29:23 -07:00
Arthur Ishiguro
d3464c7c93 Adds bindClient method to service AIDL
Will be used to recreate client with a PendingIntent.

Bug: 117612105
Test: Compile only
Change-Id: Iad9ada1fe113275790336663112f276327d4f558
2018-11-02 11:29:21 -07:00
Arthur Ishiguro
41f4e64280 Removes ContextHubBroadcastReceiver
Dynamically registered BroadcastReceivers are only valid through
the lifecycle of a process, so clients should use static
BroadcastReceivers.

Bug: 117612105
Test: None
Change-Id: Id1a13b0f54aa138685bf8cb57ffe9f176d55e6e0
2018-11-02 10:28:24 -07:00
TreeHugger Robot
a17b785a64 Merge "Performs null checks in NanoApp class" 2018-11-02 03:43:02 +00:00
Kenny Root
8b0a22dbad Merge changes from topic "usb-adb-separation"
* changes:
  Update USB tests for ADB split
  Move AdbDebuggingManager to AdbService
  AdbService: move source of truth for enabled
  Add empty AdbHandler
  Add systemReady call for AdbService
  Add function to query ADB state
  Register USB as an ADB transport type
  Add ADB transport skeleton
  Add empty AdbManagerInternal for system server
  Add empty AdbService to SystemServer
  Move ADB debugging manager to core
  Rename to AdbDebuggingManager
  Move UsbDebuggingManager to new package
2018-11-02 00:43:05 +00:00
Arthur Ishiguro
926c73479b Performs null checks in NanoApp class
Bug: 37274672
Test: Compile only
Change-Id: I5a82edd2f7a99a05c26c72b09872e964dbffd935
2018-11-01 13:14:17 -07:00
Arthur Ishiguro
a95fe31562 Adds ContextHubIntentEvent class
Helper class to parse Intent events.

Bug: 117612105
Test: Compile and flash, verify Intent events can be parsed
      using the class
Change-Id: I1267a1ce0cbbfd56ff9abb059ccc0117f060b7ff
2018-11-01 10:09:45 -07:00
Emilian Peev
2776ca3f4e Camera: Add support for recommended stream configurations
A camera device must be able to suggest power and performance
efficient stream configurations depending on the client
use case.
The new configurations should only be a strict
subset of the available exhaustive list.
Clients must be able to query the additional information using
familiar API which will not require extensive changes on their
side.

Bug: 64029608
Test: Camera CTS
Change-Id: Ib00394669d40e389426f5ba2f4c06061feaea340
2018-11-01 14:14:43 +00:00
TreeHugger Robot
2406e8ffc2 Merge changes Ib84292ca,I3411cb15,I60dfac31
* changes:
  Sends PendingIntent events
  Implements register/unregisterIntent methods
  Modifies concurrency handling in ContextHubClientBroker
2018-10-31 16:42:49 +00:00
Kenny Root
a5964c08bc Move AdbDebuggingManager to AdbService
Also remove the "Usb" from the AIDL function since it's not really
related to USB.

Test: make
Bug: 63820489
Change-Id: Ibf23964665a115a5bc835820dcff98aaf7ba610f
2018-10-31 16:11:02 +09:00
Arthur Ishiguro
daeed3cb19 Modifies concurrency handling in ContextHubClientBroker
With PendingIntent, there will be multiple states in the class, so it
will be simpler to mark methods synchronized on the object.

Bug: 117612105
Test: Compile only
Change-Id: I60dfac3113508b9e251e33fd3c1c8f60378017f4
2018-10-29 09:28:32 -07:00
Shuzhen Wang
ec5e8d25f0 Camera: Unhide and update Y8 format spec
- Unhide Y8 format as part of MONOCHROME camera support.
- Specify required stream combination for Y8 format.

Test: Camera CTS test
Bug: 70216652
Change-Id: Iab28b7ee3f2d5ec534a517079f14e0ed648ae556
2018-10-29 07:44:13 -07:00
Kevin Chyn
1a3550c1e2 Merge "Update BiometricManager constants" 2018-10-27 06:49:02 +00:00
Kevin Chyn
a8b57efec5 Update BiometricManager constants
Fixes: 117822032

Test: atest BiometricManagerTest
Change-Id: I9a384a94138e188d870dc3f224f6c21b7de1b82c
2018-10-26 16:46:51 -07:00
Jan Kowal
f4ae587aed Merge "Fix for android.hardware.radio.Utils.createIntSet" am: b25190cf62 am: e01a3fd480
am: a5b038fb9e

Change-Id: If938c1028dac3a93d5152a370ef47df20b38052b
2018-10-25 19:26:22 -07:00
Kevin Chyn
ed5b85e3b1 Merge "Surface IBiometricsFace#userActivity to FaceManager" 2018-10-26 01:20:19 +00:00
Kevin Chyn
57f119b667 Surface IBiometricsFace#userActivity to FaceManager
Fixes: 117631611

Test: Builds
Change-Id: Ia2631be24a6920cb0f014d6f9e38c6337db4219b
2018-10-25 15:27:28 -07:00
Kevin Chyn
f2aa603524 Add face acquired constants
Bug: 118382625

Test: Builds
Change-Id: I9d4024f1077a397dcb0895b16164a59a18449ce5
2018-10-25 10:54:01 -07:00
Jan Kowal
a5b038fb9e Merge "Fix for android.hardware.radio.Utils.createIntSet" am: b25190cf62
am: e01a3fd480

Change-Id: I51f552b40809c95620fbd3fbec4e21913bb74710
2018-10-24 16:24:13 -07:00
Nathan Harold
41e2d7494f Merge "Move some members to the "Q blacklist"." am: f5cf9f24ed
am: 13c9e7e2f3

Change-Id: Ia2419cce28d26d9464da2a5172cb332b629e943e
2018-10-24 16:14:06 -07:00
Arthur Ishiguro
2640f0b7d7 Makes minor modifications to Intent-based Service APIs
Bug: 117612105
Test: None
Change-Id: Ic6b623a78a1a807363de403050f027ad3f950817
2018-10-24 15:33:09 -07:00
Arthur Ishiguro
a7c3797577 Adds AIDL definitions for register/unregisterIntent
Bug: 117612105
Test: Compile only
Change-Id: Ib68110664468afc56a33d3c5069f725014473ee1
2018-10-24 15:32:25 -07:00
Michael Dooley
0bf1666c51 Merge changes from topic "getmodelstate-redo"
* changes:
  Rolling forward with indentation fix.
  Revert "Revert "Adding getModelState API to sound trigger""
2018-10-24 06:04:42 +00:00
Arthur Ishiguro
bdce57c880 Fixes typo in Intent extra names
Bug: 117612105
Test: None
Change-Id: I9b31d7d504635cc3eb3f880c925ad1aaf30becf7
2018-10-23 15:51:19 -07:00
Treehugger Robot
b25190cf62 Merge "Fix for android.hardware.radio.Utils.createIntSet" 2018-10-23 22:18:55 +00:00
Nathan Harold
f5cf9f24ed Merge "Move some members to the "Q blacklist"." 2018-10-23 21:53:51 +00:00
Jan Kowal
d09a4081d6 Fix for android.hardware.radio.Utils.createIntSet
Previous solution was assymetric: writeInt vs readTypedObject.

Also, specify the initial capacity to avoid unnecessary reallocations.

Bug: 117113131
Test: atest BroadcastRadioTests
Change-Id: Ib33b97d482422b1acac8e9420a0c974bcd59355b
2018-10-23 13:33:51 -07:00
Michael Dooley
291751e510 Revert "Revert "Adding getModelState API to sound trigger""
This reverts commit 81f71f1c27.

Reason for revert: rolling forward with fix

Change-Id: Ifc0c53581ac567cb968d91993f453220f8253aec
2018-10-23 07:44:51 +02:00
Mathew Inwood
45d2c252b1 Move some members to the "Q blacklist".
Based on some analysis, these fields/methods are likely false positives.
Set maxTargetSdk=P so that any apps using them are required to migrate off
them in future. See the bug for more details.

Exempted-From-Owner-Approval: Automatic changes to the codebase
affecting only @UnsupportedAppUsage annotations, themselves added
without requiring owners approval earlier.

Bug: 115609023
Test: m
Merged-In: I719b5c94e5b1f4fa562dd5d655953422958ad37e
Change-Id: I719b5c94e5b1f4fa562dd5d655953422958ad37e
(cherry picked from commit 8c854f86a4)
2018-10-22 17:28:24 -07:00
Arthur Ishiguro
d2dc0fef0c Clarifies requirements of registerIntent API
- Clarifies that only one PendingIntent can be registered to a client
  at a time, since otherwise it can't be regenerated meaningfully.
- Also adds that a ContextHubInfo object is provided in Intent events
  to regenerate the client.

Bug: 117612105
Test: None
Change-Id: Ia2b1cc9bc01d10b092598374c0d82e4fa1b45079
2018-10-19 13:53:57 -07:00
Yohei Yukawa
5281b6b4c0 Add Context.getDisplayId() to avoid possible IPC
ContextImpl has an internal rule that when ContextImpl#mDisplay is
null the Context is associated with the default display.  The problem
is that, as discussed in Bug 117709581, when ContextImpl#mDisplay is
null ContextImpl#getDisplay() tries to get some non-null Display
object by making an IPC to the system server, which is redundant when
the display ID is the only thing that the caller wants to know.

By having an @hide method Context.getDisplayId(), we can ensure that
display ID can be obtained without any IPC.  This enables us to
re-submit my CL [1] that aimed to instantiate InputMethodManager (IMM)
for each display but then got reverted due to a performance regression
(Bug 117434607).

There should be no developer-observable behavior change.

 [1]: I7242e765426353672823fcc8277f20ac361930d7
      c53d78e992

Fix: 117712745
Test: atest FrameworksCoreTests:android.content.ContextTest
Test: prebuilts/checkstyle/checkstyle.py -f \
      frameworks/base/core/tests/coretests/src/android/content/ContextTest.java
Change-Id: I2534530a5ce90e2620c5039d793a6454a0a1e154
2018-10-15 07:38:25 +08:00
TreeHugger Robot
9208feacfb Merge "Adds missing RequiresPermission annotation to Context Hub APIs" 2018-10-12 23:11:33 +00:00
Shuzhen Wang
d3fd0bd791 Merge "Camera: Trivial doc update" am: e9f1e8c123 am: 9481340777
am: acca5faecf

Change-Id: Id148d8a89cb93a5590bd99006a660ed9baf7c02f
2018-10-11 14:52:35 -07:00