/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 | 88 mServer.setServerReply(HexEncoding.decode(WORKING_VERSION4.toCharArray(), false)); in testBasicWorkingSntpClientQuery() 109 final byte[] reply = HexEncoding.decode(WORKING_VERSION4.toCharArray(), false); in testIgnoreLeapNoSync() 119 final byte[] reply = HexEncoding.decode(WORKING_VERSION4.toCharArray(), false); in testAcceptOnlyServerAndBroadcastModes() 146 final byte[] reply = HexEncoding.decode(WORKING_VERSION4.toCharArray(), false); in testAcceptableStrataOnly() 165 final byte[] reply = HexEncoding.decode(WORKING_VERSION4.toCharArray(), false); in testZeroTransmitTime()
|
/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/base/core/tests/coretests/src/android/os/ |
D | BytesMatcherTest.java | 37 BytesMatcher matcher = BytesMatcher.decode(""); in testEmpty() 44 BytesMatcher matcher = BytesMatcher.decode("+cafe"); in testExact() 53 BytesMatcher matcher = BytesMatcher.decode("+cafe/ff00"); in testMask() 63 BytesMatcher matcher = BytesMatcher.decode("⊆cafe,⊆beef/ff00"); in testPrefix() 76 BytesMatcher matcher = BytesMatcher.decode("+cafe00112233/ffffff000000"); in testMacAddress() 85 BytesMatcher matcher = BytesMatcher.decode("+cafe/ff00"); in testBluetoothUuid() 98 BytesMatcher matcher = BytesMatcher.decode("+aaaa/ff00,+bbbbbbbb/ffff0000"); in testBluetoothUuid_Mixed() 112 matcher = BytesMatcher.decode(BytesMatcher.encode(matcher)); in testSerialize_Empty() 115 BytesMatcher.decode(""); in testSerialize_Empty() 116 BytesMatcher.decode(null); in testSerialize_Empty() [all …]
|
/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 __anon5755eff60111::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 __anon5755eff60111::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 __anonbae0b2b60111::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 __anonbae0b2b60111::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 __anonec8c4cdd0111::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/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/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/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()
|
/frameworks/base/core/java/android/net/ |
D | MailTo.java | 87 m.mHeaders.put(Uri.decode(nameval[0]).toLowerCase(Locale.ROOT), in parse() 88 nameval.length > 1 ? Uri.decode(nameval[1]) : null); in parse()
|
/frameworks/opt/bitmap/src/com/android/bitmap/ |
D | DecodeTask.java | 112 return decode(); in doInBackground() 115 public ReusableBitmap decode() { in decode() method in DecodeTask 381 decodeResult = decode(fd, in); in decode() 389 decodeResult = decode(fd, in); in decode() 488 private Bitmap decode(ParcelFileDescriptor fd, InputStream in) { in decode() method in DecodeTask
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
D | FontsContractTest.java | 53 Base64.decode("e04fd020ea3a6910a2d808002b30", Base64.DEFAULT); 56 Base64.decode("e04fd020ea3a6910a2d808002b30", Base64.DEFAULT); 58 Base64.decode("e04fd020ea3a6910a2d808002b32", Base64.DEFAULT); 284 byte[] wrongCert = Base64.decode("this is a wrong cert", Base64.DEFAULT); in testGetProvider_providerIsNonSystemAppWrongCerts() 309 byte[] wrongCert = Base64.decode("this is a wrong cert", Base64.DEFAULT); in testGetProvider_providerIsNonSystemAppMoreCerts() 344 byte[] wrongCert = Base64.decode("this is a wrong cert", Base64.DEFAULT); in testGetProvider_providerIsNonSystemAppCorrectCertsSeveralSets()
|
/frameworks/base/services/core/java/com/android/server/stats/pull/ |
D | SettingsStatsUtil.java | 143 final byte[] decode = Base64.decode(base64, Base64.NO_PADDING | Base64.NO_WRAP); in getList() 146 list = StringListParamProto.parseFrom(decode); in getList()
|