Home
last modified time | relevance | path

Searched refs:assertThat (Results 1 – 25 of 774) sorted by relevance

12345678910>>...31

/cts/tests/tests/car/src/android/car/cts/
DVehiclePropertyIdsTest.java19 import static com.google.common.truth.Truth.assertThat;
63 assertThat(VehiclePropertyIds.toString(VehiclePropertyIds.INVALID)) in testToString()
65 assertThat(VehiclePropertyIds.toString(VehiclePropertyIds.IGNITION_STATE)) in testToString()
67 assertThat(VehiclePropertyIds.toString(VehiclePropertyIds.INFO_DRIVER_SEAT)) in testToString()
69 assertThat(VehiclePropertyIds.toString(VehiclePropertyIds.INFO_EV_BATTERY_CAPACITY)) in testToString()
71 assertThat(VehiclePropertyIds.toString(VehiclePropertyIds.INFO_EV_CONNECTOR_TYPE)) in testToString()
73 assertThat(VehiclePropertyIds.toString(VehiclePropertyIds.INFO_EV_PORT_LOCATION)) in testToString()
75 assertThat(VehiclePropertyIds.toString(VehiclePropertyIds.INFO_EXTERIOR_DIMENSIONS)) in testToString()
77 assertThat(VehiclePropertyIds.toString(VehiclePropertyIds.INFO_FUEL_CAPACITY)) in testToString()
79 assertThat(VehiclePropertyIds.toString(VehiclePropertyIds.INFO_FUEL_DOOR_LOCATION)) in testToString()
[all …]
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvTrackInfoTest.java19 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/
DDiscreteAppopsTest.kt49 import com.google.common.truth.Truth.assertThat in <lambda>()
198 assertThat(allOps).isNotNull() in <lambda>()
199 assertThat(allOps!!.uidCount).isEqualTo(1) in <lambda>()
202 assertThat(uidOps).isNotNull() in <lambda>()
203 assertThat(uidOps.uid).isEqualTo(uid) in <lambda>()
204 assertThat(uidOps.packageCount).isEqualTo(1) in <lambda>()
207 assertThat(packageOps).isNotNull() in <lambda>()
208 assertThat(packageOps.packageName).isEqualTo(PACKAGE_NAME) in <lambda>()
209 assertThat(packageOps.opCount).isEqualTo(1) in <lambda>()
212 assertThat(op).isNotNull() in <lambda>()
[all …]
DAppOpEventCollectionTest.kt40 import com.google.common.truth.Truth.assertThat
99 assertThat(opEntry.opStr).isEqualTo(OPSTR_WIFI_SCAN) in ensureCorrectOpStr()
113 assertThat(getOpEntry(myUid, myPackage, OPSTR_WIFI_SCAN)!! in switchUidStateWhileOpsAreRunning()
123 assertThat(getOpEntry(myUid, myPackage, OPSTR_WIFI_SCAN)!! in switchUidStateWhileOpsAreRunning()
142 assertThat(attributionOpEntry.getLastAccessForegroundTime(OP_FLAG_SELF)).isIn(before..after) in noteWithAttributionAndCheckOpEntries()
143 assertThat(opEntry.getLastAccessForegroundTime(OP_FLAG_SELF)).isIn(before..after) in noteWithAttributionAndCheckOpEntries()
146 assertThat(attributionOpEntry.getLastAccessForegroundTime(OP_FLAGS_ALL)).isIn(before..after) in noteWithAttributionAndCheckOpEntries()
147 assertThat(opEntry.getLastAccessForegroundTime(OP_FLAGS_ALL)).isIn(before..after) in noteWithAttributionAndCheckOpEntries()
150 assertThat(attributionOpEntry.getLastAccessTime(OP_FLAG_SELF)).isIn(before..after) in noteWithAttributionAndCheckOpEntries()
151 assertThat(opEntry.getLastAccessTime(OP_FLAG_SELF)).isIn(before..after) in noteWithAttributionAndCheckOpEntries()
[all …]
/cts/tests/appsearch/src/com/android/cts/appsearch/external/app/
DGenericDocumentCtsTest.java19 import static com.google.common.truth.Truth.assertThat;
43 assertThat(GenericDocument.getMaxIndexedProperties()).isEqualTo(16); in testMaxIndexedProperties()
74 assertThat(document1).isEqualTo(document2); in testDocumentEquals_identical()
75 assertThat(document1.hashCode()).isEqualTo(document2.hashCode()); in testDocumentEquals_identical()
106 assertThat(document1).isEqualTo(document2); in testDocumentEquals_differentOrder()
107 assertThat(document1.hashCode()).isEqualTo(document2.hashCode()); in testDocumentEquals_differentOrder()
124 assertThat(document1).isNotEqualTo(document2); in testDocumentEquals_failure()
125 assertThat(document1.hashCode()).isNotEqualTo(document2.hashCode()); in testDocumentEquals_failure()
142 assertThat(document1).isNotEqualTo(document2); in testDocumentEquals_repeatedFieldOrder_failure()
143 assertThat(document1.hashCode()).isNotEqualTo(document2.hashCode()); in testDocumentEquals_repeatedFieldOrder_failure()
[all …]
DSetSchemaResponseCtsTest.java19 import static com.google.common.truth.Truth.assertThat;
53 assertThat(original.getDeletedTypes()).containsExactly("delete1"); in testRebuild()
54 assertThat(original.getIncompatibleTypes()).containsExactly("incompatible1"); in testRebuild()
55 assertThat(original.getMigratedTypes()).containsExactly("migrated1"); in testRebuild()
56 assertThat(original.getMigrationFailures()).containsExactly(failure1); in testRebuild()
66 assertThat(original.getDeletedTypes()).containsExactly("delete1"); in testRebuild()
67 assertThat(original.getIncompatibleTypes()).containsExactly("incompatible1"); in testRebuild()
68 assertThat(original.getMigratedTypes()).containsExactly("migrated1"); in testRebuild()
69 assertThat(original.getMigrationFailures()).containsExactly(failure1); in testRebuild()
71 assertThat(rebuild.getDeletedTypes()).containsExactly("delete1", "delete2"); in testRebuild()
[all …]
/cts/hostsidetests/media/src/android/media/metrics/cts/
DMediaMetricsAtomTests.java19 import static com.google.common.truth.Truth.assertThat;
50 assertThat(mCtsBuild).isNotNull(); in setUp()
82 assertThat(data.size()).isEqualTo(1); in testPlaybackStateEvent_default()
83 assertThat(data.get(0).getAtom().hasMediaPlaybackStateChanged()).isTrue(); in testPlaybackStateEvent_default()
86 assertThat(result.getPlaybackState().toString()).isEqualTo("NOT_STARTED"); in testPlaybackStateEvent_default()
87 assertThat(result.getTimeSincePlaybackCreatedMillis()).isEqualTo(-1L); in testPlaybackStateEvent_default()
102 assertThat(data.size()).isEqualTo(1); in testPlaybackStateEvent()
103 assertThat(data.get(0).getAtom().hasMediaPlaybackStateChanged()).isTrue(); in testPlaybackStateEvent()
106 assertThat(result.getPlaybackState().toString()).isEqualTo("JOINING_FOREGROUND"); in testPlaybackStateEvent()
107 assertThat(result.getTimeSincePlaybackCreatedMillis()).isEqualTo(1763L); in testPlaybackStateEvent()
[all …]
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/
DTestTheme.java19 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/tests/textclassifier/src/android/view/textclassifier/cts/
DTextClassifierEventTest.java19 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/autofillservice/src/android/autofillservice/cts/unittests/
DCompositeUserDataTest.java19 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 …]
DAutofillValueTest.java19 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/
DAppOpsUserService.kt32 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/contentcaptureservice/src/android/contentcaptureservice/cts/unit/
DViewNodeTest.java19 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/hostsidetests/rollback/app/src/com/android/cts/rollback/host/app/
DHostTestHelper.java22 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/tests/graphics/src/android/graphics/cts/
DPaint_TextBoundsTest.java19 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/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
DClientTest.java30 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 …]
/cts/tests/translation/src/android/translation/cts/unittests/
DTranslationResponseTest.java21 import static com.google.common.truth.Truth.assertThat;
60 assertThat(response.isFinalResponse()).isTrue(); in testBuilder_validViewTranslationResponse()
61 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()
82 assertThat(response.isFinalResponse()).isTrue(); in testBuilder_errorViewTranslationResponse()
83 assertThat(response.getTranslationResponseValues().size()).isEqualTo(0); in testBuilder_errorViewTranslationResponse()
84 assertThat(response.getViewTranslationResponses().size()).isEqualTo(1); in testBuilder_errorViewTranslationResponse()
[all …]
DTranslationRequestTest.java19 import static com.google.common.truth.Truth.assertThat;
52 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()
59 assertThat(viewRequest.getKeys()).containsExactly("sample id"); 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()
[all …]
DViewTranslationRequestTest.java19 import static com.google.common.truth.Truth.assertThat;
50 assertThat(request.getAutofillId()).isEqualTo(new AutofillId(mAutofillId, 12345L, 0)); in testBuilderVirtualAutofillId_validSetText()
51 assertThat(request.getKeys().size()).isEqualTo(1); in testBuilderVirtualAutofillId_validSetText()
52 assertThat(request.getKeys()).containsExactly("sample id"); in testBuilderVirtualAutofillId_validSetText()
53 assertThat(request.getValue("sample id").getText()).isEqualTo("sample text"); in testBuilderVirtualAutofillId_validSetText()
63 assertThat(request.getAutofillId()).isEqualTo(new AutofillId(17)); in testBuilder_validSetText()
64 assertThat(request.getKeys().size()).isEqualTo(1); in testBuilder_validSetText()
65 assertThat(request.getKeys()).containsExactly("sample id"); in testBuilder_validSetText()
66 assertThat(request.getValue("sample id").getText()).isEqualTo("sample text"); in testBuilder_validSetText()
78 assertThat(request.getAutofillId()).isEqualTo(new AutofillId(17)); in testBuilder_setTextTwice()
[all …]
/cts/tests/location/location_none/src/android/location/cts/none/
DLocationRequestTest.java19 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.isLocationSettingsIgnored()).isEqualTo(false); in testBuild_Defaults()
47 assertThat(request.isLowPower()).isEqualTo(false); in testBuild_Defaults()
[all …]
/cts/tests/tests/notificationlegacy/notificationlegacy30/src/android/app/notification/legacy30/cts/
DNotificationTemplateApi30Test.kt24 import com.google.common.truth.Truth.assertThat in <lambda>()
29 assertThat(mContext.applicationInfo.targetSdkVersion).isEqualTo(30) in <lambda>()
40 assertThat(iconView.visibility).isEqualTo(View.VISIBLE) in <lambda>()
41 assertThat(iconView.width).isEqualTo(iconView.height) in <lambda>()
53 assertThat(iconView.visibility).isEqualTo(View.VISIBLE) in <lambda>()
54 assertThat(iconView.width).isEqualTo(iconView.height) in <lambda>()
68 assertThat(iconView.visibility).isEqualTo(View.VISIBLE) in <lambda>()
69 assertThat(iconView.width).isEqualTo(iconView.height) in <lambda>()
82 assertThat(iconView.visibility).isEqualTo(View.VISIBLE) in <lambda>()
83 assertThat(iconView.width).isEqualTo(iconView.height) in <lambda>()
[all …]
/cts/hostsidetests/appcompat/compatchanges/src/com/android/cts/appcompat/
DCompatChangesOverrideOnReleaseBuildTest.java19 import static com.google.common.truth.Truth.assertThat;
62 assertThat(ctsChange.hasRawOverrides).isFalse(); in testPutPackageOverridesSecurityExceptionNonOverridableChangeId()
63 assertThat(ctsChange.hasOverrides).isFalse(); in testPutPackageOverridesSecurityExceptionNonOverridableChangeId()
77 assertThat(ctsChange.hasRawOverrides).isFalse(); in testPutPackageOverridesSecurityExceptionMissingPermission()
78 assertThat(ctsChange.hasOverrides).isFalse(); in testPutPackageOverridesSecurityExceptionMissingPermission()
92 assertThat(ctsChange.hasRawOverrides).isTrue(); in testPutPackageOverridesForAllVersions()
93 assertThat(ctsChange.rawOverrideStr).isEqualTo("{" + OVERRIDE_PKG + "=true}"); in testPutPackageOverridesForAllVersions()
94 assertThat(ctsChange.hasOverrides).isTrue(); in testPutPackageOverridesForAllVersions()
95 assertThat(ctsChange.overridesStr).isEqualTo("{" + OVERRIDE_PKG + "=true}"); in testPutPackageOverridesForAllVersions()
103 assertThat(ctsChange.hasRawOverrides).isTrue(); in testPutPackageOverridesForAllVersions()
[all …]
/cts/hostsidetests/backup/BackupTransportApp/src/android/cts/backup/backuptransportapp/
DBackupTransportTest.java19 import static com.google.common.truth.Truth.assertThat;
53 assertThat(mBackupTransport.configurationIntent()).isNull(); in testConfigurationIntent_returnsNull()
65 assertThat(mBackupTransport.dataManagementIntent()).isNull(); in testDataManagementIntent_returnsNull()
83 assertThat(mBackupTransport.initializeDevice()).isEqualTo(BackupTransport.TRANSPORT_ERROR); in testInitializeDevice_returnsTransportError()
88 assertThat(mBackupTransport.clearBackupData(null /* packageInfo */)) in testClearBackupData_returnsTransportError()
94 assertThat(mBackupTransport.finishBackup()).isEqualTo(BackupTransport.TRANSPORT_ERROR); in testFinishBackup_returnsTransportError()
99 assertThat(mBackupTransport.requestBackupTime()).isEqualTo(0); in testRequestBackupTime_returnsZero()
104 assertThat( in testPerformBackupWithFlags_returnsTransportError()
112 assertThat(mBackupTransport.performBackup(null /* packageInfo */, null /* inFd */)) in testPerformBackup_returnsTransportError()
118 assertThat(mBackupTransport.getAvailableRestoreSets()).isNull(); in testGetAvailableRestoreSets_returnsNull()
[all …]
/cts/tests/admin/src/android/admin/cts/
DDeviceAdminInfoTest.java19 import static com.google.common.truth.Truth.assertThat;
86 assertThat(mComponent).isEqualTo(info.getComponent()); in testDeviceAdminInfo()
87 assertThat(mComponent.getPackageName()).isEqualTo(info.getPackageName()); in testDeviceAdminInfo()
88 assertThat(mComponent.getClassName()).isEqualTo(info.getReceiverName()); in testDeviceAdminInfo()
90 assertThat(info.supportsTransferOwnership()).isFalse(); in testDeviceAdminInfo()
91 assertThat(info.usesPolicy(DeviceAdminInfo.USES_POLICY_FORCE_LOCK)).isTrue(); in testDeviceAdminInfo()
92 assertThat(info.usesPolicy(DeviceAdminInfo.USES_POLICY_LIMIT_PASSWORD)).isTrue(); in testDeviceAdminInfo()
93 assertThat(info.usesPolicy(DeviceAdminInfo.USES_POLICY_RESET_PASSWORD)).isTrue(); in testDeviceAdminInfo()
94 assertThat(info.usesPolicy(DeviceAdminInfo.USES_POLICY_WATCH_LOGIN)).isTrue(); in testDeviceAdminInfo()
95 assertThat(info.usesPolicy(DeviceAdminInfo.USES_POLICY_WIPE_DATA)).isTrue(); in testDeviceAdminInfo()
[all …]
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/
DMmsTest.java23 import static com.google.common.truth.Truth.assertThat;
81 assertThat(uri).isNotNull(); in testMmsInsert_insertSendReqSucceeds()
85 assertThat(cursor.getCount()).isEqualTo(1); in testMmsInsert_insertSendReqSucceeds()
89 assertThat(actualSubject).isEqualTo(expectedSubject); in testMmsInsert_insertSendReqSucceeds()
98 assertThat(uri).isNotNull(); in testMmsDelete()
102 assertThat(deletedRows).isEqualTo(1); in testMmsDelete()
106 assertThat(cursor.getCount()).isEqualTo(0); in testMmsDelete()
116 assertThat(uri).isNotNull(); in testMmsQuery_canViewNotificationIndMessages()
124 assertThat(mmsUri).isNotNull(); in testMmsInsert_canInsertTextMms()
130 assertThat(insertPartUri).isNotNull(); in testMmsInsert_canInsertTextMms()
[all …]

12345678910>>...31