/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/security/ |
D | PasswordHelperTest.java | 49 byte[] password = "lov".getBytes(); in testValidatePasswordTooShort() 59 byte[] password = "pass wd".getBytes(); in testValidatePasswordWhiteSpace() 70 byte[] password = "1passwýd".getBytes(); in testValidatePasswordNonAscii() 80 byte[] password = "1a34".getBytes(); in testValidatePinContainingNonDigits() 90 byte[] password = "12".getBytes(); in testValidatePinWithTooFewDigits() 101 byte[] password = "lov".getBytes(); in testValidatePasswordTooShort_setupWizard() 112 byte[] password = "pass wd".getBytes(); in testValidatePasswordWhiteSpace_setupWizard() 122 byte[] password = "1passwýd".getBytes(); in testValidatePasswordNonAscii_setupWizard() 133 byte[] password = "1a34".getBytes(); in testValidatePinContainingNonDigits_setupWizard() 144 byte[] password = "12".getBytes(); in testValidatePinWithTooFewDigits_setupWizard() [all …]
|
D | InitialLockSetupServiceTest.java | 106 int result = service.checkValidLock(LockTypes.PASSWORD, "hi".getBytes()); in testCheckValidLock_tooShort() 115 int result = service.checkValidLock(LockTypes.PASSWORD, "password".getBytes()); in testCheckValidLock_longEnough() 124 int result = service.checkValidLock(LockTypes.PIN, "12a3".getBytes()); in testCheckValidLockPin_withLetters() 160 int result = service.setLock(LockTypes.PASSWORD, "password".getBytes()); in testSetLockPassword_doesNotWorkWithExistingPassword() 168 int result = service.setLock(LockTypes.PASSWORD, "hi".getBytes()); in testSetLockPassword_doesNotWorkWithInvalidPassword() 176 byte[] password = "password".getBytes(); in testSetLockPassword_setsDevicePassword() 189 byte[] password = "1580".getBytes(); in testSetLockPin_setsDevicePin()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/storage/ |
D | DatabaseManagerTest.java | 83 private static final byte[] TEST_BYTE_ARRAY = "TEST_VALUE".getBytes(); 330 byte[] value = "input value".getBytes(); in testSetGetCustomMeta() 701 assertColumnBlobData(cursor, "manufacturer_name", testString.getBytes()); in testDatabaseMigration_101_102() 702 assertColumnBlobData(cursor, "model_name", testString.getBytes()); in testDatabaseMigration_101_102() 703 assertColumnBlobData(cursor, "software_version", testString.getBytes()); in testDatabaseMigration_101_102() 704 assertColumnBlobData(cursor, "hardware_version", testString.getBytes()); in testDatabaseMigration_101_102() 705 assertColumnBlobData(cursor, "companion_app", testString.getBytes()); in testDatabaseMigration_101_102() 706 assertColumnBlobData(cursor, "main_icon", testString.getBytes()); in testDatabaseMigration_101_102() 707 assertColumnBlobData(cursor, "is_untethered_headset", testString.getBytes()); in testDatabaseMigration_101_102() 708 assertColumnBlobData(cursor, "untethered_left_icon", testString.getBytes()); in testDatabaseMigration_101_102() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | AdvancedBluetoothDetailsHeaderControllerTest.java | 111 String.valueOf(BATTERY_LEVEL_LEFT).getBytes()); in refresh_connected_updateCorrectInfo() 114 String.valueOf(BATTERY_LEVEL_RIGHT).getBytes()); in refresh_connected_updateCorrectInfo() 117 String.valueOf(BATTERY_LEVEL_MAIN).getBytes()); in refresh_connected_updateCorrectInfo() 151 .thenReturn("true".getBytes()); in getAvailabilityStatus_untetheredHeadsetWithConfigOn_returnAvailable() 162 .thenReturn("true".getBytes()); in getAvailabilityStatus_untetheredHeadsetWithConfigOff_returnUnavailable() 173 .thenReturn("false".getBytes()); in getAvailabilityStatus_notUntetheredHeadsetWithConfigOn_returnUnavailable() 184 .thenReturn("false".getBytes()); in getAvailabilityStatus_notUntetheredHeadsetWithConfigOff_returnUnavailable() 204 .thenReturn("true".getBytes()); in onStart_isAvailable_registerCallback() 217 .thenReturn("true".getBytes()); in onStop_isAvailable_unregisterCallback() 228 .thenReturn("false".getBytes()); in onStart_notAvailable_registerCallback() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapAppParams.java | 584 length += getFilterRecipient().getBytes("UTF-8").length; in getParamMaxLength() 587 length += getFilterOriginator().getBytes("UTF-8").length; in getParamMaxLength() 591 length += getPresenceStatus().getBytes("UTF-8").length; in getParamMaxLength() 626 appParamBuf.put((byte) getFilterPeriodBeginString().getBytes("UTF-8").length); in encodeParams() 627 appParamBuf.put(getFilterPeriodBeginString().getBytes("UTF-8")); in encodeParams() 631 appParamBuf.put((byte) getFilterPeriodEndString().getBytes("UTF-8").length); in encodeParams() 632 appParamBuf.put(getFilterPeriodEndString().getBytes("UTF-8")); in encodeParams() 641 appParamBuf.put((byte) getFilterRecipient().getBytes("UTF-8").length); in encodeParams() 642 appParamBuf.put(getFilterRecipient().getBytes("UTF-8")); in encodeParams() 646 appParamBuf.put((byte) getFilterOriginator().getBytes("UTF-8").length); in encodeParams() [all …]
|
D | BluetoothMapbMessageMime.java | 107 if (text.getBytes().length == text.getBytes("UTF-8").length) { in encode() 130 if (text.getBytes().length != text.getBytes("UTF-8").length) { in encodePlainText() 386 lineLength += headerName.getBytes().length; in encodeHeaderAddresses() 389 partLength = address.toString().getBytes().length + 1; in encodeHeaderAddresses() 536 bodyFragments.add(tmpBody.getBytes("UTF-8")); in encodeMime() 738 return body.getBytes("UTF-8"); in decodeBody()
|
D | BluetoothMapUtils.java | 184 nibbles = valueStr.getBytes("US-ASCII"); in getLongFromString() 422 System.arraycopy(utf8String.getBytes("UTF-8"), 0, utf8Bytes, 0, utf8String.length()); in truncateUtf8StringToBytearray() 484 Base64.decode(encodedText.getBytes(charset), Base64.DEFAULT), in stripEncoding() 513 input = text.getBytes("US-ASCII"); in quotedPrintableToUtf8() 519 return "".getBytes(); in quotedPrintableToUtf8() 613 return result.getBytes(); /* return the result as "UTF-8" bytes */ in quotedPrintableToUtf8()
|
/packages/apps/KeyChain/robotests/src/com/android/keychain/ |
D | KeyChainServiceRoboTest.java | 130 mKeyChain.installCaCertificate(TEST_CA.getBytes()); in testCaInstallSuccessLogging() 143 mKeyChain.installCaCertificate(TEST_CA.getBytes()); in testCaInstallFailedLogging() 184 mKeyChain.installCaCertificate(TEST_CA.getBytes()); in testNoLoggingWhenDisabled() 191 mKeyChain.installCaCertificate(TEST_CA.getBytes()); in testNoLoggingWhenDisabled() 203 return (X509Certificate) cf.generateCertificate(new ByteArrayInputStream(cert.getBytes())); in parseCertificate() 210 mKeyChain.installCaCertificate(TEST_CA.getBytes()); in testBadPackagesNotAllowedToInstallCaCerts() 219 mKeyChain.installCaCertificate(TEST_CA.getBytes()); in testNonSystemPackagesNotAllowedToInstallCaCerts()
|
/packages/apps/Car/libs/EncryptionRunner/src/android/car/encryptionrunner/ |
D | DummyEncryptionRunner.java | 34 private static final byte[] DUMMY_MESSAGE = "Dummy Message".getBytes(); 67 .setNextMessage(INIT.getBytes()) in initHandshake() 82 .setNextMessage(INIT_RESPONSE.getBytes()) in respondToInitRequest() 122 .setNextMessage(CLIENT_RESPONSE.getBytes()) in continueHandshake() 181 return KEY.getBytes(); in asBytes() 196 return KEY.getBytes(); in getUniqueSession()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/trust/ |
D | CarTrustAgentEnrollmentServiceTest.java | 143 DummyEncryptionRunner.INIT.getBytes()); in testEncryptionHandshake() 148 eq(DummyEncryptionRunner.INIT_RESPONSE.getBytes()), any(), eq(false)); in testEncryptionHandshake() 151 DummyEncryptionRunner.CLIENT_RESPONSE.getBytes()); in testEncryptionHandshake() 155 eq(DummyEncryptionRunner.INIT_RESPONSE.getBytes()), any(), eq(false)); in testEncryptionHandshake() 169 mCarTrustAgentEnrollmentService.onEscrowTokenAdded(TEST_TOKEN.getBytes(), TEST_HANDLE1, in testOnEscrowTokenAdded_tokenRequiresActivation() 285 DummyEncryptionRunner.INIT.getBytes()); in setupEncryptionHandshake() 287 DummyEncryptionRunner.CLIENT_RESPONSE.getBytes()); in setupEncryptionHandshake()
|
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/ |
D | PduComposer.java | 319 appendTextString(str.getBytes()); in appendTextString() 459 appendQuotedString(str.getBytes()); in appendQuotedString() 470 temp.appendTextString(STRING_PHONE_NUMBER_ADDRESS_TYPE.getBytes()); in appendAddressType() 473 temp.appendTextString(STRING_IPV4_ADDRESS_TYPE.getBytes()); in appendAddressType() 476 temp.appendTextString(STRING_IPV6_ADDRESS_TYPE.getBytes()); in appendAddressType() 613 PduHeaders.MESSAGE_CLASS_ADVERTISEMENT_STR.getBytes())) { in appendHeader() 616 PduHeaders.MESSAGE_CLASS_AUTO_STR.getBytes())) { in appendHeader() 619 PduHeaders.MESSAGE_CLASS_PERSONAL_STR.getBytes())) { in appendHeader() 622 PduHeaders.MESSAGE_CLASS_INFORMATIONAL_STR.getBytes())) { in appendHeader() 1007 name = "smil.xml".getBytes(); in makeMessageBody()
|
D | PduParser.java | 491 value.setTextString(str.getBytes()); in parseHeaders() 573 from.setTextString(str.getBytes()); in parseHeaders() 583 PduHeaders.FROM_INSERT_ADDRESS_TOKEN_STR.getBytes()); in parseHeaders() 621 PduHeaders.MESSAGE_CLASS_PERSONAL_STR.getBytes(), in parseHeaders() 625 PduHeaders.MESSAGE_CLASS_ADVERTISEMENT_STR.getBytes(), in parseHeaders() 629 PduHeaders.MESSAGE_CLASS_INFORMATIONAL_STR.getBytes(), in parseHeaders() 633 PduHeaders.MESSAGE_CLASS_AUTO_STR.getBytes(), in parseHeaders() 890 part.setContentType((PduContentTypes.contentTypes[0]).getBytes()); //"*/*" in parseParts() 926 System.currentTimeMillis()).getBytes()); in parseParts() 1429 byte[] type = (PduContentTypes.contentTypes[index]).getBytes(); in parseContentTypeParams() [all …]
|
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 | PduPart.java | 94 static final byte[] DISPOSITION_FROM_DATA = "from-data".getBytes(); 95 static final byte[] DISPOSITION_ATTACHMENT = "attachment".getBytes(); 96 static final byte[] DISPOSITION_INLINE = "inline".getBytes();
|
D | EncodedStringValue.java | 90 mData = data.getBytes(CharacterSets.getMimeName(charset)); in EncodedStringValue() 93 mData = data.getBytes(); in EncodedStringValue() 233 temp[i].getBytes()); in split()
|
/packages/apps/Messaging/src/android/support/v7/mms/pdu/ |
D | PduParser.java | 465 value.setTextString(str.getBytes()); in parseHeaders() 547 from.setTextString(str.getBytes()); in parseHeaders() 557 PduHeaders.FROM_INSERT_ADDRESS_TOKEN_STR.getBytes()); in parseHeaders() 593 PduHeaders.MESSAGE_CLASS_PERSONAL_STR.getBytes(), in parseHeaders() 597 PduHeaders.MESSAGE_CLASS_ADVERTISEMENT_STR.getBytes(), in parseHeaders() 601 PduHeaders.MESSAGE_CLASS_INFORMATIONAL_STR.getBytes(), in parseHeaders() 605 PduHeaders.MESSAGE_CLASS_AUTO_STR.getBytes(), in parseHeaders() 856 part.setContentType((PduContentTypes.contentTypes[0]).getBytes()); //"*/*" in parseParts() 892 System.currentTimeMillis()).getBytes()); in parseParts() 1392 byte[] type = (PduContentTypes.contentTypes[index]).getBytes(); in parseContentTypeParams() [all …]
|
D | SendReq.java | 33 setContentType("application/vnd.wap.multipart.related".getBytes()); in SendReq() 34 setFrom(new EncodedStringValue(PduHeaders.FROM_INSERT_ADDRESS_TOKEN_STR.getBytes())); in SendReq() 45 return transactionId.getBytes(); in generateTransactionId()
|
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();
|
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/ |
D | CarrierProviderTest.java | 153 contentValues.put(CarrierDatabaseHelper.PUBLIC_KEY, dummy_key1.getBytes()); in testInsertCertificates() 189 contentValues.put(CarrierDatabaseHelper.PUBLIC_KEY, dummy_key1.getBytes()); in testUpdateCertificates() 235 contentValues.put(CarrierDatabaseHelper.PUBLIC_KEY, dummy_key1.getBytes()); in testMultipleCertificates() 244 contentValuesNew.put(CarrierDatabaseHelper.PUBLIC_KEY, dummy_key2.getBytes()); in testMultipleCertificates() 278 contentValues.put(CarrierDatabaseHelper.PUBLIC_KEY, dummy_key1.getBytes()); in testDuplicateFailure() 306 contentValues.put(CarrierDatabaseHelper.PUBLIC_KEY, dummy_key1.getBytes()); in testDelete()
|
/packages/services/Car/EncryptionRunner/src/android/car/encryptionrunner/ |
D | DummyEncryptionRunner.java | 63 .setNextMessage(INIT.getBytes()) in initHandshake() 78 .setNextMessage(INIT_RESPONSE.getBytes()) in respondToInitRequest() 110 .setNextMessage(CLIENT_RESPONSE.getBytes()) in continueHandshake() 144 return KEY.getBytes(); in asBytes()
|
/packages/apps/Nfc/src/com/android/nfc/snep/ |
D | SnepMessage.java | 105 byte[] textBytes = snepTestData2.getBytes(); in getLargeNdef() 106 byte[] langBytes = lang.getBytes("US-ASCII"); in getLargeNdef() 123 byte[] textBytes = snepTestData1.getBytes(); in getSmallNdef() 124 byte[] langBytes = lang.getBytes("US-ASCII"); in getSmallNdef()
|
/packages/apps/Nfc/tests/src/com/android/nfc/snep/ |
D | SnepDefaultClientTests.java | 77 new byte[0], "http://android.com".getBytes()); in getSmallNdef() 87 NdefRecord rec = new NdefRecord(NdefRecord.TNF_MIME_MEDIA, "text/plain".getBytes(), in getLargeNdef() 88 new byte[0], string.toString().getBytes()); in getLargeNdef()
|
D | SnepCustomClientTests.java | 77 new byte[0], "http://android.com".getBytes()); in getSmallNdef() 87 NdefRecord rec = new NdefRecord(NdefRecord.TNF_MIME_MEDIA, "text/plain".getBytes(), in getLargeNdef() 88 new byte[0], string.toString().getBytes()); in getLargeNdef()
|
D | SnepValidationServerTests.java | 70 new byte[0], "http://android.com".getBytes()); in getSmallNdef() 80 NdefRecord rec = new NdefRecord(NdefRecord.TNF_MIME_MEDIA, "text/plain".getBytes(), in getLargeNdef() 81 new byte[0], string.toString().getBytes()); in getLargeNdef()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppReceiveFileInfo.java | 139 if (filename.getBytes().length > OPP_LENGTH_OF_FILE_NAME) { in generateFileInfo() 148 Log.i(Constants.TAG, " File Name Length in Bytes:" + filename.getBytes().length); in generateFileInfo() 151 byte[] oldfilename = filename.getBytes("UTF-8"); in generateFileInfo()
|