/external/bouncycastle/src/main/java/org/bouncycastle/asn1/ |
DEROctetString.java | 32 byte[] bytes) 35 derOut.writeEncoded(DERTags.OCTET_STRING, bytes);
|
DERBitString.java | 66 * return the correct number of bytes for a bit string defined in 71 int bytes = 4; local 78 bytes--; 81 byte[] result = new byte[bytes]; 82 for (int i = 0; i < bytes; i++) 202 byte[] bytes = new byte[getBytes().length + 1]; 204 bytes[0] = (byte)getPadBits(); 205 System.arraycopy(getBytes(), 0, bytes, 1, bytes.length - 1); local 207 out.writeEncoded(BIT_STRING, bytes); [all...] |
ASN1InputStream.java | 108 byte[] bytes) 111 if (Streams.readFully(this, bytes) != bytes.length) 118 * build an object given its tag and the number of bytes to construct it from. 325 throw new IOException("DER length more than 4 bytes: " + size); 357 byte[] bytes) 362 return DERBitString.fromOctetString(bytes); 364 return new DERBMPString(bytes); 367 return DERBoolean.getInstance(bytes); 370 return new ASN1Enumerated(bytes); [all...] |
/external/chromium/net/base/ |
bandwidth_metrics.cc | 32 void ScopedBandwidthMetrics::RecordBytes(int bytes) { 33 g_bandwidth_metrics.Get().RecordBytes(bytes);
|
/external/emma/core/java12/com/vladium/jcd/cls/constant/ |
CONSTANT_Fieldref_info.java | 63 protected CONSTANT_Fieldref_info (final UDataInputStream bytes) throws IOException 65 super (bytes);
|
CONSTANT_InterfaceMethodref_info.java | 62 protected CONSTANT_InterfaceMethodref_info (final UDataInputStream bytes) throws IOException 64 super (bytes);
|
CONSTANT_Methodref_info.java | 63 protected CONSTANT_Methodref_info (final UDataInputStream bytes) throws IOException 65 super (bytes);
|
/external/llvm/lib/Target/SystemZ/ |
SystemZMachineFunctionInfo.h | 25 /// stack frame in bytes. 40 void setCalleeSavedFrameSize(unsigned bytes) { CalleeSavedFrameSize = bytes; }
|
/external/valgrind/main/drd/tests/ |
tc16_byterace.stderr.exp | 4 Location 0x........ is 0 bytes inside bytes[4], 9 Location 0x........ is 0 bytes inside bytes[4],
|
/dalvik/dx/src/com/android/dx/io/ |
DexHasher.java | 34 * Returns the signature of all but the first 32 bytes of {@code dex}. The 35 * first 32 bytes of dex files are not specified to be included in the 47 byte[] bytes = dex.getBytes(); 48 digest.update(bytes, offset, bytes.length - offset); 53 * Returns the checksum of all but the first 12 bytes of {@code dex}. 59 byte[] bytes = dex.getBytes(); 60 adler32.update(bytes, offset, bytes.length - offset);
|
/frameworks/base/cmds/keystore/ |
keystore_get.h | 38 * KEYSTORE_MESSAGE_SIZE bytes. This function returns the length of the value or 42 uint8_t bytes[2] = {length >> 8, length}; local 54 if (send(sock, &code, 1, 0) == 1 && send(sock, bytes, 2, 0) == 2 && 57 recv(sock, &bytes[0], 1, 0) == 1 && recv(sock, &bytes[1], 1, 0) == 1) { 59 length = bytes[0] << 8 | bytes[1];
|
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
CharSequencesTest.java | 29 byte[] bytes = s.getBytes(); 31 String copy = toString(forAsciiBytes(bytes)); 34 copy = toString(forAsciiBytes(bytes, 0, s.length())); 37 String crazy = toString(forAsciiBytes(bytes, 0, 5)); 40 String a = toString(forAsciiBytes(bytes, 0, 3).subSequence(2, 3)); 43 String empty = toString(forAsciiBytes(bytes, 0, 3).subSequence(3, 3));
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
Utils.java | 24 * Contains utility functions for formatting elapsed time and consumed bytes 69 * Formats data size in KB, MB, from the given bytes. 71 * @param bytes data size in bytes 72 * @return the formatted size such as 4.52 MB or 245 KB or 332 bytes 74 public static String formatBytes(Context context, double bytes) { 76 if (bytes > 1000 * 1000) { 77 return String.format("%.2f MB", ((int) (bytes / 1000)) / 1000f); 78 } else if (bytes > 1024) { 79 return String.format("%.2f KB", ((int) (bytes / 10)) / 100f) [all...] |
/external/flac/libFLAC/ |
ogg_decoder_aspect.c | 105 FLAC__OggDecoderAspectReadStatus FLAC__ogg_decoder_aspect_read_callback_wrapper(FLAC__OggDecoderAspect *aspect, FLAC__byte buffer[], size_t *bytes, FLAC__OggDecoderAspectReadCallbackProxy read_callback, const FLAC__StreamDecoder *decoder, void *client_data) 108 const size_t bytes_requested = *bytes; 121 * the same number of bytes from Ogg, then pass what's decoded down to 133 * to read in enough pages to return the full number of bytes 136 *bytes = 0; 137 while (*bytes < bytes_requested && !aspect->end_of_stream) { 140 size_t n = bytes_requested - *bytes; 141 if ((size_t)aspect->working_packet.bytes <= n) { 143 n = aspect->working_packet.bytes; 145 *bytes += n [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...] |
/packages/apps/Browser/tests/src/com/android/browser/ |
WebStorageSizeManagerUnitTests.java | 77 private long bytes(double megabytes) { method in class:WebStorageSizeManagerUnitTests 88 mDiskInfo.setTotalSizeBytes(bytes(75)); 89 mDiskInfo.setFreeSpaceSizeBytes(bytes(24)); 97 long origin1EstimatedSize = bytes(3.5); 105 long origin2EstimatedSize = bytes(2.5); 128 long origin3EstimatedSize = bytes(5); 146 manager.onExceededDatabaseQuota("4", "4", 0, bytes(1), totalUsedQuota, mQuotaUpdater); 150 mAppCacheInfo.setAppCacheSizeBytes(bytes(2)); 152 manager.onReachedMaxAppCacheSize(bytes(2), totalUsedQuota, mQuotaUpdater); 160 manager.onReachedMaxAppCacheSize(bytes(1.5), totalUsedQuota, mQuotaUpdater) [all...] |
/bionic/libc/bionic/ |
malloc_debug_leak.c | 336 size_t offset, bytes; local 340 /* first check the bytes in the sentinel header */ 346 "corrupted %d bytes before allocation", 355 bytes = *(size_t *)(buffer + offset); 357 buf = (char*)mem + bytes; 362 "corrupted %d bytes after allocation", 363 func, buffer, bytes, i+1); 368 *allocated = bytes; 373 void* chk_malloc(size_t bytes) 375 char* buffer = (char*)dlmalloc(bytes + CHK_OVERHEAD_SIZE) 465 size_t bytes = dlmalloc_usable_size(mem); local [all...] |
/dalvik/dx/src/com/android/dx/command/dump/ |
Main.java | 49 } else if (arg.equals("--bytes")) { 88 byte[] bytes = FileUtils.readFile(name); 92 src = new String(bytes, "utf-8"); 96 bytes = HexParser.parse(src); 98 processOne(name, bytes); 114 * @param bytes {@code non-null;} contents of the file 116 private static void processOne(String name, byte[] bytes) { 118 DotDumper.dump(bytes, name, parsedArgs); 120 BlockDumper.dump(bytes, System.out, name, false, parsedArgs); 122 BlockDumper.dump(bytes, System.out, name, true, parsedArgs) [all...] |
/external/emma/core/java12/com/vladium/jcd/cls/attribute/ |
Attribute_info.java | 41 * item indicates the length of the subsequent information in bytes. The length 42 * does not include the initial six bytes that contain the attribute_name_index 96 * 'bytes'. 99 * @param bytes input .class data stream [may not be null; not validated] 106 final UDataInputStream bytes) 109 final int attribute_name_index = bytes.readU2 (); 110 final long attribute_length = bytes.readU4 (); 117 return new CodeAttribute_info (constants, attribute_name_index, attribute_length, bytes); 121 return new ConstantValueAttribute_info (attribute_name_index, attribute_length, bytes); 125 return new ExceptionsAttribute_info (attribute_name_index, attribute_length, bytes); [all...] |
/external/nist-sip/java/gov/nist/javax/sip/parser/ |
Pipeline.java | 35 * Input class for the pipelined parser. Buffer all bytes read from the socket 87 byte[] bytes; field in class:Pipeline.Buffer 93 public Buffer(byte[] bytes, int length) { 96 this.bytes = bytes; 100 int retval = bytes[ptr++] & 0xFF; 131 public void write(byte[] bytes, int start, int length) throws IOException { 134 Buffer buff = new Buffer(bytes, length); 142 public void write(byte[] bytes) throws IOException { 145 Buffer buff = new Buffer(bytes, bytes.length) [all...] |
/dalvik/dx/src/com/android/dx/cf/direct/ |
MemberListParser.java | 59 * @param offset offset in {@code bytes} to the start of the list 118 ByteArray bytes = cf.getBytes(); local 119 return bytes.getUnsignedShort(offset); 177 ByteArray bytes = cf.getBytes(); local 181 observer.parsed(bytes, offset, 2, 187 int accessFlags = bytes.getUnsignedShort(at); 188 int nameIdx = bytes.getUnsignedShort(at + 2); 189 int descIdx = bytes.getUnsignedShort(at + 4); 194 observer.startParsingMember(bytes, at, name.getString(), 196 observer.parsed(bytes, at, 0, "\n" + humanName() [all...] |
/external/apache-http/src/org/apache/commons/codec/net/ |
QuotedPrintableCodec.java | 123 * Encodes an array of bytes into an array of quoted-printable 7-bit characters. Unsafe characters are escaped. 132 * @param bytes 133 * array of bytes to be encoded 134 * @return array of bytes containing quoted-printable data 136 public static final byte[] encodeQuotedPrintable(BitSet printable, byte[] bytes) { 137 if (bytes == null) { 144 for (int i = 0; i < bytes.length; i++) { 145 int b = bytes[i]; 159 * Decodes an array quoted-printable characters into an array of original bytes. Escaped characters are converted 167 * @param bytes [all...] |
URLCodec.java | 104 * Encodes an array of bytes into an array of URL safe 7-bit 108 * @param bytes array of bytes to convert to URL safe characters 109 * @return array of bytes containing URL safe characters 111 public static final byte[] encodeUrl(BitSet urlsafe, byte[] bytes) 113 if (bytes == null) { 121 for (int i = 0; i < bytes.length; i++) { 122 int b = bytes[i]; 147 * original bytes. Escaped characters are converted back to their 150 * @param bytes array of URL safe character [all...] |
/bionic/libc/kernel/common/linux/netfilter/ |
xt_sctp.h | 49 #define bytes(type) (sizeof(type) * 8) macro 51 #define SCTP_CHUNKMAP_SET(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] |= 1 << (type % bytes(u_int32_t)); } while (0) 53 #define SCTP_CHUNKMAP_CLEAR(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] &= ~(1 << (type % bytes(u_int32_t))); } while (0) 55 #define SCTP_CHUNKMAP_IS_SET(chunkmap, type) ({ (chunkmap[type / bytes (u_int32_t)] & (1 << (type % bytes (u_int32_t)))) ? 1: 0; })
|
/bionic/libc/kernel/common/linux/netfilter_ipv4/ |
ipt_sctp.h | 47 #define bytes(type) (sizeof(type) * 8) macro 49 #define SCTP_CHUNKMAP_SET(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] |= 1 << (type % bytes(u_int32_t)); } while (0) 51 #define SCTP_CHUNKMAP_CLEAR(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] &= ~(1 << (type % bytes(u_int32_t))); } while (0) 53 #define SCTP_CHUNKMAP_IS_SET(chunkmap, type) ({ (chunkmap[type / bytes (u_int32_t)] & (1 << (type % bytes (u_int32_t)))) ? 1: 0; })
|