/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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/sms/ |
D | CdmaSmsTest.java | 130 BearerData bearerData = BearerData.decode(HexDump.hexStringToByteArray(pdu)); in testUserData7bitGsm() 137 BearerData bearerData = BearerData.decode(HexDump.hexStringToByteArray(pdu)); in testUserData7bitAscii() 144 BearerData bearerData = BearerData.decode(HexDump.hexStringToByteArray(pdu)); in testUserData7bitAsciiTwo() 151 BearerData bearerData = BearerData.decode(HexDump.hexStringToByteArray(pdu)); in testUserDataIa5() 167 BearerData revBearerData = BearerData.decode(encodedSms); in testUserData7bitAsciiFeedback() 175 revBearerData = BearerData.decode(BearerData.encode(bearerData)); in testUserData7bitAsciiFeedback() 178 revBearerData = BearerData.decode(BearerData.encode(bearerData)); in testUserData7bitAsciiFeedback() 181 revBearerData = BearerData.decode(BearerData.encode(bearerData)); in testUserData7bitAsciiFeedback() 197 BearerData revBearerData = BearerData.decode(encodedSms); in testUserData7bitGsmFeedback() 205 revBearerData = BearerData.decode(BearerData.encode(bearerData)); in testUserData7bitGsmFeedback() [all …]
|
/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/core/tests/coretests/src/android/util/ |
D | Base64Test.java | 40 byte[] out = Base64.decode(in, 0); in decodeString() 58 byte[] out = Base64.decode(in, 0); in assertBad() 135 assertEquals(BYTES, 0, Base64.decode("", 0)); in testBinaryDecode() 136 assertEquals(BYTES, 1, Base64.decode("/w==", 0)); in testBinaryDecode() 137 assertEquals(BYTES, 2, Base64.decode("/+4=", 0)); in testBinaryDecode() 138 assertEquals(BYTES, 3, Base64.decode("/+7d", 0)); in testBinaryDecode() 139 assertEquals(BYTES, 4, Base64.decode("/+7dzA==", 0)); in testBinaryDecode() 140 assertEquals(BYTES, 5, Base64.decode("/+7dzLs=", 0)); in testBinaryDecode() 141 assertEquals(BYTES, 6, Base64.decode("/+7dzLuq", 0)); in testBinaryDecode() 142 assertEquals(BYTES, 7, Base64.decode("/+7dzLuqmQ==", 0)); in testBinaryDecode() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/clock/ |
D | SettingsWrapperTest.kt | 54 val decoded = wrapper.decode(value, USER_ID) in testDecodeUnnecessary() 70 val decoded = wrapper.decode(value, USER_ID) in testDecodeJSON() 82 val decoded = wrapper.decode(value, USER_ID) in testDecodeJSONWithoutClockField() 91 assertThat(wrapper.decode(null, USER_ID)).isNull() in testDecodeNullJSON()
|
/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 __anon41fadcdb0111::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 __anon41fadcdb0111::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 __anonb27916fb0111::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 __anonb27916fb0111::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 __anone424b1220111::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/libs/net/common/tests/unit/src/com/android/net/module/util/netlink/ |
D | InetDiagSocketTest.java | 72 HexEncoding.decode(INET_DIAG_REQ_V2_UDP_INET4_HEX.toCharArray(), false); 107 HexEncoding.decode(INET_DIAG_REQ_V2_TCP_INET6_HEX.toCharArray(), false); 144 HexEncoding.decode(INET_DIAG_REQ_V2_TCP_INET_INET_DIAG_HEX.toCharArray(), false); 190 HexEncoding.decode(INET_DIAG_REQ_V2_TCP_INET6_NO_ID_SPECIFIED_HEX.toCharArray(), false); 248 HexEncoding.decode(INET_DIAG_MSG_HEX.toCharArray(), false);
|
/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/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/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/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/core/java/android/util/ |
D | Base64.java | 119 public static byte[] decode(String str, int flags) { in decode() method in Base64 120 return decode(str.getBytes(), flags); in decode() 137 public static byte[] decode(byte[] input, int flags) { in decode() method in Base64 138 return decode(input, 0, input.length, flags); in decode() 157 public static byte[] decode(byte[] input, int offset, int len, int flags) { in decode() method in Base64
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/compat/overrides/ |
D | AppCompatOverridesParserTest.java | 257 when(mPackageManager.hasSigningCertificate(PACKAGE_1, HexEncoding.decode("aa"), in parsePackageOverrides_signatureInvalid() 279 when(mPackageManager.hasSigningCertificate(PACKAGE_1, HexEncoding.decode("bb"), in parsePackageOverrides_signatureValid() 300 when(mPackageManager.hasSigningCertificate(PACKAGE_1, HexEncoding.decode("aa"), in parsePackageOverrides_multipleSignatures() 302 when(mPackageManager.hasSigningCertificate(PACKAGE_1, HexEncoding.decode("bb"), in parsePackageOverrides_multipleSignatures() 314 when(mPackageManager.hasSigningCertificate(PACKAGE_1, HexEncoding.decode("aa"), in parsePackageOverrides_signatureOnly()
|
/frameworks/native/libs/gralloc/types/tests/ |
D | Gralloc4_test.cpp | 75 void testHelper(const T& input, EncodeFunction<T> encode, DecodeFunction<T> decode) { in testHelper() argument 79 ASSERT_EQ(NO_ERROR, decode(vec, &output)); in testHelper() 84 void testHelperConst(const T& input, EncodeConstFunction<T> encode, DecodeFunction<T> decode) { in testHelperConst() argument 88 ASSERT_EQ(NO_ERROR, decode(vec, &output)); in testHelperConst() 93 …aType(const T& input, EncodeMetadataTypeFunction<T> encode, DecodeMetadataTypeFunction<T> decode) { in testHelperMetadataType() argument 98 ASSERT_EQ(NO_ERROR, decode(metadataType, vec, &output)); in testHelperMetadataType() 103 …(const T& input, EncodeMetadataTypeConstFunction<T> encode, DecodeMetadataTypeFunction<T> decode) { in testHelperMetadataTypeConst() argument 108 ASSERT_EQ(NO_ERROR, decode(metadataType, vec, &output)); in testHelperMetadataTypeConst() 113 …testHelperStableAidlType(const T& input, EncodeConstFunction<T> encode, DecodeFunction<T> decode) { in testHelperStableAidlType() argument 117 ASSERT_EQ(NO_ERROR, decode(vec, &output)); in testHelperStableAidlType() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/ |
D | SettingsWrapper.java | 57 return decode( in getLockScreenCustomClockFace() 79 String decode(@Nullable String value, int userId) { in decode() method in SettingsWrapper
|
/frameworks/base/packages/Shell/src/com/android/shell/ |
D | HeapDumpProvider.java | 66 String tag = Uri.decode(path); in delete() 78 String tag = Uri.decode(path); in openFile()
|