/cts/hostsidetests/appsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/ |
MyDocumentsProvider.java | 119 file1.contents = "fileone".getBytes(); 127 file2.contents = "filetwo".getBytes(); 137 virtualFile.contents = "Converted contents.".getBytes(); 147 file3.contents = "filethree".getBytes(); 157 file4.contents = "filefour".getBytes();
|
/external/opencv/otherlibs/highgui/ |
grfmt_sunras.cpp | 127 m_strm.GetBytes( buffer, m_maplength, &readed ); 211 m_strm.GetBytes( src, src_pitch ); 280 m_strm.GetBytes( src, src_pitch ); 358 m_strm.GetBytes( color ? data : bgr, src_pitch ); 379 m_strm.GetBytes( src + 3, src_pitch );
|
/external/opencv3/modules/imgcodecs/src/ |
grfmt_sunras.cpp | 107 if( m_strm.getBytes( buffer, m_maplength ) == m_maplength ) 190 m_strm.getBytes( src, src_pitch ); 259 m_strm.getBytes( src, src_pitch ); 337 m_strm.getBytes( color ? data : bgr, src_pitch ); 358 m_strm.getBytes( src + 3, src_pitch );
|
/libcore/luni/src/test/java/libcore/java/io/ |
OldDataInputStreamTest.java | 63 os.write(fileString.getBytes()); 94 os.write(fileString.getBytes()); 124 os.write(fileString.getBytes()); 153 os.write(fileString.getBytes()); 182 os.write(fileString.getBytes());
|
OldRandomAccessFileTest.java | 173 raf.write("Test".getBytes(), 0, 4); 190 raf.write(testString.getBytes()); 218 raf.write(testString.getBytes(), 0, testLength); 236 raf.write(testString.getBytes()); 253 byte[] testBuf = testString.getBytes(); 293 fos.write(testString.getBytes(), 0, testLength); 326 fos.write(testString.getBytes(), 0, testLength); 920 raf.write(s.getBytes(), 0, s.length()); 952 raf.write(testString.getBytes(), 0, testLength); [all...] |
/libcore/ojluni/src/main/java/sun/misc/ |
CharacterEncoder.java | 210 private byte [] getBytes(ByteBuffer bb) { 255 byte [] buf = getBytes(aBuffer); 266 byte [] buf = getBytes(aBuffer); 339 byte [] buf = getBytes(aBuffer); 350 byte [] buf = getBytes(aBuffer);
|
/dalvik/dx/src/com/android/dx/cf/direct/ |
StdAttributeFactory.java | 216 ByteArray bytes = cf.getBytes(); 246 code.forEach(new CodeObserver(code.getBytes(), observer)); 320 ByteArray bytes = cf.getBytes(); 354 ByteArray bytes = cf.getBytes(); 383 ByteArray bytes = cf.getBytes(); 411 ByteArray bytes = cf.getBytes(); 468 ByteArray bytes = cf.getBytes(); 509 ByteArray bytes = cf.getBytes(); 532 ByteArray bytes = cf.getBytes(); 681 ByteArray bytes = cf.getBytes(); [all...] |
/external/jetty/src/java/org/eclipse/jetty/security/authentication/ |
DigestAuthenticator.java | 361 md.update(username.getBytes(StringUtil.__ISO_8859_1)); 363 md.update(realm.getBytes(StringUtil.__ISO_8859_1)); 365 md.update(password.getBytes(StringUtil.__ISO_8859_1)); 370 md.update(method.getBytes(StringUtil.__ISO_8859_1)); 372 md.update(uri.getBytes(StringUtil.__ISO_8859_1)); 382 md.update(TypeUtil.toString(ha1, 16).getBytes(StringUtil.__ISO_8859_1)); 384 md.update(nonce.getBytes(StringUtil.__ISO_8859_1)); 386 md.update(nc.getBytes(StringUtil.__ISO_8859_1)); 388 md.update(cnonce.getBytes(StringUtil.__ISO_8859_1)); 390 md.update(qop.getBytes(StringUtil.__ISO_8859_1)) [all...] |
/external/guava/guava-tests/test/com/google/common/io/ |
ByteStreamsTest.java | 184 "This is a line\r\nThis too\rand this\nand also this".getBytes(Charsets.UTF_8)); 207 System.arraycopy("Kilroy was here".getBytes(Charsets.UTF_8), 0, data, 2, 15); 213 byte[] data = "qed".getBytes(Charsets.UTF_16BE); 351 byte[] expected = Arrays.copyOfRange("r\u00C9sum\u00C9".getBytes(Charsets.UTF_16), 2, 14); 358 byte[] expected ="r\u00C9sum\u00C9".getBytes(Charsets.UTF_8); 483 nos.write(test.getBytes()); 484 nos.write(test.getBytes(), 2, 10);
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/stringprep/ |
TestStringPrep.java | 110 byte[] dest = NFS4StringPrep.mixed_prepare(src.getBytes("UTF-8")); 124 byte[] dest = NFS4StringPrep.mixed_prepare(src.getBytes("UTF-8")); 142 byte[] dest =NFS4StringPrep.cis_prepare(src.getBytes("UTF-8")); 161 NFS4StringPrep.cs_prepare(src.getBytes("UTF-8"), false); 169 byte[] dest = NFS4StringPrep.cs_prepare(src.getBytes("UTF-8"), false); 182 byte[] dest = NFS4StringPrep.cs_prepare(src.getBytes("UTF-8"), false); 194 byte[] dest = NFS4StringPrep.cs_prepare(src.getBytes("UTF-8"), true);
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/stringprep/ |
TestStringPrep.java | 106 byte[] dest = NFS4StringPrep.mixed_prepare(src.getBytes("UTF-8")); 120 byte[] dest = NFS4StringPrep.mixed_prepare(src.getBytes("UTF-8")); 138 byte[] dest =NFS4StringPrep.cis_prepare(src.getBytes("UTF-8")); 157 NFS4StringPrep.cs_prepare(src.getBytes("UTF-8"), false); 165 byte[] dest = NFS4StringPrep.cs_prepare(src.getBytes("UTF-8"), false); 178 byte[] dest = NFS4StringPrep.cs_prepare(src.getBytes("UTF-8"), false); 190 byte[] dest = NFS4StringPrep.cs_prepare(src.getBytes("UTF-8"), true);
|
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/ |
FilesTest.java | 141 if (Arrays.equals("test".getBytes(), testBytes))
267 output.write("moo".getBytes());
291 output.write("cow".getBytes());
337 output.write("moo".getBytes());
361 output.write("cow".getBytes());
407 output.write("moo".getBytes());
431 output.write("cow".getBytes());
|
/libcore/luni/src/test/java/libcore/java/net/ |
OldSocketTest.java | 603 theOutput.write(sendString.getBytes()); 639 theOutput.write(sendString.getBytes()); [all...] |
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/telephony/ |
SmsFacade.java | [all...] |
/frameworks/base/core/tests/coretests/src/android/util/ |
Base64Test.java | 42 String b64 = Base64.encodeToString(in.getBytes(), flags); 249 assertEquals("YWJj".getBytes(), 4, encoder.output, encoder.op); 253 assertEquals("YWJj".getBytes(), 4, encoder.output, encoder.op); 265 assertEquals("YWFh".getBytes(), 4, encoder.output, encoder.op); 273 assertEquals("YWJh".getBytes(), 4, encoder.output, encoder.op); 277 assertEquals("YmFi".getBytes(), 4, encoder.output, encoder.op); 281 assertEquals("YQ".getBytes(), 2, encoder.output, encoder.op); 319 byte[] plain = (lipsum + lipsum + lipsum + lipsum + lipsum).getBytes(); 413 new ByteArrayInputStream("/v8=".getBytes()), Base64.DEFAULT); 434 byte[] plain = (lipsum + lipsum).getBytes(); [all...] |
/external/jetty/src/java/org/eclipse/jetty/http/ |
HttpGenerator.java | 96 private static final byte[] CONTENT_LENGTH_0 = StringUtil.getBytes("Content-Length: 0\015\012"); 97 private static final byte[] CONNECTION_KEEP_ALIVE = StringUtil.getBytes("Connection: keep-alive\015\012"); 98 private static final byte[] CONNECTION_CLOSE = StringUtil.getBytes("Connection: close\015\012"); 99 private static final byte[] CONNECTION_ = StringUtil.getBytes("Connection: "); 100 private static final byte[] CRLF = StringUtil.getBytes("\015\012"); 101 private static final byte[] TRANSFER_ENCODING_CHUNKED = StringUtil.getBytes("Transfer-Encoding: chunked\015\012"); 102 private static byte[] SERVER = StringUtil.getBytes("Server: Jetty(7.0.x)\015\012"); 109 SERVER=StringUtil.getBytes("Server: Jetty("+version+")\015\012"); 392 _header.put(_uri.getBytes("UTF-8")); // TODO check 402 _header.put(_uri.getBytes("UTF-8")); // TODO chec [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
BluetoothMapAppParams.java | 576 length += getFilterRecipient().getBytes("UTF-8").length; 578 length += getFilterOriginator().getBytes("UTF-8").length; 581 length += getPresenceStatus().getBytes("UTF-8").length; 615 appParamBuf.put((byte) getFilterPeriodBeginString().getBytes("UTF-8").length); 616 appParamBuf.put(getFilterPeriodBeginString().getBytes("UTF-8")); 620 appParamBuf.put((byte) getFilterPeriodEndString().getBytes("UTF-8").length); 621 appParamBuf.put(getFilterPeriodEndString().getBytes("UTF-8")); 630 appParamBuf.put((byte) getFilterRecipient().getBytes("UTF-8").length); 631 appParamBuf.put(getFilterRecipient().getBytes("UTF-8")); 635 appParamBuf.put((byte) getFilterOriginator().getBytes("UTF-8").length) [all...] |
/cts/tests/admin/src/android/admin/cts/ |
DevicePolicyManagerTest.java | 344 TEST_CA_STRING1.getBytes()); 358 mDevicePolicyManager.installCaCert(null, TEST_CA_STRING1.getBytes()); 371 TEST_CA_STRING1.getBytes()); 385 mDevicePolicyManager.uninstallCaCert(null, TEST_CA_STRING1.getBytes()); 424 TEST_CA_STRING1.getBytes()); 438 mDevicePolicyManager.hasCaCertInstalled(null, TEST_CA_STRING1.getBytes());
|
/external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/core/session/ |
DefaultSessionTest.java | 219 assertEquals("data", DATA.getBytes(), data);
235 assertEquals("data", DATA.getBytes(), data);
251 assertEquals("data", EXPECTED_DATA.getBytes(), data);
262 assertEquals("data", DATA.getBytes(), data);
346 session.sendData(DATA.getBytes(), DATA.length());
476 InputStream inputStream = new ByteArrayInputStream(inputStreamContents.getBytes());
|
/device/google/contexthub/util/nanotool/ |
nanomessage.cpp | 86 std::vector<uint8_t> ReadEventRequest::GetBytes() const { 201 std::vector<uint8_t> ConfigureSensorRequest::GetBytes() const { 240 std::vector<uint8_t> BridgeVersionInfoRequest::GetBytes() const {
|
/external/oauth/core/src/main/java/net/oauth/signature/ |
RSA_SHA1.java | 153 ByteArrayInputStream in = new ByteArrayInputStream(certObject.getBytes()); 193 byte[] signature = sign(baseString.getBytes(OAuth.ENCODING)); 207 baseString.getBytes(OAuth.ENCODING));
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
RequestTest.java | 36 RequestBody body = RequestBody.create(contentType, "abc".getBytes(Util.UTF_8)); 61 RequestBody body = RequestBody.create(contentType, "abc".getBytes(Util.UTF_8)); 70 RequestBody body = RequestBody.create(contentType, ".abcd".getBytes(Util.UTF_8), 1, 3);
|
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/ |
SendReq.java | 35 setContentType("application/vnd.wap.multipart.related".getBytes()); 36 setFrom(new EncodedStringValue(PduHeaders.FROM_INSERT_ADDRESS_TOKEN_STR.getBytes())); 47 return transactionId.getBytes();
|
/packages/apps/Messaging/src/android/support/v7/mms/pdu/ |
SendReq.java | 33 setContentType("application/vnd.wap.multipart.related".getBytes()); 34 setFrom(new EncodedStringValue(PduHeaders.FROM_INSERT_ADDRESS_TOKEN_STR.getBytes())); 45 return transactionId.getBytes();
|
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/ |
EncodedStringValue.java | 90 mData = data.getBytes(CharacterSets.getMimeName(charset)); 93 mData = data.getBytes(); 233 temp[i].getBytes());
|