HomeSort by relevance Sort by last modified time
    Searched refs:tp (Results 26 - 50 of 388) sorted by null

12 3 4 5 6 7 8 91011>>

  /cts/tests/tests/text/src/android/text/style/cts/
SubscriptSpanTest.java 41 // the expected result is: tp.baselineShift -= (int) (tp.ascent() / 2)
44 TextPaint tp = new TextPaint(); local
45 float ascent = tp.ascent();
47 tp.baselineShift = baselineShift;
49 subscriptSpan.updateMeasureState(tp);
50 assertEquals(baselineShift - (int) (ascent / 2), tp.baselineShift);
61 // the expected result is: tp.baselineShift -= (int) (tp.ascent() / 2)
64 TextPaint tp = new TextPaint() local
    [all...]
SuperscriptSpanTest.java 41 // the expected result is: tp.baselineShift += (int) (tp.ascent() / 2)
44 TextPaint tp = new TextPaint(); local
45 float ascent = tp.ascent();
47 tp.baselineShift = baselineShift;
49 superscriptSpan.updateMeasureState(tp);
50 assertEquals(baselineShift + (int) (ascent / 2), tp.baselineShift);
61 // the expected result is: tp.baselineShift += (int) (tp.ascent() / 2)
64 TextPaint tp = new TextPaint() local
    [all...]
ScaleXSpanTest.java 46 TextPaint tp = new TextPaint(); local
47 tp.setTextScaleX(2.0f);
48 scaleXSpan.updateDrawState(tp);
49 assertEquals(2.0f * proportion, tp.getTextScaleX());
51 tp.setTextScaleX(-3.0f);
52 scaleXSpan.updateDrawState(tp);
53 assertEquals(-3.0f * proportion, tp.getTextScaleX());
67 TextPaint tp = new TextPaint(); local
68 tp.setTextScaleX(2.0f);
69 scaleXSpan.updateMeasureState(tp);
    [all...]
StyleSpanTest.java 54 TextPaint tp = new TextPaint(); local
56 tp.setTypeface(tf);
58 assertNotNull(tp.getTypeface());
59 assertEquals(Typeface.NORMAL, tp.getTypeface().getStyle());
61 styleSpan.updateMeasureState(tp);
63 assertNotNull(tp.getTypeface());
64 assertEquals(Typeface.BOLD, tp.getTypeface().getStyle());
77 TextPaint tp = new TextPaint(); local
79 tp.setTypeface(tf);
81 assertNotNull(tp.getTypeface())
    [all...]
UnderlineSpanTest.java 41 TextPaint tp = new TextPaint(); local
42 tp.setUnderlineText(false);
43 assertFalse(tp.isUnderlineText());
45 underlineSpan.updateDrawState(tp);
46 assertTrue(tp.isUnderlineText());
AbsoluteSizeSpanTest.java 53 TextPaint tp = new TextPaint(); local
54 absoluteSizeSpan.updateMeasureState(tp);
55 assertEquals(1.0f, tp.getTextSize());
58 absoluteSizeSpan.updateMeasureState(tp);
59 assertEquals(10.0f, tp.getTextSize());
73 TextPaint tp = new TextPaint(); local
74 absoluteSizeSpan.updateDrawState(tp);
75 assertEquals(2.0f, tp.getTextSize());
79 absoluteSizeSpan.updateDrawState(tp);
80 assertEquals(20.0f, tp.getTextSize())
    [all...]
TypefaceSpanTest.java 51 TextPaint tp = new TextPaint(); local
52 assertNull(tp.getTypeface());
54 typefaceSpan.updateMeasureState(tp);
56 assertNotNull(tp.getTypeface());
58 assertEquals(Typeface.NORMAL, tp.getTypeface().getStyle());
71 TextPaint tp = new TextPaint(); local
72 assertNull(tp.getTypeface());
74 typefaceSpan.updateDrawState(tp);
76 assertNotNull(tp.getTypeface());
78 assertEquals(Typeface.NORMAL, tp.getTypeface().getStyle())
    [all...]
  /bionic/libc/upstream-netbsd/libc/string/
memccpy.c 52 unsigned char *tp = t; local
56 if ((*tp++ = *fp++) == uc)
57 return (tp);
  /external/tcpdump/
