/packages/modules/Uwb/service/tests/src/com/android/server/uwb/ |
D | UwbCountryCodeTest.java | 164 DEFAULT_COUNTRY_CODE.getBytes(StandardCharsets.UTF_8)); in testSetDefaultCountryCodeWhenNoCountryCodeAvailable() 173 TEST_COUNTRY_CODE.getBytes(StandardCharsets.UTF_8)); in testInitializeCountryCodeFromTelephony() 189 ISO_COUNTRY_CODE.getBytes(StandardCharsets.UTF_8)); in testInitializeCountryCodeFromTelephonyWhenSubscriptionListEmptyAndFlagEnabled() 205 ISO_COUNTRY_CODE.getBytes(StandardCharsets.UTF_8)); in testInitializeCountryCodeFromTelephonyWhenSubscriptionListNullAndFlagEnabled() 237 TEST_COUNTRY_CODE.getBytes(StandardCharsets.UTF_8)); in testInitializeCountryCodeFromTelephonyVerifyListener() 246 TEST_COUNTRY_CODE.getBytes(StandardCharsets.UTF_8)); in testSetCountryCodeFromTelephony() 254 TEST_COUNTRY_CODE.getBytes(StandardCharsets.UTF_8)); in testSetCountryCodeFromTelephony() 271 TEST_COUNTRY_CODE.getBytes(StandardCharsets.UTF_8)); in testSetCountryCodeFromLocation() 279 TEST_COUNTRY_CODE.getBytes(StandardCharsets.UTF_8)); in testSetCountryCodeFromLocation() 302 TEST_COUNTRY_CODE.getBytes(StandardCharsets.UTF_8)); in testSetCountryCodeWithForceUpdateFromTelephony() [all …]
|
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/storage/block/ |
D | BlockFileTest.java | 58 byte[] block1ExtraBytes = "Extra bytes 1".getBytes(StandardCharsets.UTF_8); in testReadWrite() 59 byte[] block1DataBytes = "Block 1 bytes".getBytes(StandardCharsets.UTF_8); in testReadWrite() 60 byte[] block2ExtraBytes = "Extra bytes 2".getBytes(StandardCharsets.UTF_8); in testReadWrite() 61 byte[] block2DataBytes = "Block 2 bytes".getBytes(StandardCharsets.UTF_8); in testReadWrite() 101 byte[] block1DataBytes = "Block 1 bytes".getBytes(StandardCharsets.UTF_8); in blockIdBounds() 102 byte[] block2DataBytes = "Block 2 bytes".getBytes(StandardCharsets.UTF_8); in blockIdBounds() 124 byte[] block1ExtraBytes = "Extra bytes 1".getBytes(StandardCharsets.UTF_8); in visit() 125 byte[] block1DataBytes = "Block 1 bytes".getBytes(StandardCharsets.UTF_8); in visit() 126 byte[] block2ExtraBytes = "Extra bytes 2".getBytes(StandardCharsets.UTF_8); in visit() 127 byte[] block2DataBytes = "Block 2 bytes".getBytes(StandardCharsets.UTF_8); in visit()
|
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/msrp/ |
D | MsrpSerializer.java | 19 import static java.nio.charset.StandardCharsets.UTF_8; 57 outputStream.write(chunk.method().name().getBytes(UTF_8)); in writeRequestLine() 60 (chunk.responseCode() + " " + chunk.responseReason()).getBytes(UTF_8)); in writeRequestLine() 68 outputStream.write(header.name().getBytes(UTF_8)); in writeHeader() 70 outputStream.write(header.value().getBytes(UTF_8)); in writeHeader() 77 outputStream.write(chunk.transactionId().getBytes(UTF_8)); in writeEndLine()
|
D | MsrpConstants.java | 19 import static java.nio.charset.StandardCharsets.UTF_8; 27 public static final byte[] MSRP_PROTOCOL_BYTES = MSRP_PROTOCOL.getBytes(UTF_8); 29 public static final byte[] NEW_LINE_BYTES = NEW_LINE.getBytes(UTF_8); 31 public static final byte[] END_MSRP_MSG_BYTES = END_MSRP_MSG.getBytes(UTF_8);
|
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/http/ |
D | HttpClientTest.java | 30 import static java.nio.charset.StandardCharsets.UTF_8; 84 InputStream mockStream = new ByteArrayInputStream(successMessage.getBytes(UTF_8)); in testPerformGetRequestSuccess() 98 assertThat(response.getPayload()).isEqualTo(successMessage.getBytes(UTF_8)); in testPerformGetRequestSuccess() 104 InputStream mockStream = new ByteArrayInputStream(failureMessage.getBytes(UTF_8)); in testPerformGetRequestFails() 116 assertThat(response.getPayload()).isEqualTo(failureMessage.getBytes(UTF_8)); in testPerformGetRequestFails() 123 .then(invocation -> new ByteArrayInputStream(failureMessage.getBytes(UTF_8))); in testPerformGetRequestFailsWithRetry() 136 assertThat(response.getPayload()).isEqualTo(failureMessage.getBytes(UTF_8)); in testPerformGetRequestFailsWithRetry() 142 InputStream mockStream = new ByteArrayInputStream(failureMessage.getBytes(UTF_8)); in testPerformGetRequestSuccessWithRetry() 183 "payload".getBytes(UTF_8)); in testPerformPostRequestSuccess()
|
D | FederatedComputeHttpResponseTest.java | 25 import static java.nio.charset.StandardCharsets.UTF_8; 43 final byte[] payload = "payload".getBytes(UTF_8); in testBuildWithAllValues() 78 .setPayload("payload".getBytes(UTF_8)) in testBuildStatusCodeNull_invalid() 84 final byte[] uncompressedBody = "payload".getBytes(UTF_8); in testGetBody_success()
|
/packages/modules/AdServices/adservices/libraries/cobalt/tests/src/com/android/cobalt/testing/crypto/ |
D | HpkeEncryptFactoryTest.java | 21 import static java.nio.charset.StandardCharsets.UTF_8; 28 private static final byte[] PUBLIC_KEY = "test_key".getBytes(UTF_8); 29 private static final byte[] PLAIN_TEXT = "test_plaintext".getBytes(UTF_8); 30 private static final byte[] CONTEXT_INFO = "test".getBytes(UTF_8);
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | NetworkListStoreDataTest.java | 610 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeData() 627 in.setInput(inputStream, StandardCharsets.UTF_8.name()); in deserializeData() 698 return (openNetworkXml + eapNetworkXml + saeNetworkXml).getBytes(StandardCharsets.UTF_8); in getTestNetworksXmlBytes() 752 assertEquals(new String(expectedData, StandardCharsets.UTF_8), in serializeSharedConfigurations() 753 new String(serializedData, StandardCharsets.UTF_8)); in serializeSharedConfigurations() 834 .getBytes(StandardCharsets.UTF_8); in parseNetworkWithUnknownTag() 857 .getBytes(StandardCharsets.UTF_8); in parseNetworkWithMismatchConfigKey() 879 deserializeData(xmlString.getBytes(StandardCharsets.UTF_8)); in parseNetworkListWithOneNetworkIllegalArgException() 903 .getBytes(StandardCharsets.UTF_8); in parseNetworkWithInvalidCreatorUidResetsToSystem() 931 .getBytes(StandardCharsets.UTF_8); in parseNetworkWithInvalidCreatorNameResetsToPackageNameForCreatorUid() [all …]
|
D | SsidTranslatorTest.java | 90 WifiSsid utf8Ssid = WifiSsid.fromBytes("安卓".getBytes(StandardCharsets.UTF_8)); in testGetTranslatedSsid() 100 .isEqualTo(WifiSsid.fromBytes("שלום".getBytes(StandardCharsets.UTF_8))); in testGetTranslatedSsid() 110 .isEqualTo(WifiSsid.fromBytes("安卓".getBytes(StandardCharsets.UTF_8))); in testGetTranslatedSsid() 113 .isEqualTo(WifiSsid.fromBytes("救靛肺捞靛".getBytes(StandardCharsets.UTF_8))); in testGetTranslatedSsid() 124 .isEqualTo(WifiSsid.fromBytes("안드로이드".getBytes(StandardCharsets.UTF_8))); in testGetTranslatedSsid() 127 .isEqualTo(WifiSsid.fromBytes("갛六".getBytes(StandardCharsets.UTF_8))); in testGetTranslatedSsid() 178 WifiSsid utf8Ssid = WifiSsid.fromBytes("これはSSIDです。".getBytes(StandardCharsets.UTF_8)); in testGetAllPossibleOriginalSsids() 209 "漢字漢字漢字漢字漢字漢字".getBytes(StandardCharsets.UTF_8)); in testGetAllPossibleOriginalSsids() 217 "こんにちは! This is an SSID!!!!!!!!!!!!!!!!!!!!".getBytes(StandardCharsets.UTF_8)))) in testGetAllPossibleOriginalSsids() 234 WifiSsid utf8Ssid = WifiSsid.fromBytes("安卓".getBytes(StandardCharsets.UTF_8)); in testGetOriginalSsid() [all …]
|
D | SsidSetStoreDataTest.java | 64 TEST_SSID_SET_XML_STRING.getBytes(StandardCharsets.UTF_8); 84 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeData() 99 in.setInput(inputStream, StandardCharsets.UTF_8.name()); in deserializeData() 184 deserializeData(ssidSet.getBytes(StandardCharsets.UTF_8)); in parseSetWithUnknownTag()
|
/packages/modules/Wifi/framework/java/android/net/wifi/hotspot2/pps/ |
D | UpdateParameter.java | 327 if (mServerUri.getBytes(StandardCharsets.UTF_8).length > MAX_URI_BYTES) { in validate() 329 + mServerUri.getBytes(StandardCharsets.UTF_8).length); in validate() 337 if (mUsername.getBytes(StandardCharsets.UTF_8).length > MAX_USERNAME_BYTES) { in validate() 339 + mUsername.getBytes(StandardCharsets.UTF_8).length); in validate() 347 if (mBase64EncodedPassword.getBytes(StandardCharsets.UTF_8).length > MAX_PASSWORD_BYTES) { in validate() 349 + mBase64EncodedPassword.getBytes(StandardCharsets.UTF_8).length); in validate() 363 if (mTrustRootCertUrl.getBytes(StandardCharsets.UTF_8).length > MAX_URL_BYTES) { in validate() 365 + mTrustRootCertUrl.getBytes(StandardCharsets.UTF_8).length); in validate()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/bhttp/ |
D | RequestControlData.java | 69 byte[] method = getMethod().getBytes(StandardCharsets.UTF_8); in knownLengthSerialize() 70 byte[] scheme = getScheme().getBytes(StandardCharsets.UTF_8); in knownLengthSerialize() 71 byte[] authority = getAuthority().getBytes(StandardCharsets.UTF_8); in knownLengthSerialize() 72 byte[] path = getPath().getBytes(StandardCharsets.UTF_8); in knownLengthSerialize()
|
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/data/events/ |
D | EventsDaoTest.java | 53 private final byte[] mQueryData = "query".getBytes(StandardCharsets.UTF_8); 57 .setEventData("event".getBytes(StandardCharsets.UTF_8)) 93 .setEventData("event".getBytes(StandardCharsets.UTF_8)) in testInsertQueryAndEvent() 107 .setEventData("event".getBytes(StandardCharsets.UTF_8)) in testInsertEvents() 181 .setEventData("event".getBytes(StandardCharsets.UTF_8)) in testDeleteEventsAndQueries() 239 .setEventData("event".getBytes(StandardCharsets.UTF_8)) in testReadAllNewRowsForPackage() 281 .setEventData("event".getBytes(StandardCharsets.UTF_8)) in testReadAllNewRows() 364 .setEventData("event".getBytes(StandardCharsets.UTF_8)) in testReadAllEventIds() 373 .setEventData("event".getBytes(StandardCharsets.UTF_8)) in testReadAllEventIds() 382 .setEventData("event".getBytes(StandardCharsets.UTF_8)) in testReadAllEventIds() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/entitlement/http/ |
D | HttpClientTest.java | 28 import static java.nio.charset.StandardCharsets.UTF_8; 113 .setResponseBody(TEST_RESPONSE_BODY.getBytes(UTF_8)) in request_contentTypeXml_returnsXmlBody() 144 .setResponseBody(TEST_RESPONSE_BODY.getBytes(UTF_8)) in request_httpGetResponseBadRequest_throwsException() 175 .setResponseBody(TEST_RESPONSE_BODY.getBytes(UTF_8)) in request_contentTypeXml_returnsXmlBody_useSpecificNetwork() 215 .setResponseBody(TEST_RESPONSE_BODY.getBytes(UTF_8)) in request_postJson_doNotEscapeForwardSlash() 224 assertThat(connection.getBytesWrittenToOutputStream()).isEqualTo(postData.getBytes(UTF_8)); in request_postJson_doNotEscapeForwardSlash() 239 .setResponseBody(TEST_RESPONSE_BODY.getBytes(UTF_8)) in request_postGzipJsonArray() 264 .setResponseBody(TEST_RESPONSE_BODY.getBytes(UTF_8)) in request_postJsonArray() 275 mJsonArray.toString().getBytes(UTF_8)); in request_postJsonArray() 316 .setResponseBody(TEST_RESPONSE_BODY.getBytes(UTF_8)) in request_getResponseCodeFailed_expectThrowsException()
|
/packages/modules/AdServices/adservices/libraries/cobalt/java/com/android/cobalt/crypto/ |
D | PublicKeys.java | 19 import static java.nio.charset.StandardCharsets.UTF_8; 55 static final byte[] SHUFFLER_CONTEXT_INFO_BYTES = "cobalt-1.0-shuffler".getBytes(UTF_8); 69 static final byte[] ANALYZER_CONTEXT_INFO_BYTES = "cobalt-1.0-analyzer".getBytes(UTF_8);
|
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/ |
D | AudioSharingPasswordValidator.java | 43 return value.getBytes(StandardCharsets.UTF_8).length; in getOctetsCount() 47 byte[] bytes = value.getBytes(StandardCharsets.UTF_8); in isValidUTF8() 48 String reconstructedString = new String(bytes, StandardCharsets.UTF_8); in isValidUTF8()
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/util/ |
D | ScanResultUtilTest.java | 58 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in testNetworkCreationFromScanResult() 160 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in testGenerateSecurityParamsListFromScanResult() 332 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in testPskSha256SaeTransitionModeCheck() 359 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in testPskSaeTransitionModeCheck() 386 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in testPskNotInTransitionModeCheck() 413 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in testSaeNotInTransitionModeCheck() 440 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in testSaeExtKeyAkmSupportedNetwork() 467 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in testFtEapAkmSupportedNetwork() 495 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in testFilsSha256AkmSupportedNetwork() 524 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in testFilsSha384AkmSupportedNetwork() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | XmlUtilTest.java | 516 deserializeWifiEnterpriseConfig(xmlString.getBytes(StandardCharsets.UTF_8)); in testWifiEnterpriseConfigSerializeDeserializeThrowsIllegalArgException() 548 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in testCaptivePortalNeverDetected_DefaultToFalse() 575 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in testMacRandomizationSettingDefaultToRandomizationNone() 600 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in testMacRandomizationSettingUpgradeToRandomizationAuto() 628 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in testMacRandomizationSettingNoUpgradeToRandomizationAutoForSuggestion() 667 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in testSendDhcpHostnameEnabledUpgradeToTrueForSecure() 695 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in testSendDhcpHostnameEnabledUpgradeToFalseForOpen() 740 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeWifiConfigurationForBackup() 752 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeWifiConfigurationForConfigStore() 766 in.setInput(inputStream, StandardCharsets.UTF_8.name()); in deserializeWifiConfiguration() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/ |
D | AdBidGeneratorImplTest.java | 512 BUYER_DECISION_LOGIC_JS.getBytes(StandardCharsets.UTF_8).length, in testRunAdBiddingPerCASuccess_preV3BiddingLogic() 514 TRUSTED_BIDDING_SIGNALS.toString().getBytes(StandardCharsets.UTF_8).length, in testRunAdBiddingPerCASuccess_preV3BiddingLogic() 630 BUYER_DECISION_LOGIC_JS.getBytes(StandardCharsets.UTF_8).length, in testRunAdBiddingPerCASuccess_preV3BiddingLogicWithDataVersionHeaderEnabled() 632 TRUSTED_BIDDING_SIGNALS.toString().getBytes(StandardCharsets.UTF_8).length, in testRunAdBiddingPerCASuccess_preV3BiddingLogicWithDataVersionHeaderEnabled() 745 BUYER_DECISION_LOGIC_JS.getBytes(StandardCharsets.UTF_8).length, in testRunAdBiddingPerCASuccess_preV3BiddingLogicWithDataVersionHeaderDisabled() 747 TRUSTED_BIDDING_SIGNALS.toString().getBytes(StandardCharsets.UTF_8).length, in testRunAdBiddingPerCASuccess_preV3BiddingLogicWithDataVersionHeaderDisabled() 864 BUYER_DECISION_LOGIC_JS.getBytes(StandardCharsets.UTF_8).length, in testRunAdBiddingPerCASuccess_preV3BiddingLogicWithDataVersionHeaderTakesFirstOfMultipleValues() 866 TRUSTED_BIDDING_SIGNALS.toString().getBytes(StandardCharsets.UTF_8).length, in testRunAdBiddingPerCASuccess_preV3BiddingLogicWithDataVersionHeaderTakesFirstOfMultipleValues() 968 BUYER_DECISION_LOGIC_JS.getBytes(StandardCharsets.UTF_8).length, in testRunAdBiddingPerCASuccess_preV3BiddingLogicWithAdCost() 970 TRUSTED_BIDDING_SIGNALS.toString().getBytes(StandardCharsets.UTF_8).length, in testRunAdBiddingPerCASuccess_preV3BiddingLogicWithAdCost() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/entitlement/http/ |
D | StreamUtils.java | 19 import static java.nio.charset.StandardCharsets.UTF_8; 47 return result.toString(UTF_8.name()); in inputStreamToString() 72 return result.toString(UTF_8.name()); in inputStreamToGunzipString()
|
/packages/modules/Wifi/framework/java/android/net/wifi/ |
D | WifiSsid.java | 85 return new WifiSsid(utf8Text.toString().getBytes(StandardCharsets.UTF_8)); in fromUtf8Text() 96 return decodeSsid(mBytes, StandardCharsets.UTF_8); in getUtf8Text() 114 return new WifiSsid(string.substring(1, length - 1).getBytes(StandardCharsets.UTF_8)); in fromString() 130 String utf8String = decodeSsid(mBytes, StandardCharsets.UTF_8); in toString()
|
/packages/modules/Wifi/tests/hostsidetests/multidevices/com.google.snippet.wifi/aware/ |
D | WifiAwareSnippet.java | 21 import static java.nio.charset.StandardCharsets.UTF_8; 74 private static final byte[] MATCH_FILTER_BYTES = "bytes used for matching".getBytes(UTF_8); 75 private static final byte[] PUB_SSI = "Extra bytes in the publisher discovery".getBytes(UTF_8); 77 "Arbitrary bytes for the subscribe discovery".getBytes(UTF_8); 197 + new String(callbackData.serviceSpecificInfo, UTF_8) in subscribe() 205 sb.append(", e='").append(new String(mf, UTF_8)).append("'"); in subscribe() 220 mDiscoverySession.sendMessage(mPeerHandle, messageId, message.getBytes(UTF_8)); in sendMessage() 451 return new String(callbackData.serviceSpecificInfo, UTF_8); in receiveMessage()
|
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/storage/block/read/ |
D | BlockDataTest.java | 39 byte[] tinyByteArray = "Tiny Byte Array".getBytes(StandardCharsets.UTF_8); in getSize() 55 byte[] tinyByteArray = "Tiny Byte Array".getBytes(StandardCharsets.UTF_8); in getByteBuffer() 76 byte[] tinyByteArray = "Tiny Byte Array".getBytes(StandardCharsets.UTF_8); in typedRandomAccess() 87 byte[] bytes = "Bytes".getBytes(StandardCharsets.UTF_8); in typedRandomAccess()
|
/packages/apps/Messaging/src/android/support/v7/mms/pdu/ |
D | CharacterSets.java | 43 public static final int UTF_8 = 0x6A; field in CharacterSets 51 public static final int DEFAULT_CHARSET = UTF_8; 69 UTF_8,
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/customaudience/ |
D | CustomAudienceFieldSizeValidator.java | 101 int nameSize = customAudience.getName().getBytes(StandardCharsets.UTF_8).length; in addValidation() 115 .getBytes(StandardCharsets.UTF_8) in addValidation() 130 .getBytes(StandardCharsets.UTF_8) in addValidation() 189 return userBiddingSignals.toString().getBytes(StandardCharsets.UTF_8).length; in getUserBiddingSignalsSize()
|