Add first stub methods to send window status updates from Android to host
This commit is contained in:
parent
a39c1b2bd2
commit
6ee8734cf3
10 changed files with 130 additions and 18 deletions
|
|
@ -28,7 +28,19 @@ status_t BpPlatformService::boot_finished() {
|
|||
return remote()->transact(IPlatformService::BOOT_FINISHED, data, &reply);
|
||||
}
|
||||
|
||||
IMPLEMENT_META_INTERFACE(PlatformService, "anbox.IPlatformService");
|
||||
status_t BpPlatformService::update_window_state() {
|
||||
Parcel data, reply;
|
||||
data.writeInterfaceToken(IPlatformService::getInterfaceDescriptor());
|
||||
return remote()->transact(IPlatformService::UPDATE_WINDOW_STATE, data, &reply);
|
||||
}
|
||||
|
||||
status_t BpPlatformService::remove_window() {
|
||||
Parcel data, reply;
|
||||
data.writeInterfaceToken(IPlatformService::getInterfaceDescriptor());
|
||||
return remote()->transact(IPlatformService::REMOVE_WINDOW, data, &reply);
|
||||
}
|
||||
|
||||
IMPLEMENT_META_INTERFACE(PlatformService, "org.anbox.IPlatformService");
|
||||
|
||||
status_t BnPlatformService::onTransact(uint32_t code, const Parcel &data,
|
||||
Parcel *reply, uint32_t flags) {
|
||||
|
|
@ -36,6 +48,12 @@ status_t BnPlatformService::onTransact(uint32_t code, const Parcel &data,
|
|||
case BOOT_FINISHED:
|
||||
CHECK_INTERFACE(IPlatformService, data, reply);
|
||||
return boot_finished();
|
||||
case UPDATE_WINDOW_STATE:
|
||||
CHECK_INTERFACE(IPlatformService, data, reply);
|
||||
return update_window_state();
|
||||
case REMOVE_WINDOW:
|
||||
CHECK_INTERFACE(IPlatformService, data, reply);
|
||||
return remove_window();
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue