Commit Graph

1786 Commits

Author SHA1 Message Date
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
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
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
Michael Wright
0de19dfa47 Merge changes from topic 'kb-layout'
* changes:
  Always show enabled keyboards.
  Bandaid over broken keyboard layout selection process.
2016-01-08 20:55:02 +00:00
Narayan Kamath
65c7835394 Merge "Trivial correction of Camera2 API description" am: a909dad0c3
am: 7e308606f6

* commit '7e308606f605dd1bd047e20e17ee53122a64b8ba':
  Trivial correction of Camera2 API description
2016-01-08 09:48:32 +00:00
Narayan Kamath
7e308606f6 Merge "Trivial correction of Camera2 API description"
am: a909dad0c3

* commit 'a909dad0c36542ffbc155f98b4eb054921b1bbd0':
  Trivial correction of Camera2 API description
2016-01-08 09:44:34 +00:00
Hidenari Koshimae
0fa4914484 Trivial correction of Camera2 API description
Change-Id: Ibb3393b94812dfe7b496182bb5ef43f1a5df7434
2016-01-08 16:18:59 +09:00
Michael Wright
0748342d2e Bandaid over broken keyboard layout selection process.
Automatically select a keyboard layout if we have one that is device
specific and is made for our current locale. Also, provide a way of
requesting layouts for a specific input device rather than just
getting all of them. Custom layouts may not be appropriate for
typical keyboard devices (and custom keyboards may not work with
typical layouts).

Bug: 25062009

Change-Id: I3a0ae5ad68f956b936485791ceb78c347fad7d4f
2016-01-05 13:13:53 -05:00
Jun Mukai
347e5d498f Introduce pointer capture API.
This depends on I4189eb4d93f50c2865b7a325727be5ceebcc71f8 of
frameworks/native.

Bug: 5452473
Change-Id: Ie21e521f3e5c581f976dc0feb5d84bfa48b046cd
2015-12-18 10:22:43 -08:00
Eino-Ville Talvala
3282f864f8 Merge "Revert "Camera2: create new streams if surface size has changed"" am: 79ac3edc57
am: 6e49caeaab

* commit '6e49caeaabeb852f0b6cd1e75d9871bc6b70b981':
  Revert "Camera2: create new streams if surface size has changed"
2015-12-17 00:39:07 +00:00
Eino-Ville Talvala
fefcb9bae2 Merge "Camera2: create new streams if surface size has changed" am: bcb636d423
am: c8a16ab564

* commit 'c8a16ab564532cbbdd781d0528c825945c63e907':
  Camera2: create new streams if surface size has changed
2015-12-17 00:37:41 +00:00
Eino-Ville Talvala
6e49caeaab Merge "Revert "Camera2: create new streams if surface size has changed""
am: 79ac3edc57

* commit '79ac3edc57f93d6b8e8187b549dd23512b841fb2':
  Revert "Camera2: create new streams if surface size has changed"
2015-12-16 23:20:29 +00:00
Eino-Ville Talvala
c8a16ab564 Merge "Camera2: create new streams if surface size has changed"
am: bcb636d423

* commit 'bcb636d4232bedfb421ecaa157f67b96a1b26944':
  Camera2: create new streams if surface size has changed
2015-12-16 23:09:29 +00:00
Yin-Chia Yeh
e94b3fe953 Revert "Camera2: create new streams if surface size has changed"
This change is redundant after the following change is merged:

Camera2: Handle surface size change

When comparing if two OutputConfigurations are equal, also check
the width, height, format, dataspace when the output configurations
were created. With this, CameraDeviceImpl knows that the surface has
changed sizes and will reconfigure the stream.

Bug: 12250682
Change-Id: I4216260a0a08ad87b835ed97e9eaddf1df317fcc
This reverts commit f49f8b0bad.
2015-12-16 22:50:48 +00:00