print-tftp.c 77 register const struct tftphdr *tp; local
83 tp = (const struct tftphdr *)bp;
89 TCHECK(tp->th_opcode);
90 opcode = EXTRACT_16BITS(&tp->th_opcode);
107 p = (u_char *)tp->th_stuff;
109 p = (u_char *)&tp->th_block;
121 if (length <= (u_int)(p - (const u_char *)&tp->th_block))
136 TCHECK(tp->th_block);
137 printf(" block %d", EXTRACT_16BITS(&tp->th_block));
142 TCHECK(tp->th_code)
    [all...]
print-atalk.c 384 register const struct atNBPtuple *tp = local
402 if ((const u_char *)tp > ep) {
412 if ((const u_char *)(tp + 1) > ep) {
416 (void)nbp_name_print(tp, ep);
424 if (tp->enumerator)
425 (void)printf(" [enum=%d]", tp->enumerator);
426 if (EXTRACT_16BITS(&tp->net) != snet ||
427 tp->node != snode || tp->skt != skt)
429 ataddr_string(EXTRACT_16BITS(&tp->net)
541 register struct hnamemem *tp, *tp2; local
    [all...]
  /cts/tools/dasm/src/java_cup/
symbol.java 23 * @param tp a string with the type name.
25 public symbol(String nm, String tp)
31 if (tp == null) tp = "java_cup.runtime.token";
34 _stack_type = tp;
  /frameworks/base/core/java/android/text/style/
MetricAffectingSpan.java 64 public void updateDrawState(TextPaint tp) {
65 mStyle.updateDrawState(tp);
72 public void updateMeasureState(TextPaint tp) {
73 mStyle.updateMeasureState(tp);
CharacterStyle.java 27 public abstract void updateDrawState(TextPaint tp);
74 public void updateDrawState(TextPaint tp) {
75 mStyle.updateDrawState(tp);
  /external/qemu/slirp/
tftp.c 53 static int tftp_session_allocate(struct tftp_t *tp)
73 memcpy(&spt->client_ip, &tp->ip.ip_src, sizeof(spt->client_ip));
74 spt->client_port = tp->udp.uh_sport;
81 static int tftp_session_find(struct tftp_t *tp)
90 if (!memcmp(&spt->client_ip, &tp->ip.ip_src, sizeof(spt->client_ip))) {
91 if (spt->client_port == tp->udp.uh_sport) {
137 struct tftp_t *tp; local
148 tp = (void *)m->m_data;
151 tp->tp_op = htons(TFTP_OACK);
152 n += snprintf((char *)tp->x.tp_buf + n, sizeof(tp->x.tp_buf) - n, "%s"
178 struct tftp_t *tp; local
221 struct tftp_t *tp; local
414 struct tftp_t *tp = (struct tftp_t *)m->m_data; local
    [all...]
tcp.h 159 #define tcp_rcvseqinit(tp) \
160 (tp)->rcv_adv = (tp)->rcv_nxt = (tp)->irs + 1
162 #define tcp_sendseqinit(tp) \
163 (tp)->snd_una = (tp)->snd_nxt = (tp)->snd_max = (tp)->snd_up = (tp)->is
    [all...]
  /external/qemu/slirp-android/
tftp.c 53 static int tftp_session_allocate(struct tftp_t *tp)
73 spt->client_ip = ip_geth(tp->ip.ip_src);
74 spt->client_port = port_geth(tp->udp.uh_sport);
81 static int tftp_session_find(struct tftp_t *tp)
90 if (spt->client_ip == ip_geth(tp->ip.ip_src)) {
91 if (spt->client_port == port_geth(tp->udp.uh_sport)) {
137 struct tftp_t *tp; local
148 tp = (void *)m->m_data;
151 tp->tp_op = htons(TFTP_OACK);
152 n += snprintf((char *)tp->x.tp_buf + n, sizeof(tp->x.tp_buf) - n, "%s"
180 struct tftp_t *tp; local
225 struct tftp_t *tp; local
420 struct tftp_t *tp = (struct tftp_t *)m->m_data; local
    [all...]
tcp.h 161 #define tcp_rcvseqinit(tp) \
162 (tp)->rcv_adv = (tp)->rcv_nxt = (tp)->irs + 1
164 #define tcp_sendseqinit(tp) \
165 (tp)->snd_una = (tp)->snd_nxt = (tp)->snd_max = (tp)->snd_up = (tp)->is
    [all...]
  /cts/tests/tests/holo/src/android/holo/cts/modifiers/
DatePickerModifier.java 30 DatePicker tp = (DatePicker) view; local
31 tp.updateDate(2011, 4, 20);
  /external/openssh/openbsd-compat/
inet_ntop.c 118 char *tp, *ep; local
158 tp = tmp;
160 for (i = 0; i < (IN6ADDRSZ / INT16SZ) && tp < ep; i++) {
165 if (tp + 1 >= ep)
167 *tp++ = ':';
173 if (tp + 1 >= ep)
175 *tp++ = ':';
180 if (!inet_ntop4(src+12, tp, (size_t)(ep - tp)))
182 tp += strlen(tp)
    [all...]
  /external/mksh/src/
exec.c 63 struct tbl *tp = NULL; local
150 tp = findcom(ap[0], FC_BI|FC_FUNC);
166 if (iosetup(*iowp, tp) < 0) {
172 if (tp && tp->type == CSHELL &&
173 (tp->flag & SPEC_BI))
182 rv = comexec(t, tp, (const char **)ap, flags, xerrok);
498 comexec(struct op *t, struct tbl * volatile tp, const char **ap,
541 while (tp && tp->type == CSHELL)
940 struct tbl *tp; local
954 struct tbl *tp = NULL; local
979 struct tbl *tp; local
1035 struct tbl *tp; local
1070 struct tbl *tp = NULL, *tbi; local
1166 struct tbl *tp; local
    [all...]
  /external/grub/netboot/
fsys_tftp.c 42 static struct tftp_t tp, saved_tp; variable in typeref:struct:tftp_t
80 ++iport, TFTP_PORT, len, &tp))
95 TFTP_MIN_PACKET, &tp);
162 tp.opcode = htons (TFTP_ERROR);
163 tp.u.err.errcode = 8;
164 len = (grub_sprintf ((char *) tp.u.err.errmsg,
166 + sizeof (tp.ip) + sizeof (tp.udp)
167 + sizeof (tp.opcode) + sizeof (tp.u.err.errcode
    [all...]
  /bionic/libc/upstream-netbsd/libc/inet/
inet_ntop.c 134 char *tp, *ep; local
179 tp = tmp;
186 *tp++ = ':';
191 if (tp + 1 >= ep)
193 *tp++ = ':';
200 if (!inet_ntop4(src+12, tp, (socklen_t)(ep - tp)))
202 tp += strlen(tp);
205 advance = snprintf(tp, (size_t)(ep - tp), "%x", words[i])
    [all...]
inet_pton.c 227 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; local
235 memset((tp = tmp), '\0', NS_IN6ADDRSZ);
236 endp = tp + NS_IN6ADDRSZ;
262 colonp = tp;
266 if (tp + NS_INT16SZ > endp)
268 *tp++ = (u_char) (val >> 8) & 0xff;
269 *tp++ = (u_char) val & 0xff;
274 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) &&
275 inet_pton4(curtok, tp, 1) > 0) {
276 tp += NS_INADDRSZ
    [all...]
  /external/openssl/crypto/bn/asm/
sparcv9-mont.pl 71 $tp="%l4";
114 add %sp,$bias+$frame,$tp
140 st $car1,[$tp]
145 add $tp,4,$tp ! tp++
155 st $car1,[$tp]
163 st $car1,[$tp+4]
167 st $car1,[$tp+8]
174 add %sp,$bias+$frame,$tp
    [all...]
armv4-mont.pl 29 $num="r0"; # starts as num argument, but holds &tp[num-1]
33 $tp="r4";
46 #### argument block layout relative to &tp[num-1], a.k.a. $num
75 add $tp,$bp,$num @ &bp[num-1]
77 add $num,sp,$num @ $num to point at &tp[num-1]
83 str $tp,[$_bpend] @ save &bp[num]
87 mul $n0,$alo,$n0 @ "tp[0]"*n0
90 mov $tp,sp
101 str $nlo,[$tp],#4 @ tp[j-1]=,tp+
    [all...]

Completed in 264 milliseconds

12 3 4 5 6 7 8 91011>>