Home
last modified time | relevance | path

Searched refs:valueOf (Results 1 – 25 of 913) sorted by relevance

12345678910>>...37

/external/owasp/sanitizer/src/main/org/owasp/html/
DHtmlEntities.java223 .put("quot", Integer.valueOf('"'))
224 .put("amp", Integer.valueOf('&'))
225 .put("lt", Integer.valueOf('<'))
226 .put("gt", Integer.valueOf('>'))
229 .put("apos", Integer.valueOf('\''))
232 .put("nbsp", Integer.valueOf('\u00a0'))
233 .put("iexcl", Integer.valueOf('\u00a1'))
234 .put("cent", Integer.valueOf('\u00a2'))
235 .put("pound", Integer.valueOf('\u00a3'))
236 .put("curren", Integer.valueOf('\u00a4'))
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue103/
DMergingTest.java65 assertEquals(Integer.valueOf(1), center.get("x")); in check()
66 assertEquals(Integer.valueOf(2), center.get("y")); in check()
70 assertEquals(Integer.valueOf(0), left.get("x")); in check()
71 assertEquals(Integer.valueOf(2), left.get("y")); in check()
75 assertEquals(Integer.valueOf(10), big.get("r")); in check()
79 assertEquals(Integer.valueOf(1), small.get("r")); in check()
87 assertEquals(Integer.valueOf(1), explicitKeys.get("x")); in check()
88 assertEquals(Integer.valueOf(2), explicitKeys.get("y")); in check()
89 assertEquals(Integer.valueOf(10), explicitKeys.get("r")); in check()
94 assertEquals(Integer.valueOf(1), merge_center.get("x")); in check()
[all …]
/external/guava/guava-tests/test/com/google/common/cache/
DCacheRefreshTest.java43 assertEquals(Integer.valueOf(i), cache.getUnchecked(i)); in testAutoRefresh()
50 assertEquals(Integer.valueOf(0), cache.getUnchecked(0)); in testAutoRefresh()
51 assertEquals(Integer.valueOf(1), cache.getUnchecked(1)); in testAutoRefresh()
52 assertEquals(Integer.valueOf(2), cache.getUnchecked(2)); in testAutoRefresh()
58 assertEquals(Integer.valueOf(1), cache.getUnchecked(0)); in testAutoRefresh()
60 assertEquals(Integer.valueOf(1), cache.getUnchecked(1)); in testAutoRefresh()
61 assertEquals(Integer.valueOf(2), cache.getUnchecked(2)); in testAutoRefresh()
68 assertEquals(Integer.valueOf(1), cache.getUnchecked(0)); in testAutoRefresh()
69 assertEquals(Integer.valueOf(-1), cache.getUnchecked(1)); in testAutoRefresh()
70 assertEquals(Integer.valueOf(2), cache.getUnchecked(2)); in testAutoRefresh()
[all …]
DCacheBuilderGwtTest.java71 assertEquals(Integer.valueOf(10), cache.get(0, loader)); in testLoader()
72 assertEquals(Integer.valueOf(1), cache.get(20, loader)); in testLoader()
73 assertEquals(Integer.valueOf(2), cache.get(34, loader)); in testLoader()
76 assertEquals(Integer.valueOf(3), cache.get(0, loader)); in testLoader()
80 assertEquals(Integer.valueOf(4), cache.get(0, loader)); in testLoader()
96 assertEquals(Integer.valueOf(20), cache.getIfPresent(2)); in testSizeConstraint()
97 assertEquals(Integer.valueOf(30), cache.getIfPresent(3)); in testSizeConstraint()
98 assertEquals(Integer.valueOf(40), cache.getIfPresent(4)); in testSizeConstraint()
99 assertEquals(Integer.valueOf(50), cache.getIfPresent(5)); in testSizeConstraint()
102 assertEquals(Integer.valueOf(10), cache.getIfPresent(1)); in testSizeConstraint()
[all …]
/external/vogar/src/vogar/target/
DPrintStreamDecorator.java27 print(String.valueOf(l)); in print()
31 print(String.valueOf(i)); in print()
35 print(String.valueOf(f)); in print()
39 print(String.valueOf(d)); in print()
43 print(String.valueOf(s)); in print()
47 print(String.valueOf(c)); in print()
71 println(String.valueOf(l)); in println()
75 println(String.valueOf(i)); in println()
79 println(String.valueOf(f)); in println()
83 println(String.valueOf(d)); in println()
[all …]
/external/slf4j/jcl-over-slf4j/src/main/java/org/apache/commons/logging/impl/
DSLF4JLog.java104 logger.trace(String.valueOf(message)); in trace()
117 logger.trace(String.valueOf(message), t); in trace()
128 logger.debug(String.valueOf(message)); in debug()
141 logger.debug(String.valueOf(message), t); in debug()
152 logger.info(String.valueOf(message)); in info()
165 logger.info(String.valueOf(message), t); in info()
176 logger.warn(String.valueOf(message)); in warn()
189 logger.warn(String.valueOf(message), t); in warn()
200 logger.error(String.valueOf(message)); in error()
213 logger.error(String.valueOf(message), t); in error()
[all …]
DSLF4JLocationAwareLog.java107 logger.log(null, FQCN, LocationAwareLogger.TRACE_INT, String.valueOf(message), null, null); in trace()
120 logger.log(null, FQCN, LocationAwareLogger.TRACE_INT, String.valueOf(message), null, t); in trace()
131 logger.log(null, FQCN, LocationAwareLogger.DEBUG_INT, String.valueOf(message), null, null); in debug()
144 logger.log(null, FQCN, LocationAwareLogger.DEBUG_INT, String.valueOf(message), null, t); in debug()
155 logger.log(null, FQCN, LocationAwareLogger.INFO_INT, String.valueOf(message), null, null); in info()
168 logger.log(null, FQCN, LocationAwareLogger.INFO_INT, String.valueOf(message), null, t); in info()
179 logger.log(null, FQCN, LocationAwareLogger.WARN_INT, String.valueOf(message), null, null); in warn()
192 logger.log(null, FQCN, LocationAwareLogger.WARN_INT, String.valueOf(message), null, t); in warn()
203 logger.log(null, FQCN, LocationAwareLogger.ERROR_INT, String.valueOf(message), null, null); in error()
216 logger.log(null, FQCN, LocationAwareLogger.ERROR_INT, String.valueOf(message), null, t); in error()
[all …]
/external/crcalc/src/com/hp/creals/
DCR.java198 static final BigInteger bigm1 = BigInteger.valueOf(-1);
199 static final BigInteger big2 = BigInteger.valueOf(2);
200 static final BigInteger big3 = BigInteger.valueOf(3);
201 static final BigInteger big6 = BigInteger.valueOf(6);
202 static final BigInteger big8 = BigInteger.valueOf(8);
204 static final BigInteger big750 = BigInteger.valueOf(750);
205 static final BigInteger bigm750 = BigInteger.valueOf(-750);
263 public static CR valueOf(BigInteger n) { in valueOf() method in CR
271 public static CR valueOf(int n) { in valueOf() method in CR
272 return valueOf(BigInteger.valueOf(n)); in valueOf()
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/
DFrequency.java136 obj = Long.valueOf(((Integer) v).longValue()); in addValue()
141 freqTable.put(obj, Long.valueOf(1)); in addValue()
143 freqTable.put(obj, Long.valueOf(count.longValue() + 1)); in addValue()
159 addValue(Long.valueOf(v)); in addValue()
170 addValue(Long.valueOf(v.longValue())); in addValue()
179 addValue(Long.valueOf(v)); in addValue()
188 addValue(Character.valueOf(v)); in addValue()
268 return getCount(Long.valueOf(v)); in getCount()
278 return getCount(Long.valueOf(v)); in getCount()
288 return getCount(Character.valueOf(v)); in getCount()
[all …]
/external/crcalc/tests/src/com/hp/creals/
DCRTest.java69 CR zero = CR.valueOf(0); in testCR()
70 CR one = CR.valueOf(1); in testCR()
71 CR two = CR.valueOf(2); in testCR()
86 check_eq(CR.valueOf(4), four, "2 + 2 failed"); in testCR()
87 check_eq(CR.valueOf(3), three, "2 + 1 failed"); in testCR()
93 CR thirteen = CR.valueOf(13); in testCR()
108 BigInteger million = BigInteger.valueOf(1000*1000); in testCR()
109 BigInteger thousand = BigInteger.valueOf(1000); in testCR()
110 CR huge = CR.valueOf(million.multiply(million).multiply(thousand)); in testCR()
135 CR tmp = CR.PI.add(CR.valueOf(-123).exp()); in testCR()
[all …]
DSlowCRTest.java49 final static CR ZERO = CR.valueOf(0);
50 final static CR ONE = CR.valueOf(1);
51 final static CR TWO = CR.valueOf(2);
52 final static CR BIG = CR.valueOf(200).exp();
54 final static CR HALF_PI = CR.PI.divide(CR.valueOf(2));
95 CR v = CR.valueOf(i); in checkTrig()
102 CR.valueOf(1), in checkTrig()
133 checkEq(x.multiply(CR.valueOf(2)).exp(), in checkExpLn()
142 checkEq(x.ln().divide(CR.valueOf(2)), x.sqrt().ln(), in checkExpLn()
146 CR v = CR.valueOf(i); in checkExpLn()
[all …]
/external/guava/guava-gwt/test-super/com/google/common/math/super/com/google/common/math/
DIntMathTest.java27 import static java.math.BigInteger.valueOf;
82 assertEquals(BigIntegerMath.log2(valueOf(x), mode), IntMath.log2(x, mode)); in testLog2MatchesBigInteger()
121 new BigDecimal(valueOf(p)).divide(new BigDecimal(valueOf(q)), 0, mode).intValue(); in testDivNonZero()
168 assertEquals(valueOf(x).mod(valueOf(m)).intValue(), IntMath.mod(x, m)); in testMod()
196 assertEquals(valueOf(a).gcd(valueOf(b)), valueOf(IntMath.gcd(a, b))); in testGCD()
238 BigInteger expectedResult = valueOf(a).add(valueOf(b)); in testCheckedAdd()
253 BigInteger expectedResult = valueOf(a).subtract(valueOf(b)); in testCheckedSubtract()
268 BigInteger expectedResult = valueOf(a).multiply(valueOf(b)); in testCheckedMultiply()
283 BigInteger expectedResult = valueOf(b).pow(k); in testCheckedPow()
341 BigInteger bigX = BigInteger.valueOf(x); in computeMeanSafely()
[all …]
/external/apache-http/src/org/apache/commons/logging/impl/
DJdk14Logger.java118 log(Level.FINE, String.valueOf(message), null); in debug()
130 log(Level.FINE, String.valueOf(message), exception); in debug()
141 log(Level.SEVERE, String.valueOf(message), null); in error()
153 log(Level.SEVERE, String.valueOf(message), exception); in error()
164 log(Level.SEVERE, String.valueOf(message), null); in fatal()
176 log(Level.SEVERE, String.valueOf(message), exception); in fatal()
198 log(Level.INFO, String.valueOf(message), null); in info()
210 log(Level.INFO, String.valueOf(message), exception); in info()
269 log(Level.FINEST, String.valueOf(message), null); in trace()
281 log(Level.FINEST, String.valueOf(message), exception); in trace()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/sec/
DSECNamedCurves.java49 BigInteger h = BigInteger.valueOf(1);
75 BigInteger h = BigInteger.valueOf(4);
101 BigInteger h = BigInteger.valueOf(1);
127 BigInteger h = BigInteger.valueOf(4);
150 BigInteger b = BigInteger.valueOf(7);
153 BigInteger h = BigInteger.valueOf(1);
192 BigInteger h = BigInteger.valueOf(1);
218 BigInteger h = BigInteger.valueOf(1);
241 BigInteger b = BigInteger.valueOf(3);
244 BigInteger h = BigInteger.valueOf(1);
[all …]
/external/guava/guava/src/com/google/common/base/
DMoreObjects.java195 return addHolder(name, String.valueOf(value)); in add()
205 return addHolder(name, String.valueOf(value)); in add()
215 return addHolder(name, String.valueOf(value)); in add()
225 return addHolder(name, String.valueOf(value)); in add()
235 return addHolder(name, String.valueOf(value)); in add()
245 return addHolder(name, String.valueOf(value)); in add()
271 return addHolder(String.valueOf(value)); in addValue()
283 return addHolder(String.valueOf(value)); in addValue()
295 return addHolder(String.valueOf(value)); in addValue()
307 return addHolder(String.valueOf(value)); in addValue()
[all …]
DObjects.java240 return addHolder(name, String.valueOf(value)); in add()
250 return addHolder(name, String.valueOf(value)); in add()
260 return addHolder(name, String.valueOf(value)); in add()
270 return addHolder(name, String.valueOf(value)); in add()
280 return addHolder(name, String.valueOf(value)); in add()
290 return addHolder(name, String.valueOf(value)); in add()
312 return addHolder(String.valueOf(value)); in addValue()
324 return addHolder(String.valueOf(value)); in addValue()
336 return addHolder(String.valueOf(value)); in addValue()
348 return addHolder(String.valueOf(value)); in addValue()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DNumberFormatTestData.java274 minIntegerDigits = Integer.valueOf(value); in setMinIntegerDigits()
278 maxIntegerDigits = Integer.valueOf(value); in setMaxIntegerDigits()
282 minFractionDigits = Integer.valueOf(value); in setMinFractionDigits()
286 maxFractionDigits = Integer.valueOf(value); in setMaxFractionDigits()
290 minGroupingDigits = Integer.valueOf(value); in setMinGroupingDigits()
298 useSigDigits = Integer.valueOf(value); in setUseSigDigits()
302 minSigDigits = Integer.valueOf(value); in setMinSigDigits()
306 maxSigDigits = Integer.valueOf(value); in setMaxSigDigits()
310 useGrouping = Integer.valueOf(value); in setUseGrouping()
314 multiplier = Integer.valueOf(value); in setMultiplier()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DNumberFormatTestData.java273 minIntegerDigits = Integer.valueOf(value); in setMinIntegerDigits()
277 maxIntegerDigits = Integer.valueOf(value); in setMaxIntegerDigits()
281 minFractionDigits = Integer.valueOf(value); in setMinFractionDigits()
285 maxFractionDigits = Integer.valueOf(value); in setMaxFractionDigits()
289 minGroupingDigits = Integer.valueOf(value); in setMinGroupingDigits()
297 useSigDigits = Integer.valueOf(value); in setUseSigDigits()
301 minSigDigits = Integer.valueOf(value); in setMinSigDigits()
305 maxSigDigits = Integer.valueOf(value); in setMaxSigDigits()
309 useGrouping = Integer.valueOf(value); in setUseGrouping()
313 multiplier = Integer.valueOf(value); in setMultiplier()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DECConstants.java7 public static final BigInteger ZERO = BigInteger.valueOf(0);
8 public static final BigInteger ONE = BigInteger.valueOf(1);
9 public static final BigInteger TWO = BigInteger.valueOf(2);
10 public static final BigInteger THREE = BigInteger.valueOf(3);
11 public static final BigInteger FOUR = BigInteger.valueOf(4);
12 public static final BigInteger EIGHT = BigInteger.valueOf(8);
/external/guava/guava-tests/test/com/google/common/collect/
DForwardingConcurrentMapTest.java43 assertEquals(Integer.valueOf(1), map.putIfAbsent("foo", 2)); in testPutIfAbsent()
44 assertEquals(Integer.valueOf(1), map.get("foo")); in testPutIfAbsent()
46 assertEquals(Integer.valueOf(3), map.get("bar")); in testPutIfAbsent()
54 assertEquals(Integer.valueOf(1), map.get("foo")); in testRemove()
62 assertEquals(Integer.valueOf(1), map.replace("foo", 2)); in testReplace()
64 assertEquals(Integer.valueOf(2), map.get("foo")); in testReplace()
73 assertEquals(Integer.valueOf(1), map.get("foo")); in testReplaceConditional()
76 assertEquals(Integer.valueOf(4), map.get("foo")); in testReplaceConditional()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/util/
DSecretKeyUtil.java18 keySizes.put(PKCSObjectIdentifiers.des_EDE3_CBC.getId(), Integers.valueOf(192)); in PKCSObjectIdentifiers.des_EDE3_CBC.getId()
20 keySizes.put(NISTObjectIdentifiers.id_aes128_CBC, Integers.valueOf(128)); in keySizes.put()
21 keySizes.put(NISTObjectIdentifiers.id_aes192_CBC, Integers.valueOf(192)); in keySizes.put()
22 keySizes.put(NISTObjectIdentifiers.id_aes256_CBC, Integers.valueOf(256)); in keySizes.put()
24 keySizes.put(NTTObjectIdentifiers.id_camellia128_cbc, Integers.valueOf(128)); in keySizes.put()
25 keySizes.put(NTTObjectIdentifiers.id_camellia192_cbc, Integers.valueOf(192)); in keySizes.put()
26 keySizes.put(NTTObjectIdentifiers.id_camellia256_cbc, Integers.valueOf(256)); in keySizes.put()
/external/guava/guava-tests/test/com/google/common/math/
DLongMathTest.java29 import static java.math.BigInteger.valueOf;
80 BigInteger.valueOf(LongMath.halfPowersOf10[i])); in testConstantsHalfPowersOf10()
84 assertTrue(nextBigger.compareTo(BigInteger.valueOf(Long.MAX_VALUE)) > 0); in testConstantsHalfPowersOf10()
143 BigInteger difference = BigInteger.valueOf(x).subtract(BigInteger.valueOf(y)); in testLessThanBranchFree()
168 BigInteger bigX = BigInteger.valueOf(x); in testIsPowerOfTwo()
199 assertEquals(BigIntegerMath.log2(valueOf(x), mode), LongMath.log2(x, mode)); in testLog2MatchesBigInteger()
245 assertEquals(BigIntegerMath.log10(valueOf(x), mode), LongMath.log10(x, mode)); in testLog10MatchesBigInteger()
292 assertEquals(BigIntegerMath.sqrt(valueOf(x), mode), valueOf(LongMath.sqrt(x, mode))); in testSqrtMatchesBigInteger()
317 assertEquals(LongMath.pow(i, exp), valueOf(i) in testPow()
330 new BigDecimal(valueOf(p)).divide(new BigDecimal(valueOf(q)), 0, mode).longValue(); in testDivNonZero()
[all …]
DIntMathTest.java27 import static java.math.BigInteger.valueOf;
115 BigInteger bigX = BigInteger.valueOf(x); in testIsPowerOfTwo()
145 assertEquals(BigIntegerMath.log2(valueOf(x), mode), IntMath.log2(x, mode)); in testLog2MatchesBigInteger()
192 assertEquals(BigIntegerMath.log10(valueOf(x), mode), IntMath.log10(x, mode)); in testLog10MatchesBigInteger()
248 assertEquals(BigIntegerMath.sqrt(valueOf(x), mode), valueOf(IntMath.sqrt(x, mode))); in testSqrtMatchesBigInteger()
273 assertEquals(i + "^" + pow, BigInteger.valueOf(i).pow(pow).intValue(), IntMath.pow(i, pow)); in testPow()
288 new BigDecimal(valueOf(p)).divide(new BigDecimal(valueOf(q)), 0, mode).intValue(); in testDivNonZero()
335 assertEquals(valueOf(x).mod(valueOf(m)).intValue(), IntMath.mod(x, m)); in testMod()
363 assertEquals(valueOf(a).gcd(valueOf(b)), valueOf(IntMath.gcd(a, b))); in testGCD()
405 BigInteger expectedResult = valueOf(a).add(valueOf(b)); in testCheckedAdd()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x9/
DX962NamedCurves.java23 BigInteger h = BigInteger.valueOf(1);
45 BigInteger h = BigInteger.valueOf(1);
67 BigInteger h = BigInteger.valueOf(1);
89 BigInteger h = BigInteger.valueOf(1);
111 BigInteger h = BigInteger.valueOf(1);
133 BigInteger h = BigInteger.valueOf(1);
155 BigInteger h = BigInteger.valueOf(1);
180 BigInteger c2m163v1h = BigInteger.valueOf(2);
203 BigInteger c2m163v2h = BigInteger.valueOf(2);
226 BigInteger c2m163v3h = BigInteger.valueOf(2);
[all …]
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/
DTimeTest.java124 Time theReturn = Time.valueOf(validTime[i]); in testValueOfString()
130 Time.valueOf(element); in testValueOfString()
239 Time.valueOf("15:43:12:34"); in test_valueOf_IllegalArgumentException()
246 Time.valueOf(":10:07:01"); in test_valueOf_IllegalArgumentException()
253 Time.valueOf("::01"); in test_valueOf_IllegalArgumentException()
260 Time.valueOf("11::"); in test_valueOf_IllegalArgumentException()
267 Time.valueOf(":01:"); in test_valueOf_IllegalArgumentException()
274 Time.valueOf(":10:w2:01"); in test_valueOf_IllegalArgumentException()
281 Time.valueOf("07:w2:"); in test_valueOf_IllegalArgumentException()
288 Time.valueOf("17:w2:w2"); in test_valueOf_IllegalArgumentException()
[all …]

12345678910>>...37