Home
last modified time | relevance | path

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

123456789

/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 …]
DContentCaptureContextTest.java19 import static com.google.common.truth.Truth.assertThat;
67 assertThat(mBuilder.build()).isNotNull(); in testAfterBuild_setExtras()
73 assertThat(mBuilder.setExtras(mExtras).build()).isNotNull(); in testAfterBuild_build()
79 assertThat(mBuilder.build()).isNotNull(); in testBuild_empty()
85 assertThat(context).isNotNull(); in testGetId()
86 assertThat(context.getLocusId()).isEqualTo(LOCUS_ID); in testGetId()
92 assertThat(builder).isSameAs(mBuilder); in testSetGetBundle()
94 assertThat(context).isNotNull(); in testSetGetBundle()
102 assertThat(builder).isSameAs(mBuilder); in testParcel()
118 assertThat(context).isNotNull(); in testForLocus_valid()
[all …]
/cts/tests/tests/view/src/android/view/textclassifier/cts/
DTextClassifierEventTest.java19 import static com.google.common.truth.Truth.assertThat;
140 assertThat(event.getEventCategory()).isEqualTo(TextClassifierEvent.CATEGORY_SELECTION); in assertMinimalTextSelectionEvent()
141 assertThat(event.getEventType()).isEqualTo(TextClassifierEvent.TYPE_SELECTION_DESTROYED); in assertMinimalTextSelectionEvent()
142 assertThat(event.getEventIndex()).isEqualTo(0); in assertMinimalTextSelectionEvent()
143 assertThat(event.getEntityTypes()).isEmpty(); in assertMinimalTextSelectionEvent()
144 assertThat(event.getRelativeWordStartIndex()).isEqualTo(0); in assertMinimalTextSelectionEvent()
145 assertThat(event.getRelativeWordEndIndex()).isEqualTo(0); in assertMinimalTextSelectionEvent()
146 assertThat(event.getRelativeSuggestedWordStartIndex()).isEqualTo(0); in assertMinimalTextSelectionEvent()
147 assertThat(event.getRelativeSuggestedWordEndIndex()).isEqualTo(0); in assertMinimalTextSelectionEvent()
148 assertThat(event.getResultId()).isNull(); in assertMinimalTextSelectionEvent()
[all …]
DConversationActionsTest.java19 import static com.google.common.truth.Truth.assertThat;
261 assertThat(message.getText().toString()).isEqualTo(TEXT); in assertFullMessage()
262 assertThat(message.getAuthor()).isEqualTo(PERSON); in assertFullMessage()
263 assertThat(message.getExtras().keySet()).containsExactly(TEXT); in assertFullMessage()
264 assertThat(message.getReferenceTime()).isEqualTo(TIME); in assertFullMessage()
268 assertThat(message.getAuthor()).isEqualTo(PERSON); in assertMinimalMessage()
269 assertThat(message.getExtras().isEmpty()).isTrue(); in assertMinimalMessage()
270 assertThat(message.getReferenceTime()).isNull(); in assertMinimalMessage()
281 assertThat(typeConfig.shouldIncludeTypesFromTextClassifier()).isTrue(); in assertFullTypeConfig()
282 assertThat(typeConfig.resolveEntityListModifications(Collections.emptyList())) in assertFullTypeConfig()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/
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 …]
DMultipleFragmentLoginTest.java24 import static com.google.common.truth.Truth.assertThat;
75 assertThat(fillRequest1.data).isNull();
82 assertThat(fillRequest1.contexts.size()).isEqualTo(1);
83 assertThat(findNodeByResourceId(structure, "editText1")).isNotNull();
84 assertThat(findNodeByResourceId(structure, "editText2")).isNotNull();
85 assertThat(findNodeByResourceId(structure, "editText3")).isNull();
86 assertThat(findNodeByResourceId(structure, "editText4")).isNull();
87 assertThat(findNodeByResourceId(structure, "editText5")).isNull();
120 assertThat(fillRequest2.contexts.size()).isEqualTo(2);
122 assertThat(fillRequest2.data.getString("key")).isEqualTo("value1");
[all …]
DViewAttributesTest.java21 import static com.google.common.truth.Truth.assertThat;
63 assertThat(hints).isNull();
67 assertThat(hints).isEqualTo(
72 assertThat(hints).isEqualTo(new String[] {View.AUTOFILL_HINT_PASSWORD});
76 assertThat(hints).isEqualTo(
81 assertThat(hints).isEqualTo(new String[] {"yesterday", "today", "tomorrow", "never"});
98 assertThat(v.getAutofillHints()).isNull();
101 assertThat(v.getAutofillHints()).isNull();
104 assertThat(v.getAutofillHints()).isEqualTo(new String[]{View.AUTOFILL_HINT_PASSWORD});
107 assertThat(v.getAutofillHints()).isEqualTo(new String[]{"custom", "value"});
[all …]
DTextValueSanitizerTest.java19 import static com.google.common.truth.Truth.assertThat;
49 assertThat(sanitizer.sanitize(null)).isNull(); in testSanitize_nullValue()
56 assertThat(sanitizer.sanitize(value)).isNull(); in testSanitize_nonTextValue()
64 assertThat(sanitizer.sanitize(value)).isNull(); in testSanitize_badRegex()
71 assertThat(sanitizer.sanitize(value)).isNull(); in testSanitize_valueMismatch()
78 assertThat(sanitizer.sanitize(AutofillValue.forText("42")).getTextValue()) in testSanitize_simpleMatch()
86 assertThat(sanitizer.sanitize(AutofillValue.forText("blah 42 blaH")).getTextValue()) in testSanitize_multipleMatches()
94 assertThat(sanitizer.sanitize(AutofillValue.forText(" 42 ")).getTextValue()) in testSanitize_groupSubstitutionMatch()
102 assertThat(sanitizer.sanitize(AutofillValue.forText("42 108")).getTextValue()) in testSanitize_groupSubstitutionMatch_withOptionalGroup()
104 assertThat(sanitizer.sanitize(AutofillValue.forText("42108")).getTextValue()) in testSanitize_groupSubstitutionMatch_withOptionalGroup()
[all …]
DAutofillValueTest.java19 import static com.google.common.truth.Truth.assertThat;
94 assertThat(AutofillValue.forText(null)).isNull();
96 assertThat(AutofillValue.forText("").isText()).isTrue();
97 assertThat(AutofillValue.forText("").isToggle()).isFalse();
98 assertThat(AutofillValue.forText("").isList()).isFalse();
99 assertThat(AutofillValue.forText("").isDate()).isFalse();
102 assertThat(emptyV.getTextValue().toString()).isEqualTo("");
105 assertThat(v.getTextValue()).isEqualTo("someText");
114 assertThat(AutofillValue.forToggle(true).getToggleValue()).isTrue();
115 assertThat(AutofillValue.forToggle(false).getToggleValue()).isFalse();
[all …]
DFatActivity.java26 import static com.google.common.truth.Truth.assertThat;
124 assertThat(mViewWithAutofillHints).isNotNull(); in onCreate()
127 assertThat(mRoot.getImportantForAutofill()).isEqualTo(IMPORTANT_FOR_AUTOFILL_AUTO); in onCreate()
128 assertThat(mInput.getImportantForAutofill()).isEqualTo(IMPORTANT_FOR_AUTOFILL_YES); in onCreate()
129 assertThat(mCaptcha.getImportantForAutofill()).isEqualTo(IMPORTANT_FOR_AUTOFILL_NO); in onCreate()
130 assertThat(mImage.getImportantForAutofill()).isEqualTo(IMPORTANT_FOR_AUTOFILL_NO); in onCreate()
131 assertThat(mImportantImage.getImportantForAutofill()).isEqualTo(IMPORTANT_FOR_AUTOFILL_YES); in onCreate()
133 assertThat(mNotImportantContainerExcludingDescendants.getImportantForAutofill()) in onCreate()
135 assertThat(mNotImportantContainerExcludingDescendantsChild.getImportantForAutofill()) in onCreate()
137 assertThat(mNotImportantContainerExcludingDescendantsGrandChild.getImportantForAutofill()) in onCreate()
[all …]
DMultiScreenLoginTest.java29 import static com.google.common.truth.Truth.assertThat;
93 assertThat(fillRequest1.contexts.size()).isEqualTo(1);
104 assertThat(saveRequest1.data.getString("first")).isEqualTo("one");
105 assertThat(saveRequest1.data.getString("last")).isEqualTo("one");
125 assertThat(fillRequest2.contexts.size()).isEqualTo(1);
135 assertThat(saveRequest2.data.getString("first")).isNull();
136 assertThat(saveRequest2.data.getString("second")).isEqualTo("two");
137 assertThat(saveRequest2.data.getString("last")).isEqualTo("two");
165 assertThat(fillRequest1.contexts.size()).isEqualTo(1);
167 assertThat(component1).isEqualTo(mActivity.getComponentName());
[all …]
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
DClientTest.java29 import static org.junit.Assert.assertThat;
139 assertThat(resolveInfo.size(), is(2)); in testQuery()
140 assertThat(resolveInfo.get(0).activityInfo.packageName, in testQuery()
142 assertThat(resolveInfo.get(0).activityInfo.name, in testQuery()
144 assertThat(resolveInfo.get(0).isInstantAppAvailable, in testQuery()
146 assertThat(resolveInfo.get(1).activityInfo.packageName, in testQuery()
148 assertThat(resolveInfo.get(1).activityInfo.name, in testQuery()
150 assertThat(resolveInfo.get(1).isInstantAppAvailable, in testQuery()
162 assertThat(resolveInfo.size(), is(2)); in testQuery()
163 assertThat(resolveInfo.get(0).activityInfo.packageName, in testQuery()
[all …]
/cts/hostsidetests/rollback/app/src/com/android/cts/rollback/host/app/
DHostTestHelper.java19 import static com.android.cts.rollback.lib.RollbackInfoSubject.assertThat;
21 import static com.google.common.truth.Truth.assertThat;
75 assertThat(Utils.getInstalledVersion(TestApp.A)).isEqualTo(-1); in testApkOnlyEnableRollback()
91 assertThat(Utils.getInstalledVersion(TestApp.A)).isEqualTo(2); in testApkOnlyCommitRollback()
93 assertThat(available).isStaged(); in testApkOnlyCommitRollback()
94 assertThat(available).packagesContainsExactly( in testApkOnlyCommitRollback()
96 assertThat(Utils.getCommittedRollback(TestApp.A)).isNull(); in testApkOnlyCommitRollback()
100 assertThat(committed).hasRollbackId(available.getRollbackId()); in testApkOnlyCommitRollback()
101 assertThat(committed).isStaged(); in testApkOnlyCommitRollback()
102 assertThat(committed).packagesContainsExactly( in testApkOnlyCommitRollback()
[all …]
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/
DClientTest.java23 import static org.junit.Assert.assertThat;
99 assertThat(resolveInfo.size(), is(2)); in testQuery()
100 assertThat(resolveInfo.get(0).activityInfo.packageName, in testQuery()
102 assertThat(resolveInfo.get(0).activityInfo.name, in testQuery()
104 assertThat(resolveInfo.get(0).isInstantAppAvailable, in testQuery()
106 assertThat(resolveInfo.get(1).activityInfo.packageName, in testQuery()
108 assertThat(resolveInfo.get(1).activityInfo.name, in testQuery()
110 assertThat(resolveInfo.get(1).isInstantAppAvailable, in testQuery()
124 assertThat(resolveInfo.size(), is(2)); in testQuery()
125 assertThat(resolveInfo.get(0).activityInfo.packageName, in testQuery()
[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/appop/src/android/app/appops/cts/
DHistoricalAppopsTest.kt30 import com.google.common.truth.Truth.assertThat in <lambda>()
164 assertThat(firstOps).isNotNull() in <lambda>()
165 assertThat(firstOps!!.uidCount).isEqualTo(0) in <lambda>()
198 assertThat(fifthOps).isNotNull() in <lambda>()
278 assertThat(allOps).isNotNull() in <lambda>()
279 assertThat(allOps!!.uidCount).isEqualTo(1) in <lambda>()
280 assertThat(allOps.beginTimeMillis).isEqualTo(beginTimeMillis) in <lambda>()
281 assertThat(allOps.endTimeMillis).isGreaterThan(beginTimeMillis) in <lambda>()
284 assertThat(uidOps).isNotNull() in <lambda>()
285 assertThat(uidOps.uid).isEqualTo(Process.myUid()) in <lambda>()
[all …]
/cts/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/
DTimeoutTest.java19 import static com.google.common.truth.Truth.assertThat;
69 assertThat(timeout.ms()).isEqualTo(1); in testGetters()
71 assertThat(timeout.getMaxValue()).isEqualTo(5); in testGetters()
72 assertThat(timeout.getName()).isEqualTo(NAME); in testGetters()
79 assertThat(timeout.increase()).isEqualTo(1); in testIncrease()
80 assertThat(timeout.ms()).isEqualTo(2); in testIncrease()
81 assertThat(timeout.increase()).isEqualTo(2); in testIncrease()
82 assertThat(timeout.ms()).isEqualTo(4); in testIncrease()
84 assertThat(timeout.increase()).isEqualTo(4); in testIncrease()
85 assertThat(timeout.ms()).isEqualTo(5); in testIncrease()
[all …]
/cts/common/device-side/util/tests/src/com/android/compatibility/common/util/
DTimeoutTest.java19 import static com.google.common.truth.Truth.assertThat;
69 assertThat(timeout.ms()).isEqualTo(1); in testGetters()
71 assertThat(timeout.getMaxValue()).isEqualTo(5); in testGetters()
72 assertThat(timeout.getName()).isEqualTo(NAME); in testGetters()
79 assertThat(timeout.increase()).isEqualTo(1); in testIncrease()
80 assertThat(timeout.ms()).isEqualTo(2); in testIncrease()
81 assertThat(timeout.increase()).isEqualTo(2); in testIncrease()
82 assertThat(timeout.ms()).isEqualTo(4); in testIncrease()
84 assertThat(timeout.increase()).isEqualTo(4); in testIncrease()
85 assertThat(timeout.ms()).isEqualTo(5); in testIncrease()
[all …]
/cts/tests/rollback/src/android/server/cts/rollback/
DRollbackManagerTest.java19 import static com.android.cts.rollback.lib.RollbackInfoSubject.assertThat;
21 import static com.google.common.truth.Truth.assertThat;
79 assertThat(Utils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testBasic()
80 assertThat(Utils.getAvailableRollback(TestApp.A)).isNull(); in testBasic()
81 assertThat(Utils.getCommittedRollback(TestApp.A)).isNull(); in testBasic()
84 assertThat(Utils.getInstalledVersion(TestApp.A)).isEqualTo(2); in testBasic()
86 assertThat(available).isNotNull(); in testBasic()
87 assertThat(available).isNotStaged(); in testBasic()
88 assertThat(available).packagesContainsExactly( in testBasic()
90 assertThat(Utils.getCommittedRollback(TestApp.A)).isNull(); in testBasic()
[all …]
/cts/tests/attentionservice/src/android/attentionservice/cts/
DCtsAttentionServiceDeviceTest.java22 import static com.google.common.truth.Truth.assertThat;
77 assertThat(CtsTestAttentionService.hasPendingChecks()).isFalse(); in testAttentionService_OnSuccess()
81 assertThat(CtsTestAttentionService.hasPendingChecks()).isTrue(); in testAttentionService_OnSuccess()
88 assertThat(getLastTestCallbackCode()).isEqualTo(AttentionService.ATTENTION_SUCCESS_PRESENT); in testAttentionService_OnSuccess()
94 assertThat(CtsTestAttentionService.hasPendingChecks()).isFalse(); in testAttentionService_OnCancelledFromManager()
98 assertThat(CtsTestAttentionService.hasPendingChecks()).isTrue(); in testAttentionService_OnCancelledFromManager()
104 assertThat(CtsTestAttentionService.hasPendingChecks()).isFalse(); in testAttentionService_OnCancelledFromManager()
108 assertThat(getLastTestCallbackCode()).isEqualTo( in testAttentionService_OnCancelledFromManager()
115 assertThat(CtsTestAttentionService.hasPendingChecks()).isFalse(); in testAttentionService_OnCancelledFromService()
119 assertThat(CtsTestAttentionService.hasPendingChecks()).isTrue(); in testAttentionService_OnCancelledFromService()
[all …]
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/
DSplitAppTest.java87 assertThat(resources, notNullValue()); in shouldLoadDefault()
89 assertThat(resources.getString(R.string.base_string), equalTo("Base String Default")); in shouldLoadDefault()
101 assertThat(resources, notNullValue()); in shouldLoadPolishLocale()
103 assertThat(resources.getString(R.string.base_string), equalTo("Base String Polish")); in shouldLoadPolishLocale()
116 assertThat(resources, notNullValue()); in shouldLoadFeatureADefault()
118 assertThat(resources.getString(R.string.base_string), equalTo("Base String Default")); in shouldLoadFeatureADefault()
121 assertThat(resources.getString(resourceId), equalTo("Feature A String Default")); in shouldLoadFeatureADefault()
132 assertThat(resources, notNullValue()); in shouldLoadFeatureAPolishLocale()
134 assertThat(resources.getString(R.string.base_string), equalTo("Base String Polish")); in shouldLoadFeatureAPolishLocale()
137 assertThat(resources.getString(resourceId), equalTo("Feature A String Polish")); in shouldLoadFeatureAPolishLocale()
[all …]
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DRadioAccessSpecifierTest.java18 import static com.google.common.truth.Truth.assertThat;
34 assertThat(radioAccessSpecifier.describeContents()).isEqualTo(0); in testConstructorAndGetters()
35 assertThat(radioAccessSpecifier.getRadioAccessNetwork()).isEqualTo(ran); in testConstructorAndGetters()
36 assertThat(radioAccessSpecifier.getBands()).isEqualTo(bands); in testConstructorAndGetters()
37 assertThat(radioAccessSpecifier.getChannels()).isEqualTo(channels); in testConstructorAndGetters()
44 assertThat(radioAccessSpecifier).isEqualTo(toCompare1); in testConstructorAndGetters()
45 assertThat(radioAccessSpecifier).isEqualTo(toCompare2); in testConstructorAndGetters()
46 assertThat(radioAccessSpecifier).isNotEqualTo(toCompare3); in testConstructorAndGetters()
53 assertThat(radioAccessSpecifier).isEqualTo(toCompare1); in testConstructorAndGetters()
56 assertThat(radioAccessSpecifier.hashCode()).isGreaterThan(0); in testConstructorAndGetters()
[all …]
/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/
DStagedInstallTest.java19 import static com.android.tests.stagedinstall.PackageInstallerSessionInfoSubject.assertThat;
21 import static com.google.common.truth.Truth.assertThat;
151 assertThat(e.getMessage()).containsMatch( in testFailInstallIfNoPermission()
161 assertThat(getInstalledVersion(TEST_APP_A)).isEqualTo(-1); in testInstallStagedApk_Commit()
165 assertThat(getInstalledVersion(TEST_APP_A)).isEqualTo(-1); in testInstallStagedApk_Commit()
172 assertThat(getInstalledVersion(TEST_APP_A)).isEqualTo(1); in testInstallStagedApk_VerifyPostReboot()
191 assertThat(getInstalledVersion(TEST_APP_A)).isEqualTo(-1); in testInstallMultipleStagedApks_Commit()
192 assertThat(getInstalledVersion(TEST_APP_B)).isEqualTo(-1); in testInstallMultipleStagedApks_Commit()
196 assertThat(getInstalledVersion(TEST_APP_A)).isEqualTo(-1); in testInstallMultipleStagedApks_Commit()
197 assertThat(getInstalledVersion(TEST_APP_B)).isEqualTo(-1); in testInstallMultipleStagedApks_Commit()
[all …]
/cts/hostsidetests/signedconfig/hostside/src/com/android/cts/signedconfig/
DSignedConfigHostTest.java18 import static com.google.common.truth.Truth.assertThat;
96 assertThat(output).containsMatch("Deleted (0|1) rows"); in deleteSetting()
117 assertThat(v).isEqualTo(value); in waitUntilSettingMatches()
142 assertThat(getDevice().installPackage(getTestApk(apkName), false, extraArgs)).isNull(); in installPackage()
149 assertThat(getDevice().getSetting("global", SETTING_BLACKLIST_EXEMPTIONS)).isEqualTo( in testConfigAppliedOnInstall()
157 assertThat(getDevice().getSetting("global", SETTING_BLACKLIST_EXEMPTIONS)).isEqualTo( in testConfigAppliedOnInstallInstant()
167 assertThat(getDevice().getSetting("global", SETTING_BLACKLIST_EXEMPTIONS)).isEqualTo( in testConfigUpgradedOnInstall()
177 assertThat(getDevice().getSetting("global", SETTING_BLACKLIST_EXEMPTIONS)).isEqualTo( in testConfigUpgradedOnInstallInstant()
187 assertThat(getDevice().getSetting("global", SETTING_BLACKLIST_EXEMPTIONS)).isEqualTo( in testConfigUpgradedOnInstallAfterInstant()
197 assertThat(getDevice().getSetting("global", SETTING_SIGNED_CONFIG_VERSION)).isEqualTo("1"); in testConfigRemainsAfterUninstall()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/
DSettingsPanelTest.java19 import static com.google.common.truth.Truth.assertThat;
87 assertThat(currentPackage).isEqualTo(SETTINGS_PACKAGE); in internetPanel_correctPackage()
96 assertThat(currentPackage).isEqualTo(SETTINGS_PACKAGE); in volumePanel_correctPackage()
105 assertThat(currentPackage).isEqualTo(SETTINGS_PACKAGE); in nfcPanel_correctPackage()
114 assertThat(currentPackage).isEqualTo(SETTINGS_PACKAGE); in wifiPanel_correctPackage()
123 assertThat(titleView.getText()).isEqualTo("Internet Connectivity"); in internetPanel_correctTitle()
132 assertThat(titleView.getText()).isEqualTo("Volume"); in volumePanel_correctTitle()
141 assertThat(titleView.getText()).isEqualTo("NFC"); in nfcPanel_correctTitle()
150 assertThat(titleView.getText()).isEqualTo("Wi\u2011Fi"); in wifiPanel_correctTitle()
158 assertThat(currentPackage).isEqualTo(SETTINGS_PACKAGE); in internetPanel_doneClosesPanel()
[all …]

123456789