Commit Graph

1797 Commits

Author SHA1 Message Date
Chien-Yu Chen
329484bb7e Merge "Camera2 Legacy: Connect to surfaces it produces" into nyc-dev 2016-03-04 21:01:34 +00:00
Eino-Ville Talvala
8069b1f252 DngCreator: Improve BlackLevel, fix thumbnail metadata
- Use new dynamic black level result key when available
 - Write rational black level instead of integral value
 - Fix incorrect thumbnail BitsPerSample metadata
 - Fix incorrect date/time format string
 - Fix unknown orientation

Test: dng_validate for captured DNGs is clean
Bug: 27452979
Bug: 25862995
Change-Id: I87b73f7a4f4ecc3cf6498c7db16df68dd0b0b43a
2016-03-04 11:22:15 -08:00
Chien-Yu Chen
29c3630563 Camera2 Legacy: Connect to surfaces it produces
When legacy camera device is the producer of its output surfaces,
it needs to connect to the surfaces before using the surfaces
and disconnect from the surfaces after finishing using the surfaces.

Bug: 27331537
Bug: 27383242
Change-Id: Ia3e2ca142f7973face0f60fbfc96935054aac1c4
2016-03-03 16:50:35 -08:00
Ryan Bavetta
840c617c38 Merge "Fix soundtrigger test, adds null pointer check" into nyc-dev 2016-03-03 03:46:10 +00:00
Ryan Bavetta
ea04e8fe75 Fix soundtrigger test, adds null pointer check
BUG:27461735
Change-Id: I95ea641e41bcaefce15004f508ddb4bed0b5f2a8
2016-03-03 03:10:40 +00:00
Eino-Ville Talvala
74989b4d3f Merge "Camera2: Switch to auto-gen C++ binder interfaces" into nyc-dev 2016-03-02 21:47:13 +00:00
Greg Kaiser
7d3a9e5259 Merge "SensorEventListener: Clarify documentation." into nyc-dev 2016-03-02 17:27:47 +00:00
Greg Kaiser
fa806c5031 Merge "doc: Fix syntax error in code example." into nyc-dev 2016-03-02 17:26:45 +00:00
Jeff Sharkey
c53962d4ed When system server goes down, crash apps more.
Apps making calls into the system server may end up persisting
internal state or making security decisions based on the perceived
success or failure of a call, or the default values returned.

The reality is that if the system process just died, init will be
along shortly to kill all running apps, so we should have no problem
rethrowing the RemoteException as a RuntimeException.

Bug: 27364859
Change-Id: Ife0bcb079636c88d54c44d17eb580409fd79028b
2016-03-01 19:29:16 -07:00
Eino-Ville Talvala
5d2d7788f1 Camera2: Switch to auto-gen C++ binder interfaces
- Move camera AIDL files to frameworks/av
 - Update makefiles to point to new AIDL locations
 - Adjust camera2 implementation to match modifications to AIDL needed
   for native AIDL auto-generation
 - Move Surface.aidl to frameworks/native to allow use in
   native AIDL. Use android::view::Surface in Surface JNI to
   serialize Surface objects to ensure parceling compatibility.
 - Adjust service binder tests to new interface

Bug: 25091611
Change-Id: I85b817374b34a4540fa145328dbe4bbf7f746baf
2016-03-01 17:15:17 -08:00
Jeff Sharkey
f8880561e6 When system server goes down, crash apps more.
Similar to first patch, but now using new "rethrowFromSystemServer()"
method which internally translates DeadObjectException into
DeadSystemException.  New logic over in Log.printlns() now
suppresses the DeadSystemException stack traces, since they're
misleading and just added pressure to the precious log buffer space.

Add some extra RuntimeInit checks to suppress logging-about-logging
when the system server is dead.

