Searched refs:identity (Results 1 - 25 of 43) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/util/function/
H A DUnaryOperatorTest.java27 assertSame(arg, UnaryOperator.identity().apply(arg));
28 assertNull(null, UnaryOperator.identity().apply(null));
H A DDoubleUnaryOperatorTest.java28 assertEquals(1.0d, DoubleUnaryOperator.identity().applyAsDouble(1.0d));
29 assertEquals(Double.NaN, DoubleUnaryOperator.identity().applyAsDouble(Double.NaN));
31 DoubleUnaryOperator.identity().applyAsDouble(Double.NEGATIVE_INFINITY));
33 DoubleUnaryOperator.identity().applyAsDouble(Double.MAX_VALUE));
H A DIntUnaryOperatorTest.java26 assertEquals(1, IntUnaryOperator.identity().applyAsInt(1));
27 assertEquals(Integer.MAX_VALUE, IntUnaryOperator.identity().applyAsInt(Integer.MAX_VALUE));
H A DFunctionTest.java27 assertSame(o, Function.identity().apply(o));
28 assertNull(Function.identity().apply(null));
H A DLongUnaryOperatorTest.java26 assertEquals(1L, LongUnaryOperator.identity().applyAsLong(1L));
27 assertEquals(Long.MAX_VALUE, LongUnaryOperator.identity().applyAsLong(Long.MAX_VALUE));
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
H A DDoubleAccumulator.java60 * Double.NEGATIVE_INFINITY} as the identity. The order of
83 private final long identity; // use long representation field in class:DoubleAccumulator
87 * and identity element.
89 * @param identity identity (initial value) for the accumulator function
92 double identity) {
94 base = this.identity = Double.doubleToRawLongBits(identity);
142 * Resets variables maintaining updates to the identity value.
151 base = identity;
91 DoubleAccumulator(DoubleBinaryOperator accumulatorFunction, double identity) argument
252 private final long identity; field in class:DoubleAccumulator.SerializationProxy
254 SerializationProxy(double value, DoubleBinaryOperator function, long identity) argument
[all...]
H A DLongAccumulator.java66 * Long.MIN_VALUE} as the identity.
85 private final long identity; field in class:LongAccumulator
89 * and identity element.
91 * @param identity identity (initial value) for the accumulator function
94 long identity) {
96 base = this.identity = identity;
139 * Resets variables maintaining updates to the identity value.
148 base = identity;
93 LongAccumulator(LongBinaryOperator accumulatorFunction, long identity) argument
247 private final long identity; field in class:LongAccumulator.SerializationProxy
249 SerializationProxy(long value, LongBinaryOperator function, long identity) argument
[all...]
H A DStriped64.java132 final void reset(long identity) { argument
133 U.putLongVolatile(this, VALUE, identity);
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DSystemScope.java45 // Identities hash: key is the identity name
102 public synchronized void addIdentity(Identity identity) throws KeyManagementException { argument
103 if (identity == null) {
104 throw new NullPointerException("identity == null");
107 String name = identity.getName();
112 PublicKey key = identity.getPublicKey();
117 names.put(name, identity);
119 keys.put(key, identity);
126 public synchronized void removeIdentity(Identity identity) argument
130 if (identity
[all...]
H A DIdentityStub.java81 public boolean identityEquals(Identity identity) { argument
82 return super.identityEquals(identity);
H A DIdentityScopeStub.java94 public void addIdentity(Identity identity) throws KeyManagementException { argument
103 public void removeIdentity(Identity identity) throws KeyManagementException { argument
117 * Sets the system's identity scope
/libcore/ojluni/src/main/java/java/util/function/
H A DUnaryOperator.java49 static <T> UnaryOperator<T> identity() { method in interface:UnaryOperator
H A DDoubleUnaryOperator.java92 static DoubleUnaryOperator identity() { method in interface:DoubleUnaryOperator
H A DIntUnaryOperator.java92 static IntUnaryOperator identity() { method in interface:IntUnaryOperator
H A DLongUnaryOperator.java92 static LongUnaryOperator identity() { method in interface:LongUnaryOperator
H A DFunction.java97 static <T> Function<T, T> identity() { method in interface:Function
/libcore/ojluni/src/main/java/java/security/
H A DIdentity.java67 * The name for this identity.
74 * The public key for this identity.
81 * Generic, descriptive information about the identity.
88 * The scope of the identity.
95 * The certificates for this identity.
109 * Constructs an identity with the specified name and scope.
111 * @param name the identity name.
112 * @param scope the scope of the identity.
114 * @exception KeyManagementException if there is already an identity
127 * Constructs an identity wit
339 equals(Object identity) argument
369 identityEquals(Identity identity) argument
[all...]
H A DIdentityScope.java41 * expected, that different types of identity scopes will
108 * Constructs a new identity scope with the specified name.
117 * Constructs a new identity scope with the specified name and scope.
120 * @param scope the scope for the new identity scope.
122 * @exception KeyManagementException if there is already an identity
131 * Returns the system's identity scope.
133 * @return the system's identity scope, or {@code null} if none has been
147 * Sets the system's identity scope.
152 * as its argument to see if it's ok to set the identity scope.
158 * setting the identity scop
219 addIdentity(Identity identity) argument
230 removeIdentity(Identity identity) argument
[all...]
/libcore/luni/src/test/java/libcore/javax/net/ssl/
H A DPSKKeyManagerProxy.java47 protected SecretKey getKey(String identityHint, String identity, Socket socket) { argument
52 protected SecretKey getKey(String identityHint, String identity, SSLEngine engine) { argument
/libcore/luni/src/test/java/libcore/java/util/
H A DOptionalTest.java117 Function<String, String> identity = (String s) -> { reference.set(s); return s; };
120 Optional<String> mapped = optionalFoo.map(identity);
138 Function<String, Optional<String>> identity =
143 Optional<String> mapped = optionalFoo.flatMap(identity);
/libcore/luni/src/test/java/libcore/java/lang/invoke/
H A DMethodHandleCombinersTest.java472 MethodHandle identity = MethodHandles.identity(boolean.class);
473 boolean value = (boolean) identity.invoke(false);
478 MethodHandle identity = MethodHandles.identity(byte.class);
479 byte value = (byte) identity.invoke((byte) 0x8);
484 MethodHandle identity = MethodHandles.identity(char.class);
485 char value = (char) identity.invoke((char) -56);
490 MethodHandle identity
[all...]
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
H A DTabulatorsTest.java209 private final U identity; field in class:TabulatorsTest.ReduceAssertion
213 ReduceAssertion(U identity, Function<T, U> mapper, BinaryOperator<U> reducer) { argument
214 this.identity = identity;
226 assertEquals(value, identity);
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(), Intege
[all...]
H A DSequentialOpTest.java54 Function<Integer, Integer> id = LambdaTestHelpers.identity();
100 Function<Integer, Integer> id = LambdaTestHelpers.identity();
/libcore/ojluni/src/main/java/java/util/stream/
H A DReduceOps.java61 * @param seed the identity element for the reduction
240 * @param identity the identity for the combining function
245 makeInt(int identity, IntBinaryOperator operator) { argument
253 state = identity;
376 * @param identity the identity for the combining function
381 makeLong(long identity, LongBinaryOperator operator) { argument
389 state = identity;
512 * @param identity th
517 makeDouble(double identity, DoubleBinaryOperator operator) argument
[all...]
H A DStream.java557 * elements of this stream, using the provided identity value and an
562 * T result = identity;
570 * <p>The {@code identity} value must be an identity for the accumulator
572 * {@code accumulator.apply(identity, t)} is equal to {@code t}.
597 * @param identity the identity value for the accumulating function
604 T reduce(T identity, BinaryOperator<T> accumulator); argument
648 * elements of this stream, using the provided identity, accumulation and
651 * U result = identity;
693 reduce(U identity, BiFunction<U, ? super T, U> accumulator, BinaryOperator<U> combiner) argument
[all...]

Completed in 1091 milliseconds

12