231238 Commits

Author SHA1 Message Date
Chien-Yu Chen
bd098d4ed3 Merge changes from topic 'camera-hardening'
* changes:
  Add cameraserver process
  Camera: update connect call
2016-01-28 02:04:37 +00:00
Arunesh Mishra
6a8fd7935f SoundTrigger system API changes.
This CL exposes the SoundTriggerManager and SoundTriggerDetector as a
system/privileged API. The API is protected by a system/priv permission
and also via SEpolicy rules.

Bug: 22860713

Change-Id: I07ee3548ef0d5c584570004645267f5021dfa84c
2016-01-27 18:04:30 -08:00
Lifu Tang
45fbe46da6 Merge changes from topic '2016 GPS Changes'
* changes:
  Framework support to read newly added fields
  Added an API to query GPS hardware version info
  GPS Measurement and Navigation APIs go public
  Supported GNSS multi-constellation in frameworks
2016-01-28 02:02:17 +00:00
Lifu Tang
e5a0e21b6f Framework support to read newly added fields
Change-Id: Ie43395addd102656a4dbf9c25111ac50ec9afe41
2016-01-27 18:01:33 -08:00
Pavel Zhamaitsiak
ed0eecf7a2 Add ITelephonyDebugSubscriber.aidl
It can be used to subscribe for telephony debug events.

Change-Id: I6f17b0409f1117abd2d4caac99d3301c43134c75
2016-01-27 18:00:17 -08:00
Adam Lesinski
b2d3ffaa20 Don't change screen on time on time changes
Screen on time should be measured in elapsed realtime, not wallclock.

Cause a checkIdleStates to occur when reloading stats
(on rollover and on time change).

When time changes occur in the negative direction, the new stats file
we create can overlap the previous one with regards to its end timestamp.
Use the begin timestamp to determine which of the latest stats to merge.
(b/22716352)

Bug: 26488100
Change-Id: If31b29bbbee9e98401205b5e26bce86e181286e7
2016-01-27 17:51:47 -08:00
Suprabh Shukla
74a2fe4f03 Added a constant to be used as an Intent extra
Added a constant which can be specified to skip the uninstallation
confirmation dialog. Useful in cases where we want to show a different
warning message to the user before starting the UninstallerActivity

Change-Id: Ia87184a9ad715b628118feb447388625b8bf7f1c
2016-01-27 17:51:40 -08:00
Stephan Linzner
3b3e57ef2b Merge "Revert "Deprecated platform Android testing APIs"" 2016-01-28 01:42:21 +00:00
Stephan Linzner
b1ac3142f0 Revert "Deprecated platform Android testing APIs"
This reverts commit d46a7d0d6edbb36aa1a851af3769cc528d943ba0.

Change-Id: I4e4079d17f3bcdde7dc84e440a2168bb3e6d89d3
2016-01-28 01:40:29 +00:00
Lifu Tang
82f893d6df Added an API to query GPS hardware version info
Change-Id: Ic45357d30da350759f56c9d061e60196acb3255b
2016-01-27 17:38:24 -08:00
Adam Powell
2ebfc6f59e Merge "Pinning components in ChooserActivity" 2016-01-28 01:38:05 +00:00
Anna Galusza
9b27811246 Add API for IME control by Accessibility Services.
Change-Id: I3bb806cf420e0551a2c9ef97d95613f73e362df9
2016-01-27 17:35:59 -08:00
Winson
214f0f0dc8 Part 2: Adding clear-all to history
Change-Id: I9cd51f2a97ebe0f306e4934cdcac1a522526cf50
2016-01-27 17:25:02 -08:00
Joe LaPenna
a301c9f45b [DO NOT MERGE ANYWHERE]: Allow button events in ambient. am: 7528f57c4d -s ours am: 2bccc45cec -s ours am: b47972df80 -s ours
am: ab00e4e38c  -s ours

* commit 'ab00e4e38c113e2e0b60cde5d210e39683c75040':
  [DO NOT MERGE ANYWHERE]: Allow button events in ambient.
2016-01-28 01:21:38 +00:00
Adam Powell
ec6bc41e18 Pinning components in ChooserActivity
Move ChooserActivity to SystemUI. This is a safer place for it to live
and still be able to persist data to storage.

Add a context menu to long press for chooser targets allowing users to
'pin' a target component from an app. This causes it to sort to the
front of the list so that a user's favorite apps are always available
from share UIs, etc. Similarly, all ChooserTargets from a pinned
component receive an impossibly large boost for sorting so that they
will always appear first.

Bug 26791843

Change-Id: Ib4e603d9d4263403e98ce619287452ddab593044
2016-01-27 17:17:31 -08:00
Joe LaPenna
ab00e4e38c [DO NOT MERGE ANYWHERE]: Allow button events in ambient. am: 7528f57c4d -s ours am: 2bccc45cec -s ours
am: b47972df80  -s ours

