1e7fc8b65b0efa7015afb9c1e59069a081f192fcfSteven Moreland/* 2e7fc8b65b0efa7015afb9c1e59069a081f192fcfSteven Moreland * Copyright (C) 2017 The Android Open Source Project 3e7fc8b65b0efa7015afb9c1e59069a081f192fcfSteven Moreland * 4e7fc8b65b0efa7015afb9c1e59069a081f192fcfSteven Moreland * Licensed under the Apache License, Version 2.0 (the "License"); 5e7fc8b65b0efa7015afb9c1e59069a081f192fcfSteven Moreland * you may not use this file except in compliance with the License. 6e7fc8b65b0efa7015afb9c1e59069a081f192fcfSteven Moreland * You may obtain a copy of the License at 7e7fc8b65b0efa7015afb9c1e59069a081f192fcfSteven Moreland * 8e7fc8b65b0efa7015afb9c1e59069a081f192fcfSteven Moreland * http://www.apache.org/licenses/LICENSE-2.0 9e7fc8b65b0efa7015afb9c1e59069a081f192fcfSteven Moreland * 10e7fc8b65b0efa7015afb9c1e59069a081f192fcfSteven Moreland * Unless required by applicable law or agreed to in writing, software 11e7fc8b65b0efa7015afb9c1e59069a081f192fcfSteven Moreland * distributed under the License is distributed on an "AS IS" BASIS, 12e7fc8b65b0efa7015afb9c1e59069a081f192fcfSteven Moreland * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13e7fc8b65b0efa7015afb9c1e59069a081f192fcfSteven Moreland * See the License for the specific language governing permissions and 14e7fc8b65b0efa7015afb9c1e59069a081f192fcfSteven Moreland * limitations under the License. 15e7fc8b65b0efa7015afb9c1e59069a081f192fcfSteven Moreland */ 16e7fc8b65b0efa7015afb9c1e59069a081f192fcfSteven Morelandpackage android.frameworks.displayservice@1.0; 17e7fc8b65b0efa7015afb9c1e59069a081f192fcfSteven Moreland 18e7fc8b65b0efa7015afb9c1e59069a081f192fcfSteven Morelandinterface IEventCallback { 19e7fc8b65b0efa7015afb9c1e59069a081f192fcfSteven Moreland /** 20e7fc8b65b0efa7015afb9c1e59069a081f192fcfSteven Moreland * @param timestamp Nanoseconds since boot. 21e7fc8b65b0efa7015afb9c1e59069a081f192fcfSteven Moreland * @param count Vsync count. 22e7fc8b65b0efa7015afb9c1e59069a081f192fcfSteven Moreland */ 23e7fc8b65b0efa7015afb9c1e59069a081f192fcfSteven Moreland oneway onVsync(uint64_t timestamp, uint32_t count); 24e7fc8b65b0efa7015afb9c1e59069a081f192fcfSteven Moreland 25e7fc8b65b0efa7015afb9c1e59069a081f192fcfSteven Moreland /** 26e7fc8b65b0efa7015afb9c1e59069a081f192fcfSteven Moreland * @param timestamp Nanoseconds since boot. 27e7fc8b65b0efa7015afb9c1e59069a081f192fcfSteven Moreland * @param connected Current state of hotplug. 28e7fc8b65b0efa7015afb9c1e59069a081f192fcfSteven Moreland */ 29e7fc8b65b0efa7015afb9c1e59069a081f192fcfSteven Moreland oneway onHotplug(uint64_t timestamp, bool connected); 30e7fc8b65b0efa7015afb9c1e59069a081f192fcfSteven Moreland}; 31