Log when a user "accepted" IME text. Each application can define what
it means to "accept" text. In the case of Gmail, pressing the "Send"
button indicates text acceptance. We broadcast this information to
VoiceSearch LoggingEvents and use it to aggregate VoiceIME Happiness Metrics
// Create a Voice IME Logging intent only if there are logging actions
if (mHasVoiceLoggingInfo) {
Intent i = new Intent(LoggingEvents.ACTION_LOG_EVENT);
i.putExtra(LoggingEvents.EXTRA_APP_NAME, LoggingEvents.VoiceIme.APP_NAME);
i.putExtra(LoggingEvents.EXTRA_EVENT, LoggingEvents.VoiceIme.IME_TEXT_ACCEPTED);
i.putExtra(LoggingEvents.EXTRA_CALLING_APP_NAME, context.getPackageName());
i.putExtra(LoggingEvents.EXTRA_TIMESTAMP, System.currentTimeMillis());
context.sendBroadcast(i);
setHasVoiceLoggingInfo(false);
}