* commit 'b47972df80ffa40c4ea8541f96275c25ed939d7b':
  [DO NOT MERGE ANYWHERE]: Allow button events in ambient.
2016-01-28 01:17:24 +00:00
Joe LaPenna
b47972df80 [DO NOT MERGE ANYWHERE]: Allow button events in ambient. am: 7528f57c4d -s ours
am: 2bccc45cec  -s ours

* commit '2bccc45cec5201c5b613134ebb0b398bc45483ef':
  [DO NOT MERGE ANYWHERE]: Allow button events in ambient.
2016-01-28 01:12:36 +00:00
Steve McKay
d114cd0733 Merge "Remember view mode by root." 2016-01-28 01:08:51 +00:00
Sailesh Nepal
35c205862f Merge "Make CallScreening.CallResponse static" 2016-01-28 01:07:24 +00:00
Joe LaPenna
2bccc45cec [DO NOT MERGE ANYWHERE]: Allow button events in ambient.
am: 7528f57c4d  -s ours

* commit '7528f57c4ddbde1c6d0a2a352bd8a1af43711013':
  [DO NOT MERGE ANYWHERE]: Allow button events in ambient.
2016-01-28 01:06:28 +00:00
Stephan Linzner
b79a68368b Merge "Deprecated platform Android testing APIs" 2016-01-28 01:05:34 +00:00
Tomasz Mikolajewski
7db9c81937 Unhide DocumentsContract.isTreeUri.
Bug: 22212976
Change-Id: I5267e5de0037559eba5bd3adf16d552c25ca8037
2016-01-28 10:00:52 +09:00
Jaesung Chung
9f774342aa Merge "Fix GpsTimeStamp format string" 2016-01-28 00:53:34 +00:00
Sailesh Nepal
f44607142f Make CallScreening.CallResponse static
A small mistake in my previous CL. The response object
needs to be static.

Change-Id: Idf9bca7a7076275f53475c2531090f406daecab9
2016-01-27 16:53:15 -08:00
Pavlin Radoslavov
26fdbc1833 Merge "Grant CAP_WAKE_ALARM to the Bluetooth process for any user" 2016-01-28 00:52:41 +00:00
Peng Xu
03b22506c1 Merge "Dynamic Sensor Discovery Implementation" 2016-01-28 00:46:29 +00: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
Winson Chung
3f64f3a3c3 Merge "Part 1: Tweaking history transition to match design." 2016-01-28 00:35:36 +00:00
Teng-Hui Zhu
dbee9bb342 Gradient for VectorDrawable's fill and stroke
Add ComplexColor interface for both GradientColor and ColorStateList.
Set up constant state, factory, theme attrs for GradientColor, while
refactoring the ColorStateList's similar code. (Functionality in CSL should
be the same).

Support themeing in both the root and item level in GradientColor.
For example, both startColor in <gradient> tag or color in <item> tag can
have theme color.
Add tests for both simple and complex cases with themeing etc.

Hook up the native VectorDrawable implementation using 2 extra JNI calls for
simplicity. Such calls only happen at inflate and applyTheme call.

b/22564318

Change-Id: Ibdc564ddb4a7ee0133c6141c4784782f0c93ce0e
2016-01-27 16:32:42 -08:00
Lajos Molnar
58ec1b5a6e Merge "media: expose media format keys for color characteristics" 2016-01-28 00:31:43 +00:00
Steve McKay
3eb2d07fd3 Remember view mode by root.
Now stored in local prefs, not recents DB.
Don't consult preferences for recents from DocumentsActivity.

Bug: 22671255 26689962 26411301
Change-Id: I492d85c450253bce984c929a6dd15d7c31ee6a0b
2016-01-27 16:28:28 -08:00
Pavlin Radoslavov
2956beeec9 Grant CAP_WAKE_ALARM to the Bluetooth process for any user
Use multiuser_get_app_id(uid) to check for AID_BLUETOOTH
and allow the CAP_WAKE_ALARM capability for any user.

Bug: 26784675
Change-Id: I11641e212b7c815e9137ae5620da6ad55f95a899
2016-01-27 16:22:15 -08:00
Makoto Onuki
df6c8d0bc0 Merge "Fix exception message" 2016-01-28 00:20:35 +00:00
Makoto Onuki
ca3f6fae60 Fix exception message
Change-Id: I6fe4b8b745414ed589337079e2893d87dadb34f5
2016-01-27 16:19:38 -08:00
Yohei Yukawa
d8701bfed0 Add ACTION_KEYBOARD_LAYOUT_SETTINGS.
This CL adds ACTION_KEYBOARD_LAYOUT_SETTINGS so that IME developers can
navigate users to the settings to configure the hardware keyboard layout
as needed, as we have exposed ACTION_INPUT_METHOD_SETTINGS and
ACTION_INPUT_METHOD_SUBTYPE_SETTINGS.

