Home
last modified time | relevance | path

Searched refs:k (Results 1 – 25 of 104) sorted by relevance

12345

/system/chre/external/kiss_fft/
Dkiss_fftr.c70 int k,ncfft; in kiss_fftr() local
105 for ( k=1;k <= ncfft/2 ; ++k ) { in kiss_fftr()
106 fpk = st->tmpbuf[k]; in kiss_fftr()
107 fpnk.r = st->tmpbuf[ncfft-k].r; in kiss_fftr()
108 fpnk.i = - st->tmpbuf[ncfft-k].i; in kiss_fftr()
114 C_MUL( tw , f2k , st->super_twiddles[k-1]); in kiss_fftr()
116 freqdata[k].r = HALF_OF(f1k.r + tw.r); in kiss_fftr()
117 freqdata[k].i = HALF_OF(f1k.i + tw.i); in kiss_fftr()
118 freqdata[ncfft-k].r = HALF_OF(f1k.r - tw.r); in kiss_fftr()
119 freqdata[ncfft-k].i = HALF_OF(tw.i - f1k.i); in kiss_fftr()
[all …]
Dkissfft.hh125 for (int k=0;k<m;++k) { in kf_bfly2() local
126 cpx_type t = Fout[m+k] * _traits.twiddle(k*fstride); in kf_bfly2()
127 Fout[m+k] = Fout[k] - t; in kf_bfly2()
128 Fout[k] += t; in kf_bfly2()
136 for (size_t k=0;k<m;++k) { in kf_bfly4() local
137 scratch[0] = Fout[k+m] * _traits.twiddle(k*fstride); in kf_bfly4()
138 scratch[1] = Fout[k+2*m] * _traits.twiddle(k*fstride*2); in kf_bfly4()
139 scratch[2] = Fout[k+3*m] * _traits.twiddle(k*fstride*3); in kf_bfly4()
140 scratch[5] = Fout[k] - scratch[1]; in kf_bfly4()
142 Fout[k] += scratch[1]; in kf_bfly4()
[all …]
Dkiss_fft.c53 size_t k=m; in kf_bfly4() local
89 }while(--k); in kf_bfly4()
99 size_t k=m; in kf_bfly3() local
133 }while(--k); in kf_bfly3()
206 int u,k,q1,q; in kf_bfly_generic() local
214 k=u; in kf_bfly_generic()
216 scratch[q1] = Fout[ k ]; in kf_bfly_generic()
218 k += m; in kf_bfly_generic()
221 k=u; in kf_bfly_generic()
224 Fout[ k ] = scratch[0]; in kf_bfly_generic()
[all …]
/system/libhidl/transport/include/hidl/
DConcurrentMap.h33 void set(K &&k, V &&v) { in set() argument
35 mMap[std::forward<K>(k)] = std::forward<V>(v); in set()
39 const V &get(const K &k, const V &def) const { in get() argument
41 const_iterator iter = mMap.find(k); in get()
48 size_type erase(const K &k) { in erase() argument
50 return mMap.erase(k); in erase()
53 size_type eraseIfEqual(const K& k, const V& v) { in eraseIfEqual() argument
55 const_iterator iter = mMap.find(k); in eraseIfEqual()
69 void setLocked(const K& k, V&& v) { mMap[k] = std::forward<V>(v); } in setLocked() argument
70 void setLocked(const K& k, const V& v) { mMap[k] = v; } in setLocked() argument
[all …]
/system/sepolicy/tools/sepolicy-analyze/
Ddups.c12 static int find_dups_helper(avtab_key_t * k, avtab_datum_t * d, in find_dups_helper() argument
24 if (!(k->specified & AVTAB_ALLOWED)) in find_dups_helper()
27 if (k->source_type == k->target_type) in find_dups_helper()
30 avkey.target_class = k->target_class; in find_dups_helper()
31 avkey.specified = k->specified; in find_dups_helper()
33 sattr = &policydb->type_attr_map[k->source_type - 1]; in find_dups_helper()
34 tattr = &policydb->type_attr_map[k->target_type - 1]; in find_dups_helper()
35 stype = policydb->type_val_to_struct[k->source_type - 1]; in find_dups_helper()
36 ttype = policydb->type_val_to_struct[k->target_type - 1]; in find_dups_helper()
46 if (avkey.source_type == k->source_type && in find_dups_helper()
[all …]
Dtypecmp.c10 static int insert_type_rule(avtab_key_t * k, avtab_datum_t * d, in insert_type_rule() argument
21 if (k->source_type < c->key.source_type) in insert_type_rule()
23 if (k->source_type == c->key.source_type && in insert_type_rule()
24 k->target_type < c->key.target_type) in insert_type_rule()
26 if (k->source_type == c->key.source_type && in insert_type_rule()
27 k->target_type == c->key.target_type && in insert_type_rule()
28 k->target_class <= c->key.target_class) in insert_type_rule()
33 k->source_type == c->key.source_type && in insert_type_rule()
34 k->target_type == c->key.target_type && in insert_type_rule()
35 k->target_class == c->key.target_class) { in insert_type_rule()
[all …]
/system/bt/stack/crypto_toolbox/
Daes.cc383 static void copy_and_key(void* d, const void* s, const void* k) { in copy_and_key() argument
385 ((uint_32t*)d)[0] = ((uint_32t*)s)[0] ^ ((uint_32t*)k)[0]; in copy_and_key()
386 ((uint_32t*)d)[1] = ((uint_32t*)s)[1] ^ ((uint_32t*)k)[1]; in copy_and_key()
387 ((uint_32t*)d)[2] = ((uint_32t*)s)[2] ^ ((uint_32t*)k)[2]; in copy_and_key()
388 ((uint_32t*)d)[3] = ((uint_32t*)s)[3] ^ ((uint_32t*)k)[3]; in copy_and_key()
390 ((uint_8t*)d)[0] = ((uint_8t*)s)[0] ^ ((uint_8t*)k)[0]; in copy_and_key()
391 ((uint_8t*)d)[1] = ((uint_8t*)s)[1] ^ ((uint_8t*)k)[1]; in copy_and_key()
392 ((uint_8t*)d)[2] = ((uint_8t*)s)[2] ^ ((uint_8t*)k)[2]; in copy_and_key()
393 ((uint_8t*)d)[3] = ((uint_8t*)s)[3] ^ ((uint_8t*)k)[3]; in copy_and_key()
394 ((uint_8t*)d)[4] = ((uint_8t*)s)[4] ^ ((uint_8t*)k)[4]; in copy_and_key()
[all …]
/system/bt/gd/crypto_toolbox/
Daes.cc334 static void copy_and_key(void* d, const void* s, const void* k) { in copy_and_key() argument
336 ((uint_32t*)d)[0] = ((uint_32t*)s)[0] ^ ((uint_32t*)k)[0]; in copy_and_key()
337 ((uint_32t*)d)[1] = ((uint_32t*)s)[1] ^ ((uint_32t*)k)[1]; in copy_and_key()
338 ((uint_32t*)d)[2] = ((uint_32t*)s)[2] ^ ((uint_32t*)k)[2]; in copy_and_key()
339 ((uint_32t*)d)[3] = ((uint_32t*)s)[3] ^ ((uint_32t*)k)[3]; in copy_and_key()
341 ((uint_8t*)d)[0] = ((uint_8t*)s)[0] ^ ((uint_8t*)k)[0]; in copy_and_key()
342 ((uint_8t*)d)[1] = ((uint_8t*)s)[1] ^ ((uint_8t*)k)[1]; in copy_and_key()
343 ((uint_8t*)d)[2] = ((uint_8t*)s)[2] ^ ((uint_8t*)k)[2]; in copy_and_key()
344 ((uint_8t*)d)[3] = ((uint_8t*)s)[3] ^ ((uint_8t*)k)[3]; in copy_and_key()
345 ((uint_8t*)d)[4] = ((uint_8t*)s)[4] ^ ((uint_8t*)k)[4]; in copy_and_key()
[all …]
Dcrypto_toolbox_test.cc32 …uint8_t k[] = {0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, 0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf,… in TEST() local
41 aes_set_key(k, sizeof(k), &ctx); in TEST()
54 …Octet16 k{0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, 0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf, 0x4f… in TEST() local
59 std::reverse(std::begin(k), std::end(k)); in TEST()
62 Octet16 output = aes_cmac(k, nullptr /* empty message */, 0); in TEST()
74 …Octet16 k{0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, 0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf, 0x4f… in TEST() local
81 std::reverse(std::begin(k), std::end(k)); in TEST()
85 Octet16 output = aes_cmac(k, m); in TEST()
98 …Octet16 k{0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, 0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf, 0x4f… in TEST() local
107 std::reverse(std::begin(k), std::end(k)); in TEST()
[all …]
/system/bt/embdrv/sbc/encoder/srce/
Dsbc_dct.c183 uint8_t Index, k; in SBC_FastIDCT8()
188 for (k = 0; k < 16; k++) { in SBC_FastIDCT8()
191 temp += (gas16AnalDCTcoeff8[(Index * 8 * 2) + k] * (pInVect[k] >> 16)); in SBC_FastIDCT8()
193 ((gas16AnalDCTcoeff8[(Index * 8 * 2) + k] * (pInVect[k] & 0xFFFF)) >> in SBC_FastIDCT8()
252 uint8_t Index, k; in SBC_FastIDCT4()
257 for (k = 0; k < 8; k++) { in SBC_FastIDCT4()
260 temp += (gas16AnalDCTcoeff4[(Index * 4 * 2) + k] * (pInVect[k] >> 16)); in SBC_FastIDCT4()
262 ((gas16AnalDCTcoeff4[(Index * 4 * 2) + k] * (pInVect[k] & 0xFFFF)) >> in SBC_FastIDCT4()
/system/extras/boottime_tools/bootanalyze/
Dbootanalyze.py125 for k, v in shutdown_events.iteritems():
126 events = shutdown_event_all.get(k)
129 shutdown_event_all[k] = events
132 for k, v in shutdown_timing_events.iteritems():
133 events = shutdown_timing_event_all.get(k)
136 shutdown_timing_event_all[k] = events
147 for k, v in processing_data.iteritems():
148 if k not in data_points:
149 data_points[k] = []
150 data_points[k].append(v['value'])
[all …]
/system/bt/btif/src/
Dbtif_config_transcode.cc51 for (XMLElement* k = j->FirstChildElement(); k != NULL; in btif_config_transcode() local
52 k = k->NextSiblingElement()) { in btif_config_transcode()
53 const char* key = k->Attribute("Tag"); in btif_config_transcode()
54 const char* value = k->GetText(); in btif_config_transcode()
/system/bt/stack/test/
Dcrypto_toolbox_test.cc35 uint8_t k[] = {0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, in TEST() local
46 aes_set_key(k, sizeof(k), &ctx); in TEST()
59 Octet16 k{0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, in TEST() local
66 std::reverse(std::begin(k), std::end(k)); in TEST()
69 Octet16 output = aes_cmac(k, nullptr /* empty message */, 0); in TEST()
81 Octet16 k{0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, in TEST() local
91 std::reverse(std::begin(k), std::end(k)); in TEST()
95 Octet16 output = aes_cmac(k, m); in TEST()
108 Octet16 k{0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, in TEST() local
120 std::reverse(std::begin(k), std::end(k)); in TEST()
[all …]
/system/bt/stack/smp/
Dp_256_ecc_pp.cc158 static void ECC_NAF(uint8_t* naf, uint32_t* NumNAF, uint32_t* k) { in ECC_NAF() argument
164 while ((var = multiprecision_most_signbits(k)) >= 1) { in ECC_NAF()
165 if (k[0] & 0x01) // k is odd in ECC_NAF()
167 sign = (k[0] & 0x03); // 1 or 3 in ECC_NAF()
171 k[0] = k[0] & 0xFFFFFFFE; in ECC_NAF()
173 k[0] = k[0] + 1; in ECC_NAF()
174 if (k[0] == 0) // overflow in ECC_NAF()
178 k[j]++; in ECC_NAF()
179 } while (k[j++] == 0); // overflow in ECC_NAF()
185 multiprecision_rshift(k, k); in ECC_NAF()
/system/bt/gd/security/ecc/
Dp_256_ecc_pp.cc163 static void ECC_NAF(uint8_t* naf, uint32_t* NumNAF, uint32_t* k) { in ECC_NAF() argument
169 while ((var = multiprecision_most_signbits(k)) >= 1) { in ECC_NAF()
170 if (k[0] & 0x01) // k is odd in ECC_NAF()
172 sign = (k[0] & 0x03); // 1 or 3 in ECC_NAF()
176 k[0] = k[0] & 0xFFFFFFFE; in ECC_NAF()
178 k[0] = k[0] + 1; in ECC_NAF()
179 if (k[0] == 0) // overflow in ECC_NAF()
183 k[j]++; in ECC_NAF()
184 } while (k[j++] == 0); // overflow in ECC_NAF()
190 multiprecision_rshift(k, k); in ECC_NAF()
/system/keymaster/key_blob_utils/
Docb.c810 unsigned i, k, tz, remaining; in process_ad() local
866 k = 0; in process_ad()
878 k = 4; in process_ad()
883 ta[k] = xor_block(ad_offset, adp[k]); in process_ad()
884 ad_offset = xor_block(ad_offset, getL(ctx, ntz(k + 2))); in process_ad()
885 ta[k + 1] = xor_block(ad_offset, adp[k + 1]); in process_ad()
887 k += 2; in process_ad()
891 ta[k] = xor_block(ad_offset, adp[k]); in process_ad()
893 ++k; in process_ad()
898 memcpy(tmp.u8, adp + k, remaining); in process_ad()
[all …]
/system/core/libutils/
DLruCache_test.cpp30 int k; member
32 explicit ComplexKey(int k) : k(k) { in ComplexKey()
36 ComplexKey(const ComplexKey& other) : k(other.k) { in ComplexKey()
45 return k == other.k; in operator ==()
49 return k != other.k; in operator !=()
100 return hash_type(value.k); in hash_type()
115 void operator()(SimpleKey& k, StringValue& v) { in operator ()() argument
117 lastKey = k; in operator ()()
127 void operator()(KeyWithPointer& k, StringValue&) { in operator ()() argument
128 delete k.ptr; in operator ()()
[all …]
/system/extras/tests/pagingtest/
Dthrashing_test.c18 unsigned long long k; in thrashing_test() local
62 for (k = 0; k < filesize; k += pagesize) { in thrashing_test()
63 bufs[j][k]; in thrashing_test()
/system/update_engine/sample_images/
Dgenerate_images.sh52 sudo dd of="${mntdir}"/regular-16k status=none
53 sudo dd if=/dev/zero of="${mntdir}"/regular-32k-zeros bs=1024 count=16 \
60 sudo truncate --size=10240 "${mntdir}"/sparse_empty-10k
65 sudo dd of="${mntdir}"/sparse-16k-last_block bs=1 \
75 sudo truncate --size=16384 "${mntdir}"/sparse-16k-first_block
76 echo "first block" | sudo dd of="${mntdir}"/sparse-16k-first_block status=none
78 sudo truncate --size=16384 "${mntdir}"/sparse-16k-holes
79 echo "a" | sudo dd of="${mntdir}"/sparse-16k-holes bs=1 seek=100 status=none
80 echo "b" | sudo dd of="${mntdir}"/sparse-16k-holes bs=1 seek=10000 status=none
86 sudo ln "${mntdir}"/regular-16k "${mntdir}"/link-hard-regular-16k
/system/core/storaged/include/
Dstoraged_uid_monitor.h53 for (int k = 0; k < CHARGER_STATS; k++) { variable
54 bytes[i][j][k] += stats.bytes[i][j][k];
/system/media/audio_utils/benchmarks/
Dbiquad_filter_benchmark.cpp206 for (int k = 0; k < 2; k++) // 0 for normal random data, 1 for subnormal random data in BiquadFilterArgs() local
209 b->Args({k, i, j}); in BiquadFilterArgs()
/system/bt/stack/rfcomm/
Drfc_port_if.cc131 uint8_t k; in RFCOMM_ParameterNegotiationRequest() local
152 k = (p_port->credit_rx_max < RFCOMM_K_MAX) ? p_port->credit_rx_max in RFCOMM_ParameterNegotiationRequest()
154 p_port->credit_rx = k; in RFCOMM_ParameterNegotiationRequest()
157 k = 0; in RFCOMM_ParameterNegotiationRequest()
163 rfc_send_pn(p_mcb, dlci, true, mtu, cl, k); in RFCOMM_ParameterNegotiationRequest()
177 uint16_t mtu, uint8_t cl, uint8_t k) { in RFCOMM_ParameterNegotiationResponse() argument
181 rfc_send_pn(p_mcb, dlci, false, mtu, cl, k); in RFCOMM_ParameterNegotiationResponse()
/system/bpf/progs/include/
Dbpf_helpers.h77 const TypeOfKey* k) { \
78 return bpf_map_lookup_elem_unsafe(&the_map, k); \
82 const TypeOfKey* k, const TypeOfValue* v, unsigned long long flags) { \
83 return bpf_map_update_elem_unsafe(&the_map, k, v, flags); \
86 static inline __always_inline __unused int bpf_##the_map##_delete_elem(const TypeOfKey* k) { \
87 return bpf_map_delete_elem_unsafe(&the_map, k); \
/system/core/libsysutils/src/
DFrameworkListener.cpp176 for (int k = 0; k < argc; k++) { in dispatchCommand()
177 SLOGD("arg[%d] = '%s'", k, argv[k]); in dispatchCommand()
/system/bt/profile/avrcp/tests/
Davrcp_test_helper.h96 ACTION_TEMPLATE(InvokeCb, HAS_1_TEMPLATE_PARAMS(int, k), in ACTION_TEMPLATE() argument
98 ::testing::get<k>(args).Run(input); in ACTION_TEMPLATE()
101 ACTION_TEMPLATE(InvokeCb, HAS_1_TEMPLATE_PARAMS(int, k), in ACTION_TEMPLATE() argument
103 ::testing::get<k>(args).Run(a, b); in ACTION_TEMPLATE()
106 ACTION_TEMPLATE(InvokeCb, HAS_1_TEMPLATE_PARAMS(int, k), in ACTION_TEMPLATE() argument
108 ::testing::get<k>(args).Run(a, b, c); in ACTION_TEMPLATE()

12345