/frameworks/libs/modules-utils/javatests/com/android/modules/utils/ |
D | BytesMatcherTest.java | 34 BytesMatcher matcher = BytesMatcher.decode(""); in testEmpty() 35 assertFalse(matcher.test(HexEncoding.decode("cafe"))); in testEmpty() 36 assertFalse(matcher.test(HexEncoding.decode(""))); in testEmpty() 41 BytesMatcher matcher = BytesMatcher.decode("+cafe"); in testExact() 42 assertTrue(matcher.test(HexEncoding.decode("cafe"))); in testExact() 43 assertFalse(matcher.test(HexEncoding.decode("beef"))); in testExact() 44 assertFalse(matcher.test(HexEncoding.decode("ca"))); in testExact() 45 assertFalse(matcher.test(HexEncoding.decode("cafe00"))); in testExact() 50 BytesMatcher matcher = BytesMatcher.decode("+cafe/ff00"); in testMask() 51 assertTrue(matcher.test(HexEncoding.decode("cafe"))); in testMask() [all …]
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | UriCodecTest.java | 29 assertEquals("", UriCodec.decode("", in testDecode_emptyString_returnsEmptyString() 38 UriCodec.decode("ab%2f$%C4%82%25%e0%a1%80%p", in testDecode_wrongHexDigit_fails() 51 UriCodec.decode("ab%2f$%c4%82%25%e0%a1%80%1p", in testDecode_secondHexDigitWrong_fails() 64 UriCodec.decode("ab%2f$%c4%82%25%e0%a1%80%", in testDecode_endsWithPercent_fails() 76 UriCodec.decode("ab%2f$%c4%82%25%e0%a1%80%", in testDecode_dontThrowException_appendsUnknownCharacter() 84 UriCodec.decode("ab%2f$%c4%82%25+%e0%a1%80", in testDecode_convertPlus() 93 UriCodec.decode("ab%2f$%c4%82%25%e0%a1%80", in testDecode_lastCharacter() 103 UriCodec.decode("ab%2f$%c4%82%25%e0%a1%80aa%e0%a1%80", in testDecode_secondRowOfEncoded()
|
D | SntpClientTest.java | 164 mServer.setServerReply(HexEncoding.decode(LATE_ERA_RESPONSE.toCharArray(), false)); in testRequestTime_era0ClientEra0RServer() 177 mServer.setServerReply(HexEncoding.decode(EARLY_ERA_RESPONSE.toCharArray(), false)); in testRequestTime_era0ClientEra1Server() 191 mServer.setServerReply(HexEncoding.decode(LATE_ERA_RESPONSE.toCharArray(), false)); in testRequestTime_era1ClientEra0Server() 204 mServer.setServerReply(HexEncoding.decode(EARLY_ERA_RESPONSE.toCharArray(), false)); in testRequestTime_era1ClientEra1Server() 316 final byte[] reply = HexEncoding.decode(LATE_ERA_RESPONSE.toCharArray(), false); in testIgnoreLeapNoSync() 328 final byte[] reply = HexEncoding.decode(LATE_ERA_RESPONSE.toCharArray(), false); in testAcceptOnlyServerAndBroadcastModes() 357 final byte[] reply = HexEncoding.decode(LATE_ERA_RESPONSE.toCharArray(), false); in testAcceptableStrataOnly() 378 final byte[] reply = HexEncoding.decode(LATE_ERA_RESPONSE.toCharArray(), false); in testZeroTransmitTime() 390 final byte[] reply = HexEncoding.decode(LATE_ERA_RESPONSE.toCharArray(), false); in testNonMatchingOriginateTime()
|
/frameworks/compile/mclinker/include/mcld/Support/ |
D | LEB128.h | 26 IntType decode(const ByteType* pBuf, size_t& pSize); 29 IntType decode(const ByteType*& pBuf); 72 uint64_t decode<uint64_t>(const ByteType* pBuf, size_t& pSize); 79 uint64_t decode<uint64_t>(const ByteType*& pBuf); 85 int64_t decode<int64_t>(const ByteType* pBuf, size_t& pSize); 88 int64_t decode<int64_t>(const ByteType*& pBuf); 101 IntType decode(const char* pBuf, size_t& pSize) { in decode() function 102 return decode<IntType>(reinterpret_cast<const ByteType*>(pBuf), pSize); in decode() 106 IntType decode(const char*& pBuf) { in decode() function 107 return decode<IntType>(reinterpret_cast<const ByteType*&>(pBuf)); in decode()
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
D | DepthImage.java | 61 XmpDepthDecode decode = new XmpDepthDecode(input); in createFromXMPMetadata() local 62 return new DepthImage(decode.getFormat(), decode.getFar(), in createFromXMPMetadata() 63 decode.getNear(), decode.getDepthBitmap(), in createFromXMPMetadata() 64 decode.getBlurAtInfinity(), in createFromXMPMetadata() 65 decode.getFocalDistance(), in createFromXMPMetadata() 66 decode.getDepthOfField(), in createFromXMPMetadata() 67 decode.getFocalPointX(), in createFromXMPMetadata() 68 decode.getFocalPointY(), in createFromXMPMetadata() 69 decode.getDepthTransform()); in createFromXMPMetadata()
|
/frameworks/compile/mclinker/unittests/ |
D | LEB128Test.cpp | 199 ASSERT_TRUE(leb128::decode<uint64_t>(buffer, size) == 2); in TEST_F() 204 ASSERT_TRUE(leb128::decode<uint64_t>(buffer, size) == 127); in TEST_F() 209 ASSERT_TRUE(leb128::decode<uint64_t>(buffer, size) == 128); in TEST_F() 214 ASSERT_TRUE(leb128::decode<uint64_t>(buffer, size) == 129); in TEST_F() 219 ASSERT_TRUE(leb128::decode<uint64_t>(buffer, size) == 130); in TEST_F() 224 ASSERT_TRUE(leb128::decode<uint64_t>(buffer, size) == 12857); in TEST_F() 234 ASSERT_EQ(leb128::decode<int64_t>(buffer, size), 2); in TEST_F() 239 ASSERT_EQ(leb128::decode<int64_t>(buffer, size), -2); in TEST_F() 244 ASSERT_EQ(leb128::decode<int64_t>(buffer, size), 127); in TEST_F() 249 ASSERT_EQ(leb128::decode<int64_t>(buffer, size), -127); in TEST_F() [all …]
|
/frameworks/base/ravenwood/runtime-helper-src/libcore-fake/libcore/util/ |
D | HexEncoding.java | 147 public static byte[] decode(String encoded) throws IllegalArgumentException { in decode() method in HexEncoding 148 return decode(encoded.toCharArray()); in decode() 164 public static byte[] decode(String encoded, boolean allowSingleChar) in decode() method in HexEncoding 166 return decode(encoded.toCharArray(), allowSingleChar); in decode() 180 public static byte[] decode(char[] encoded) throws IllegalArgumentException { in decode() method in HexEncoding 181 return decode(encoded, false); in decode() 197 public static byte[] decode(char[] encoded, boolean allowSingleChar) in decode() method in HexEncoding
|
/frameworks/base/tests/graphics/SilkFX/src/com/android/test/silkfx/hdr/ |
D | GainmapDecodeTest.kt | 63 private fun decode(mode: DecodeMode) { in decode() method 112 decode(DecodeMode.Full) in onFinishInflate() 115 decode(DecodeMode.Full) in onFinishInflate() 118 decode(DecodeMode.Subsampled4) in onFinishInflate() 121 decode(DecodeMode.Scaled66) in onFinishInflate() 124 decode(DecodeMode.CropedSquared) in onFinishInflate() 127 decode(DecodeMode.CropedSquaredScaled33) in onFinishInflate()
|
/frameworks/base/services/tests/VpnTests/java/com/android/internal/net/ |
D | VpnProfileTest.java | 180 final VpnProfile decoded = VpnProfile.decode(DUMMY_PROFILE_KEY, profile.encode()); in testEncodeDecodeWithIkeTunConnParams() 187 final VpnProfile decoded = VpnProfile.decode(DUMMY_PROFILE_KEY, profile.encode()); in testEncodeDecode() 197 assertNull(VpnProfile.decode(DUMMY_PROFILE_KEY, tooManyValues)); in testEncodeDecodeTooManyValues() 229 assertNull(VpnProfile.decode(DUMMY_PROFILE_KEY, tooFewValues.getBytes())); in testEncodeDecodeInvalidNumberOfValues() 247 final VpnProfile decoded = VpnProfile.decode(DUMMY_PROFILE_KEY, tooFewValues.getBytes()); in testEncodeDecodeMissingIsRestrictedToTestNetworks() 256 final VpnProfile decoded = VpnProfile.decode(DUMMY_PROFILE_KEY, tooFewValues.getBytes()); in testEncodeDecodeMissingExcludeLocalRoutes() 265 final VpnProfile decoded = VpnProfile.decode(DUMMY_PROFILE_KEY, tooFewValues.getBytes()); in testEncodeDecodeMissingRequiresValidation() 274 final VpnProfile decoded = VpnProfile.decode(DUMMY_PROFILE_KEY, tooFewValues.getBytes()); in testEncodeDecodeMissingAutomaticNattKeepaliveTimerEnabled() 283 final VpnProfile decoded = VpnProfile.decode(DUMMY_PROFILE_KEY, tooFewValues.getBytes()); in testEncodeDecodeMissingAutomaticIpVersionSelectionEnabled() 292 final VpnProfile decoded = VpnProfile.decode(DUMMY_PROFILE_KEY, profile.encode()); in testEncodeDecodeLoginsNotSaved()
|
/frameworks/base/packages/SettingsLib/Ipc/src/com/android/settingslib/ipc/ |
D | MessageCodecs.kt | 25 override fun decode(data: Bundle): Int = data.getInt(null) in decode() method 33 override fun decode(data: Bundle): Set<Int> = data.getIntArray(null)?.toSet() ?: setOf() in decode() method in com.android.settingslib.ipc.IntSetMessageCodec 41 override fun decode(data: Bundle): Set<String> = data.getStringArray(null)?.toSet() ?: setOf() method in com.android.settingslib.ipc.StringSetMessageCodec
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | Base64Test.java | 48 byte[] out = Base64.decode(in, 0); in decodeString() 66 byte[] out = Base64.decode(in, 0); in assertBad() 137 assertPartialEquals(BYTES, 0, Base64.decode("", 0)); in testBinaryDecode() 138 assertPartialEquals(BYTES, 1, Base64.decode("/w==", 0)); in testBinaryDecode() 139 assertPartialEquals(BYTES, 2, Base64.decode("/+4=", 0)); in testBinaryDecode() 140 assertPartialEquals(BYTES, 3, Base64.decode("/+7d", 0)); in testBinaryDecode() 141 assertPartialEquals(BYTES, 4, Base64.decode("/+7dzA==", 0)); in testBinaryDecode() 142 assertPartialEquals(BYTES, 5, Base64.decode("/+7dzLs=", 0)); in testBinaryDecode() 143 assertPartialEquals(BYTES, 6, Base64.decode("/+7dzLuq", 0)); in testBinaryDecode() 144 assertPartialEquals(BYTES, 7, Base64.decode("/+7dzLuqmQ==", 0)); in testBinaryDecode() [all …]
|
/frameworks/opt/net/voip/src/jni/rtp/ |
D | G711Codec.cpp | 42 int decode(int16_t *samples, int count, void *payload, int length); 67 int UlawCodec::decode(int16_t *samples, int count, void *payload, int length) in decode() function in __anon758e44a50111::UlawCodec 93 int decode(int16_t *samples, int count, void *payload, int length); 117 int AlawCodec::decode(int16_t *samples, int count, void *payload, int length) in decode() function in __anon758e44a50111::AlawCodec
|
D | AmrCodec.cpp | 55 int decode(int16_t *samples, int count, void *payload, int length); 131 int AmrCodec::decode(int16_t *samples, int /* count */, void *payload, int length) in decode() function in __anon75f9ad850111::AmrCodec 216 int decode(int16_t *samples, int count, void *payload, int length); 242 int GsmEfrCodec::decode(int16_t *samples, int count, void *payload, int length) in decode() function in __anon75f9ad850111::GsmEfrCodec
|
D | GsmCodec.cpp | 45 int decode(int16_t *samples, int count, void *payload, int length); 58 int GsmCodec::decode(int16_t *samples, int count, void *payload, int length) in decode() function in __anona7a547ac0111::GsmCodec
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/utils/ |
D | GestureLogParser.java | 55 actionIndex = Integer.decode(matcher.group(2)); in getMotionEventFromLogLine() 62 edgeFlags = Integer.decode(findString(line, "edgeFlags=(\\w+)")); in getMotionEventFromLogLine() 63 source = Integer.decode(findString(line, "source=(\\w+)")); in getMotionEventFromLogLine() 64 flags = Integer.decode(findString(line, "flags=(\\w+)")); in getMotionEventFromLogLine() 77 return Integer.decode(matcher.group(1)); in findInt()
|
/frameworks/base/packages/SettingsLib/DataStore/src/com/android/settingslib/datastore/ |
D | BackupCodec.kt | 54 fun decode(inputStream: InputStream): InputStream in encode() method 77 override fun decode(inputStream: InputStream) = inputStream in encode() method in com.android.settingslib.datastore.BackupNoOpCodec 91 override fun decode(inputStream: InputStream) = InflaterInputStream(inputStream) in encode() method in com.android.settingslib.datastore.BackupZipCodec
|
/frameworks/compile/mclinker/lib/Support/ |
D | LEB128.cpp | 96 uint64_t decode<uint64_t>(const ByteType* pBuf, size_t& pSize) { in decode() function 136 uint64_t decode<uint64_t>(const ByteType*& pBuf) { in decode() function 184 int64_t decode<int64_t>(const ByteType* pBuf, size_t& pSize) { in decode() function 205 int64_t decode<int64_t>(const ByteType*& pBuf) { in decode() function
|
/frameworks/base/tools/preload/ |
D | Record.java | 132 processName = decode(parts[3]).intern(); in Record() 135 className = vmTypeToLanguage(decode(parts[5])).intern(); in Record() 148 String decode(String rawField) { in decode() method in Record
|
/frameworks/base/keystore/tests/src/android/security/keystore2/ |
D | AndroidKeyStoreEdECPublicKeyTest.java | 68 this.encodedKeyBytes = Base64.getDecoder().decode(b64KeyBytes); in EdECTestVector() 107 final byte[] testVectorWithIncorrectOid = Base64.getDecoder().decode( in testFailedParsingOfKeysWithDifferentOid() 116 final byte[] testVectorWithIncorrectKeySize = Base64.getDecoder().decode( in testFailedParsingOfKeysWithWrongSize()
|
/frameworks/base/services/core/java/com/android/server/security/rkp/ |
D | RemoteProvisioningShellCommand.java | 172 challenge = Base64.getDecoder().decode(getNextArgRequired()); in csr() 210 return Base64.getDecoder().decode(EEK_ED25519_BASE64); in getEekChain() 212 return Base64.getDecoder().decode(EEK_P256_BASE64); in getEekChain() 221 .add(decode(deviceInfo.deviceInfo)) in composeCertificateRequestV1() 235 .add(decode(protectedData.protectedData)) in composeCertificateRequestV1() 247 private DataItem decode(byte[] data) throws CborException { in decode() method in RemoteProvisioningShellCommand
|
/frameworks/base/services/core/java/com/android/server/location/contexthub/ |
D | ContextHubShellCommand.java | 55 int contextHubId = Integer.decode(getNextArgRequired()); in runDisableAuth() 57 long nanoAppId = Long.decode(getNextArgRequired()); in runDisableAuth()
|
/frameworks/libs/modules-utils/java/com/android/modules/utils/ |
D | BytesMatcher.java | 250 public static @NonNull BytesMatcher decode(@Nullable String value) { in decode() method in BytesMatcher 267 ruleValue = HexEncoding.decode(value.substring(i + 1, nextMask)); in decode() 268 ruleMask = HexEncoding.decode(value.substring(nextMask + 1, nextRule)); in decode() 270 ruleValue = HexEncoding.decode(value.substring(i + 1, nextRule)); in decode()
|
/frameworks/compile/mclinker/lib/Target/ |
D | ELFAttributeData.cpp | 24 leb128::decode<uint64_t>(pBuf, size)); in ReadTag() 41 uint64_t int_value = leb128::decode<uint64_t>(pBuf, size); in ReadValue()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/logging/ |
D | KeyguardQuickAffordancesLogger.kt | 31 val (slotId, affordanceId) = configKey?.decode() ?: ("" to "") in logQuickAffordanceTapped() 76 private fun String.decode(): Pair<String, String> { in String() method in com.android.keyguard.logging.KeyguardQuickAffordancesLogger
|
/frameworks/base/core/java/android/util/ |
D | Base64.java | 120 public static byte[] decode(String str, int flags) { in decode() method in Base64 121 return decode(str.getBytes(), flags); in decode() 138 public static byte[] decode(byte[] input, int flags) { in decode() method in Base64 139 return decode(input, 0, input.length, flags); in decode() 158 public static byte[] decode(byte[] input, int offset, int len, int flags) { in decode() method in Base64
|