1 package com.android.eventlib; 2 3 /** 4 * Service exposed to allow other packages to query logged events in this package. 5 */ 6 interface IQueryService { 7 /** 8 * Remote equivalent of {@code EventQuerier#poll}. 9 * 10 * <p>The {@code data} must contain a {@code EARLIEST_LOG_TIME} key which contains a serialized 11 * instance of {@code Instant}, a {@code TIMEOUT} key which contains a serialized instance 12 * of {@code Duration}, and a {@code QUERIER} key which contains a serialized instance 13 * of {@code EventQuerier}. 14 * 15 * <p>The return {@code Bundle} will contain a {@code EVENT} key with a serialized instance of 16 * {@code Event}. 17 */ poll(in Bundle data, int skip)18 Bundle poll(in Bundle data, int skip); 19 }