HomeSort by relevance Sort by last modified time
    Searched full:bytearray (Results 1 - 25 of 550) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /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) {
41 int32_t ByteArray::Get(int32_t index, ByteVector* b) {
46 int32_t ByteArray::Get(int32_t index,
58 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/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/nio/
DirectByteBuffer.java 37 Int8Array byteArray;
49 byteArray = Int8ArrayNative.create(buffer, offset, capacity);
53 return byteArray;
88 return (byte)byteArray.get(position++);
95 return (byte)byteArray.get(index);
174 bytes = bytes | (byteArray.get(baseOffset + i) & 0xFF);
179 bytes = bytes | (byteArray.get(baseOffset + i) & 0xFF);
190 bytes = bytes | (byteArray.get(baseOffset + i) & 0xFF);
195 bytes = bytes | (byteArray.get(baseOffset + i) & 0xFF);
204 bytes = (short)(byteArray.get(baseOffset) << 8)
    [all...]
  /external/conscrypt/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/v8/src/wasm/
wasm-function-name-table.h 18 // Encode all function names of the WasmModule into one ByteArray.
19 Handle<ByteArray> BuildFunctionNamesTable(Isolate* isolate,
27 Handle<ByteArray> wasm_names_table, uint32_t func_index);
  /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...]
  /external/v8/src/interpreter/
source-position-table.h 18 class ByteArray;
50 Handle<ByteArray> ToSourcePositionTable();
66 explicit SourcePositionTableIterator(ByteArray* byte_array);
87 ByteArray* table_;
  /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 67 byte byteArray[] = { 1, 3, 4, 7, 8 };
72 defl.setInput(byteArray);
82 assertEquals(byteArray.length, totalIn);
96 for (int i = 0; i < byteArray.length; i++) {
97 assertEquals(byteArray[i], outPutInf[i]);
100 0, outPutInf[byteArray.length]);
109 byte byteArray[] = { 5, 2, 3, 7, 8 };
116 defl.setInput(byteArray);
126 assertEquals(byteArray.length, totalIn);
140 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) {
  /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/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/src/fxbarcode/pdf417/
BC_PDF417BarcodeMatrix.cpp 72 CFX_ByteArray bytearray; local
73 bytearray.Copy(((CBC_BarcodeRow*)m_matrix[0])->getScaledRow(xScale));
74 int32_t xMax = bytearray.GetSize();
81 bytearray.Copy(
86 m_matrixOut[k + l] = bytearray.GetAt(l);
  /art/test/020-string/src/
Main.java 91 byte[] byteArray = "byteArray".getBytes();
101 String s2 = new String(byteArray);
102 String s3 = new String(byteArray, 1);
103 String s4 = new String(byteArray, 0, 4);
104 String s5 = new String(byteArray, 2, 4, 5);
107 String s6 = new String(byteArray, 2, 4, charsetName);
108 String s7 = new String(byteArray, charsetName);
112 String s8 = new String(byteArray, 3, 3, charset);
113 String s9 = new String(byteArray, charset)
    [all...]

Completed in 1214 milliseconds

1 2 3 4 5 6 7 8 91011>>