/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/simaka/ |
D | EapSimAkaAttribute.java | 134 public abstract void encode(ByteBuffer byteBuffer); in encode() method in EapSimAkaAttribute 187 public void encode(ByteBuffer buffer) { in encode() method in EapSimAkaAttribute.EapSimAkaReservedBytesAttribute 238 public void encode(ByteBuffer byteBuffer) { in encode() method in EapSimAkaAttribute.EapSimAkaUnsupportedAttribute 282 public void encode(ByteBuffer byteBuffer) { in encode() method in EapSimAkaAttribute.AtVersionList 323 public void encode(ByteBuffer byteBuffer) { in encode() method in EapSimAkaAttribute.AtSelectedVersion 376 public void encode(ByteBuffer byteBuffer) { in encode() method in EapSimAkaAttribute.AtNonceMt 377 super.encode(byteBuffer); in encode() 474 public void encode(ByteBuffer byteBuffer) { in encode() method in EapSimAkaAttribute.AtIdentity 554 public void encode(ByteBuffer byteBuffer) { in encode() method in EapSimAkaAttribute.AtRandSim 555 super.encode(byteBuffer); in encode() [all …]
|
/packages/apps/RemoteProvisioner/tests/unittests/src/com/android/remoteprovisioner/unittest/ |
D | CborUtilsTest.java | 65 new CborEncoder(mBaos).encode(new CborBuilder() in encodeDataItem() 101 new CborEncoder(mBaos).encode(new CborBuilder() in testParseSignedCertificatesFakeData() 119 new CborEncoder(mBaos).encode(new CborBuilder() in testParseSignedCertificatesWrongSize() 129 new CborEncoder(mBaos).encode(new CborBuilder() in testParseSignedCertificatesWrongTypeSharedCerts() 143 new CborEncoder(mBaos).encode(new CborBuilder() in testParseSignedCertificatesWrongTypeUniqueCerts() 159 new CborEncoder(mBaos).encode(new CborBuilder() in testParseGeekResponseFakeData() 187 new CborEncoder(mBaos).encode(new CborBuilder() in testExtraDeviceConfigEntriesDontFail() 216 new CborEncoder(mBaos).encode(new CborBuilder() in testMissingDeviceConfigDoesntFail() 244 new CborEncoder(mBaos).encode(new CborBuilder() in testMissingDeviceConfigEntriesDoesntFail() 272 new CborEncoder(mBaos).encode(new CborBuilder() in testParseGeekResponseFailsOnWrongType() [all …]
|
D | Utils.java | 129 new CborEncoder(baos).encode(new CborBuilder() in encodeAndSignSigStructure() 143 new CborEncoder(baos).encode(new CborBuilder() in encodeEd25519PubKey() 158 new CborEncoder(baos).encode(new CborBuilder() in encodeX25519PubKey() 172 new CborEncoder(baos).encode(new CborBuilder() in encodeSimpleMap()
|
/packages/modules/Wifi/framework/java/android/net/wifi/util/ |
D | HexEncoding.java | 53 public static char[] encode(byte[] data) { in encode() method in HexEncoding 54 return encode(data, 0, data.length, true /* upperCase */); in encode() 60 public static char[] encode(byte[] data, boolean upperCase) { in encode() method in HexEncoding 61 return encode(data, 0, data.length, upperCase); in encode() 67 public static char[] encode(byte[] data, int offset, int len) { in encode() method in HexEncoding 68 return encode(data, offset, len, true /* upperCase */); in encode() 74 private static char[] encode(byte[] data, int offset, int len, boolean upperCase) { in encode() method in HexEncoding 98 return new String(encode(data, upperCase)); in encodeToString()
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/util/ |
D | HexEncodingTest.java | 20 import static android.net.wifi.util.HexEncoding.encode; 67 assertArraysEqual(encodedUpper.toCharArray(), encode(bytes)); in testEncodeBytes() 68 assertArraysEqual(encodedUpper.toCharArray(), encode(bytes, true /* upperCase */)); in testEncodeBytes() 69 assertArraysEqual(encodedLower.toCharArray(), encode(bytes, false /* upperCase */)); in testEncodeBytes() 71 assertArraysEqual(bytes, decode(encode(bytes), false /* allowSingleChar */)); in testEncodeBytes()
|
/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/ |
D | EapSimAkaMethodStateMachine.java | 141 byte[] encodedTypeData = eapSimAkaTypeData.encode(); in buildClientErrorResponse() 159 EapData eapData = new EapData(eapType, eapSimTypeData.encode()); in buildResponseMessage() 217 LOG.d(tag, "Computing MAC (raw msg): " + LOG.pii(message.encode())); in isValidMac() 248 byte[] typeDataWithEmptyMac = typeData.encode(); in getMac() 253 "Computing MAC (mac cleared): " + LOG.pii(messageForMac.encode())); in getMac() 256 buffer.put(messageForMac.encode()); in getMac() 283 EapData eapData = new EapData(getEapMethod(), eapSimAkaTypeData.encode()); in buildResponseMessageWithMac()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareClientState.java | 231 HexEncoding.encode(mac)) + ", mLastDiscoveryInterfaceMac=" in onInterfaceAddressChange() 232 + String.valueOf(HexEncoding.encode(mLastDiscoveryInterfaceMac))); in onInterfaceAddressChange() 264 HexEncoding.encode(mac)) + ", currentDiscoveryInterfaceMac=" in onClusterChange() 265 + String.valueOf(HexEncoding.encode(currentDiscoveryInterfaceMac)) in onClusterChange() 267 HexEncoding.encode(mLastDiscoveryInterfaceMac))); in onClusterChange()
|
D | WifiAwareNativeCallback.java | 414 + String.valueOf(HexEncoding.encode(event.addr))); in eventClusterEvent() 465 + event.peerId + ", addr=" + String.valueOf(HexEncoding.encode(event.addr)) in eventMatch() 499 HexEncoding.encode(event.addr)) + ", serviceSpecificInfo=" + Arrays.toString( in eventFollowupReceived() 528 HexEncoding.encode(event.peerDiscMacAddr)) + ", ndpInstanceId=" in eventDataPathRequest() 542 + ", peerNdiMacAddr=" + String.valueOf(HexEncoding.encode(event.peerNdiMacAddr)) in eventDataPathConfirm() 561 HexEncoding.encode(event.V1_0.peerNdiMacAddr)) + ", dataPathSetupSuccess=" in eventDataPathConfirm_1_2()
|
/packages/modules/adb/ |
D | test_adb.py | 118 "connected to {}".format(serial).encode("utf8")) 355 "of commands\r\n").encode("utf8")) 400 "error: device '{}' not found".format(serial).encode("utf8")) 406 command = "host:emulator:{}".format(port).encode("utf8") 445 "already connected to {}".format(serial).encode("utf8")) 479 "disconnected {}".format(serial).encode("utf8")) 487 "error: device '{}' not found".format(serial).encode("utf8")) 506 "connected to {}".format(device_name).encode("utf8")) 661 self.assertEqual(output.strip(), "connected to {}".format(serial).encode("utf8")) 664 .format(mdns_instance).encode("utf8")))
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/utils/ |
D | Utility.java | 47 return encode(ASCII, s); in toAscii() 55 private static byte[] encode(Charset charset, String s) { in encode() method in Utility 59 final ByteBuffer buffer = charset.encode(CharBuffer.wrap(s)); in encode()
|
/packages/modules/common/tools/ |
D | conv_classpaths_proto.py | 23 def encode(args): function 40 args.output.write(text_format.MessageToString(pb).encode('utf_8')) 64 parser_encode.set_defaults(func=encode)
|
/packages/modules/Connectivity/tests/unit/java/com/android/internal/net/ |
D | VpnProfileTest.java | 135 final VpnProfile decoded = VpnProfile.decode(DUMMY_PROFILE_KEY, profile.encode()); in testEncodeDecode() 143 (new String(profile.encode()) + VpnProfile.VALUE_DELIMITER + "invalid").getBytes(); in testEncodeDecodeTooManyValues() 152 final String encoded = new String(getSampleIkev2Profile(DUMMY_PROFILE_KEY).encode()); in getEncodedDecodedIkev2ProfileMissingValues() 190 final VpnProfile decoded = VpnProfile.decode(DUMMY_PROFILE_KEY, profile.encode()); in testEncodeDecodeLoginsNotSaved()
|
/packages/modules/DnsResolver/ |
D | ResolverStats.h | 50 void encode(std::vector<int32_t>* out) const; 64 inline void ResolverStats::encode(std::vector<int32_t>* out) const { in encode() function 96 s.encode(out); in encodeAll()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | NativeUtil.java | 59 ByteBuffer encoded = encoder.encode(CharBuffer.wrap(str)); in stringToByteArrayList() 147 sb.append(new String(HexEncoding.encode(macArray, i, 1))); in macAddressFromByteArray() 345 return new String(HexEncoding.encode(bytes)).toLowerCase(); in hexStringFromByteArray() 355 String y = new String(HexEncoding.encode(Arrays.copyOfRange(devType, 2, 6))); in wpsDevTypeStringFromByteArray()
|
/packages/apps/RemoteProvisioner/src/com/android/remoteprovisioner/ |
D | SystemInterface.java | 49 new CborEncoder(baos).encode(new CborBuilder() in makeProtectedHeaders() 63 new CborEncoder(baos).encode(builder.end().build()); in encodePayload() 91 new CborEncoder(baos).encode(new CborBuilder() in generateCsr()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/ |
D | EapMessageTest.java | 143 byte[] actualPacket = eapMessage.encode(); in testEncode() 148 actualPacket = eapMessage.encode(); in testEncode() 155 EapMessage result = EapMessage.decode(eapMessage.encode()); in testEncodeDecode() 165 byte[] result = EapMessage.decode(EAP_REQUEST_SIM_START_PACKET).encode(); in testDecodeEncode()
|
/packages/apps/Car/libs/car-ui-lib/tests/tools/ |
D | quick_rro.py | 50 hash = sha1(args.package.encode('UTF-8')) 52 hash.update(args.target_name.encode('UTF-8')) 56 hash.update(''.join(args.resources).encode('UTF-8')) 61 hash.update(path.encode('UTF-8'))
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/ttls/ |
D | EapTtlsTypeDataTest.java | 125 byte[] encodeResult = typeData.encode(); in testEncodeEapTtlsTypeData() 134 byte[] encodeResult = eapTtlsAcknowledgement.encode(); in testEapTtlsAcknowledgementResponse() 145 assertArrayEquals(EAP_TTLS_RESPONSE_ACK, eapTtlsAcknowledgement.encode()); in testEapTtlsIsAcknowledgment_valid()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeEncryptedPayloadBodyTest.java | 345 assertArrayEquals(expectedEncodedData, payloadBody.encode()); in testBuildAndEncodeOutboundIkeEncryptedPayloadBody() 406 assertArrayEquals(expectedEncodedData, payloadBody.encode()); in testBuildAndEncodeWithHmacSha13Des() 443 assertArrayEquals(expectedEncodedData, payloadBody.encode()); in testBuildAndEncodeMsgWithAesGcm() 483 assertArrayEquals(expectedEncodedData, payloadBody.encode()); in testBuildAndEncodeFragMsgWithAesGcm()
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | StructuredPostalUtils.java | 31 return Uri.parse("geo:0,0?q=" + Uri.encode(postalAddress)); in getPostalAddressUri() 39 return Uri.parse("https://maps.google.com/maps?daddr=" + Uri.encode(postalAddress)); in getPostalAddressDirectionsUri()
|
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/javatests/com/android/libraries/rcs/simpleclient/protocol/sdp/ |
D | SimpleSdpMessageTest.java | 52 assertThat(sdp.encode()).matches(SAMPLE_SDP_REGEX); in createForMsrp_returnExpectedSdpString() 61 SimpleSdpMessage.parse(new ByteArrayInputStream(original.encode().getBytes(UTF_8))); in encodeAndParse_shouldBeEqualToOriginal()
|
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/structure/v4/content/ |
D | probability_entry_test.cpp | 31 const uint64_t encodedEntry = entry.encode(false /* hasHistoricalInfo */); in TEST() 47 const uint64_t encodedEntry = entry.encode(true /* hasHistoricalInfo */); in TEST()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/attributes/ |
D | EapSimAkaAttributeTest.java | 43 public void encode(ByteBuffer byteBuffer) { in testEncode() 49 eapSimAkaAttribute.encode(result); in testEncode()
|
D | AtIdReqTest.java | 84 atPermanentIdReq.encode(result); in testEncodeAtPermanentIdReq() 115 atPermanentIdReq.encode(result); in testEncodeAtAnyIdReq() 146 atPermanentIdReq.encode(result); in testEncodeAtFullauthIdReq()
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
D | NavigationUtils.java | 36 Uri.encode(address)); in getViewAddressIntent() 58 res.getString(R.string.config_navigation_uri_format), Uri.encode(address)); in getNavigationIntent()
|