X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=src%2Ftype3_AndroidCloud%2Fanbox-master%2Fandroid%2Fservice%2Fplatform_service_interface.h;fp=src%2Ftype3_AndroidCloud%2Fanbox-master%2Fandroid%2Fservice%2Fplatform_service_interface.h;h=db110ee4837ec2823b517db49fd0a183f625173f;hb=e26c1ec581be598521517829adba8c8dd23a768f;hp=0000000000000000000000000000000000000000;hpb=6699c1aea74eeb0eb400e6299079f0c7576f716f;p=iec.git diff --git a/src/type3_AndroidCloud/anbox-master/android/service/platform_service_interface.h b/src/type3_AndroidCloud/anbox-master/android/service/platform_service_interface.h new file mode 100644 index 0000000..db110ee --- /dev/null +++ b/src/type3_AndroidCloud/anbox-master/android/service/platform_service_interface.h @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2016 Simon Fels + * + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 3, as published + * by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranties of + * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see . + * + */ + +#ifndef ANBOX_ANDROID_PLATFORM_SERVICE_INTERFACE_H_ +#define ANBOX_ANDROID_PLATFORM_SERVICE_INTERFACE_H_ + +#include +#include +#include + +#include +#include + +#include + +namespace android { +class IPlatformService : public IInterface { +public: + DECLARE_META_INTERFACE(PlatformService); + + enum { + // Keep this synchronized with frameworks/base/services/java/com/android/server/wm/AnboxPlatformServiceProxy.java + BOOT_FINISHED = IBinder::FIRST_CALL_TRANSACTION, + UPDATE_WINDOW_STATE = IBinder::FIRST_CALL_TRANSACTION + 1, + UPDATE_APPLICATION_LIST = IBinder::FIRST_CALL_TRANSACTION + 2, + SET_CLIPBOARD_DATA = IBinder::FIRST_CALL_TRANSACTION + 3, + GET_CLIPBOARD_DATA = IBinder::FIRST_CALL_TRANSACTION + 4, + }; + + virtual status_t boot_finished() = 0; + virtual status_t update_window_state(const Parcel &data) = 0; + virtual status_t update_application_list(const Parcel &data) = 0; + virtual status_t set_clipboard_data(const Parcel &data) = 0; + virtual status_t get_clipboard_data(const Parcel &data, Parcel *reply) = 0; +}; + +class BpPlatformService : public BpInterface { +public: + BpPlatformService(const sp &binder); + + status_t boot_finished() override; + status_t update_window_state(const Parcel &data) override; + status_t update_application_list(const Parcel &data) override; + status_t set_clipboard_data(const Parcel &data) override; + status_t get_clipboard_data(const Parcel &data, Parcel *reply) override; +}; + +class BnPlatformService : public BnInterface { +public: + virtual status_t onTransact(uint32_t code, const Parcel &data, + Parcel *reply, uint32_t flags); +}; +} // namespace android +#endif