Home
last modified time | relevance | path

Searched refs:getBytes (Results 1 – 25 of 113) sorted by relevance

12345

/cts/hostsidetests/appsecurity/test-apps/InstantCookieApp/src/test/instant/cookie/
DCookieTest.java47 pm.updateInstantAppCookie("1".getBytes()); in testCookieUpdateAndRetrieval()
67 pm.updateInstantAppCookie("2".getBytes()); in testCookiePersistedAcrossInstantInstalls1()
86 pm.updateInstantAppCookie("3".getBytes()); in testCookiePersistedUpgradeFromInstant1()
105 pm.updateInstantAppCookie("4".getBytes()); in testCookieResetOnNonInstantReinstall1()
/cts/tests/tests/proto/src/android/util/proto/cts/
DProtoOutputStreamObjectTest.java90 }, po.getBytes()); in testObjectOneChar()
118 }, po.getBytes()); in testObjectOneLargeChar()
160 }, po.getBytes()); in testObjectAndTwoChars()
183 Assert.assertArrayEquals(new byte[0], po.getBytes()); in testEmptyObject()
211 Assert.assertArrayEquals(new byte[0], po.getBytes()); in testDeepEmptyObjects()
246 }, po.getBytes()); in testEmptyObjectAndTwoChars()
278 }, po.getBytes()); in testEmptyRepeatedObject()
333 }, po.getBytes()); in testComplexObject()
386 }, po.getBytes()); in testDeepObjects()
460 po.getBytes(); in testTrailingStartObjectWithData()
[all …]
DProtoOutputStreamStringTest.java61 final byte[] utf8 = string.getBytes("UTF-8"); in testWriteLongString()
73 Assert.assertArrayEquals(expected, po.getBytes()); in testWriteLongString()
97 final byte[] result = po.getBytes(); in testWrite()
137 final byte[] result = po.getBytes(); in testWriteCompat()
177 final byte[] result = po.getBytes(); in testRepeated()
237 final byte[] result = po.getBytes(); in testRepeatedCompat()
DProtoOutputStreamBoolTest.java54 final byte[] result = po.getBytes(); in testWrite()
84 final byte[] result = po.getBytes(); in testWriteCompat()
120 final byte[] result = po.getBytes(); in testRepeated()
161 final byte[] result = po.getBytes(); in testRepeatedCompat()
209 final byte[] result = po.getBytes(); in testPacked()
245 final byte[] result = po.getBytes(); in testPackedCompat()
DProtoOutputStreamSFixed32Test.java57 final byte[] result = po.getBytes(); in testWrite()
99 final byte[] result = po.getBytes(); in testWriteCompat()
141 final byte[] result = po.getBytes(); in testRepeated()
200 final byte[] result = po.getBytes(); in testRepeatedCompat()
251 final byte[] result = po.getBytes(); in testPacked()
302 final byte[] result = po.getBytes(); in testPackedCompat()
DProtoOutputStreamSInt32Test.java57 final byte[] result = po.getBytes(); in testWrite()
99 final byte[] result = po.getBytes(); in testWriteCompat()
141 final byte[] result = po.getBytes(); in testRepeated()
200 final byte[] result = po.getBytes(); in testRepeatedCompat()
250 final byte[] result = po.getBytes(); in testPacked()
301 final byte[] result = po.getBytes(); in testPackedCompat()
DProtoOutputStreamEnumTest.java60 final byte[] result = po.getBytes(); in testWrite()
104 final byte[] result = po.getBytes(); in testWriteCompat()
149 final byte[] result = po.getBytes(); in testRepeated()
212 final byte[] result = po.getBytes(); in testRepeatedCompat()
266 final byte[] result = po.getBytes(); in testPacked()
330 final byte[] result = po.getBytes(); in testPackedCompat()
DProtoOutputStreamInt32Test.java57 final byte[] result = po.getBytes(); in testWrite()
101 final byte[] result = po.getBytes(); in testWriteCompat()
143 final byte[] result = po.getBytes(); in testRepeated()
206 final byte[] result = po.getBytes(); in testRepeatedCompat()
257 final byte[] result = po.getBytes(); in testPacked()
317 final byte[] result = po.getBytes(); in testPackedCompat()
DProtoOutputStreamFixed32Test.java57 final byte[] result = po.getBytes(); in testWrite()
99 final byte[] result = po.getBytes(); in testWriteCompat()
141 final byte[] result = po.getBytes(); in testRepeated()
200 final byte[] result = po.getBytes(); in testRepeatedCompat()
250 final byte[] result = po.getBytes(); in testPacked()
301 final byte[] result = po.getBytes(); in testPackedCompat()
DProtoOutputStreamUInt32Test.java57 final byte[] result = po.getBytes(); in testWrite()
99 final byte[] result = po.getBytes(); in testWriteCompat()
141 final byte[] result = po.getBytes(); in testRepeated()
200 final byte[] result = po.getBytes(); in testRepeatedCompat()
250 final byte[] result = po.getBytes(); in testPacked()
301 final byte[] result = po.getBytes(); in testPackedCompat()
DProtoOutputStreamBytesTest.java70 Assert.assertArrayEquals(expected, po.getBytes()); in testWrite()
99 final byte[] result = po.getBytes(); in testWriteCompat()
143 final byte[] result = po.getBytes(); in testRepeated()
205 final byte[] result = po.getBytes(); in testRepeatedCompat()
DProtoOutputStreamSInt64Test.java60 final byte[] result = po.getBytes(); in testWrite()
112 final byte[] result = po.getBytes(); in testWriteCompat()
158 final byte[] result = po.getBytes(); in testRepeated()
235 final byte[] result = po.getBytes(); in testRepeatedCompat()
287 final byte[] result = po.getBytes(); in testPacked()
355 final byte[] result = po.getBytes(); in testPackedCompat()
DProtoOutputStreamInt64Test.java59 final byte[] result = po.getBytes(); in testWrite()
113 final byte[] result = po.getBytes(); in testWriteCompat()
159 final byte[] result = po.getBytes(); in testRepeated()
239 final byte[] result = po.getBytes(); in testRepeatedCompat()
291 final byte[] result = po.getBytes(); in testPacked()
370 final byte[] result = po.getBytes(); in testPackedCompat()
DProtoOutputStreamSFixed64Test.java60 final byte[] result = po.getBytes(); in testWrite()
116 final byte[] result = po.getBytes(); in testWriteCompat()
162 final byte[] result = po.getBytes(); in testRepeated()
248 final byte[] result = po.getBytes(); in testRepeatedCompat()
301 final byte[] result = po.getBytes(); in testPacked()
377 final byte[] result = po.getBytes(); in testPackedCompat()
DProtoOutputStreamFixed64Test.java60 final byte[] result = po.getBytes(); in testWrite()
116 final byte[] result = po.getBytes(); in testWriteCompat()
162 final byte[] result = po.getBytes(); in testRepeated()
249 final byte[] result = po.getBytes(); in testRepeatedCompat()
302 final byte[] result = po.getBytes(); in testPacked()
378 final byte[] result = po.getBytes(); in testPackedCompat()
DProtoOutputStreamSwitchedWriteTest.java183 final byte[] switchedResult = switchedPo.getBytes(); in testAWrite()
184 final byte[] typedResult = typedPo.getBytes(); in testAWrite()
256 final byte[] typedResult = typedPo.getBytes(); in testWriteString()
257 final byte[] switchedResult = switchedPo.getBytes(); in testWriteString()
279 final byte[] typedResult = typedPo.getBytes(); in testWriteRepeatedString()
280 final byte[] switchedResult = switchedPo.getBytes(); in testWriteRepeatedString()
DProtoOutputStreamUInt64Test.java59 final byte[] result = po.getBytes(); in testWrite()
113 final byte[] result = po.getBytes(); in testWriteCompat()
159 final byte[] result = po.getBytes(); in testRepeated()
239 final byte[] result = po.getBytes(); in testRepeatedCompat()
291 final byte[] result = po.getBytes(); in testPacked()
370 final byte[] result = po.getBytes(); in testPackedCompat()
DProtoOutputStreamDoubleTest.java75 final byte[] result = po.getBytes(); in testWrite()
141 final byte[] result = po.getBytes(); in testWriteCompat()
191 final byte[] result = po.getBytes(); in testRepeated()
295 final byte[] result = po.getBytes(); in testRepeatedCompat()
347 final byte[] result = po.getBytes(); in testPacked()
439 final byte[] result = po.getBytes(); in testPackedCompat()
DProtoOutputStreamFloatTest.java76 final byte[] result = po.getBytes(); in testWrite()
135 final byte[] result = po.getBytes(); in testWriteCompat()
185 final byte[] result = po.getBytes(); in testRepeated()
271 final byte[] result = po.getBytes(); in testRepeatedCompat()
325 final byte[] result = po.getBytes(); in testPacked()
399 final byte[] result = po.getBytes(); in testPackedCompat()
/cts/tests/tests/ndef/src/android/ndef/cts/
DNdefTest.java332 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/
DMmsTest.java260 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/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DResetPasswordWithTokenTest.java23 private static final byte[] TOKEN0 = "abcdefghijklmnopqrstuvwxyz0123456789".getBytes();
24 private static final byte[] TOKEN1 = "abcdefghijklmnopqrstuvwxyz012345678*".getBytes();
/cts/common/util/src/com/android/compatibility/common/util/
DResultUploader.java50 byte[] data = getBytes(input); in uploadResult()
61 private static byte[] getBytes(InputStream input) throws IOException { in getBytes() method in ResultUploader
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DDocumentsClientTest.java159 MoreAsserts.assertEquals("fileone".getBytes(), readFully(uri)); in testOpenSimple()
161 writeFully(uri, "replaced!".getBytes()); in testOpenSimple()
163 MoreAsserts.assertEquals("replaced!".getBytes(), readFully(uri)); in testOpenSimple()
200 "Converted contents.".getBytes(), readTypedFully(uri, streamTypes[0])); in testOpenVirtual()
224 writeFully(uri, "meow!".getBytes()); in testCreateNew()
258 MoreAsserts.assertEquals("filetwo".getBytes(), readFully(uri)); in testCreateExisting()
303 writeFully(pic, "pic".getBytes()); in testTree()
304 writeFully(dirPic, "dirPic".getBytes()); in testTree()
308 MoreAsserts.assertEquals("filefour".getBytes(), readFully(file4)); in testTree()
311 MoreAsserts.assertEquals("filefour".getBytes(), readFully(file4)); in testTree()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/
DNdefPushSenderActivity.java62 .getBytes(Charset.forName("US-ASCII")); in getTestMessage()
64 byte[] payload = "CTS Verifier NDEF Push Tag".getBytes(Charset.forName("US-ASCII")); in getTestMessage()

12345