MCPcopy Create free account
hub / github.com/M66B/FairEmail / breadcrumb

Method breadcrumb

app/src/main/java/eu/faircode/email/Log.java:236–261  ·  view source on GitHub ↗
(String name, Bundle args)

Source from the content-addressed store, hash-verified

234 }
235
236 public static void breadcrumb(String name, Bundle args) {
237 Map<String, String> crumb = new HashMap<>();
238 for (String key : args.keySet()) {
239 Object value = args.get(key);
240 if (value instanceof Boolean)
241 crumb.put(key, Boolean.toString((Boolean) value));
242 else if (value instanceof Integer)
243 crumb.put(key, Integer.toString((Integer) value));
244 else if (value instanceof Long)
245 crumb.put(key, Long.toString((Long) value));
246 else if (value instanceof Float)
247 crumb.put(key, Float.toString((Float) value));
248 else if (value instanceof Double)
249 crumb.put(key, Double.toString((Double) value));
250 else if (value instanceof String || value instanceof Spanned) {
251 String v = value.toString();
252 if (v.length() > 50)
253 v = v.substring(0, 50) + "...";
254 crumb.put(key, v);
255 } else if (value == null)
256 crumb.put(key, "<null>");
257 else
258 crumb.put(key, "<" + value.getClass().getName() + ">");
259 }
260 breadcrumb(name, crumb);
261 }
262
263 public static void breadcrumb(String name, String key, String value) {
264 Map<String, String> crumb = new HashMap<>();

Callers 15

onSaveInstanceStateMethod · 0.95
delegateMethod · 0.95
onChangedMethod · 0.95
runMethod · 0.95
monitorAccountMethod · 0.95
onAccountSelectedMethod · 0.95
connectMethod · 0.95
_connectMethod · 0.95
processOperationsMethod · 0.95
runMethod · 0.95
deliverMethod · 0.95
applyMethod · 0.95

Calls 9

getFreeMemMbMethod · 0.95
iMethod · 0.95
eMethod · 0.95
getNameMethod · 0.65
getMethod · 0.45
putMethod · 0.45
toStringMethod · 0.45
lengthMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected