0a637ecd1b082c93bfbcfecfae5b051573fed1c3 |
|
20-Mar-2017 |
Jean-Michel Trivi <jmtrivi@google.com> |
NotificationPlayer: fix typo in log Test: n/a Change-Id: I585f6ad39ef6dc0a93651deae6ca50051f732a1b
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/NotificationPlayer.java
|
5cd7d7f7a4525d8c277f307ccc79dbde3af3fa08 |
|
17-Mar-2017 |
Jean-Michel Trivi <jmtrivi@google.com> |
NotificationPlayer: fix error listener, sync in playback thread The error and completion listeners should be set before MediaPlayer.prepare() is called, in case of an error during prepare. Move the sleep to synchronize the playback of the notification and the ducking from the MediaPlayer to the playback thread. Test: play a notification during media playback Bug: 35855841 Change-Id: I42f01f485f533c1cc84b9d927f0dc594cdb7ec8f
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/NotificationPlayer.java
|
99489ccf740d369193a8ffc7eeb4bbde6919bd65 |
|
26-Jan-2017 |
Jean-Michel Trivi <jmtrivi@google.com> |
Notification playback synchronized with audio focus PlayerProxy: more control options (pan, delayed start), remove exceptions in method signatures. Use delayed start on notification playback for better sync between media apps and notifications Disabled for now: support for AudioService (through MediaFocusControl and PlaybackActivityMonitor) to enforce audio ducking of focus owners losing audio focus with AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK, and who don't play audio that has a content labelled as CONTENT_TYPE_SPEECH. This feature will be enabled when setting a VolumeShaper on a player works. Test: play music and play notification Bug 30258418 Change-Id: I4e4d911645306bbde17f74288f3b61781fe0e3fe
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/NotificationPlayer.java
|
9aeed0cd6f47359ec64e12ded06863ab272d712e |
|
20-Jan-2017 |
Jean-Michel Trivi <jmtrivi@google.com> |
Notification player: do not use stream types Don't go through stream types for the attributes of the notification to play when requesting focus Test: play notification with usage USAGE_NOTIFICATION_EVENT, verify that usage is communicated to MediaFocusControl Bug 30258418 Change-Id: Ieaab969d84728b04a6f34aa8a02cf18ba22d1aca
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/NotificationPlayer.java
|
a25f6fcfed280136a16ce5800fcaabae17291dd7 |
|
21-Aug-2015 |
Jean-Michel Trivi <jmtrivi@google.com> |
NotificationPlayer supports MediaPlayer errors If an error is reported while trying to play a notification, behave as if the playback had completed. Bug 21093153 Change-Id: Iedc7691d0b8f4d68ad75cb04292a5d7d9350552f
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/NotificationPlayer.java
|
81f871e2b96125d57b76c07169e868e516443794 |
|
07-Aug-2014 |
Jean-Michel Trivi <jmtrivi@google.com> |
Add support for AudioAttributes in android.media.Ringtone Deprecate use of stream types. Map deprecated API to AudioAttributes. Add new methods to specify AudioAttributes on a Ringtone instance. Bug 16790748 Change-Id: Ifb3c2e838e1f119614459ad7d71d83a4d7c9ffdb
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/NotificationPlayer.java
|
de84f0e77ea2bf713d15c290264059a413c2486a |
|
12-Jun-2013 |
John Spurlock <jspurlock@google.com> |
Organize the imports in systemui. To follow android conventions, more importantly to remove the unused. Change-Id: I75881718e84360a579a3b02c26489ad250bc9227
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/NotificationPlayer.java
|
562e65bb19149d3f1d411d6665e7ae471e1e62bb |
|
13-Feb-2013 |
Jean-Michel Trivi <jmtrivi@google.com> |
Remove obsolete imports Change-Id: I67d357a1b0bac89447b1e237f61dd18aea7b912b
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/NotificationPlayer.java
|
6313cbe1d05c60afae3f8a5d2460c5cf4714fa1d |
|
13-Feb-2013 |
Jean-Michel Trivi <jmtrivi@google.com> |
Fix AudioFocus for back-to-back notifications A single instance of NotificationPlayer will play notifications back-to-back, and was, for each requesting AudioFocus. But as a new notification was about to be played, its accompanying thread was terminated, and the completion listener was never called, and therefore AudioFocus was not released (e.g. two requests for one release). The fix consists in requesting AudioFocus only once and abandonning it when the only reported completion is received. Added a FIXME note about a better solution to be implemented. Bug 7680947 Change-Id: Ica9d5c1eb5d57c89ceebe66282af69f0f7d43667
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/NotificationPlayer.java
|
97ad2cd1a80eef7db0fe19f15c417de4fa752519 |
|
06-Feb-2013 |
Jean-Michel Trivi <jmtrivi@google.com> |
No AudioFocus for notifications when media played remotely Don't use AudioFocus when playing a notification when media is playing remotely. This behavior may be accompanied by rules in the device's audio policy to not route the notifications to the remote display. Bug 7485803 Change-Id: I8b96aa59cace75f6e9a0e73799ef8c75e9ee97aa
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/NotificationPlayer.java
|
098d580cc2bb6c0891c756a4e5230c6c6b0d2376 |
|
27-Apr-2012 |
Jeff Sharkey <jsharkey@android.com> |
Migrate ringtone playback to SystemUI. Introduce IRingtonePlayer, which handles playback for both Ringtone objects and Notifications. SystemUI now hosts this player, which it registers with AudioService. It also keeps MediaPlayer instances warm, and cleans them up after stop() or Binder death. Move both Ringtone and NotificationManagerService to play back audio through this new interface. Bug: 6376128, 6350773 Change-Id: I1dcb86d16ee3c4f07cdb2248d33dcff4ead3609a
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/NotificationPlayer.java
|