Bug: 27364859
Change-Id: I05316b3e8e42416b30a56a76c09cd3113a018123
2016-02-27 17:17:01 -07:00
Greg Kaiser
ac82373838 doc: Fix syntax error in code example.
Change-Id: I9eb0ecd17b48513c50ca8fe6e977235827c8ecc5
2016-02-26 16:37:01 -08:00
Greg Kaiser
cc0a4820eb SensorEventListener: Clarify documentation.
"onSensorChanged" is really misnamed (perhaps we should deprecate
for a better name, but that's beyond the scope of this CL).  We
will still call this method with identical sensor values if it
has a newer timestamp.  That is different than the
"onAccuracyChanged" behavior.

We expand some of this documentation to clarify this point to users.

Change-Id: I95fa52574ebac3d20a2354b7b6dcf1bdf513448d
2016-02-25 16:14:17 -08:00
Arunesh Mishra
7dbef2da93 Merge "Fix AlwaysOnHotwordDetector recognition event bug." into nyc-dev 2016-02-24 23:12:12 +00:00
Arunesh Mishra
f47f173b06 Fix AlwaysOnHotwordDetector recognition event bug.
Parcelables don't work well with inheritance. So changed the
IRecognitionStatusCallback to have onKeyphraseDetected() and
onGenericSoundTriggerDetected() for those respective events.

Made corresponding changes to AlwaysOnHotwordDetector and SoundTriggerDetector.

Bug: 27250528
Change-Id: Ic08a431e7cc4248c688b05c865348170246de576
2016-02-24 12:57:01 -08:00
Clara Bayarri
33fd3cf2d9 Make FingerprintManager#hasEnrolledFingerprints per-user
Needed by Settings to determine if the work profile has fingerprints

Bug: 27263452
Change-Id: Ic54f59461b44a525284f6a1ab3d17627c652f842
2016-02-23 16:49:58 -08:00
Chien-Yu Chen
d1733607cd Merge "Camera2: Fix getInternalFormatSizes for depth" into nyc-dev 2016-02-23 19:52:20 +00:00
Dianne Hackborn
45ecf29484 Fix issue #26695393: Remove NEW_PICTURE and NEW_VIDEO broadcast
Ignored!  Removed!  A non-broadcast!

Any attempt to send these will be silently (except a log)
ignored.

Change-Id: Ia19357d4c90fdcd18e45f2b41c57e654ef94edb1
2016-02-22 15:27:54 -08:00
Chien-Yu Chen
4a67724da6 Camera2: Fix getInternalFormatSizes for depth
All depth formats are considered as non-high-res. Also compare depth
minimum frame durations instead of regular minimum frame durations
for depth formats.

Bug: 26687093
Change-Id: I65b691fe450077b0e3ace15f6ac0289b41caf42f
2016-02-22 14:31:58 -08:00
Jason Monk
5dbd4aad80 SysUI Tuner: Night mode v3
TwilightService:
 - Add support for locking on/off twilight globally
 - Change twilight state to have float amount rather than
   having clients calculate it using the sunrise/set values
 - State controlled through secure setting
 - Override mode which locks to a state for a couple hours then
   resets
 - Add broadcast for SysUI to listen to

Brightness/Power:
 - Updates to handle TwilightService changes
 - Added secure setting to control whether or not to use
   twilight when calculating brightness.

Tuner:
 - UI Overhall
 - NightModeController will set the values of the custom color matrix
   taking into account the current twilight service state and any
   custom calibration set by the user.
 - Probably other stuff.

Change-Id: I213f1f76a143e711c507b2ba7d784f581bfc32b4
2016-02-18 14:06:51 -05:00
Shuzhen Wang
0fc589cb29 Camera2: Clarify ordering between onCaptureStart and onCaptureProgressed
It's not a guarantee that onCaptureProgressed happens after
onCaptureStart for a particular request.

Bug: 26676240
Change-Id: I900c3b36e1738dd3514954498023eaa4a1618989
2016-02-10 15:40:03 -08:00
Yin-Chia Yeh
b7d4227bb2 Merge "Camera2: Legacy: fix legacy device CTS failures" 2016-02-02 23:23:35 +00:00
Yin-Chia Yeh
c885b5b120 Camera2: Legacy: fix legacy device CTS failures
Bug: 26626933
Change-Id: I4fa91e5213e67e3b8c2a4208c82600d5426c0786
2016-01-29 16:11:09 -08:00
Yohei Yukawa
c67395256b Merge "Use LocaleList in KeyboardLayout." 2016-01-29 01:08:03 +00:00
Yohei Yukawa
5660fad798 Use LocaleList in KeyboardLayout.
As an exercise for a new API candidate LocaleList class, this CL does a
mechanical refactoring to replace Locale[] with LocaleList in
KeyboardLayout class.  Note that what changed in this CL is just an
implementation details that is never exposed to application developers.

One take-away from this exercise is that finding the best-match locale from
an ordered locale list is really a common pattern.  Perhaps we may want
to have a guideline for this kind of situation.

Change-Id: I142379afbaf24d524ff09cf6c7ee7720150f7489
2016-01-29 00:30:00 +00:00
Ashutosh Joshi
d53aadc0ec Merge "Context hub API for applications" 2016-01-28 22:24:39 +00:00
Ashutosh Joshi
1d1ac54095 Context hub API for applications
Adding a System API for applications to access a context hub.

The API is not expected to be exposed to third party Android
applications in the medium term.

Change-Id: Ia2222317c913de6901f3912e4c89b5cfa398be85
2016-01-28 14:19:17 -08:00
Peng Xu
a295835539 Implementation of sensor additioanl info report
This implements a mechanism for sensor hardware/HAL to deliver additional information beside sensor
readings to application. It includes internal temperature reading, untracked delay of sample,
location and pose of sensor device placement in phone frame, etc. This is also a very expandable
frame to account for future need.

Change-Id: Ifd52ff315ef675086326f118eab773b0194bae23
Note: sensor additional information report used to be called sensor meta data.
2016-01-27 20:49:26 -08:00
Peng Xu
a35b5539a9 Dynamic Sensor Discovery Implementation
Defined the dynamic sensor meta data type and UUID of sensor, as well
as the broadcast intent that is related to dynamic sensor status
change.

Modify SensorManager, SystemSensorManager and the JNI layer to support
dynamic sensor discovery.

Added SensorNotificationService to notify apps that sensor connected
or disconnected via broadcast.

Change-Id: I28adfb005357d7e3983d65117d6865830c75027d
2016-01-27 16:37:22 -08:00
Eino-Ville Talvala
41d43a6b6d Merge "Camera2: Clarify LEVEL_3 requirements." 2016-01-27 22:51:21 +00:00
Ashutosh Joshi
e97a3cc4ca Merge "Adding new sensor types." 2016-01-27 22:37:41 +00:00
Ashutosh Joshi
af1a2661cd Adding new sensor types.
Adding new sensor types for the following -
     i) Stationay Detection
     ii) Motion Detection
     iii) Heart Beat Detection

