Home
last modified time | relevance | path

Searched refs:isEqualTo (Results 1 – 25 of 1273) sorted by relevance

12345678910>>...51

/cts/tests/tests/text/src/android/text/cts/
DLayoutUseBoundsTest.kt100 .isEqualTo(shiftDrawOffset) in buildLayout()
115 .isEqualTo(shiftDrawOffset) in <lambda>()
125 assertThat(getDrawingHorizontalOffset(buildLayout(text, 1000, false))).isEqualTo(0) in testBreakOvershoot_trailing_LTR()
126 assertThat(getDrawingHorizontalOffset(buildLayout(text, 1000, true))).isEqualTo(0) in testBreakOvershoot_trailing_LTR()
128 assertThat(layout.computeDrawingBoundingBox()).isEqualTo(RectF(0f, 0f, 205f, 10f)) in testBreakOvershoot_trailing_LTR()
129 assertThat(getDrawingHorizontalOffset(layout)).isEqualTo(0) in testBreakOvershoot_trailing_LTR()
130 assertThat(layout.lineCount).isEqualTo(1) in testBreakOvershoot_trailing_LTR()
131 assertThat(layout.getLineEnd(0)).isEqualTo(19) in testBreakOvershoot_trailing_LTR()
132 assertThat(layout.getLineWidth(0)).isEqualTo(205) in testBreakOvershoot_trailing_LTR()
133 assertThat(layout.getLineMax(0)).isEqualTo(205) in testBreakOvershoot_trailing_LTR()
[all …]
DBoringLayoutUseBoundsTest.kt63 .isEqualTo(shiftDrawingOffset) in buildLayout()
72 assertThat(getDrawingHorizontalOffset(buildLayout(text, 1000, false))).isEqualTo(0) in testBreakOvershoot_trailing_LTR()
73 assertThat(getDrawingHorizontalOffset(buildLayout(text, 1000, true))).isEqualTo(0) in testBreakOvershoot_trailing_LTR()
75 assertThat(layout.computeDrawingBoundingBox()).isEqualTo(RectF(0f, 0f, 205f, 10f)) in testBreakOvershoot_trailing_LTR()
76 assertThat(layout.lineCount).isEqualTo(1) in testBreakOvershoot_trailing_LTR()
77 assertThat(layout.getLineEnd(0)).isEqualTo(19) in testBreakOvershoot_trailing_LTR()
78 assertThat(layout.getLineWidth(0)).isEqualTo(205) in testBreakOvershoot_trailing_LTR()
79 assertThat(layout.getLineMax(0)).isEqualTo(205) in testBreakOvershoot_trailing_LTR()
88 assertThat(getDrawingHorizontalOffset(buildLayout(text, 1000, false))).isEqualTo(0) in testBreakOvershoot_preceding_LTR()
89 assertThat(getDrawingHorizontalOffset(buildLayout(text, 1000, true))).isEqualTo(15) in testBreakOvershoot_preceding_LTR()
[all …]
DLayoutBuilderTest.kt60 assertThat(layout.text).isEqualTo(BORING_TEXT) in makeBuilder()
62 assertThat(layout.width).isEqualTo(WIDTH) in makeBuilder()
69 assertThat(layout.text).isEqualTo(STATIC_LAYOUT_TEXT) in buildStaticLayout()
71 assertThat(layout.width).isEqualTo(WIDTH) in buildStaticLayout()
77 assertThat(layout.alignment).isEqualTo(Alignment.ALIGN_NORMAL) in buildBoringDefaults()
79 .isEqualTo(TextDirectionHeuristics.FIRSTSTRONG_LTR) in buildBoringDefaults()
80 assertThat(layout.spacingMultiplier).isEqualTo(1.0f) in buildBoringDefaults()
81 assertThat(layout.lineSpacingMultiplier).isEqualTo(1.0f) in buildBoringDefaults()
82 assertThat(layout.spacingAdd).isEqualTo(0.0f) in buildBoringDefaults()
83 assertThat(layout.lineSpacingAmount).isEqualTo(0.0f) in buildBoringDefaults()
[all …]
DSegmentFinderTest.java45 .isEqualTo(SegmentFinder.DONE); in testDefaultSegmentFinder_previousStartBoundary()
49 .isEqualTo(SegmentFinder.DONE); in testDefaultSegmentFinder_previousStartBoundary()
51 .isEqualTo(SegmentFinder.DONE); in testDefaultSegmentFinder_previousStartBoundary()
57 .isEqualTo(previousSegmentStart); in testDefaultSegmentFinder_previousStartBoundary()
65 .isEqualTo(currentSegmentStart); in testDefaultSegmentFinder_previousStartBoundary()
67 .isEqualTo(currentSegmentStart); in testDefaultSegmentFinder_previousStartBoundary()
73 .isEqualTo(lastSegmentStart); in testDefaultSegmentFinder_previousStartBoundary()
81 .isEqualTo(SegmentFinder.DONE); in testDefaultSegmentFinder_previousEndBoundary()
86 .isEqualTo(SegmentFinder.DONE); in testDefaultSegmentFinder_previousEndBoundary()
88 .isEqualTo(SegmentFinder.DONE); in testDefaultSegmentFinder_previousEndBoundary()
[all …]
DPaintRunFlagTest.kt76 assertThat(measureTextStringNoFlag).isEqualTo(measureTextCharSequenceNoFlag) in assertSame_measureText_Result()
77 assertThat(measureTextStringNoFlag).isEqualTo(measureTextCharArrayNoFlag) in assertSame_measureText_Result()
79 assertThat(measureTextStringNoFlag).isEqualTo(measureTextStringLeft) in assertSame_measureText_Result()
80 assertThat(measureTextStringNoFlag).isEqualTo(measureTextCharSequenceLeft) in assertSame_measureText_Result()
81 assertThat(measureTextStringNoFlag).isEqualTo(measureTextCharArrayLeft) in assertSame_measureText_Result()
83 assertThat(measureTextStringNoFlag).isEqualTo(measureTextStringRight) in assertSame_measureText_Result()
84 assertThat(measureTextStringNoFlag).isEqualTo(measureTextCharSequenceRight) in assertSame_measureText_Result()
85 assertThat(measureTextStringNoFlag).isEqualTo(measureTextCharArrayRight) in assertSame_measureText_Result()
87 assertThat(measureTextStringNoFlag).isEqualTo(measureTextStringWholeLine) in assertSame_measureText_Result()
88 assertThat(measureTextStringNoFlag).isEqualTo(measureTextCharSequenceWholeLine) in assertSame_measureText_Result()
[all …]
/cts/tests/tests/car/src/android/car/cts/
DVehiclePropertyIdsTest.java53 .isEqualTo("INVALID"); in testToString()
56 .isEqualTo("EMERGENCY_LANE_KEEP_ASSIST_ENABLED"); in testToString()
59 .isEqualTo("EMERGENCY_LANE_KEEP_ASSIST_STATE"); in testToString()
61 .isEqualTo("CRUISE_CONTROL_ENABLED"); in testToString()
63 .isEqualTo("CRUISE_CONTROL_TYPE"); in testToString()
65 .isEqualTo("CRUISE_CONTROL_STATE"); in testToString()
67 .isEqualTo("CRUISE_CONTROL_COMMAND"); in testToString()
69 .isEqualTo("CRUISE_CONTROL_TARGET_SPEED"); in testToString()
72 .isEqualTo("ADAPTIVE_CRUISE_CONTROL_TARGET_TIME_GAP"); in testToString()
75 .isEqualTo("ADAPTIVE_CRUISE_CONTROL_LEAD_VEHICLE_MEASURED_DISTANCE"); in testToString()
[all …]
DVehicleGearTest.java37 assertThat(VehicleGear.toString(VehicleGear.GEAR_UNKNOWN)).isEqualTo("GEAR_UNKNOWN"); in testToString()
38 assertThat(VehicleGear.toString(VehicleGear.GEAR_NEUTRAL)).isEqualTo("GEAR_NEUTRAL"); in testToString()
39 assertThat(VehicleGear.toString(VehicleGear.GEAR_REVERSE)).isEqualTo("GEAR_REVERSE"); in testToString()
40 assertThat(VehicleGear.toString(VehicleGear.GEAR_PARK)).isEqualTo("GEAR_PARK"); in testToString()
41 assertThat(VehicleGear.toString(VehicleGear.GEAR_DRIVE)).isEqualTo("GEAR_DRIVE"); in testToString()
42 assertThat(VehicleGear.toString(VehicleGear.GEAR_FIRST)).isEqualTo("GEAR_FIRST"); in testToString()
43 assertThat(VehicleGear.toString(VehicleGear.GEAR_SECOND)).isEqualTo("GEAR_SECOND"); in testToString()
44 assertThat(VehicleGear.toString(VehicleGear.GEAR_THIRD)).isEqualTo("GEAR_THIRD"); in testToString()
45 assertThat(VehicleGear.toString(VehicleGear.GEAR_FOURTH)).isEqualTo("GEAR_FOURTH"); in testToString()
46 assertThat(VehicleGear.toString(VehicleGear.GEAR_FIFTH)).isEqualTo("GEAR_FIFTH"); in testToString()
[all …]
DWindshieldWipersSwitchTest.java34 .isEqualTo("OTHER"); in testToString()
35 assertThat(WindshieldWipersSwitch.toString(WindshieldWipersSwitch.OFF)).isEqualTo("OFF"); in testToString()
36 assertThat(WindshieldWipersSwitch.toString(WindshieldWipersSwitch.MIST)).isEqualTo("MIST"); in testToString()
38 .isEqualTo("INTERMITTENT_LEVEL_1"); in testToString()
40 .isEqualTo("INTERMITTENT_LEVEL_2"); in testToString()
42 .isEqualTo("INTERMITTENT_LEVEL_3"); in testToString()
44 .isEqualTo("INTERMITTENT_LEVEL_4"); in testToString()
46 .isEqualTo("INTERMITTENT_LEVEL_5"); in testToString()
48 .isEqualTo("CONTINUOUS_LEVEL_1"); in testToString()
50 .isEqualTo("CONTINUOUS_LEVEL_2"); in testToString()
[all …]
DEvChargingConnectorTypeTest.java36 .isEqualTo("UNKNOWN"); in testToString()
38 .isEqualTo("IEC_TYPE_1_AC"); in testToString()
40 .isEqualTo("IEC_TYPE_2_AC"); in testToString()
42 .isEqualTo("IEC_TYPE_3_AC"); in testToString()
44 .isEqualTo("IEC_TYPE_4_DC"); in testToString()
46 .isEqualTo("IEC_TYPE_1_CCS_DC"); in testToString()
48 .isEqualTo("IEC_TYPE_2_CCS_DC"); in testToString()
50 .isEqualTo("TESLA_HPWC"); in testToString()
52 .isEqualTo("TESLA_ROADSTER"); in testToString()
54 .isEqualTo("TESLA_SUPERCHARGER"); in testToString()
[all …]
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/
DTestTheme.java103 assertThat(mName).isEqualTo("Base Theme"); in assertThemeBaseValues()
104 assertThat(mBaseColor).isEqualTo(COLOR_BLACK); in assertThemeBaseValues()
105 assertThat(mNavigationBarColor).isEqualTo(COLOR_RED); in assertThemeBaseValues()
106 assertThat(mStatusBarColor).isEqualTo(COLOR_GREEN); in assertThemeBaseValues()
107 assertThat(mWindowBackground).isEqualTo(mBaseColor); in assertThemeBaseValues()
111 assertThat(mName).isEqualTo("Base Theme Polish"); in assertThemeBaseValues_pl()
112 assertThat(mBaseColor).isEqualTo(COLOR_GREEN); in assertThemeBaseValues_pl()
113 assertThat(mNavigationBarColor).isEqualTo(COLOR_BLACK); in assertThemeBaseValues_pl()
114 assertThat(mStatusBarColor).isEqualTo(COLOR_RED); in assertThemeBaseValues_pl()
115 assertThat(mWindowBackground).isEqualTo(mBaseColor); in assertThemeBaseValues_pl()
[all …]
/cts/tests/tests/appop/src/android/app/appops/cts/
DDiscreteAppopsTest.kt202 assertThat(allOps!!.uidCount).isEqualTo(1) in <lambda>()
206 assertThat(uidOps.uid).isEqualTo(uid) in <lambda>()
207 assertThat(uidOps.packageCount).isEqualTo(1) in <lambda>()
211 assertThat(packageOps.packageName).isEqualTo(PACKAGE_NAME) in <lambda>()
212 assertThat(packageOps.opCount).isEqualTo(1) in <lambda>()
216 assertThat(op.opName).isEqualTo(OPSTR_RESERVED_FOR_TESTING) in <lambda>()
217 assertThat(op.discreteAccessCount).isEqualTo(1) in <lambda>()
220 assertThat(discrete.getLastDuration(OP_FLAGS_ALL)).isEqualTo(-1) in <lambda>()
221 assertThat(discrete.getLastAccessTime(OP_FLAGS_ALL)).isEqualTo(timeStamp) in <lambda>()
226 assertThat(allOps!!.uidCount).isEqualTo(1) in <lambda>()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DPaint_TextBoundsTest.java76 assertThat(r.left).isEqualTo(0); in testSingleChar_1em()
77 assertThat(r.top).isEqualTo(-100); in testSingleChar_1em()
78 assertThat(r.right).isEqualTo(100); in testSingleChar_1em()
79 assertThat(r.bottom).isEqualTo(0); in testSingleChar_1em()
87 assertThat(r.left).isEqualTo(0); in testSingleChar_2em()
88 assertThat(r.top).isEqualTo(-200); in testSingleChar_2em()
89 assertThat(r.right).isEqualTo(200); in testSingleChar_2em()
90 assertThat(r.bottom).isEqualTo(0); in testSingleChar_2em()
98 assertThat(r.left).isEqualTo(100); in testSingleChar_2em_with_lsb()
99 assertThat(r.top).isEqualTo(-200); in testSingleChar_2em_with_lsb()
[all …]
/cts/tests/wallpapereffectsgeneration/src/android/wallpapereffectsgeneration/cts/
DCinematicEffectResponseTest.java113 assertThat(response.getStatusCode()).isEqualTo(statusCode); in testCreateCinematicEffectResponse()
114 assertThat(response.getTaskId()).isEqualTo(taskId); in testCreateCinematicEffectResponse()
115 assertThat(response.getImageContentType()).isEqualTo(imageContentType); in testCreateCinematicEffectResponse()
117 assertThat(response.getTexturedMeshes().size()).isEqualTo(1); in testCreateCinematicEffectResponse()
119 assertThat(mesh.getBitmap()).isEqualTo(bmp); in testCreateCinematicEffectResponse()
120 assertThat(mesh.getIndices()).isEqualTo(indices); in testCreateCinematicEffectResponse()
121 assertThat(mesh.getVertices()).isEqualTo(vertices); in testCreateCinematicEffectResponse()
122 assertThat(mesh.getIndicesLayoutType()).isEqualTo(indicesLayoutType); in testCreateCinematicEffectResponse()
123 assertThat(mesh.getVerticesLayoutType()).isEqualTo(verticesLayoutType); in testCreateCinematicEffectResponse()
126 assertThat(startAttributes.getAnchorPointInWorldSpace()).isEqualTo( in testCreateCinematicEffectResponse()
[all …]
DCameraAttributesTest.java61 assertThat(attributes.getAnchorPointInWorldSpace()).isEqualTo(anchorPointInWorldSpace); in testCreateCameraAttributesRequest()
62 assertThat(attributes.getAnchorPointInOutputUvSpace()).isEqualTo( in testCreateCameraAttributesRequest()
64 assertThat(attributes.getCameraOrbitYawDegrees()).isEqualTo(yaw); in testCreateCameraAttributesRequest()
65 assertThat(attributes.getCameraOrbitPitchDegrees()).isEqualTo(pitch); in testCreateCameraAttributesRequest()
66 assertThat(attributes.getDollyDistanceInWorldSpace()).isEqualTo(dolly); in testCreateCameraAttributesRequest()
67 assertThat(attributes.getVerticalFovDegrees()).isEqualTo(fov); in testCreateCameraAttributesRequest()
68 assertThat(attributes.getFrustumNearInWorldSpace()).isEqualTo(frustumNear); in testCreateCameraAttributesRequest()
69 assertThat(attributes.getFrustumFarInWorldSpace()).isEqualTo(frustumFar); in testCreateCameraAttributesRequest()
78 assertThat(copy.getAnchorPointInWorldSpace()).isEqualTo(anchorPointInWorldSpace); in testCreateCameraAttributesRequest()
79 assertThat(copy.getAnchorPointInOutputUvSpace()).isEqualTo(anchorPointInOutputUvSpace); in testCreateCameraAttributesRequest()
[all …]
/cts/tests/location/location_none/src/android/location/cts/none/
DLocationRequestTest.java39 assertThat(request.getIntervalMillis()).isEqualTo(0); in testBuild_Defaults()
40 assertThat(request.getQuality()).isEqualTo(LocationRequest.QUALITY_BALANCED_POWER_ACCURACY); in testBuild_Defaults()
41 assertThat(request.getMinUpdateIntervalMillis()).isEqualTo(0); in testBuild_Defaults()
42 assertThat(request.getDurationMillis()).isEqualTo(Long.MAX_VALUE); in testBuild_Defaults()
43 assertThat(request.getMaxUpdates()).isEqualTo(Integer.MAX_VALUE); in testBuild_Defaults()
44 assertThat(request.getMinUpdateDistanceMeters()).isEqualTo(0f); in testBuild_Defaults()
45 assertThat(request.isHiddenFromAppOps()).isEqualTo(false); in testBuild_Defaults()
46 assertThat(request.isAdasGnssBypass()).isEqualTo(false); in testBuild_Defaults()
47 assertThat(request.isLocationSettingsIgnored()).isEqualTo(false); in testBuild_Defaults()
48 assertThat(request.isLowPower()).isEqualTo(false); in testBuild_Defaults()
[all …]
/cts/hostsidetests/media/src/android/media/metrics/cts/
DMediaMetricsAtomTests.java111 assertThat(data.size()).isEqualTo(1); in testPlaybackStateEvent_default()
115 assertThat(result.getPlaybackState().toString()).isEqualTo("NOT_STARTED"); in testPlaybackStateEvent_default()
116 assertThat(result.getTimeSincePlaybackCreatedMillis()).isEqualTo(-1L); in testPlaybackStateEvent_default()
130 assertThat(data.size()).isEqualTo(1); in testPlaybackStateEvent()
134 assertThat(result.getPlaybackState().toString()).isEqualTo("JOINING_FOREGROUND"); in testPlaybackStateEvent()
135 assertThat(result.getTimeSincePlaybackCreatedMillis()).isEqualTo(1763L); in testPlaybackStateEvent()
151 assertThat(data.size()).isEqualTo(1); in testBundleSessionPlaybackStateEvent()
155 assertThat(result.getPlaybackState().toString()).isEqualTo("JOINING_FOREGROUND"); in testBundleSessionPlaybackStateEvent()
156 assertThat(result.getTimeSincePlaybackCreatedMillis()).isEqualTo(1763L); in testBundleSessionPlaybackStateEvent()
171 assertThat(data.size()).isEqualTo(1); in testPlaybackErrorEvent_default()
[all …]
/cts/tests/pdf/module/src/android/graphics/pdf/cts/module/
DFormWidgetInfoTest.java45 assertThat(pushButton.getWidgetType()).isEqualTo(FormWidgetInfo.WIDGET_TYPE_PUSHBUTTON); in testPushButton()
46 assertThat(pushButton.getWidgetIndex()).isEqualTo(4); in testPushButton()
47 assertThat(pushButton.getWidgetRect()).isEqualTo(widgetRect); in testPushButton()
48 assertThat(pushButton.getTextValue()).isEqualTo(textValue); in testPushButton()
49 assertThat(pushButton.getAccessibilityLabel()).isEqualTo(a11yLabel); in testPushButton()
58 assertThat(pushButton.getMaxLength()).isEqualTo(-1); in testPushButton()
59 assertThat(pushButton.getFontSize()).isEqualTo(0f); in testPushButton()
73 assertThat(pushButton.getWidgetType()).isEqualTo(FormWidgetInfo.WIDGET_TYPE_PUSHBUTTON); in testPushButton_readOnly()
74 assertThat(pushButton.getWidgetIndex()).isEqualTo(2); in testPushButton_readOnly()
75 assertThat(pushButton.getWidgetRect()).isEqualTo(widgetRect); in testPushButton_readOnly()
[all …]
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/unit/
DViewNodeTest.java63 assertThat(node.getAutofillId()).isEqualTo(initialId); in testAutofillIdMethods_orphanView()
68 assertThat(node.getAutofillId()).isEqualTo(newId); in testAutofillIdMethods_orphanView()
72 assertThat(node.getAutofillId()).isEqualTo(new AutofillId(66, 6)); in testAutofillIdMethods_orphanView()
73 assertThat(node.getParentAutofillId()).isEqualTo(new AutofillId(66)); in testAutofillIdMethods_orphanView()
91 assertThat(node.getAutofillId()).isEqualTo(initialChildId); in testAutofillIdMethods_parentedView()
92 assertThat(node.getParentAutofillId()).isEqualTo(initialParentId); in testAutofillIdMethods_parentedView()
96 assertThat(node.getAutofillId()).isEqualTo(newChildId); in testAutofillIdMethods_parentedView()
97 assertThat(node.getParentAutofillId()).isEqualTo(initialParentId); in testAutofillIdMethods_parentedView()
101 assertThat(node.getAutofillId()).isEqualTo(newChildId); in testAutofillIdMethods_parentedView()
102 assertThat(node.getParentAutofillId()).isEqualTo(initialParentId); in testAutofillIdMethods_parentedView()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/unittests/
DCompositeUserDataTest.java90 assertThat(categoryIds.length).isEqualTo(1); in testMerge_nullGenericUserData()
91 assertThat(categoryIds[0]).isEqualTo(mCategoryId3); in testMerge_nullGenericUserData()
94 assertThat(values.length).isEqualTo(1); in testMerge_nullGenericUserData()
95 assertThat(values[0]).isEqualTo(mValue3); in testMerge_nullGenericUserData()
107 assertThat(categoryIds.length).isEqualTo(2); in testMerge_bothEmpty()
108 assertThat(categoryIds[0]).isEqualTo(mCategoryId3); in testMerge_bothEmpty()
109 assertThat(categoryIds[1]).isEqualTo(mCategoryId); in testMerge_bothEmpty()
112 assertThat(values.length).isEqualTo(2); in testMerge_bothEmpty()
113 assertThat(values[0]).isEqualTo(mValue3); in testMerge_bothEmpty()
114 assertThat(values[1]).isEqualTo(mValue); in testMerge_bothEmpty()
[all …]
/cts/tests/tests/tv/src/android/media/tv/interactive/cts/
DTvInteractiveAppServiceTest.java559 .isEqualTo(actual.getRecordingId()); in compareTvRecordingInfo()
561 .isEqualTo(actual.getRecordingUri()); in compareTvRecordingInfo()
563 .isEqualTo(actual.getRecordingStartTimeMillis()); in compareTvRecordingInfo()
565 .isEqualTo(actual.getRecordingDurationMillis()); in compareTvRecordingInfo()
567 .isEqualTo(actual.getRepeatDays()); in compareTvRecordingInfo()
569 .isEqualTo(actual.getChannelUri()); in compareTvRecordingInfo()
571 .isEqualTo(actual.getDescription()); in compareTvRecordingInfo()
573 .isEqualTo(actual.getEndPaddingMillis()); in compareTvRecordingInfo()
575 .isEqualTo(actual.getStartPaddingMillis()); in compareTvRecordingInfo()
577 .isEqualTo(actual.getScheduledStartTimeMillis()); in compareTvRecordingInfo()
[all …]
/cts/tests/translation/src/android/translation/cts/unittests/
DTranslationResponseTest.java61 assertThat(response.getTranslationResponseValues().size()).isEqualTo(0); in testBuilder_validViewTranslationResponse()
62 assertThat(response.getViewTranslationResponses().size()).isEqualTo(1); in testBuilder_validViewTranslationResponse()
66 assertThat(viewResponse.getAutofillId()).isEqualTo(new AutofillId(17)); in testBuilder_validViewTranslationResponse()
67 assertThat(viewResponse.getKeys().size()).isEqualTo(1); in testBuilder_validViewTranslationResponse()
68 assertThat(viewResponse.getValue("sample id").getText()).isEqualTo("sample text"); in testBuilder_validViewTranslationResponse()
83 assertThat(response.getTranslationResponseValues().size()).isEqualTo(0); in testBuilder_errorViewTranslationResponse()
84 assertThat(response.getViewTranslationResponses().size()).isEqualTo(1); in testBuilder_errorViewTranslationResponse()
88 assertThat(viewResponse.getAutofillId()).isEqualTo(new AutofillId(42)); in testBuilder_errorViewTranslationResponse()
89 assertThat(viewResponse.getKeys().size()).isEqualTo(1); in testBuilder_errorViewTranslationResponse()
91 .isEqualTo(TranslationResponseValue.STATUS_ERROR); in testBuilder_errorViewTranslationResponse()
[all …]
DTranslationRequestTest.java52 assertThat(request.getTranslationRequestValues().size()).isEqualTo(0); in testBuilder_validViewTranslationRequest()
53 assertThat(request.getViewTranslationRequests().size()).isEqualTo(1); in testBuilder_validViewTranslationRequest()
57 assertThat(viewRequest.getAutofillId()).isEqualTo(new AutofillId(17)); in testBuilder_validViewTranslationRequest()
58 assertThat(viewRequest.getKeys().size()).isEqualTo(1); in testBuilder_validViewTranslationRequest()
60 assertThat(viewRequest.getValue("sample id").getText().toString()).isEqualTo("sample text"); in testBuilder_validViewTranslationRequest()
71 assertThat(request.getTranslationRequestValues().size()).isEqualTo(1); in testBuilder_validTranslationRequestValue()
72 assertThat(request.getViewTranslationRequests().size()).isEqualTo(0); in testBuilder_validTranslationRequestValue()
76 assertThat(value.getText().toString()).isEqualTo("hello"); in testBuilder_validTranslationRequestValue()
85 assertThat(request.getFlags()).isEqualTo(TranslationRequest.FLAG_PARTIAL_RESPONSES); in testBuilder_validFlags()
86 assertThat(request.getTranslationRequestValues().size()).isEqualTo(0); in testBuilder_validFlags()
[all …]
/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/
DSelectionEventTest.java38 assertThat(event.getEventType()).isEqualTo(SelectionEvent.ACTION_COPY); in testSelectionEvent()
39 assertThat(event.getStart()).isEqualTo(0); in testSelectionEvent()
40 assertThat(event.getEnd()).isEqualTo(0); in testSelectionEvent()
41 assertThat(event.getInvocationMethod()).isEqualTo(SelectionEvent.INVOCATION_UNKNOWN); in testSelectionEvent()
42 assertThat(event.getEntityType()).isEqualTo(TextClassifier.TYPE_UNKNOWN); in testSelectionEvent()
43 assertThat(event.getEventIndex()).isEqualTo(0); in testSelectionEvent()
44 assertThat(event.getPackageName()).isEqualTo(""); in testSelectionEvent()
45 assertThat(event.getSmartStart()).isEqualTo(0); in testSelectionEvent()
46 assertThat(event.getSmartEnd()).isEqualTo(0); in testSelectionEvent()
47 assertThat(event.getWidgetType()).isEqualTo(TextClassifier.WIDGET_TYPE_UNKNOWN); in testSelectionEvent()
[all …]
DTextClassifierEventTest.java141 assertThat(event.getEventCategory()).isEqualTo(TextClassifierEvent.CATEGORY_SELECTION); in assertMinimalTextSelectionEvent()
142 assertThat(event.getEventType()).isEqualTo(TextClassifierEvent.TYPE_SELECTION_DESTROYED); in assertMinimalTextSelectionEvent()
143 assertThat(event.getEventIndex()).isEqualTo(0); in assertMinimalTextSelectionEvent()
145 assertThat(event.getRelativeWordStartIndex()).isEqualTo(0); in assertMinimalTextSelectionEvent()
146 assertThat(event.getRelativeWordEndIndex()).isEqualTo(0); in assertMinimalTextSelectionEvent()
147 assertThat(event.getRelativeSuggestedWordStartIndex()).isEqualTo(0); in assertMinimalTextSelectionEvent()
148 assertThat(event.getRelativeSuggestedWordEndIndex()).isEqualTo(0); in assertMinimalTextSelectionEvent()
151 assertThat(event.getExtras().size()).isEqualTo(0); in assertMinimalTextSelectionEvent()
184 assertThat(event.getEventCategory()).isEqualTo(TextClassifierEvent.CATEGORY_SELECTION); in assertFullTextSelectionEvent()
185 assertThat(event.getEventType()).isEqualTo(TextClassifierEvent.TYPE_SELECTION_STARTED); in assertFullTextSelectionEvent()
[all …]
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DVirtualInputDeviceConfigTest.java132 assertThat(config.getInputDeviceName()).isEqualTo(DEVICE_NAME); in testConstructorAndGetters_virtualDpadConfig()
133 assertThat(config.getVendorId()).isEqualTo(VENDOR_ID); in testConstructorAndGetters_virtualDpadConfig()
134 assertThat(config.getProductId()).isEqualTo(PRODUCT_ID); in testConstructorAndGetters_virtualDpadConfig()
135 assertThat(config.getAssociatedDisplayId()).isEqualTo(DISPLAY_ID); in testConstructorAndGetters_virtualDpadConfig()
146 assertThat(configFromParcel.getInputDeviceName()).isEqualTo(config.getInputDeviceName()); in testParcel_virtualDpadConfig()
147 assertThat(configFromParcel.getVendorId()).isEqualTo(config.getVendorId()); in testParcel_virtualDpadConfig()
148 assertThat(configFromParcel.getProductId()).isEqualTo(config.getProductId()); in testParcel_virtualDpadConfig()
149 assertThat(configFromParcel.getAssociatedDisplayId()).isEqualTo( in testParcel_virtualDpadConfig()
156 assertThat(config.getInputDeviceName()).isEqualTo(DEVICE_NAME); in testConstructorAndGetters_virtualKeyboardConfig()
157 assertThat(config.getVendorId()).isEqualTo(VENDOR_ID); in testConstructorAndGetters_virtualKeyboardConfig()
[all …]

12345678910>>...51