Searched refs:list_size (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/services/core/jni/ |
D | com_android_server_HardwarePropertiesManagerService.cpp | 63 ssize_t list_size = gThermalModule->getCoolingDevices(gThermalModule, nullptr, 0); in nativeGetFanSpeeds() local 65 if (list_size >= 0) { in nativeGetFanSpeeds() 67 malloc(list_size * sizeof(cooling_device_t)); in nativeGetFanSpeeds() 68 ssize_t size = gThermalModule->getCoolingDevices(gThermalModule, list, list_size); in nativeGetFanSpeeds() 70 if (list_size > size) { in nativeGetFanSpeeds() 71 list_size = size; in nativeGetFanSpeeds() 73 jfloat values[list_size]; in nativeGetFanSpeeds() 74 for (ssize_t i = 0; i < list_size; ++i) { in nativeGetFanSpeeds() 78 jfloatArray fanSpeeds = env->NewFloatArray(list_size); in nativeGetFanSpeeds() 79 env->SetFloatArrayRegion(fanSpeeds, 0, list_size, values); in nativeGetFanSpeeds() [all …]
|
/frameworks/base/core/jni/ |
D | android_hardware_location_ActivityRecognitionHardware.cpp | 214 int list_size = sModule->get_supported_activities_list(sModule, &list); in get_supported_activities() local 215 if (list_size <= 0 || list == NULL) { in get_supported_activities() 225 jobjectArray string_array = env->NewObjectArray(list_size, string_class, NULL); in get_supported_activities() 231 for (int i = 0; i < list_size; ++i) { in get_supported_activities()
|
/frameworks/av/media/libstagefright/codecs/avc/common/src/ |
D | reflist.cpp | 166 int *list_size; in ReorderRefPicList() local 178 list_size = &(video->refList0Size); in ReorderRefPicList() 188 list_size = &(video->refList1Size); in ReorderRefPicList() 248 *list_size = num_ref_idx_lX_active_minus1 + 1; in ReorderRefPicList()
|