blob: 8647efa5f135685428bffaa05cf3d8af684eeedd [file] [log] [blame]
Saurabh Shah56f610d2012-08-07 15:27:06 -07001/*
2 * Copyright (C) 2010 The Android Open Source Project
3 * Copyright (C) 2012, The Linux Foundation. All rights reserved.
4 *
5 * Not a Contribution, Apache license notifications and license are
6 * retained for attribution purposes only.
7
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 */
20
21#ifndef ANDROID_IQSERVICE_H
22#define ANDROID_IQSERVICE_H
23
24#include <stdint.h>
25#include <sys/types.h>
26#include <utils/Errors.h>
27#include <utils/RefBase.h>
28#include <binder/IInterface.h>
29
30namespace qService {
31// ----------------------------------------------------------------------------
32class IQService : public android::IInterface
33{
34public:
35 DECLARE_META_INTERFACE(QService);
36 enum {
37 SECURING = 0, // Hardware securing start/end notification
38 UNSECURING, // Hardware unsecuring start/end notification
39 };
40 enum {
41 END = 0,
42 START,
43 };
44 virtual void securing(uint32_t startEnd) = 0;
45 virtual void unsecuring(uint32_t startEnd) = 0;
46};
47
48// ----------------------------------------------------------------------------
49
50class BnQService : public android::BnInterface<IQService>
51{
52public:
53 virtual android::status_t onTransact( uint32_t code,
54 const android::Parcel& data,
55 android::Parcel* reply,
56 uint32_t flags = 0);
57};
58
59// ----------------------------------------------------------------------------
60}; // namespace qService
61
62#endif // ANDROID_IQSERVICE_H