/frameworks/base/keystore/java/android/security/ |
D | KeyStore.java | 78 return get(getBytes(key)); in get() 87 return put(getBytes(key), value); in put() 96 return delete(getBytes(key)); in delete() 105 return contains(getBytes(key)); in contains() 114 byte[][] values = saw(getBytes(prefix)); in saw() 136 return password(getBytes(password)); in password() 150 return unlock(getBytes(password)); in unlock() 222 private static byte[] getBytes(String string) { in getBytes() method in KeyStore 223 return string.getBytes(Charsets.UTF_8); in getBytes()
|
/frameworks/base/core/tests/utillib/src/coretestutils/http/ |
D | MockResponse.java | 128 return setBody(body.getBytes(ASCII)); in setBody() 146 bytesOut.write(Integer.toHexString(chunkSize).getBytes(ASCII)); in setChunkedBody() 147 bytesOut.write("\r\n".getBytes(ASCII)); in setChunkedBody() 149 bytesOut.write("\r\n".getBytes(ASCII)); in setChunkedBody() 152 bytesOut.write("0\r\n".getBytes(ASCII)); in setChunkedBody() 158 return setChunkedBody(body.getBytes(ASCII), maxChunkSize); in setChunkedBody()
|
D | MockWebServer.java | 278 out.write((response.getStatus() + "\r\n").getBytes(ASCII)); in writeResponse() 284 out.write((header + "\r\n").getBytes(ASCII)); in writeResponse() 294 out.write(("\r\n").getBytes(ASCII)); in writeResponse()
|
/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | Wap230WspContentTypeTest.java | 267 out.write(testType.getBytes("US-ASCII")); in testConstrainedMediaExtensionMedia() 283 out.write(testType.getBytes("US-ASCII")); in testGeneralFormShortLengthExtensionMedia() 451 out.write(testType.getBytes("US-ASCII")); in testGeneralFormLengthQuoteExtensionMedia() 476 out.write(testType.getBytes("US-ASCII")); in testGeneralFormLengthQuoteExtensionMediaWithNiceLongMimeType() 494 out.write(testType.getBytes("US-ASCII")); in testConstrainedMediaExtensionMediaWithSpace() 537 out.write("wdstechnology.com".getBytes("US-ASCII")); in testTypedParamWellKnownShortIntegerTokenText() 562 out.write("wdstechnology.com".getBytes("US-ASCII")); in testTypedParamWellKnownLongIntegerTokenText() 587 out.write("wdstechnology.com".getBytes("US-ASCII")); in testTypedParamWellKnownShortIntegerQuotedText() 635 out.write("imapc".getBytes("US-ASCII")); in testTypedParamWellKnownShortIntegerMultipleParameters() 656 out.write("MYPARAM".getBytes("US-ASCII")); in testUntypedParamIntegerValueShortInteger() [all …]
|
D | SimSmsTest.java | 47 pdu = data.getBytes(); in testBasic()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | LoggingPrintStreamTest.java | 136 out.write(expected.getBytes("UTF-8")); in testMultiByteCharactersSpanningBuffers() 143 for (byte b : expected.getBytes()) { in testWriteOneByteAtATimeMultibyteCharacters() 152 out.write(expected.getBytes()); in testWriteByteArrayAtATimeMultibyteCharacters() 159 byte[] bytes = expected.getBytes(); in testWriteWithOffsetsMultibyteCharacters() 175 out.write(toWrite.getBytes()); in testWriteFlushesOnNewlines()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | Base64Test.java | 42 String b64 = Base64.encodeToString(in.getBytes(), flags); in encodeToString() 249 assertEquals("YWJj".getBytes(), 4, encoder.output, encoder.op); in XXXtestEncodeInternal() 253 assertEquals("YWJj".getBytes(), 4, encoder.output, encoder.op); in XXXtestEncodeInternal() 265 assertEquals("YWFh".getBytes(), 4, encoder.output, encoder.op); in XXXtestEncodeInternal() 273 assertEquals("YWJh".getBytes(), 4, encoder.output, encoder.op); in XXXtestEncodeInternal() 277 assertEquals("YmFi".getBytes(), 4, encoder.output, encoder.op); in XXXtestEncodeInternal() 281 assertEquals("YQ".getBytes(), 2, encoder.output, encoder.op); in XXXtestEncodeInternal() 319 byte[] plain = (lipsum + lipsum + lipsum + lipsum + lipsum).getBytes(); in testInputStream() 413 new ByteArrayInputStream("/v8=".getBytes()), Base64.DEFAULT); in testSingleByteReads() 434 byte[] plain = (lipsum + lipsum).getBytes(); in testOutputStream()
|
/frameworks/base/core/java/android/nfc/ |
D | NdefRecord.java | 155 public static final byte[] RTD_ANDROID_APP = "android.com:pkg".getBytes(); 345 byte[] fullUri = concat(prefix.getBytes(Charsets.UTF_8), in parseWellKnownUriRecord() 378 packageName.getBytes(Charsets.US_ASCII)); in createApplicationRecord() 400 byte[] uriBytes = uriString.getBytes(Charsets.UTF_8); in createUri()
|
/frameworks/base/core/java/com/google/android/mms/pdu/ |
D | SendReq.java | 35 setContentType("application/vnd.wap.multipart.related".getBytes()); in SendReq() 36 setFrom(new EncodedStringValue(PduHeaders.FROM_INSERT_ADDRESS_TOKEN_STR.getBytes())); in SendReq() 47 return transactionId.getBytes(); in generateTransactionId()
|
D | PduComposer.java | 312 appendTextString(str.getBytes()); in appendTextString() 452 appendQuotedString(str.getBytes()); in appendQuotedString() 463 temp.appendTextString(STRING_PHONE_NUMBER_ADDRESS_TYPE.getBytes()); in appendAddressType() 466 temp.appendTextString(STRING_IPV4_ADDRESS_TYPE.getBytes()); in appendAddressType() 469 temp.appendTextString(STRING_IPV6_ADDRESS_TYPE.getBytes()); in appendAddressType() 605 PduHeaders.MESSAGE_CLASS_ADVERTISEMENT_STR.getBytes())) { in appendHeader() 608 PduHeaders.MESSAGE_CLASS_AUTO_STR.getBytes())) { in appendHeader() 611 PduHeaders.MESSAGE_CLASS_PERSONAL_STR.getBytes())) { in appendHeader() 614 PduHeaders.MESSAGE_CLASS_INFORMATIONAL_STR.getBytes())) { in appendHeader()
|
D | PduParser.java | 410 value.setTextString(str.getBytes()); in parseHeaders() 488 from.setTextString(str.getBytes()); in parseHeaders() 498 PduHeaders.FROM_INSERT_ADDRESS_TOKEN_STR.getBytes()); in parseHeaders() 526 PduHeaders.MESSAGE_CLASS_PERSONAL_STR.getBytes(), in parseHeaders() 530 PduHeaders.MESSAGE_CLASS_ADVERTISEMENT_STR.getBytes(), in parseHeaders() 534 PduHeaders.MESSAGE_CLASS_INFORMATIONAL_STR.getBytes(), in parseHeaders() 538 PduHeaders.MESSAGE_CLASS_AUTO_STR.getBytes(), in parseHeaders() 760 part.setContentType((PduContentTypes.contentTypes[0]).getBytes()); //"*/*" in parseParts() 796 System.currentTimeMillis()).getBytes()); in parseParts() 1293 byte[] type = (PduContentTypes.contentTypes[index]).getBytes(); in parseContentTypeParams() [all …]
|
D | PduPart.java | 96 static final byte[] DISPOSITION_FROM_DATA = "from-data".getBytes(); 97 static final byte[] DISPOSITION_ATTACHMENT = "attachment".getBytes(); 98 static final byte[] DISPOSITION_INLINE = "inline".getBytes();
|
D | EncodedStringValue.java | 75 mData = data.getBytes(CharacterSets.DEFAULT_CHARSET_NAME); in EncodedStringValue() 218 temp[i].getBytes()); in split()
|
/frameworks/base/core/java/android/webkit/ |
D | DataLoader.java | 48 data = url.substring(commaIndex + 1).getBytes(); in DataLoader() 54 data = url.getBytes(); in DataLoader()
|
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/ |
D | FsUtils.java | 92 bos.write(s.getBytes()); in writeLayoutTestListRecursively() 95 bos.write((" IGNORE_RESULT").getBytes()); in writeLayoutTestListRecursively() 108 bos.write(s.getBytes()); in updateTestStatus()
|
D | LayoutTestsAutoTest.java | 54 mBufferedOutputPassedStream.write(layout_file.getBytes()); in passed() 64 mBufferedOutputFailedStream.write(layout_file.getBytes()); in failed() 74 mBufferedOutputIgnoreResultStream.write(layout_file.getBytes()); in ignoreResult() 84 mBufferedOutputNoResultStream.write(layout_file.getBytes()); in noResult()
|
D | ReliabilityTest.java | 177 bos.write(s.getBytes()); in writeTimeoutFile() 190 bos.write((s + '|' + time + '\n').getBytes()); in writeLoadTime()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | DropBoxTest.java | 92 dropbox.addData("DropBoxTest", "TEST".getBytes(), 0); 124 gz1.write("FILE1".getBytes()); 125 os2.write("DATA2".getBytes()); 126 gz3.write("DATA3".getBytes()); 193 gz2.write("FUTURE2".getBytes()); in testAddEntriesInTheFuture() 528 dropbox.addData("DropBoxTest", "should be ignored".getBytes(), 0); in testCreateDropBoxManagerWithInvalidDirectory() 550 new DropBoxManager.Entry("bytes", 3000000, "Bytes Value".getBytes(), in testDropBoxEntrySerialization() 558 "Bad Bytes Value".getBytes(), in testDropBoxEntrySerialization() 574 os.write("File Value".getBytes()); in testDropBoxEntrySerialization() 608 gzout.write("Gzip File Value".getBytes()); in testDropBoxEntrySerialization() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/ |
D | SyncStorageEngineTest.java | 226 + "</accounts>\n").getBytes(); in testAuthorityParsing() 254 + "</accounts>\n").getBytes(); in testAuthorityParsing() 283 + "</accounts>\n").getBytes(); in testAuthorityParsing() 331 + "</accounts>\n").getBytes(); in testAuthorityRenaming() 371 + "</accounts>\n").getBytes(); in testSyncableMigration()
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | SmsRawData.java | 50 public byte[] getBytes() { in getBytes() method in SmsRawData
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | SSLTest.java | 44 out.write(get.getBytes()); in testCertificate()
|
/frameworks/base/core/tests/coretests/src/android/net/http/ |
D | SslCertificateTest.java | 50 … certificateFactory.generateCertificate(new ByteArrayInputStream(Issue1597Certificate.getBytes())); in testSslCertificateWithEmptyIssuer()
|
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/forwarder/ |
D | AdbUtils.java | 67 outputStream.write(cmd.getBytes()); in configureConnection()
|
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/ |
D | SmsManagerPermissionTest.java | 60 MSG_CONTENTS.getBytes(), null, null); in testSendDataMessage()
|
/frameworks/base/keystore/tests/src/android/security/ |
D | KeyStoreTest.java | 41 private static final byte[] TEST_KEYVALUE = "test value".getBytes(Charsets.UTF_8); 45 private static final byte[] TEST_I18N_VALUE = TEST_I18N_KEY.getBytes(Charsets.UTF_8);
|