Home
last modified time | relevance | path

Searched refs:u (Results 1 – 25 of 32) sorted by relevance

12

/system/core/libmincrypt/
Dp256_ecdsa.c35 p256_int u, v; in p256_ecdsa_verify() local
41 p256_mod(&SECP256r1_n, r, &u); in p256_ecdsa_verify()
43 if (p256_is_zero(&u) || p256_is_zero(&v)) return 0; in p256_ecdsa_verify()
46 p256_modmul(&SECP256r1_n, message, 0, &v, &u); // message / s % n in p256_ecdsa_verify()
49 p256_points_mul_vartime(&u, &v, in p256_ecdsa_verify()
51 &u, &v); in p256_ecdsa_verify()
53 p256_mod(&SECP256r1_n, &u, &u); // (x coord % p) % n in p256_ecdsa_verify()
54 return p256_cmp(r, &u) == 0; in p256_ecdsa_verify()
/system/core/logd/
DLogCommand.cpp97 uid_t u[4] = { (uid_t) -1, (uid_t) -1, (uid_t) -1, (uid_t) -1}; in clientHasLogCredentials() local
100 &u[0], &u[1], &u[2], &u[3]); in clientHasLogCredentials()
103 if ((uid != u[0]) || (uid != u[1]) || (uid != u[2]) || (uid != u[3])) { in clientHasLogCredentials()
DLogStatistics.cpp281 uid_t u = entry->getKey(); in format() local
282 if ((uid != AID_ROOT) && (u != uid)) { in format()
317 name.appendFormat("%u", u); in format()
318 char *n = uidToName(u); in format()
344 uid_t u = entry->getUid(); in format() local
345 if ((uid != AID_ROOT) && (u != uid)) { in format()
370 name.appendFormat("%5u/%u", entry->getKey(), u); in format()
375 char *un = uidToName(u); in format()
403 uid_t u = entry->getUid(); in format() local
404 if ((uid != AID_ROOT) && (u != uid)) { in format()
[all …]
DLogStatistics.h204 uid_t u = e->getUid(); in add() local
205 if (getUid() != u) { in add()
206 uid = u; in add()
256 uid_t u = e->getUid(); in add() local
257 if (getUid() != u) { in add()
258 uid = u; in add()
282 uid_t u = e->getUid(); in add() local
283 if (uid != u) { in add()
Dmain.cpp230 char *android::uidToName(uid_t u) { in uidToName() argument
231 if (!u || !reinit_running) { in uidToName()
238 uid = u; in uidToName()
/system/core/libpixelflinger/codeflinger/
Dtexturing.cpp467 int u = scratches.obtain(); in build_textures() local
505 wrapping(u, s.reg, width, tmu.swrap, FRAC_BITS); in build_textures()
519 SUB(AL, 0, u, u, imm(1<<(FRAC_BITS-1))); in build_textures()
523 AND(AL, 0, U, u, imm((1<<FRAC_BITS)-1)); in build_textures()
534 MOV(AL, 1, u, reg_imm(u, ASR, FRAC_BITS)); in build_textures()
535 MOV(MI, 0, u, width); in build_textures()
536 CMP(AL, u, width); in build_textures()
555 CMP(AL, width, reg_imm(u, ASR, FRAC_BITS)); in build_textures()
556 MOV(LE, 0, u, reg_imm(width, LSL, FRAC_BITS)); in build_textures()
559 MOV(AL, 1, u, reg_imm(u, ASR, FRAC_BITS)); in build_textures()
[all …]
/system/bt/btif/co/
Dbta_hh_co.c105 if (ret < (ssize_t)(sizeof(ev.type) + sizeof(ev.u.output))) { in uhid_event()
108 sizeof(ev.type) + sizeof(ev.u.output)); in uhid_event()
113 ,ev.u.output.rtype, ev.u.output.size); in uhid_event()
115 if(ev.u.output.rtype == UHID_FEATURE_REPORT) in uhid_event()
117 ev.u.output.size, ev.u.output.data); in uhid_event()
118 else if(ev.u.output.rtype == UHID_OUTPUT_REPORT) in uhid_event()
120 ev.u.output.size, ev.u.output.data); in uhid_event()
123 ev.u.output.size, ev.u.output.data); in uhid_event()
231 ev.u.input.size = len; in bta_hh_co_write()
232 if(len > sizeof(ev.u.input.data)){ in bta_hh_co_write()
[all …]
/system/bt/stack/rfcomm/
Drfc_port_fsm.c545 PORT_ParNegInd (p_mcb, dlci, p_frame->u.pn.mtu, in rfc_process_pn()
546 p_frame->u.pn.conv_layer, p_frame->u.pn.k); in rfc_process_pn()
565 PORT_ParNegCnf (p_mcb, dlci, p_frame->u.pn.mtu, in rfc_process_pn()
566 p_frame->u.pn.conv_layer, p_frame->u.pn.k); in rfc_process_pn()
593 PORT_PortNegInd(p_mcb, p_frame->dlci, &port_pars, p_frame->u.rpn.param_mask); in rfc_process_rpn()
612 PORT_PortNegInd (p_mcb, p_frame->dlci, &port_pars, p_frame->u.rpn.param_mask); in rfc_process_rpn()
635 p_frame->u.rpn.param_mask = RFCOMM_RPN_PM_MASK; in rfc_process_rpn()
653 if (((p_frame->u.rpn.param_mask & (RFCOMM_RPN_PM_RTR_ON_INPUT | RFCOMM_RPN_PM_RTR_ON_OUTPUT)) == in rfc_process_rpn()
655 || ((p_frame->u.rpn.param_mask & (RFCOMM_RPN_PM_RTC_ON_INPUT | RFCOMM_RPN_PM_RTC_ON_OUTPUT)) == in rfc_process_rpn()
699 UINT8 modem_signals = p_frame->u.msc.signals; in rfc_process_msc()
[all …]
Drfc_ts_frames.c258 *p_data++ = rfc_cb.rfc.rx_frame.u.pn.priority; in rfc_send_pn()
749 p_rx_frame->u.pn.frame_type = *p_data & RFCOMM_PN_FRAME_TYPE_MASK; in rfc_process_mx_message()
750 p_rx_frame->u.pn.conv_layer = *p_data++ & RFCOMM_PN_CONV_LAYER_MASK; in rfc_process_mx_message()
751 p_rx_frame->u.pn.priority = *p_data++ & RFCOMM_PN_PRIORITY_MASK; in rfc_process_mx_message()
752 p_rx_frame->u.pn.t1 = *p_data++; in rfc_process_mx_message()
753 p_rx_frame->u.pn.mtu = *p_data + (*(p_data + 1) << 8); in rfc_process_mx_message()
755 p_rx_frame->u.pn.n2 = *p_data++; in rfc_process_mx_message()
756 p_rx_frame->u.pn.k = *p_data++ & RFCOMM_PN_K_MASK; in rfc_process_mx_message()
760 || (p_rx_frame->u.pn.mtu < RFCOMM_MIN_MTU) in rfc_process_mx_message()
761 || (p_rx_frame->u.pn.mtu > RFCOMM_MAX_MTU)) in rfc_process_mx_message()
[all …]
/system/media/audio_utils/include/audio_utils/
Dprimitives.h535 } u; in clamp16_from_float() local
537 u.f = f + offset; /* recenter valid range */ in clamp16_from_float()
541 if (u.i < limneg) in clamp16_from_float()
542 u.i = -32768; in clamp16_from_float()
543 else if (u.i > limpos) in clamp16_from_float()
544 u.i = 32767; in clamp16_from_float()
545 return u.i; /* Return lower 16 bits, the part of interest in the significand. */ in clamp16_from_float()
574 } u; in clamp8_from_float() local
576 u.f = f + offset; /* recenter valid range */ in clamp8_from_float()
580 if (u.i < limneg) in clamp8_from_float()
[all …]
/system/core/libpixelflinger/
Dscanline.cpp465 static void rescale(uint32_t& u, uint8_t& su, uint32_t& v, uint8_t& sv);
476 void rescale(uint32_t& u, uint8_t& su, uint32_t& v, uint8_t& sv) in rescale() argument
483 u = ggl_expand(u, su, sv); in rescale()
719 int32_t u, v; in scanline() local
724 u = wrapping(tc[i].s, w, tx.s_wrap); in scanline()
727 u = (((tx.shade.is0>>16) + x)<<16) + FIXED_HALF; in scanline()
743 u >>= 16; in scanline()
745 tx.surface.read(&tx.surface, c, u, v, &texel); in scanline()
749 u -= FIXED_HALF; in scanline()
751 int u0 = u >> 16; in scanline()
[all …]
Dpixelflinger.cpp452 texture_t& u = c->state.texture[tmu]; in ggl_texCoordGradScale8xv() local
453 u.shade.is0 = grad[0]; in ggl_texCoordGradScale8xv()
454 u.shade.idsdx = grad[1]; in ggl_texCoordGradScale8xv()
455 u.shade.idsdy = grad[2]; in ggl_texCoordGradScale8xv()
456 u.shade.it0 = grad[3]; in ggl_texCoordGradScale8xv()
457 u.shade.idtdx = grad[4]; in ggl_texCoordGradScale8xv()
458 u.shade.idtdy = grad[5]; in ggl_texCoordGradScale8xv()
459 u.shade.sscale= grad[6]; in ggl_texCoordGradScale8xv()
460 u.shade.tscale= grad[7]; in ggl_texCoordGradScale8xv()
Dbuffer.cpp190 uint32_t u = pixel->c[i]; in write_pixel() local
193 u = expand(u, pixelSize, h-l); in write_pixel()
196 v = downshift_component(v, u, pixelSize, 0, h, l, 0, 0, dither); in write_pixel()
/system/bt/bta/sdp/
Dbta_sdp_act.c66 static inline tBT_UUID shorten_sdp_uuid(const tBT_UUID* u) in shorten_sdp_uuid() argument
71 APPL_TRACE_DEBUG("%s() - uuid len:%d", __func__, u->len); in shorten_sdp_uuid()
72 if(u->len != 16) in shorten_sdp_uuid()
73 return *u; in shorten_sdp_uuid()
75 if(memcmp(&u->uu.uuid128[4], &bt_base_uuid[4], 12) != 0) in shorten_sdp_uuid()
76 return *u; in shorten_sdp_uuid()
80 if(u->uu.uuid128[0] == 0 && u->uu.uuid128[1] == 0) in shorten_sdp_uuid()
84 memcpy(&u16, &u->uu.uuid128[2], sizeof(u16)); in shorten_sdp_uuid()
89 memcpy(&u32, &u->uu.uuid128[0], sizeof(u32)); in shorten_sdp_uuid()
/system/bt/stack/smp/
Dp_256_multprecision.c636 void multiprecision_inv_mod(DWORD *aminus, DWORD *u, uint32_t keyLength) in multiprecision_inv_mod() argument
657 while (!multiprecision_iszero(u, keyLength)) in multiprecision_inv_mod()
659 while (!(u[0] & 0x01)) // u is even in multiprecision_inv_mod()
661 multiprecision_rshift(u, u, keyLength); in multiprecision_inv_mod()
687 if (multiprecision_compare(u, v, keyLength) >= 0) in multiprecision_inv_mod()
689 multiprecision_sub(u, u, v, keyLength); in multiprecision_inv_mod()
694 multiprecision_sub(v, v, u, keyLength); in multiprecision_inv_mod()
Dsmp_keys.c1261 void smp_calculate_f4(UINT8 *u, UINT8 *v, UINT8 *x, UINT8 z, UINT8 *c) in smp_calculate_f4() argument
1275 p_prnt = u; in smp_calculate_f4()
1288 ARRAY_TO_STREAM(p, u, BT_OCTET32_LEN); in smp_calculate_f4()
1376 UINT32 smp_calculate_g2(UINT8 *u, UINT8 *v, UINT8 *x, UINT8 *y) in smp_calculate_g2() argument
1394 ARRAY_TO_STREAM(p, u, BT_OCTET32_LEN); in smp_calculate_g2()
1396 p_prnt = u; in smp_calculate_g2()
/system/security/keystore/
Dtest-keystore145 keystore app_0 u
208 keystore system u foo
211 keystore system u bar
/system/extras/ksmutils/
Dlookup3.c286 union { const void *ptr; size_t i; } u; /* needed for Mac Powerbook G4 */ in hashlittle() local
291 u.ptr = key; in hashlittle()
292 if (HASH_LITTLE_ENDIAN && ((u.i & 0x3) == 0)) { in hashlittle()
358 } else if (HASH_LITTLE_ENDIAN && ((u.i & 0x1) == 0)) { in hashlittle()
470 union { const void *ptr; size_t i; } u; /* needed for Mac Powerbook G4 */ in hashlittle2() local
476 u.ptr = key; in hashlittle2()
477 if (HASH_LITTLE_ENDIAN && ((u.i & 0x3) == 0)) { in hashlittle2()
543 } else if (HASH_LITTLE_ENDIAN && ((u.i & 0x1) == 0)) { in hashlittle2()
648 union { const void *ptr; size_t i; } u; /* to cast key to (size_t) happily */ in hashbig() local
653 u.ptr = key; in hashbig()
[all …]
/system/core/adb/
Dfile_sync_service.cpp249 struct utimbuf u; in handle_send_file() local
252 u.actime = timestamp; in handle_send_file()
253 u.modtime = timestamp; in handle_send_file()
254 utime(path, &u); in handle_send_file()
/system/bt/embdrv/sbc/decoder/srce/
Dsynthesis-dct8.c63 INLINE OI_INT32 default_mul_32s_32s_hi(OI_INT32 u, OI_INT32 v) in default_mul_32s_32s_hi() argument
68 u0 = u & 0xFFFF; u1 = u >> 16; in default_mul_32s_32s_hi()
Dsynthesis-sbc.c216 INLINE OI_INT32 default_mul_16s_32s_hi(OI_INT16 u, OI_INT32 v) in default_mul_16s_32s_hi() argument
226 w = v1 * u; in default_mul_16s_32s_hi()
227 x = u * v0; in default_mul_16s_32s_hi()
/system/media/audio_utils/
Dtinysndfile.c289 static void write4u(unsigned char *ptr, unsigned u) in write4u() argument
291 ptr[0] = u; in write4u()
292 ptr[1] = u >> 8; in write4u()
293 ptr[2] = u >> 16; in write4u()
294 ptr[3] = u >> 24; in write4u()
/system/core/libpixelflinger/include/private/pixelflinger/
Dggl_fixed.h449 }u; in gglMulii() local
453 : "=r"(u.s.lo), "=&r"(u.s.hi) in gglMulii()
457 return u.res; in gglMulii()
/system/core/rootdir/
Dinit.rc520 seclabel u:r:ueventd:s0
536 seclabel u:r:healthd:s0
545 seclabel u:r:shell:s0
551 service adbd /sbin/adbd --root_seclabel=u:r:su:s0
555 seclabel u:r:adbd:s0
578 --blkid_context=u:r:blkid:s0 --blkid_untrusted_context=u:r:blkid_untrusted:s0 \
579 --fsck_context=u:r:fsck:s0 --fsck_untrusted_context=u:r:fsck_untrusted:s0
/system/bt/bta/jv/
Dbta_jv_act.c827 static inline tBT_UUID shorten_sdp_uuid(const tBT_UUID* u) in shorten_sdp_uuid() argument
832 logu("in, uuid:", u->uu.uuid128); in shorten_sdp_uuid()
833 APPL_TRACE_DEBUG("uuid len:%d", u->len); in shorten_sdp_uuid()
834 if(u->len == 16) in shorten_sdp_uuid()
836 if(memcmp(&u->uu.uuid128[4], &bt_base_uuid[4], 12) == 0) in shorten_sdp_uuid()
840 if(u->uu.uuid128[0] == 0 && u->uu.uuid128[1] == 0) in shorten_sdp_uuid()
844 memcpy(&u16, &u->uu.uuid128[2], sizeof(u16)); in shorten_sdp_uuid()
852 memcpy(&u32, &u->uu.uuid128[0], sizeof(u32)); in shorten_sdp_uuid()
860 return *u; in shorten_sdp_uuid()

12