/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/common/ |
FwdLockGlue.h | 25 * Generates the specified number of cryptographically secure random bytes. 28 * @param[in] numBytes The number of random bytes to generate. 45 * @param[in] plaintextKeyLength The length in bytes of the plaintext key. 47 * @return The length in bytes of the encrypted key. 55 * @param[in] plaintextKeyLength The length in bytes of the plaintext key. 57 * @param[in] encryptedKeyLength The length in bytes of the encrypted key. 70 * @param[in] encryptedKeyLength The length in bytes of the encrypted key. 72 * @param[in] decryptedKeyLength The length in bytes of the decrypted key.
|
/libcore/benchmarks/src/benchmarks/regression/ |
CharsetBenchmark.java | 44 byte[] bytes = makeBytes(makeString(length)); 46 new String(bytes, name); 51 byte[] bytes = makeBytes(makeString(length)); 53 new String(bytes, 0, bytes.length); 58 byte[] bytes = makeBytes(makeString(length)); 60 new String(bytes, 0, bytes.length, name);
|
/libcore/luni/src/main/java/java/nio/channels/ |
ReadableByteChannel.java | 24 * bytes. 34 * Reads bytes from the channel into the given buffer. 36 * The maximum number of bytes that will be read is the 37 * {@link java.nio.Buffer#remaining() remaining} number of bytes in the 38 * buffer when the method is invoked. The bytes will be read into the buffer 46 * the bytes that were read. The buffer's 50 * the byte buffer to receive the bytes. 51 * @return the number of bytes actually read.
|
WritableByteChannel.java | 24 * bytes. 34 * Writes bytes from the given buffer to the channel. 36 * The maximum number of bytes that will be written is the 37 * <code>remaining()</code> number of bytes in the buffer when the method 38 * invoked. The bytes will be written from the buffer starting at the 45 * end of the bytes that were written. The buffer's <code>limit()</code> 49 * the byte buffer containing the bytes to be written. 50 * @return the number of bytes actually written.
|
/libcore/luni/src/main/java/java/nio/charset/ |
Charsets.java | 26 * Returns a new byte array containing the bytes corresponding to the given characters, 32 * Returns a new byte array containing the bytes corresponding to the given characters, 38 * Returns a new byte array containing the bytes corresponding to the given characters, 44 * Returns a new byte array containing the bytes corresponding to the given characters, 60 * Decodes the given US-ASCII bytes into the given char[]. Equivalent to but faster than: 67 public static native void asciiBytesToChars(byte[] bytes, int offset, int length, char[] chars); 70 * Decodes the given ISO-8859-1 bytes into the given char[]. Equivalent to but faster than: 76 public static native void isoLatin1BytesToChars(byte[] bytes, int offset, int length, char[] chars);
|
/packages/apps/Gallery2/jni_jpegstream/src/ |
jpeg_reader.h | 49 * Decompresses bytes from the InputStream and writes at most count 50 * bytes into the buffer, bytes, starting at some offset. Passing a 51 * NULL as the bytes pointer effectively skips those bytes. 53 * ***This method will result in bytes being read from the InputStream*** 55 * Returns the number of bytes written into the input buffer or a 58 int32_t read(int8_t * bytes, int32_t offset, int32_t count);
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
MessageDigest1Test.java | 56 final byte[] bytes = { 1, 2, 3, 4, 5 }; 57 md.update(bytes, 1, 2); 69 md.update(bytes, 0, bytes.length + 1); 75 md.update(bytes, Integer.MAX_VALUE, 1); 85 assertSame("buf", bytes, arg0); 91 md.update(bytes, offset, len); 150 final byte[] bytes = new byte[] { 2, 4, 1 }; 159 md.digest(bytes, 0, bytes.length + 1) [all...] |
/external/chromium_org/third_party/tlslite/tlslite/utils/ |
compat.py | 62 def bytesToString(bytes): 63 return bytes.tostring() 65 bytes = createByteArrayZeros(0) 66 bytes.fromstring(s) 67 return bytes 102 return jarray.array(seq, 'h') #use short instead of bytes, cause bytes are signed 104 return jarray.zeros(howMany, 'h') #use short instead of bytes, cause bytes are signed 110 def bytesToString(bytes) [all...] |
/external/llvm/lib/Target/SystemZ/ |
SystemZSelectionDAGInfo.cpp | 38 uint64_t Bytes = CSize->getZExtValue(); 39 if (Bytes >= 1 && Bytes <= 0x100) { 48 // Handle a memset of 1, 2, 4 or 8 bytes with the operands given by 74 uint64_t Bytes = CSize->getZExtValue(); 75 if (Bytes == 0) 84 Bytes <= 16 && CountPopulation_64(Bytes) <= 2 : 85 Bytes <= 4) { 86 unsigned Size1 = Bytes == 16 ? 8 : 1 << findLastSet(Bytes) [all...] |
/external/openssh/ |
bufbn.c | 56 * by (bits+7)/8 bytes of binary data, msb first. 76 /* Store the number of bits in the buffer in two bytes, msb first. */ 101 u_int bits, bytes; local 110 /* Compute the number of binary bytes that follow. */ 111 bytes = (bits + 7) / 8; 112 if (bytes > 8 * 1024) { 113 error("buffer_get_bignum_ret: cannot handle BN of size %d", bytes); 116 if (buffer_len(buffer) < bytes) { 121 if (BN_bin2bn(bin, bytes, value) == NULL) { 125 if (buffer_consume_ret(buffer, bytes) == -1) 145 u_int bytes; local [all...] |
/external/valgrind/main/gdbserver_tests/ |
mcvabits.stderrB.exp | 4 Address 0x........ is 0 bytes inside data symbol "undefined" 6 Address 0x........ is 0 bytes inside data symbol "undefined" 9 Address 0x........ is 0 bytes inside data symbol "undefined" 12 Address 0x........ is 0 bytes inside data symbol "undefined" 15 Address 0x........ is 0 bytes inside data symbol "undefined" 18 Address 0x........ is 0 bytes inside data symbol "undefined" 21 Address 0x........ is 0 bytes inside data symbol "undefined" 24 Address 0x........ is 0 bytes inside data symbol "undefined" 27 Address 0x........ is 0 bytes inside data symbol "undefined" 30 Address 0x........ is 0 bytes inside data symbol "undefined [all...] |
mcleak.stdoutB.exp | 6 16 fprintf(stderr, "expecting details 10 bytes reachable\n"); fflush(stderr); breakme(); 16 24 fprintf(stderr, "expecting details +10 bytes lost, +21 bytes reachable\n"); fflush(stderr); breakme(); 21 29 fprintf(stderr, "expecting details +65 bytes reachable\n"); fflush(stderr); breakme(); 31 36 fprintf(stderr, "expecting details +10 bytes reachable\n"); fflush(stderr); breakme(); 36 40 fprintf(stderr, "expecting details -10 bytes reachable, +10 bytes lost\n"); fflush(stderr); breakme(); 41 44 fprintf(stderr, "expecting details -10 bytes lost, +10 bytes reachable\n"); fflush(stderr); breakme(); 46 48 fprintf(stderr, "expecting details 32 (+32) bytes lost, 33 (-32) bytes reachable\n"); fflush(stderr); breakme() [all...] |
/dalvik/dx/src/com/android/dx/cf/cst/ |
ConstantPoolParser.java | 56 /** {@code non-null;} the bytes of the constant pool */ 57 private final ByteArray bytes; field in class:ConstantPoolParser 78 * @param bytes {@code non-null;} the bytes of the file 80 public ConstantPoolParser(ByteArray bytes) { 81 int size = bytes.getUnsignedShort(8); // constant_pool_count 83 this.bytes = bytes; 135 observer.parsed(bytes, 8, 2, 137 observer.parsed(bytes, 10, 0, "\nconstant_pool:") [all...] |
/external/chromium_org/third_party/sfntly/cpp/src/sfntly/data/ |
writable_font_data.h | 41 // the bytes passed in to the factory and it will take make a copy of those 42 // bytes. 50 // @return the number of bytes written 53 // Write the bytes from the array. 55 // @param b the source for the bytes to be written 57 // @param length the length of the bytes to be written 58 // @return the number of bytes actually written; -1 if the index is outside 65 // Write the bytes from the array. 67 // @param b the source for the bytes to be written 68 // @return the number of bytes actually written; -1 if the index is outsid [all...] |
/external/sfntly/cpp/src/sfntly/data/ |
writable_font_data.h | 41 // the bytes passed in to the factory and it will take make a copy of those 42 // bytes. 50 // @return the number of bytes written 53 // Write the bytes from the array. 55 // @param b the source for the bytes to be written 57 // @param length the length of the bytes to be written 58 // @return the number of bytes actually written; -1 if the index is outside 65 // Write the bytes from the array. 67 // @param b the source for the bytes to be written 68 // @return the number of bytes actually written; -1 if the index is outsid [all...] |
/development/apps/Development/src/com/android/development/ |
LogViewer.java | 99 byte[] bytes = new byte[length]; 100 in.readFully(bytes); 102 int tagEnd = next0(bytes, HEADER_SIZE); 103 int fileEnd = next0(bytes, tagEnd + 1); 104 int messageEnd = next0(bytes, fileEnd + 1); 107 = forAsciiBytes(bytes, HEADER_SIZE, tagEnd); 109 = forAsciiBytes(bytes, fileEnd + 1, messageEnd); 131 static int next0(byte[] bytes, int start) { 132 for (int current = start; current < bytes.length; current++) { 133 if (bytes[current] == 0 [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/ |
PBEParametersGenerator.java | 24 * @param password the password converted into bytes (see below). 108 byte[] bytes = new byte[password.length]; 110 for (int i = 0; i != bytes.length; i++) 112 bytes[i] = (byte)password[i]; 115 return bytes; 145 * PKCS12 (unicode, big endian, 2 zero pad bytes at the end). 155 // +1 for extra 2 pad bytes. 156 byte[] bytes = new byte[(password.length + 1) * 2]; 160 bytes[i * 2] = (byte)(password[i] >>> 8); 161 bytes[i * 2 + 1] = (byte)password[i] [all...] |
/external/chromium_org/media/filters/ |
h264_to_annex_b_bitstream_converter.h | 29 // Size of the buffer in bytes. 45 // Size of the buffer in bytes. 61 // some bytes to buffer pointed by pinput but user should ignore those bytes. 68 // Size of the buffer in bytes. 73 // bytes written to output after successful call. 90 // some bytes to buffer pointed by pinput but user should ignore those bytes. 97 // Size of the buffer in bytes. 102 // bytes written to output after successful call [all...] |
/system/core/include/diskconfig/ |
diskconfig.h | 66 struct chs start; /* bytes 1-3 */ 68 struct chs end; /* bytes 5-7 */ 69 uint32_t start_lba; /* bytes 8-11 */ 70 uint32_t len_lba; /* bytes 12-15 */ 74 uint8_t code[440]; /* bytes 0-439 */ 75 uint32_t disk_sig; /* bytes 440-443 */ 76 uint16_t pad; /* bytes 444-445 */ 77 struct pc_partition ptable[PC_NUM_BOOT_RECORD_PARTS]; /* bytes 446-509 */ 78 uint16_t mbr_sig; /* bytes 510-511 */ 85 uint32_t len_kb; /* in 1K-bytes */ [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
DataOutputStreamTest.java | 26 private ByteArrayOutputStream bytes = new ByteArrayOutputStream(); field in class:DataOutputStreamTest 27 private DataOutputStream os = new DataOutputStream(bytes); 32 assertEquals("[01, 00]", toHexString(bytes.toByteArray())); 42 assertEquals("[ff, 00, 01, 81, 34]", toHexString(bytes.toByteArray())); 48 assertEquals("[30, 34, 31]", toHexString(bytes.toByteArray())); 55 assertEquals("[00, 30, 12, 34]", toHexString(bytes.toByteArray())); 61 assertEquals("[00, 30, 12, 34, 00, 31]", toHexString(bytes.toByteArray())); 66 assertEquals("[01, 23, 45, 67, 89, ab, cd, ef]", toHexString(bytes.toByteArray())); 71 assertEquals("[01, 23, 45, 67]", toHexString(bytes.toByteArray())); 76 assertEquals("[01, 23, 45, 67]", toHexString(bytes.toByteArray())) [all...] |
/external/chromium_org/sync/internal_api/public/base/ |
ordinal.h | 32 // An Ordinal<T> is internally represented as an array of bytes, so it 77 // Creates an Ordinal from the given string of bytes. The Ordinal 79 explicit Ordinal(const std::string& bytes); 127 // Returns the string of bytes representing the Ordinal. It is 157 static bool IsValidOrdinalBytes(const std::string& bytes); 159 // Returns the length that bytes.substr(0, length) would be with 162 const std::string& bytes, 167 static uint8 GetDigit(const std::string& bytes, size_t i); 170 static int GetDigitValue(const std::string& bytes, size_t i); 172 // Adds the given value to |bytes| at position i, carrying whe [all...] |
/dalvik/dx/src/com/android/dx/command/dump/ |
BlockDumper.java | 73 * @param bytes {@code non-null;} bytes of the (alleged) class file 80 public static void dump(byte[] bytes, PrintStream out, 82 BlockDumper bd = new BlockDumper(bytes, out, filePath, 91 BlockDumper(byte[] bytes, PrintStream out, String filePath, 93 super(bytes, out, filePath, args); 106 byte[] bytes = getBytes(); 107 ByteArray ba = new ByteArray(bytes); 135 public void parsed(ByteArray bytes, int offset, int len, String human) { 137 super.parsed(bytes, offset, len, human) 211 ByteArray bytes = code.getBytes(); local 287 ByteArray bytes = code.getBytes(); local [all...] |
/dalvik/dx/src/com/android/dx/cf/direct/ |
CodeObserver.java | 40 private final ByteArray bytes; field in class:CodeObserver 48 * @param bytes {@code non-null;} actual array of bytecode 51 public CodeObserver(ByteArray bytes, ParseObserver observer) { 52 if (bytes == null) { 53 throw new NullPointerException("bytes == null"); 60 this.bytes = bytes; 66 observer.parsed(bytes, offset, length, header(offset)); 71 observer.parsed(bytes, offset, length, header(offset)); 91 observer.parsed(bytes, offset, length [all...] |
/external/chromium_org/remoting/base/ |
compound_buffer.cc | 93 void CompoundBuffer::CropFront(int bytes) { 96 if (total_bytes_ <= bytes) { 101 total_bytes_ -= bytes; 102 while (!chunks_.empty() && chunks_.front().size <= bytes) { 103 bytes -= chunks_.front().size; 106 if (!chunks_.empty() && bytes > 0) { 107 chunks_.front().start += bytes; 108 chunks_.front().size -= bytes; 110 bytes = 0; 112 DCHECK_EQ(bytes, 0) [all...] |
/external/tremolo/Tremolo/ |
misc.c | 58 long bytes; member in struct:__anon26919 64 static void *_insert(void *ptr,long bytes,char *file,long line){ 68 ((head *)ptr)->bytes=bytes-HEAD_ALIGN; 113 file_bytes[i]+=bytes-HEAD_ALIGN; 122 file_bytes[i]-(bytes-HEAD_ALIGN)); 132 global_bytes+(bytes-HEAD_ALIGN)); 137 global_bytes+=(bytes-HEAD_ALIGN); 152 long bytes =((head *)ptr)->bytes; local [all...] |