HomeSort by relevance Sort by last modified time
    Searched defs:tp (Results 1 - 25 of 91) sorted by null

1 2 3 4

  /cts/tests/tests/text/src/android/text/style/cts/
ClickableSpanTest.java 44 TextPaint tp = new TextPaint(); local
45 tp.linkColor = Color.RED;
46 tp.setUnderlineText(false);
47 assertFalse(tp.isUnderlineText());
49 clickableSpan.updateDrawState(tp);
50 assertEquals(Color.RED, tp.getColor());
51 assertTrue(tp.isUnderlineText());
53 tp.linkColor = Color.BLUE;
54 clickableSpan.updateDrawState(tp);
55 assertEquals(Color.BLUE, tp.getColor())
    [all...]
MaskFilterSpanTest.java 56 TextPaint tp = new TextPaint(); local
57 assertNull(tp.getMaskFilter());
59 maskFilterSpan.updateDrawState(tp);
60 assertSame(mf, tp.getMaskFilter());
RasterizerSpanTest.java 74 TextPaint tp = new TextPaint(); local
75 assertNull(tp.getRasterizer());
77 rasterizerSpan.updateDrawState(tp);
78 assertSame(rasterizer, tp.getRasterizer());
StrikethroughSpanTest.java 63 TextPaint tp = new TextPaint(); local
64 tp.setStrikeThruText(false);
65 assertFalse(tp.isStrikeThruText());
67 strikethroughSpan.updateDrawState(tp);
68 assertTrue(tp.isStrikeThruText());
UnderlineSpanTest.java 67 TextPaint tp = new TextPaint(); local
68 tp.setUnderlineText(false);
69 assertFalse(tp.isUnderlineText());
71 underlineSpan.updateDrawState(tp);
72 assertTrue(tp.isUnderlineText());
StyleSpanTest.java 79 TextPaint tp = new TextPaint(); local
81 tp.setTypeface(tf);
83 assertNotNull(tp.getTypeface());
84 assertEquals(Typeface.NORMAL, tp.getTypeface().getStyle());
86 styleSpan.updateMeasureState(tp);
88 assertNotNull(tp.getTypeface());
89 assertEquals(Typeface.BOLD, tp.getTypeface().getStyle());
108 TextPaint tp = new TextPaint(); local
110 tp.setTypeface(tf);
112 assertNotNull(tp.getTypeface())
    [all...]
TypefaceSpanTest.java 83 TextPaint tp = new TextPaint(); local
84 assertNull(tp.getTypeface());
86 typefaceSpan.updateMeasureState(tp);
88 assertNotNull(tp.getTypeface());
90 assertEquals(Typeface.NORMAL, tp.getTypeface().getStyle());
111 TextPaint tp = new TextPaint(); local
112 assertNull(tp.getTypeface());
114 typefaceSpan.updateDrawState(tp);
116 assertNotNull(tp.getTypeface());
118 assertEquals(Typeface.NORMAL, tp.getTypeface().getStyle())
    [all...]
AbsoluteSizeSpanTest.java 86 TextPaint tp = new TextPaint(); local
87 absoluteSizeSpan.updateMeasureState(tp);
88 assertEquals(1.0f, tp.getTextSize());
91 absoluteSizeSpan.updateMeasureState(tp);
92 assertEquals(10.0f, tp.getTextSize());
114 TextPaint tp = new TextPaint(); local
115 absoluteSizeSpan.updateDrawState(tp);
116 assertEquals(2.0f, tp.getTextSize());
120 absoluteSizeSpan.updateDrawState(tp);
121 assertEquals(20.0f, tp.getTextSize())
    [all...]
