Searched refs:result (Results 1 - 25 of 450) sorted by path

1234567891011>>

/libcore/benchmarks/libs/
H A Dcaliper.jar ... $ String[] argsArray com.google.caliper.Arguments result java.util.Iterator args String delimiter java. ...
/libcore/benchmarks/src/benchmarks/
H A DAdditionBenchmark.java28 int result = 0;
30 result += 123;
32 return result;
35 int result = 0;
38 result += constant;
40 return result;
43 long result = 0;
45 result += 123L;
47 return result;
50 long result
[all...]
H A DFieldAccessBenchmark.java38 int result = 0;
40 result = intVal;
42 return result;
45 int result = 0;
47 result = finalIntVal;
49 return result;
52 int result = 0;
54 result = staticIntVal;
56 return result;
59 int result
[all...]
H A DMethodInvocationBenchmark.java39 int result = 0;
41 result = getField();
43 return result;
47 int result = 0;
49 result = field;
51 return result;
74 int result = 0;
76 result = "hello, world!".length();
78 return result;
H A DMultiplicationBenchmark.java28 int result = 1;
30 result *= 10;
32 return result;
35 int result = 1;
37 result *= 8;
39 return result;
42 int result = 1;
45 result *= factor;
47 return result;
50 int result
[all...]
H A DXmlParseBenchmark.java115 int result = 0;
118 result++;
120 result += countDomElements(node.getFirstChild());
122 return result;
/libcore/benchmarks/src/benchmarks/regression/
H A DByteBufferBenchmark.java49 ByteBuffer result = null;
52 result = ByteBuffer.allocateDirect(size);
55 result = ByteBuffer.allocate(size);
68 result = fc.map(FileChannel.MapMode.READ_WRITE, 0, fc.size());
71 result.order(byteOrder.byteOrder);
72 result.position(aligned ? 0 : 1);
73 return result;
H A DCharsetBenchmark.java72 StringBuilder result = new StringBuilder(length);
74 result.append('A' + (i % 26));
76 return result.toString();
H A DDoubleBenchmark.java28 long result = 123;
30 result = Double.doubleToLongBits(d);
32 if (result != l) {
33 throw new RuntimeException(Long.toString(result));
38 long result = 123;
40 result = Double.doubleToRawLongBits(d);
42 if (result != l) {
43 throw new RuntimeException(Long.toString(result));
48 double result = 123.0;
50 result
[all...]
H A DFloatBenchmark.java28 int result = 123;
30 result = Float.floatToIntBits(f);
32 if (result != i) {
33 throw new RuntimeException(Integer.toString(result));
38 int result = 123;
40 result = Float.floatToRawIntBits(f);
42 if (result != i) {
43 throw new RuntimeException(Integer.toString(result));
48 float result = 123.0f;
50 result
[all...]
H A DHostnameVerifierBenchmark.java84 byte[][] result = new byte[certificates.length][];
86 result[i] = certificates[i].getEncoded();
88 return result;
93 Certificate[] result = new Certificate[encodedCertificates.length];
95 result[i] = certificateFactory.generateCertificate(
98 return result;
H A DIntConstantDivisionBenchmark.java25 int result = 1;
27 result /= 2;
29 return result;
32 int result = 1;
34 result /= 8;
36 return result;
39 int result = 1;
41 result /= 10;
43 return result;
46 int result
[all...]
H A DIntConstantMultiplicationBenchmark.java25 int result = 1;
27 result *= 6;
29 return result;
32 int result = 1;
34 result *= 7;
36 return result;
39 int result = 1;
41 result *= 8;
43 return result;
46 int result
[all...]
H A DIntConstantRemainderBenchmark.java25 int result = 1;
27 result %= 2;
29 return result;
32 int result = 1;
34 result %= 8;
36 return result;
40 int result = 1;
42 result %= 10;
44 return result;
47 int result
[all...]
H A DStringBenchmark.java34 StringBuilder result = new StringBuilder(length);
36 result.append((char) i);
38 return result.toString();
H A DStringCaseMappingBenchmark.java119 char[] result = s.toCharArray();
121 c = result[i];
123 result[i] -= ('a' - 'A');
126 return new String(result);
139 char[] result = s.toCharArray();
141 c = result[i];
143 result[i] += ('a' - 'A');
146 return new String(result);
H A DStringIsEmptyBenchmark.java24 boolean result = true;
26 result &= !("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx".isEmpty());
28 if (!result) throw new RuntimeException();
32 boolean result = true;
34 result &= ("".isEmpty());
36 if (!result) throw new RuntimeException();
40 boolean result = true;
42 result &= !("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx".length() == 0);
44 if (!result) throw new RuntimeException();
48 boolean result
[all...]
/libcore/crypto/src/main/java/org/conscrypt/
H A DFileClientSessionCache.java358 long result = lastModified() - another.lastModified();
359 if (result == 0) {
362 return result < 0 ? -1 : 1;
H A DOpenSSLECDHKeyAgreement.java72 byte[] result;
77 result = buffer;
80 result = new byte[actualResultLength];
84 throw new RuntimeException("Engine produced a longer than expected result. Expected: "
87 mResult = result;
H A DOpenSSLMessageDigestJDK.java81 byte[] result = new byte[size];
82 NativeCrypto.EVP_DigestFinal(getCtx(), result, 0);
84 return result;
H A DOpenSSLSessionImpl.java203 javax.security.cert.X509Certificate[] result = peerCertificateChain;
204 if (result == null) {
206 peerCertificateChain = result = createPeerCertificateChain();
208 return result;
H A DOpenSSLSignature.java260 int result = NativeCrypto.EVP_VerifyFinal(ctx, sigBytes, 0, sigBytes.length,
262 return result == 1;
H A DSSLParametersImpl.java143 SSLParametersImpl result = defaultParameters;
144 if (result == null) {
146 defaultParameters = result = new SSLParametersImpl(null,
152 return (SSLParametersImpl) result.clone();
190 SecureRandom result = defaultSecureRandom;
191 if (result == null) {
193 defaultSecureRandom = result = new SecureRandom();
195 secureRandom = result;
352 X509KeyManager result = defaultKeyManager;
353 if (result
[all...]
H A DTrustedCertificateStore.java208 // containsAlias check ensures the later fileForAlias result
225 Set<String> result = new HashSet<String>();
226 addAliases(result, PREFIX_USER, addedDir);
227 addAliases(result, PREFIX_SYSTEM, systemDir);
228 return result;
232 Set<String> result = new HashSet<String>();
233 addAliases(result, PREFIX_USER, addedDir);
234 return result;
237 private void addAliases(Set<String> result, String prefix, File dir) { argument
245 result
[all...]
H A DX509PublicKey.java62 int result = 1;
63 result = prime * result + ((algorithm == null) ? 0 : algorithm.hashCode());
64 result = prime * result + Arrays.hashCode(encoded);
65 return result;

Completed in 148 milliseconds

1234567891011>>