Home
last modified time | relevance | path

Searched refs:isTrue (Results 1 – 25 of 85) sorted by relevance

1234

/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DVoiceInteractionTest.java118 assertThat(result.equals(Utils.ABORT_REQUEST_CANCEL_SUCCESS)).isTrue(); in verifySingleTestcaseResult()
121 assertThat(result.equals(Utils.ABORT_REQUEST_SUCCESS)).isTrue(); in verifySingleTestcaseResult()
124 assertThat(result.equals(Utils.COMMANDREQUEST_SUCCESS)).isTrue(); in verifySingleTestcaseResult()
127 assertThat(result.equals(Utils.COMMANDREQUEST_CANCEL_SUCCESS)).isTrue(); in verifySingleTestcaseResult()
130 assertThat(result.equals(Utils.COMPLETION_REQUEST_CANCEL_SUCCESS)).isTrue(); in verifySingleTestcaseResult()
133 assertThat(result.equals(Utils.COMPLETION_REQUEST_SUCCESS)).isTrue(); in verifySingleTestcaseResult()
136 assertThat(result.equals(Utils.CONFIRMATION_REQUEST_CANCEL_SUCCESS)).isTrue(); in verifySingleTestcaseResult()
139 assertThat(result.equals(Utils.CONFIRMATION_REQUEST_SUCCESS)).isTrue(); in verifySingleTestcaseResult()
142 assertThat(result.equals(Utils.PICKOPTION_REQUEST_CANCEL_SUCCESS)).isTrue(); in verifySingleTestcaseResult()
145 assertThat(result.equals(Utils.PICKOPTION_REQUEST_SUCCESS)).isTrue(); in verifySingleTestcaseResult()
[all …]
/cts/tests/admin/src/android/admin/cts/
DDeviceAdminInfoTest.java91 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()
125 assertThat(info.usesPolicy(DeviceAdminInfo.USES_POLICY_LIMIT_PASSWORD)).isTrue(); in testDeviceAdminInfo2()
126 assertThat(info.usesPolicy(DeviceAdminInfo.USES_POLICY_RESET_PASSWORD)).isTrue(); in testDeviceAdminInfo2()
128 assertThat(info.usesPolicy(DeviceAdminInfo.USES_POLICY_WIPE_DATA)).isTrue(); in testDeviceAdminInfo2()
152 assertThat(info.supportsTransferOwnership()).isTrue(); in testDeviceAdminInfo3()
183 assertThat(deviceAdminInfo.isVisible()).isTrue(); in testIsVisible_visibleComponent_returnsTrue()
/cts/tests/tests/permission/src/android/permission/cts/
DSharedUidPermissionsTest.java67 assertThat(isPermissionGranted(PKG_THAT_REQUESTS_PERMISSIONS, READ_CONTACTS)).isTrue(); in packageGainsRuntimePermissionsWhenJoiningSharedUid()
68 assertThat(isPermissionGranted(PKG_THAT_REQUESTS_NO_PERMISSIONS, READ_CONTACTS)).isTrue(); in packageGainsRuntimePermissionsWhenJoiningSharedUid()
76 assertThat(isPermissionGranted(PKG_THAT_REQUESTS_PERMISSIONS, INTERNET)).isTrue(); in packageGainsNormalPermissionsWhenJoiningSharedUid()
77 assertThat(isPermissionGranted(PKG_THAT_REQUESTS_NO_PERMISSIONS, INTERNET)).isTrue(); in packageGainsNormalPermissionsWhenJoiningSharedUid()
86 assertThat(isPermissionGranted(PKG_THAT_REQUESTS_PERMISSIONS, READ_CONTACTS)).isTrue(); in grantingRuntimePermissionAffectsAllPackageInSharedUid()
87 assertThat(isPermissionGranted(PKG_THAT_REQUESTS_NO_PERMISSIONS, READ_CONTACTS)).isTrue(); in grantingRuntimePermissionAffectsAllPackageInSharedUid()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DKeyManagementTest.java118 assertThat(mDevicePolicyManager.installKeyPair(getWho(), privKey, cert, alias)).isTrue(); in testCanInstallAndRemoveValidRsaKeypair()
129 assertThat(mDevicePolicyManager.removeKeyPair(getWho(), alias)).isTrue(); in testCanInstallAndRemoveValidRsaKeypair()
145 .isTrue(); in testCanInstallWithAutomaticAccess()
149 .isTrue(); in testCanInstallWithAutomaticAccess()
159 assertThat(mDevicePolicyManager.removeKeyPair(getWho(), grant)).isTrue(); in testCanInstallWithAutomaticAccess()
160 assertThat(mDevicePolicyManager.removeKeyPair(getWho(), withhold)).isTrue(); in testCanInstallWithAutomaticAccess()
187 .isTrue(); in testCanInstallCertChain()
199 assertThat(mDevicePolicyManager.removeKeyPair(getWho(), alias)).isTrue(); in testCanInstallCertChain()
214 .isTrue(); in testGrantsDoNotPersistBetweenInstallations()
219 assertThat(mDevicePolicyManager.removeKeyPair(getWho(), alias)).isTrue(); in testGrantsDoNotPersistBetweenInstallations()
[all …]
/cts/tests/attentionservice/src/android/attentionservice/cts/
DCtsAttentionServiceDeviceTest.java81 assertThat(CtsTestAttentionService.hasPendingChecks()).isTrue(); in testAttentionService_OnSuccess()
98 assertThat(CtsTestAttentionService.hasPendingChecks()).isTrue(); in testAttentionService_OnCancelledFromManager()
119 assertThat(CtsTestAttentionService.hasPendingChecks()).isTrue(); in testAttentionService_OnCancelledFromService()
136 assertThat(setTestableAttentionService(FAKE_SERVICE_PACKAGE)).isTrue(); in bindToTestService()
158 assertThat(isSuccess).isTrue(); in callCheckAttention()
/cts/hostsidetests/backup/src/android/cts/backup/
DProfileScheduledJobHostSideTest.java100 assertThat(isSystemJobScheduled(jobId, KEY_VALUE_JOB_NAME)).isTrue(); in testKeyValueBackupJobScheduled()
129 assertThat(isSystemJobScheduled(jobId, KEY_VALUE_JOB_NAME)).isTrue(); in testKeyValueBackupJobRunsSuccessfully()
137 assertThat(isSystemJobScheduled(jobId, KEY_VALUE_JOB_NAME)).isTrue(); in testKeyValueBackupJobCancelled()
148 assertThat(isSystemJobScheduled(jobId, FULL_BACKUP_JOB_NAME)).isTrue(); in testFullBackupJobScheduled()
179 assertThat(isSystemJobScheduled(jobId, FULL_BACKUP_JOB_NAME)).isTrue(); in testFullBackupJobRunsSuccessfully()
187 assertThat(isSystemJobScheduled(jobId, FULL_BACKUP_JOB_NAME)).isTrue(); in testFullBackupJobCancelled()
DBaseMultiUserBackupHostSideTest.java118 assertThat(startSuccessful).isTrue(); in startUser()
134 assertThat(mBackupUtils.isBackupEnabledForUser(userId)).isTrue(); in startUserAndInitializeForBackup()
153 assertThat(mBackupUtils.isLocalTransportSelectedForUser(userId)).isTrue(); in switchUserToLocalTransportAndAssertSuccess()
207 assertThat(result).isTrue(); in checkDeviceTestAsUser()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DNotificationListenerTest.java109 assertThat(mReceiver.waitForNotificationPostedReceived()).isTrue(); in testCanReceiveNotifications()
111 assertThat(mReceiver.waitForNotificationRemovedReceived()).isTrue(); in testCanReceiveNotifications()
116 assertThat(mReceiver.waitForNotificationPostedReceived()).isTrue(); in testCanReceiveNotifications()
118 assertThat(mReceiver.waitForNotificationRemovedReceived()).isTrue(); in testCanReceiveNotifications()
135 assertThat(mReceiver.waitForNotificationPostedReceived()).isTrue(); in testCannotReceiveProfileNotifications()
137 assertThat(mReceiver.waitForNotificationRemovedReceived()).isTrue(); in testCannotReceiveProfileNotifications()
184 assertThat(mReceiver.waitForListenerConnected()).isTrue(); in toggleNotificationListener()
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/
DDirectDelegatedCertInstallerTest.java148 mDpm.installCaCert(null, cert)).isTrue(); in testCaCertsOperations()
150 mDpm.hasCaCertInstalled(null, cert)).isTrue(); in testCaCertsOperations()
154 containsCertificate(mDpm.getInstalledCaCerts(null), cert)).isTrue(); in testCaCertsOperations()
178 true)).isTrue(); in testInstallKeyPair()
186 assertThat(mDpm.removeKeyPair(null, alias)).isTrue(); in testInstallKeyPair()
209 assertThat(mDpm.removeKeyPair(null, alias)).isTrue(); in testGenerateKeyPairWithoutDeviceIdAttestation()
DCertSelectionDelegateTest.java105 assertThat(mDpm.installKeyPair(null, privKey, cert, alias)).isTrue(); in testCanSelectKeychainKeypairs()
113 assertThat(mDpm.removeKeyPair(null, alias)).isTrue(); in testCanSelectKeychainKeypairs()
141 .isTrue(); in get()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DLuhnChecksumValidatorTest.java62 assertThat(validator.isValid(finder)).isTrue(); in duplicateFields()
78 assertThat(validator.isValid(finder)).isTrue(); in leadingZerosAreIgnored()
81 assertThat(validator.isValid(finder)).isTrue(); in leadingZerosAreIgnored()
123 assertThat(validator.isValid(finder)).isTrue(); in nonDigits()
137 assertThat(validator.isValid(finder)).isTrue(); in multipleFieldNumber()
DCompositeUserDataTest.java141 assertThat(defaultArgs.getBoolean("isPackage")).isTrue(); in testMerge_emptyGenericUserData()
147 assertThat(args.containsKey(mCategoryId2)).isTrue(); in testMerge_emptyGenericUserData()
149 assertThat(args.get(mCategoryId2).getBoolean("isPackage")).isTrue(); in testMerge_emptyGenericUserData()
179 assertThat(args.containsKey(mCategoryId2)).isTrue(); in testMerge_emptyPackageUserData()
209 assertThat(defaultArgs.getBoolean("isPackage")).isTrue(); in testMerge_bothHaveData()
215 assertThat(args.containsKey(mCategoryId2)).isTrue(); in testMerge_bothHaveData()
217 assertThat(args.get(mCategoryId2).getBoolean("isPackage")).isTrue(); in testMerge_bothHaveData()
DMultiWindowLoginActivityTest.java137 assertThat(emptyActivity.hasWindowFocus()).isTrue();
139 assertThat(loginActivity.getUsername().hasFocus()).isTrue();
150 assertThat(emptyActivity.hasWindowFocus()).isTrue();
152 assertThat(loginActivity.getUsername().hasFocus()).isTrue();
DValidatorsTest.java84 .isValid(mValueFinder)).isTrue(); in testAnd_AllPassed()
113 .isValid(mValueFinder)).isTrue(); in testOr_firstPassed()
122 .isValid(mValueFinder)).isTrue(); in testOr_secondPassed()
139 assertThat(notValidator.isValid(mValueFinder)).isTrue(); in testNot_falseToTrue()
DOneTimeCancellationSignalListener.java42 .that(called).isTrue(); in assertOnCancelCalled()
DAutofillValueTest.java96 assertThat(AutofillValue.forText("").isText()).isTrue();
114 assertThat(AutofillValue.forToggle(true).getToggleValue()).isTrue();
118 assertThat(AutofillValue.forToggle(true).isToggle()).isTrue();
138 assertThat(AutofillValue.forList(0).isList()).isTrue();
157 assertThat(AutofillValue.forDate(0).isDate()).isTrue();
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/unit/
DViewNodeTest.java276 assertThat(structure.hasExtras()).isTrue(); in newSimpleStructure()
323 assertThat(node.isAssistBlocked()).isTrue(); in assertSimpleNode()
324 assertThat(node.isEnabled()).isTrue(); in assertSimpleNode()
325 assertThat(node.isClickable()).isTrue(); in assertSimpleNode()
326 assertThat(node.isLongClickable()).isTrue(); in assertSimpleNode()
327 assertThat(node.isContextClickable()).isTrue(); in assertSimpleNode()
328 assertThat(node.isFocusable()).isTrue(); in assertSimpleNode()
329 assertThat(node.isFocused()).isTrue(); in assertSimpleNode()
330 assertThat(node.isAccessibilityFocused()).isTrue(); in assertSimpleNode()
331 assertThat(node.isChecked()).isTrue(); in assertSimpleNode()
[all …]
/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/
DPackageInstallerSessionInfoSubject.java55 getSubject().isStagedSessionReady()).isTrue();
60 getSubject().isStagedSessionApplied()).isTrue();
65 getSubject().isStagedSessionFailed()).isTrue();
/cts/hostsidetests/stagedinstall/src/com/android/tests/stagedinstall/host/
DApexShimValidationTest.java59 phase)).isTrue(); in runPhase()
65 "cleanUp")).isTrue(); in cleanUp()
86 isShimApexPreInstalled).isTrue(); in testShimApexIsPreInstalled()
/cts/tests/tests/widget/src/android/widget/cts/
DPositionTesterContextMenuListener.java56 if (!isTrue("MenuInfo is not an AdapterContextMenuInfo", in onCreateContextMenu()
65 if (!isTrue("MenuInfo is not an ExpandableListContextMenuInfo", in onCreateContextMenu()
100 private boolean isTrue(String message, boolean value) { in isTrue() method in PositionTesterContextMenuListener
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DTestAppInterface.java124 } while (!condition.isTrue() && SystemClock.uptimeMillis() < deadLine);
125 return condition.isTrue();
138 boolean isTrue() throws Exception;
/cts/tests/tests/database/src/android/database/cts/
DAbstractCursor_SelfContentObserverTest.java138 public void setDeliverSelfNotificationsValue(boolean isTrue) { in setDeliverSelfNotificationsValue() argument
139 mIsTrue = isTrue; in setDeliverSelfNotificationsValue()
/cts/hostsidetests/backup/ProfileFullBackupApp/src/android/cts/backup/profilefullbackupapp/
DProfileFullBackupRestoreTest.java78 assertThat(mFile1.exists()).isTrue(); in assertFilesRestored()
81 assertThat(mFile2.exists()).isTrue(); in assertFilesRestored()
/cts/tests/tests/permission2/src/android/permission2/cts/
DRestrictedPermissionsTest.java497 isPermissionGranted(PKG, Manifest.permission.READ_EXTERNAL_STORAGE)).isTrue(); in cannotGrantStorageTargetingSdk22NotWhitelisted()
513 isPermissionGranted(PKG, Manifest.permission.READ_EXTERNAL_STORAGE)).isTrue(); in cannotGrantStorageTargetingSdk22OptInNotWhitelisted()
525 isGranted(PKG, Manifest.permission.READ_EXTERNAL_STORAGE)).isTrue()); in canGrantStorageTargetingSdk22Whitelisted()
536 isGranted(PKG, Manifest.permission.READ_EXTERNAL_STORAGE)).isTrue()); in canGrantStorageTargetingSdk22OptInWhitelisted()
569 isGranted(PKG, Manifest.permission.READ_EXTERNAL_STORAGE)).isTrue()); in canGrantStorageTargetingSdk28Whitelisted()
580 isGranted(PKG, Manifest.permission.READ_EXTERNAL_STORAGE)).isTrue()); in canGrantStorageTargetingSdk28OptInWhitelisted()
591 isGranted(PKG, Manifest.permission.READ_EXTERNAL_STORAGE)).isTrue()); in canGrantStorageTargetingSdk29NotWhitelisted()
602 isGranted(PKG, Manifest.permission.READ_EXTERNAL_STORAGE)).isTrue()); in canGrantStorageTargetingSdk29OptOutNotWhitelisted()
613 isGranted(PKG, Manifest.permission.READ_EXTERNAL_STORAGE)).isTrue()); in canGrantStorageTargetingSdk29Whitelisted()
624 isGranted(PKG, Manifest.permission.READ_EXTERNAL_STORAGE)).isTrue()); in canGrantStorageTargetingSdk29OptOutWhitelisted()
[all …]
/cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/
DAppRestrictionsIsCallerDelegateHelper.java41 assertThat(mDevicePolicyManager.isCallerApplicationRestrictionsManagingPackage()).isTrue(); in testAssertCallerIsApplicationRestrictionsManagingPackage()

1234