Change-Id: I95dd81605e0ce2467fe5e0b65dbd25447bba412b
2016-01-27 22:37:05 +00:00
Eino-Ville Talvala
efa0be90f9 Camera2: Clarify LEVEL_3 requirements.
Bug: 25114814
Change-Id: I0d7e0c17c8860e443cded79506e9144db25fe10b
2016-01-27 14:31:57 -08:00
Arunesh Mishra
a772e5fc06 SoundTrigger API improvements.
This CL implements the SoundTrigger API improvements as given in b/22860713. Only the java-level
parts are implemented in this CL.

Key changes include:

* Addition of a SoundTriggerManager/SoundTriggerDetector system API to manage
  the sound-trigger based sound models.
* Addition of a SoundTriggerService service that manages all sound models
  including voice (keyphrase) and sound-trigger based models.
* Includes logic to write sound-trigger based models to the database.
* VoiceInteractionManager service now uses SoundTriggerService instead of
  SoundTriggerHelper.

Bug: 22860713
Change-Id: I7b5c0ed80702527c4460372efeb5e542d3693a69
2016-01-27 12:49:20 -08:00
Clara Bayarri
4c5de472a7 Merge "Make Fingerprint rename and delete user-aware" 2016-01-27 12:50:07 +00:00
Clara Bayarri
a5c1a77fad Make Fingerprint rename and delete user-aware
Bug: 26790762
Change-Id: I8c54f2ad2cc8cab2508b1feeb6a6131b462466a7
2016-01-27 10:55:41 +00:00
Eino-Ville Talvala
9068fd387c Merge "Camera2: Add LEVEL_3 to android.info.supportedHardwareLevel" 2016-01-26 23:01:09 +00:00
Yin-Chia Yeh
8b25ec2923 Merge "Camera: codegen doc update: fix typos" 2016-01-26 22:30:28 +00:00
Yin-Chia Yeh
67e61b6d22 Camera: codegen doc update: fix typos
Change-Id: Ied9e74cb8af839a1ce6d9e247413e4a05e6d894e
2016-01-26 13:27:35 -08:00
Eino-Ville Talvala
7c6d73f41f Camera2: Add LEVEL_3 to android.info.supportedHardwareLevel
LEVEL_3 is a new high-level label for camera devices that support more
than the existing FULL-level capabilities.