Bug: 25752827
Change-Id: I8f371702904b3354043cd6d23fc9a8ff8be9b537
2016-01-27 16:15:01 -08:00
Lifu Tang
a8b7bb5a50 GPS Measurement and Navigation APIs go public
Those APIs are already used by first-party Apps for a while. We now make them
available to third-party Apps as well.

Change-Id: I87d9f0dbb04831fc849228d7df03a2686e2eb383
2016-01-27 16:07:09 -08:00
Jack Yu
b98fac6f1f Merge "Reduced more radio log spam" into mm-wireless-dev
am: 24c5e7c4ce

* commit '24c5e7c4ceb31c85868fe2c03e8a507e2cb0520f':
  Reduced more radio log spam
2016-01-28 00:05:14 +00:00
Adam Lesinski
72c3927f86 Merge "Record ModemActivityInfo and distribute power blame to apps" 2016-01-28 00:03:56 +00:00
Jack Yu
24c5e7c4ce Merge "Reduced more radio log spam" into mm-wireless-dev 2016-01-28 00:00:04 +00:00
Tony Mantler
a0e03ddd5f Change AccessPoint sorting to bucket signal levels
Keeps the list from jumping around for non-user-visible reasons

Change-Id: I2a47fa2f8e3dfcd95c17c5ffbb552332273eb425
2016-01-27 15:57:03 -08:00
Miao Wang
104aff50bd Merge "[RenderScript] Unhide new Allocation APIs" 2016-01-27 23:49:23 +00:00
Adam Lesinski
21f76aa770 Record ModemActivityInfo and distribute power blame to apps
Telephony expsoses a getModemActivity() method, which BatteryStats
will poll when a change in network activity occurs (on the modem).

The time spent in various states (tx, idle, rx) are distributed amongst
the apps that did rx/tx traffic during that window.

Bug:23147562
Change-Id: I480a85df95786f87c382b96816fe2ed4bb2d5a42
2016-01-27 15:45:30 -08:00
Sudheer Shanka
f5b850e694 Update notification title when admin disallows unredacted ones.
Currently, we use "Contents hidden" message in either case where user
wants to hide sensitive content or admin disallows  unredacted
notifications. Updated to use a different message when the
admin disallows it.
Change-Id: Idc73968ff7894e96d8f9b5be4621cc02f682e0aa
2016-01-27 23:43:06 +00:00
Sanket Padawe
d11c15d418 Merge "Add new RIL command for sending ack to solicited async and unsolicited msg." into mm-wireless-dev
am: 2ed3add734

* commit '2ed3add734df1b9b35d91b69f2722b9554d2cf2b':
  Add new RIL command for sending ack to solicited async and unsolicited msg.
2016-01-27 23:29:25 +00:00
Sanket Padawe
2ed3add734 Merge "Add new RIL command for sending ack to solicited async and unsolicited msg." into mm-wireless-dev 2016-01-27 23:25:09 +00:00
Phil Burk
dc5f027783 AudioTrack: make low latency APIs public
Allow apps to lower their Java audio latency.

Bug: 21019153
Change-Id: I1be9a083c46e9fcf7db2635e813cab13dbad810a
Signed-off-by: Phil Burk <philburk@google.com>
2016-01-27 23:24:20 +00:00
Felipe Leme
8b0b0e3b92 Merge "Minor improvements on parseCommandArgs," 2016-01-27 23:21:14 +00:00
Sudheer Shanka
ff2feb4ca6 Merge "Fix UserAvatarView.setDisabled method." 2016-01-27 23:20:52 +00:00
Stephan Linzner
d46a7d0d6e Deprecated platform Android testing APIs
- Deprecated most android.test.* APIs
- Kept ProviderTestCase2 and LoaderTestCase since we don't have a
replacement yet
- Deprecated android.test.suitebuilder
- Added Javadoc to all deprecated APIs with links to corresponding
Android Testing Support Library APIs
- Removed all trailing whitespace

Change-Id: Iab0699f56c286e29b5af46f7580bec5f29955fd3
2016-01-27 15:16:20 -08:00
Winson
49df4209cf Part 1: Tweaking history transition to match design.
- Adding background scrim that can be controlled across transitions 
  within recents.  As a result, we can remove the status bar scrim.
- Moving the history view into the RecentsView now that it animates in
  parallel with the task stack
- Transition home from history no longer goes back to stack view first
- Removing some extra allocations when going into history and loading 
  tasks

Change-Id: I665baefcdd619de5e9366923eaaf4c558261141a
2016-01-27 15:15:44 -08:00