/frameworks/base/core/tests/coretests/src/android/util/ |
D | CharsetUtilsTest.java | 42 private long destPtr; field in CharsetUtilsTest 48 destPtr = VMRuntime.getRuntime().addressOf(dest); in setUp() 54 assertEquals(0, CharsetUtils.toModifiedUtf8Bytes("", destPtr, 0, dest.length)); in testModifiedUtf8_Empty() 56 assertEquals("", CharsetUtils.fromModifiedUtf8Bytes(destPtr, 0, 0)); in testModifiedUtf8_Empty() 61 assertEquals(4, CharsetUtils.toModifiedUtf8Bytes("!\0!", destPtr, 0, dest.length)); in testModifiedUtf8_Null() 63 assertEquals("!\0!", CharsetUtils.fromModifiedUtf8Bytes(destPtr, 0, 4)); in testModifiedUtf8_Null() 68 assertEquals(7, CharsetUtils.toModifiedUtf8Bytes("example", destPtr, 0, dest.length)); in testModifiedUtf8_Simple() 70 assertEquals("example", CharsetUtils.fromModifiedUtf8Bytes(destPtr, 0, 7)); in testModifiedUtf8_Simple() 75 assertEquals(3, CharsetUtils.toModifiedUtf8Bytes("☃", destPtr, 4, dest.length)); in testModifiedUtf8_Complex() 77 assertEquals("☃", CharsetUtils.fromModifiedUtf8Bytes(destPtr, 4, 3)); in testModifiedUtf8_Complex() [all …]
|
/frameworks/base/core/jni/ |
D | android_util_CharsetUtils.cpp | 24 char *destPtr = reinterpret_cast<char*>(dest); in android_util_CharsetUtils_toModifiedUtf8Bytes() local 30 env->GetStringUTFRegion(src, 0, srcLen, destPtr + destOff); in android_util_CharsetUtils_toModifiedUtf8Bytes() 31 return strlen(destPtr + destOff + srcLen) + srcLen; in android_util_CharsetUtils_toModifiedUtf8Bytes() 38 env->GetStringUTFRegion(src, 0, srcLen, destPtr + destOff); in android_util_CharsetUtils_toModifiedUtf8Bytes()
|
/frameworks/base/apct-tests/perftests/core/src/android/util/ |
D | CharsetUtilsPerfTest.java | 69 final long destPtr = VMRuntime.getRuntime().addressOf(dest); in timeLocal_SmallBuffer() local 73 CharsetUtils.toModifiedUtf8Bytes(mValue, destPtr, 0, dest.length); in timeLocal_SmallBuffer() 84 final long destPtr = VMRuntime.getRuntime().addressOf(dest); in timeLocal_LargeBuffer() local 88 CharsetUtils.toModifiedUtf8Bytes(mValue, destPtr, 0, dest.length); in timeLocal_LargeBuffer()
|
/frameworks/rs/cpu_ref/ |
D | rsCpuScript.cpp | 859 int32_t *destPtr = reinterpret_cast<int32_t *>(mScriptExec->getFieldAddress(slot)); in setGlobalVar() local 860 if (!destPtr) { in setGlobalVar() 865 memcpy(destPtr, data, dataLength); in setGlobalVar() 884 int32_t *destPtr = reinterpret_cast<int32_t *>(mScriptExec->getFieldAddress(slot)); in setGlobalVarWithElemDims() local 885 if (!destPtr) { in setGlobalVarWithElemDims() 906 char *oldVal = reinterpret_cast<char *>(destPtr); in setGlobalVarWithElemDims() 913 memcpy(destPtr, data, dataLength); in setGlobalVarWithElemDims() 921 int32_t *destPtr = reinterpret_cast<int32_t *>(mScriptExec->getFieldAddress(slot)); in setGlobalBind() local 922 if (!destPtr) { in setGlobalBind() 932 memcpy(destPtr, &ptr, sizeof(void *)); in setGlobalBind() [all …]
|
/frameworks/av/drm/mediadrm/plugins/clearkey/common/ |
D | Session.cpp | 59 const uint8_t* srcPtr, uint8_t* destPtr, in decrypt() argument 79 auto status = decryptor.decrypt(itr->second /*key*/, iv, srcPtr, destPtr, in decrypt()
|
/frameworks/av/drm/mediadrm/plugins/clearkey/aidl/ |
D | CryptoPlugin.cpp | 94 uint8_t* destPtr = dest->mBase + destBuffer.offset; in decrypt() local 130 memcpy(reinterpret_cast<uint8_t*>(destPtr) + offset, in decrypt() 157 srcPtr, static_cast<uint8_t*>(destPtr), in decrypt()
|