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

Method getResultName

app/src/main/java/eu/faircode/email/PgpHelper.java:109–120  ·  view source on GitHub ↗
(int code)

Source from the content-addressed store, hash-verified

107 }
108
109 private static String getResultName(int code) {
110 switch (code) {
111 case RESULT_CODE_ERROR:
112 return "error";
113 case RESULT_CODE_SUCCESS:
114 return "success";
115 case RESULT_CODE_USER_INTERACTION_REQUIRED:
116 return "interaction";
117 default:
118 return Integer.toString(code);
119 }
120 }
121
122 private static OpenPgpServiceConnection getConnection(Context context, long timeout) {
123 final String pkg = PgpHelper.getPackageName(context);

Callers 1

executeMethod · 0.95

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected