// This file is autogenerated package com.android.internal.telephony; import android.os.Build; import android.util.StatsEvent; import android.util.StatsLog; /** * Utility class for logging statistics events. */ public final class TelephonyCommonStatsLog { // Constants for atom codes. /** * DeviceIdentifierAccessDenied device_identifier_access_denied
* Usage: StatsLog.write(StatsLog.DEVICE_IDENTIFIER_ACCESS_DENIED, java.lang.String package_name, java.lang.String method_name, boolean is_preinstalled, boolean is_priv_app);
*/ public static final int DEVICE_IDENTIFIER_ACCESS_DENIED = 172; // Constants for enum values. // Annotation constants. @android.annotation.SuppressLint("InlinedApi") public static final byte ANNOTATION_ID_IS_UID = StatsLog.ANNOTATION_ID_IS_UID; @android.annotation.SuppressLint("InlinedApi") public static final byte ANNOTATION_ID_TRUNCATE_TIMESTAMP = StatsLog.ANNOTATION_ID_TRUNCATE_TIMESTAMP; @android.annotation.SuppressLint("InlinedApi") public static final byte ANNOTATION_ID_PRIMARY_FIELD = StatsLog.ANNOTATION_ID_PRIMARY_FIELD; @android.annotation.SuppressLint("InlinedApi") public static final byte ANNOTATION_ID_EXCLUSIVE_STATE = StatsLog.ANNOTATION_ID_EXCLUSIVE_STATE; @android.annotation.SuppressLint("InlinedApi") public static final byte ANNOTATION_ID_PRIMARY_FIELD_FIRST_UID = StatsLog.ANNOTATION_ID_PRIMARY_FIELD_FIRST_UID; @android.annotation.SuppressLint("InlinedApi") public static final byte ANNOTATION_ID_DEFAULT_STATE = StatsLog.ANNOTATION_ID_DEFAULT_STATE; @android.annotation.SuppressLint("InlinedApi") public static final byte ANNOTATION_ID_TRIGGER_STATE_RESET = StatsLog.ANNOTATION_ID_TRIGGER_STATE_RESET; @android.annotation.SuppressLint("InlinedApi") public static final byte ANNOTATION_ID_STATE_NESTED = StatsLog.ANNOTATION_ID_STATE_NESTED; // Write methods public static void write(int code, java.lang.String arg1, java.lang.String arg2, boolean arg3, boolean arg4) { final StatsEvent.Builder builder = StatsEvent.newBuilder(); builder.setAtomId(code); builder.writeString(arg1); builder.writeString(arg2); builder.writeBoolean(arg3); builder.writeBoolean(arg4); builder.usePooledBuffer(); StatsLog.write(builder.build()); } }