432 Commits

Author SHA1 Message Date
Donghyun Cho
3de7c4146e MediaSession: Define an extra field for staying paused after play
Introduced a new constant EXTRA_PREPARE_ONLY, which allows
MediaController to ask MediaSession to stay paused right after play
requests are called. If this field is set to true in extra bundle and it
is passed during playFromMediaId, playFromSearch, and playFromUri
requests, MediaSession will prepare the given media, but not start
playing it.

Bug: 25841735
Change-Id: I2a2f71a251bd6f475698fe8a5bb696ac70003e2b
2016-01-28 12:22:58 +09:00
Daichi Hirono
c8718b57b7 Merge "Add varietions of MtpDevice's mehtods using long." 2016-01-28 02:56:34 +00:00
Daichi Hirono
e0e6654a31 Add varietions of MtpDevice's mehtods using long.
BUG=26525304

Change-Id: I0a0b187910cf498720d8e7b8fbe9b0590e67e65e
2016-01-28 11:54:57 +09:00
Daichi Hirono
038832b900 Implement MtpDevice#getPartialObject64 in Java API.
BUG=26703522

Change-Id: I08510e3a179b7dc8bf247a9e997dc8a160138fc2
2016-01-28 11:19:55 +09:00
Amith Yamasani
37ed8d1ce0 Tweaks to user creation intent text and error codes
Return error codes in some cases.
Tweak the message to the user.

Bug: 22776757
Change-Id: Ieff0caf0add9542287b5629d7d97331df0cada1e
2016-01-27 18:17:03 -08:00
Stephan Linzner
b51617f466 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

Bug: 22314304
Change-Id: I1b1f0dd5132364110f1dfd4e3eb2dd044700d859
2016-01-27 18:09:58 -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
Lifu Tang
82f893d6df Added an API to query GPS hardware version info
Change-Id: Ic45357d30da350759f56c9d061e60196acb3255b
2016-01-27 17:38:24 -08:00
Anna Galusza
9b27811246 Add API for IME control by Accessibility Services.
Change-Id: I3bb806cf420e0551a2c9ef97d95613f73e362df9
2016-01-27 17:35:59 -08:00
Sailesh Nepal
35c205862f Merge "Make CallScreening.CallResponse static" 2016-01-28 01:07:24 +00:00
Tomasz Mikolajewski
7db9c81937 Unhide DocumentsContract.isTreeUri.
Bug: 22212976
Change-Id: I5267e5de0037559eba5bd3adf16d552c25ca8037
2016-01-28 10:00:52 +09: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
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
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
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
Miao Wang
104aff50bd Merge "[RenderScript] Unhide new Allocation APIs" 2016-01-27 23:49:23 +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
Miao Wang
c29bcd0dcd [RenderScript] Unhide new Allocation APIs
Bug: 23535524

  - ByteBuffer getByteBuffer()
  - long getStride()
  - Allocation[] createAllocations(rs, type, usage, num)
  - long getTimeStamp()

Change-Id: I0cad88c81f9f48c7aca59af159c49f506b234aee
2016-01-27 14:42:03 -08:00
Lajos Molnar
6d9ef6419a media: expose media format keys for color characteristics
Bug:  25684127
Change-Id: Ib4aa7487d1bca27eff5f31cd736e935f5bb7e8f0
2016-01-27 14:39:09 -08: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
Makoto Onuki
1244ece2e3 Merge "Make DPM.clearProfileOwner() public." 2016-01-27 22:25:43 +00:00
Ta-wei Yen
afaf052564 Merge "Added more granular states to DATA_CHANNEL_STATE" 2016-01-27 22:18:23 +00:00
Phil Burk
2ed9c8549e Merge "AudioFormat: add ENCODING_IEC61937" 2016-01-27 22:17:53 +00:00
Sailesh Nepal
4665f49b9c Merge "Add new public API to allow call screening" 2016-01-27 22:16:59 +00:00
Sailesh Nepal
ee4c5c9ee8 Merge "Expose a meta-data value to allow dialer ringing" 2016-01-27 22:15:48 +00:00
Phil Burk
4ddbc0e377 AudioFormat: add ENCODING_IEC61937
Allows applications to wrap compressed audio in a PCM
stream and pass through directly to HDMI output.

Bug: 24541671
Bug: 20891646
Bug: 26373761
Change-Id: I67a25672a3b5066b5747380d013c26e60c14c272
Signed-off-by: Phil Burk <philburk@google.com>
2016-01-27 22:08:42 +00:00
Makoto Onuki
5bf68027cf Make DPM.clearProfileOwner() public.
Bug 26827204

