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

Method _getViewName

app/src/main/java/eu/faircode/email/Helper.java:2333–2344  ·  view source on GitHub ↗
(View view)

Source from the content-addressed store, hash-verified

2331 }
2332
2333 private static String _getViewName(View view) {
2334 if (view == null)
2335 return "<null>";
2336 int id = view.getId();
2337 if (id == View.NO_ID)
2338 return "";
2339 try {
2340 return view.getContext().getResources().getResourceEntryName(id);
2341 } catch (Throwable ex) {
2342 return new ThrowableWrapper(ex).toSafeString();
2343 }
2344 }
2345
2346 static int getBytesPerPixel(Bitmap.Config config) {
2347 switch (config) {

Callers 1

getViewNameMethod · 0.95

Calls 3

toSafeStringMethod · 0.80
getIdMethod · 0.45
getResourcesMethod · 0.45

Tested by

no test coverage detected