BackgroundColorSpanTest.java 70 TextPaint tp = new TextPaint(); local
71 backgroundColorSpan.updateDrawState(tp);
72 assertEquals(Color.BLACK, tp.bgColor);
75 backgroundColorSpan.updateDrawState(tp);
76 assertEquals(Color.BLUE, tp.bgColor);
ForegroundColorSpanTest.java 84 TextPaint tp = new TextPaint(); local
85 tp.setColor(0);
86 assertEquals(0, tp.getColor());
87 foregroundColorSpan.updateDrawState(tp);
88 assertEquals(Color.CYAN, tp.getColor());
91 foregroundColorSpan.updateDrawState(tp);
92 assertEquals(Color.DKGRAY, tp.getColor());
RelativeSizeSpanTest.java 79 TextPaint tp = new TextPaint(); local
80 tp.setTextSize(2.0f);
81 float oldSize = tp.getTextSize();
82 relativeSizeSpan.updateMeasureState(tp);
83 assertEquals(2.0f * proportion, tp.getTextSize());
86 tp.setTextSize(-3.0f);
87 oldSize = tp.getTextSize();
88 relativeSizeSpan.updateMeasureState(tp);
89 assertEquals(oldSize * proportion, tp.getTextSize());
109 TextPaint tp = new TextPaint() local
    [all...]
ScaleXSpanTest.java 66 TextPaint tp = new TextPaint(); local
67 tp.setTextScaleX(2.0f);
68 scaleXSpan.updateDrawState(tp);
69 assertEquals(2.0f * proportion, tp.getTextScaleX());
71 tp.setTextScaleX(-3.0f);
72 scaleXSpan.updateDrawState(tp);
73 assertEquals(-3.0f * proportion, tp.getTextScaleX());
93 TextPaint tp = new TextPaint(); local
94 tp.setTextScaleX(2.0f);
95 scaleXSpan.updateMeasureState(tp);
    [all...]
SubscriptSpanTest.java 61 // the expected result is: tp.baselineShift -= (int) (tp.ascent() / 2)
64 TextPaint tp = new TextPaint(); local
65 float ascent = tp.ascent();
67 tp.baselineShift = baselineShift;
69 subscriptSpan.updateMeasureState(tp);
70 assertEquals(baselineShift - (int) (ascent / 2), tp.baselineShift);
87 // the expected result is: tp.baselineShift -= (int) (tp.ascent() / 2)
90 TextPaint tp = new TextPaint() local
    [all...]
  /external/icu4c/tools/tzcode/
