/dalvik/libcore/security/src/main/java/org/apache/harmony/security/provider/crypto/ |
RandomBitsSupplier.java | 126 private static synchronized byte[] getUnixDeviceRandom(int numBytes) { 128 byte[] bytes = new byte[numBytes]; 136 bytesRead = bis.read(bytes, offset, numBytes-total); 149 if ( total >= numBytes ) { 172 // private static native synchronized boolean getUnixSystemRandom(byte[] randomBits, int numBytes); 181 * numBytes - length of bytes requested 185 * InvalidArgumentException - if numBytes <= 0 187 public static byte[] getRandomBits(int numBytes) { 189 if ( numBytes <= 0 ) { 190 throw new IllegalArgumentException(Messages.getString("security.195", numBytes)); //$NON-NLS-1 [all...] |
/external/opencore/fileformats/mp4/composer/src/ |
basedescriptor.cpp | 51 int32 numBytes = renderSizeOfClassToFileStream(fp); 53 if (numBytes > 0) 55 numBytesRendered += numBytes;
|
es_id_inc.cpp | 62 int32 numBytes = renderBaseDescriptorMembers(fp); 64 if (numBytes == 0) 68 rendered += numBytes; // (1 + 1(variable) for _sizeOfClass)
|
es_id_ref.cpp | 60 int32 numBytes = renderBaseDescriptorMembers(fp); 62 if (numBytes == 0) 66 rendered += numBytes; // (1 + 1(variable) for _sizeOfClass)
|
slconfigdescriptor.cpp | 77 int32 numBytes = renderBaseDescriptorMembers(fp); 79 if (numBytes == 0) 83 rendered += numBytes;
|
decoderconfigdescriptor.cpp | 153 int32 numBytes = renderBaseDescriptorMembers(fp); 155 if (numBytes == 0) 159 rendered += numBytes;
|
esdescriptor.cpp | 104 int32 numBytes = renderBaseDescriptorMembers(fp); 106 if (numBytes == 0) 110 rendered += numBytes; // (1 + variable for _sizeOfClass)
|
/external/openssl/crypto/rand/ |
rand_egd.c | 95 * RAND_egd() is a wrapper for RAND_egd_bytes() with numbytes=255. 140 int len, num, numbytes; local 191 numbytes = 0; 192 while (numbytes != 2) 194 num = write(fd, egdbuf + numbytes, 2 - numbytes); 196 numbytes += num; 215 numbytes = 0; 216 while (numbytes != 1) 222 numbytes += num [all...] |
/dalvik/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
RandomImpl.java | 47 protected byte[] engineGenerateSeed(int numBytes) { 49 byte[] b = new byte[numBytes];
|
/packages/apps/IM/libwbxml/src/ |
wbxml_encoder.cpp | 48 int numBytes = 4; 50 numBytes--; 53 if (!numBytes) { 56 numBytes = 1; 59 appendResult(numBytes); 60 while (numBytes) { 61 numBytes--; 62 appendResult((val >> (numBytes * 8)) & 0xff);
|
/packages/apps/Email/tests/src/com/android/exchange/utility/ |
SimpleIcsWriterTests.java | 84 int numBytes = 0; 90 assertTrue("input=" + input, numBytes <= 75); 91 numBytes = 0; 94 numBytes++; 96 assertTrue("input=" + input, numBytes <= 75);
|
/frameworks/base/core/java/android/speech/srec/ |
WaveHeader.java | 31 * <li> numBytes - size of audio data after this header, in bytes. 71 * @param numBytes size of audio data after this header, in bytes. 73 public WaveHeader(short format, short numChannels, int sampleRate, short bitsPerSample, int numBytes) { 78 mNumBytes = numBytes; 167 * @param numBytes size of audio data after this header, in bytes. 170 public WaveHeader setNumBytes(int numBytes) { 171 mNumBytes = numBytes; 184 int numBytes = readInt(in) - 36; 272 "WaveHeader format=%d numChannels=%d sampleRate=%d bitsPerSample=%d numBytes=%d",
|
/dalvik/libcore/security/src/main/java/java/security/ |
SecureRandomSpi.java | 55 * @param numBytes 59 protected abstract byte[] engineGenerateSeed(int numBytes);
|
SecureRandom.java | 319 * @param numBytes 323 public static byte[] getSeed(int numBytes) { 327 return internalSecureRandom.generateSeed(numBytes); 334 * @param numBytes 338 public byte[] generateSeed(int numBytes) { 339 return secureRandomSpi.engineGenerateSeed(numBytes);
|
/frameworks/base/media/tests/omxjpegdecoder/ |
omx_jpeg_decoder.cpp | 53 int numBytes = numChars * sizeof(char); 54 size -= numBytes; 55 data += numBytes; 74 int numBytes = numChars * sizeof(char); 75 size -= numBytes; 76 data += numBytes;
|
/external/opencore/codecs_v2/audio/mp3/dec/src/ |
pvmp3_get_main_data_size.cpp | 121 int32 numBytes = fxp_mul32_Q28(mp3_bitrate[info->version_x][info->bitrate_index] << 20, 125 numBytes >>= (20 - info->version_x); 132 pVars->predicted_frame_size = numBytes; 135 numBytes -= 17; 139 numBytes -= 32; 144 numBytes >>= 1; 145 pVars->predicted_frame_size = numBytes; 149 numBytes -= 9; 153 numBytes -= 17; 159 numBytes++ [all...] |
/frameworks/base/media/libstagefright/codecs/mp3dec/src/ |
pvmp3_get_main_data_size.cpp | 121 int32 numBytes = fxp_mul32_Q28(mp3_bitrate[info->version_x][info->bitrate_index] << 20, 125 numBytes >>= (20 - info->version_x); 132 pVars->predicted_frame_size = numBytes; 135 numBytes -= 17; 139 numBytes -= 32; 144 numBytes >>= 1; 145 pVars->predicted_frame_size = numBytes; 149 numBytes -= 9; 153 numBytes -= 17; 159 numBytes++ [all...] |
/external/webkit/WebCore/platform/text/ |
TextCodecUTF16.cpp | 73 size_t numBytes = length + m_haveBufferedByte; 74 size_t numChars = numBytes / 2; 105 if (numBytes & 1) {
|
/packages/apps/Email/src/com/android/exchange/utility/ |
SimpleIcsWriter.java | 41 int numBytes = 0; 47 if (numBytes > (MAX_LINE_LENGTH - CHAR_MAX_BYTES_IN_UTF8) 52 numBytes = 1; // for TAB 55 numBytes++;
|
/external/opencore/codecs_v2/utilities/m4v_config_parser/src/ |
m4v_config_parser.cpp | 74 if (byte_pos > (psBits->numBytes - psBits->bytePos)) 76 byte_pos = (psBits->numBytes - psBits->bytePos); 93 i = LocateFrameHeader(ptr, psBits->numBytes - initial_byte_aligned_position); 94 if (psBits->numBytes <= initial_byte_aligned_position + i) 124 psBits.numBytes = length; 246 if (psBits->dataBitPos >= (psBits->numBytes << 3)) 615 if (dataBytePos > pStream->numBytes - 4) 618 for (i = 0; i < pStream->numBytes - dataBytePos; i++) 652 if ((dataBitPos + ucNBits) > (uint32)(pStream->numBytes << 3)) 684 if ((dataBitPos + ucNBits) > (pStream->numBytes << 3) [all...] |
/hardware/ti/omap3/omx/ti_omx_config_parser/src/ |
ti_m4v_config_parser.cpp | 74 if (byte_pos > (psBits->numBytes - psBits->bytePos)) 76 byte_pos = (psBits->numBytes - psBits->bytePos); 93 i = LocateFrameHeader(ptr, psBits->numBytes - initial_byte_aligned_position); 94 if (psBits->numBytes <= initial_byte_aligned_position + i) 107 psBits.numBytes = length; 233 if (psBits->dataBitPos >= (psBits->numBytes << 3)) 640 if (dataBytePos > pStream->numBytes - 4) 643 for (i = 0;i < pStream->numBytes - dataBytePos;i++) 677 if ((dataBitPos + ucNBits) > (uint32)(pStream->numBytes << 3)) 709 if ((dataBitPos + ucNBits) > (pStream->numBytes << 3) [all...] |
/external/webkit/WebKit/mac/Misc/ |
WebNSURLExtras.mm | 629 CFIndex numBytes = CFURLGetBytes((CFURLRef)self, buffer, 2048); 630 if (numBytes == -1) { 631 numBytes = CFURLGetBytes((CFURLRef)self, NULL, 0); 632 urlBytes = static_cast<UInt8*>(malloc(numBytes)); 633 CFURLGetBytes((CFURLRef)self, urlBytes, numBytes); 666 CFIndex numBytes = CFURLGetBytes((CFURLRef)self, buffer, 2048); 667 if (numBytes == -1) { 668 numBytes = CFURLGetBytes((CFURLRef)self, NULL, 0); 669 urlBytes = static_cast<UInt8*>(malloc(numBytes)); 670 CFURLGetBytes((CFURLRef)self, urlBytes, numBytes); [all...] |
/external/webkit/WebCore/platform/graphics/chromium/ |
VDMXParser.cpp | 51 bool skip(size_t numBytes) 53 if (m_offset + numBytes > m_length) 55 m_offset += numBytes;
|
/external/webkit/WebKit/mac/Plugins/ |
WebNetscapePluginEventHandlerCarbon.mm | 307 ByteCount numBytes; 308 status = GetEventParameter(rawKeyEventRef, kEventParamKeyMacCharCodes, typeChar, NULL, 0, &numBytes, NULL); 313 char *buffer = (char *)malloc(numBytes); 314 status = GetEventParameter(rawKeyEventRef, kEventParamKeyMacCharCodes, typeChar, NULL, numBytes, NULL, buffer); 323 for (i = 0; i < numBytes; i++) {
|
/frameworks/base/core/java/com/android/internal/os/ |
LoggingPrintStream.java | 133 int numBytes = Math.min(encodedBytes.remaining(), end - start); 134 encodedBytes.put(bytes, start, numBytes); 135 start += numBytes;
|