日志读取器

public class LogReader
extends Object

java.lang.Object
   ↳ android.adservices.ondevicepersonalization.LogReader


从 REQUESTS 和 EVENTS 读取日志的接口,用作 REQUESTS 和 EVENTS 表的数据访问对象。

总结

公共方法

List<EventLogRecord> getJoinedEvents(long startTimeMillis, long endTimeMillis)

检索指定时间范围内的 EventLogRecord 列表,以及此 IsolatedService 写入的相应 RequestLogRecord。

List<RequestLogRecord> getRequests(long startTimeMillis, long endTimeMillis)

检索此 IsolatedService 在指定的时间范围内写入的 RequestLogRecord 列表。

继承的方法

公共方法

getJoinedEvents

public List<EventLogRecord> getJoinedEvents (long startTimeMillis, 
                long endTimeMillis)

检索指定时间范围内的 EventLogRecord 列表,以及此 IsolatedService 写入的相应 RequestLogRecord。
此方法可能需要几秒钟才能完成,因此只能从工作线程调用。

参数
startTimeMillis long

endTimeMillis long

开球回攻次数
List<EventLogRecord> 此值不能为 null

getRequest

public List<RequestLogRecord> getRequests (long startTimeMillis, 
                long endTimeMillis)

检索此 IsolatedService 在指定的时间范围内写入的 RequestLogRecord 列表。
此方法可能需要几秒钟才能完成,因此只能从工作线程调用。

参数
startTimeMillis long

endTimeMillis long

开球回攻次数
List<RequestLogRecord> 此值不能为 null