Home
last modified time | relevance | path

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

/frameworks/base/core/jni/
Dandroid_hardware_Radio.cpp380 radio_properties_t *nModules = NULL; in android_hardware_Radio_listModules() local
382 status_t status = Radio::listModules(nModules, &numModules); in android_hardware_Radio_listModules()
387 nModules = (radio_properties_t *)calloc(numModules, sizeof(radio_properties_t)); in android_hardware_Radio_listModules()
389 status = Radio::listModules(nModules, &numModules); in android_hardware_Radio_listModules()
397 if (nModules[i].num_bands == 0) { in android_hardware_Radio_listModules()
401 __FUNCTION__, i, nModules[i].handle, nModules[i].implementor, in android_hardware_Radio_listModules()
402 nModules[i].product); in android_hardware_Radio_listModules()
405 jobjectArray jBands = env->NewObjectArray(nModules[i].num_bands, in android_hardware_Radio_listModules()
408 for (size_t j = 0; j < nModules[i].num_bands; j++) { in android_hardware_Radio_listModules()
411 convertBandDescriptorFromNative(env, &jBandDescriptor, &nModules[i].bands[j]); in android_hardware_Radio_listModules()
[all …]
Dandroid_hardware_SoundTrigger.cpp385 struct sound_trigger_module_descriptor *nModules = NULL; in android_hardware_SoundTrigger_listModules() local
387 status_t status = SoundTrigger::listModules(nModules, &numModules); in android_hardware_SoundTrigger_listModules()
392 nModules = (struct sound_trigger_module_descriptor *) in android_hardware_SoundTrigger_listModules()
395 status = SoundTrigger::listModules(nModules, &numModules); in android_hardware_SoundTrigger_listModules()
405 jstring implementor = env->NewStringUTF(nModules[i].properties.implementor); in android_hardware_SoundTrigger_listModules()
406 jstring description = env->NewStringUTF(nModules[i].properties.description); in android_hardware_SoundTrigger_listModules()
407 SoundTrigger::guidToString(&nModules[i].properties.uuid, in android_hardware_SoundTrigger_listModules()
413 i, nModules[i].handle, nModules[i].properties.description, in android_hardware_SoundTrigger_listModules()
414 nModules[i].properties.max_sound_models); in android_hardware_SoundTrigger_listModules()
417 nModules[i].handle, in android_hardware_SoundTrigger_listModules()
[all …]