libpowermanager.h
Go to the documentation of this file.
00001 #if !defined(HFILE_libpowermanager) && ANDROID_VER>=400
00002 #define HFILE_libpowermanager
00003 
00004 #include "libutils.h"
00005 
00006 namespace android {
00007 
00008 class IBinder;
00009 
00010 class IPowerManager : public IInterface {
00011 public:
00012     virtual const String16& getInterfaceDescriptor() const;
00013     virtual ~IPowerManager();
00014     static sp<IPowerManager> asInterface(const sp<IBinder>& obj);
00015 
00016     #if ANDROID_VER>=500
00017         virtual status_t acquireWakeLock(int flags, const sp<IBinder>& lock, const String16& tag, const String16& packageName, bool isOneWay = false) = 0;
00018         virtual status_t releaseWakeLock(const sp<IBinder>& lock, int flags, bool isOneWay = false) = 0;
00019     #elif ANDROID_VER>=440
00020         virtual status_t acquireWakeLock(int flags, const sp<IBinder>& lock, const String16& tag, const String16& packageName) = 0;
00021         virtual status_t releaseWakeLock(const sp<IBinder>& lock, int flags) = 0;
00022     #else
00023         virtual status_t acquireWakeLock(int flags, const sp<IBinder>& lock, const String16& tag) = 0;
00024         virtual status_t releaseWakeLock(const sp<IBinder>& lock, int flags) = 0;
00025     #endif
00026 };
00027 
00028 } //end of namespace android
00029 
00030 #endif //end of lib


dji_ronin
Author(s):
autogenerated on Sat Jun 8 2019 20:15:31