/cts/tests/tests/net/src/android/net/cts/ |
D | RssiCurveTest.java | 19 import static com.google.common.truth.Truth.assertThat; 36 assertThat(curve.lookupScore(-200)).isEqualTo(10); in lookupScore_constantCurve() 37 assertThat(curve.lookupScore(-100)).isEqualTo(10); in lookupScore_constantCurve() 38 assertThat(curve.lookupScore(0)).isEqualTo(10); in lookupScore_constantCurve() 39 assertThat(curve.lookupScore(100)).isEqualTo(10); in lookupScore_constantCurve() 40 assertThat(curve.lookupScore(200)).isEqualTo(10); in lookupScore_constantCurve() 47 assertThat(curve.lookupScore(-200)).isEqualTo(-10); in lookupScore_changingCurve() 48 assertThat(curve.lookupScore(-100)).isEqualTo(-10); in lookupScore_changingCurve() 49 assertThat(curve.lookupScore(-50)).isEqualTo(-10); in lookupScore_changingCurve() 50 assertThat(curve.lookupScore(0)).isEqualTo(10); in lookupScore_changingCurve() [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 …]
|
D | ContentCaptureContextTest.java | 19 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/ |
D | TextClassifierEventTest.java | 19 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 …]
|
D | ConversationActionsTest.java | 19 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/ |
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 | MultipleFragmentLoginTest.java | 24 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 …]
|
D | ViewAttributesTest.java | 21 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 …]
|
D | AutofillValueTest.java | 19 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 …]
|
D | TextValueSanitizerTest.java | 19 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 …]
|
/cts/hostsidetests/rollback/app/src/com/android/cts/rollback/host/app/ |
D | HostTestHelper.java | 19 import static com.android.cts.rollback.lib.RollbackInfoSubject.assertThat; 21 import static com.google.common.truth.Truth.assertThat; 108 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(-1); in testApkOnlyEnableRollback() 124 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(2); in testApkOnlyCommitRollback() 126 assertThat(available).isStaged(); in testApkOnlyCommitRollback() 127 assertThat(available).packagesContainsExactly( in testApkOnlyCommitRollback() 129 assertThat(RollbackUtils.getCommittedRollback(TestApp.A)).isNull(); in testApkOnlyCommitRollback() 133 assertThat(committed).hasRollbackId(available.getRollbackId()); in testApkOnlyCommitRollback() 134 assertThat(committed).isStaged(); in testApkOnlyCommitRollback() 135 assertThat(committed).packagesContainsExactly( in testApkOnlyCommitRollback() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ |
D | ClientTest.java | 29 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/appsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/ |
D | ClientTest.java | 23 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/tests/telephonyprovider/src/android/telephonyprovider/cts/ |
D | MmsTest.java | 23 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 …]
|
D | SmsTest.java | 23 import static com.google.common.truth.Truth.assertThat; 74 assertThat(uri).isNotNull(); in testSmsInsert() 77 assertThat(cursor.getCount()).isEqualTo(1); in testSmsInsert() 81 assertThat(actualSmsBody).isEqualTo(TEST_SMS_BODY); in testSmsInsert() 90 assertThat(uri).isNotNull(); in testSmsDelete() 94 assertThat(deletedRows).isEqualTo(1); in testSmsDelete() 97 assertThat(cursor.getCount()).isEqualTo(0); in testSmsDelete() 108 assertThat(uri).isNotNull(); in testSmsUpdate() 130 assertThat(uri).isNotNull(); in testInsertSmsFromSubid_verifySmsFromNotOtherSubId() 139 assertThat(uri).isNotNull(); in testInsertSms_canUpdateSeen() [all …]
|
D | LockedMessageTest.java | 23 import static com.google.common.truth.Truth.assertThat; 83 assertThat(cursor.getCount()).isEqualTo(1); in testLockedMessage_atMostOneLockedMessage() 84 assertThat(cursor.moveToFirst()).isEqualTo(true); in testLockedMessage_atMostOneLockedMessage() 85 assertThat(cursor.getColumnCount()).isEqualTo(1); in testLockedMessage_atMostOneLockedMessage() 86 assertThat(cursor.getColumnNames()).isEqualTo(new String[]{Telephony.BaseMmsColumns._ID}); in testLockedMessage_atMostOneLockedMessage() 87 assertThat(cursor.getInt(cursor.getColumnIndex(Telephony.BaseMmsColumns._ID))) in testLockedMessage_atMostOneLockedMessage() 89 assertThat(cursor.getInt(cursor.getColumnIndex(Telephony.BaseMmsColumns._ID))) in testLockedMessage_atMostOneLockedMessage() 100 assertThat(mmsUri).isNotNull(); in testLockedMessage_getNoLockedMessage() 102 assertThat(mmsCursor.getCount()).isEqualTo(1); in testLockedMessage_getNoLockedMessage() 105 assertThat(smsUri).isNotNull(); in testLockedMessage_getNoLockedMessage() [all …]
|
/cts/tests/admin/src/android/admin/cts/ |
D | DeviceAdminInfoTest.java | 19 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/libs/helpers/core/tests/src/com/android/cts/helpers/ |
D | DeviceInteractionHelperRuleTest.java | 18 import static com.google.common.truth.Truth.assertThat; 69 assertThat(rule.getPrefixes()).containsExactly("Prefix"); in testMissingProperty() 70 assertThat(rule.getPackageList()).containsExactly("com.android.cts.helpers.aosp"); in testMissingProperty() 71 assertThat(rule.getSourceDirs()).containsExactly("/tmp/a"); in testMissingProperty() 87 assertThat(rule.getPrefixes()).containsExactly("Prefix"); in testEmptyProperty() 88 assertThat(rule.getPackageList()).containsExactly("com.android.cts.helpers.aosp"); in testEmptyProperty() 89 assertThat(rule.getSourceDirs()).containsExactly("/tmp/a"); in testEmptyProperty() 105 assertThat(rule.getPrefixes()).containsExactly("Prefix"); in testExplicitDefaultProperty() 106 assertThat(rule.getPackageList()).containsExactly("com.android.cts.helpers.aosp"); in testExplicitDefaultProperty() 107 assertThat(rule.getSourceDirs()).containsExactly("/tmp/a"); in testExplicitDefaultProperty() [all …]
|
/cts/tests/tests/appop/src/android/app/appops/cts/ |
D | HistoricalAppopsTest.kt | 30 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/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/ |
D | StagedInstallTest.java | 20 import static com.android.tests.stagedinstall.PackageInstallerSessionInfoSubject.assertThat; 22 import static com.google.common.truth.Truth.assertThat; 186 assertThat(e.getMessage()).containsMatch( in testFailInstallIfNoPermission() 195 assertThat(getInstalledVersion(TestApp.A)).isEqualTo(-1); in testInstallStagedApk_Commit() 199 assertThat(getInstalledVersion(TestApp.A)).isEqualTo(-1); in testInstallStagedApk_Commit() 206 assertThat(getInstalledVersion(TestApp.A)).isEqualTo(1); in testInstallStagedApk_VerifyPostReboot() 223 assertThat(getInstalledVersion(TestApp.A)).isEqualTo(-1); in testInstallMultipleStagedApks_Commit() 224 assertThat(getInstalledVersion(TestApp.B)).isEqualTo(-1); in testInstallMultipleStagedApks_Commit() 228 assertThat(getInstalledVersion(TestApp.A)).isEqualTo(-1); in testInstallMultipleStagedApks_Commit() 229 assertThat(getInstalledVersion(TestApp.B)).isEqualTo(-1); in testInstallMultipleStagedApks_Commit() [all …]
|
/cts/tests/tests/util/src/android/util/cts/ |
D | InstallUtilTest.java | 19 import static com.google.common.truth.Truth.assertThat; 89 assertThat(n1).isEqualTo(n2); in assertSameResource() 91 assertThat(buf1).isEqualTo(buf2); in assertSameResource() 112 assertThat(a1.toString()).isEqualTo(TestApp.A1.toString()); in testNativeFilePathTestApp() 113 assertThat(a1.getPackageName()).isEqualTo(TestApp.A1.getPackageName()); in testNativeFilePathTestApp() 114 assertThat(a1.getVersionCode()).isEqualTo(TestApp.A1.getVersionCode()); in testNativeFilePathTestApp() 115 assertThat(b2.toString()).isEqualTo(TestApp.B2.toString()); in testNativeFilePathTestApp() 116 assertThat(b2.getPackageName()).isEqualTo(TestApp.B2.getPackageName()); in testNativeFilePathTestApp() 117 assertThat(b2.getVersionCode()).isEqualTo(TestApp.B2.getVersionCode()); in testNativeFilePathTestApp() 120 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testNativeFilePathTestApp() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/ |
D | SplitAppTest.java | 87 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/common/device-side/util/tests/src/com/android/compatibility/common/util/ |
D | TimeoutTest.java | 19 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-axt/tests/src/com/android/compatibility/common/util/ |
D | TimeoutTest.java | 19 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/attentionservice/src/android/attentionservice/cts/ |
D | CtsAttentionServiceDeviceTest.java | 22 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 …]
|