Home
last modified time | relevance | path

Searched refs:that (Results 1 – 25 of 703) sorted by relevance

12345678910>>...29

/cts/tests/tests/view/src/android/view/cts/
DMotionEventUtils.java57 public void verifyMatches(MotionEvent that, int pointerIndex) { in verifyMatches() argument
59 that.getPointerId(pointerIndex), this.id); in verifyMatches()
61 that.getToolType(pointerIndex), this.toolType); in verifyMatches()
64 public void verifyMatchesPointerProperties(PointerProperties that) { in verifyMatchesPointerProperties() argument
65 assertEquals("Pointer ID should be the same", that.id, this.id); in verifyMatchesPointerProperties()
66 assertEquals("Tool type should be the same", that.toolType, this.toolType); in verifyMatchesPointerProperties()
70 final PointerProperties that = new PointerProperties(); in verifyMatchesPointerProperties() local
71 motionEvent.getPointerProperties(pointerIndex, that); in verifyMatchesPointerProperties()
73 verifyMatchesPointerProperties(that); in verifyMatchesPointerProperties()
136 public void verifyMatches(MotionEvent that) { in verifyMatches() argument
[all …]
DView_ForceLayout.java78 mExpect.that(mParent.isLayoutRequested()).isTrue(); in requestLayout_onParent_notPropagatedToChildren()
79 mExpect.that(mChild1.isLayoutRequested()).isFalse(); in requestLayout_onParent_notPropagatedToChildren()
80 mExpect.that(mChild2.isLayoutRequested()).isFalse(); in requestLayout_onParent_notPropagatedToChildren()
89 mExpect.that(mParent.isLayoutRequested()).isTrue(); in requestLayout_onChild_propagatedToParentButNotSibling()
90 mExpect.that(mChild1.isLayoutRequested()).isTrue(); in requestLayout_onChild_propagatedToParentButNotSibling()
91 mExpect.that(mChild2.isLayoutRequested()).isFalse(); in requestLayout_onChild_propagatedToParentButNotSibling()
102 mExpect.that(mParent.hasCalledOnMeasure()).isTrue(); in traversal_afterParentRequestLayout_onlyParentRemeasured()
103 mExpect.that(mParent.hasCalledOnLayout()).isTrue(); in traversal_afterParentRequestLayout_onlyParentRemeasured()
105 mExpect.that(mChild1.hasCalledOnMeasure()).isFalse(); in traversal_afterParentRequestLayout_onlyParentRemeasured()
106 mExpect.that(mChild1.hasCalledOnLayout()).isFalse(); in traversal_afterParentRequestLayout_onlyParentRemeasured()
[all …]
/cts/tests/tests/car/src/android/car/cts/
DCarVersionTest.java38 assertWithMessage("TIRAMISU_0").that(version).isNotNull(); in testTiramisu_0()
39 expectWithMessage("TIRAMISU_0.major").that(version.getMajorVersion()) in testTiramisu_0()
41 expectWithMessage("TIRAMISU_0.minor").that(version.getMinorVersion()) in testTiramisu_0()
46 .that(version.isAtLeast(CarVersion.VERSION_CODES.TIRAMISU_0)) in testTiramisu_0()
49 .that(version.isAtLeast(CarVersion.VERSION_CODES.TIRAMISU_1)) in testTiramisu_0()
52 .that(version.isAtLeast(CarVersion.VERSION_CODES.TIRAMISU_2)) in testTiramisu_0()
55 .that(version.isAtLeast(CarVersion.VERSION_CODES.TIRAMISU_3)) in testTiramisu_0()
58 .that(version.isAtLeast(CarVersion.VERSION_CODES.UPSIDE_DOWN_CAKE_0)) in testTiramisu_0()
62 assertWithMessage("TIRAMISU_0 from enum").that(fromEnum).isNotNull(); in testTiramisu_0()
63 expectWithMessage("TIRAMISU_0 from enum").that(fromEnum).isSameInstanceAs(version); in testTiramisu_0()
[all …]
DPlatformVersionTest.java39 assertWithMessage("TIRAMISU_0").that(version).isNotNull(); in testTiramisu_0()
40 expectWithMessage("TIRAMISU_0.major").that(version.getMajorVersion()) in testTiramisu_0()
42 expectWithMessage("TIRAMISU_0.minor").that(version.getMinorVersion()) in testTiramisu_0()
47 .that(version.isAtLeast(PlatformVersion.VERSION_CODES.TIRAMISU_0)) in testTiramisu_0()
50 .that(version.isAtLeast(PlatformVersion.VERSION_CODES.TIRAMISU_1)) in testTiramisu_0()
53 .that(version.isAtLeast(PlatformVersion.VERSION_CODES.TIRAMISU_2)) in testTiramisu_0()
56 .that(version.isAtLeast(PlatformVersion.VERSION_CODES.TIRAMISU_3)) in testTiramisu_0()
59 .that(version.isAtLeast(PlatformVersion.VERSION_CODES.UPSIDE_DOWN_CAKE_0)) in testTiramisu_0()
63 assertWithMessage("TIRAMISU_0 from enum").that(fromEnum).isNotNull(); in testTiramisu_0()
64 expectWithMessage("TIRAMISU_0 from enum").that(fromEnum).isSameInstanceAs(version); in testTiramisu_0()
[all …]
DApiVersionTest.java51 .that(version.getMajorVersion()).isEqualTo(42); in testGetters()
53 .that(version.getMinorVersion()).isEqualTo(108); in testGetters()
61 .that(version.getMajorVersion()).isEqualTo(42); in testGetters_majorOnlyConstructor()
63 .that(version.getMinorVersion()).isEqualTo(0); in testGetters_majorOnlyConstructor()
70 assertWithMessage("version(42, 108).toString()").that(string).contains("major=42"); in testToString()
71 assertWithMessage("version(42, 108).toString()").that(string).contains("minor=108"); in testToString()
72 assertWithMessage("version(42, 108).toString()").that(string).doesNotContain("[name="); in testToString()
86 .that(version.isAtLeast(version(41))).isTrue(); in testAtLeast_major()
88 .that(version.isAtLeast(version(42))).isTrue(); in testAtLeast_major()
90 .that(version.isAtLeast(version(43))).isFalse(); in testAtLeast_major()
[all …]
DCarAudioManagerTest.java208 assertWithMessage("Car volume group events feature").that(volumeGroupEventsEnabled) in isAudioFeatureEnabled_withVolumeGroupEventsFeature_succeeds()
240 .that(status).isEqualTo(AUDIO_MIRROR_CAN_ENABLE); in canEnableAudioMirror()
263 .that(mCallback.receivedGroupVolumeChanged()) in registerCarVolumeCallback_onGroupVolumeChanged()
281 .that(mCallback.receivedMasterMuteChanged()) in registerCarVolumeCallback_onMasterMuteChanged()
303 .that(mCallback.receivedGroupMuteChanged()).isTrue(); in registerCarVolumeCallback_onGroupMuteChanged()
305 .that(mCallback.zoneId).isEqualTo(mZoneId); in registerCarVolumeCallback_onGroupMuteChanged()
307 .that(mCallback.groupId).isEqualTo(mVolumeGroupId); in registerCarVolumeCallback_onGroupMuteChanged()
328 .that(mCallback.receivedGroupVolumeChanged()) in unregisterCarVolumeCallback_unregisteredCallback_doesNotReceiveCallback()
346 .that(callback.receivedGroupVolumeChanged()) in unregisterCarVolumeCallback_noLongerReceivesCallback()
364 .that(info.getId()).isEqualTo(index); in getVolumeGroupInfo_withMinMaxActivationVolumeFlagDisabled()
[all …]
DCarOccupantZoneManagerTest.java117 assertWithMessage("One driver zone").that(drivers).hasSize(1); in setUp()
142 myUid).that( in testUserMustBeUserInTheirOccupantZone()
163 assertWithMessage("hasDriverZone() should match config").that( in testHasDriverOrPassengerZone()
165 assertWithMessage("hasPassengerZone() should match config").that( in testHasDriverOrPassengerZone()
167 assertWithMessage("should have driver or passenger zone").that( in testHasDriverOrPassengerZone()
174 assertWithMessage("Should have at least one zone").that(mAllZones).isNotEmpty(); in testAtLeastOneZone()
202 assertWithMessage("Max one driver zone can exist").that(driverZones.size()).isAtMost(1); in testZoneConfigs()
203 assertWithMessage("Max one front passenger zone can exist").that( in testZoneConfigs()
206 assertWithMessage("Max one zone can exist for seat " + seat).that( in testZoneConfigs()
220 assertWithMessage("getMyOccupantZone and getOccupantZone should match").that( in testMyZone()
[all …]
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/os/
DUserManagerHelperLiteTest.java71 expectWithMessage("User %s isEphemeralUser", currentUser).that( in testMultiplePropertiesForCurrentUser()
73 expectWithMessage("User %s isFullUser", currentUser).that( in testMultiplePropertiesForCurrentUser()
75 expectWithMessage("User %s isGuestUser", currentUser).that( in testMultiplePropertiesForCurrentUser()
79 expectWithMessage("User %s isEnabledUser", currentUser).that( in testMultiplePropertiesForCurrentUser()
83 expectWithMessage("User %s isInitializedUser", currentUser).that( in testMultiplePropertiesForCurrentUser()
103 expectWithMessage("System user isEphemeralUser").that( in testMultiplePropertiesForFullSystemUser()
105 expectWithMessage("System user isFullUser").that( in testMultiplePropertiesForFullSystemUser()
107 expectWithMessage("System user isGuestUser").that( in testMultiplePropertiesForFullSystemUser()
109 expectWithMessage("System user isEnabledUser").that( in testMultiplePropertiesForFullSystemUser()
111 expectWithMessage("System user isInitializedUser").that( in testMultiplePropertiesForFullSystemUser()
[all …]
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvTrackInfoSubject.java48 return assertAbout(tvTrackInfos()).that(actual); in assertThat()
56 check("getAudioChannelCount()").that(actual.getAudioChannelCount()).isEqualTo(id); in hasAudioChannelCount()
60 check("getAudioSampleRate()").that(actual.getAudioSampleRate()).isEqualTo(rate); in hasAudioSampleRate()
64 check("describeContents()").that(actual.describeContents()).isEqualTo(content); in hasContentDescription()
69 check("getEncoding()").that(actual.getEncoding()).isEqualTo(encoding); in hasEncoding()
73 check("getId()").that(actual.getId()).isEqualTo(id); in hasId()
77 check("getLanguage()").that(actual.getLanguage()).isEqualTo(language); in hasLanguage()
81 check("getType()").that(actual.getType()).isEqualTo(type); in hasType()
85 check("getVideoActiveFormatDescription()").that( in hasVideoActiveFormatDescription()
89 check("getVideoHeight()").that(actual.getVideoHeight()).isEqualTo(height); in hasVideoHeight()
[all …]
/cts/tests/tests/broadcastradio/src/android/broadcastradio/cts/
DRadioTunerTest.java63 mExpect.withMessage("Error callbacks").that(mCallback.errorCount).isEqualTo(0); in close_twice()
76 .that(cancelResult).isEqualTo(RadioManager.STATUS_INVALID_OPERATION); in cancel_afterTunerCloses_returnsInvalidOperationStatus()
86 mExpect.withMessage("Mute status of tuner without audio").that(isMuted).isFalse(); in getMute_returnsFalse()
98 .that(result).isEqualTo(RadioManager.STATUS_OK); in setMute_withTrue_MuteSucceeds()
100 .that(mRadioTuner.getMute()).isTrue(); in setMute_withTrue_MuteSucceeds()
113 .that(result).isEqualTo(RadioManager.STATUS_OK); in setMute_withFalse_MuteSucceeds()
115 .that(mRadioTuner.getMute()).isFalse(); in setMute_withFalse_MuteSucceeds()
126 .that(result).isEqualTo(RadioManager.STATUS_ERROR); in setMute_withTunerWithoutAudio_returnsError()
136 mExpect.withMessage("Mute status of tuner without audio").that(isMuted).isTrue(); in isMuted_withTunerWithoutAudio_returnsTrue()
147 .that(mCallback.waitForProgramInfoChangeCallback(TUNE_CALLBACK_TIMEOUT_MS)) in step_withDownDirection()
[all …]
DRadioManagerTest.java47 .that(status).isEqualTo(RadioManager.STATUS_OK); in listModules_returnsNonEmptyModules()
48 mExpect.withMessage("Modules in radio manager").that(modules).isNotEmpty(); in listModules_returnsNonEmptyModules()
56 assume().withMessage("AM/FM radio module exists").that(mModule).isNotNull(); in openTuner_withAmFmBand_succeeds()
61 mExpect.withMessage("Radio tuner opened").that(mRadioTuner).isNotNull(); in openTuner_withAmFmBand_succeeds()
69 assume().withMessage("AM/FM radio module exists").that(mModule).isNotNull(); in openTuner_withAmFmBandAfterCloseTuner_succeeds()
72 mExpect.withMessage("Radio tuner opened").that(mRadioTuner).isNotNull(); in openTuner_withAmFmBandAfterCloseTuner_succeeds()
79 mExpect.withMessage("Radio tuner opened").that(mRadioTuner).isNotNull(); in openTuner_withAmFmBandAfterCloseTuner_succeeds()
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DVirtualTouchEventTest.java56 assertWithMessage("Recreated event has different action").that(originalEvent.getAction()) in parcelAndUnparcel_matches()
59 .that(originalEvent.getToolType()).isEqualTo(recreatedEvent.getToolType()); in parcelAndUnparcel_matches()
60 assertWithMessage("Recreated event has different x").that(originalEvent.getX()) in parcelAndUnparcel_matches()
62 assertWithMessage("Recreated event has different y").that(originalEvent.getY()) in parcelAndUnparcel_matches()
65 .that(originalEvent.getPointerId()).isEqualTo(recreatedEvent.getPointerId()); in parcelAndUnparcel_matches()
67 .that(originalEvent.getPressure()).isEqualTo(recreatedEvent.getPressure()); in parcelAndUnparcel_matches()
69 .that(originalEvent.getMajorAxisSize()) in parcelAndUnparcel_matches()
72 .that(originalEvent.getEventTimeNanos()) in parcelAndUnparcel_matches()
181 assertWithMessage("Incorrect action").that(event.getAction()).isEqualTo( in touchEvent_palmAndCancelUsedProperly()
183 assertWithMessage("Incorrect tool type").that(event.getToolType()).isEqualTo( in touchEvent_palmAndCancelUsedProperly()
[all …]
DVirtualStylusMotionEventTest.java68 assertWithMessage("Recreated event has different action").that(originalEvent.getAction()) in parcelAndUnparcel_matches()
71 .that(originalEvent.getToolType()).isEqualTo(recreatedEvent.getToolType()); in parcelAndUnparcel_matches()
72 assertWithMessage("Recreated event has different x").that(originalEvent.getX()) in parcelAndUnparcel_matches()
74 assertWithMessage("Recreated event has different y").that(originalEvent.getY()) in parcelAndUnparcel_matches()
77 .that(originalEvent.getTiltX()).isEqualTo(recreatedEvent.getTiltX()); in parcelAndUnparcel_matches()
79 .that(originalEvent.getTiltY()).isEqualTo(recreatedEvent.getTiltY()); in parcelAndUnparcel_matches()
81 .that(originalEvent.getPressure()).isEqualTo(recreatedEvent.getPressure()); in parcelAndUnparcel_matches()
83 .that(originalEvent.getEventTimeNanos()) in parcelAndUnparcel_matches()
217 assertWithMessage("Incorrect action").that(event.getAction()).isEqualTo( in stylusMotionEvent_validWithoutPressureAndTilt_created()
219 assertWithMessage("Incorrect tool type").that(event.getToolType()).isEqualTo( in stylusMotionEvent_validWithoutPressureAndTilt_created()
[all …]
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DAssertions.java77 .that(session.context.getActivityComponent()).isEqualTo(componentName); in assertRightActivity()
96 assertWithMessage("no context on %s", session).that(session.context).isNotNull(); in assertMainSessionContext()
98 .that(session.context.getActivityComponent()) in assertMainSessionContext()
101 .that(session.context.getDisplayId()).isNotEqualTo(Display.INVALID_DISPLAY); in assertMainSessionContext()
103 .that(session.context.getTaskId()).isEqualTo(activity.getRealTaskId()); in assertMainSessionContext()
105 .that(session.context.getFlags()).isEqualTo(expectedFlags); in assertMainSessionContext()
107 .that(session.context.getLocusId()).isNull(); in assertMainSessionContext()
109 .that(session.context.getExtras()).isNull(); in assertMainSessionContext()
112 .that(activityId).isNotNull(); in assertMainSessionContext()
114 .that(activityId.getTaskId()).isEqualTo(activity.getRealTaskId()); in assertMainSessionContext()
[all …]
/cts/tests/app/src/android/app/cts/
DActivityDumpTest.java60 assertWithMessage("dump() (expected to have name)").that(dump).contains(DEFAULT_NAME); in testAddDumpable_oneOnly()
61 assertWithMessage("dump() (expected to have content)").that(dump).contains(DEFAULT_CONTENT); in testAddDumpable_oneOnly()
71 assertWithMessage("dump() (expected to have name1)").that(dump).contains("dump1"); in testAddDumpable_twoWithDistinctNames()
72 assertWithMessage("dump() (expected to have content1)").that(dump).contains("able1"); in testAddDumpable_twoWithDistinctNames()
73 assertWithMessage("dump() (expected to have name2)").that(dump).contains("dump2"); in testAddDumpable_twoWithDistinctNames()
74 assertWithMessage("dump() (expected to have content2)").that(dump).contains("able2"); in testAddDumpable_twoWithDistinctNames()
84 assertWithMessage("dump() (expected to have name)").that(dump).contains("dump"); in testAddDumpable_twoWithSameName()
85 assertWithMessage("dump() (expected to have content1)").that(dump).contains("able1"); in testAddDumpable_twoWithSameName()
86 assertWithMessage("dump() (expected to NOT have content2)").that(dump) in testAddDumpable_twoWithSameName()
111 assertWithMessage("dump([%s])", arg).that(legacyArgDump).isNotEqualTo(baselineDump); in legacyArgDumpTest()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DAugmentedHelper.java105 assertWithMessage("no AugmentedFillRequest").that(request).isNotNull(); in assertBasicRequestInfo()
106 assertWithMessage("no FillRequest on %s", request).that(request.request).isNotNull(); in assertBasicRequestInfo()
107 assertWithMessage("no FillController on %s", request).that(request.controller).isNotNull(); in assertBasicRequestInfo()
108 assertWithMessage("no FillCallback on %s", request).that(request.callback).isNotNull(); in assertBasicRequestInfo()
109 assertWithMessage("no CancellationSignal on %s", request).that(request.cancellationSignal) in assertBasicRequestInfo()
112 assertWithMessage("wrong task id on %s", request).that(request.request.getTaskId()) in assertBasicRequestInfo()
116 assertWithMessage("no activity name on %s", request).that(actualComponentName).isNotNull(); in assertBasicRequestInfo()
117 assertWithMessage("wrong activity name on %s", request).that(actualComponentName) in assertBasicRequestInfo()
120 assertWithMessage("no focused id on %s", request).that(actualFocusedId).isNotNull(); in assertBasicRequestInfo()
121 assertWithMessage("wrong focused id on %s", request).that(actualFocusedId) in assertBasicRequestInfo()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/media/
DMediaDrmAtomTests.java155 _assert.that(opened.getScheme()).isEqualTo(CLEAR_KEY_DASH_IF); in validateMediaDrmOpenedListItem()
156 _assert.that(opened.getUuidMsb()) in validateMediaDrmOpenedListItem()
158 _assert.that(opened.getUuidLsb()) in validateMediaDrmOpenedListItem()
160 _assert.that(opened.getFrontend()).isEqualTo(IDRM_JNI); in validateMediaDrmOpenedListItem()
161 _assert.that(opened.getVersion()).isNotEmpty(); in validateMediaDrmOpenedListItem()
162 _assert.that(opened.getObjectNonce()).isNotEmpty(); in validateMediaDrmOpenedListItem()
163 _assert.that(opened.getRequestedSecurityLevel()).isEqualTo(SECURITY_LEVEL_MAX); in validateMediaDrmOpenedListItem()
164 _assert.that(opened.getOpenedSecurityLevel()).isEqualTo(SECURITY_LEVEL_SW_SECURE_CRYPTO); in validateMediaDrmOpenedListItem()
172 _assert.that(errored.getScheme()).isEqualTo(CLEAR_KEY_DASH_IF); in validateMediaDrmErroredListItem()
173 _assert.that(errored.getUuidMsb()) in validateMediaDrmErroredListItem()
[all …]
/cts/hostsidetests/car/src/android/car/cts/
DCarWatchdogHostTest.java224 .that(runDeviceTest("testSetPackageKillableStateAsNo")).isTrue(); in testKillableSettingPersistedOnDevice()
230 .that(runDeviceTest("testVerifyPackageKillableStateAsNo")).isTrue(); in testKillableSettingPersistedOnDevice()
240 .that(runDeviceTest("testWriteResourceOveruseConfigurationsToDisk")).isTrue(); in testResourceOveruseConfigurationPersistedOnDevice()
243 .that(runDeviceTest("testSetResourceOveruseConfigurations")).isTrue(); in testResourceOveruseConfigurationPersistedOnDevice()
248 .that(runDeviceTest("testVerifyResourceOveruseConfigurationsPersisted")) in testResourceOveruseConfigurationPersistedOnDevice()
259 .that(runDeviceTest("testVerifyInitialResourceOveruseStats")).isTrue(); in testResourceOveruseStatsPersistedOnDevice()
266 .that(runDeviceTest("testVerifyResourceOveruseStatsAfterReboot")).isTrue(); in testResourceOveruseStatsPersistedOnDevice()
276 .that(readPackagesDisabledOnResourceOveruseSettings()) in testVerifyPackagesDisabledOnResourceOveruseSettingsString()
283 .that(readPackagesDisabledOnResourceOveruseSettings()).contains(WATCHDOG_TEST_PKG); in testVerifyPackagesDisabledOnResourceOveruseSettingsString()
286 assertWithMessage("Package enable command result").that(result).contains("enabled"); in testVerifyPackagesDisabledOnResourceOveruseSettingsString()
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DAdminActionBookkeepingTest.java86 .that(firstTimestamp).isEqualTo(secondTimestamp); in testRetrieveSecurityLogs()
118 .that(mDevicePolicyManager.getDeviceOwnerOrganizationName()).isNull(); in testDeviceOwnerOrganizationName()
122 .that(mDevicePolicyManager.getDeviceOwnerOrganizationName()) in testDeviceOwnerOrganizationName()
127 .that(mDevicePolicyManager.getDeviceOwnerOrganizationName()).isNull(); in testDeviceOwnerOrganizationName()
136 assertWithMessage("dpm.isDeviceManaged()").that(mDevicePolicyManager.isDeviceManaged()) in testIsDeviceManaged()
153 assertWithMessage("keystore.getCertificateAlias()").that(keyStore.getCertificateAlias(cert)) in testGetPolicyInstalledCaCerts()
156 .that(mDevicePolicyManager.installCaCert(getWho(), rawCert)).isTrue(); in testGetPolicyInstalledCaCerts()
158 assertWithMessage("keystore.getCertificateAlias()").that(alias).isNotNull(); in testGetPolicyInstalledCaCerts()
174 assertWithMessage("dpm.getOwnerInstalledCaCerts(%s)", user).that(ownerInstalledCerts) in verifyOwnerInstalledStatus()
177 assertWithMessage("dpm.getOwnerInstalledCaCerts(%s)", user).that(ownerInstalledCerts) in verifyOwnerInstalledStatus()
[all …]
/cts/libs/rollback/src/com/android/cts/rollback/lib/
DRollbackInfoSubject.java42 return Truth.assert_().about(rollbacks()).that(rollback); in assertThat()
55 public RollbackInfoSubject createSubject(FailureMetadata fs, RollbackInfo that) {
56 return new RollbackInfoSubject(fs, that);
69 check("getRollbackId()").that(mActual.getRollbackId()).isEqualTo(rollbackId); in hasRollbackId()
76 check("isStaged()").that(mActual.isStaged()).isTrue(); in isStaged()
83 check("isStaged()").that(mActual.isStaged()).isFalse(); in isNotStaged()
95 check("actualPackages").that(actualPackages).containsExactly((Object[]) expected); in packagesContainsExactly()
108 check("getCausePackages()").that(mActual.getCausePackages()) in causePackagesContainsExactly()
/cts/hostsidetests/car/src/android/car/cts/powerpolicy/
DPowerPolicyTestHelper.java57 .that(mFrameCpms.getCurrentState()).isEqualTo(expected); in checkCurrentState()
66 assertWithMessage(CURRENT_POLICY_ASSERT_MSG).that(expected).isTrue(); in checkCurrentPolicy()
71 .that(mFrameCpms.getForcedSilentMode() == expected).isTrue(); in checkSilentModeStatus()
80 assertWithMessage(SILENT_MODE_FULL_ASSERT_MSG).that(status).isTrue(); in checkSilentModeFull()
95 assertWithMessage(REGISTERED_POLICY_ASSERT_MSG).that(status).isTrue(); in checkRegisteredPolicy()
105 .that(mSystemCpms.getRegisteredPolicies().size()).isEqualTo(totalNum); in checkTotalRegisteredPolicies()
150 assertWithMessage(/* messageToPrepend = */ "Current policy group ID").that( in checkCurrentPolicyGroupId()
155 assertWithMessage(/* messageToPrepend = */ "Power policy groups").that( in checkPowerPolicyGroups()
164 assertWithMessage("Groups cannot be null").that(policyGroups).isNotNull(); in checkPowerPolicyGroupsDefined()
168 assertWithMessage("Group definition cannot be null").that(groupDef).isNotNull(); in checkPowerPolicyGroupsDefined()
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DScreenCaptureDisabledTest.java38 .that(mDevicePolicyManager.getScreenCaptureDisabled(ADMIN_RECEIVER_COMPONENT)) in testSetScreenCaptureDisabled_false()
41 .that(mDevicePolicyManager.getScreenCaptureDisabled(/* admin= */ null)).isFalse(); in testSetScreenCaptureDisabled_false()
48 .that(mDevicePolicyManager.getScreenCaptureDisabled(ADMIN_RECEIVER_COMPONENT)) in testSetScreenCaptureDisabled_true()
51 .that(mDevicePolicyManager.getScreenCaptureDisabled(/* admin= */ null)).isTrue(); in testSetScreenCaptureDisabled_true()
62 assertWithMessage("screenshot").that(screenshot).isNull(); in testScreenCaptureImpossible()
73 assertWithMessage("screenshot").that(screenshot).isNotNull(); in testScreenCapturePossible()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/utils/
DBundleUtils.java90 .that(bundle.size()).isEqualTo(8); in assertEqualToBundle()
103 assertWithMessage("size of bundle_array").that(bundleArray).hasLength(2); in assertEqualToBundle()
112 .that(bundle1ChildBundle).isNotNull(); in assertEqualToBundle()
128 .that(value.getString("string")).isNotEqualTo(id); in assertNotEqualToBundle()
140 assertWithMessage("Bundle size").that(bundles.size()).isEqualTo(idSet.size()); in assertEqualToBundleList()
143 assertWithMessage("Unexpected ID %s in bundles", id).that(idSet).contains(id); in assertEqualToBundleList()
154 .that(value).isEqualTo(expectedValue); in assertBooleanKey()
161 .that(value).isEqualTo(expectedValue); in assertIntKey()
168 .that(value).isEqualTo(expectedValue); in assertStringKey()
176 assertWithMessage("bundle's '%s' key", key).that(value).asList() in assertStringsKey()
[all …]
/cts/hostsidetests/appcompat/compatchanges/src/com/android/cts/appcompat/
DCompatChangesOverrideOnReleaseBuildTest.java65 .that(ctsChange).isNotNull(); in testPutPackageOverridesSecurityExceptionNonOverridableChangeId()
80 .that(ctsChange).isNotNull(); in testPutPackageOverridesSecurityExceptionMissingPermission()
95 .that(ctsChange).isNull(); in testPutPackageOverridesWhenChangeIdUnknown()
108 .that(ctsChange).isNotNull(); in testPutPackageOverridesForAllVersions()
119 .that(ctsChange).isNotNull(); in testPutPackageOverridesForAllVersions()
136 .that(ctsChange).isNotNull(); in testPutPackageOverridesForNewerVersion()
147 .that(ctsChange).isNotNull(); in testPutPackageOverridesForNewerVersion()
165 .that(ctsChange).isNotNull(); in testPutPackageOverridesForOlderVersion()
176 .that(ctsChange).isNotNull(); in testPutPackageOverridesForOlderVersion()
194 .that(ctsChange).isNotNull(); in testPutAllPackageOverrides()
[all …]
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DApnDatabaseTest.java115 assertWithMessage("Failed to insert to table").that(newUri).isNotNull(); in testValidCase()
133 assertWithMessage("Failed to query the table").that(cursor).isNotNull(); in testValidCase()
135 .that(cursor.getCount()) in testValidCase()
140 .that(cursor.getString(cursor.getColumnIndex(entry.getKey()))) in testValidCase()
150 assertWithMessage("Unexpected number of rows updated").that(updateCount).isEqualTo(1); in testValidCase()
154 assertWithMessage("Failed to query the table").that(cursor).isNotNull(); in testValidCase()
156 .that(cursor.getCount()) in testValidCase()
160 .that(cursor.getString(cursor.getColumnIndex(Carriers.APN))) in testValidCase()
175 .that(numRowsDeleted) in testValidCase()
181 .that(cursor.getCount()) in testValidCase()
[all …]

12345678910>>...29