Home
last modified time | relevance | path

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

/frameworks/base/services/core/jni/
Dcom_android_server_powerstats_PowerStatsService.cpp138 jobjectArray powerEntityArray = nullptr; in nativeGetPowerEntityInfo() local
140 [&env, &powerEntityArray](auto infos, auto status) { in nativeGetPowerEntityInfo()
144 powerEntityArray = env->NewObjectArray(infos.size(), class_PE, nullptr); in nativeGetPowerEntityInfo()
150 env->SetObjectArrayElement(powerEntityArray, i, powerEntity); in nativeGetPowerEntityInfo()
161 ->getPowerEntityStateInfo({}, [&env, &powerEntityArray](auto infos, auto status) { in nativeGetPowerEntityInfo()
180 for (int j = 0; j < env->GetArrayLength(powerEntityArray); j++) { in nativeGetPowerEntityInfo()
182 env->GetObjectArrayElement(powerEntityArray, j); in nativeGetPowerEntityInfo()
186 env->SetObjectArrayElement(powerEntityArray, j, powerEntity); in nativeGetPowerEntityInfo()
197 return powerEntityArray; in nativeGetPowerEntityInfo()