Change-Id: Ib32e5370b493aa3e36b869d9ed3d78782df4c895
2016-01-27 14:07:41 -08:00
Ta-wei Yen
6c8cc662a6 Merge "Add KEY_VVM_PREFETCH_BOOLEAN to CarrierConfigManager" 2016-01-27 22:00:27 +00:00
Sailesh Nepal
1bef339b88 Add new public API to allow call screening
This CL adds a new service that the default dialer can implement to
screen incoming calls.

If the service is implemented then Telecom uses it to decide if a call
should be shown to the user or rejected.

Note, I initially tried to simply extend InCallService instead of
creating a whole new service. The problem with this approach is that:
  - this breaks some in call services which show UI as soon as they are
    bound to
  - the in call service lifecycle is tightly coupled to adding and
    removing calls. Call screening happens before a call is added which
    makes it a bad fit to in call service
  - call screening is a function of only the default dialer's in call
    service but the existing code also binds to "controller" call
    services

For these reasons it seemed simpler to just create a new optional
service.

BUG: 22857261
Change-Id: I53f2ef93360e0af19b6ce45af21026be6cf3a7f3
2016-01-27 13:54:12 -08:00
Ronghua Wu
7d8501d06c Merge "media: define vp9 profile and level" 2016-01-27 21:37:59 +00:00
Ruchi Kandoi
0abc001275 PowerManager: Adds the Sustained performance API.
Adds a new type of wakelock - SUSTAINED_PERFORMANCE_WAKELOCK. This
wakelock can only be acquired when the application is in the foreground.
And it is not effective when the application is no longer in the
foreground.

Acquiring this wakelock enables the Sustained performance mode which
guarantees a certain level of performance.

Bug: 22864186

Change-Id: Id0ececc756fe014779db6efde7aede23ea181dc5
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
2016-01-27 13:15:30 -08:00
Ronghua Wu
f37f9ba8c8 media: define vp9 profile and level
Bug: 25684127
Change-Id: I806f87847e0c75c3a39cea0c5ffcc3df28d60a75
2016-01-27 12:21:00 -08:00
Hangyu Kuang
8e498db77a Merge "media: Add interface to query and set intra refresh for encoder." 2016-01-27 18:06:25 +00:00
Wonsik Kim
6e0d12ccb8 Merge "media: unhide MediaRecorder.pause()/resume()" 2016-01-27 18:01:28 +00:00
Sanket Padawe
b663adfb0c Merge "Cellinfo: Update to version 12" 2016-01-27 17:52:06 +00:00
Andrei Stingaceanu
0122f651d1 Suspend apps - disable notifications
Disable notifications and posts for suspended apps by
verifying if the package is suspended in NotificationManagerService
where AppOpsManager.OP_POST_NOTIFICATION is checked.

Note that the notificationEnabled user preference is
preserved when unsuspending.

In a following CL will make the "Block all" notifications
setting while an app is suspended (in Settings -> App Info)
readonly so that the user can not turn notifications on.

Bug: 22776761
Change-Id: Ie8edba508bd23406445f9a014404b6d3b17cb223
2016-01-27 16:47:08 +00:00
Hangyu Kuang
e9618e810a media: Add interface to query and set intra refresh for encoder.
Bug:26587630
Change-Id: I913a56b4888e2c46ad30ba0e9c3130da7101f7a4
2016-01-27 16:37:04 +00:00
Ronghua Wu
2a01921fdf Merge "media: add dolby vision profile and level defines in CodecProfileLevel." 2016-01-27 16:13:17 +00:00
Neil Fuller
b568fe04a4 Merge "Unhide @FunctionalInterface" 2016-01-27 16:10:42 +00:00
Przemyslaw Szczepaniak
5908dd25ac Remove java.nio.file package
This package has no test coverage, and we don't
know if it was ported properly. This package will
be added in future, with a test suite.

Bug: 26786186
Change-Id: I024c9b7a0caf607ad597753f998b01d243f650cd
2016-01-27 14:30:46 +00:00
Polina Bondarenko
8b8b242985 Merge "HardwarePropertiesManager: Add API for hardware properties retrieval" 2016-01-27 13:18:09 +00:00
Sergey Poromov
7200364e8d Merge "Quota exceeded API in BackupAgent" 2016-01-27 12:15:50 +00:00
Jaesung Chung
800133d4eb Merge "Enable reading a thumbnail from RAW image files in MtpDatabase" 2016-01-27 11:52:34 +00:00
Daniel U
88aa69ed19 Merge "Overload toHtml() & fromHtml() to accept option flags" 2016-01-27 11:51:59 +00:00
Neil Fuller
5fe1eef80c Merge "Unhide Method.isDefault" 2016-01-27 11:49:10 +00:00