michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* vim:set ts=2 sw=2 sts=2 et cindent: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef ANDROID_IMEDIARESOURCEMANAGERSERVICE_H michael@0: #define ANDROID_IMEDIARESOURCEMANAGERSERVICE_H michael@0: michael@0: #include michael@0: #include michael@0: michael@0: #include "IMediaResourceManagerClient.h" michael@0: michael@0: michael@0: namespace android { michael@0: michael@0: // ---------------------------------------------------------------------------- michael@0: michael@0: class IMediaResourceManagerService : public IInterface michael@0: { michael@0: public: michael@0: DECLARE_META_INTERFACE(MediaResourceManagerService); michael@0: michael@0: // Request a media resource for IMediaResourceManagerClient. michael@0: virtual void requestMediaResource(const sp& client, int resourceType) = 0; michael@0: // Cancel a media resource request and a resource allocated to IMediaResourceManagerClient. michael@0: virtual status_t cancelClient(const sp& client) = 0; michael@0: }; michael@0: michael@0: michael@0: // ---------------------------------------------------------------------------- michael@0: michael@0: class BnMediaResourceManagerService : public BnInterface michael@0: { michael@0: public: michael@0: virtual status_t onTransact( uint32_t code, michael@0: const Parcel& data, michael@0: Parcel* reply, michael@0: uint32_t flags = 0); michael@0: }; michael@0: michael@0: // ---------------------------------------------------------------------------- michael@0: michael@0: }; // namespace android michael@0: michael@0: #endif // ANDROID_IMEDIARESOURCEMANAGERSERVICE_H