/cts/tests/tests/text/src/android/text/style/cts/ |
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...] |
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...] |
BackgroundColorSpanTest.java | 44 TextPaint tp = new TextPaint(); local 45 backgroundColorSpan.updateDrawState(tp); 46 assertEquals(Color.BLACK, tp.bgColor); 49 backgroundColorSpan.updateDrawState(tp); 50 assertEquals(Color.BLUE, tp.bgColor);
|
ForegroundColorSpanTest.java | 52 TextPaint tp = new TextPaint(); local 53 tp.setColor(0); 54 assertEquals(0, tp.getColor()); 55 foregroundColorSpan.updateDrawState(tp); 56 assertEquals(Color.CYAN, tp.getColor()); 59 foregroundColorSpan.updateDrawState(tp); 60 assertEquals(Color.DKGRAY, tp.getColor());
|
RelativeSizeSpanTest.java | 54 TextPaint tp = new TextPaint(); local 55 tp.setTextSize(2.0f); 56 float oldSize = tp.getTextSize(); 57 relativeSizeSpan.updateMeasureState(tp); 58 assertEquals(2.0f * proportion, tp.getTextSize()); 61 tp.setTextSize(-3.0f); 62 oldSize = tp.getTextSize(); 63 relativeSizeSpan.updateMeasureState(tp); 64 assertEquals(oldSize * proportion, tp.getTextSize()); 78 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...] |
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...] |
/external/chromium/chrome/browser/ui/views/ |
detachable_toolbar_view.cc | 29 ui::ThemeProvider* tp = view->GetThemeProvider(); local 31 tp->GetColor(ThemeService::COLOR_TOOLBAR); 34 canvas->TileImageInt(*tp->GetBitmapNamed(IDR_THEME_TOOLBAR),
|
/external/libffi/src/ |
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/nist-sip/java/gov/nist/javax/sip/parser/extensions/ |
JoinParser.java | 68 JoinParser tp = new JoinParser(to[i]); local 69 Join t = (Join) tp.parse();
|
ReplacesParser.java | 70 ReplacesParser tp = new ReplacesParser(to[i]); local 71 Replaces t = (Replaces) tp.parse();
|
MinSEParser.java | 74 MinSEParser tp = new MinSEParser(to[i]); local 75 MinSE t = (MinSE) tp.parse();
|
SessionExpiresParser.java | 72 SessionExpiresParser tp = new SessionExpiresParser(to[i]); local 73 SessionExpires t = (SessionExpires) tp.parse();
|
/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/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/services/java/com/android/server/am/ |
TransferPipe.java | 89 TransferPipe tp = new TransferPipe(); local 91 caller.go(iface, tp.getWriteFd().getFileDescriptor(), prefix, args); 92 tp.go(out, timeout); 94 tp.kill(); 114 TransferPipe tp = new TransferPipe(); local 116 binder.dumpAsync(tp.getWriteFd().getFileDescriptor(), args); 117 tp.go(out, timeout); 119 tp.kill();
|
ProviderMap.java | 367 TransferPipe tp = new TransferPipe(); local 370 tp.getWriteFd().getFileDescriptor(), r.provider.asBinder(), args); 371 tp.setBufferPrefix(" "); 374 tp.go(fd, 2000); 376 tp.kill();
|
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/ |
WebViewEventSender.java | 208 TouchPoint tp = mTouchPoints.get(i); local 209 if (tp.hasMoved()) { 215 tp.setMoved(false); 253 TouchPoint tp = mTouchPoints.get(i); local 254 if (tp.isReleased()) { 272 TouchPoint tp = mTouchPoints.get(i); local 273 if (tp.cancelled()) { 295 TouchPoint tp = mTouchPoints.get(id); local 296 if (tp == null) { 300 tp.cancel() 316 TouchPoint tp = mTouchPoints.get(i); local 343 TouchPoint tp = mTouchPoints.get(id); local [all...] |
/bionic/libc/upstream-netbsd/libc/inet/ |
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/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/spec/ |
ECFieldF2m_ImplTest.java | 198 ECFieldF2mDomainParams tp = intBigIntegerCtorTestParameters[i]; local 201 new ECFieldF2m(tp.m, tp.rp); 203 if (tp.x != null) { 209 if (tp.x == null || !e.getClass().isInstance(tp.x)) {
|
/external/blktrace/btt/ |
q2d.c | 116 struct q2d_info *tp = a2; local 119 ap->histos[i] += tp->histos[i]; 120 ap->nhistos += tp->nhistos;
|
/external/iproute2/tc/ |
f_flow.c | 135 struct tc_police tp; local 143 memset(&tp, 0, sizeof(tp));
|
f_rsvp.c | 173 struct tc_police tp; local 179 memset(&tp, 0, sizeof(tp));
|
/external/libppp/src/ |
timer.c | 65 timer_Stop(struct pppTimer *tp) 72 StopTimerNoBlock(tp); 77 timer_Start(struct pppTimer *tp) 88 if (tp->state != TIMER_STOPPED) 89 StopTimerNoBlock(tp); 91 if (tp->load == 0) { 92 log_Printf(LogTIMER, "%s timer[%p] has 0 load!\n", tp->name, tp); 98 * We just need to insert tp in the correct relative place. We don't 106 if (ticks + t->rest >= tp->load 192 struct pppTimer *tp, *exp, *next; local [all...] |