Home
last modified time | relevance | path

Searched refs:num (Results 1 – 23 of 23) sorted by relevance

/libcore/luni/src/test/java/tests/java/sql/
DUpdateFunctionalityTest.java111 int num = statement.executeUpdate(updateQuery); in testUpdate1() local
113 numberOfRecords, num); in testUpdate1()
136 int num = statement.executeUpdate(updateQuery); in testUpdate2() local
139 expectedUpdated, num); in testUpdate2()
169 int num = statement.executeUpdate(updateQuery); in testUpdate3() local
171 numberOfRecords, num); in testUpdate3()
199 int num = statement.executeUpdate(updateQuery); in testUpdate4() local
202 expectedUpdated, num); in testUpdate4()
247 int num = statement.executeUpdate(updateQuery); in testUpdate5() local
249 numberOfRecords, num); in testUpdate5()
[all …]
DStressTest.java244 int num = Support_SQL.sqlMaxConnections; in getConnectionNum() local
248 if (num != mc) { in getConnectionNum()
252 num = mc; in getConnectionNum()
257 return num; in getConnectionNum()
/libcore/ojluni/src/main/java/sun/security/x509/
DSerialNumber.java55 public SerialNumber(BigInteger num) { in SerialNumber() argument
56 serialNum = num; in SerialNumber()
64 public SerialNumber(int num) { in SerialNumber() argument
65 serialNum = BigInteger.valueOf(num); in SerialNumber()
DCertificateSerialNumber.java62 public CertificateSerialNumber(BigInteger num) { in CertificateSerialNumber() argument
63 this.serial = new SerialNumber(num); in CertificateSerialNumber()
71 public CertificateSerialNumber(int num) { in CertificateSerialNumber() argument
72 this.serial = new SerialNumber(num); in CertificateSerialNumber()
DX509CRLEntryImpl.java89 public X509CRLEntryImpl(BigInteger num, Date date) { in X509CRLEntryImpl() argument
90 this.serialNumber = new SerialNumber(num); in X509CRLEntryImpl()
103 public X509CRLEntryImpl(BigInteger num, Date date, in X509CRLEntryImpl() argument
105 this.serialNumber = new SerialNumber(num); in X509CRLEntryImpl()
DX509CRLImpl.java884 BigInteger num = numExt.get(CRLNumberExtension.NUMBER); in getCRLNumber() local
885 return num; in getCRLNumber()
913 BigInteger num = dciExt.get(DeltaCRLIndicatorExtension.NUMBER); in getBaseCRLNumber() local
914 return num; in getBaseCRLNumber()
DX509CertInfo.java805 Integer num = map.get(name); in attributeMap() local
806 if (num == null) { in attributeMap()
809 return num.intValue(); in attributeMap()
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodType.java192 private static IndexOutOfBoundsException newIndexOutOfBoundsException(Object num) { in newIndexOutOfBoundsException() argument
193 if (num instanceof Integer) num = "bad index: "+num; in newIndexOutOfBoundsException()
194 return new IndexOutOfBoundsException(num.toString()); in newIndexOutOfBoundsException()
374 public MethodType changeParameterType(int num, Class<?> nptype) { in changeParameterType() argument
375 if (parameterType(num) == nptype) return this; in changeParameterType()
378 nptypes[num] = nptype; in changeParameterType()
393 public MethodType insertParameterTypes(int num, Class<?>... ptypesToInsert) { in insertParameterTypes() argument
395 if (num < 0 || num > len) in insertParameterTypes()
396 throw newIndexOutOfBoundsException(num); in insertParameterTypes()
402 System.arraycopy(nptypes, num, nptypes, num+ilen, len-num); in insertParameterTypes()
[all …]
/libcore/ojluni/src/lambda/java/java/lang/invoke/
DMethodType.java61 public MethodType changeParameterType(int num, Class<?> nptype) { return null; } in changeParameterType() argument
63 public MethodType insertParameterTypes(int num, Class<?>... ptypesToInsert) { return null; } in insertParameterTypes() argument
67 public MethodType insertParameterTypes(int num, List<Class<?>> ptypesToInsert) { return null; } in insertParameterTypes() argument
87 public Class<?> parameterType(int num) { return null; } in parameterType() argument
/libcore/ojluni/src/main/java/sun/security/util/
DObjectIdentifier.java180 int num = Integer.parseInt(comp); in ObjectIdentifier() local
182 checkFirstComponent(num); in ObjectIdentifier()
183 first = num; in ObjectIdentifier()
186 checkSecondComponent(first, num); in ObjectIdentifier()
187 num += 40 * first; in ObjectIdentifier()
189 checkOtherComponent(count, num); in ObjectIdentifier()
191 pos += pack7Oid(num, tmp, pos); in ObjectIdentifier()
656 private static void checkOtherComponent(int i, int num) throws IOException { in checkOtherComponent() argument
657 if (num < 0) { in checkOtherComponent()
662 private static void checkOtherComponent(int i, BigInteger num) throws IOException { in checkOtherComponent() argument
[all …]
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/
DHttpURLConnectionTest.java94 int num = socket.getInputStream().read(buff); in run() local
99 num = socket.getInputStream().read(buff); in run()
100 if (num == -1) { in run()
104 num = socket.getInputStream().read(buff); in run()
106 String request = new String(buff, 0, num); in run()
/libcore/ojluni/annotations/hiddenapi/sun/security/x509/
DSerialNumber.java33 public SerialNumber(java.math.BigInteger num) { in SerialNumber() argument
37 public SerialNumber(int num) { in SerialNumber() argument
DCertificateSerialNumber.java34 public CertificateSerialNumber(java.math.BigInteger num) { in CertificateSerialNumber() argument
39 public CertificateSerialNumber(int num) { in CertificateSerialNumber() argument
DX509CRLEntryImpl.java32 public X509CRLEntryImpl(java.math.BigInteger num, java.util.Date date) { in X509CRLEntryImpl() argument
37 java.math.BigInteger num, in X509CRLEntryImpl() argument
/libcore/luni/src/test/java/libcore/java/text/
DDecimalFormatTest.java178 private void assertFieldPosition4Types(DecimalFormat df, long num, NumberFormat.Field field, in assertFieldPosition4Types() argument
180 assertFieldPosition(df, num, field, expectedStr, expectedBeginIndex, expectedEndIndex); in assertFieldPosition4Types()
181 assertFieldPosition(df, (double) num, field, expectedStr, expectedBeginIndex, in assertFieldPosition4Types()
183 assertFieldPosition(df, BigInteger.valueOf(num), field, expectedStr, expectedBeginIndex, in assertFieldPosition4Types()
185 assertFieldPosition(df, BigDecimal.valueOf(num), field, expectedStr, expectedBeginIndex, in assertFieldPosition4Types()
189 private void assertFieldPosition(DecimalFormat df, long num, NumberFormat.Field field, in assertFieldPosition() argument
193 df.format(num, stringBuffer, fp); in assertFieldPosition()
199 private void assertFieldPosition(DecimalFormat df, double num, NumberFormat.Field field, in assertFieldPosition() argument
203 df.format(num, stringBuffer, fp); in assertFieldPosition()
209 private void assertFieldPosition(DecimalFormat df, BigInteger num, NumberFormat.Field field, in assertFieldPosition() argument
[all …]
/libcore/luni/src/main/java/libcore/math/
DNativeBN.java39 public static native void BN_div(long dv, long rem, long num, long divisor); in BN_div() argument
/libcore/ojluni/annotations/hiddenapi/sun/security/util/
DObjectIdentifier.java140 private static void checkOtherComponent(int i, int num) throws java.io.IOException { in checkOtherComponent() argument
144 private static void checkOtherComponent(int i, java.math.BigInteger num) in checkOtherComponent() argument
/libcore/ojluni/src/main/java/java/math/
DBigDecimal.java2538 BigDecimal num = new BigDecimal(intVal, intCompact, newScale, 0); in movePointLeft() local
2539 return num.scale < 0 ? num.setScale(0, ROUND_UNNECESSARY) : num; in movePointLeft()
2560 BigDecimal num = new BigDecimal(intVal, intCompact, newScale, 0); in movePointRight() local
2561 return num.scale < 0 ? num.setScale(0, ROUND_UNNECESSARY) : num; in movePointRight()
3121 BigDecimal num = this.setScale(0, ROUND_UNNECESSARY);
3122 if (num.precision() >= 19) // need to check carefully
3123 LongOverflow.check(num);
3124 return num.inflated().longValue();
3134 public static void check(BigDecimal num) {
3135 BigInteger intVal = num.inflated();
[all …]
/libcore/luni/src/main/native/
Dlibcore_math_NativeBN.cpp151 static void NativeBN_BN_div(JNIEnv* env, jclass, jlong q, jlong rem, jlong num, jlong divisor) { in NativeBN_BN_div() argument
154 if (!ctxp || !BN_div(toBigNum(q), toBigNum(rem), toBigNum(num), toBigNum(divisor), ctxp)) { in NativeBN_BN_div()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DTestCertUtils.java753 private static boolean inc(int[] num, int base) { in inc() argument
754 for (int i = 0; i < num.length; i++) { in inc()
755 if ((++num[i]) >= base) { in inc()
756 num[i] = 0; in inc()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
DHttpsURLConnectionTest.java981 int num = 0; in executeClientRequest() local
983 while ((num < buff.length) && ((byt = is.read()) != -1)) { in executeClientRequest()
984 buff[num++] = (byte) byt; in executeClientRequest()
986 String message = new String(buff, 0, num); in executeClientRequest()
/libcore/ojluni/src/main/java/java/lang/reflect/
DProxy.java689 long num = nextUniqueNumber.getAndIncrement(); in apply() local
690 String proxyName = proxyPkg + proxyClassNamePrefix + num; in apply()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DLinkedHashMapTest.java435 assertEquals(1, cloneMap.num); in test_clone_Mock()
442 int num; field in LinkedHashMapTest.MockMap
445 num++; in put()
450 return num > 1; in removeEldestEntry()