/cts/tests/tests/ndef/src/android/ndef/cts/ |
D | NdefTest.java | 332 new NdefRecord(NdefRecord.TNF_MIME_MEDIA, "text/plain".getBytes(ASCII), null, in testCreateMime() 333 "foo".getBytes()), in testCreateMime() 334 NdefRecord.createMime("text/plain", "foo".getBytes())); in testCreateMime() 379 new NdefRecord(NdefRecord.TNF_EXTERNAL_TYPE, "a.b:c".getBytes(ASCII), null, null), in testCreateExternal() 384 new NdefRecord(NdefRecord.TNF_EXTERNAL_TYPE, "a.b:c!".getBytes(ASCII), null, null), in testCreateExternal() 429 assertEquals("android.com:pkg".getBytes(), r.getType()); in testCreateApplicationRecord() 431 assertEquals("com.foo.bar".getBytes(), r.getPayload()); in testCreateApplicationRecord() 487 "http://www.android.com".getBytes(), null, null).toUri()); in testToUri() 495 "http://www.android.com".getBytes(), null, null)).toByteArray()).toUri()); in testToUri() 511 new NdefRecord(NdefRecord.TNF_ABSOLUTE_URI, "HTTP://www.android.com".getBytes(), in testToUri() [all …]
|
/cts/tests/tests/telephony/src/android/telephony/cts/ |
D | MmsTest.java | 260 req.setMessageClass(PduHeaders.MESSAGE_CLASS_PERSONAL_STR.getBytes()); in buildPdu() 283 part.setContentType(ContentType.TEXT_PLAIN.getBytes()); in addTextPart() 285 part.setContentLocation(TEXT_PART_FILENAME.getBytes()); in addTextPart() 289 part.setContentId(contentId.getBytes()); in addTextPart() 290 part.setData(message.getBytes()); in addTextPart() 301 smilPart.setContentId("smil".getBytes()); in addSmilPart() 302 smilPart.setContentLocation("smil.xml".getBytes()); in addSmilPart() 303 smilPart.setContentType(ContentType.APP_SMIL.getBytes()); in addSmilPart() 304 smilPart.setData(smil.getBytes()); in addSmilPart()
|
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/ |
D | DocumentsClientTest.java | 126 MoreAsserts.assertEquals("fileone".getBytes(), readFully(uri)); in testOpenSimple() 128 writeFully(uri, "replaced!".getBytes()); in testOpenSimple() 130 MoreAsserts.assertEquals("replaced!".getBytes(), readFully(uri)); in testOpenSimple() 167 "Converted contents.".getBytes(), readTypedFully(uri, streamTypes[0])); in testOpenVirtual() 191 writeFully(uri, "meow!".getBytes()); in testCreateNew() 222 MoreAsserts.assertEquals("filetwo".getBytes(), readFully(uri)); in testCreateExisting() 267 writeFully(pic, "pic".getBytes()); in testTree() 268 writeFully(dirPic, "dirPic".getBytes()); in testTree() 272 MoreAsserts.assertEquals("filefour".getBytes(), readFully(file4)); in testTree() 275 MoreAsserts.assertEquals("filefour".getBytes(), readFully(file4)); in testTree() [all …]
|
/cts/common/util/src/com/android/compatibility/common/util/ |
D | ResultUploader.java | 50 byte[] data = getBytes(input); in uploadResult() 61 private static byte[] getBytes(InputStream input) throws IOException { in getBytes() method in ResultUploader
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/ |
D | NdefPushSenderActivity.java | 62 .getBytes(Charset.forName("US-ASCII")); in getTestMessage() 64 byte[] payload = "CTS Verifier NDEF Push Tag".getBytes(Charset.forName("US-ASCII")); in getTestMessage()
|
D | LlcpVersionActivity.java | 64 .getBytes(Charset.forName("US-ASCII")); in getTestMessage() 66 byte[] payload = "CTS Verifier NDEF Push Tag".getBytes(Charset.forName("US-ASCII")); in getTestMessage()
|
/cts/common/util/tests/src/com/android/compatibility/common/util/ |
D | MultipartFormTest.java | 53 form.addFormFile("blah", "blah.xml.gz", "blah".getBytes()); in testContentBody()
|
D | DynamicConfigTest.java | 108 stream.write(configStr.getBytes()); in createFileFromStr()
|
/cts/tests/admin/src/android/admin/cts/ |
D | DevicePolicyManagerTest.java | 344 TEST_CA_STRING1.getBytes()); in testInstallCaCert_failIfNotProfileOwner() 358 mDevicePolicyManager.installCaCert(null, TEST_CA_STRING1.getBytes()); in testInstallCaCert_failIfNotCertInstaller() 371 TEST_CA_STRING1.getBytes()); in testUninstallCaCert_failIfNotProfileOwner() 385 mDevicePolicyManager.uninstallCaCert(null, TEST_CA_STRING1.getBytes()); in testUninstallCaCert_failIfNotCertInstaller() 424 TEST_CA_STRING1.getBytes()); in testHasCaCertInstalled_failIfNotProfileOwner() 438 mDevicePolicyManager.hasCaCertInstalled(null, TEST_CA_STRING1.getBytes()); in testHasCaCertInstalled_failIfNotCertInstaller()
|
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/testtype/ |
D | TestPackageDefTest.java | 37 return new ByteArrayInputStream("test data for digest".getBytes()); in testGenerateDigest()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | NoSdCardWritePermissionTest.java | 41 strm.write("Oops!".getBytes()); in testWriteExternalStorage()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | ServiceWorkerClientTest.java | 88 new ByteArrayInputStream(INDEX_RAW_HTML.getBytes("UTF-8"))); in shouldInterceptRequest() 105 new ByteArrayInputStream(SW_RAW_HTML.getBytes("UTF-8"))); in shouldInterceptRequest()
|
/cts/tools/dex-tools/test/dex/reader/util/ |
D | JavaSource.java | 54 return new ByteArrayInputStream(src.getBytes()); in openInputStream()
|
D | MemoryByteCode.java | 57 public byte[] getBytes() { in getBytes() method in MemoryByteCode
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/tech/ |
D | NdefTagTester.java | 100 byte[] mimeBytes = MIME_TYPE.getBytes(Charset.forName("US-ASCII")); 103 byte[] payload = PAYLOAD.getBytes(Charset.forName("US-ASCII"));
|
/cts/hostsidetests/appsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/ |
D | MyDocumentsProvider.java | 119 file1.contents = "fileone".getBytes(); in resetRoots() 127 file2.contents = "filetwo".getBytes(); in resetRoots() 137 virtualFile.contents = "Converted contents.".getBytes(); in resetRoots() 147 file3.contents = "filethree".getBytes(); in resetRoots() 157 file4.contents = "filefour".getBytes(); in resetRoots()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | ClearKeySystemTest.java | 63 private static final byte[] CLEAR_KEY_WEBM = "_CLEAR_KEY_WEBM_".getBytes(); 151 String id = new String(keyIds.get(i).getBytes(Charset.forName("UTF-8"))); in createJsonWebKeySet() 152 String key = new String(keys.get(i).getBytes(Charset.forName("UTF-8"))); in createJsonWebKeySet() 201 byte[] jsonResponse = jwkSet.getBytes(Charset.forName("UTF-8")); in getKeys()
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/ |
D | ResultReporter.java | 49 byte[] data = IssueReporter.getBytes(input, RESULT_XML_BYTES); in reportResult()
|
D | IssueReporter.java | 101 mCurrentIssue.mBugReport = getBytes(input, BUGREPORT_SIZE); in setBugReport() 118 static byte[] getBytes(InputStream input, int size) throws IOException { in getBytes() method in IssueReporter
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | AssetManager_AssetInputStreamTest.java | 56 final byte[] bytes = CONTENT_STRING.getBytes(); in testMarkReset() 69 final byte[] bytes = CONTENT_STRING.getBytes(); in testReadMethods()
|
/cts/tests/tests/util/src/android/util/cts/ |
D | XmlEncodingTest.java | 76 Xml.parse(new ByteArrayInputStream(sourceStr.getBytes(STR_US_ASCII)), in testValueOf() 108 Xml.parse(new ByteArrayInputStream(sourceStr.getBytes(STR_UTF_8)), in testValueOf() 140 Xml.parse(new ByteArrayInputStream(sourceStr.getBytes(STR_UTF_16)), in testValueOf() 172 Xml.parse(new ByteArrayInputStream(sourceStr.getBytes(STR_ISO_8859_1)), in testValueOf()
|
/cts/libs/testserver/src/android/webkit/cts/ |
D | TestWebServer.java | 213 return setResponseInternal(requestPath, "".getBytes(), null, null, in setResponseWithNotFoundStatus() 231 return setResponseInternal(requestPath, responseString.getBytes(), responseHeaders, null, in setResponse() 254 requestPath, responseString.getBytes(), responseHeaders, responseAction, in setResponseWithRunnableAction() 271 return setResponseInternal(requestPath, targetPath.getBytes(), responseHeaders, null, in setRedirect() 473 ByteArrayEntity entity = createEntity(buf.toString().getBytes()); in createResponse()
|
/cts/common/host-side/util/tests/src/com/android/compatibility/common/util/ |
D | DynamicConfigHandlerTest.java | 123 stream.write(configStr.getBytes()); in createFileFromStr()
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | ScanResultTest.java | 61 TestUtils.assertArrayEquals(SCAN_RECORD, resultFromParcel.getScanRecord().getBytes()); in testScanResultParceling()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | DelegatedCertInstallerTest.java | 166 mDpm.uninstallCaCert(ADMIN_RECEIVER_COMPONENT, TEST_CA.getBytes()); in tearDown() 174 byte[] cert = TEST_CA.getBytes(); in testCaCertsOperations()
|