Bug: 25114814
Change-Id: Ibed66ed6b83e4f28598455255d86b13b78f1f13b
2016-01-26 12:27:22 -08:00
Clara Bayarri
d1f722d906 Enable enrolling/authenticating a specific work profile.
This change adds support for a separate profile-specific
fingerprint database. This is to be used together with the work
challenge.

Change-Id: I65b3a74a1c887def210d7a6da0b907138f58a5ba
2016-01-26 11:37:48 +00:00
Ashutosh Joshi
17efe02a05 Adding a sensor for device pose with six degrees of freedom
Adding a sensor type that returns the device pose as a -
    . quaternion representing rotation from a vector due north
      and zero pitch and roll &&
    . a translation from an initial position

Change-Id: I8764b8c0b9a2518632f75c7a19c203836dd04b1a
2016-01-25 23:02:38 +00:00
Zhijun He
aa40596889 Merge "Camera2: add surface set ID" 2016-01-24 17:42:43 +00:00
Yin-Chia Yeh
74fc02bf79 Merge "Camera: add post RAW sensitivity keys" 2016-01-23 23:05:03 +00:00
Yin-Chia Yeh
1ee1a0ae60 Camera: add post RAW sensitivity keys
Codegen change.

Bug: 26625646
Change-Id: I1b84fa5545db73002640d03fa6b9786986a3afdf
2016-01-22 15:31:55 -08:00
Zhijun He
445b316755 Camera2: add surface set ID
Add surface set ID to OutputConfiguration class,and make this class public.

Bug: 25088440
Change-Id: Ib5fd74aa2c7bc06aed70771765767d6fcfefa98f
2016-01-21 14:47:24 -08:00
Michael Wright
d5f7ed9fe9 Switch and store keyboard layouts based on IME subtype.
Rather than associate the keyboard layout solely with a specific
hardware model, we should also associate it with a given IME subtype.
This lets users switch between various languages and have the
keyboard change in unison with them so they can use the appropriate
layouts for each language.

This change adds initial support for associating IME subtypes and
keyboard layouts. We still need to:
  - Remove support for the old style of layout association once the
    Settings apps begins to use the new APIs
  - Automatically select an appropriate layout based on the given
    subtype (or set a reasonable universal default such as QWERTY)

Bug: 25752812

Change-Id: Ie88ce1ab77dbfe03ab51d89c1dc9e0a7ddbb3216
2016-01-21 14:03:43 -08:00
Trevor Bunker
3c288e6f2e Define TYPE_DEVICE_ORIENTATION
Bug: 23470411
Change-Id: Iceba2656936525c655f23fb00bb77521c432ba6a
2016-01-15 16:40:07 +00:00
Yin-Chia Yeh
b99ed40fb0 Merge "Camera: cleanup dead code" 2016-01-13 21:50:02 +00:00
Yin-Chia Yeh
1a1a9b2125 Camera: cleanup dead code
Change-Id: Ic95ec41063bb3dae979c86d8cfbc585891a2cb56
2016-01-10 00:26:21 -08:00