code: @Deprecated
    public void addEvent(String packageName, long timeStamp, int eventType) {
      EventBuilder eventBuilder =
          EventBuilder.buildEvent()
              .setPackage(packageName)
              .setTimeStamp(timeStamp)
              .setEventType(eventType);
      if (eventType == Event.CONFIGURATION_CHANGE) {
        eventBuilder.setConfiguration(new Configuration());
      }
      addEvent(eventBuilder.build());
    }
docs: Adds an event to be returned by {@link UsageStatsManager#queryEvents}.
  
  <p>This method won't affect the results of {@link #queryUsageStats} method.
  
  @deprecated Use {@link #addEvent(Event)} and {@link EventBuilder} instead.