/frameworks/base/core/java/android/hardware/ |
ConsumerIrManager.java | 140 int[] freqs = mService.getCarrierFrequencies(); local 141 if (freqs.length % 2 != 0) { 145 CarrierFrequencyRange[] range = new CarrierFrequencyRange[freqs.length / 2]; 147 for (int i = 0; i < freqs.length; i += 2) { 148 range[i / 2] = new CarrierFrequencyRange(freqs[i], freqs[i+1]);
|
/packages/inputmethods/PinyinIME/jni/share/ |
ngram.cpp | 61 size_t update_code_idx(double freqs[], size_t num, double code_book[], 66 idx = qsearch_nearest(code_book, freqs[pos], 0, kCodeBookSize - 1); 74 double recalculate_kernel(double freqs[], size_t num, double code_book[], 87 ret += distance(freqs[pos], code_book[code_idx[pos]]); 89 cb_new[code_idx[pos]] += freqs[pos]; 104 void iterate_codes(double freqs[], size_t num, double code_book[], 109 size_t changed = update_code_idx(freqs, num, code_book, code_idx); 111 double delta = recalculate_kernel(freqs, num, code_book, code_idx); 250 double *freqs = new double[next_idx_unused]; local 251 if (NULL == freqs) [all...] |
/system/extras/cpustats/ |
cpustats.c | 45 struct freq_info *freqs; member in struct:cpu_info 115 new_cpus[i].freqs = malloc(sizeof(struct freq_info) * new_cpus[i].freq_count); 116 if (!new_cpus[i].freqs) die("Could not allocate struct freq_info\n"); 117 old_cpus[i].freqs = malloc(sizeof(struct freq_info) * old_cpus[i].freq_count); 118 if (!old_cpus[i].freqs) die("Could not allocate struct freq_info\n"); 127 new_total_cpu.freqs = malloc(sizeof(struct freq_info) * new_total_cpu.freq_count); 128 if (!new_total_cpu.freqs) die("Could not allocate struct freq_info\n"); 129 old_total_cpu.freqs = malloc(sizeof(struct freq_info) * old_total_cpu.freq_count); 130 if (!old_total_cpu.freqs) die("Could not allocate struct freq_info\n"); 153 free(new_total_cpu.freqs); [all...] |
/cts/tests/tests/hardware/src/android/hardware/consumerir/cts/ |
ConsumerIrTest.java | 61 ConsumerIrManager.CarrierFrequencyRange[] freqs = mCIR.getCarrierFrequencies(); local 63 assertTrue(freqs.length > 0); 64 for (ConsumerIrManager.CarrierFrequencyRange range : freqs) { 78 ConsumerIrManager.CarrierFrequencyRange[] freqs = mCIR.getCarrierFrequencies(); local 87 for (ConsumerIrManager.CarrierFrequencyRange range : freqs) { 114 ConsumerIrManager.CarrierFrequencyRange[] freqs = mCIR.getCarrierFrequencies(); local 123 mCIR.transmit(freqs[0].getMinFrequency(), pattern);
|
/external/wpa_supplicant_8/wpa_supplicant/ |
bgscan_learn.c | 215 int *freqs = NULL, *n; local 220 if (in_array(freqs, bss->freq)) 222 n = os_realloc_array(freqs, *count + 2, sizeof(int)); 224 return freqs; 225 freqs = n; 226 freqs[*count] = bss->freq; 228 freqs[*count] = 0; 231 return freqs; 236 int *freqs, size_t count) 241 return freqs; 276 int *freqs = NULL; local 355 int i, j, *freqs = NULL, *n; local [all...] |
scan.c | 334 if (params->freqs == NULL && wpa_s->p2p_in_provisioning && 342 params->freqs = os_zalloc(2 * sizeof(int)); 343 if (params->freqs) 344 params->freqs[0] = wpa_s->go_params->freq; 349 int_array_concat(¶ms->freqs, 351 if (params->freqs) 352 int_array_sort_unique(params->freqs); 359 if (params->freqs == NULL && wpa_s->after_wps && wpa_s->wps_freq) { 366 params->freqs = os_zalloc(2 * sizeof(int)); 367 if (params->freqs) [all...] |
config.c | 828 int *freqs; local 834 freqs = os_calloc(len + 1, sizeof(int)); 835 if (freqs == NULL) 845 n = os_realloc_array(freqs, len * 2 + 1, sizeof(int)); 847 os_free(freqs); 852 freqs = n; 856 freqs[used] = atoi(pos); 857 if (freqs[used] == 0) 863 return freqs; 871 int *freqs; local 887 int *freqs; local 2806 int *freqs; local [all...] |
p2p_supplicant.c | 127 int *freqs; local 130 freqs = os_calloc(wpa_s->num_multichan_concurrent, sizeof(int)); 131 if (!freqs) 134 num = get_shared_radio_freqs(wpa_s, freqs, 136 os_free(freqs); 149 int *freqs; local 152 freqs = os_calloc(wpa_s->num_multichan_concurrent, sizeof(int)); 153 if (!freqs) 156 num = get_shared_radio_freqs(wpa_s, freqs, 162 if (p2p_supported_freq(wpa_s->global->p2p, freqs[i]) 3565 int *freqs, res, num, i; local 3814 int freqs[2] = { 0, 0 }; local 3978 int *freqs, res; local 4376 int res, *freqs; local [all...] |
bgscan_simple.c | 43 params.freqs = data->ssid->scan_freq;
|
sme.c | 1037 params->freqs = os_zalloc(sizeof(int)); 1041 params->freqs = os_calloc(mode->num_channels + 1, sizeof(int)); 1042 if (params->freqs == NULL) 1047 params->freqs[count++] = mode->channels[i].freq; 1070 os_free(params.freqs); [all...] |
wpa_supplicant.c | 3562 int *freqs; local 3596 int *freqs = NULL; local [all...] |
bss.c | 664 if (bss->freq == info->freqs[i]) { 713 if (info && !info->aborted && !info->freqs) {
|
events.c | 529 static int freq_allowed(int *freqs, int freq) 533 if (freqs == NULL) 536 for (i = 0; freqs[i]; i++) 537 if (freqs[i] == freq) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/hardware/ |
ConsumerIr.java | 112 ConsumerIrManager.CarrierFrequencyRange[] freqs = mCIR.getCarrierFrequencies(); 114 for (ConsumerIrManager.CarrierFrequencyRange range : freqs) {
|
/external/wpa_supplicant_8/src/ap/ |
acs.c | 725 params.freqs = os_calloc(iface->current_mode->num_channels + 1, 726 sizeof(params.freqs[0])); 727 if (params.freqs == NULL) 730 freq = params.freqs; 752 os_free(params.freqs);
|
hw_features.c | 477 params->freqs = os_calloc(mode->num_channels + 1, sizeof(int)); 478 if (params->freqs == NULL) 489 params->freqs[pos++] = chan->freq; 509 os_free(params.freqs); 512 os_free(params.freqs);
|
/external/jmonkeyengine/engine/src/desktop/com/jme3/app/ |
SettingsDialog.java | 515 String[] freqs = getFrequencies(resolution, modes); local 516 displayFreqCombo.setModel(new DefaultComboBoxModel(freqs)); 627 ArrayList<String> freqs = new ArrayList<String>(4); local 637 if (res.equals(resolution) && !freqs.contains(freq)) { 638 freqs.add(freq); 642 String[] res = new String[freqs.size()]; 643 freqs.toArray(res);
|
/cts/suite/audio_quality/test_description/processing/ |
check_spectrum.py | 50 Phh, freqs = plt.psd(hostData, NFFT=N, Fs=samplingRate, Fc=0, detrend=plt.mlab.detrend_none,\ 53 Pdd, freqs = plt.psd(DUTData, NFFT=N, Fs=samplingRate, Fc=0, detrend=plt.mlab.detrend_none,\
|
check_spectrum_playback.py | 49 Phh, freqs = plt.psd(hostData, NFFT=N, Fs=samplingRate, Fc=0, detrend=plt.mlab.detrend_none,\
|
/external/qemu/distrib/sdl-1.2.15/src/audio/mint/ |
SDL_mintaudio_stfa.c | 66 static const int freqs[16]={ variable 218 SDL_MintAudio_AddFrequency(this, freqs[i], 0, i, -1);
|
/external/wpa_supplicant_8/wpa_supplicant/dbus/ |
dbus_new_handlers.c | 1137 int *freqs = NULL, *nfreqs; local [all...] |
dbus_new.c | 1240 dbus_int32_t freqs[P2P_MAX_CHANNELS]; local [all...] |
/external/wpa_supplicant_8/src/drivers/ |
driver.h | 284 * freqs - Array of frequencies to scan or %NULL for all frequencies 288 int *freqs; member in struct:wpa_driver_scan_params 3724 const int *freqs; member in struct:wpa_event_data::scan_info [all...] |
driver_nl80211.c | 1944 int freqs[MAX_REPORT_FREQS]; local 4284 struct nlattr *freqs; local 5428 int freqs[2]; local [all...] |
/external/wpa_supplicant_8/src/p2p/ |
p2p.c | 1588 int freqs; local [all...] |