Home
last modified time | relevance | path

Searched refs:encode (Results 1 – 25 of 115) sorted by relevance

12345

/frameworks/compile/mclinker/unittests/
DLEB128Test.cpp47 size = leb128::encode<uint32_t>(result, 2); in TEST_F()
53 size = leb128::encode<uint32_t>(result, 127); in TEST_F()
59 size = leb128::encode<uint32_t>(result, 128); in TEST_F()
66 size = leb128::encode<uint32_t>(result, 129); in TEST_F()
73 size = leb128::encode<uint32_t>(result, 130); in TEST_F()
80 size = leb128::encode<uint32_t>(result, 12857); in TEST_F()
93 size = leb128::encode<uint64_t>(result, 2); in TEST_F()
99 size = leb128::encode<uint64_t>(result, 127); in TEST_F()
105 size = leb128::encode<uint64_t>(result, 128); in TEST_F()
112 size = leb128::encode<uint64_t>(result, 129); in TEST_F()
[all …]
/frameworks/base/wifi/java/android/net/wifi/util/
DHexEncoding.java53 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()
/frameworks/compile/mclinker/include/mcld/Support/
DLEB128.h23 size_t encode(ByteType*& pBuf, IntType pValue);
52 size_t encode<uint64_t>(ByteType*& pBuf, uint64_t pValue);
55 size_t encode<uint32_t>(ByteType*& pBuf, uint32_t pValue);
61 size_t encode<int64_t>(ByteType*& pBuf, int64_t pValue);
64 size_t encode<int32_t>(ByteType*& pBuf, int32_t pValue);
96 size_t encode(char*& pBuf, IntType pValue) { in encode() function
97 return encode<IntType>(reinterpret_cast<ByteType*&>(pBuf), pValue); in encode()
/frameworks/base/wifi/tests/src/android/net/wifi/util/
DHexEncodingTest.java20 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()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/sms/
DCdmaSmsTest.java166 byte []encodedSms = BearerData.encode(bearerData); 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()
196 byte []encodedSms = BearerData.encode(bearerData); in testUserData7bitGsmFeedback()
205 revBearerData = BearerData.decode(BearerData.encode(bearerData)); in testUserData7bitGsmFeedback()
208 revBearerData = BearerData.decode(BearerData.encode(bearerData)); in testUserData7bitGsmFeedback()
214 revBearerData = BearerData.decode(BearerData.encode(bearerData)); in testUserData7bitGsmFeedback()
217 revBearerData = BearerData.decode(BearerData.encode(bearerData)); in testUserData7bitGsmFeedback()
220 revBearerData = BearerData.decode(BearerData.encode(bearerData)); in testUserData7bitGsmFeedback()
[all …]
/frameworks/compile/mclinker/lib/Support/
DLEB128.cpp17 size_t encode<uint64_t>(ByteType*& pBuf, uint64_t pValue) { in encode() function
36 size_t encode<uint32_t>(ByteType*& pBuf, uint32_t pValue) { in encode() function
67 size_t encode<int64_t>(ByteType*& pBuf, int64_t pValue) { in encode() function
89 size_t encode<int32_t>(ByteType*& pBuf, int32_t pValue) { in encode() function
90 return encode<int64_t>(pBuf, static_cast<int64_t>(pValue)); in encode()
/frameworks/opt/net/voip/src/jni/rtp/
DG711Codec.cpp41 int encode(void *payload, int16_t *samples);
47 int UlawCodec::encode(void *payload, int16_t *samples) in encode() function in __anonf095142f0111::UlawCodec
92 int encode(void *payload, int16_t *samples);
98 int AlawCodec::encode(void *payload, int16_t *samples) in encode() function in __anonf095142f0111::AlawCodec
DAmrCodec.cpp54 int encode(void *payload, int16_t *samples);
100 int AmrCodec::encode(void *payload, int16_t *samples) in encode() function in __anona83fb3cf0111::AmrCodec
215 int encode(void *payload, int16_t *samples);
224 int GsmEfrCodec::encode(void *payload, int16_t *samples) in encode() function in __anona83fb3cf0111::GsmEfrCodec
DGsmCodec.cpp46 int encode(void *payload, int16_t *samples);
54 int GsmCodec::encode(void *payload, int16_t *samples) in encode() function in __anond9eb4df60111::GsmCodec
DAudioCodec.h31 virtual int encode(void *payload, int16_t *samples) = 0;
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareClientState.java230 HexEncoding.encode(mac)) + ", mLastDiscoveryInterfaceMac=" in onInterfaceAddressChange()
231 + String.valueOf(HexEncoding.encode(mLastDiscoveryInterfaceMac))); in onInterfaceAddressChange()
263 HexEncoding.encode(mac)) + ", currentDiscoveryInterfaceMac=" in onClusterChange()
264 + String.valueOf(HexEncoding.encode(currentDiscoveryInterfaceMac)) in onClusterChange()
266 HexEncoding.encode(mLastDiscoveryInterfaceMac))); in onClusterChange()
DWifiAwareNativeCallback.java375 + String.valueOf(HexEncoding.encode(event.addr))); in eventClusterEvent()
426 + event.peerId + ", addr=" + String.valueOf(HexEncoding.encode(event.addr)) in eventMatch()
461 HexEncoding.encode(event.addr)) + ", serviceSpecificInfo=" + Arrays.toString( in eventFollowupReceived()
490 HexEncoding.encode(event.peerDiscMacAddr)) + ", ndpInstanceId=" in eventDataPathRequest()
504 + ", peerNdiMacAddr=" + String.valueOf(HexEncoding.encode(event.peerNdiMacAddr)) in eventDataPathConfirm()
523 HexEncoding.encode(event.V1_0.peerNdiMacAddr)) + ", dataPathSetupSuccess=" in eventDataPathConfirm_1_2()
/frameworks/base/tests/net/java/com/android/internal/net/
DVpnProfileTest.java155 final VpnProfile decoded = VpnProfile.decode(DUMMY_PROFILE_KEY, profile.encode()); in testEncodeDecode()
163 (new String(profile.encode()) + VpnProfile.VALUE_DELIMITER + "invalid").getBytes(); in testEncodeDecodeTooManyValues()
172 final String encoded = new String(getSampleIkev2Profile(DUMMY_PROFILE_KEY).encode()); in getEncodedDecodedIkev2ProfileMissingValues()
210 final VpnProfile decoded = VpnProfile.decode(DUMMY_PROFILE_KEY, profile.encode()); in testEncodeDecodeLoginsNotSaved()
/frameworks/compile/mclinker/lib/Target/
DELFAttributeData.cpp68 leb128::encode<uint32_t>(pBuf, pTag); in WriteAttribute()
72 leb128::encode<uint32_t>(pBuf, pValue.getIntValue()); in WriteAttribute()
/frameworks/base/core/java/android/util/
DBase64.java458 return new String(encode(input, flags), "US-ASCII"); in encodeToString()
479 return new String(encode(input, offset, len, flags), "US-ASCII"); in encodeToString()
495 public static byte[] encode(byte[] input, int flags) { in encode() method in Base64
496 return encode(input, 0, input.length, flags); in encode()
511 public static byte[] encode(byte[] input, int offset, int len, int flags) { in encode() method in Base64
DBase64OutputStream.java63 public Base64OutputStream(OutputStream out, int flags, boolean encode) { in Base64OutputStream() argument
66 if (encode) { in Base64OutputStream()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DNativeUtil.java59 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()
/frameworks/native/libs/gralloc/types/tests/
DGralloc4_test.cpp75 void testHelper(const T& input, EncodeFunction<T> encode, DecodeFunction<T> decode) { in testHelper() argument
78 ASSERT_EQ(NO_ERROR, encode(input, &vec)); in testHelper()
84 void testHelperConst(const T& input, EncodeConstFunction<T> encode, DecodeFunction<T> decode) { in testHelperConst() argument
87 ASSERT_EQ(NO_ERROR, encode(input, &vec)); in testHelperConst()
93 void testHelperMetadataType(const T& input, EncodeMetadataTypeFunction<T> encode, DecodeMetadataTyp… in testHelperMetadataType() argument
97 ASSERT_EQ(NO_ERROR, encode(metadataType, input, &vec)); in testHelperMetadataType()
103 void testHelperMetadataTypeConst(const T& input, EncodeMetadataTypeConstFunction<T> encode, DecodeM… in testHelperMetadataTypeConst() argument
107 ASSERT_EQ(NO_ERROR, encode(metadataType, input, &vec)); in testHelperMetadataTypeConst()
113 void testHelperStableAidlType(const T& input, EncodeConstFunction<T> encode, DecodeFunction<T> deco… in testHelperStableAidlType() argument
116 ASSERT_EQ(NO_ERROR, encode(input, &vec)); in testHelperStableAidlType()
[all …]
/frameworks/base/core/java/android/net/
DMailTo.java157 sb.append(Uri.encode(header.getKey())); in toString()
159 sb.append(Uri.encode(header.getValue())); in toString()
DUri.java1526 String encodedParameter = encode(key, null) + "=" in appendQueryParameter()
1527 + encode(value, null); in appendQueryParameter()
1658 encodedKey = URLEncoder.encode(key, DEFAULT_ENCODING); in getQueryParameters()
1720 final String encodedKey = encode(key, null); in getQueryParameter()
1852 public static String encode(String s) { in encode() method in Uri
1853 return encode(s, null); in encode()
1869 public static String encode(String s, String allow) { in encode() method in Uri
2058 return hasEncoded ? encoded : (encoded = encode(decoded)); in getEncoded()
2165 return hasEncoded ? encoded : (encoded = encode(decoded, "/")); in getEncoded()
2244 String encoded = encode(decoded); in appendDecodedSegment()
/frameworks/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/
DMainActivityTest.java30 private byte[] encode(View view) throws ClassNotFoundException, NoSuchMethodException, in encode() method in MainActivityTest
61 byte[] data = encode(mTextView); in testTextView()
/frameworks/opt/net/voip/src/java/android/net/sip/
DSipAudioCall.java424 String answer = createAnswer(sessionDescription).encode(); in createListener()
551 createOffer().encode(), TRANSFER_TIMEOUT); in createListener()
553 String answer = createAnswer(sessionDescription).encode(); in createListener()
641 sipSession.makeCall(peerProfile, createOffer().encode(),
685 mSipSession.changeCall(createHoldOffer().encode(), timeout);
711 mSipSession.answerCall(createAnswer(mPeerSd).encode(), timeout);
735 mSipSession.changeCall(createContinueOffer().encode(), timeout);
/frameworks/av/media/libstagefright/codecs/amrnb/enc/test/
Damrnb_enc_test.cpp61 int encode(int mode, const char *srcFile, const char *dstFile) { in encode() function
234 retVal = encode(mode, inFileName, outFileName); in main()
/frameworks/base/tools/lock_agent/java/com/android/lock_checker/
DLockHook.java236 mHash.update(sFilenameCharset.encode(e.getFileName()).array()); in hashStackTraceElement()
239 mHash.update(sFilenameCharset.encode(e.getClassName()).array()); in hashStackTraceElement()
242 mHash.update(sFilenameCharset.encode(e.getMethodName()).array()); in hashStackTraceElement()
/frameworks/base/services/people/java/com/android/server/people/data/
DContactsQueryHelper.java96 ContactsContract.PhoneLookup.CONTENT_FILTER_URI, Uri.encode(phoneNumber)); in queryWithPhoneNumber()
102 ContactsContract.CommonDataKinds.Email.CONTENT_LOOKUP_URI, Uri.encode(email)); in queryWithEmail()

12345