Lines Matching refs:format

93     public static void d(String prefix, String format, Object... args) {  in d()  argument
96 android.util.Slog.i(TAG, buildMessage(prefix, format, args)); in d()
98 android.util.Slog.d(TAG, buildMessage(prefix, format, args)); in d()
102 public static void d(Object objectPrefix, String format, Object... args) { in d() argument
105 android.util.Slog.i(TAG, buildMessage(getPrefixFromObject(objectPrefix), format, args)); in d()
107 android.util.Slog.d(TAG, buildMessage(getPrefixFromObject(objectPrefix), format, args)); in d()
112 public static void i(String prefix, String format, Object... args) { in i() argument
114 android.util.Slog.i(TAG, buildMessage(prefix, format, args)); in i()
118 public static void i(Object objectPrefix, String format, Object... args) { in i() argument
120 android.util.Slog.i(TAG, buildMessage(getPrefixFromObject(objectPrefix), format, args)); in i()
124 public static void v(String prefix, String format, Object... args) { in v() argument
127 android.util.Slog.i(TAG, buildMessage(prefix, format, args)); in v()
129 android.util.Slog.v(TAG, buildMessage(prefix, format, args)); in v()
133 public static void v(Object objectPrefix, String format, Object... args) { in v() argument
136 android.util.Slog.i(TAG, buildMessage(getPrefixFromObject(objectPrefix), format, args)); in v()
138 android.util.Slog.v(TAG, buildMessage(getPrefixFromObject(objectPrefix), format, args)); in v()
143 public static void w(String prefix, String format, Object... args) { in w() argument
145 android.util.Slog.w(TAG, buildMessage(prefix, format, args)); in w()
149 public static void w(Object objectPrefix, String format, Object... args) { in w() argument
151 android.util.Slog.w(TAG, buildMessage(getPrefixFromObject(objectPrefix), format, args)); in w()
155 public static void e(String prefix, Throwable tr, String format, Object... args) { in e() argument
157 android.util.Slog.e(TAG, buildMessage(prefix, format, args), tr); in e()
161 public static void e(Object objectPrefix, Throwable tr, String format, Object... args) { in e() argument
163 android.util.Slog.e(TAG, buildMessage(getPrefixFromObject(objectPrefix), format, args), in e()
168 public static void wtf(String prefix, Throwable tr, String format, Object... args) { in wtf() argument
169 android.util.Slog.wtf(TAG, buildMessage(prefix, format, args), tr); in wtf()
172 public static void wtf(Object objectPrefix, Throwable tr, String format, Object... args) { in wtf() argument
173 android.util.Slog.wtf(TAG, buildMessage(getPrefixFromObject(objectPrefix), format, args), in wtf()
177 public static void wtf(String prefix, String format, Object... args) { in wtf() argument
178 String msg = buildMessage(prefix, format, args); in wtf()
182 public static void wtf(Object objectPrefix, String format, Object... args) { in wtf() argument
183 String msg = buildMessage(getPrefixFromObject(objectPrefix), format, args); in wtf()
271 public static void addEvent(EventManager.Loggable recordEntry, String event, String format, in addEvent() argument
273 getEventManager().event(recordEntry, event, format, args); in addEvent()
515 private static String buildMessage(String prefix, String format, Object... args) { in buildMessage() argument
522 msg = (args == null || args.length == 0) ? format in buildMessage()
523 : String.format(Locale.US, format, args); in buildMessage()
525 e(TAG, ife, "Log: IllegalFormatException: formatString='%s' numArgs=%d", format, in buildMessage()
527 msg = format + " (An error occurred while formatting the message.)"; in buildMessage()
532 return String.format(Locale.US, "%s: %s%s%s", prefix, msg, sessionPostfix, isLocked); in buildMessage()