1098d580cc2bb6c0891c756a4e5230c6c6b0d2376Jeff Sharkey/*
2098d580cc2bb6c0891c756a4e5230c6c6b0d2376Jeff Sharkey * Copyright (C) 2012 The Android Open Source Project
3098d580cc2bb6c0891c756a4e5230c6c6b0d2376Jeff Sharkey *
4098d580cc2bb6c0891c756a4e5230c6c6b0d2376Jeff Sharkey * Licensed under the Apache License, Version 2.0 (the "License");
5098d580cc2bb6c0891c756a4e5230c6c6b0d2376Jeff Sharkey * you may not use this file except in compliance with the License.
6098d580cc2bb6c0891c756a4e5230c6c6b0d2376Jeff Sharkey * You may obtain a copy of the License at
7098d580cc2bb6c0891c756a4e5230c6c6b0d2376Jeff Sharkey *
8098d580cc2bb6c0891c756a4e5230c6c6b0d2376Jeff Sharkey *      http://www.apache.org/licenses/LICENSE-2.0
9098d580cc2bb6c0891c756a4e5230c6c6b0d2376Jeff Sharkey *
10098d580cc2bb6c0891c756a4e5230c6c6b0d2376Jeff Sharkey * Unless required by applicable law or agreed to in writing, software
11098d580cc2bb6c0891c756a4e5230c6c6b0d2376Jeff Sharkey * distributed under the License is distributed on an "AS IS" BASIS,
12098d580cc2bb6c0891c756a4e5230c6c6b0d2376Jeff Sharkey * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13098d580cc2bb6c0891c756a4e5230c6c6b0d2376Jeff Sharkey * See the License for the specific language governing permissions and
14098d580cc2bb6c0891c756a4e5230c6c6b0d2376Jeff Sharkey * limitations under the License.
15098d580cc2bb6c0891c756a4e5230c6c6b0d2376Jeff Sharkey */
16098d580cc2bb6c0891c756a4e5230c6c6b0d2376Jeff Sharkey
17098d580cc2bb6c0891c756a4e5230c6c6b0d2376Jeff Sharkeypackage android.media;
18098d580cc2bb6c0891c756a4e5230c6c6b0d2376Jeff Sharkey
1981f871e2b96125d57b76c07169e868e516443794Jean-Michel Triviimport android.media.AudioAttributes;
20098d580cc2bb6c0891c756a4e5230c6c6b0d2376Jeff Sharkeyimport android.net.Uri;
2165c4a2b26cd8776b0927e9b0e07ecf53bd31b627Jeff Sharkeyimport android.os.UserHandle;
22098d580cc2bb6c0891c756a4e5230c6c6b0d2376Jeff Sharkey
23098d580cc2bb6c0891c756a4e5230c6c6b0d2376Jeff Sharkey/**
24098d580cc2bb6c0891c756a4e5230c6c6b0d2376Jeff Sharkey * @hide
25098d580cc2bb6c0891c756a4e5230c6c6b0d2376Jeff Sharkey */
26098d580cc2bb6c0891c756a4e5230c6c6b0d2376Jeff Sharkeyinterface IRingtonePlayer {
27098d580cc2bb6c0891c756a4e5230c6c6b0d2376Jeff Sharkey    /** Used for Ringtone.java playback */
2881f871e2b96125d57b76c07169e868e516443794Jean-Michel Trivi    void play(IBinder token, in Uri uri, in AudioAttributes aa);
29098d580cc2bb6c0891c756a4e5230c6c6b0d2376Jeff Sharkey    void stop(IBinder token);
30098d580cc2bb6c0891c756a4e5230c6c6b0d2376Jeff Sharkey    boolean isPlaying(IBinder token);
31098d580cc2bb6c0891c756a4e5230c6c6b0d2376Jeff Sharkey
32098d580cc2bb6c0891c756a4e5230c6c6b0d2376Jeff Sharkey    /** Used for Notification sound playback. */
3381f871e2b96125d57b76c07169e868e516443794Jean-Michel Trivi    void playAsync(in Uri uri, in UserHandle user, boolean looping, in AudioAttributes aa);
34098d580cc2bb6c0891c756a4e5230c6c6b0d2376Jeff Sharkey    void stopAsync();
35098d580cc2bb6c0891c756a4e5230c6c6b0d2376Jeff Sharkey}
36