Home
last modified time | relevance | path

Searched refs:unparceled (Results 1 – 13 of 13) sorted by relevance

/cts/tests/pdf/module/src/android/graphics/pdf/cts/module/
DPdfPageGotoLinkContentTest.java42 PdfPageGotoLinkContent unparceled = Utils.writeAndReadFromParcel(content, in goToLinkContent_parcelTest() local
45 assertThat(unparceled.getBounds()).isEqualTo(List.of(BOUND_ONE, BOUND_TWO)); in goToLinkContent_parcelTest()
46 assertThat(unparceled.getDestination().getPageNumber()).isEqualTo(0); in goToLinkContent_parcelTest()
47 assertThat(unparceled.getDestination().getXCoordinate()).isEqualTo(0); in goToLinkContent_parcelTest()
48 assertThat(unparceled.getDestination().getYCoordinate()).isEqualTo(0); in goToLinkContent_parcelTest()
49 assertThat(unparceled.getDestination().getZoom()).isEqualTo(0); in goToLinkContent_parcelTest()
50 assertThat(unparceled.describeContents()).isEqualTo(0); in goToLinkContent_parcelTest()
56 PdfPageGotoLinkContent.Destination unparceled = Utils.writeAndReadFromParcel(destination, in destination_parcelTest() local
59 assertThat(unparceled.getPageNumber()).isEqualTo(0); in destination_parcelTest()
60 assertThat(unparceled.getXCoordinate()).isEqualTo(0); in destination_parcelTest()
[all …]
DSelectionBoundaryTest.java38 SelectionBoundary unparceled = Utils.writeAndReadFromParcel(selectionBoundary, in selectionBoundary_atIndex_parcelTest() local
41 assertThat(unparceled.getIndex()).isEqualTo(1); in selectionBoundary_atIndex_parcelTest()
42 assertThat(unparceled.getPoint()).isNull(); in selectionBoundary_atIndex_parcelTest()
43 assertThat(unparceled.describeContents()).isEqualTo(0); in selectionBoundary_atIndex_parcelTest()
49 SelectionBoundary unparceled = Utils.writeAndReadFromParcel(selectionBoundary, in selectionBoundary_atPoint_parcelTest() local
52 assertThat(unparceled.getPoint()).isEqualTo(MOCK_POINT); in selectionBoundary_atPoint_parcelTest()
53 assertThat(unparceled.getIndex()).isEqualTo(-1); in selectionBoundary_atPoint_parcelTest()
54 assertThat(unparceled.describeContents()).isEqualTo(0); in selectionBoundary_atPoint_parcelTest()
DPdfPageTextContentTest.java46 PdfPageTextContent unparceled = Utils.writeAndReadFromParcel(content, in textContent_unboundedText_parcelTest() local
49 assertThat(unparceled.getText()).isEqualTo(MOCK_TEXT); in textContent_unboundedText_parcelTest()
50 assertThat(unparceled.getBounds().isEmpty()).isTrue(); in textContent_unboundedText_parcelTest()
51 assertThat(unparceled.describeContents()).isEqualTo(0); in textContent_unboundedText_parcelTest()
57 PdfPageTextContent unparceled = Utils.writeAndReadFromParcel(content, in textContent_boundedText_parcelTest() local
60 assertThat(unparceled.getText()).isEqualTo(MOCK_TEXT); in textContent_boundedText_parcelTest()
61 assertThat(unparceled.getBounds()).isEqualTo(MOCK_BOUNDS); in textContent_boundedText_parcelTest()
62 assertThat(unparceled.describeContents()).isEqualTo(0); in textContent_boundedText_parcelTest()
DPageSelectionTest.java51 PageSelection unparceled = Utils.writeAndReadFromParcel(pageSelection, in pageSelection_parcelTest() local
54 assertThat(unparceled.getPage()).isEqualTo(1); in pageSelection_parcelTest()
55 assertThat(unparceled.getStart().getIndex()).isEqualTo(MOCK_START.getIndex()); in pageSelection_parcelTest()
56 assertThat(unparceled.getStop().getIndex()).isEqualTo(MOCK_STOP.getIndex()); in pageSelection_parcelTest()
57 assertThat(unparceled.getSelectedTextContents().isEmpty()).isFalse(); in pageSelection_parcelTest()
58 assertThat(unparceled.getSelectedTextContents().get(0).getText()).isEqualTo(MOCK_TEXT); in pageSelection_parcelTest()
59 assertThat(unparceled.describeContents()).isEqualTo(0); in pageSelection_parcelTest()
DPdfPageLinkContentTest.java47 PdfPageLinkContent unparceled = Utils.writeAndReadFromParcel(content, in linkContent_parcelTest() local
50 assertThat(unparceled.getBounds()).isEqualTo(MOCK_BOUNDS); in linkContent_parcelTest()
51 assertThat(unparceled.getUri()).isEqualTo(MOCK_URI); in linkContent_parcelTest()
52 assertThat(unparceled.describeContents()).isEqualTo(0); in linkContent_parcelTest()
DPdfPageImageContentTest.java37 PdfPageImageContent unparceled = Utils.writeAndReadFromParcel(content, in imageContent_parcelTest() local
40 assertThat(unparceled.getAltText()).isEqualTo(MOCK_ALT_TEXT); in imageContent_parcelTest()
41 assertThat(unparceled.describeContents()).isEqualTo(0); in imageContent_parcelTest()
/cts/tests/app/src/android/app/cts/
DAdjustmentTest.java76 final Adjustment unparceled = Adjustment.CREATOR.createFromParcel(outParcel); in testParcelling() local
78 assertEquals(mAdjustment.getPackage(), unparceled.getPackage()); in testParcelling()
79 assertEquals(mAdjustment.getKey(), unparceled.getKey()); in testParcelling()
80 assertEquals(mAdjustment.getExplanation(), unparceled.getExplanation()); in testParcelling()
81 assertEquals(mAdjustment.getUserHandle(), unparceled.getUserHandle()); in testParcelling()
83 assertEquals("Hello, world!", unparceled.getSignals().getString("foobar")); in testParcelling()
84 assertEquals(47, unparceled.getSignals().getInt("chirp")); in testParcelling()
/cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/
DAdjustmentTest.java82 final Adjustment unparceled = Adjustment.CREATOR.createFromParcel(outParcel); in testParcelling() local
84 assertEquals(mAdjustment.getPackage(), unparceled.getPackage()); in testParcelling()
85 assertEquals(mAdjustment.getKey(), unparceled.getKey()); in testParcelling()
86 assertEquals(mAdjustment.getExplanation(), unparceled.getExplanation()); in testParcelling()
87 assertEquals(mAdjustment.getUserHandle(), unparceled.getUserHandle()); in testParcelling()
89 assertEquals("Hello, world!", unparceled.getSignals().getString("foobar")); in testParcelling()
90 assertEquals(47, unparceled.getSignals().getInt("chirp")); in testParcelling()
/cts/tests/tests/widget/src/android/widget/cts/
DRemoteViewsFixedCollectionAdapterTest.java138 RemoteCollectionItems unparceled = parcelAndUnparcel(items); in testParcelingAndUnparceling() local
139 assertEquals(2, unparceled.getItemCount()); in testParcelingAndUnparceling()
140 assertEquals(3, unparceled.getItemId(0)); in testParcelingAndUnparceling()
141 assertEquals(5, unparceled.getItemId(1)); in testParcelingAndUnparceling()
142 assertEquals(R.layout.textview_singleline, unparceled.getItemView(0).getLayoutId()); in testParcelingAndUnparceling()
143 assertEquals(R.layout.textview_gravity, unparceled.getItemView(1).getLayoutId()); in testParcelingAndUnparceling()
144 assertTrue(unparceled.hasStableIds()); in testParcelingAndUnparceling()
145 assertEquals(10, unparceled.getViewTypeCount()); in testParcelingAndUnparceling()
146 assertNotNull(unparceled.getItemView(0).mApplication); in testParcelingAndUnparceling()
148 unparceled.getItemView(0).mApplication, unparceled.getItemView(1).mApplication); in testParcelingAndUnparceling()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DView_BaseSavedStateTest.java94 BaseSavedState unparceled = BaseSavedState.CREATOR.createFromParcel(parcel); in testCreator() local
95 assertNotNull(unparceled); in testCreator()
96 assertEquals(AbsSavedState.EMPTY_STATE, unparceled.getSuperState()); in testCreator()
DAbsSavedStateTest.java102 AbsSavedState unparceled = AbsSavedState.CREATOR.createFromParcel(parcel); in testCreator() local
103 assertNotNull(unparceled); in testCreator()
104 assertNull(unparceled.getSuperState()); in testCreator()
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DImsStreamMediaProfileTest.java150 ImsStreamMediaProfile unparceled = (ImsStreamMediaProfile) parcelUnparcel(data); in testReceivingRttAudio() local
152 assertTrue(unparceled.isReceivingRttAudio()); in testReceivingRttAudio()
/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapTest.java1916 Bitmap unparceled = Bitmap.CREATOR.createFromParcel(p); in testParcelF16ColorSpace() local
1917 assertSame(cs, unparceled.getColorSpace()); in testParcelF16ColorSpace()