blob: b7b9c50eb91b31fde6967ccf60dc3df2026e9738 [file] [log] [blame]
Dongwon Kang2652c172015-12-14 21:59:19 +09001/*
2 * Copyright 2016 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef ANDROID_I_MEDIA_RESOURCE_MONITOR_H
18#define ANDROID_I_MEDIA_RESOURCE_MONITOR_H
19
20#include <binder/IInterface.h>
21
22namespace android {
23
24// ----------------------------------------------------------------------
25
26class IMediaResourceMonitor : public IInterface {
27public:
28 DECLARE_META_INTERFACE(MediaResourceMonitor);
29
30 virtual void notifyResourceGranted(/*in*/ int32_t pid, /*in*/ const String16& type,
31 /*in*/ const String16& subType, /*in*/ int64_t value) = 0;
32
33 enum {
34 NOTIFY_RESOURCE_GRANTED = IBinder::FIRST_CALL_TRANSACTION,
35 };
36};
37
38// ----------------------------------------------------------------------
39
40class BnMediaResourceMonitor : public BnInterface<IMediaResourceMonitor> {
41public:
42 virtual status_t onTransact(uint32_t code, const Parcel& data, Parcel* reply,
43 uint32_t flags = 0);
44};
45
46// ----------------------------------------------------------------------
47
48}; // namespace android
49
50#endif // ANDROID_I_MEDIA_RESOURCE_MONITOR_H