/external/sl4a/Utils/src/com/googlecode/android_scripting/ |
ConvertUtils.java | 31 byte[] byteArray = new byte[parseString.length]; 32 if (byteArray.length > 0) { 37 byteArray[i] = (byte)val; 40 return byteArray; 46 * @param byteArray 49 public static String convertByteArrayToString(byte[] byteArray) { 51 if (byteArray != null) { 52 for (int i = 0; i < byteArray.length; i++) { 53 if ((i + 1) != byteArray.length) { 54 ret = ret + Integer.valueOf((byteArray[i]&0xFF)) + "," [all...] |
/external/sfntly/cpp/src/sfntly/data/ |
byte_array.cc | 25 const int32_t ByteArray::COPY_BUFFER_SIZE = 8192; 27 ByteArray::~ByteArray() {} 29 int32_t ByteArray::Length() { return filled_length_; } 30 int32_t ByteArray::Size() { return storage_length_; } 32 int32_t ByteArray::SetFilledLength(int32_t filled_length) { 37 int32_t ByteArray::Get(int32_t index) { 43 int32_t ByteArray::Get(int32_t index, ByteVector* b) { 48 int32_t ByteArray::Get(int32_t index, 60 void ByteArray::Put(int32_t index, byte_t b) [all...] |
growable_memory_byte_array.h | 26 class GrowableMemoryByteArray : public ByteArray, 34 virtual int32_t CopyTo(ByteArray* array) { return ByteArray::CopyTo(array); } 35 virtual int32_t CopyTo(ByteArray* array, int32_t offset, int32_t length) { 36 return ByteArray::CopyTo(array, offset, length); 39 ByteArray* array, 42 return ByteArray::CopyTo(dst_offset, array, src_offset, length); 44 virtual int32_t CopyTo(OutputStream* os) { return ByteArray::CopyTo(os); }
|
memory_byte_array.h | 24 class MemoryByteArray : public ByteArray, public RefCounted<MemoryByteArray> { 46 virtual int32_t CopyTo(ByteArray* array) { return ByteArray::CopyTo(array); } 47 virtual int32_t CopyTo(ByteArray* array, int32_t offset, int32_t length) { 48 return ByteArray::CopyTo(array, offset, length); 51 ByteArray* array, 54 return ByteArray::CopyTo(dst_offset, array, src_offset, length); 56 virtual int32_t CopyTo(OutputStream* os) { return ByteArray::CopyTo(os); }
|
byte_array.h | 30 class ByteArray : virtual public RefCount { 32 virtual ~ByteArray(); 86 // @param index the index into the ByteArray 96 // Fully copies this ByteArray to another ByteArray to the extent that the 98 virtual int32_t CopyTo(ByteArray* array); 100 // Copies a segment of this ByteArray to another ByteArray. 102 // @param offset the offset in this ByteArray to start copying from 105 virtual int32_t CopyTo(ByteArray* array, int32_t offset, int32_t length) [all...] |
/external/javassist/src/main/javassist/bytecode/ |
InnerClassesAttribute.java | 48 ByteArray.write16bit(0, get(), 0); 54 public int tableLength() { return ByteArray.readU16bit(get(), 0); } 60 return ByteArray.readU16bit(get(), nth * 8 + 2); 82 ByteArray.write16bit(index, get(), nth * 8 + 2); 89 return ByteArray.readU16bit(get(), nth * 8 + 4); 111 ByteArray.write16bit(index, get(), nth * 8 + 4); 118 return ByteArray.readU16bit(get(), nth * 8 + 6); 140 ByteArray.write16bit(index, get(), nth * 8 + 6); 147 return ByteArray.readU16bit(get(), nth * 8 + 8); 155 ByteArray.write16bit(flags, get(), nth * 8 + 8) [all...] |
LocalVariableAttribute.java | 41 ByteArray.write16bit(0, info, 0); 57 ByteArray.write16bit(0, info, 0); 83 ByteArray.write16bit(tableLength() + 1, newInfo, 0); 87 ByteArray.write16bit(startPc, newInfo, size); 88 ByteArray.write16bit(length, newInfo, size + 2); 89 ByteArray.write16bit(nameIndex, newInfo, size + 4); 90 ByteArray.write16bit(descriptorIndex, newInfo, size + 6); 91 ByteArray.write16bit(index, newInfo, size + 8); 100 int index = ByteArray.readU16bit(info, pos + 6); 104 ByteArray.write16bit(cp.addUtf8Info(desc), info, pos + 6) [all...] |
/external/conscrypt/common/src/main/java/org/conscrypt/ |
ByteArray.java | 24 final class ByteArray { 28 ByteArray(byte[] bytes) { 40 if (!(o instanceof ByteArray)) { 43 ByteArray lhs = (ByteArray) o;
|
/external/mdnsresponder/mDNSWindows/DLLX/ |
DNSSDRecord.cpp | 40 std::vector< BYTE > byteArray; 54 ok = VariantToByteArray( &rdata, byteArray ); 60 err = DNSServiceUpdateRecord( m_serviceObject->GetSubordRef(), m_rref, flags, ( uint16_t ) byteArray.size(), byteArray.size() > 0 ? &byteArray[ 0 ] : NULL, ttl );
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
BufferedOutputStreamTest.java | 168 byte[] byteArray = new byte[10]; 234 bos.write(byteArray, -1, -1); 241 bos.write(byteArray, -1, 0); 248 bos.write(byteArray, -1, 1); 255 bos.write(byteArray, 0, -1); 262 bos.write(byteArray, 0, byteArray.length + 1); 269 bos.write(byteArray, 1, byteArray.length); 276 bos.write(byteArray, -1, byteArray.length) [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
StringUtil.java | 24 /** Returns true if-and-only-if |byteArray| can be safely printed as ASCII. */ 25 public static boolean isAsciiPrintable(byte[] byteArray) { 26 if (byteArray == null) { 30 for (byte b : byteArray) {
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
DeflaterTest.java | 71 byte byteArray[] = { 1, 3, 4, 7, 8 }; 76 defl.setInput(byteArray); 86 assertEquals(byteArray.length, totalIn); 100 for (int i = 0; i < byteArray.length; i++) { 101 assertEquals(byteArray[i], outPutInf[i]); 104 0, outPutInf[byteArray.length]); 113 byte byteArray[] = { 5, 2, 3, 7, 8 }; 120 defl.setInput(byteArray); 130 assertEquals(byteArray.length, totalIn); 144 for (int i = 0; i < byteArray.length; i++) [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_bytes.py | 1 """Unit tests for the bytes and bytearray types. 225 # XXX Shouldn't bytes and bytearray agree on what to raise? 242 for f in bytes, bytearray: 259 b = bytearray([0x1a, 0x2b, 0x30]) 297 self.assertFalse(bytearray().endswith(b"anything")) 523 type2test = bytearray 526 self.assertRaises(TypeError, hash, bytearray()) 538 b = bytearray(20) 557 b = bytearray(b'hello') 560 b = bytearray(b'hello1') # test even number of item [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_bytes.py | 1 """Unit tests for the bytes and bytearray types. 225 # XXX Shouldn't bytes and bytearray agree on what to raise? 242 for f in bytes, bytearray: 259 b = bytearray([0x1a, 0x2b, 0x30]) 297 self.assertFalse(bytearray().endswith(b"anything")) 523 type2test = bytearray 526 self.assertRaises(TypeError, hash, bytearray()) 538 b = bytearray(20) 557 b = bytearray(b'hello') 560 b = bytearray(b'hello1') # test even number of item [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_bytes.py | 1 """Unit tests for the bytes and bytearray types. 225 # XXX Shouldn't bytes and bytearray agree on what to raise? 242 for f in bytes, bytearray: 259 b = bytearray([0x1a, 0x2b, 0x30]) 297 self.assertFalse(bytearray().endswith(b"anything")) 523 type2test = bytearray 526 self.assertRaises(TypeError, hash, bytearray()) 538 b = bytearray(20) 557 b = bytearray(b'hello') 560 b = bytearray(b'hello1') # test even number of item [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_bytes.py | 1 """Unit tests for the bytes and bytearray types. 225 # XXX Shouldn't bytes and bytearray agree on what to raise? 242 for f in bytes, bytearray: 259 b = bytearray([0x1a, 0x2b, 0x30]) 297 self.assertFalse(bytearray().endswith(b"anything")) 523 type2test = bytearray 526 self.assertRaises(TypeError, hash, bytearray()) 538 b = bytearray(20) 557 b = bytearray(b'hello') 560 b = bytearray(b'hello1') # test even number of item [all...] |
/external/sfntly/cpp/src/test/ |
test_utils.h | 43 static bool Equals(ByteArray* b1, 45 ByteArray* b2, 48 // @param offset1 offset to start comparing the first ByteArray from 49 // @param ba1 the first ByteArray 50 // @param offset2 offset to start comparing the second ByteArray from 51 // @param ba2 the second ByteArray 55 static bool Equals(ByteArray* b1, 57 ByteArray* b2, 84 static int64_t CheckSum(ByteArray* b, int32_t offset, int32_t length);
|
byte_array_test.cc | 29 void FillTestByteArray(ByteArray* ba, int32_t size) { 35 void ReadByteArrayWithBuffer(ByteArray* ba, ByteVector* buffer, ByteVector* b) { 46 void ReadByteArrayWithSlidingWindow(ByteArray* ba, int window_size, 59 bool ReadComparison(ByteArray* ba1, ByteArray* ba2) { 93 bool CopyTest(ByteArray* ba) { 107 bool ByteArrayTester(ByteArray* ba) { 143 TEST(ByteArray, All) {
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_bytes.py | 1 """Unit tests for the bytes and bytearray types.
225 # XXX Shouldn't bytes and bytearray agree on what to raise?
242 for f in bytes, bytearray:
259 b = bytearray([0x1a, 0x2b, 0x30])
297 self.assertFalse(bytearray().endswith(b"anything"))
523 type2test = bytearray
526 self.assertRaises(TypeError, hash, bytearray())
538 b = bytearray(20)
557 b = bytearray(b'hello')
560 b = bytearray(b'hello1') # test even number of items [all...] |
/dalvik/dx/src/com/android/dx/cf/attrib/ |
RawAttribute.java | 20 import com.android.dx.util.ByteArray; 27 private final ByteArray data; 42 public RawAttribute(String name, ByteArray data, ConstantPool pool) { 54 * Constructs an instance from a sub-array of a {@link ByteArray}. 62 public RawAttribute(String name, ByteArray data, int offset, 72 public ByteArray getData() {
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/ |
CMSProcessable.java | 7 * Use CMSTypedData instead of this. See CMSProcessableFile/ByteArray for defaults.
|
/external/v8/src/ |
source-position-table.h | 20 class ByteArray; 45 Handle<ByteArray> ToSourcePositionTable(Isolate* isolate, 63 explicit SourcePositionTableIterator(ByteArray* byte_array); 84 ByteArray* table_;
|
/external/jmdns/src/javax/jmdns/impl/ |
DNSOutgoing.java | 163 byte[] byteArray = record.toByteArray(); 165 writeShort(byteArray.length); 166 write(byteArray, 0, byteArray.length); 245 byte[] byteArray = record.toByteArray(); 246 if (byteArray.length < this.availableSpace()) { 248 _questionsBytes.write(byteArray, 0, byteArray.length); 279 byte[] byteArray = record.toByteArray(); 280 if (byteArray.length < this.availableSpace()) [all...] |
/external/pdfium/xfa/fxbarcode/pdf417/ |
BC_PDF417BarcodeMatrix.cpp | 71 CFX_ArrayTemplate<uint8_t> bytearray; local 72 bytearray.Copy(m_matrix[0]->getScaledRow(xScale)); 73 int32_t xMax = bytearray.GetSize(); 80 bytearray.Copy(m_matrix[i / yScale]->getScaledRow(xScale)); 84 m_matrixOut[k + l] = bytearray.GetAt(l);
|
/frameworks/av/drm/mediacas/plugins/clearkey/ |
ClearKeySessionLibrary.cpp | 61 uint8_t *byteArray = (uint8_t *) &mNextSessionId; 62 sessionId->push_back(byteArray[3]); 63 sessionId->push_back(byteArray[2]); 64 sessionId->push_back(byteArray[1]); 65 sessionId->push_back(byteArray[0]);
|