MCPcopy Create free account
hub / github.com/meefik/linuxdeploy / get

Method get

app/src/main/java/ru/meefik/linuxdeploy/ParamUtils.java:65–74  ·  view source on GitHub ↗
(Context c, String key)

Source from the content-addressed store, hash-verified

63 }
64
65 public String get(Context c, String key) {
66 SharedPreferences pref = c.getSharedPreferences(this.name, Context.MODE_PRIVATE);
67 int resourceId = PrefStore.getResourceId(c, key, "string");
68 Map<String, ?> source = pref.getAll();
69 String defaultValue = "";
70 if (resourceId > 0) defaultValue = c.getString(resourceId);
71 Object value = source.get(key);
72 if (value == null) value = defaultValue;
73 return fixOutputParam(c, key, value.toString());
74 }
75
76 public Map<String, String> get(Context c) {
77 SharedPreferences pref = c.getSharedPreferences(this.name, Context.MODE_PRIVATE);

Callers 15

dumpMethod · 0.95
xterm.jsFile · 0.45
aFunction · 0.45
nFunction · 0.45
oFunction · 0.45
getEnvDirMethod · 0.45
getLanguageMethod · 0.45
getThemeMethod · 0.45
getFontSizeMethod · 0.45
getMaxLinesMethod · 0.45
isTimestampMethod · 0.45
isDebugModeMethod · 0.45

Calls 2

getResourceIdMethod · 0.95
fixOutputParamMethod · 0.95

Tested by

no test coverage detected