Home
last modified time | relevance | path

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

123

/system/extras/ksmutils/
Dlookup3.c69 #define rot(x,k) (((x)<<(k)) | ((x)>>(32-(k)))) argument
175 const uint32_t *k, /* the key, an array of uint32_t values */ in hashword() argument
187 a += k[0]; in hashword()
188 b += k[1]; in hashword()
189 c += k[2]; in hashword()
192 k += 3; in hashword()
198 case 3 : c+=k[2]; in hashword()
199 case 2 : b+=k[1]; in hashword()
200 case 1 : a+=k[0]; in hashword()
219 const uint32_t *k, /* the key, an array of uint32_t values */ in hashword2() argument
[all …]
Dksminfo.c191 size_t i, j, k; in read_pages() local
261 for (k = 0; k < kp->len; k++) { in read_pages()
262 if (kp->pages[k].hash == hash) break; in read_pages()
265 if (k == kp->len) { in read_pages()
275 memset(&tmp[k], 0, sizeof(tmp[k]) * GROWTH_FACTOR); in read_pages()
292 cur_page = &kp->pages[k]; in read_pages()
344 size_t i, j, k; in print_pages() local
371 for (k = 0; k < 8 && j < kp->pages[i].vaddr_len; k++, j++) { in print_pages()
/system/bt/stack/smp/
Daes.c372 static void copy_and_key( void *d, const void *s, const void *k ) in copy_and_key() argument
375 ((uint_32t*)d)[ 0] = ((uint_32t*)s)[ 0] ^ ((uint_32t*)k)[ 0]; in copy_and_key()
376 ((uint_32t*)d)[ 1] = ((uint_32t*)s)[ 1] ^ ((uint_32t*)k)[ 1]; in copy_and_key()
377 ((uint_32t*)d)[ 2] = ((uint_32t*)s)[ 2] ^ ((uint_32t*)k)[ 2]; in copy_and_key()
378 ((uint_32t*)d)[ 3] = ((uint_32t*)s)[ 3] ^ ((uint_32t*)k)[ 3]; in copy_and_key()
380 ((uint_8t*)d)[ 0] = ((uint_8t*)s)[ 0] ^ ((uint_8t*)k)[ 0]; in copy_and_key()
381 ((uint_8t*)d)[ 1] = ((uint_8t*)s)[ 1] ^ ((uint_8t*)k)[ 1]; in copy_and_key()
382 ((uint_8t*)d)[ 2] = ((uint_8t*)s)[ 2] ^ ((uint_8t*)k)[ 2]; in copy_and_key()
383 ((uint_8t*)d)[ 3] = ((uint_8t*)s)[ 3] ^ ((uint_8t*)k)[ 3]; in copy_and_key()
384 ((uint_8t*)d)[ 4] = ((uint_8t*)s)[ 4] ^ ((uint_8t*)k)[ 4]; in copy_and_key()
[all …]
Dp_256_ecc_pp.c160 static void ECC_NAF(uint8_t *naf, uint32_t *NumNAF, DWORD *k, uint32_t keyLength) in ECC_NAF() argument
167 while ((var = multiprecision_most_signbits(k, keyLength))>=1) in ECC_NAF()
169 if (k[0] & 0x01) // k is odd in ECC_NAF()
171 sign = (k[0] & 0x03); // 1 or 3 in ECC_NAF()
175 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()
184 k[j]++; in ECC_NAF()
185 } while (k[j++]==0); //overflow in ECC_NAF()
192 multiprecision_rshift(k, k, keyLength); in ECC_NAF()
/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 …]
Dbooleans.c7 static int list_booleans(hashtab_key_t k, in list_booleans() argument
11 const char *name = k; in list_booleans()
/system/bt/embdrv/sbc/encoder/srce/
Dsbc_dct.c161 UINT8 Index, k; in SBC_FastIDCT8()
167 for(k=0; k<16; k++) in SBC_FastIDCT8()
170 temp += (gas16AnalDCTcoeff8[(Index*8*2)+k] * (pInVect[k] >> 16)); in SBC_FastIDCT8()
171 temp += ((gas16AnalDCTcoeff8[(Index*8*2)+k] * (pInVect[k] & 0xFFFF)) >> 16); in SBC_FastIDCT8()
230 UINT8 Index, k; in SBC_FastIDCT4()
236 for(k=0; k<8; k++) in SBC_FastIDCT4()
239 temp += (gas16AnalDCTcoeff4[(Index*4*2)+k] * (pInVect[k] >> 16)); in SBC_FastIDCT4()
240 temp += ((gas16AnalDCTcoeff4[(Index*4*2)+k] * (pInVect[k] & 0xFFFF)) >> 16); in SBC_FastIDCT4()
/system/core/libutils/tests/
DBlobCache_test.cpp225 uint8_t k = i; in TEST_F() local
226 mBC->set(&k, 1, "x", 1); in TEST_F()
230 uint8_t k = i; in TEST_F() local
231 if (mBC->get(&k, 1, NULL, 0) == 1) { in TEST_F()
242 uint8_t k = i; in TEST_F() local
243 mBC->set(&k, 1, "x", 1); in TEST_F()
247 uint8_t k = maxEntries; in TEST_F() local
248 mBC->set(&k, 1, "x", 1); in TEST_F()
253 uint8_t k = i; in TEST_F() local
254 if (mBC->get(&k, 1, NULL, 0) == 1) { in TEST_F()
[all …]
DLruCache_test.cpp29 int k; member
31 explicit ComplexKey(int k) : k(k) { in ComplexKey()
35 ComplexKey(const ComplexKey& other) : k(other.k) { in ComplexKey()
44 return k == other.k; in operator ==()
48 return k != other.k; in operator !=()
91 return hash_type(value.k); in hash_type()
102 void operator()(SimpleKey& k, StringValue& v) { in operator ()() argument
104 lastKey = k; in operator ()()
114 void operator()(KeyWithPointer& k, StringValue&) { in operator ()() argument
115 delete k.ptr; in operator ()()
[all …]
/system/bt/btif/src/
Dbtif_config_transcode.cpp53 for (XMLElement *k = j->FirstChildElement(); k != NULL; k = k->NextSiblingElement()) { in btif_config_transcode() local
54 const char *key = k->Attribute("Tag"); in btif_config_transcode()
55 const char *value = k->GetText(); in btif_config_transcode()
/system/keymaster/
Docb.c796 unsigned i, k, tz, remaining; in process_ad() local
852 k = 0; in process_ad()
864 k = 4; in process_ad()
869 ta[k] = xor_block(ad_offset, adp[k]); in process_ad()
870 ad_offset = xor_block(ad_offset, getL(ctx, ntz(k + 2))); in process_ad()
871 ta[k + 1] = xor_block(ad_offset, adp[k + 1]); in process_ad()
873 k += 2; in process_ad()
877 ta[k] = xor_block(ad_offset, adp[k]); in process_ad()
879 ++k; in process_ad()
884 memcpy(tmp.u8, adp + k, remaining); in process_ad()
[all …]
/system/update_engine/sample_images/
Dgenerate_images.sh49 sudo dd of="${mntdir}"/regular-16k status=none
50 sudo dd if=/dev/zero of="${mntdir}"/regular-32k-zeros bs=1024 count=16 \
57 sudo truncate --size=10240 "${mntdir}"/sparse_empty-10k
62 sudo dd of="${mntdir}"/sparse-16k-last_block bs=1 \
72 sudo truncate --size=16384 "${mntdir}"/sparse-16k-first_block
73 echo "first block" | sudo dd of="${mntdir}"/sparse-16k-first_block status=none
75 sudo truncate --size=16384 "${mntdir}"/sparse-16k-holes
76 echo "a" | sudo dd of="${mntdir}"/sparse-16k-holes bs=1 seek=100 status=none
77 echo "b" | sudo dd of="${mntdir}"/sparse-16k-holes bs=1 seek=10000 status=none
83 sudo ln "${mntdir}"/regular-16k "${mntdir}"/link-hard-regular-16k
/system/extras/tests/pagingtest/
Dthrashing_test.c17 long long k; in thrashing_test() local
55 for (k = ((filesize - 1) & ~(pagesize - 1)); k >= 0; k -= pagesize) { in thrashing_test()
56 bufs[j][k]; in thrashing_test()
/system/bt/stack/rfcomm/
Drfc_port_if.c144 UINT8 k; in RFCOMM_ParNegReq() local
168 k = (p_port->credit_rx_max < RFCOMM_K_MAX) ? p_port->credit_rx_max : RFCOMM_K_MAX; in RFCOMM_ParNegReq()
169 p_port->credit_rx = k; in RFCOMM_ParNegReq()
174 k = 0; in RFCOMM_ParNegReq()
180 rfc_send_pn (p_mcb, dlci, TRUE, mtu, cl, k); in RFCOMM_ParNegReq()
194 void RFCOMM_ParNegRsp (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT8 cl, UINT8 k) in RFCOMM_ParNegRsp() argument
200 rfc_send_pn (p_mcb, dlci, FALSE, mtu, cl, k); in RFCOMM_ParNegRsp()
/system/core/libsysutils/src/
DFrameworkListener.cpp179 for (int k = 0; k < argc; k++) { in dispatchCommand()
180 SLOGD("arg[%d] = '%s'", k, argv[k]); in dispatchCommand()
/system/bt/bta/sys/
Dutl.c124 UINT16 j, k; in utl_itoa() local
137 k = i / j; in utl_itoa()
139 if (k > 0 || fill) in utl_itoa()
141 *p++ = k + '0'; in utl_itoa()
/system/core/liblog/tests/
Dliblog_test.cpp1288 for(size_t k = 10; k; --k) { in TEST() local
1297 for(size_t k = 10; k; --k) { in TEST() local
1329 for(size_t k = 10; k; --k) { in TEST() local
1338 for(size_t k = 10; k; --k) { in TEST() local
1358 for(size_t k = 10; k; --k) { in TEST() local
1367 for(size_t k = 10; k; --k) { in TEST() local
1389 for(size_t k = 10; k; --k) { in TEST() local
1398 for(size_t k = 10; k; --k) { in TEST() local
1418 for(size_t k = 10; k; --k) { in TEST() local
1427 for(size_t k = 10; k; --k) { in TEST() local
[all …]
/system/extras/verity/
DKeystoreSigner.java65 java.security.interfaces.RSAPublicKey k = in BootKey() local
68 k.getModulus(), in BootKey()
69 k.getPublicExponent()); in BootKey()
101 BootKey k = new BootKey(pubkey); in addPublicKey() local
102 keyBag.add(k); in addPublicKey()
/system/sepolicy/tools/
Dcheck_seapp.c604 static void free_kvp(kvp *k) { in free_kvp() argument
605 free(k->key); in free_kvp()
606 free(k->value); in free_kvp()
686 kvp *k = NULL; in rule_map_new() local
707 k = &(keys[i]); in rule_map_new()
714 if (strcasecmp(k->key, x->name)) { in rule_map_new()
716 log_error("No match for key: %s\n", k->key); in rule_map_new()
723 log_error("Duplicated key: %s\n", k->key); in rule_map_new()
731 r->data = strdup(k->value); in rule_map_new()
748 int key_len = strlen(k->key); in rule_map_new()
[all …]
/system/core/toolbox/
Dgetevent.c99 int i, j, k; in print_possible_events() local
174 for(k = 0; k < 8; k++) in print_possible_events()
175 if(bits[j] & 1 << k) { in print_possible_events()
177 if(j < res2 && (bits[j + bits_size] & 1 << k)) in print_possible_events()
186 bit_label = get_label(bit_labels, j * 8 + k); in print_possible_events()
190 printf(" %04x%c ", j * 8 + k, down); in print_possible_events()
192 printf(" %04x%c", j * 8 + k, down); in print_possible_events()
196 if(ioctl(fd, EVIOCGABS(j * 8 + k), &abs) == 0) { in print_possible_events()
/system/tpm/trunks/ftdi/
Dsupport.c98 int i = 0, j = 0, k = 0, dsize = 0, num_blocks = 0, total_size = 0, in build_block_buffer() local
129 dsize = size - k; in build_block_buffer()
161 memcpy(buf + i, data + k, dsize); in build_block_buffer()
166 k += dsize; in build_block_buffer()
/system/extras/micro_bench/
Dmicro_bench.cpp255 size_t j, k; \
258 for (k = 0; k < num_incrs; k++) { \
328 buf = buffer + k * incr; \
373 buf1 = buffer1 + k * buf1_incr; \
374 buf2 = buffer2 + k * buf2_incr; \
455 size_t k; in benchmarkMemread() local
457 for (k = 0; k < size/sizeof(uint32_t); k++) foo = src[k]); in benchmarkMemread()
/system/connectivity/shill/
Dlogging.h46 ::shill::ScopeLogger::k##scope, verbose_level)
60 ::shill::ScopeLogger::k##scope, verbose_level)) \
/system/media/camera/docs/
Dmetadata_model.py498 leaf_it = ((k, g) for k, g in group_entry_by_kind)
730 k = existing[0]
732 k = Kind(el.name, el.parent)
733 acc.append(k)
735 k._namespaces.extend(el._namespaces)
736 k._entries.extend(el._entries)
742 for k in new_kinds_lst:
743 yield k
770 for k in self._get_children():
771 combined._namespaces.extend(k.namespaces)
[all …]

123