Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 141) sorted by relevance

123456

/cts/tests/tests/os/src/android/os/cts/
DParcelTest.java68 Parcel p; in testAppendFrom() local
73 p = Parcel.obtain(); in testAppendFrom()
74 d1 = p.dataPosition(); in testAppendFrom()
75 p.writeInt(7); in testAppendFrom()
76 p.writeInt(5); in testAppendFrom()
77 d2 = p.dataPosition(); in testAppendFrom()
79 p2.appendFrom(p, d1, d2 - d1); in testAppendFrom()
84 p.recycle(); in testAppendFrom()
88 Parcel p; in testDataAvail() local
90 p = Parcel.obtain(); in testDataAvail()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DPaintTest.java54 Paint p = new Paint(); in testConstructor() local
55 new Paint(p); in testConstructor()
63 Paint p = new Paint(); in testBreakText() local
66 p.setFlags(p.getFlags() & ~Paint.DEV_KERN_TEXT_FLAG); in testBreakText()
69 assertEquals(text.length(), p.getTextWidths(text, widths)); in testBreakText()
120 Paint p = new Paint(); in assertBreakText() local
123 p.setFlags(p.getFlags() & ~Paint.DEV_KERN_TEXT_FLAG); in assertBreakText()
136 assertEquals(expectedCount, p.breakText(textSlice, measureForwards, maxWidth, measured[0])); in assertBreakText()
137 assertEquals(expectedCount, p.breakText(textChars, start, count, maxWidth, measured[1])); in assertBreakText()
138 assertEquals(expectedCount, p.breakText(textSpan, start, end, measureForwards, maxWidth, in assertBreakText()
[all …]
DPathDashPathEffectTest.java45 Paint p = new Paint(); in testPathDashPathEffect() local
46 p.setPathEffect(effect); in testPathDashPathEffect()
47 p.setColor(Color.RED); in testPathDashPathEffect()
48 canvas.drawPath(path(), p); in testPathDashPathEffect() local
53 p = new Paint(); in testPathDashPathEffect()
54 p.setColor(Color.RED); in testPathDashPathEffect()
59 canvas.drawRect(rect, p); in testPathDashPathEffect()
74 Path p = new Path(); in path() local
75 p.moveTo(0, HEIGHT / 2); in path()
76 p.lineTo(WIDTH, HEIGHT / 2); in path()
[all …]
DPorterDuffXfermodeTest.java43 Paint p = new Paint(); in testPorterDuffXfermode() local
44 canvas.drawBitmap(b1, 0, 0, p); in testPorterDuffXfermode()
45 p.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC)); in testPorterDuffXfermode()
46 canvas.drawBitmap(b2, 0, HEIGHT / 2, p); in testPorterDuffXfermode()
52 p.setXfermode(null); in testPorterDuffXfermode()
53 canvas.drawBitmap(b1, 0, 0, p); in testPorterDuffXfermode()
54 p.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST)); in testPorterDuffXfermode()
55 canvas.drawBitmap(b2, 0, HEIGHT / 2, p); in testPorterDuffXfermode()
61 p.setXfermode(null); in testPorterDuffXfermode()
62 canvas.drawBitmap(b1, 0, 0, p); in testPorterDuffXfermode()
[all …]
DPorterDuffColorFilterTest.java45 Paint p = new Paint(); in testPorterDuffColorFilter() local
46 canvas.drawBitmap(b1, 0, 0, p); in testPorterDuffColorFilter()
47 p.setColorFilter(filter); in testPorterDuffColorFilter()
48 canvas.drawBitmap(b2, 0, height / 2, p); in testPorterDuffColorFilter()
58 p.setColorFilter(null); in testPorterDuffColorFilter()
59 canvas.drawBitmap(b1, 0, 0, p); in testPorterDuffColorFilter()
60 p.setColorFilter(filter); in testPorterDuffColorFilter()
61 canvas.drawBitmap(b2, 0, height / 2, p); in testPorterDuffColorFilter()
68 p.setColorFilter(null); in testPorterDuffColorFilter()
69 canvas.drawBitmap(b1, 0, 0, p); in testPorterDuffColorFilter()
[all …]
DPaint_CapTest.java43 Paint p = new Paint(); in testValues() local
44 p.setStrokeCap(actual[0]); in testValues()
45 assertEquals(Cap.BUTT, p.getStrokeCap()); in testValues()
46 p.setStrokeCap(actual[1]); in testValues()
47 assertEquals(Cap.ROUND, p.getStrokeCap()); in testValues()
48 p.setStrokeCap(actual[2]); in testValues()
49 assertEquals(Cap.SQUARE, p.getStrokeCap()); in testValues()
DPaint_StyleTest.java42 Paint p = new Paint(); in testValues() local
43 p.setStyle(actual[0]); in testValues()
44 assertEquals(Style.FILL, p.getStyle()); in testValues()
45 p.setStyle(actual[1]); in testValues()
46 assertEquals(Style.STROKE, p.getStyle()); in testValues()
47 p.setStyle(actual[2]); in testValues()
48 assertEquals(Style.FILL_AND_STROKE, p.getStyle()); in testValues()
DPaint_JoinTest.java42 Paint p = new Paint(); in testValues() local
43 p.setStrokeJoin(actual[0]); in testValues()
44 assertEquals(Join.MITER, p.getStrokeJoin()); in testValues()
45 p.setStrokeJoin(actual[1]); in testValues()
46 assertEquals(Join.ROUND, p.getStrokeJoin()); in testValues()
47 p.setStrokeJoin(actual[2]); in testValues()
48 assertEquals(Join.BEVEL, p.getStrokeJoin()); in testValues()
/cts/tests/tests/text/src/android/text/style/cts/
DAlignmentSpan_StandardTest.java34 final Parcel p = Parcel.obtain(); in testConstructor() local
36 standard.writeToParcel(p, 0); in testConstructor()
37 p.setDataPosition(0); in testConstructor()
38 new Standard(p); in testConstructor()
40 p.recycle(); in testConstructor()
66 Parcel p = Parcel.obtain(); in testWriteToParcel() local
69 s.writeToParcel(p, 0); in testWriteToParcel()
70 p.setDataPosition(0); in testWriteToParcel()
71 Standard standard = new Standard(p); in testWriteToParcel()
74 p.recycle(); in testWriteToParcel()
[all …]
DQuoteSpanTest.java33 final Parcel p = Parcel.obtain(); in testConstructor() local
35 q.writeToParcel(p, 0); in testConstructor()
36 p.setDataPosition(0); in testConstructor()
37 new QuoteSpan(p); in testConstructor()
39 p.recycle(); in testConstructor()
62 Paint p = new Paint(); in testDrawLeadingMargin() local
63 quoteSpan.drawLeadingMargin(c, p, 0, 0, 0, 0, 0, null, 0, 0, true, null); in testDrawLeadingMargin()
84 Parcel p = Parcel.obtain(); in testWriteToParcel() local
87 quoteSpan.writeToParcel(p, 0); in testWriteToParcel()
88 p.setDataPosition(0); in testWriteToParcel()
[all …]
DLeadingMarginSpan_StandardTest.java34 final Parcel p = Parcel.obtain(); in testConstructor() local
36 standard.writeToParcel(p, 0); in testConstructor()
37 p.setDataPosition(0); in testConstructor()
38 new Standard(p); in testConstructor()
40 p.recycle(); in testConstructor()
73 Parcel p = Parcel.obtain(); in testWriteToParcel() local
76 s.writeToParcel(p, 0); in testWriteToParcel()
77 p.setDataPosition(0); in testWriteToParcel()
78 Standard standard = new Standard(p); in testWriteToParcel()
82 p.recycle(); in testWriteToParcel()
[all …]
DBackgroundColorSpanTest.java31 final Parcel p = Parcel.obtain(); in testConstructor() local
33 b.writeToParcel(p, 0); in testConstructor()
34 p.setDataPosition(0); in testConstructor()
35 new BackgroundColorSpan(p); in testConstructor()
37 p.recycle(); in testConstructor()
79 Parcel p = Parcel.obtain(); in testWriteToParcel() local
82 backgroundColorSpan.writeToParcel(p, 0); in testWriteToParcel()
83 p.setDataPosition(0); in testWriteToParcel()
84 BackgroundColorSpan b = new BackgroundColorSpan(p); in testWriteToParcel()
87 p.recycle(); in testWriteToParcel()
[all …]
DAbsoluteSizeSpanTest.java32 final Parcel p = Parcel.obtain(); in testConstructor() local
34 asp.writeToParcel(p, 0); in testConstructor()
35 p.setDataPosition(0); in testConstructor()
36 new AbsoluteSizeSpan(p); in testConstructor()
38 p.recycle(); in testConstructor()
101 Parcel p = Parcel.obtain(); in testWriteToParcel() local
104 asp.writeToParcel(p, 0); in testWriteToParcel()
105 p.setDataPosition(0); in testWriteToParcel()
106 AbsoluteSizeSpan absoluteSizeSpan = new AbsoluteSizeSpan(p); in testWriteToParcel()
109 p.recycle(); in testWriteToParcel()
[all …]
DForegroundColorSpanTest.java31 final Parcel p = Parcel.obtain(); in testConstructor() local
33 f.writeToParcel(p, 0); in testConstructor()
34 p.setDataPosition(0); in testConstructor()
35 new ForegroundColorSpan(p); in testConstructor()
37 p.recycle(); in testConstructor()
81 Parcel p = Parcel.obtain(); in testWriteToParcel() local
84 foregroundColorSpan.writeToParcel(p, 0); in testWriteToParcel()
85 p.setDataPosition(0); in testWriteToParcel()
86 ForegroundColorSpan f = new ForegroundColorSpan(p); in testWriteToParcel()
89 p.recycle(); in testWriteToParcel()
[all …]
DBulletSpanTest.java36 final Parcel p = Parcel.obtain(); in testConstructor() local
38 b.writeToParcel(p, 0); in testConstructor()
39 p.setDataPosition(0); in testConstructor()
40 new BulletSpan(p); in testConstructor()
42 p.recycle(); in testConstructor()
100 Parcel p = Parcel.obtain(); in testWriteToParcel() local
103 bulletSpan.writeToParcel(p, 0); in testWriteToParcel()
104 p.setDataPosition(0); in testWriteToParcel()
105 BulletSpan b = new BulletSpan(p); in testWriteToParcel()
108 p.recycle(); in testWriteToParcel()
[all …]
DStrikethroughSpanTest.java30 Parcel p = Parcel.obtain(); in testConstructor() local
32 strikethroughSpan.writeToParcel(p, 0); in testConstructor()
33 p.setDataPosition(0); in testConstructor()
34 new StrikethroughSpan(p); in testConstructor()
36 p.recycle(); in testConstructor()
69 Parcel p = Parcel.obtain(); in testWriteToParcel() local
72 strikethroughSpan.writeToParcel(p, 0); in testWriteToParcel()
73 p.setDataPosition(0); in testWriteToParcel()
74 new StrikethroughSpan(p); in testWriteToParcel()
76 p.recycle(); in testWriteToParcel()
DSuperscriptSpanTest.java30 Parcel p = Parcel.obtain(); in testConstructor() local
32 superscriptSpan.writeToParcel(p, 0); in testConstructor()
33 p.setDataPosition(0); in testConstructor()
34 new SuperscriptSpan(p); in testConstructor()
36 p.recycle(); in testConstructor()
91 Parcel p = Parcel.obtain(); in testWriteToParcel() local
94 superscriptSpan.writeToParcel(p, 0); in testWriteToParcel()
95 p.setDataPosition(0); in testWriteToParcel()
96 new SuperscriptSpan(p); in testWriteToParcel()
98 p.recycle(); in testWriteToParcel()
DSubscriptSpanTest.java30 Parcel p = Parcel.obtain(); in testConstructor() local
32 subscriptSpan.writeToParcel(p, 0); in testConstructor()
33 p.setDataPosition(0); in testConstructor()
34 new SubscriptSpan(p); in testConstructor()
36 p.recycle(); in testConstructor()
91 Parcel p = Parcel.obtain(); in testWriteToParcel() local
94 subscriptSpan.writeToParcel(p, 0); in testWriteToParcel()
95 p.setDataPosition(0); in testWriteToParcel()
96 new SubscriptSpan(p); in testWriteToParcel()
98 p.recycle(); in testWriteToParcel()
DTypefaceSpanTest.java33 final Parcel p = Parcel.obtain(); in testConstructor() local
35 t.writeToParcel(p, 0); in testConstructor()
36 p.setDataPosition(0); in testConstructor()
37 new TypefaceSpan(p); in testConstructor()
39 p.recycle(); in testConstructor()
99 Parcel p = Parcel.obtain(); in testWriteToParcel() local
102 typefaceSpan.writeToParcel(p, 0); in testWriteToParcel()
103 p.setDataPosition(0); in testWriteToParcel()
104 TypefaceSpan t = new TypefaceSpan(p); in testWriteToParcel()
107 p.recycle(); in testWriteToParcel()
DURLSpanTest.java48 final Parcel p = Parcel.obtain(); in testConstructor() local
50 urlSpan.writeToParcel(p, 0); in testConstructor()
51 p.setDataPosition(0); in testConstructor()
52 new URLSpan(p); in testConstructor()
54 p.recycle(); in testConstructor()
108 Parcel p = Parcel.obtain(); in testWriteToParcel() local
111 urlSpan.writeToParcel(p, 0); in testWriteToParcel()
112 p.setDataPosition(0); in testWriteToParcel()
113 URLSpan u = new URLSpan(p); in testWriteToParcel()
116 p.recycle(); in testWriteToParcel()
DScaleXSpanTest.java30 Parcel p = Parcel.obtain(); in testConstructor() local
32 scaleXSpan.writeToParcel(p, 0); in testConstructor()
33 p.setDataPosition(0); in testConstructor()
34 new ScaleXSpan(p); in testConstructor()
38 p.recycle(); in testConstructor()
103 Parcel p = Parcel.obtain(); in testWriteToParcel() local
107 scaleXSpan.writeToParcel(p, 0); in testWriteToParcel()
108 p.setDataPosition(0); in testWriteToParcel()
109 ScaleXSpan newSpan = new ScaleXSpan(p); in testWriteToParcel()
112 p.recycle(); in testWriteToParcel()
DRelativeSizeSpanTest.java30 Parcel p = Parcel.obtain(); in testConstructor() local
32 relativeSizeSpan.writeToParcel(p, 0); in testConstructor()
33 p.setDataPosition(0); in testConstructor()
34 new RelativeSizeSpan(p); in testConstructor()
38 p.recycle(); in testConstructor()
109 Parcel p = Parcel.obtain(); in testWriteToParcel() local
113 relativeSizeSpan.writeToParcel(p, 0); in testWriteToParcel()
114 p.setDataPosition(0); in testWriteToParcel()
115 RelativeSizeSpan newSpan = new RelativeSizeSpan(p); in testWriteToParcel()
118 p.recycle(); in testWriteToParcel()
/cts/tests/src/android/renderscript/cts/
Dyuv.rs32 short4 p;
33 p.x = (Y * 298 + V * 409 + 128) >> 8;
34 p.y = (Y * 298 - U * 100 - V * 208 + 128) >> 8;
35 p.z = (Y * 298 + U * 516 + 128) >> 8;
36 p.w = 255;
37 if(p.x < 0) {
38 p.x = 0;
40 if(p.x > 255) {
41 p.x = 255;
43 if(p.y < 0) {
[all …]
Dset_object.rs12 *out = ( dst.p == in->allocation.p ? 1 : 0 );
23 *out = ( dst.p == in->element.p ? 1 : 0 );
34 *out = ( dst.p == in->sampler.p ? 1 : 0 );
45 *out = ( dst.p == in->script.p ? 1 : 0 );
56 *out = ( dst.p == in->type.p ? 1 : 0 );
/cts/tests/tests/widget/src/android/widget/cts/
DRemoteViewsActivityTest.java48 Parcel p = Parcel.obtain(); in testGood() local
49 orig.writeToParcel(p, 0); in testGood()
50 p.setDataPosition(0); in testGood()
52 RemoteViews r = RemoteViews.CREATOR.createFromParcel(p); in testGood()
58 p.recycle(); in testGood()
74 Parcel p = Parcel.obtain(); in testDerivedClass() local
75 orig.writeToParcel(p, 0); in testDerivedClass()
76 p.setDataPosition(0); in testDerivedClass()
78 RemoteViews r = RemoteViews.CREATOR.createFromParcel(p); in testDerivedClass()
91 p.recycle(); in testDerivedClass()
[all …]

123456