/external/python/cpython3/Lib/test/ |
test_bytes.py | 1 """Unit tests for the bytes and bytearray types. 143 bytearray(size - 4) 269 # XXX Shouldn't bytes and bytearray agree on what to raise? 289 for f in bytes, bytearray: 306 b = bytearray([0x1a, 0x2b, 0x30]) 335 self.assertEqual(bytearray([0x1a, 0x2b, 0x30]).hex(), '1a2b30') 351 self.assertEqual(dot_join([bytearray(b"ab"), b"cd"]), b"ab.:cd") 352 self.assertEqual(dot_join([b"ab", bytearray(b"cd")]), b"ab.:cd") 361 dot_join([bytearray(b"ab"), "cd", b"ef"]) 404 self.assertFalse(bytearray().endswith(b"anything") [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
InflaterTest.java | 49 byte byteArray[] = { 5, 2, 3, 7, 8 }; 53 inflate.setInput(byteArray); 59 inflate.setInput(byteArray); 74 byte byteArray[] = { 1, 3, 4, 7, 8, 'e', 'r', 't', 'y', '5' }; 92 for (int i = 0; i < byteArray.length; i++) { 95 outPutInf[i], byteArray[i]); 98 0, outPutInf[byteArray.length]); 127 byte byteArray[] = { 1, 3, 5, 6, 7 }; 131 inflate.setInput(byteArray); 145 byte byteArray[] = { 1, 3, 4, 7, 8 } [all...] |
CheckedOutputStreamTest.java | 55 byte byteArray[] = { 1, 2, 3, 'e', 'r', 't', 'g', 3, 6 }; 61 chkOut.write(byteArray[4]); 68 chkOut.write(byteArray, 5, 4); 88 byte byteArray[] = { 1, 2, 3, 'e', 'r', 't', 'g', 3, 6 }; 94 for (byte element : byteArray) { 113 byte byteArray[] = { 1, 2, 3, 'e', 'r', 't', 'g', 3, 6 }; 119 chkOut.write(byteArray, 4, 5); 125 chkOut.write(byteArray, 4, 6);
|
Adler32Test.java | 108 byte byteArray[] = { 1, 2 }; 110 adl.update(byteArray); 131 byte[] byteArray = { 1, 2, 3 }; 133 int off = 2;// accessing the 2nd element of byteArray 137 adl.update(byteArray, off, len); 145 adl.update(byteArray, off, lenError); 153 adl.update(byteArray, offError, len);
|
GZIPOutputStreamTest.java | 96 byte byteArray[] = { 3, 5, 2, 'r', 'g', 'e', 'f', 'd', 'e', 'w' }; 105 outGZIP.write(byteArray, 0, 1); 124 byte byteArray[] = { 3, 5, 2, 'r', 'g', 'e', 'f', 'd', 'e', 'w' }; 132 outGZIP.write(byteArray, 0, 1); 149 byte byteArray[] = { 3, 5, 2, 'r', 'g', 'e', 'f', 'd', 'e', 'w' }; 154 outGZIP.write(byteArray, 0, 10); 163 outGZIP.write(byteArray, 0, 11);
|
DeflaterOutputStreamTest.java | 73 byte byteArray[] = { 1, 3, 4, 7, 8 }; 76 deflate.setInput(byteArray); 92 byte byteArray[] = { 1, 3, 4, 7, 8 }; 110 dos.write(byteArray); 142 byte byteArray[] = { 1, 3, 4, 7, 8, 3, 6 }; 175 dos.write(byteArray); 203 byte byteArray[] = { 1, 3, 4, 6 }; 204 dos.write(byteArray); 256 byte byteArray[] = { 1, 3, 4, 6 }; 257 dos.write(byteArray); [all...] |
/external/conscrypt/common/src/main/java/org/conscrypt/ |
AbstractSessionContext.java | 45 private final Map<ByteArray, NativeSslSession> sessions = 46 new LinkedHashMap<ByteArray, NativeSslSession>() { 49 Map.Entry<ByteArray, NativeSslSession> eldest) { 122 ByteArray key = new ByteArray(sessionId); 211 ByteArray key = new ByteArray(id); 229 session = sessions.get(new ByteArray(sessionId));
|
/frameworks/support/core/ktx/src/main/java/androidx/core/graphics/drawable/ |
Icon.kt | 51 * Create an [Icon] from this [ByteArray]. 56 inline fun ByteArray.toIcon(): Icon = Icon.createWithData(this, 0, size)
|
/libcore/luni/src/test/java/libcore/sun/security/x509/ |
KeyUsageExtensionTest.java | 49 Function<byte[], Object> objectCreator = byteArray -> { 51 return new KeyUsageExtension(byteArray);
|
ReasonFlagsTest.java | 45 Function<byte[], Object> objectCreator = byteArray -> new ReasonFlags(byteArray);
|
/system/iot/attestation/partner-tools/ |
ec_helper.py | 64 pub_key = (c_ubyte * _ECDH_KEY_LEN).from_buffer(bytearray(_ECDH_KEY_LEN)) 72 private_key = bytes(bytearray(priv_key[:priv_key_len.value])) 73 public_key = bytes(bytearray(pub_key[0:_ECDH_KEY_LEN])) 98 shared_secret = (c_ubyte * 32).from_buffer(bytearray(32)) 108 return bytes(bytearray(shared_secret[0:32]))
|
/frameworks/base/media/jni/ |
android_media_MediaMuxer.cpp | 90 jbyteArray byteArray = NULL; 94 byteArray = 97 if (byteArray == NULL) { 99 "byteArray is null"); 104 dst = env->GetByteArrayElements(byteArray, &isCopy); 106 dstSize = env->GetArrayLength(byteArray); 114 if (byteArray != NULL) { 115 env->ReleaseByteArrayElements(byteArray, (jbyte *)dst, 0); 126 if (byteArray != NULL) { 127 env->ReleaseByteArrayElements(byteArray, (jbyte *)dst, 0) [all...] |
/external/javassist/src/main/javassist/bytecode/ |
StackMap.java | 67 return ByteArray.readU16bit(info, 0); 141 int num = ByteArray.readU16bit(info, 0); 144 int offset = ByteArray.readU16bit(info, pos); 145 int numLoc = ByteArray.readU16bit(info, pos + 2); 147 int numStack = ByteArray.readU16bit(info, pos); 186 int clazz = ByteArray.readU16bit(info, pos + 1); 191 int offsetOfNew = ByteArray.readU16bit(info, pos + 1); 237 int num = ByteArray.readU16bit(info, 0); 238 ByteArray.write16bit(num, dest, 0); 243 ByteArray.write16bit(offset, dest, pos - 4) [all...] |
CodeIterator.java | 125 return ByteArray.readU16bit(bytecode, index); 132 return ByteArray.readS16bit(bytecode, index); 139 ByteArray.write16bit(value, bytecode, index); 146 return ByteArray.read32bit(bytecode, index); 153 ByteArray.write32bit(value, bytecode, index); 279 int mref = ByteArray.readU16bit(bytecode, index + 1); 758 int npairs = ByteArray.read32bit(code, index2); 762 int low = ByteArray.read32bit(code, index2); 763 int high = ByteArray.read32bit(code, index2 + 4); 876 ByteArray.write16bit(offset, newcode, j + 1) [all...] |
ExceptionsAttribute.java | 90 int index = ByteArray.readU16bit(src, i); 91 ByteArray.write16bit(srcCp.copy(index, destCp, classnames), 140 ByteArray.write16bit(n, blist, 0); 142 ByteArray.write16bit(elist[i], blist, i * 2 + 2); 153 ByteArray.write16bit(n, blist, 0); 155 ByteArray.write16bit(constPool.addClassInfo(elist[i]),
|
/external/python/cpython2/Lib/test/ |
test_base64.py | 23 eq(base64.encodestring(bytearray('abc')), 'YWJj\n') 39 eq(base64.decodestring(bytearray("YWJj\n")), "abc") 83 eq(base64.b64encode(bytearray('abcd')), 'YWJjZA==') 85 '\xd3V\xbeo\xf7\x1d', altchars=bytearray('*$')) 99 eq(base64.standard_b64encode(bytearray('abcd')), 'YWJjZA==') 103 eq(base64.urlsafe_b64encode(bytearray('\xd3V\xbeo\xf7\x1d')), '01a-b_cd') 122 eq(base64.b64decode(bytearray("YWJj")), "abc") 136 eq(base64.standard_b64decode(bytearray("YWJj")), "abc") 140 eq(base64.urlsafe_b64decode(bytearray('01a-b_cd')), '\xd3V\xbeo\xf7\x1d') 176 eq(base64.b32encode(bytearray('abcd')), 'MFRGGZA=' [all...] |
/frameworks/base/core/jni/android/graphics/ |
Movie.cpp | 95 jbyteArray byteArray = env->NewByteArray(16*1024); 96 ScopedLocalRef<jbyteArray> scoper(env, byteArray); 97 SkStream* strm = CreateJavaInputStreamAdaptor(env, istream, byteArray); 116 jbyteArray byteArray, 119 NPE_CHECK_RETURN_ZERO(env, byteArray); 121 int totalLength = env->GetArrayLength(byteArray); 127 AutoJavaByteArray ar(env, byteArray);
|
/dalvik/dx/src/com/android/dx/command/dump/ |
ClassDumper.java | 21 import com.android.dx.util.ByteArray; 60 ByteArray ba = new ByteArray(bytes);
|
DotDumper.java | 34 import com.android.dx.util.ByteArray; 66 ByteArray ba = new ByteArray(bytes); 98 public void parsed(ByteArray bytes, int offset, int len, String human) { 104 public void startParsingMember(ByteArray bytes, int offset, String name, 110 public void endParsingMember(ByteArray bytes, int offset, String name,
|
/external/python/cpython2/Lib/ctypes/test/ |
test_frombuffer.py | 81 self.assertRaises(TypeError, Array.from_buffer, bytearray(10)) 82 self.assertRaises(TypeError, Structure.from_buffer, bytearray(10)) 83 self.assertRaises(TypeError, Union.from_buffer, bytearray(10))
|
/external/pdfium/fxbarcode/common/ |
BC_CommonByteArray.h | 20 CBC_CommonByteArray(uint8_t* byteArray, int32_t size);
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/exif/ |
CountedDataInputStream.java | 33 private final byte[] byteArray = new byte[8]; 34 private final ByteBuffer byteBuffer = ByteBuffer.wrap(byteArray); 105 readOrThrow(byteArray, 0, 2); 115 readOrThrow(byteArray, 0, 4);
|
/packages/services/Car/tools/emulator/ |
diagnostic_builder.py | 26 class ByteArray(object): 30 self.data = bytearray(numElements/8) 33 self.data = bytearray(1+numElements/8) 62 self.bitmask = DiagnosticEventBuilder.ByteArray(
|
/external/sfntly/cpp/src/sfntly/data/ |
memory_byte_array.cc | 24 : ByteArray(0, length), b_(NULL), allocated_(true) { 28 : ByteArray(filled_length, filled_length), b_(b), allocated_(false) {
|
/art/test/011-array-copy/src/ |
Main.java | 83 byte[] byteArray = new byte[ARRAY_SIZE]; 89 initByteArray(byteArray); 95 System.arraycopy(byteArray, srcPos, byteArray, dstPos, length); 102 if (intArray[i] != byteArray[i]) { 104 Arrays.toString(byteArray));
|