Home
last modified time | relevance | path

Searched refs:destPtr (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/util/
DCharsetUtilsTest.java42 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/
Dandroid_util_CharsetUtils.cpp24 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/
DCharsetUtilsPerfTest.java69 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/
DrsCpuScript.cpp859 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/
DSession.cpp59 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/
DCryptoPlugin.cpp94 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()