/cts/tests/tests/text/src/android/text/cts/ |
D | LayoutUseBoundsTest.kt | 29 import com.google.common.truth.Truth.assertThat 98 assertThat(it.useBoundsForWidth).isTrue() in buildLayout() 99 assertThat(it.shiftDrawingOffsetForStartOverhang) in buildLayout() 113 assertThat(it.useBoundsForWidth).isTrue() in <lambda>() 114 assertThat(it.shiftDrawingOffsetForStartOverhang) 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() [all …]
|
D | LayoutBuilderTest.kt | 36 import com.google.common.truth.Truth.assertThat 59 assertThat(layout).isInstanceOf(BoringLayout::class.java) in makeBuilder() 60 assertThat(layout.text).isEqualTo(BORING_TEXT) in makeBuilder() 61 assertThat(layout.paint).isSameInstanceAs(PAINT) in makeBuilder() 62 assertThat(layout.width).isEqualTo(WIDTH) in makeBuilder() 68 assertThat(layout).isInstanceOf(StaticLayout::class.java) in buildStaticLayout() 69 assertThat(layout.text).isEqualTo(STATIC_LAYOUT_TEXT) in buildStaticLayout() 70 assertThat(layout.paint).isSameInstanceAs(PAINT) in buildStaticLayout() 71 assertThat(layout.width).isEqualTo(WIDTH) in buildStaticLayout() 77 assertThat(layout.alignment).isEqualTo(Alignment.ALIGN_NORMAL) in buildBoringDefaults() [all …]
|
/cts/tests/tests/car/src/android/car/cts/ |
D | VehiclePropertyIdsTest.java | 21 import static com.google.common.truth.Truth.assertThat; 52 assertThat(VehiclePropertyIds.toString(VehiclePropertyIds.INVALID)) in testToString() 54 assertThat(VehiclePropertyIds.toString( in testToString() 57 assertThat(VehiclePropertyIds.toString( in testToString() 60 assertThat(VehiclePropertyIds.toString(VehiclePropertyIds.CRUISE_CONTROL_ENABLED)) in testToString() 62 assertThat(VehiclePropertyIds.toString(VehiclePropertyIds.CRUISE_CONTROL_TYPE)) in testToString() 64 assertThat(VehiclePropertyIds.toString(VehiclePropertyIds.CRUISE_CONTROL_STATE)) in testToString() 66 assertThat(VehiclePropertyIds.toString(VehiclePropertyIds.CRUISE_CONTROL_COMMAND)) in testToString() 68 assertThat(VehiclePropertyIds.toString(VehiclePropertyIds.CRUISE_CONTROL_TARGET_SPEED)) in testToString() 70 assertThat(VehiclePropertyIds.toString( in testToString() [all …]
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
D | TvTrackInfoTest.java | 19 import static android.media.tv.cts.TvTrackInfoSubject.assertThat; 49 assertThat(info).hasType(TvTrackInfo.TYPE_AUDIO); in newAudioTrack_default() 50 assertThat(info).hasId("default"); in newAudioTrack_default() 51 assertThat(info).hasAudioChannelCount(0); in newAudioTrack_default() 52 assertThat(info).hasAudioSampleRate(0); in newAudioTrack_default() 53 assertThat(info).hasEncoding(null); in newAudioTrack_default() 54 assertThat(info).hasLanguage(null); in newAudioTrack_default() 55 assertThat(info).isAudioDescription(false); in newAudioTrack_default() 56 assertThat(info).isEncrypted(false); in newAudioTrack_default() 57 assertThat(info).isHardOfHearing(false); in newAudioTrack_default() [all …]
|
/cts/tests/tests/appop/src/android/app/appops/cts/ |
D | DiscreteAppopsTest.kt | 54 import com.google.common.truth.Truth.assertThat in <lambda>() 201 assertThat(allOps).isNotNull() in <lambda>() 202 assertThat(allOps!!.uidCount).isEqualTo(1) in <lambda>() 205 assertThat(uidOps).isNotNull() in <lambda>() 206 assertThat(uidOps.uid).isEqualTo(uid) in <lambda>() 207 assertThat(uidOps.packageCount).isEqualTo(1) in <lambda>() 210 assertThat(packageOps).isNotNull() in <lambda>() 211 assertThat(packageOps.packageName).isEqualTo(PACKAGE_NAME) in <lambda>() 212 assertThat(packageOps.opCount).isEqualTo(1) in <lambda>() 215 assertThat(op).isNotNull() in <lambda>() [all …]
|
/cts/tests/pdf/module/src/android/graphics/pdf/cts/module/ |
D | FormWidgetInfoTest.java | 19 import static com.google.common.truth.Truth.assertThat; 45 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() 52 assertThat(pushButton.isReadOnly()).isFalse(); in testPushButton() 55 assertThat(pushButton.isEditableText()).isFalse(); in testPushButton() 56 assertThat(pushButton.isMultiSelect()).isFalse(); in testPushButton() 57 assertThat(pushButton.isMultiLineText()).isFalse(); in testPushButton() [all …]
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | FontScaleConverterTest.kt | 25 import com.google.common.truth.Truth.assertThat 40 assertThat(table.convertSpToDp(1F)).isWithin(CONVERSION_TOLERANCE).of(2f) in scale200IsTwiceAtSmallSizes() 41 assertThat(table.convertSpToDp(8F)).isWithin(CONVERSION_TOLERANCE).of(16f) in scale200IsTwiceAtSmallSizes() 42 assertThat(table.convertSpToDp(10F)).isWithin(CONVERSION_TOLERANCE).of(20f) in scale200IsTwiceAtSmallSizes() 43 assertThat(table.convertSpToDp(5F)).isWithin(CONVERSION_TOLERANCE).of(10f) in scale200IsTwiceAtSmallSizes() 44 assertThat(table.convertSpToDp(0F)).isWithin(CONVERSION_TOLERANCE).of(0f) in scale200IsTwiceAtSmallSizes() 51 assertThat(table.convertSpToDp(24F)).isAtMost(36F) in scale200IsNonlinearAtLargeSizes() 52 assertThat(table.convertSpToDp(30F)).isAtMost(38F) in scale200IsNonlinearAtLargeSizes() 53 assertThat(table.convertSpToDp(45F)).isAtMost(50F) in scale200IsNonlinearAtLargeSizes() 54 assertThat(table.convertSpToDp(50F)).isAtMost(60F) in scale200IsNonlinearAtLargeSizes() [all …]
|
/cts/tests/appsearch/src/com/android/cts/appsearch/external/app/ |
D | GenericDocumentCtsTest.java | 19 import static com.google.common.truth.Truth.assertThat; 56 assertThat(GenericDocument.getMaxIndexedProperties()).isEqualTo(16); in testMaxIndexedProperties() 87 assertThat(document1).isEqualTo(document2); in testDocumentEquals_identical() 88 assertThat(document1.hashCode()).isEqualTo(document2.hashCode()); in testDocumentEquals_identical() 119 assertThat(document1).isEqualTo(document2); in testDocumentEquals_differentOrder() 120 assertThat(document1.hashCode()).isEqualTo(document2.hashCode()); in testDocumentEquals_differentOrder() 137 assertThat(document1).isNotEqualTo(document2); in testDocumentEquals_failure() 138 assertThat(document1.hashCode()).isNotEqualTo(document2.hashCode()); in testDocumentEquals_failure() 155 assertThat(document1).isNotEqualTo(document2); in testDocumentEquals_repeatedFieldOrder_failure() 156 assertThat(document1.hashCode()).isNotEqualTo(document2.hashCode()); in testDocumentEquals_repeatedFieldOrder_failure() [all …]
|
D | PropertyPathCtsTest.java | 21 import static com.google.common.truth.Truth.assertThat; 40 assertThat(e.getMessage()).startsWith("Malformed path (blank property name)"); in testPropertyPathInvalid() 43 assertThat(e.getMessage()).startsWith("Malformed path (no starting '[')"); in testPropertyPathInvalid() 46 assertThat(e.getMessage()).startsWith("Malformed path (no ending ']')"); in testPropertyPathInvalid() 49 assertThat(e.getMessage()).startsWith("Malformed path (\"\" as path index)"); in testPropertyPathInvalid() 52 assertThat(e.getMessage()).startsWith("Malformed path (\"b\" as path index)"); in testPropertyPathInvalid() 55 assertThat(e.getMessage()).startsWith("Malformed path (path index less than 0)"); in testPropertyPathInvalid() 58 assertThat(e.getMessage()).startsWith("Malformed path (\"0.\" as path index)"); in testPropertyPathInvalid() 61 assertThat(e.getMessage()).startsWith("Malformed path (']' not followed by '.')"); in testPropertyPathInvalid() 64 assertThat(e.getMessage()).startsWith("Malformed path (']' not followed by '.')"); in testPropertyPathInvalid() [all …]
|
D | SearchSpecCtsTest.java | 20 import static com.google.common.truth.Truth.assertThat; 51 assertThat(searchSpec.getTermMatch()).isEqualTo(SearchSpec.TERM_MATCH_PREFIX); in testBuildSearchSpecWithoutTermMatch() 91 assertThat(searchSpec.getTermMatch()).isEqualTo(SearchSpec.TERM_MATCH_PREFIX); in testBuildSearchSpec() 92 assertThat(searchSpec.getFilterNamespaces()) in testBuildSearchSpec() 95 assertThat(searchSpec.getFilterSchemas()) in testBuildSearchSpec() 98 assertThat(searchSpec.getFilterPackageNames()) in testBuildSearchSpec() 101 assertThat(searchSpec.getSnippetCount()).isEqualTo(5); in testBuildSearchSpec() 102 assertThat(searchSpec.getSnippetCountPerProperty()).isEqualTo(10); in testBuildSearchSpec() 103 assertThat(searchSpec.getMaxSnippetSize()).isEqualTo(15); in testBuildSearchSpec() 104 assertThat(searchSpec.getResultCountPerPage()).isEqualTo(42); in testBuildSearchSpec() [all …]
|
/cts/hostsidetests/media/src/android/media/metrics/cts/ |
D | MediaMetricsAtomTests.java | 22 import static com.google.common.truth.Truth.assertThat; 76 assertThat(testInfo.getBuildInfo()).isNotNull(); in installApp() 111 assertThat(data.size()).isEqualTo(1); in testPlaybackStateEvent_default() 112 assertThat(data.get(0).getAtom().hasMediaPlaybackStateChanged()).isTrue(); 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() 131 assertThat(data.get(0).getAtom().hasMediaPlaybackStateChanged()).isTrue(); in testPlaybackStateEvent() 134 assertThat(result.getPlaybackState().toString()).isEqualTo("JOINING_FOREGROUND"); in testPlaybackStateEvent() 135 assertThat(result.getTimeSincePlaybackCreatedMillis()).isEqualTo(1763L); in testPlaybackStateEvent() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/ |
D | TestTheme.java | 19 import static com.google.common.truth.Truth.assertThat; 103 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() [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/unittests/ |
D | CompositeUserDataTest.java | 19 import static com.google.common.truth.Truth.assertThat; 90 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() 97 assertThat(userData.getFieldClassificationAlgorithm()).isNull(); in testMerge_nullGenericUserData() 98 assertThat(userData.getDefaultFieldClassificationArgs()).isNull(); 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() [all …]
|
D | AutofillValueTest.java | 19 import static com.google.common.truth.Truth.assertThat; 39 assertThat(AutofillValue.forText(null)).isNull(); in createTextValue() 41 assertThat(AutofillValue.forText("").isText()).isTrue(); in createTextValue() 42 assertThat(AutofillValue.forText("").isToggle()).isFalse(); in createTextValue() 43 assertThat(AutofillValue.forText("").isList()).isFalse(); in createTextValue() 44 assertThat(AutofillValue.forText("").isDate()).isFalse(); in createTextValue() 47 assertThat(emptyV.getTextValue().toString()).isEqualTo(""); in createTextValue() 50 assertThat(v.getTextValue()).isEqualTo("someText"); in createTextValue() 59 assertThat(AutofillValue.forToggle(true).getToggleValue()).isTrue(); in createToggleValue() 60 assertThat(AutofillValue.forToggle(false).getToggleValue()).isFalse(); in createToggleValue() [all …]
|
/cts/tests/tests/appop/AppThatUsesAppOps/src/android/app/appops/cts/appthatusesappops/ |
D | AppOpsUserService.kt | 32 import com.google.common.truth.Truth.assertThat 105 assertThat(asyncNoted).isEmpty() in noteSyncOpFromNativeCode() 106 assertThat(noted).isEmpty() in noteSyncOpFromNativeCode() 110 assertThat(noted).isEmpty() in noteSyncOpFromNativeCode() 111 assertThat(selfNoted).isEmpty() in noteSyncOpFromNativeCode() 113 assertThat(asyncNoted.map { it.op }).containsExactly(OPSTR_COARSE_LOCATION) in noteSyncOpFromNativeCode() 129 assertThat(asyncNoted.map { it.op }).containsExactly(OPSTR_COARSE_LOCATION) in noteSyncOpFromNativeCode() 131 assertThat(noted).isEmpty() in noteSyncOpFromNativeCode() 132 assertThat(selfNoted).isEmpty() in noteSyncOpFromNativeCode() 140 assertThat(noted.map { it.first.attributionTag to it.first.op }) in noteSyncOpFromNativeCode() [all …]
|
/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/ |
D | TextClassifierEventTest.java | 19 import static com.google.common.truth.Truth.assertThat; 141 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() 144 assertThat(event.getEntityTypes()).isEmpty(); 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() 149 assertThat(event.getResultId()).isNull(); in assertMinimalTextSelectionEvent() [all …]
|
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/unit/ |
D | ViewNodeTest.java | 19 import static com.google.common.truth.Truth.assertThat; 63 assertThat(node.getAutofillId()).isEqualTo(initialId); in testAutofillIdMethods_orphanView() 64 assertThat(node.getParentAutofillId()).isNull(); in testAutofillIdMethods_orphanView() 68 assertThat(node.getAutofillId()).isEqualTo(newId); in testAutofillIdMethods_orphanView() 69 assertThat(node.getParentAutofillId()).isNull(); 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() [all …]
|
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/ |
D | TestApisTest.java | 32 Truth.assertThat(TestApis.users()).isNotNull(); in users_returnsInstance() 37 Truth.assertThat(TestApis.users()).isEqualTo(TestApis.users()); in users_multipleCalls_returnsSameInstance() 42 Truth.assertThat(TestApis.packages()).isNotNull(); in packages_returnsInstance() 47 Truth.assertThat(TestApis.packages()).isEqualTo(TestApis.packages()); in packages_multipleCalls_returnsSameInstance() 52 Truth.assertThat(TestApis.devicePolicy()).isNotNull(); in devicePolicy_returnsInstance() 57 Truth.assertThat(TestApis.devicePolicy()).isEqualTo(TestApis.devicePolicy()); in devicePolicy_multipleCalls_returnsSameInstance() 62 Truth.assertThat(TestApis.permissions()).isNotNull(); in permissions_returnsInstance() 67 Truth.assertThat(TestApis.permissions()).isEqualTo(TestApis.permissions()); in permissions_multipleCalls_returnsSameInstance() 72 Truth.assertThat(TestApis.context()).isNotNull(); in context_returnsInstance() 77 Truth.assertThat(TestApis.context()).isEqualTo(TestApis.context()); in context_multipleCalls_returnsSameInstance() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | Paint_TextBoundsTest.java | 19 import static com.google.common.truth.Truth.assertThat; 76 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() [all …]
|
/cts/tests/wallpapereffectsgeneration/src/android/wallpapereffectsgeneration/cts/ |
D | CinematicEffectResponseTest.java | 19 import static com.google.common.truth.Truth.assertThat; 113 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() [all …]
|
/cts/hostsidetests/rollback/app/src/com/android/cts/rollback/host/app/ |
D | HostTestHelper.java | 22 import static com.android.cts.rollback.lib.RollbackInfoSubject.assertThat; 24 import static com.google.common.truth.Truth.assertThat; 103 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(-1); in testApkOnlyStagedRollback_Phase1_Install() 116 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(2); in testApkOnlyStagedRollback_Phase2_RollBack() 120 assertThat(available).isStaged(); in testApkOnlyStagedRollback_Phase2_RollBack() 121 assertThat(available).packagesContainsExactly( in testApkOnlyStagedRollback_Phase2_RollBack() 123 assertThat(RollbackUtils.getCommittedRollback(TestApp.A)).isNull(); in testApkOnlyStagedRollback_Phase2_RollBack() 127 assertThat(committed).hasRollbackId(available.getRollbackId()); in testApkOnlyStagedRollback_Phase2_RollBack() 128 assertThat(committed).isStaged(); in testApkOnlyStagedRollback_Phase2_RollBack() 129 assertThat(committed).packagesContainsExactly( in testApkOnlyStagedRollback_Phase2_RollBack() [all …]
|
/cts/tests/location/location_none/src/android/location/cts/none/ |
D | LocationRequestTest.java | 19 import static com.google.common.truth.Truth.assertThat; 39 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() [all …]
|
/cts/hostsidetests/neuralnetworks/src/com/android/nn/host/cts/ |
D | NeuralNetworksStatsTests.java | 20 import static com.google.common.truth.Truth.assertThat; 51 assertThat(mCtsBuild).isNotNull(); in setUp() 98 assertThat(atom.getUid()).isGreaterThan(10000); in testAppNeuralNetworksCompilationCompletedNative() 101 assertThat(atom.getModelArchHash()).hasSize(32); in testAppNeuralNetworksCompilationCompletedNative() 102 assertThat(atom.getDeviceId()).isNotEmpty(); in testAppNeuralNetworksCompilationCompletedNative() 103 assertThat(atom.getInputDataClass()) in testAppNeuralNetworksCompilationCompletedNative() 105 assertThat(atom.getOutputDataClass()) in testAppNeuralNetworksCompilationCompletedNative() 112 assertThat(atom.getCompilationTimeSumMillis()).isAtLeast(0); in testAppNeuralNetworksCompilationCompletedNative() 113 assertThat(atom.getCompilationTimeMinMillis()).isAtLeast(0); in testAppNeuralNetworksCompilationCompletedNative() 114 assertThat(atom.getCompilationTimeMaxMillis()).isAtLeast(0); in testAppNeuralNetworksCompilationCompletedNative() [all …]
|
/cts/hostsidetests/appcompat/compatchanges/src/com/android/cts/appcompat/ |
D | AppCompatOverridesServiceTest.java | 20 import static com.google.common.truth.Truth.assertThat; 91 assertThat(ctsChange.hasRawOverrides).isFalse(); in testPackageOverrideFlagPackageInstalledAfterFlagAdded() 98 assertThat(ctsChange.hasRawOverrides).isTrue(); in testPackageOverrideFlagPackageInstalledAfterFlagAdded() 99 assertThat(ctsChange.rawOverrideStr).isEqualTo( in testPackageOverrideFlagPackageInstalledAfterFlagAdded() 101 assertThat(ctsChange.hasOverrides).isTrue(); in testPackageOverrideFlagPackageInstalledAfterFlagAdded() 102 assertThat(ctsChange.overridesStr).isEqualTo( in testPackageOverrideFlagPackageInstalledAfterFlagAdded() 110 assertThat(ctsChange.hasRawOverrides).isFalse(); in testPackageOverrideFlagPackageInstalledAfterFlagAdded() 119 assertThat(ctsChange.hasRawOverrides).isTrue(); in testPackageOverrideFlagForAllVersions() 120 assertThat(ctsChange.rawOverrideStr).isEqualTo( in testPackageOverrideFlagForAllVersions() 122 assertThat(ctsChange.hasOverrides).isTrue(); in testPackageOverrideFlagForAllVersions() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ |
D | ClientTest.java | 30 import static org.junit.Assert.assertThat; 145 assertThat(resolveInfo.size(), is(2)); in testQuery() 146 assertThat(resolveInfo.get(0).activityInfo.packageName, in testQuery() 148 assertThat(resolveInfo.get(0).activityInfo.name, in testQuery() 150 assertThat(resolveInfo.get(0).isInstantAppAvailable, in testQuery() 152 assertThat(resolveInfo.get(1).activityInfo.packageName, in testQuery() 154 assertThat(resolveInfo.get(1).activityInfo.name, in testQuery() 156 assertThat(resolveInfo.get(1).isInstantAppAvailable, in testQuery() 168 assertThat(resolveInfo.size(), is(2)); in testQuery() 169 assertThat(resolveInfo.get(0).activityInfo.packageName, in testQuery() [all …]
|