Home
last modified time | relevance | path

Searched refs:byteArray (Results 1 – 11 of 11) sorted by relevance

/packages/apps/SecureElement/src/com/android/se/internal/
DByteArrayConverter.java111 public static String byteArrayToHexString(byte[] byteArray) { in byteArrayToHexString() argument
112 if (byteArray == null) { in byteArrayToHexString()
115 return byteArrayToHexString(byteArray, 0, byteArray.length); in byteArrayToHexString()
177 public static int byteArrayToInt(byte[] byteArray) { in byteArrayToInt() argument
178 switch (byteArray.length) { in byteArrayToInt()
182 return (byteArray[0] & 0xFF); in byteArrayToInt()
184 return (byteArray[0] & 0xFF) << 8 | (byteArray[1] & 0xFF); in byteArrayToInt()
186 return (byteArray[0] & 0xFF) << 16 | (byteArray[1] & 0xFF) << 8 | (byteArray[2] in byteArrayToInt()
189 return (byteArray[0] & 0xFF) << 24 in byteArrayToInt()
190 | (byteArray[1] & 0xFF) << 16 in byteArrayToInt()
[all …]
/packages/modules/IPsec/src/java/android/net/ipsec/ike/exceptions/
DIkeProtocolException.java176 protected static int byteArrayToInteger(byte[] byteArray) { in byteArrayToInteger() argument
177 if (byteArray == null || byteArray.length > INTEGER_BYTE_SIZE) { in byteArrayToInteger()
182 byte[] zeroPad = new byte[INTEGER_BYTE_SIZE - byteArray.length]; in byteArrayToInteger()
183 dataBuffer.put(zeroPad).put(byteArray); in byteArrayToInteger()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/exif/
DCountedDataInputStream.java33 private final byte[] byteArray = new byte[8]; field in CountedDataInputStream
34 private final ByteBuffer byteBuffer = ByteBuffer.wrap(byteArray);
105 readOrThrow(byteArray, 0, 2); in readShort()
115 readOrThrow(byteArray, 0, 4); in readInt()
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
DBlockedNumberBackupAgent.java209 byte[] byteArray = new byte[data.getDataSize()]; in readBlockedNumberFromData()
210 data.readEntityData(byteArray, 0, byteArray.length); in readBlockedNumberFromData()
211 DataInputStream dataInput = new DataInputStream(new ByteArrayInputStream(byteArray)); in readBlockedNumberFromData()
/packages/apps/Messaging/src/android/support/v7/mms/pdu/
DPduPart.java155 byte[] byteArray = new byte[mPartData.length]; in getData()
156 System.arraycopy(mPartData, 0, byteArray, 0, mPartData.length); in getData()
157 return byteArray; in getData()
DEncodedStringValue.java107 byte[] byteArray = new byte[mData.length]; in getTextString()
109 System.arraycopy(mData, 0, byteArray, 0, mData.length); in getTextString()
110 return byteArray; in getTextString()
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DEncodedStringValue.java122 byte[] byteArray = new byte[mData.length]; in getTextString()
124 System.arraycopy(mData, 0, byteArray, 0, mData.length); in getTextString()
125 return byteArray; in getTextString()
/packages/modules/IPsec/src/java/com/android/internal/net/utils/
DBigIntegerUtils.java39 public static BigInteger unsignedByteArrayToBigInteger(byte[] byteArray) { in unsignedByteArrayToBigInteger() argument
40 return new BigInteger(1/** positive */, byteArray); in unsignedByteArrayToBigInteger()
/packages/providers/CallLogProvider/src/com/android/calllogbackup/
DCallLogBackupAgent.java326 byte [] byteArray = new byte[data.getDataSize()]; in readCallFromData()
327 data.readEntityData(byteArray, 0, byteArray.length); in readCallFromData()
328 DataInputStream dataInput = new DataInputStream(new ByteArrayInputStream(byteArray)); in readCallFromData()
/packages/apps/SecureElement/src/com/android/se/
DTerminal.java281 Byte[] byteArray = list.toArray(new Byte[list.size()]); in arrayListToByteArray() local
284 for (Byte b : byteArray) { in arrayListToByteArray()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DAdapterServiceTest.java717 private static boolean isByteArrayAllZero(byte[] byteArray) { in isByteArrayAllZero() argument
718 for (byte i : byteArray) { in isByteArrayAllZero()