/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
MessageDigest1Test.java | 59 final byte[] bytes = { 1, 2, 3, 4, 5 }; 60 md.update(bytes, 1, 2); 72 md.update(bytes, 0, bytes.length + 1); 78 md.update(bytes, Integer.MAX_VALUE, 1); 88 assertSame("buf", bytes, arg0); 94 md.update(bytes, offset, len); 153 final byte[] bytes = new byte[] { 2, 4, 1 }; 162 md.digest(bytes, 0, bytes.length + 1) [all...] |
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/ |
ByteBufferInputStream.java | 39 public int read(byte[] bytes, int off, int len) { 45 mBuf.get(bytes, off, len);
|
/libcore/luni/src/test/java/libcore/java/util/ |
BitSetTest.java | 80 private static void assertBitSet(BitSet bs, byte[] bytes, String s) { 81 for (int i = 0; i < 8 * bytes.length; ++i) { 82 assertEquals(bs.toString(), ((bytes[i / 8] & (1L << (i % 8))) != 0), bs.get(i)); 85 for (int i = 0; i < bytes.length; ++i) { 86 cardinality += Integer.bitCount(((int) bytes[i]) & 0xff); 94 assertEquals(roundUp(8 * bytes.length, 64), bs.size()); 102 private static void assertBitSet(byte[] bytes, String s) { 104 assertBitSet(BitSet.valueOf(bytes), bytes, s); local 106 assertBitSet(BitSet.valueOf(ByteBuffer.wrap(bytes)), bytes, s) local 111 assertBitSet(BitSet.valueOf(ByteBuffer.wrap(paddedBytes, 1, bytes.length)), bytes, s); local [all...] |
/external/guava/guava/src/com/google/common/net/ |
InetAddresses.java | 52 * are 4 and 16 bytes in length, respectively, and represent the address 133 * @param bytes byte array representing an IPv4 address (should be 140 private static Inet4Address getInet4Address(byte[] bytes) { 141 Preconditions.checkArgument(bytes.length == 4, 143 bytes.length); 146 InetAddress ipv4 = InetAddress.getByAddress(bytes); 168 Arrays.toString(bytes)), 265 byte[] bytes = new byte[IPV4_PART_COUNT]; 267 for (int i = 0; i < bytes.length; i++) { 268 bytes[i] = parseOctet(address[i]) [all...] |
/cts/tools/cfassembler/src/dxconvext/ |
ClassFileAssembler.java | 57 // 2. modify some bytes to damage the structure of the .class file in a 60 // Uncomment the original bytes, and write "MOD:" meaning a modified 65 // file, parses them as hex values and writes the bytes to the class file 126 * @param bytes non-null; the bytes of the file 128 private void calcSignature(byte[] bytes) { 137 md.update(bytes, 32, bytes.length - 32); 140 int amt = md.digest(bytes, 12, 20); 143 " bytes"); [all...] |
/dalvik/dx/src/com/android/dx/command/dump/ |
BaseDumper.java | 38 private final byte[] bytes; field in class:BaseDumper 40 /** whether or not to include the raw bytes (in a column on the left) */ 58 /** number of bytes per line in hex dumps */ 76 * @param bytes {@code non-null;} bytes of the (alleged) class file 82 public BaseDumper(byte[] bytes, PrintStream out, 84 this.bytes = bytes; 126 public void parsed(ByteArray bytes, int offset, int len, String human) { 127 offset = bytes.underlyingOffset(offset, getBytes()) [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/bluetooth/bluedroid/btif/src/ |
btif_config.c | 61 #define GET_CHILD_MAX_COUNT(node) (short)((int)(node)->bytes / sizeof(cfg_node)) 63 #define GET_NODE_COUNT(bytes) (bytes / sizeof(cfg_node)) 80 short bytes; member in struct:cfg_node_s 99 const char* value, short bytes, short type); 102 static short find_next_node(const cfg_node* p, short start, char* name, int* bytes); 112 BTIF_TRACE_DEBUG4("%s, p->name:%s, child/value:%p, bytes:%d", 113 title, p->name, p->child, p->bytes); 179 int btif_config_get(const char* section, const char* key, const char* name, char* value, int* bytes, int* type) 182 asrt(section && *section && key && *key && name && *name && bytes && type) [all...] |
/external/openssl/crypto/rand/ |
randfile.c | 108 int RAND_load_file(const char *file, long bytes) 110 /* If bytes >= 0, read up to 'bytes' bytes. 111 * if bytes == -1, read complete file. */ 134 if (bytes == 0) return(ret); 145 * of bytes from a random device, nor do we want to use buffered 148 bytes = (bytes == -1) ? 2048 : bytes; /* ok, is 2048 enough? * [all...] |
/libcore/luni/src/main/java/java/io/ |
OutputStreamWriter.java | 30 * the target input stream is converted into bytes by either a default or a 33 * of bytes to be written to target stream and converts these into characters as 44 private ByteBuffer bytes = ByteBuffer.allocate(8192); field in class:OutputStreamWriter 52 * the non-null target stream to write converted bytes to. 65 * the target stream to write converted bytes to. 95 * the target stream to write converted bytes to. 113 * the target stream to write converted bytes to. 143 bytes = null; 149 * Flushes this writer. This implementation ensures that all buffered bytes 150 * are written to the target stream. After writing the bytes, the targe [all...] |
/packages/apps/Nfc/src/com/android/nfc/snep/ |
SnepMessage.java | 97 byte[] bytes = new byte[ndefLength]; 98 System.arraycopy(data, ndefOffset, bytes, 0, ndefLength); 99 mNdefMessage = new NdefMessage(bytes); 115 byte[] bytes; 117 bytes = mNdefMessage.toByteArray(); 119 bytes = new byte[0]; 125 buffer = new ByteArrayOutputStream(bytes.length + HEADER_LENGTH + 4); 127 buffer = new ByteArrayOutputStream(bytes.length + HEADER_LENGTH); 134 output.writeInt(bytes.length + 4); 137 output.writeInt(bytes.length) [all...] |
/system/netd/ |
BandwidthController.h | 55 int setInterfaceSharedQuota(const char *iface, int64_t bytes); 56 int getInterfaceSharedQuota(int64_t *bytes); 59 int setInterfaceQuota(const char *iface, int64_t bytes); 60 int getInterfaceQuota(const char *iface, int64_t *bytes); 66 int setGlobalAlert(int64_t bytes); 71 int setSharedAlert(int64_t bytes); 74 int setInterfaceAlert(const char *iface, int64_t bytes); 118 int runIptablesAlertCmd(IptOp op, const char *alertName, int64_t bytes); 119 int runIptablesAlertFwdCmd(IptOp op, const char *alertName, int64_t bytes); 133 int updateQuota(const char *alertName, int64_t bytes); [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/tech/ |
NfcUtils.java | 49 static CharSequence displayByteArray(byte[] bytes) { 51 for (int i = 0; i < bytes.length; i++) { 52 builder.append(Byte.toString(bytes[i])); 53 if (i + 1 < bytes.length) {
|
/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/ |
ChatManager.java | 37 int bytes; local 44 bytes = iStream.read(buffer); 45 if (bytes == -1) { 49 // Send the obtained bytes to the UI Activity 52 bytes, -1, buffer).sendToTarget();
|
/external/chromium/base/win/ |
scoped_bstr.cc | 51 BSTR ScopedBstr::AllocateBytes(size_t bytes) { 52 Reset(SysAllocStringByteLen(NULL, static_cast<UINT>(bytes))); 56 void ScopedBstr::SetByteLen(size_t bytes) { 59 data[-1] = static_cast<uint32>(bytes);
|
/external/dhcpcd/ |
signals.c | 70 ssize_t bytes; local 73 bytes = read(signal_pipe[0], buf, sizeof(buf)); 74 if (bytes >= 0 && (size_t)bytes >= sizeof(sig))
|
/external/flac/libFLAC/include/private/ |
md5.h | 15 * To compute the message digest of a chunk of bytes, declare an 17 * needed on buffers full of bytes, and then call MD5Final, which 34 FLAC__uint32 bytes[2]; member in struct:__anon8125
|
/external/icu4c/test/intltest/ |
testutil.h | 30 static UnicodeString hex(const uint8_t* bytes, int32_t len);
|
/external/libvpx/libvpx/ |
md5_utils.h | 12 * To compute the message digest of a chunk of bytes, declare an 14 * needed on buffers full of bytes, and then call MD5Final, which 33 UWORD32 bytes[2]; member in struct:MD5Context
|
/external/llvm/lib/Target/X86/ |
X86MachineFunctionInfo.h | 33 /// stack frame in bytes. 36 /// BytesToPopOnReturn - Number of bytes function pops on return (in addition 44 /// TailCallReturnAddrDelta - The number of bytes by which return address 66 /// ArgumentStackSize - The number of bytes on stack consumed by the arguments 106 void setCalleeSavedFrameSize(unsigned bytes) { CalleeSavedFrameSize = bytes; } 109 void setBytesToPopOnReturn (unsigned bytes) { BytesToPopOnReturn = bytes;}
|
/external/skia/legacy/include/core/ |
SkGraphics.h | 36 * Return the max number of bytes that should be used by the font cache. 43 * Specify the max number of bytes that should be used by the font cache. 49 static size_t SetFontCacheLimit(size_t bytes);
|
/external/skia/src/utils/mac/ |
SkStream_mac.cpp | 20 static size_t get_bytes_proc(void* info, void* buffer, size_t bytes) { 22 return ((SkStream*)info)->read(buffer, bytes); 25 static off_t skip_forward_proc(void* info, off_t bytes) { 26 return ((SkStream*)info)->skip((size_t) bytes);
|
/external/smack/src/org/xbill/DNS/ |
Address.java | 187 * Convert a string containing an IP address to an array of 4 or 16 bytes. 298 byte [] bytes; 299 bytes = toByteArray(addr, IPv4); 300 if (bytes != null) 301 return InetAddress.getByAddress(addr, bytes); 302 bytes = toByteArray(addr, IPv6); 303 if (bytes != null) 304 return InetAddress.getByAddress(addr, bytes); 321 byte [] bytes; 322 bytes = toByteArray(addr, family) [all...] |
/external/smali/baksmali/src/main/java/org/jf/baksmali/ |
dump.java | 85 byte[] bytes = out.toByteArray(); 87 DexFile.calcSignature(bytes); 88 DexFile.calcChecksum(bytes); 93 fileOutputStream.write(bytes);
|
/external/speex/include/speex/ |
speex_bits.h | 80 void speex_bits_read_from(SpeexBits *bits, char *bytes, int len); 82 /** Append bytes to the bit-stream 85 * @param bytes pointer to the bytes what will be appended 86 * @param len Number of bytes of append 88 void speex_bits_read_whole_bytes(SpeexBits *bits, char *bytes, int len); 93 * @param bytes Memory location where to write the bits 94 * @param max_len Maximum number of bytes to write (i.e. size of the "bytes" buffer) 95 * @return Number of bytes written to the "bytes" buffe [all...] |