Lines Matching refs:props

59 #define PUTPROP(props, key, val) \
63 jobject r = (*env)->CallObjectMethod(env, props, putID, jkey, jval); \
73 #define PUTPROP_ForPlatformNString(props, key, val) \
77 jobject r = (*env)->CallObjectMethod(env, props, putID, jkey, jval); \
83 #define REMOVEPROP(props, key) \
86 jobject r = (*env)->CallObjectMethod(env, props, removeID, jkey); \
91 #define GETPROP(props, key, jret) \
94 jret = (*env)->CallObjectMethod(env, props, getPropID, jkey); \
115 jobject fillI18nProps(JNIEnv *env, jobject props, char *baseKey,
120 GETPROP(props, baseKey, jVMBaseVal);
132 PUTPROP(props, baseKey, platformFmtVal);
137 PUTPROP(props, baseKey, platformDispVal);
144 GETPROP(props, buf, jVMVal);
147 PUTPROP(props, buf, platformDispVal);
155 GETPROP(props, buf, jVMVal);
158 PUTPROP(props, buf, platformFmtVal);
169 Java_java_lang_System_initProperties(JNIEnv *env, jclass cla, jobject props)
174 (*env)->GetObjectClass(env, props),
178 (*env)->GetObjectClass(env, props),
182 (*env)->GetObjectClass(env, props),
190 PUTPROP(props, "java.specification.version",
192 PUTPROP(props, "java.specification.name",
194 PUTPROP(props, "java.specification.vendor",
197 PUTPROP(props, "java.version", RELEASE);
198 PUTPROP(props, "java.vendor", VENDOR);
199 PUTPROP(props, "java.vendor.url", VENDOR_URL);
200 PUTPROP(props, "java.vendor.url.bug", VENDOR_URL_BUG);
204 PUTPROP(props, "java.class.version", buf);
207 PUTPROP(props, "awt.toolkit", sprops->awt_toolkit);
211 PUTPROP(props, "os.name", sprops->os_name);
212 PUTPROP(props, "os.version", sprops->os_version);
213 PUTPROP(props, "os.arch", sprops->os_arch);
216 PUTPROP(props, "file.separator", sprops->file_separator);
217 PUTPROP(props, "path.separator", sprops->path_separator);
218 PUTPROP(props, "line.separator", sprops->line_separator);
226 PUTPROP(props, "user.language", sprops->language);
228 PUTPROP(props, "user.script", sprops->script);
231 PUTPROP(props, "user.country", sprops->country);
234 PUTPROP(props, "user.variant", sprops->variant);
236 PUTPROP(props, "file.encoding", sprops->encoding);
237 PUTPROP(props, "sun.jnu.encoding", sprops->sun_jnu_encoding);
238 PUTPROP(props, "file.encoding.pkg", "sun.io");
240 PUTPROP(props, "sun.io.unicode.encoding", sprops->unicode_encoding);
241 PUTPROP(props, "sun.cpu.isalist",
243 PUTPROP(props, "sun.cpu.endian", sprops->cpu_endian);
249 PUTPROP(props, "http.proxyHost", sprops->httpHost);
250 PUTPROP(props, "http.proxyPort", sprops->httpPort);
254 PUTPROP(props, "https.proxyHost", sprops->httpsHost);
255 PUTPROP(props, "https.proxyPort", sprops->httpsPort);
259 PUTPROP(props, "ftp.proxyHost", sprops->ftpHost);
260 PUTPROP(props, "ftp.proxyPort", sprops->ftpPort);
264 PUTPROP(props, "socksProxyHost", sprops->socksHost);
265 PUTPROP(props, "socksProxyPort", sprops->socksPort);
270 PUTPROP(props, "gopherProxySet", "true");
271 PUTPROP(props, "gopherProxyHost", sprops->gopherHost);
272 PUTPROP(props, "gopherProxyPort", sprops->gopherPort);
274 PUTPROP(props, "gopherProxySet", "false");
280 PUTPROP(props, "http.nonProxyHosts", sprops->exceptionList);
282 PUTPROP(props, "ftp.nonProxyHosts", sprops->exceptionList);
283 PUTPROP(props, "socksNonProxyHosts", sprops->exceptionList);
302 PUTPROP(props, "java.awt.printerjob", sprops->printerJob);
312 PUTPROP(props, "sun.arch.data.model", \
316 PUTPROP(props, "sun.os.patch.level", \
330 PUTPROP(props, "java.awt.graphicsenv", sprops->graphics_env);
332 PUTPROP_ForPlatformNString(props,
336 PUTPROP_ForPlatformNString(props, "java.io.tmpdir", sprops->tmp_dir);
338 PUTPROP_ForPlatformNString(props, "user.name", sprops->user_name);
339 PUTPROP_ForPlatformNString(props, "user.home", sprops->user_home);
341 PUTPROP(props, "user.timezone", sprops->timezone);
343 PUTPROP_ForPlatformNString(props, "user.dir", sprops->user_dir);
349 PUTPROP(props, "sun.desktop", sprops->desktop);
357 REMOVEPROP(props, "user.language");
358 REMOVEPROP(props, "user.script");
359 REMOVEPROP(props, "user.country");
360 REMOVEPROP(props, "user.variant");
361 REMOVEPROP(props, "file.encoding");
363 ret = JVM_InitProperties(env, props);
366 GETPROP(props, "sun.locale.formatasdefault", jVMVal);
375 fillI18nProps(env, props, "user.language", sprops->display_language,
377 fillI18nProps(env, props, "user.script",
379 fillI18nProps(env, props, "user.country",
381 fillI18nProps(env, props, "user.variant",
383 GETPROP(props, "file.encoding", jVMVal);
390 PUTPROP(props, "file.encoding", sprops->encoding);
393 PUTPROP(props, "file.encoding", sprops->encoding);
395 PUTPROP(props, "file.encoding", sprops->sun_jnu_encoding);