Lines Matching refs:converter
90 ByteBuffer converter = ByteBuffer.wrap(valueBuf); in byteArrayToShort() local
91 converter.order(ByteOrder.nativeOrder()); in byteArrayToShort()
92 return converter.getShort(); in byteArrayToShort()
96 ByteBuffer converter = ByteBuffer.wrap(valueBuf); in byteArrayToInt() local
97 converter.order(ByteOrder.nativeOrder()); in byteArrayToInt()
98 return converter.getInt(offset); in byteArrayToInt()
111 ByteBuffer converter = ByteBuffer.allocate(4); in intToByteArray() local
112 converter.order(ByteOrder.nativeOrder()); in intToByteArray()
113 converter.putInt(value); in intToByteArray()
114 return converter.array(); in intToByteArray()
119 ByteBuffer converter = ByteBuffer.allocate(length); in uuidToByteArray() local
120 converter.order(ByteOrder.BIG_ENDIAN); in uuidToByteArray()
125 converter.putLong(msb); in uuidToByteArray()
126 converter.putLong(8, lsb); in uuidToByteArray()
127 return converter.array(); in uuidToByteArray()
132 ByteBuffer converter = ByteBuffer.allocate(length); in uuidsToByteArray() local
133 converter.order(ByteOrder.BIG_ENDIAN); in uuidsToByteArray()
140 converter.putLong(i * BD_UUID_LEN, msb); in uuidsToByteArray()
141 converter.putLong(i * BD_UUID_LEN + 8, lsb); in uuidsToByteArray()
143 return converter.array(); in uuidsToByteArray()
152 ByteBuffer converter = ByteBuffer.wrap(val); in byteArrayToUuid() local
153 converter.order(ByteOrder.BIG_ENDIAN); in byteArrayToUuid()
156 puuids[i] = new ParcelUuid(new UUID(converter.getLong(offset), in byteArrayToUuid()
157 converter.getLong(offset + 8))); in byteArrayToUuid()