/packages/apps/SecureElement/src/com/android/se/internal/ |
D | ByteArrayConverter.java | 111 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/ |
D | IkeProtocolException.java | 176 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/ |
D | CountedDataInputStream.java | 33 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/ |
D | BlockedNumberBackupAgent.java | 209 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/ |
D | PduPart.java | 155 byte[] byteArray = new byte[mPartData.length]; in getData() 156 System.arraycopy(mPartData, 0, byteArray, 0, mPartData.length); in getData() 157 return byteArray; in getData()
|
D | EncodedStringValue.java | 107 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/ |
D | EncodedStringValue.java | 122 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/ |
D | BigIntegerUtils.java | 39 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/ |
D | CallLogBackupAgent.java | 326 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/ |
D | Terminal.java | 281 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/ |
D | AdapterServiceTest.java | 717 private static boolean isByteArrayAllZero(byte[] byteArray) { in isByteArrayAllZero() argument 718 for (byte i : byteArray) { in isByteArrayAllZero()
|