content/media/omx/mediaresourcemanager/IMediaResourceManagerService.h

branch
TOR_BUG_3246
changeset 6
8bccb770b82d
equal deleted inserted replaced
-1:000000000000 0:950721a5623b
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim:set ts=2 sw=2 sts=2 et cindent: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
5 * You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7 #ifndef ANDROID_IMEDIARESOURCEMANAGERSERVICE_H
8 #define ANDROID_IMEDIARESOURCEMANAGERSERVICE_H
9
10 #include <utils/RefBase.h>
11 #include <binder/IInterface.h>
12
13 #include "IMediaResourceManagerClient.h"
14
15
16 namespace android {
17
18 // ----------------------------------------------------------------------------
19
20 class IMediaResourceManagerService : public IInterface
21 {
22 public:
23 DECLARE_META_INTERFACE(MediaResourceManagerService);
24
25 // Request a media resource for IMediaResourceManagerClient.
26 virtual void requestMediaResource(const sp<IMediaResourceManagerClient>& client, int resourceType) = 0;
27 // Cancel a media resource request and a resource allocated to IMediaResourceManagerClient.
28 virtual status_t cancelClient(const sp<IMediaResourceManagerClient>& client) = 0;
29 };
30
31
32 // ----------------------------------------------------------------------------
33
34 class BnMediaResourceManagerService : public BnInterface<IMediaResourceManagerService>
35 {
36 public:
37 virtual status_t onTransact( uint32_t code,
38 const Parcel& data,
39 Parcel* reply,
40 uint32_t flags = 0);
41 };
42
43 // ----------------------------------------------------------------------------
44
45 }; // namespace android
46
47 #endif // ANDROID_IMEDIARESOURCEMANAGERSERVICE_H

mercurial