scheck.c 23 register char * tp; local
35 tp = fbuf;
36 while ((*tp++ = c = *fp++) != '\0') {
40 *tp++ = *fp++;
43 *tp++ = '*';
47 *tp++ = *fp++;
49 *tp++ = *fp++;
51 do *tp++ = *fp++;
53 if ((*tp++ = *fp++) == '\0')
56 *(tp - 1) = '%'
    [all...]
  /bionic/libc/inet/
inet_ntop.c 104 char *tp, *ep; local
146 tp = tmp;
148 for (i = 0; i < (IN6ADDRSZ / INT16SZ) && tp < ep; i++) {
153 if (tp + 1 >= ep)
155 *tp++ = ':';
161 if (tp + 1 >= ep)
163 *tp++ = ':';
168 if (!inet_ntop4(src+12, tp, (size_t)(ep - tp)))
170 tp += strlen(tp)
    [all...]
inet_pton.c 77 u_char tmp[INADDRSZ], *tp; local
81 *(tp = tmp) = 0;
86 u_int new = *tp * 10 + (pch - digits);
95 *tp = new;
99 *++tp = 0;
129 u_char tmp[IN6ADDRSZ], *tp, *endp, *colonp; local
134 memset((tp = tmp), '\0', IN6ADDRSZ);
135 endp = tp + IN6ADDRSZ;
165 colonp = tp;
170 if (tp + INT16SZ > endp
    [all...]
  /external/iproute2/tc/
f_fw.c 38 struct tc_police tp; local
44 memset(&tp, 0, sizeof(tp));
f_route.c 41 struct tc_police tp; local
47 memset(&tp, 0, sizeof(tp));
  /external/libffi/src/
raw_api.c 60 ffi_type **tp = cif->arg_types; local
64 for (i = 0; i < cif->nargs; i++, tp++, args++)
66 switch ((*tp)->type)
97 raw += ALIGN ((*tp)->size, FFI_SIZEOF_ARG) / FFI_SIZEOF_ARG;
106 for (i = 0; i < cif->nargs; i++, tp++, args++)
109 if ((*tp)->type == FFI_TYPE_STRUCT)
117 raw += ALIGN ((*tp)->size, sizeof (void*)) / sizeof (void*);
132 ffi_type **tp = cif->arg_types; local
134 for (i = 0; i < cif->nargs; i++, tp++, args++)
136 switch ((*tp)->type
    [all...]
java_raw_api.c 76 ffi_type **tp = cif->arg_types; local
80 for (i = 0; i < cif->nargs; i++, tp++, args++)
82 switch ((*tp)->type)
110 ALIGN ((*tp)->size, sizeof(ffi_java_raw)) / sizeof(ffi_java_raw);
119 for (i = 0; i < cif->nargs; i++, tp++, args++)
122 switch((*tp)->type) {
135 ALIGN ((*tp)->size, sizeof(ffi_java_raw)) / sizeof(ffi_java_raw);
150 ffi_type **tp = cif->arg_types; local
152 for (i = 0; i < cif->nargs; i++, tp++, args++)
154 switch ((*tp)->type
    [all...]
  /external/qemu/slirp/
tcp_timer.c 41 static struct tcpcb *tcp_timers(register struct tcpcb *tp, int timer);
50 register struct tcpcb *tp; local
57 if ((tp = (struct tcpcb *)so->so_tcpcb) &&
58 (tp->t_flags & TF_DELACK)) {
59 tp->t_flags &= ~TF_DELACK;
60 tp->t_flags |= TF_ACKNOW;
62 (void) tcp_output(tp);
75 register struct tcpcb *tp; local
88 tp = sototcpcb(ip);
89 if (tp == 0
    [all...]
  /external/qemu/slirp-android/
tcp_timer.c 41 static struct tcpcb *tcp_timers(register struct tcpcb *tp, int timer);
50 register struct tcpcb *tp; local
57 if ((tp = (struct tcpcb *)so->so_tcpcb) &&
58 (tp->t_flags & TF_DELACK)) {
59 tp->t_flags &= ~TF_DELACK;
60 tp->t_flags |= TF_ACKNOW;
62 (void) tcp_output(tp);
75 register struct tcpcb *tp; local
88 tp = sototcpcb(ip);
89 if (tp == 0
    [all...]
  /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...]
  /external/tcpdump/missing/
inet_ntop.c 113 char *tp; local
153 tp = tmp;
161 *tp++ = ':';
168 *tp++ = ':';
175 if (!inet_ntop_v4(src+12, tp, sizeof(tmp) - (tp - tmp)))
180 tp += strlen(tp);
183 tp += sprintf (tp, "%lX", words[i])
    [all...]
  /frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/
WebViewEventSender.java 202 TouchPoint tp = mTouchPoints.get(0); local
204 if (tp == null) {
208 tp.setDownTime(SystemClock.uptimeMillis());
209 MotionEvent event = MotionEvent.obtain(tp.downTime(), tp.downTime(),
210 MotionEvent.ACTION_DOWN, tp.getX(), tp.getY(), mTouchMetaState);
215 TouchPoint tp = mTouchPoints.get(0); local
217 if (tp == null) {
221 if (!tp.hasMoved())
233 TouchPoint tp = mTouchPoints.get(0); local
249 TouchPoint tp = mTouchPoints.get(0); local
262 TouchPoint tp = mTouchPoints.get(0); local
278 TouchPoint tp = mTouchPoints.get(0); local
305 TouchPoint tp = mTouchPoints.get(0); local
    [all...]

Completed in 2804 milliseconds

1 2 3 4