Searched refs:level (Results 1 - 25 of 34) sorted by relevance

12

/libcore/ojluni/src/main/java/sun/nio/ch/
H A DOptionKey.java29 * Represents the level/name of a socket option
33 private int level; field in class:OptionKey
36 OptionKey(int level, int name) { argument
37 this.level = level;
41 int level() { method in class:OptionKey
42 return level;
/libcore/ojluni/src/main/java/sun/util/logging/
H A DLoggingProxy.java42 public boolean isLoggable(Object logger, Object level); argument
44 public void log(Object logger, Object level, String msg); argument
46 public void log(Object logger, Object level, String msg, Throwable t); argument
48 public void log(Object logger, Object level, String msg, Object... params); argument
62 public String getLevelName(Object level); argument
64 public int getLevelValue(Object level); argument
H A DPlatformLogger.java67 * global logging level = INFO
69 * java.util.logging.ConsoleHandler.level = INFO
135 static Level valueOf(int level) { argument
136 switch (level) {
149 // return the nearest Level value >= the given level,
150 // for level > SEVERE, return SEVERE and exclude OFF
151 int i = Arrays.binarySearch(LEVEL_VALUES, 0, LEVEL_VALUES.length-2, level);
228 JavaLoggerProxy jlp = new JavaLoggerProxy(lp.name, lp.level);
249 * (i.e. its level is OFF).
263 * Returns true if a message of the given level woul
266 isLoggable(Level level) argument
282 public Level level() { method in class:PlatformLogger
422 doLog(Level level, String msg) argument
423 doLog(Level level, String msg, Throwable thrown) argument
424 doLog(Level level, String msg, Object... params) argument
426 isLoggable(Level level) argument
440 volatile Level level; // current level set for this node (may be null) field in class:PlatformLogger.DefaultLoggerProxy
464 doLog(Level level, String msg) argument
470 doLog(Level level, String msg, Throwable thrown) argument
476 doLog(Level level, String msg, Object... params) argument
483 isLoggable(Level level) argument
489 deriveEffectiveLevel(Level level) argument
522 format(Level level, String msg, Throwable thrown) argument
606 JavaLoggerProxy(String name, Level level) argument
615 doLog(Level level, String msg) argument
619 doLog(Level level, String msg, Throwable t) argument
623 doLog(Level level, String msg, Object... params) argument
657 setLevel(Level level) argument
661 isLoggable(Level level) argument
[all...]
H A DLoggingSupport.java113 public static boolean isLoggable(Object logger, Object level) { argument
115 return proxy.isLoggable(logger,level);
118 public static void log(Object logger, Object level, String msg) { argument
120 proxy.log(logger, level, msg);
123 public static void log(Object logger, Object level, String msg, Throwable t) { argument
125 proxy.log(logger, level, msg, t);
128 public static void log(Object logger, Object level, String msg, Object... params) { argument
130 proxy.log(logger, level, msg, params);
138 public static String getLevelName(Object level) { argument
140 return proxy.getLevelName(level);
143 getLevelValue(Object level) argument
[all...]
/libcore/ojluni/src/main/java/java/util/logging/
H A DLoggingProxyImpl.java55 public boolean isLoggable(Object logger, Object level) { argument
56 return ((Logger) logger).isLoggable((Level) level);
60 public void log(Object logger, Object level, String msg) { argument
61 ((Logger) logger).log((Level) level, msg);
65 public void log(Object logger, Object level, String msg, Throwable t) { argument
66 ((Logger) logger).log((Level) level, msg, t);
70 public void log(Object logger, Object level, String msg, Object... params) { argument
71 ((Logger) logger).log((Level) level, msg, params);
96 Level level = Level.findLevel(levelName);
97 if (level
104 getLevelName(Object level) argument
109 getLevelValue(Object level) argument
[all...]
H A DLogging.java74 Level level = l.getLevel();
75 if (level == null) {
78 return level.getLevelName();
93 Level level = null;
96 level = Level.findLevel(levelName);
97 if (level == null) {
98 throw new IllegalArgumentException("Unknown level \"" + levelName + "\"");
102 logger.setLevel(level);
H A DLevel.java38 * at a given level also enables logging at all higher levels.
53 * In addition there is a level OFF that can be used to turn
54 * off logging, and a level ALL that can be used to enable
59 * take care to chose unique integer level values and to ensure that
70 * @serial The non-localized name of the level.
75 * @serial The integer value of the level.
80 * @serial The resource bundle name to be used in localizing the level name.
84 // localized level name
89 * OFF is a special level that can be used to turn off logging.
90 * This level i
[all...]
H A DLogger.java68 * level is set to <tt>null</tt>, then its effective level is inherited
72 * The log level can be configured based on the properties from the
75 * by calls on the Logger.setLevel method. If a logger's level is
77 * logger that has <tt>null</tt> as its level will inherit its
78 * effective level from its parent.
81 * check of the request level (e.g., SEVERE or FINE) against the
82 * effective log level of the logger. If the request level is
83 * lower than the log level, th
788 log(Level level, String msg) argument
810 log(Level level, Supplier<String> msgSupplier) argument
829 log(Level level, String msg, Object param1) argument
850 log(Level level, String msg, Object params[]) argument
875 log(Level level, String msg, Throwable thrown) argument
903 log(Level level, Throwable thrown, Supplier<String> msgSupplier) argument
929 logp(Level level, String sourceClass, String sourceMethod, String msg) argument
955 logp(Level level, String sourceClass, String sourceMethod, Supplier<String> msgSupplier) argument
980 logp(Level level, String sourceClass, String sourceMethod, String msg, Object param1) argument
1007 logp(Level level, String sourceClass, String sourceMethod, String msg, Object params[]) argument
1038 logp(Level level, String sourceClass, String sourceMethod, String msg, Throwable thrown) argument
1072 logp(Level level, String sourceClass, String sourceMethod, Throwable thrown, Supplier<String> msgSupplier) argument
1134 logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg) argument
1169 logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Object param1) argument
1206 logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Object params[]) argument
1239 logrb(Level level, String sourceClass, String sourceMethod, ResourceBundle bundle, String msg, Object... params) argument
1282 logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Throwable thrown) argument
1320 logrb(Level level, String sourceClass, String sourceMethod, ResourceBundle bundle, String msg, Throwable thrown) argument
1724 isLoggable(Level level) argument
[all...]
H A DLogRecord.java90 * @serial Logging message level
92 private Level level; field in class:LogRecord
161 * Construct a LogRecord with the given level and message values.
173 * @param level a logging level value
176 public LogRecord(Level level, String msg) { argument
177 // Make sure level isn't null, by calling random method.
178 level.getClass();
179 this.level = level;
261 setLevel(Level level) argument
[all...]
H A DLogManager.java130 * All properties whose names end with ".level" are assumed to define
131 * log levels for Loggers. Thus "foo.level" defines a log level for
134 * are defined in the properties file. Thus level settings for child
136 * The property name ".level" can be used to set the level for the
755 // Add a logger to this context. This method will only set its level
796 // Apply any initial level defined for the new logger, unless
797 // the logger's level is already initialized
798 Level level
1170 doSetLevel(final Logger logger, final Level level) argument
[all...]
/libcore/dalvik/src/main/java/dalvik/system/
H A DDalvikLogHandler.java44 void publish(Logger source, String tag, Level level, String message); argument
/libcore/ojluni/src/main/java/java/util/zip/
H A DDeflater.java88 private int level, strategy; field in class:Deflater
105 * Compression level for no compression.
110 * Compression level for fastest compression.
115 * Compression level for best compression.
120 * Default compression level.
169 * Creates a new compressor using the specified compression level.
173 * @param level the compression level (0-9)
176 public Deflater(int level, boolean nowrap) { argument
177 this.level
189 Deflater(int level) argument
312 setLevel(int level) argument
580 init(int level, int strategy, boolean nowrap) argument
[all...]
/libcore/benchmarks/src/benchmarks/
H A DXmlSerializeBenchmark.java53 int level = 0;
58 while(level > 0 && r.nextDouble() < levelUpChance) {
60 level--;
64 level++;
67 level++;
72 level--;
/libcore/luni/src/main/java/libcore/io/
H A DOs.java90 public int getsockoptByte(FileDescriptor fd, int level, int option) throws ErrnoException; argument
91 public InetAddress getsockoptInAddr(FileDescriptor fd, int level, int option) throws ErrnoException; argument
92 public int getsockoptInt(FileDescriptor fd, int level, int option) throws ErrnoException; argument
93 public StructLinger getsockoptLinger(FileDescriptor fd, int level, int option) throws ErrnoException; argument
94 public StructTimeval getsockoptTimeval(FileDescriptor fd, int level, int option) throws ErrnoException; argument
95 public StructUcred getsockoptUcred(FileDescriptor fd, int level, int option) throws ErrnoException; argument
155 public void setsockoptByte(FileDescriptor fd, int level, int option, int value) throws ErrnoException; argument
156 public void setsockoptIfreq(FileDescriptor fd, int level, int option, String value) throws ErrnoException; argument
157 public void setsockoptInt(FileDescriptor fd, int level, int option, int value) throws ErrnoException; argument
158 public void setsockoptIpMreqn(FileDescriptor fd, int level, in argument
159 setsockoptGroupReq(FileDescriptor fd, int level, int option, StructGroupReq value) argument
160 setsockoptLinger(FileDescriptor fd, int level, int option, StructLinger value) argument
161 setsockoptTimeval(FileDescriptor fd, int level, int option, StructTimeval value) argument
[all...]
H A DForwardingOs.java104 public int getsockoptByte(FileDescriptor fd, int level, int option) throws ErrnoException { return os.getsockoptByte(fd, level, option); } argument
105 public InetAddress getsockoptInAddr(FileDescriptor fd, int level, int option) throws ErrnoException { return os.getsockoptInAddr(fd, level, option); } argument
106 public int getsockoptInt(FileDescriptor fd, int level, int option) throws ErrnoException { return os.getsockoptInt(fd, level, option); } argument
107 public StructLinger getsockoptLinger(FileDescriptor fd, int level, int option) throws ErrnoException { return os.getsockoptLinger(fd, level, option); } argument
108 public StructTimeval getsockoptTimeval(FileDescriptor fd, int level, int option) throws ErrnoException { return os.getsockoptTimeval(fd, level, optio argument
109 getsockoptUcred(FileDescriptor fd, int level, int option) argument
168 setsockoptByte(FileDescriptor fd, int level, int option, int value) argument
169 setsockoptIfreq(FileDescriptor fd, int level, int option, String value) argument
170 setsockoptInt(FileDescriptor fd, int level, int option, int value) argument
171 setsockoptIpMreqn(FileDescriptor fd, int level, int option, int value) argument
172 setsockoptGroupReq(FileDescriptor fd, int level, int option, StructGroupReq value) argument
173 setsockoptLinger(FileDescriptor fd, int level, int option, StructLinger value) argument
174 setsockoptTimeval(FileDescriptor fd, int level, int option, StructTimeval value) argument
[all...]
H A DLinux.java95 public native int getsockoptByte(FileDescriptor fd, int level, int option) throws ErrnoException; argument
96 public native InetAddress getsockoptInAddr(FileDescriptor fd, int level, int option) throws ErrnoException; argument
97 public native int getsockoptInt(FileDescriptor fd, int level, int option) throws ErrnoException; argument
98 public native StructLinger getsockoptLinger(FileDescriptor fd, int level, int option) throws ErrnoException; argument
99 public native StructTimeval getsockoptTimeval(FileDescriptor fd, int level, int option) throws ErrnoException; argument
100 public native StructUcred getsockoptUcred(FileDescriptor fd, int level, int option) throws ErrnoException; argument
242 public native void setsockoptByte(FileDescriptor fd, int level, int option, int value) throws ErrnoException; argument
243 public native void setsockoptIfreq(FileDescriptor fd, int level, int option, String value) throws ErrnoException; argument
244 public native void setsockoptInt(FileDescriptor fd, int level, int option, int value) throws ErrnoException; argument
245 public native void setsockoptIpMreqn(FileDescriptor fd, int level, in argument
246 setsockoptGroupReq(FileDescriptor fd, int level, int option, StructGroupReq value) argument
247 setsockoptLinger(FileDescriptor fd, int level, int option, StructLinger value) argument
248 setsockoptTimeval(FileDescriptor fd, int level, int option, StructTimeval value) argument
[all...]
/libcore/luni/src/main/java/android/system/
H A DOs.java29 * Access to low-level system functionality. Most of these are system calls. Most users will want
30 * to use higher-level APIs where available, but this class provides access to the underlying
31 * primitives used to implement the higher-level APIs.
231 /** @hide */ public static int getsockoptByte(FileDescriptor fd, int level, int option) throws ErrnoException { return Libcore.os.getsockoptByte(fd, level, option); } argument
232 /** @hide */ public static InetAddress getsockoptInAddr(FileDescriptor fd, int level, int option) throws ErrnoException { return Libcore.os.getsockoptInAddr(fd, level, option); } argument
233 /** @hide */ public static int getsockoptInt(FileDescriptor fd, int level, int option) throws ErrnoException { return Libcore.os.getsockoptInt(fd, level, option); } argument
234 /** @hide */ public static StructLinger getsockoptLinger(FileDescriptor fd, int level, in argument
235 getsockoptTimeval(FileDescriptor fd, int level, int option) argument
236 getsockoptUcred(FileDescriptor fd, int level, int option) argument
518 setsockoptByte(FileDescriptor fd, int level, int option, int value) argument
519 setsockoptIfreq(FileDescriptor fd, int level, int option, String value) argument
524 setsockoptInt(FileDescriptor fd, int level, int option, int value) argument
526 setsockoptIpMreqn(FileDescriptor fd, int level, int option, int value) argument
527 setsockoptGroupReq(FileDescriptor fd, int level, int option, StructGroupReq value) argument
528 setsockoptLinger(FileDescriptor fd, int level, int option, StructLinger value) argument
529 setsockoptTimeval(FileDescriptor fd, int level, int option, StructTimeval value) argument
[all...]
/libcore/ojluni/src/main/native/
H A Dnet_util_md.c904 * Map the Java level socket option to the platform specific
905 * level and option name.
908 NET_MapSocketOption(jint cmd, int *level, int *optname) {
911 int level;
936 *level = IPPROTO_IPV6;
941 *level = IPPROTO_IPV6;
947 *level = IPPROTO_IPV6;
956 * Map the Java level option to the native level
960 *level
979 NET_GetSockOpt(int fd, int level, int opt, void *result, int *len) argument
1037 NET_SetSockOpt(int fd, int level, int opt, const void *arg, int len) argument
1258 int level = -1; local
[all...]
H A Dnet_util.h182 NET_GetSockOpt(int fd, int level, int opt, void *result, int *len);
185 NET_SetSockOpt(int fd, int level, int opt, const void *arg, int len);
193 NET_MapSocketOption(jint cmd, int *level, int *optname);
196 NET_MapSocketOptionV6(jint cmd, int *level, int *optname);
H A DNet.c279 int level = (domain == AF_INET6) ? IPPROTO_IPV6 : IPPROTO_IP; local
280 if ((setsockopt(fd, level, IP_MULTICAST_ALL, (char*)&arg, sizeof(arg)) < 0) &&
430 jboolean mayNeedConversion, jint level, jint opt)
444 if (level == IPPROTO_IP &&
450 if (level == SOL_SOCKET && opt == SO_LINGER) {
456 n = NET_GetSockOpt(fdval(env, fdo), level, opt, arg, (int*)&arglen);
458 n = getsockopt(fdval(env, fdo), level, opt, arg, &arglen);
467 if (level == IPPROTO_IP &&
473 if (level == SOL_SOCKET && opt == SO_LINGER)
481 jboolean mayNeedConversion, jint level,
429 Java_sun_nio_ch_Net_getIntOption0(JNIEnv *env, jclass clazz, jobject fdo, jboolean mayNeedConversion, jint level, jint opt) argument
480 Java_sun_nio_ch_Net_setIntOption0(JNIEnv *env, jclass clazz, jobject fdo, jboolean mayNeedConversion, jint level, jint opt, jint arg, jboolean isIPv6) argument
[all...]
H A Djava_util_zip_Deflater.c53 levelID = (*env)->GetFieldID(env, cls, "level", "I");
64 Deflater_init(JNIEnv *env, jclass cls, jint level, argument
74 int ret = deflateInit2(strm, level, Z_DEFLATED,
137 int level = (*env)->GetIntField(env, this, levelID); local
158 res = deflateParams(strm, level, strategy);
/libcore/ojluni/src/main/java/java/nio/charset/
H A DCharset.java282 String level = bugLevel;
283 if (level == null) {
286 bugLevel = level = AccessController.doPrivileged(
289 return level.equals(bl);
485 // instance is stored in the level 1 cache. We convey a hint to this effect to the VM by putting
486 // the level 1 cache miss code in a separate method. Since charsetName is not necessarily in
488 // instance in a map for level 2 cache.
/libcore/ojluni/src/main/java/java/sql/
H A DConnection.java97 * and have a concurrency level of <code>CONCUR_READ_ONLY</code>.
128 * and have a concurrency level of <code>CONCUR_READ_ONLY</code>.
160 * and have a concurrency level of <code>CONCUR_READ_ONLY</code>.
386 * This level allows a row changed by one transaction to be read
396 * reads can occur. This level only prohibits a transaction
404 * reads can occur. This level prohibits a transaction from
416 * This level includes the prohibitions in
427 * Attempts to change the transaction isolation level for this
435 * @param level one of the following <code>Connection</code> constants:
449 void setTransactionIsolation(int level) throw argument
[all...]
/libcore/xml/src/main/java/org/xmlpull/v1/sax2/
H A DDriver.java364 int level = pp.getDepth() - 1;
374 (level > depth) ? pp.getNamespaceCount(depth) : 0;
401 //++level;
412 //--level;
429 (level > depth) ? pp.getNamespaceCount(pp.getDepth()) : 0;
450 } while(pp.getDepth() > level);
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DConcurrentSkipListMap.java237 * Skip lists add indexing to this scheme, so that the base-level
239 * or deleted -- usually base level traversals only traverse a few
268 * the base-level action, to add or remove index nodes. This adds
282 * do, half have one level, a quarter have two, and so on (see
287 * Changing the level of the index (i.e, the height of the
289 * level/height of one. Creation of an index with height greater
290 * than the current level adds a level to the head index by
295 * reduce and "lose" a level just as it is about to contain an
313 * only, returning a base-level predecesso
635 final int level; field in class:ConcurrentSkipListMap.HeadIndex
636 HeadIndex(Node<K,V> node, Index<K,V> down, Index<K,V> right, int level) argument
[all...]

Completed in 445 milliseconds

12