Home
last modified time | relevance | path

Searched refs:arg (Results 1 – 25 of 47) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/util/function/
DDoublePredicateTest.java27 double arg = 5.0d; in testAnd() local
37 x -> { alwaysTrueInvoked.set(true); assertEquals(x, arg); return true; }; in testAnd()
39 x -> { alwaysTrue2Invoked.set(true); assertEquals(x, arg); return true; }; in testAnd()
41 x -> { alwaysFalseInvoked.set(true); assertEquals(x, arg); return false; }; in testAnd()
43 x -> { alwaysFalse2Invoked.set(true); assertEquals(x, arg); return false; }; in testAnd()
47 assertTrue(alwaysTrue.and(alwaysTrue2).test(arg)); in testAnd()
52 assertFalse(alwaysTrue.and(alwaysFalse).test(arg)); in testAnd()
57 assertFalse(alwaysFalse.and(alwaysFalse2).test(arg)); in testAnd()
62 assertFalse(alwaysFalse.and(alwaysTrue).test(arg)); in testAnd()
75 double arg = 5.0d; in testNegate() local
[all …]
DIntPredicateTest.java27 int arg = 5; in testAnd() local
37 x -> { alwaysTrueInvoked.set(true); assertEquals(x, arg); return true; }; in testAnd()
39 x -> { alwaysTrue2Invoked.set(true); assertEquals(x, arg); return true; }; in testAnd()
41 x -> { alwaysFalseInvoked.set(true); assertEquals(x, arg); return false; }; in testAnd()
43 x -> { alwaysFalse2Invoked.set(true); assertEquals(x, arg); return false; }; in testAnd()
47 assertTrue(alwaysTrue.and(alwaysTrue2).test(arg)); in testAnd()
52 assertFalse(alwaysTrue.and(alwaysFalse).test(arg)); in testAnd()
57 assertFalse(alwaysFalse.and(alwaysFalse2).test(arg)); in testAnd()
62 assertFalse(alwaysFalse.and(alwaysTrue).test(arg)); in testAnd()
75 int arg = 5; in testNegate() local
[all …]
DPredicateTest.java27 Object arg = new Object(); in testAnd() local
37 x -> { alwaysTrueInvoked.set(true); assertSame(x, arg); return true; }; in testAnd()
39 x -> { alwaysTrue2Invoked.set(true); assertSame(x, arg); return true; }; in testAnd()
41 x -> { alwaysFalseInvoked.set(true); assertSame(x, arg); return false; }; in testAnd()
43 x -> { alwaysFalse2Invoked.set(true); assertSame(x, arg); return false; }; in testAnd()
47 assertTrue(alwaysTrue.and(alwaysTrue2).test(arg)); in testAnd()
52 assertFalse(alwaysTrue.and(alwaysFalse).test(arg)); in testAnd()
57 assertFalse(alwaysFalse.and(alwaysFalse2).test(arg)); in testAnd()
62 assertFalse(alwaysFalse.and(alwaysTrue).test(arg)); in testAnd()
67 Object arg = new Object(); in testAnd_null() local
[all …]
DUnaryOperatorTest.java26 Object arg = new Object(); in testIdentity() local
27 assertSame(arg, UnaryOperator.identity().apply(arg)); in testIdentity()
DLongPredicateTest.java69 long arg = 5L; in testNegate() local
70 LongPredicate alwaysTrue = x -> { assertEquals(x, arg); return true; }; in testNegate()
71 assertFalse(alwaysTrue.negate().test(arg)); in testNegate()
73 LongPredicate alwaysFalse = x -> { assertEquals(x, arg); return false; }; in testNegate()
74 assertTrue(alwaysFalse.negate().test(arg)); in testNegate()
/libcore/ojluni/src/main/java/java/util/
DIllegalFormatConversionException.java43 private Class<?> arg; field in IllegalFormatConversionException
55 public IllegalFormatConversionException(char c, Class<?> arg) { in IllegalFormatConversionException() argument
56 if (arg == null) in IllegalFormatConversionException()
59 this.arg = arg; in IllegalFormatConversionException()
77 return arg; in getArgumentClass()
82 return String.format("%c != %s", c, arg.getName()); in getMessage()
DFormatter.java2674 void print(Object arg, Locale l) throws IOException; in print() argument
2682 public void print(Object arg, Locale l) in print() argument
2830 public void print(Object arg, Locale l) throws IOException { in print() argument
2832 printDateTime(arg, l); in print()
2839 printInteger(arg, l); in print()
2845 printFloat(arg, l); in print()
2849 printCharacter(arg); in print()
2852 printBoolean(arg); in print()
2855 printString(arg, l); in print()
2858 printHashCode(arg); in print()
[all …]
DObservable.java132 public void notifyObservers(Object arg) { in notifyObservers() argument
163 ((Observer)arrLocal[i]).update(this, arg); in notifyObservers()
/libcore/luni/src/test/java/tests/org/w3c/dom/
DSetNamedItemNS.java81 Node arg; in testSetNamedItemNS1() local
89 arg = anotherMap.getNamedItemNS("http://www.netzero.com", "domestic"); in testSetNamedItemNS1()
96 map.setNamedItemNS(arg); in testSetNamedItemNS1()
108 Node arg; in testSetNamedItemNS2() local
115 arg = anotherDoc.createAttributeNS(namespaceURI, qualifiedName); in testSetNamedItemNS2()
116 arg.setNodeValue("Maybe"); in testSetNamedItemNS2()
124 attributes.setNamedItemNS(arg); in testSetNamedItemNS2()
135 Node arg; in testSetNamedItemNS3() local
143 arg = doc.createAttributeNS(namespaceURI, qualifiedName); in testSetNamedItemNS3()
144 arg.setNodeValue("newValue"); in testSetNamedItemNS3()
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DAbstractQueuedLongSynchronizer.java423 final boolean acquireQueued(final Node node, long arg) { in acquireQueued() argument
428 if (p == head && tryAcquire(arg)) { in acquireQueued()
447 private void doAcquireInterruptibly(long arg) in doAcquireInterruptibly() argument
453 if (p == head && tryAcquire(arg)) { in doAcquireInterruptibly()
475 private boolean doAcquireNanos(long arg, long nanosTimeout) in doAcquireNanos() argument
484 if (p == head && tryAcquire(arg)) { in doAcquireNanos()
510 private void doAcquireShared(long arg) { in doAcquireShared() argument
517 long r = tryAcquireShared(arg); in doAcquireShared()
540 private void doAcquireSharedInterruptibly(long arg) in doAcquireSharedInterruptibly() argument
547 long r = tryAcquireShared(arg); in doAcquireSharedInterruptibly()
[all …]
DAbstractQueuedSynchronizer.java891 final boolean acquireQueued(final Node node, int arg) { in acquireQueued() argument
896 if (p == head && tryAcquire(arg)) { in acquireQueued()
915 private void doAcquireInterruptibly(int arg) in doAcquireInterruptibly() argument
921 if (p == head && tryAcquire(arg)) { in doAcquireInterruptibly()
943 private boolean doAcquireNanos(int arg, long nanosTimeout) in doAcquireNanos() argument
952 if (p == head && tryAcquire(arg)) { in doAcquireNanos()
978 private void doAcquireShared(int arg) { in doAcquireShared() argument
985 int r = tryAcquireShared(arg); in doAcquireShared()
1008 private void doAcquireSharedInterruptibly(int arg) in doAcquireSharedInterruptibly() argument
1015 int r = tryAcquireShared(arg); in doAcquireSharedInterruptibly()
[all …]
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
DCharacterDataImpl.java42 public void appendData(String arg) throws DOMException { in appendData() argument
43 buffer.append(arg); in appendData()
70 public void insertData(int offset, String arg) throws DOMException { in insertData() argument
72 buffer.insert(offset, arg); in insertData()
78 public void replaceData(int offset, int count, String arg) in replaceData() argument
81 buffer.replace(offset, offset + count, arg); in replaceData()
/libcore/luni/src/main/native/
Dcbigint.cpp229 uint64_t arg; in simpleAppendDecimalDigitHighPrecision() local
235 arg = LOW_IN_U64 (arg1[index]); in simpleAppendDecimalDigitHighPrecision()
236 digit = HIGH_IN_U64 (digit) + TIMES_TEN (arg); in simpleAppendDecimalDigitHighPrecision()
239 arg = HIGH_IN_U64 (arg1[index]); in simpleAppendDecimalDigitHighPrecision()
240 digit = HIGH_IN_U64 (digit) + TIMES_TEN (arg); in simpleAppendDecimalDigitHighPrecision()
370 highestSetBitHighPrecision (uint64_t * arg, int32_t length) in highestSetBitHighPrecision() argument
376 highBit = highestSetBit (arg + length); in highestSetBitHighPrecision()
385 lowestSetBitHighPrecision (uint64_t * arg, int32_t length) in lowestSetBitHighPrecision() argument
391 lowBit = lowestSetBit (arg + index); in lowestSetBitHighPrecision()
427 toDoubleHighPrecision (uint64_t * arg, int32_t length) in toDoubleHighPrecision() argument
[all …]
/libcore/dom/src/test/java/org/w3c/domts/level2/core/
DsetNamedItemNS03.java72 Node arg; in runTest() local
80 arg = doc.createAttributeNS(namespaceURI, qualifiedName); in runTest()
81 arg.setNodeValue("newValue"); in runTest()
85 setNode = attributes.setNamedItemNS(arg); in runTest()
DsetNamedItemNS05.java72 Node arg; in runTest() local
79 arg = doc.createAttributeNS(namespaceURI, qualifiedName); in runTest()
80 arg.setNodeValue("newValue"); in runTest()
84 retnode = attributes.setNamedItemNS(arg); in runTest()
DsetNamedItemNS02.java76 Node arg; in runTest() local
83 arg = anotherDoc.createAttributeNS(namespaceURI, qualifiedName); in runTest()
84 arg.setNodeValue("Maybe"); in runTest()
92 setNode = attributes.setNamedItemNS(arg); in runTest()
DsetNamedItemNS01.java81 Node arg; in runTest() local
89 arg = anotherMap.getNamedItemNS("http://www.netzero.com", "domestic"); in runTest()
96 setNode = map.setNamedItemNS(arg); in runTest()
DsetNamedItemNS04.java87 Node arg; in runTest() local
105 arg = attributes.getNamedItemNS(namespaceURI, localName); in runTest()
110 setNode = attributes.setNamedItemNS(arg); in runTest()
/libcore/luni/src/main/java/org/w3c/dom/
DCharacterData.java93 public void appendData(String arg) in appendData() argument
107 String arg) in insertData() argument
150 String arg) in replaceData() argument
DNamedNodeMap.java65 public Node setNamedItem(Node arg) in setNamedItem() argument
153 public Node setNamedItemNS(Node arg) in setNamedItemNS() argument
/libcore/ojluni/src/main/native/
DNet.c258 int arg = 0; in Java_sun_nio_ch_Net_socket0() local
259 if (setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, (char*)&arg, in Java_sun_nio_ch_Net_socket0()
271 int arg = 1; in Java_sun_nio_ch_Net_socket0() local
272 if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (char*)&arg, in Java_sun_nio_ch_Net_socket0()
273 sizeof(arg)) < 0) { in Java_sun_nio_ch_Net_socket0()
284 int arg = 0; in Java_sun_nio_ch_Net_socket0() local
286 if ((setsockopt(fd, level, IP_MULTICAST_ALL, (char*)&arg, sizeof(arg)) < 0) && in Java_sun_nio_ch_Net_socket0()
300 int arg = 1; in Java_sun_nio_ch_Net_socket0() local
301 if (setsockopt(fd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, &arg, in Java_sun_nio_ch_Net_socket0()
302 sizeof(arg)) < 0) { in Java_sun_nio_ch_Net_socket0()
[all …]
Dnet_util_md.c1037 NET_SetSockOpt(int fd, int level, int opt, const void *arg, in NET_SetSockOpt() argument
1090 arg, len) < 0) { in NET_SetSockOpt()
1096 iptos = (int *)arg; in NET_SetSockOpt()
1114 ret = setsockopt(fd, level, opt, arg, len); in NET_SetSockOpt()
1152 bufsize = (int *)arg; in NET_SetSockOpt()
1168 int *bufsize = (int *)arg; in NET_SetSockOpt()
1205 bufsize = (int *)arg; in NET_SetSockOpt()
1233 setsockopt(fd, level, SO_REUSEPORT, arg, len); in NET_SetSockOpt()
1239 return setsockopt(fd, level, opt, arg, len); in NET_SetSockOpt()
1289 int arg, len; in NET_Bind() local
[all …]
/libcore/ojluni/src/main/java/sun/misc/
DMessageUtils.java42 public static String subst(String patt, String arg) { in subst() argument
43 String args[] = { arg }; in subst()
81 public static String substProp(String propName, String arg) { in substProp() argument
82 return subst(System.getProperty(propName), arg); in substProp()
/libcore/ojluni/src/main/java/java/lang/
DProcessImpl.java80 for (byte[] arg : args) { in start()
81 System.arraycopy(arg, 0, argBlock, i, arg.length); in start()
82 i += arg.length + 1; in start()
/libcore/ojluni/src/main/java/java/text/
DMessageFormat.java1262 String arg = null; in subformat() local
1265 arg = "null"; in subformat()
1269 arg = formats[i].format(obj); in subformat()
1270 if (arg.indexOf('{') >= 0) { in subformat()
1271 subFormatter = new MessageFormat(arg, locale); in subformat()
1273 arg = null; in subformat()
1284 arg = (String) obj; in subformat()
1287 arg = obj.toString(); in subformat()
1288 if (arg == null) arg = "null"; in subformat()
1316 arg = null; in subformat()
[all …]

12