Home
last modified time | relevance | path

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

12

/dalvik/libcore/support/src/test/java/tests/support/
DSupport_PortManager.java62 public static synchronized int[] getNextPortsForUDP(int num) { in getNextPortsForUDP() argument
63 if (num <= 0) { in getNextPortsForUDP()
64 throw new IllegalArgumentException("Invalid ports number: " + num); in getNextPortsForUDP()
66 DatagramSocket[] dss = new DatagramSocket[num]; in getNextPortsForUDP()
67 int[] ports = new int[num]; in getNextPortsForUDP()
70 for (int i = 0; i < num; ++i) { in getNextPortsForUDP()
75 throw new Error("Unable to get " + num + " ports for UDP: " + ex); in getNextPortsForUDP()
77 for (int i = 0; i < num; ++i) { in getNextPortsForUDP()
/dalvik/vm/
DMisc.c271 bool dvmSetBit(BitVector* pBits, int num) in dvmSetBit() argument
273 assert(num >= 0); in dvmSetBit()
274 if (num >= pBits->storageSize * (int)sizeof(u4) * 8) { in dvmSetBit()
278 int newSize = (num + 31) >> 5; in dvmSetBit()
286 pBits->storage[num >> 5] |= 1 << (num & 0x1f); in dvmSetBit()
293 void dvmClearBit(BitVector* pBits, int num) in dvmClearBit() argument
295 assert(num >= 0 && num < (int) pBits->storageSize * (int)sizeof(u4) * 8); in dvmClearBit()
297 pBits->storage[num >> 5] &= ~(1 << (num & 0x1f)); in dvmClearBit()
312 bool dvmIsBitSet(const BitVector* pBits, int num) in dvmIsBitSet() argument
314 assert(num >= 0 && num < (int) pBits->storageSize * (int)sizeof(u4) * 8); in dvmIsBitSet()
[all …]
DMisc.h159 bool dvmSetBit(BitVector* pBits, int num);
160 void dvmClearBit(BitVector* pBits, int num);
162 bool dvmIsBitSet(const BitVector* pBits, int num);
/dalvik/libcore/sql/src/test/java/tests/java/sql/
DUpdateFunctionalityTest.java131 int num = statement.executeUpdate(updateQuery); in testUpdate1() local
133 numberOfRecords, num); in testUpdate1()
170 int num = statement.executeUpdate(updateQuery); in testUpdate2() local
173 expectedUpdated, num); in testUpdate2()
217 int num = statement.executeUpdate(updateQuery); in testUpdate3() local
219 numberOfRecords, num); in testUpdate3()
261 int num = statement.executeUpdate(updateQuery); in testUpdate4() local
264 expectedUpdated, num); in testUpdate4()
323 int num = statement.executeUpdate(updateQuery); in testUpdate5() local
325 numberOfRecords, num); in testUpdate5()
[all …]
DStressTest.java259 int num = Support_SQL.sqlMaxConnections; in getConnectionNum() local
263 if (num != mc) { in getConnectionNum()
267 num = mc; in getConnectionNum()
272 return num; in getConnectionNum()
/dalvik/tests/050-sync-test/src/
DMain.java82 CpuThread(int num) { in CpuThread() argument
83 super("CpuThread " + num); in CpuThread()
84 mNumber = num; in CpuThread()
99 void output(int num) { in output() argument
110 System.out.println(num); in output()
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/modes/
DGOFBBlockCipher.java217 int num, in intTobytes() argument
221 out[outOff + 3] = (byte)(num >>> 24); in intTobytes()
222 out[outOff + 2] = (byte)(num >>> 16); in intTobytes()
223 out[outOff + 1] = (byte)(num >>> 8); in intTobytes()
224 out[outOff] = (byte)num; in intTobytes()
/dalvik/tests/052-verifier-fun/src/
DMain.java95 static void tryBlah(int num) { in tryBlah() argument
98 switch (num) { in tryBlah()
/dalvik/tests/004-annotations/src/android/test/anno/
DSubNoted.java3 @AnnoFancyType(num=5) // first occurrence of AnnoFancyType
DAnnoFancyType.java9 public int num(); in num() method
DFullyNoted.java7 @AnnoFancyType(num=5, name="full")
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
DHttpsURLConnectionTest.java1344 int num; in run() local
1357 num = is.read(buff); in run()
1358 String message = new String(buff, 0, num); in run()
1367 num = is.read(buff); in run()
1368 message = new String(buff, 0, num); in run()
1390 num = is.read(buff); in run()
1391 if (num == -1) { in run()
1400 num = is.read(buff); in run()
1402 message = new String(buff, 0, num); in run()
1436 num = is.read(buff); in run()
[all …]
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/
DHttpURLConnectionTest.java103 int num = socket.getInputStream().read(buff); in run() local
108 num = socket.getInputStream().read(buff); in run()
109 if (num == -1) { in run()
113 num = socket.getInputStream().read(buff); in run()
115 String request = new String(buff, 0, num); in run()
/dalvik/tests/072-precise-gc/src/
DMain.java61 static String generateString(String base, int num) { in generateString() argument
62 return base + num; in generateString()
/dalvik/docs/
Dprettify.js289 var num = html.substring(pos + 3, end);
291 if (num && num.charAt(0) === 'x') {
292 num = num.substring(1);
295 var codePoint = parseInt(num, radix);
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/util/
DHexStringParser.java255 private void discardTrailingBits(long num) { in discardTrailingBits() argument
256 long mask = ~(-1L << num); in discardTrailingBits()
258 mantissa >>= num; in discardTrailingBits() local
/dalvik/libcore/luni/src/main/java/java/net/
DURI.java644 int num; in isValidIPv4Address() local
646 num = Integer.parseInt(host.substring(0, index)); in isValidIPv4Address()
647 if (num < 0 || num > 255) { in isValidIPv4Address()
651 num = Integer.parseInt(host.substring(index + 1, index2)); in isValidIPv4Address()
652 if (num < 0 || num > 255) { in isValidIPv4Address()
656 num = Integer.parseInt(host.substring(index2 + 1, index)); in isValidIPv4Address()
657 if (num < 0 || num > 255) { in isValidIPv4Address()
660 num = Integer.parseInt(host.substring(index + 1)); in isValidIPv4Address()
661 if (num < 0 || num > 255) { in isValidIPv4Address()
DURLClassLoader.java991 URLHandler getHandler(int num) { in getHandler() argument
992 if (num < handlerList.size()) { in getHandler()
993 return handlerList.get(num); in getHandler()
996 if (num < handlerList.size()) { in getHandler()
997 return handlerList.get(num); in getHandler()
/dalvik/libcore/luni/src/test/java/tests/api/java/io/
DSerializationStressTest5.java196 private void initClass(Class thrC, int num) { in initClass() argument
200 Throwable obj = (Throwable) cons[i].newInstance(args[num]); in initClass()
201 t_Class(obj, num); in initClass()
/dalvik/vm/arch/arm/
DCallEABI.S394 .macro SQUEAK num
395 common_squeak\num:
398 mov r1, #\num
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/x509/
DExtensions.java396 int num = 1; in dumpValue() local
399 .append('[').append(num++).append("]: "); //$NON-NLS-1$ in dumpValue()
/dalvik/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()
/dalvik/tests/004-annotations/
Dexpected.txt44 @android.test.anno.AnnoFancyType(name=unknown, num=5)
58 @android.test.anno.AnnoFancyType(name=full, num=5)
/dalvik/libcore/icu/src/main/native/
DConverterInterface.c791 int32_t num = ucnv_countAvailable(); in getAvailable() local
795 ret= (jobjectArray)(*env)->NewObjectArray( env,num, in getAvailable()
799 for(i=0;i<num;i++) { in getAvailable()
823 jint num =0; in countAliases() local
827 num = ucnv_countAliases(encName,&error); in countAliases()
832 return num; in countAliases()
/dalvik/libcore/luni/src/test/java/tests/api/java/util/
DLinkedHashMapTest.java543 assertEquals(1, cloneMap.num); in test_clone_Mock()
550 int num; field in LinkedHashMapTest.MockMap
553 num++; in put()
558 return num > 1; in removeEldestEntry()

12