/packages/apps/Nfc/tests/src/com/android/nfc/snep/ |
D | SnepValidationClientTests.java | 61 byte[] responseBytes = client.get(msg).getNdefMessage().toByteArray(); in testNonFragmented() 63 byte[] msgBytes = msg.toByteArray(); in testNonFragmented() 82 Log.d(TAG, "Putting ndef message of size " + msg.toByteArray().length + "..."); in testFragmented() 86 byte[] responseBytes = client.get(msg).getNdefMessage().toByteArray(); in testFragmented() 88 byte[] msgBytes = msg.toByteArray(); in testFragmented() 119 responseBytes = client.get(msgA).getNdefMessage().toByteArray(); in testMultipleNdef() 121 msgBytes = msgA.toByteArray(); in testMultipleNdef() 128 responseBytes = client.get(msgB).getNdefMessage().toByteArray(); in testMultipleNdef() 130 msgBytes = msgB.toByteArray(); in testMultipleNdef() 168 Log.d(TAG, "Putting ndef message of size " + msg.toByteArray().length + "..."); in testUndeliverable()
|
D | SnepBasicTests.java | 214 (byte)2, SnepMessage.REQUEST_PUT, ndef.toByteArray().length, 0, ndef); in testUnsupportedVersion() 250 version, SnepMessage.REQUEST_PUT, ndef.toByteArray().length, 0, ndef); in testDifferentMinorVersion()
|
/packages/apps/Nfc/src/com/android/nfc/snep/ |
D | SnepMessenger.java | 45 byte[] buffer = msg.toByteArray(); in sendMessage() 113 mSocket.send(SnepMessage.getMessage(fieldReject).toByteArray()); in getMessage() 120 mSocket.send(SnepMessage.getMessage(fieldReject).toByteArray()); in getMessage() 144 mSocket.send(SnepMessage.getMessage(fieldContinue).toByteArray()); in getMessage() 156 mSocket.send(SnepMessage.getMessage(fieldReject).toByteArray()); in getMessage() 170 mSocket.send(SnepMessage.getMessage(fieldReject).toByteArray()); in getMessage() 180 return SnepMessage.fromByteArray(buffer.toByteArray()); in getMessage()
|
D | SnepMessage.java | 54 return new SnepMessage(VERSION, REQUEST_GET, 4 + ndef.toByteArray().length, in getGetRequest() 59 return new SnepMessage(VERSION, REQUEST_PUT, ndef.toByteArray().length, 0, ndef); in getPutRequest() 70 return new SnepMessage(VERSION, RESPONSE_SUCCESS, ndef.toByteArray().length, 0, ndef); in getSuccessResponse() 114 public byte[] toByteArray() { in toByteArray() method in SnepMessage 117 bytes = mNdefMessage.toByteArray(); in toByteArray() 144 return buffer.toByteArray(); in toByteArray()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/ |
D | SapMessage.java | 846 RIL_SIM_SAP_STATUS_IND.parseFrom(msg.getPayload().toByteArray()); in createUnsolicited() 863 RIL_SIM_SAP_DISCONNECT_IND.parseFrom(msg.getPayload().toByteArray()); in createUnsolicited() 906 RIL_SIM_SAP_CONNECT_RSP.parseFrom(msg.getPayload().toByteArray()); in createSolicited() 944 RIL_SIM_SAP_APDU_RSP.parseFrom(msg.getPayload().toByteArray()); in createSolicited() 951 mApduResp = resMsg.getApduResponse().toByteArray(); in createSolicited() 976 msg.getPayload().toByteArray()); in createSolicited() 1003 RIL_SIM_SAP_TRANSFER_ATR_RSP.parseFrom(msg.getPayload().toByteArray()); in createSolicited() 1006 mAtr = resMsg.getAtr().toByteArray(); in createSolicited() 1036 RIL_SIM_SAP_POWER_RSP.parseFrom(msg.getPayload().toByteArray()); in createSolicited() 1063 RIL_SIM_SAP_POWER_RSP.parseFrom(msg.getPayload().toByteArray()); in createSolicited() [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
D | IOUtils.java | 216 public static byte[] toByteArray(InputStream input) throws IOException { in toByteArray() method in IOUtils 219 return output.toByteArray(); in toByteArray() 234 public static byte[] toByteArray(Reader input) throws IOException { in toByteArray() method in IOUtils 237 return output.toByteArray(); in toByteArray() 257 public static byte[] toByteArray(Reader input, String encoding) in toByteArray() method in IOUtils 261 return output.toByteArray(); in toByteArray() 277 public static byte[] toByteArray(String input) throws IOException { in toByteArray() method in IOUtils
|
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | AdvertiseHelper.java | 119 ret.write(serviceUuids16.toByteArray(), 0, serviceUuids16.size()); in advertiseDataToBytes() 125 ret.write(serviceUuids32.toByteArray(), 0, serviceUuids32.size()); in advertiseDataToBytes() 131 ret.write(serviceUuids128.toByteArray(), 0, serviceUuids128.size()); in advertiseDataToBytes() 167 return ret.toByteArray(); in advertiseDataToBytes()
|
/packages/apps/Nfc/src/com/android/nfc/ndefpush/ |
D | NdefPushProtocol.java | 148 public byte[] toByteArray() { in toByteArray() method in NdefPushProtocol 157 byte[] bytes = mMessages[i].toByteArray(); in toByteArray() 165 return buffer.toByteArray(); in toByteArray()
|
/packages/apps/Email/tests/src/com/android/email/mail/store/imap/ |
D | ImapStringTest.java | 49 assertEquals("", Utility.fromAscii(IOUtils.toByteArray(ImapString.EMPTY.getAsStream()))); in testEmpty() 65 assertEquals("AbcD", Utility.fromAscii(IOUtils.toByteArray(s.getAsStream()))); in testBasics() 147 assertEquals(content, Utility.fromAscii(IOUtils.toByteArray(s.getAsStream()))); in doLiteralTest()
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/ |
D | ByteArrayOutputStream.java | 269 public synchronized byte[] toByteArray() { in toByteArray() method in ByteArrayOutputStream 296 return new String(toByteArray()); in toString() 309 return new String(toByteArray(), enc); in toString()
|
/packages/apps/Email/tests/src/com/android/emailcommon/internet/ |
D | Rfc822OutputTests.java | 131 new ByteArrayInputStream(byteStream.toByteArray()); in testWriteToText() 165 new ByteArrayInputStream(byteStream.toByteArray()); in testWriteToAlternativePart() 209 new ByteArrayInputStream(byteStream.toByteArray()); in testWriteToMixedPart()
|
/packages/apps/Dialer/java/com/android/dialer/backup/ |
D | DialerBackupUtils.java | 83 byte[] bytes = voicemailInfo.toByteArray(); in writeProtoToFile() 103 byte[] byteArray = Files.toByteArray(file); in protoFileToVoicemailInfo() 257 return Pair.create(contentValues, voicemailInfo.getEncodedVoicemailKey().toByteArray()); in convertVoicemailProtoFileToContentValueAndAudioBytes()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/parser/ |
D | PropertiesProvisioningDataParserTest.java | 168 stream.toByteArray()); in testParse_nfcProvisioningIntent() 241 NdefRecord record = NdefRecord.createMime(INVALID_MIME_TYPE, stream.toByteArray()); in testGetFirstNdefRecord_noNfcMimeType() 256 stream.toByteArray()); in testGetFirstNdefRecord()
|
/packages/apps/TV/src/com/android/tv/data/ |
D | InternalDataUtils.java | 83 return bos.toByteArray(); in serializeInternalProviderData() 125 return bos.toByteArray(); in serializeInternalProviderData()
|
/packages/apps/Nfc/src/com/android/nfc/handover/ |
D | HandoverClient.java | 109 byte[] buffer = msg.toByteArray(); in sendHandoverRequest() 133 handoverSelectMsg = new NdefMessage(byteStream.toByteArray()); in sendHandoverRequest()
|
D | HandoverDataParser.java | 182 byte[] nestedPayload = nestedMessage.toByteArray(); in createHandoverSelectRecord() 202 byte[] nestedPayload = nestedMessage.toByteArray(); in createHandoverRequestRecord() 206 payload.put(nestedMessage.toByteArray()); in createHandoverRequestRecord()
|
D | HandoverServer.java | 198 handoverRequestMsg = new NdefMessage(byteStream.toByteArray()); in run() 221 byte[] buffer = handoverData.handoverSelect.toByteArray(); in run()
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/decoder/ |
D | DecoderUtil.java | 68 return baos.toByteArray(); in decodeBaseQuotedPrintable() 97 return baos.toByteArray(); in decodeBase64()
|
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/ |
D | TaskJpegEncode.java | 177 return postViewBytes.toByteArray(); in convertNv21toJpeg() 199 return stream.toByteArray(); in decompressCropAndRecompressJpegData()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/ |
D | VerifyPackageTaskTest.java | 164 when(mUtils.computeHashOfByteArray(TEST_SIGNATURES[0].toByteArray())) in testSignatureHash_success() 178 when(mUtils.computeHashOfByteArray(TEST_SIGNATURES[0].toByteArray())) in testSignatureHash_failure()
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | CarPropertyUtils.java | 18 import static com.android.car.CarServiceUtils.toByteArray; 56 byte[] halData = toByteArray(v.bytes); in toCarPropertyValue()
|
D | VmsHalService.java | 18 import static com.android.car.CarServiceUtils.toByteArray; 312 byte[] payload = toByteArray(v.value.bytes); in handleHalEvents()
|
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/ |
D | HttpFetcher.java | 93 handleBadResponse(url.toString(), baos.toByteArray()); in sendRequestAsByteArray() 100 byte[] response = baos.toByteArray(); in sendRequestAsByteArray()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/test/ |
D | CarVendorExtensionManagerTest.java | 19 import static com.android.car.CarServiceUtils.toByteArray; 237 mBytes = toByteArray(propValue.value.bytes); in set()
|
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/ |
D | DictionaryBackupAgent.java | 189 return baos.toByteArray(); in getDictionary() 206 dictionary = baos.toByteArray(); in restoreDictionary()
|