Home
last modified time | relevance | path

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

/frameworks/base/core/jni/
Dandroid_util_Process.cpp787 jint* curData = NULL; in android_os_Process_getPids() local
790 curData = env->GetIntArrayElements(lastArray, 0); in android_os_Process_getPids()
816 if (curData != NULL) { in android_os_Process_getPids()
817 memcpy(newData, curData, sizeof(jint)*curCount); in android_os_Process_getPids()
818 env->ReleaseIntArrayElements(lastArray, curData, 0); in android_os_Process_getPids()
822 curData = newData; in android_os_Process_getPids()
825 curData[curPos] = pid; in android_os_Process_getPids()
831 if (curData != NULL && curPos > 0) { in android_os_Process_getPids()
832 qsort(curData, curPos, sizeof(jint), pid_compare); in android_os_Process_getPids()
836 curData[curPos] = -1; in android_os_Process_getPids()
[all …]