/libcore/ojluni/src/main/java/java/util/concurrent/atomic/ |
D | LongAccumulator.java | 85 private final long identity; field in LongAccumulator 94 long identity) { in LongAccumulator() argument 96 base = this.identity = identity; in LongAccumulator() 148 base = identity; in reset() 152 a.reset(identity); in reset() 169 base = identity; in getThenReset() 174 a.reset(identity); in getThenReset() 247 private final long identity; field in LongAccumulator.SerializationProxy 251 long identity) { in SerializationProxy() argument 254 this.identity = identity; in SerializationProxy() [all …]
|
D | DoubleAccumulator.java | 83 private final long identity; // use long representation field in DoubleAccumulator 92 double identity) { in DoubleAccumulator() argument 94 base = this.identity = Double.doubleToRawLongBits(identity); in DoubleAccumulator() 151 base = identity; in reset() 155 a.reset(identity); in reset() 172 base = identity; in getThenReset() 177 a.reset(identity); in getThenReset() 252 private final long identity; field in DoubleAccumulator.SerializationProxy 256 long identity) { in SerializationProxy() argument 259 this.identity = identity; in SerializationProxy() [all …]
|
D | Striped64.java | 133 final void reset(long identity) { in reset() argument 134 U.putLongVolatile(this, VALUE, identity); in reset()
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
D | SystemScope.java | 102 public synchronized void addIdentity(Identity identity) throws KeyManagementException { in addIdentity() argument 103 if (identity == null) { in addIdentity() 107 String name = identity.getName(); in addIdentity() 112 PublicKey key = identity.getPublicKey(); in addIdentity() 117 names.put(name, identity); in addIdentity() 119 keys.put(key, identity); in addIdentity() 126 public synchronized void removeIdentity(Identity identity) in removeIdentity() argument 130 if (identity == null) { in removeIdentity() 134 String name = identity.getName(); in removeIdentity() 142 PublicKey key = identity.getPublicKey(); in removeIdentity()
|
D | IdentityStub.java | 81 public boolean identityEquals(Identity identity) { in identityEquals() argument 82 return super.identityEquals(identity); in identityEquals()
|
D | IdentityScopeStub.java | 94 public void addIdentity(Identity identity) throws KeyManagementException { in addIdentity() argument 103 public void removeIdentity(Identity identity) throws KeyManagementException { in removeIdentity() argument
|
/libcore/ojluni/src/main/java/java/security/ |
D | Identity.java | 339 public final boolean equals(Object identity) { in equals() argument 341 if (identity == this) { in equals() 345 if (identity instanceof Identity) { in equals() 346 Identity i = (Identity)identity; in equals() 369 protected boolean identityEquals(Identity identity) { in identityEquals() argument 370 if (!name.equalsIgnoreCase(identity.name)) in identityEquals() 373 if ((publicKey == null) ^ (identity.publicKey == null)) in identityEquals() 376 if (publicKey != null && identity.publicKey != null) in identityEquals() 377 if (!publicKey.equals(identity.publicKey)) in identityEquals()
|
D | IdentityScope.java | 221 public abstract void addIdentity(Identity identity) in addIdentity() argument 232 public abstract void removeIdentity(Identity identity) in removeIdentity() argument
|
/libcore/luni/src/test/java/libcore/java/util/function/ |
D | DoubleUnaryOperatorTest.java | 28 assertEquals(1.0d, DoubleUnaryOperator.identity().applyAsDouble(1.0d)); in testIdentity() 29 assertEquals(Double.NaN, DoubleUnaryOperator.identity().applyAsDouble(Double.NaN)); in testIdentity() 31 DoubleUnaryOperator.identity().applyAsDouble(Double.NEGATIVE_INFINITY)); in testIdentity() 33 DoubleUnaryOperator.identity().applyAsDouble(Double.MAX_VALUE)); in testIdentity()
|
D | UnaryOperatorTest.java | 27 assertSame(arg, UnaryOperator.identity().apply(arg)); in testIdentity() 28 assertNull(null, UnaryOperator.identity().apply(null)); in testIdentity()
|
D | IntUnaryOperatorTest.java | 26 assertEquals(1, IntUnaryOperator.identity().applyAsInt(1)); in testIdentity() 27 assertEquals(Integer.MAX_VALUE, IntUnaryOperator.identity().applyAsInt(Integer.MAX_VALUE)); in testIdentity()
|
D | LongUnaryOperatorTest.java | 26 assertEquals(1L, LongUnaryOperator.identity().applyAsLong(1L)); in testIdentity() 27 assertEquals(Long.MAX_VALUE, LongUnaryOperator.identity().applyAsLong(Long.MAX_VALUE)); in testIdentity()
|
D | FunctionTest.java | 27 assertSame(o, Function.identity().apply(o)); in testIdentity() 28 assertNull(Function.identity().apply(null)); in testIdentity()
|
/libcore/luni/src/test/java/libcore/java/lang/invoke/ |
D | MethodHandleCombinersTest.java | 472 MethodHandle identity = MethodHandles.identity(boolean.class); in testIdentity() local 473 boolean value = (boolean) identity.invoke(false); in testIdentity() 478 MethodHandle identity = MethodHandles.identity(byte.class); in testIdentity() local 479 byte value = (byte) identity.invoke((byte) 0x8); in testIdentity() 484 MethodHandle identity = MethodHandles.identity(char.class); in testIdentity() local 485 char value = (char) identity.invoke((char) -56); in testIdentity() 490 MethodHandle identity = MethodHandles.identity(short.class); in testIdentity() local 491 short value = (short) identity.invoke((short) -59); in testIdentity() 496 MethodHandle identity = MethodHandles.identity(int.class); in testIdentity() local 497 int value = (int) identity.invoke(52); in testIdentity() [all …]
|
/libcore/ojluni/src/main/java/java/util/function/ |
D | UnaryOperator.java | 49 static <T> UnaryOperator<T> identity() { in identity() method
|
D | IntUnaryOperator.java | 92 static IntUnaryOperator identity() { in identity() method
|
D | DoubleUnaryOperator.java | 92 static DoubleUnaryOperator identity() { in identity() method
|
D | LongUnaryOperator.java | 92 static LongUnaryOperator identity() { in identity() method
|
D | Function.java | 97 static <T> Function<T, T> identity() { in identity() method
|
/libcore/ojluni/annotations/hiddenapi/java/lang/invoke/ |
D | MethodHandles.java | 213 public static java.lang.invoke.MethodHandle identity(java.lang.Class<?> type) { in identity() method in MethodHandles 217 public static byte identity(byte val) { in identity() method in MethodHandles 221 public static boolean identity(boolean val) { in identity() method in MethodHandles 225 public static char identity(char val) { in identity() method in MethodHandles 229 public static short identity(short val) { in identity() method in MethodHandles 233 public static int identity(int val) { in identity() method in MethodHandles 237 public static long identity(long val) { in identity() method in MethodHandles 241 public static float identity(float val) { in identity() method in MethodHandles 245 public static double identity(double val) { in identity() method in MethodHandles
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OptionalTest.java | 117 Function<String, String> identity = (String s) -> { reference.set(s); return s; }; in testMap() local 120 Optional<String> mapped = optionalFoo.map(identity); in testMap() 138 Function<String, Optional<String>> identity = in testFlatMap() local 143 Optional<String> mapped = optionalFoo.flatMap(identity); in testFlatMap()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | TabulatorsTest.java | 209 private final U identity; field in TabulatorsTest.ReduceAssertion 213 ReduceAssertion(U identity, Function<T, U> mapper, BinaryOperator<U> reducer) { in ReduceAssertion() argument 214 this.identity = identity; in ReduceAssertion() 226 assertEquals(value, identity); in assertValue() 534 … new ReduceAssertion<>(0, LambdaTestHelpers.identity(), Integer::sum))); 539 … new ReduceAssertion<>(0, LambdaTestHelpers.identity(), Integer::sum))); 545 … new ReduceAssertion<>(0, LambdaTestHelpers.identity(), Integer::sum))); 550 … new ReduceAssertion<>(0, LambdaTestHelpers.identity(), Integer::sum))); 603 … new ReduceAssertion<>(0, LambdaTestHelpers.identity(), Integer::sum)));
|
D | SequentialOpTest.java | 54 Function<Integer, Integer> id = LambdaTestHelpers.identity(); in testLazy() 100 Function<Integer, Integer> id = LambdaTestHelpers.identity(); in testMixedSeqPar()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | ReduceOps.java | 245 makeInt(int identity, IntBinaryOperator operator) { 253 state = identity; 381 makeLong(long identity, LongBinaryOperator operator) { 389 state = identity; 517 makeDouble(double identity, DoubleBinaryOperator operator) { 525 state = identity;
|
/libcore/tools/docs/crypto/src/java/libcore/java/security/ |
D | ListProviders.java | 171 …@Override public SecretKey getKey(String identityHint, String identity, Socket socket) { return nu… in getKey() argument 172 …@Override public SecretKey getKey(String identityHint, String identity, SSLEngine engine) { return… in getKey() argument
|