Searched refs:bytes (Results 101 - 125 of 1205) sorted by relevance

1234567891011>>

/external/smali/dexlib/src/main/java/org/jf/dexlib/Util/
H A DUtf8Utils.java42 * @return non-null; the UTF-8 bytes for it
46 byte[] bytes = new byte[len * 3]; // Avoid having to reallocate.
52 bytes[outAt] = (byte) c;
55 bytes[outAt] = (byte) (((c >> 6) & 0x1f) | 0xc0);
56 bytes[outAt + 1] = (byte) ((c & 0x3f) | 0x80);
59 bytes[outAt] = (byte) (((c >> 12) & 0x0f) | 0xe0);
60 bytes[outAt + 1] = (byte) (((c >> 6) & 0x3f) | 0x80);
61 bytes[outAt + 2] = (byte) ((c & 0x3f) | 0x80);
67 System.arraycopy(bytes, 0, result, 0, outAt);
74 * Converts an array of UTF-8 bytes int
83 utf8BytesToString(byte[] bytes, int start, int length) argument
[all...]
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/provider/crypto/
H A DSHA1_MessageDigestTest.java153 byte[] bytes = new byte[LENGTH];
154 for (int i = 0; i < bytes.length; i++ ) {
155 bytes[i] = (byte) i;
158 md.update(bytes, 0, LENGTH);
173 * it checks out that the method always return array of 20 bytes length
177 byte[] bytes = null;
187 bytes = md.digest();
188 assertEquals("length of digest != DIGESTLENGTH", bytes.length, DIGESTLENGTH);
316 byte[] bytes = null;
322 bytes
[all...]
/external/libffi/src/
H A Dprep_cif.c91 unsigned bytes = 0; local
123 bytes = STACK_ARG_SIZE(sizeof(void*));
143 bytes += sizeof(void*);
148 if (((*ptr)->alignment - 1) & bytes)
149 bytes = ALIGN(bytes, (*ptr)->alignment);
151 bytes += STACK_ARG_SIZE((*ptr)->size);
156 cif->bytes = bytes;
/external/openssl/crypto/bn/
H A Dbn_rand.c121 int ret=0,bit,bytes,mask; local
130 bytes=(bits+7)/8;
134 buf=(unsigned char *)OPENSSL_malloc(bytes);
147 if (RAND_pseudo_bytes(buf, bytes) == -1)
152 if (RAND_bytes(buf, bytes) <= 0)
164 for (i = 0; i < bytes; i++)
198 buf[bytes-1]|=1;
199 if (!BN_bin2bn(buf,bytes,rnd)) goto err;
204 OPENSSL_cleanse(buf,bytes);
/external/openssl/crypto/rand/
H A Drand_egd.c66 * RAND_query_egd_bytes(path, buf, bytes)
67 * will actually query "bytes" bytes of entropy form the egd-socket located
70 * The number of bytes is not limited by the maximum chunk size of EGD,
71 * which is 255 bytes. If more than 255 bytes are wanted, several chunks
72 * of entropy bytes are requested. The connection is left open until the
76 * num the number of bytes read from the EGD socket. This number is either
77 * the number of bytes requested or smaller, if the EGD pool is
82 * RAND_egd_bytes(path, bytes) wil
99 RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes) argument
108 RAND_egd_bytes(const char *path,int bytes) argument
136 RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes) argument
284 RAND_egd_bytes(const char *path, int bytes) argument
[all...]
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
H A DSecureClassLoader2Test.java47 public Class define(String name, byte[] bytes) {
48 return defineClass(name, bytes, 0, bytes.length,
66 byte[] bytes = InputStreamHelper.readFullyAndClose(in);
67 Class c = myloader.define("packA.SecurityTest", bytes);
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/bc/
H A DBcDigestCalculatorProvider.java51 public void write(byte[] bytes, int off, int len) argument
54 dig.update(bytes, off, len);
57 public void write(byte[] bytes) argument
60 dig.update(bytes, 0, bytes.length);
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/
H A DBigIntegers.java23 byte[] bytes = value.toByteArray();
25 if (bytes[0] == 0)
27 byte[] tmp = new byte[bytes.length - 1];
29 System.arraycopy(bytes, 1, tmp, 0, tmp.length);
34 return bytes;
/external/emma/core/java12/com/vladium/jcd/cls/attribute/
H A DException_info.java114 Exception_info (final UDataInputStream bytes) throws IOException argument
116 m_start_pc = bytes.readU2 ();
117 m_end_pc = bytes.readU2 ();
118 m_handler_pc = bytes.readU2 ();
119 m_catch_type = bytes.readU2 ();
H A DInnerClass_info.java79 InnerClass_info (final UDataInputStream bytes) throws IOException argument
81 m_inner_class_index = bytes.readU2 ();
82 m_outer_class_index = bytes.readU2 ();
83 m_inner_name_index = bytes.readU2 ();
84 m_inner_access_flags = bytes.readU2 ();
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/objectdescriptors/
H A DExtensionDescriptor.java36 byte[] bytes; field in class:ExtensionDescriptor
60 bytes = new byte[sizeOfInstance];
61 bb.get(bytes);
69 sb.append("{bytes=").append(bytes == null ? "null" : Hex.encodeHex(bytes));
/external/smali/dexlib/src/main/java/org/jf/dexlib/EncodedValue/
H A DCharEncodedValue.java59 byte[] bytes = EncodedValueUtils.encodeUnsignedIntegralValue(value);
62 out.annotate(1, "value_type=" + ValueType.VALUE_CHAR.name() + ",value_arg=" + (bytes.length - 1));
65 out.annotate(bytes.length, "value: 0x" + Integer.toHexString(value) + " '" + c[0] + "'");
68 out.writeByte(ValueType.VALUE_CHAR.value | ((bytes.length - 1) << 5));
69 out.write(bytes);
H A DDoubleEncodedValue.java60 byte[] bytes = EncodedValueUtils.encodeRightZeroExtendedValue(Double.doubleToRawLongBits(value));
63 out.annotate(1, "value_type=" + ValueType.VALUE_DOUBLE.name() + ",value_arg=" + (bytes.length - 1));
64 out.annotate(bytes.length, "value: " + value);
67 out.writeByte(ValueType.VALUE_DOUBLE.value | ((bytes.length - 1) << 5));
68 out.write(bytes);
H A DEnumEncodedValue.java63 byte[] bytes = EncodedValueUtils.encodeUnsignedIntegralValue(value.getIndex());
66 out.annotate(1, "value_type=" + ValueType.VALUE_ENUM.name() + ",value_arg=" + (bytes.length - 1));
67 out.annotate(bytes.length, "value: " + value.getFieldString());
70 out.writeByte(ValueType.VALUE_ENUM.value | ((bytes.length - 1) << 5));
71 out.write(bytes);
H A DFieldEncodedValue.java63 byte[] bytes = EncodedValueUtils.encodeUnsignedIntegralValue(value.getIndex());
66 out.annotate(1, "value_type=" + ValueType.VALUE_FIELD.name() + ",value_arg=" + (bytes.length - 1));
67 out.annotate(bytes.length, "value: " + value.getFieldString());
70 out.writeByte(ValueType.VALUE_FIELD.value | ((bytes.length - 1) << 5));
71 out.write(bytes);
H A DFloatEncodedValue.java60 byte[] bytes = EncodedValueUtils.encodeRightZeroExtendedValue(((long)Float.floatToRawIntBits(value)) << 32);
63 out.annotate(1, "value_type=" + ValueType.VALUE_FLOAT.name() + ",value_arg=" + (bytes.length - 1));
64 out.annotate(bytes.length, "value: " + value);
67 out.writeByte(ValueType.VALUE_FLOAT.value | ((bytes.length - 1) << 5));
68 out.write(bytes);
H A DIntEncodedValue.java59 byte[] bytes = EncodedValueUtils.encodeSignedIntegralValue(value);
62 out.annotate(1, "value_type=" + ValueType.VALUE_INT.name() + ",value_arg=" + (bytes.length - 1));
63 out.annotate(bytes.length, "value: 0x" + Integer.toHexString(value) + " (" + value + ")");
66 out.writeByte(ValueType.VALUE_INT.value | ((bytes.length - 1) << 5));
67 out.write(bytes);
H A DLongEncodedValue.java59 byte[] bytes = EncodedValueUtils.encodeSignedIntegralValue(value);
62 out.annotate(1, "value_type=" + ValueType.VALUE_LONG.name() + ",value_arg=" + (bytes.length - 1));
63 out.annotate(bytes.length, "value: 0x" + Long.toHexString(value) + " (" + value + ")");
66 out.writeByte(ValueType.VALUE_LONG.value | ((bytes.length - 1) << 5));
67 out.write(bytes);
H A DMethodEncodedValue.java63 byte[] bytes = EncodedValueUtils.encodeUnsignedIntegralValue(value.getIndex());
66 out.annotate(1, "value_type=" + ValueType.VALUE_METHOD.name() + ",value_arg=" + (bytes.length - 1));
67 out.annotate(bytes.length, "value: " + value.getMethodString());
70 out.writeByte(ValueType.VALUE_METHOD.value | ((bytes.length - 1) << 5));
71 out.write(bytes);
H A DShortEncodedValue.java59 byte[] bytes = EncodedValueUtils.encodeSignedIntegralValue(value);
62 out.annotate(1, "value_type=" + ValueType.VALUE_SHORT.name() + ",value_arg=" + (bytes.length - 1));
63 out.annotate(bytes.length, "value: 0x" + Integer.toHexString(value) + " (" + value + ")");
66 out.writeByte(ValueType.VALUE_SHORT.value | ((bytes.length - 1) << 5));
67 out.write(bytes);
H A DStringEncodedValue.java64 byte[] bytes = EncodedValueUtils.encodeUnsignedIntegralValue(value.getIndex());
67 out.annotate(1, "value_type=" + ValueType.VALUE_STRING.name() + ",value_arg=" + (bytes.length - 1));
68 out.annotate(bytes.length, "value: \"" + Utf8Utils.escapeString(value.getStringValue()) + "\"");
71 out.writeByte(ValueType.VALUE_STRING.value | ((bytes.length - 1) << 5));
72 out.write(bytes);
H A DTypeEncodedValue.java63 byte[] bytes = EncodedValueUtils.encodeUnsignedIntegralValue(value.getIndex());
66 out.annotate(1, "value_type=" + ValueType.VALUE_TYPE.name() + ",value_arg=" + (bytes.length - 1));
67 out.annotate(bytes.length, "value: " + value.getTypeDescriptor());
70 out.writeByte(ValueType.VALUE_TYPE.value | ((bytes.length - 1) << 5));
71 out.write(bytes);
/external/tremolo/Tremolo/
H A Dmisc.c58 long bytes; member in struct:__anon12851
64 static void *_insert(void *ptr,long bytes,char *file,long line){ argument
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
209 _VDBG_malloc(void *ptr,long bytes,char *file,long line) argument
[all...]
/external/valgrind/main/memcheck/tests/ppc32/
H A Dpower_ISA2_05.stderr.exp4 in use at exit: 0 bytes in 0 blocks
5 total heap usage: 0 allocs, 0 frees, 0 bytes allocated
14 in use at exit: 0 bytes in 0 blocks
15 total heap usage: 0 allocs, 0 frees, 0 bytes allocated
24 in use at exit: 0 bytes in 0 blocks
25 total heap usage: 0 allocs, 0 frees, 0 bytes allocated
34 in use at exit: 0 bytes in 0 blocks
35 total heap usage: 0 allocs, 0 frees, 0 bytes allocated
44 in use at exit: 0 bytes in 0 blocks
45 total heap usage: 0 allocs, 0 frees, 0 bytes allocate
[all...]
/external/valgrind/main/memcheck/tests/ppc64/
H A Dpower_ISA2_05.stderr.exp4 in use at exit: 0 bytes in 0 blocks
5 total heap usage: 0 allocs, 0 frees, 0 bytes allocated
14 in use at exit: 0 bytes in 0 blocks
15 total heap usage: 0 allocs, 0 frees, 0 bytes allocated
24 in use at exit: 0 bytes in 0 blocks
25 total heap usage: 0 allocs, 0 frees, 0 bytes allocated
34 in use at exit: 0 bytes in 0 blocks
35 total heap usage: 0 allocs, 0 frees, 0 bytes allocated
44 in use at exit: 0 bytes in 0 blocks
45 total heap usage: 0 allocs, 0 frees, 0 bytes allocate
[all...]

Completed in 434 milliseconds

1234567891011>>