Home
last modified time | relevance | path

Searched refs:numBytes (Results 1 – 21 of 21) sorted by relevance

/libcore/ojluni/src/main/java/sun/misc/
DCharacterEncoder.java144 int numBytes; in encode() local
150 numBytes = readFully(inStream, tmpbuffer); in encode()
151 if (numBytes == 0) { in encode()
154 encodeLinePrefix(outStream, numBytes); in encode()
155 for (j = 0; j < numBytes; j += bytesPerAtom()) { in encode()
157 if ((j + bytesPerAtom()) <= numBytes) { in encode()
160 encodeAtom(outStream, tmpbuffer, j, (numBytes)- j); in encode()
163 if (numBytes < bytesPerLine()) { in encode()
279 int numBytes; in encodeBuffer() local
285 numBytes = readFully(inStream, tmpbuffer); in encodeBuffer()
[all …]
/libcore/ojluni/src/main/java/sun/security/util/
DHexDumpEncoder.java153 int numBytes; in encode() local
159 numBytes = readFully(inStream, tmpbuffer); in encode()
160 if (numBytes == 0) { in encode()
163 encodeLinePrefix(outStream, numBytes); in encode()
164 for (j = 0; j < numBytes; j += bytesPerAtom()) { in encode()
166 if ((j + bytesPerAtom()) <= numBytes) { in encode()
169 encodeAtom(outStream, tmpbuffer, j, (numBytes)- j); in encode()
172 if (numBytes < bytesPerLine()) { in encode()
266 int numBytes; in encodeBuffer() local
272 numBytes = readFully(inStream, tmpbuffer); in encodeBuffer()
[all …]
/libcore/ojluni/src/main/native/
DFileChannelImpl.c189 size_t numBytes = 0; in FileChannelImpl_transferTo0() local
197 result = sendfilev64(dstFD, &sfv, 1, &numBytes); in FileChannelImpl_transferTo0()
202 if (numBytes > 0) in FileChannelImpl_transferTo0()
203 return numBytes; in FileChannelImpl_transferTo0()
218 off_t numBytes; in FileChannelImpl_transferTo0() local
221 numBytes = count; in FileChannelImpl_transferTo0()
223 result = sendfile(srcFD, dstFD, position, &numBytes, NULL, 0); in FileChannelImpl_transferTo0()
225 if (numBytes > 0) in FileChannelImpl_transferTo0()
226 return numBytes; in FileChannelImpl_transferTo0()
/libcore/ojluni/src/main/java/java/security/
DSecureRandom.java871 int numBytes = (numBits+7)/8; in next() local
872 byte[] b = new byte[numBytes]; in next()
876 for (int i = 0; i < numBytes; i++) { in next()
880 return next >>> (numBytes*8 - numBits); in next()
901 public static byte[] getSeed(int numBytes) { in getSeed() argument
907 return seedGen.generateSeed(numBytes); in getSeed()
919 public byte[] generateSeed(int numBytes) { in generateSeed() argument
920 if (numBytes < 0) { in generateSeed()
924 return secureRandomSpi.engineGenerateSeed(numBytes); in generateSeed()
927 return secureRandomSpi.engineGenerateSeed(numBytes); in generateSeed()
DSecureRandomSpi.java168 protected abstract byte[] engineGenerateSeed(int numBytes); in engineGenerateSeed() argument
DMessageDigest.java452 int numBytes = engineDigest(buf, offset, len); in digest() local
454 return numBytes; in digest()
/libcore/dalvik/src/main/java/dalvik/system/
DEmulatedStackFrame.java100 public final int numBytes; field in EmulatedStackFrame.Range
104 private Range(int referencesStart, int numReferences, int stackFrameStart, int numBytes) { in Range() argument
108 this.numBytes = numBytes; in Range()
131 int numBytes = 0; in of() local
148 numBytes += getSize(cl); in of()
152 return new Range(referencesStart, numReferences, stackFrameStart, numBytes); in of()
241 if (fromRange.numBytes > 0) { in copyRangeTo()
243 other.stackFrame, primitivesStart, fromRange.numBytes); in copyRangeTo()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DRandomImpl.java47 protected byte[] engineGenerateSeed(int numBytes) { in engineGenerateSeed() argument
49 byte[] b = new byte[numBytes]; in engineGenerateSeed()
/libcore/ojluni/src/test/java/util/Base64/
DTestBase64.java60 int numBytes = 200; in main() local
63 numBytes = Integer.parseInt(args[1]); in main()
66 test(Base64.getEncoder(), Base64.getDecoder(), numRuns, numBytes); in main() local
67 test(Base64.getUrlEncoder(), Base64.getUrlDecoder(), numRuns, numBytes); in main() local
68 test(Base64.getMimeEncoder(), Base64.getMimeDecoder(), numRuns, numBytes); in main() local
77 numRuns, numBytes); in main() local
80 numRuns, numBytes); in main() local
83 numRuns, numBytes); in main() local
90 numRuns, numBytes); in main() local
94 numRuns, numBytes); in main() local
[all …]
/libcore/luni/src/test/java/libcore/java/util/zip/
DGZIPInputStreamTest.java220 final int numBytes = 128; in testNoCloseInReadTrailerDueToRead() local
221 byte[] data = new byte[numBytes]; in testNoCloseInReadTrailerDueToRead()
244 assertEquals(numBytes, in.skip(numBytes+1)); in testNoCloseInReadTrailerDueToRead()
/libcore/ojluni/annotations/flagged_api/java/security/
DSecureRandom.annotated.java73 public static byte[] getSeed(int numBytes) { throw new RuntimeException("Stub!"); } in getSeed() argument
75 public byte[] generateSeed(int numBytes) { throw new RuntimeException("Stub!"); } in generateSeed() argument
DSecureRandomSpi.annotated.java44 protected abstract byte[] engineGenerateSeed(int numBytes); in engineGenerateSeed() argument
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DSecureRandomSpiTest.java54 protected byte[] engineGenerateSeed(int numBytes) { in engineGenerateSeed() argument
/libcore/ojluni/src/main/java/java/util/prefs/
DBase64.java241 int numBytes = Integer.parseInt(args[1]); in main() local
244 for (int j=0; j<numBytes; j++) { in main()
/libcore/luni/src/main/native/
Dlibcore_math_NativeBN.cpp103 size_t numBytes = len * sizeof(int); in NativeBN_litEndInts2bn() local
105 if (!BN_le2bn(tmpBytes, numBytes, ret)) { in NativeBN_litEndInts2bn()
/libcore/ojluni/src/main/java/java/lang/invoke/
DTransformers.java150 calleeFrame, range2, range1.numReferences, range1.numBytes); in transform()
1307 leadingRange.numReferences, leadingRange.numBytes + spreadBytes); in transform()
1310 leadingRange.numReferences + numArrayArgs, leadingRange.numBytes); in transform()
1318 leadingRange.numBytes); in transform()
1455 leadingRange.numReferences + 1, leadingRange.numBytes); in transform()
1459 … writer.attach(targetFrame, arrayOffset, leadingRange.numReferences, leadingRange.numBytes); in transform()
1461 … reader.attach(callerFrame, arrayOffset, leadingRange.numReferences, leadingRange.numBytes); in transform()
1712 writer.attach(targetFrame, pos, range1.numReferences, range1.numBytes); in transform()
1720 range1.numBytes + stackFrameOffset); in transform()
1791 leadingArgs.numBytes); in transform()
[all …]
/libcore/luni/src/test/java/libcore/java/security/
DSecureRandomSpiTest.java59 protected byte[] engineGenerateSeed(int numBytes) { in engineGenerateSeed() argument
DProviderTest.java1276 protected byte[] engineGenerateSeed(int numBytes) { in engineGenerateSeed() argument
/libcore/ojluni/src/test/java/math/BigInteger/
DBigIntegerTest.java1162 int numBytes = (order+7)/8; in fetchNumber() local
1163 byte[] fullBits = new byte[numBytes]; in fetchNumber()
1164 for(int i=0; i<numBytes; i++) in fetchNumber()
1166 int excessBits = 8*numBytes - order; in fetchNumber()
/libcore/luni/src/test/java/libcore/java/util/
DBase64Test.java870 for (int numBytes : new int [] { 0, 1, 2, 75, 76, 77, 80, 100, 1234 }) { in checkRoundTrip_variousSizes()
871 byte[] bytes = new byte[numBytes]; in checkRoundTrip_variousSizes()
/libcore/ojluni/src/main/java/java/math/
DBigInteger.java714 int numBytes = (int)(((long)numBits+7)/8); // avoid overflow in randomBits() local
715 byte[] randomBits = new byte[numBytes]; in randomBits()
718 if (numBytes > 0) { in randomBits()
720 int excessBits = 8*numBytes - numBits; in randomBits()