Dianne Hackborn
8958c1effb
Merge "Initial stab at background check."
2015-11-17 19:13:32 +00:00
Dianne Hackborn
bef28feba5
Initial stab at background check.
...
Actually, this implementation is more what we want for ephemeral
apps. I am realizing the two are not really the same thing. :(
For this implementation, we now keep track of how long a uid has
been in the background, and after a certain amount of time
(currently 1 minute) we mark it as "idle". Any packages associated
with that uid are then no longer allowed to run in the background.
This means, until the app next goes in the foreground:
- No manifest broadcast receivers in the app will execute.
- No services can be started (binding services is still okay,
as this is outside dependencies on the app that should still
be represented).
- All alarms for the app are cancelled and no more can be set.
- All jobs for the app are cancelled and no more can be scheduled.
- All syncs for the app are cancelled and no more can be requested.
Change-Id: If53714ca4beed35faf2e89f916ce9eaaabd9290d
2015-11-16 17:58:32 -08:00
Sungsoo Lim
70ffbdca62
Make TvContentRating.contains() public
...
Apply the feedback from API council.
Bug: 25726616
Change-Id: I9858a61eea50ff95221d453117fe3d991f88a33f
2015-11-17 10:34:04 +09:00
Sungsoo Lim
2189f58ec5
MediaBrowser: Handle null results properly in onLoadChildren
...
Bug: 19127753
Change-Id: I7ddad87e5ec6338a74c340485fed583107709acf
2015-11-16 14:46:29 +09:00
Ian Pedowitz
c9711721f3
Merge "Revert "Fix race condition when setting default ringtones"" into mnc-dr-dev am: 88d4cc1001 am: 4f22c781b6 am: 44df02fc17
...
am: 4ab979e6cc
* commit '4ab979e6cc0c63b97b79441b478e30c8febdc3ee':
Revert "Fix race condition when setting default ringtones"
2015-11-11 22:13:11 +00:00
Ian Pedowitz
4ab979e6cc
Merge "Revert "Fix race condition when setting default ringtones"" into mnc-dr-dev am: 88d4cc1001 am: 4f22c781b6
...
am: 44df02fc17
* commit '44df02fc17bb0f3f1c445166c6cbd7f4d92b4eb6':
Revert "Fix race condition when setting default ringtones"
2015-11-11 22:04:28 +00:00
Ian Pedowitz
4f22c781b6
Merge "Revert "Fix race condition when setting default ringtones"" into mnc-dr-dev
...
am: 88d4cc1001
* commit '88d4cc100175a54be3b7d560a91c38197f59f4bf':
Revert "Fix race condition when setting default ringtones"
2015-11-11 21:46:06 +00:00
Ian Pedowitz
05ce0c6bb0
Revert "Fix race condition when setting default ringtones"
...
This reverts commit f2cb9341ff864e6d9cc6797857665b2281643a74.
Change-Id: I151972052aea47bf8c6823eb8bbf8161c5a7a4f0
2015-11-11 21:38:04 +00:00
Jeff Tinker
b801f7b891
Merge "Extend MediaCodec.CryptoInfo to support Sample AES"
2015-11-09 23:11:21 +00:00
Marco Nelissen
ff5fe15d34
Merge "Fix race condition when setting default ringtones" into mnc-dr-dev am: 83702ec3ed am: 02bf433f90 am: 8fb0121cb6
...
am: b67ae42ad0
* commit 'b67ae42ad07ed6a5b4927c41089076e6eafd6949':
Fix race condition when setting default ringtones
2015-11-09 21:46:06 +00:00
Marco Nelissen
b67ae42ad0
Merge "Fix race condition when setting default ringtones" into mnc-dr-dev am: 83702ec3ed am: 02bf433f90
...
am: 8fb0121cb6
* commit '8fb0121cb60ddf54a22bff088670594f422edea9':
Fix race condition when setting default ringtones
2015-11-09 21:39:41 +00:00
Marco Nelissen
02bf433f90
Merge "Fix race condition when setting default ringtones" into mnc-dr-dev
...
am: 83702ec3ed
* commit '83702ec3edf3bd17eff90a409cc3cf5efab48cff':
Fix race condition when setting default ringtones
2015-11-09 21:28:32 +00:00
Marco Nelissen
f2cb9341ff
Fix race condition when setting default ringtones
...
If the device was powered off during first boot, after media scanner
inserted some entries but before the default ringtone settings were
set (or committed to disk), the default settings would not be set
on subsequent boots.
Bug: 18625739
Bug: 22349910
Change-Id: Iff07da59a9c6d53bf2950bd107ee74d02b7f48d6
2015-11-06 10:50:47 -08:00
Jeff Tinker
45eb9b39f4
Extend MediaCodec.CryptoInfo to support Sample AES
...
API changes only, implementation to follow
b/23719082
Change-Id: I7cbd0cdf03a8b5b67628cde200c3df6a9253fdbf
2015-11-05 14:21:25 -08:00
Glenn Kasten
1662ccc975
Merge "Update AudioManager.getProperty documentation"
2015-11-02 19:55:37 +00:00
Glenn Kasten
0b986af895
Update AudioManager.getProperty documentation
...
Change-Id: I004bfdbbac9b0897931fa206bff865bdb600ebf6
2015-10-30 18:27:14 -07:00
Glenn Kasten
a217f8f9ca
Explain ENCODING_PCM_FLOAT
...
Change-Id: Icf680f65f07023ca6e416a1ef6067132daf607b9
2015-10-30 18:27:02 -07:00
Dongwon Kang
082aed1ab4
MediaBrowser: Handle onServiceConnected/Disconnected in the given thread
...
The class assumes that the member variables are accessed in the same thread
when the class was created, but onServiceConnected/Disconnected is called
in the main thread according to the documentation.
Bug: 25307613
Change-Id: I86b63cc45fbc6995cedce39f5c151e99f76172d0
2015-10-29 00:35:01 +00:00
Dongwon Kang
ec7bf63d59
MediaBrowser: Fix a wrong ISE message
...
Change-Id: Ic0b376bdc52dd01d9d687468104ffe6a797adb30
2015-10-28 00:57:47 +00:00
Phil Burk
2cce579ed2
Merge "MIDI docs: add missing bracket"
2015-10-26 20:26:11 +00:00
Phil Burk
908d5bc82e
MIDI docs: add missing bracket
...
The example code for openDevice() was missing a close bracket.
Bug: 25283941
Change-Id: I8fac6a6dee2393125ad4e057cb857fe21e43b491
Signed-off-by: Phil Burk <philburk@google.com>
2015-10-26 11:41:11 -07:00
Wei Jia
92a1b8cab2
am 559f28ec: am d32df662: am de612dc1: MediaPlayer: remove obsolete function setPlaybackRate from comments.
...
* commit '559f28ec67636f7bed82550be7590db46b47f1d0':
MediaPlayer: remove obsolete function setPlaybackRate from comments.
2015-10-13 22:02:44 +00:00
Wei Jia
d32df6623e
am de612dc1: MediaPlayer: remove obsolete function setPlaybackRate from comments.
...
* commit 'de612dc1d10d25e017ac911d0e7cca6709bdbb96':
MediaPlayer: remove obsolete function setPlaybackRate from comments.
2015-10-13 21:47:04 +00:00
Wei Jia
de612dc1d1
MediaPlayer: remove obsolete function setPlaybackRate from comments.
...
Bug: 24260668
Change-Id: I20733e52dbd2dab5eb10b4607a1c1aadb93a1332
(cherry picked from commit cd860ac06ca7a46e9638dd741ba731f066705eb5)
2015-10-13 21:31:22 +00:00
Daichi Hirono
85f7078f8b
Add constans for MTP event codes.
...
BUG=23368533
Change-Id: I922eb9a26812a44780ba81b8a391be45852cad08
2015-10-13 12:49:16 -07:00
Phil Burk
61cf82778f
am 92ae0a54: am 7bbb6fed: am 977fe03b: BLE-MIDI: change binding for BluetoothMidiService
...
* commit '92ae0a5480f8ac2107688bf2f6bb58d49cb52bd1':
BLE-MIDI: change binding for BluetoothMidiService
2015-10-13 18:21:44 +00:00
Phil Burk
7bbb6fedbc
am 977fe03b: BLE-MIDI: change binding for BluetoothMidiService
...
* commit '977fe03b36a7783f9cee8497efe550a69b128473':
BLE-MIDI: change binding for BluetoothMidiService
2015-10-13 18:10:29 +00:00
Ronghua Wu
f807c4fc9e
am c2fd35f7: am 57c332bd: am c024de3c: media: ignore null InputStream
...
* commit 'c2fd35f7ae51d83b3d8f7f46c70e351bf0f18235':
media: ignore null InputStream
2015-10-13 15:50:57 +00:00
Ronghua Wu
57c332bd4a
am c024de3c: media: ignore null InputStream
...
* commit 'c024de3c946c18e8e4799eb8d372fdec3146f8cf':
media: ignore null InputStream
2015-10-13 15:40:48 +00:00
Phil Burk
977fe03b36
BLE-MIDI: change binding for BluetoothMidiService
...
Add a remote call addBluetoothDevice() using AIDL.
This was needed because onBind() is only called once.
Bug: 23219556
Bug: 23760886
Change-Id: Id7554ca55d596352d11dbd6ae3e403138a29c864
Signed-off-by: Phil Burk <philburk@google.com>
(cherry picked from commit 7cd06c0b9e087a555d2c5dd4cab5b7eac8497526)
2015-10-13 15:40:03 +00:00
Ronghua Wu
c024de3c94
media: ignore null InputStream
...
Bug: 22854896
Change-Id: I20b9e28bbba6dec73538ee6937d337c2e2b971f4
2015-10-13 15:29:42 +00:00
Phil Burk
42fcca169c
am ff1e8f7e: am 1b3eb741: am ca296978: Merge "MidiManager: fix double BTLE callback" into mnc-dr-dev
...
* commit 'ff1e8f7eeeb037a296d1fe49600927b5665fe8b7':
MidiManager: fix double BTLE callback
2015-10-13 00:20:17 +00:00
Phil Burk
ae885d6520
am 69ddaafa: am 0a64b146: am e39def48: MidiService: update listener with current status when registered
...
* commit '69ddaafac41a21b35b226ee22e189b9e7840e70f':
MidiService: update listener with current status when registered
2015-10-13 00:20:06 +00:00
Phil Burk
1b3eb741b5
am ca296978: Merge "MidiManager: fix double BTLE callback" into mnc-dr-dev
...
* commit 'ca296978e7f2a1f70b8dca32b1db9372c2392458':
MidiManager: fix double BTLE callback
2015-10-12 22:04:43 +00:00
Phil Burk
ca296978e7
Merge "MidiManager: fix double BTLE callback" into mnc-dr-dev
2015-10-12 22:01:03 +00:00
Phil Burk
0a64b146d0
am e39def48: MidiService: update listener with current status when registered
...
* commit 'e39def480fd2d1bcc3a89751dd492d4634c38194':
MidiService: update listener with current status when registered
2015-10-12 21:35:12 +00:00
Phil Burk
afa038c074
MidiManager: fix double BTLE callback
...
Stop openBluetoothDevice() from calling its callback twice.
Bug: 23218338
Change-Id: I2e738b22a124c0336c46bef05680a82ee1f59e79
Signed-off-by: Phil Burk <philburk@google.com>
(cherry picked from commit 0ca998d79fe95ded26ec4ff0a1e0a8dc4802684b)
2015-10-12 21:01:35 +00:00
Phil Burk
e39def480f
MidiService: update listener with current status when registered
...
This will give an app an opportunity to learn whether an input port is busy
before the user tries to connect and then fails.
Bug: 22825043
Change-Id: Ifede60f166dfe66ea15453044fce06f4a8452b18
Signed-off-by: Phil Burk <philburk@google.com>
(cherry picked from commit b2355940e3e697deeecd1b6511cd5094f9dc553a)
2015-10-12 20:59:57 +00:00
Wonsik Kim
8399506317
Implement pause/resume functionality to MediaRecorder
...
Bug: 20092236
Change-Id: I02b9f11e210d15f6efe52d44f64ad8a3bc566d96
2015-10-08 08:40:34 +00:00
Chien-Yu Chen
29f0c598c4
am c1a13439: am d07d0071: am 02e4400c: am ab781275: Merge "MediaActionSound: Fix video stop sound" into mnc-dr-dev
...
* commit 'c1a13439334c173802d582e6fefada38e0d165f5':
MediaActionSound: Fix video stop sound
2015-10-07 23:26:36 +00:00
Chien-Yu Chen
c1a1343933
am d07d0071: am 02e4400c: am ab781275: Merge "MediaActionSound: Fix video stop sound" into mnc-dr-dev
...
* commit 'd07d007161e2f64e88eba9f78778ab63b3dd6ab9':
MediaActionSound: Fix video stop sound
2015-10-07 23:22:24 +00:00
Chien-Yu Chen
02e4400cc7
am ab781275: Merge "MediaActionSound: Fix video stop sound" into mnc-dr-dev
...
* commit 'ab7812750bca947abc9e8b1ce73a3041dbc2f2a9':
MediaActionSound: Fix video stop sound
2015-10-07 23:11:20 +00:00
Wei Jia
cd860ac06c
MediaPlayer: remove obsolete function setPlaybackRate from comments.
...
Bug: 24260668
Change-Id: I20733e52dbd2dab5eb10b4607a1c1aadb93a1332
2015-10-07 15:38:12 -07:00
Chien-Yu Chen
d890f4f400
MediaActionSound: Fix video stop sound
...
Bug: 24745252
Change-Id: I803679d52750e09c7fc7b881523becf9259b558b
2015-10-07 15:17:19 -07:00
Adam Lesinski
1619ed4706
Fix security issues when using Parcel.setDataPosition() with untrusted input
...
When seeking forward in the Parcel, adding the extracted size to the Parcel.dataPosition()
can result in an overflow. Guard against this.
Bug:23909429
Change-Id: If37cdebbf05a92810300363d1a6ecd8b42b6da26
2015-10-01 20:48:23 +00:00
Neil Fuller
2bf03c9681
am 29a631e1: am 08aa3309: am ead371de: Merge "Remove use of \'_\' variable name"
...
* commit '29a631e14703d1705609da27650ecbcf766035a1':
Remove use of '_' variable name
2015-09-30 20:05:38 +00:00
Neil Fuller
29a631e147
am 08aa3309: am ead371de: Merge "Remove use of \'_\' variable name"
...
* commit '08aa3309790672ccc4c9b899fdf4e6162cfbc37a':
Remove use of '_' variable name
2015-09-30 14:00:17 +00:00
Neil Fuller
08aa330979
am ead371de: Merge "Remove use of \'_\' variable name"
...
* commit 'ead371ded06fcf14b7af86a92100b0c3c92fd320':
Remove use of '_' variable name
2015-09-30 13:54:53 +00:00
Neil Fuller
00d6b601e6
Remove use of '_' variable name
...
'_' may become invalid in future versions of the Java language
and generates warnings in OpenJDK 8.
Bug: 24494019
Change-Id: Id77c8f003b0fdf295191d2d8dbd5b0b0edde2b44
2015-09-29 15:22:40 +01:00
Daichi Hirono
aeaa12c34e
Merge "Add readEvent method to MtpDevice."
2015-09-28 12:40:05 +00:00