Home
last modified time | relevance | path

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

12345678

/cts/tests/tests/os/src/android/os/cts/
DParcelTest.java66 Parcel p; in testAppendFrom() local
71 p = Parcel.obtain(); in testAppendFrom()
72 d1 = p.dataPosition(); in testAppendFrom()
73 p.writeInt(7); in testAppendFrom()
74 p.writeInt(5); in testAppendFrom()
75 d2 = p.dataPosition(); in testAppendFrom()
77 p2.appendFrom(p, d1, d2 - d1); in testAppendFrom()
82 p.recycle(); in testAppendFrom()
86 Parcel p; in testDataAvail() local
88 p = Parcel.obtain(); in testDataAvail()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DParamsTest.java48 SyncParams p = new SyncParams(); in testSyncParamsDefaults() local
49 try { fail("got " + p.getAudioAdjustMode()); } catch (IllegalStateException e) {} in testSyncParamsDefaults()
50 try { fail("got " + p.getSyncSource()); } catch (IllegalStateException e) {} in testSyncParamsDefaults()
51 try { fail("got " + p.getTolerance()); } catch (IllegalStateException e) {} in testSyncParamsDefaults()
52 try { fail("got " + p.getFrameRate()); } catch (IllegalStateException e) {} in testSyncParamsDefaults()
54 SyncParams q = p.allowDefaults(); in testSyncParamsDefaults()
55 assertSame(p, q); in testSyncParamsDefaults()
56 assertEquals(p.AUDIO_ADJUST_MODE_DEFAULT, p.getAudioAdjustMode()); in testSyncParamsDefaults()
57 assertEquals(p.SYNC_SOURCE_DEFAULT, p.getSyncSource()); in testSyncParamsDefaults()
58 assertTrue(p.getTolerance() >= 0.f in testSyncParamsDefaults()
[all …]
DMediaItemTest.java45 Parcel p = Parcel.obtain(); in testBrowsableMediaItem() local
46 mediaItem.writeToParcel(p, 0); in testBrowsableMediaItem()
47 p.setDataPosition(0); in testBrowsableMediaItem()
48 assertEquals(mediaItem.getFlags(), p.readInt()); in testBrowsableMediaItem()
50 MediaDescription.CREATOR.createFromParcel(p).toString()); in testBrowsableMediaItem()
51 p.recycle(); in testBrowsableMediaItem()
67 Parcel p = Parcel.obtain(); in testPlayableMediaItem() local
68 mediaItem.writeToParcel(p, 0); in testPlayableMediaItem()
69 p.setDataPosition(0); in testPlayableMediaItem()
70 assertEquals(mediaItem.getFlags(), p.readInt()); in testPlayableMediaItem()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DPaintTest.java60 Paint p = new Paint(); in testConstructor() local
61 new Paint(p); in testConstructor()
69 Paint p = new Paint(); in testBreakText() local
72 p.setFlags(p.getFlags() & ~Paint.DEV_KERN_TEXT_FLAG); in testBreakText()
75 assertEquals(text.length(), p.getTextWidths(text, widths)); in testBreakText()
128 assertEquals(emoji.length(), p.getTextWidths(emoji, emojiWidths)); in testBreakText()
150 Paint p = new Paint(); in assertBreakText() local
153 p.setFlags(p.getFlags() & ~Paint.DEV_KERN_TEXT_FLAG); in assertBreakText()
166 assertEquals(expectedCount, p.breakText(textSlice, measureForwards, maxWidth, measured[0])); in assertBreakText()
167 assertEquals(expectedCount, p.breakText(textChars, start, count, maxWidth, measured[1])); 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 …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DExactCanvasTests.java42 Paint p = new Paint(); in testBlueRect() local
43 p.setAntiAlias(false); in testBlueRect()
44 p.setColor(Color.BLUE); in testBlueRect()
45 canvas.drawRect(rect, p); in testBlueRect()
54 Paint p = new Paint(); in testPoints() local
55 p.setAntiAlias(false); in testPoints()
56 p.setStrokeWidth(1f); in testPoints()
57 p.setColor(Color.BLACK); in testPoints()
59 canvas.drawPoint(i * 10, i * 10, p); in testPoints()
69 Paint p = new Paint(); in testBlackRectWithStroke() local
[all …]
/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 …]
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 …]
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()
109 Parcel p = Parcel.obtain(); in testWriteToParcel() local
112 asp.writeToParcel(p, 0); in testWriteToParcel()
113 p.setDataPosition(0); in testWriteToParcel()
114 AbsoluteSizeSpan absoluteSizeSpan = new AbsoluteSizeSpan(p); in testWriteToParcel()
117 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()
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()
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()
DEasyEditSpanTest.java31 Parcel p = Parcel.obtain(); in testConstructor() local
33 new EasyEditSpan(p); in testConstructor()
35 p.recycle(); in testConstructor()
53 Parcel p = Parcel.obtain(); in testWriteToParcel() local
56 easyEditSpan.writeToParcel(p, 0); in testWriteToParcel()
57 p.setDataPosition(0); in testWriteToParcel()
58 new EasyEditSpan(p); in testWriteToParcel()
60 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()
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/tests/renderscript/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/telecom/src/android/telecom/cts/
DDataObjectUnitTests.java83 Parcel p = Parcel.obtain(); in testPhoneAccount() local
84 account.writeToParcel(p, 0); in testPhoneAccount()
85 p.setDataPosition(0); in testPhoneAccount()
86 PhoneAccount parcelAccount = PhoneAccount.CREATOR.createFromParcel(p); in testPhoneAccount()
97 p.recycle(); in testPhoneAccount()
115 Parcel p = Parcel.obtain(); in testPhoneAccountHandle() local
116 accountHandle.writeToParcel(p, 0); in testPhoneAccountHandle()
117 p.setDataPosition(0); in testPhoneAccountHandle()
118 PhoneAccountHandle unparcelled = PhoneAccountHandle.CREATOR.createFromParcel(p); in testPhoneAccountHandle()
123 p.recycle(); in testPhoneAccountHandle()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DRemoteViewsActivityTest.java49 Parcel p = Parcel.obtain(); in testGood() local
50 orig.writeToParcel(p, 0); in testGood()
51 p.setDataPosition(0); in testGood()
53 RemoteViews r = RemoteViews.CREATOR.createFromParcel(p); in testGood()
59 p.recycle(); in testGood()
75 Parcel p = Parcel.obtain(); in testDerivedClass() local
76 orig.writeToParcel(p, 0); in testDerivedClass()
77 p.setDataPosition(0); in testDerivedClass()
79 RemoteViews r = RemoteViews.CREATOR.createFromParcel(p); in testDerivedClass()
92 p.recycle(); in testDerivedClass()
[all …]
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvTrackInfoTest.java49 Parcel p = Parcel.obtain(); in testAudioTrackInfoOp() local
50 info.writeToParcel(p, 0); in testAudioTrackInfoOp()
51 p.setDataPosition(0); in testAudioTrackInfoOp()
52 TvTrackInfo infoFromParcel = TvTrackInfo.CREATOR.createFromParcel(p); in testAudioTrackInfoOp()
60 p.recycle(); in testAudioTrackInfoOp()
90 Parcel p = Parcel.obtain(); in testVideoTrackInfoOp() local
91 info.writeToParcel(p, 0); in testVideoTrackInfoOp()
92 p.setDataPosition(0); in testVideoTrackInfoOp()
93 TvTrackInfo infoFromParcel = TvTrackInfo.CREATOR.createFromParcel(p); in testVideoTrackInfoOp()
104 p.recycle(); in testVideoTrackInfoOp()
[all …]

12345678