/cts/tests/tests/view/src/android/view/cts/ |
D | MotionEventUtils.java | 57 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() 129 public void verifyMatches(MotionEvent that) { in verifyMatches() argument [all …]
|
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/ |
D | Assertions.java | 70 .that(session.context.getActivityComponent()).isEqualTo(componentName); in assertRightActivity() 89 assertWithMessage("no context on %s", session).that(session.context).isNotNull(); in assertMainSessionContext() 91 .that(session.context.getActivityComponent()) in assertMainSessionContext() 94 .that(session.context.getDisplayId()).isNotEqualTo(Display.INVALID_DISPLAY); in assertMainSessionContext() 96 .that(session.context.getTaskId()).isEqualTo(activity.getRealTaskId()); in assertMainSessionContext() 98 .that(session.context.getFlags()).isEqualTo(expectedFlags); in assertMainSessionContext() 100 .that(session.context.getLocusId()).isNull(); in assertMainSessionContext() 102 .that(session.context.getExtras()).isNull(); in assertMainSessionContext() 109 assertWithMessage("no context on %s", session).that(session.context).isNotNull(); in assertChildSessionContext() 111 .that(session.context.getActivityComponent()).isNull(); in assertChildSessionContext() [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/augmented/ |
D | AugmentedHelper.java | 91 assertWithMessage("no AugmentedFillRequest").that(request).isNotNull(); in assertBasicRequestInfo() 92 assertWithMessage("no FillRequest on %s", request).that(request.request).isNotNull(); in assertBasicRequestInfo() 93 assertWithMessage("no FillController on %s", request).that(request.controller).isNotNull(); in assertBasicRequestInfo() 94 assertWithMessage("no FillCallback on %s", request).that(request.callback).isNotNull(); in assertBasicRequestInfo() 95 assertWithMessage("no CancellationSignal on %s", request).that(request.cancellationSignal) in assertBasicRequestInfo() 98 assertWithMessage("wrong task id on %s", request).that(request.request.getTaskId()) in assertBasicRequestInfo() 102 assertWithMessage("no activity name on %s", request).that(actualComponentName).isNotNull(); in assertBasicRequestInfo() 103 assertWithMessage("wrong activity name on %s", request).that(actualComponentName) in assertBasicRequestInfo() 106 assertWithMessage("no focused id on %s", request).that(actualFocusedId).isNotNull(); in assertBasicRequestInfo() 107 assertWithMessage("wrong focused id on %s", request).that(actualFocusedId) in assertBasicRequestInfo() [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | Helper.java | 411 assertWithMessage("No node for resourceId %s", resourceId).that(node).isNotNull(); in findAutofillIdByResourceId() 560 assertWithMessage("wrong text on %s", node.getAutofillId()).that(node.getText().toString()) in assertText() 565 assertWithMessage("null auto-fill value on %s", id).that(value).isNotNull(); in assertText() 567 .that(value.getTextValue().toString()).isEqualTo(expectedValue); in assertText() 569 assertWithMessage("node %s should not have AutofillValue", id).that(value).isNull(); in assertText() 579 assertWithMessage("null autofill value on %s", id).that(value).isNotNull(); in assertTextValue() 580 assertWithMessage("wrong autofill type on %s", id).that(value.isText()).isTrue(); in assertTextValue() 581 assertWithMessage("wrong autofill value on %s", id).that(value.getTextValue().toString()) in assertTextValue() 592 assertWithMessage("null autofill value on %s", id).that(value).isNotNull(); in assertListValue() 593 assertWithMessage("wrong autofill type on %s", id).that(value.isList()).isTrue(); in assertListValue() [all …]
|
D | MyAutofillCallback.java | 103 assertWithMessage("Invalid number of events left: %s", mEvents).that(mEvents.size()) in assertNumberUnhandledEvents() 112 assertWithMessage("Invalid type on event %s", event).that(event.event) in assertUiShownEvent() 114 assertWithMessage("Invalid view on event %s", event).that(event.view) in assertUiShownEvent() 125 assertWithMessage("Invalid child on event %s", event).that(event.childId) in assertUiShownEvent() 144 assertWithMessage("Invalid type on event %s", event).that(event.event) in assertUiHiddenEvent() 146 assertWithMessage("Invalid view on event %s", event).that(event.view) in assertUiHiddenEvent() 157 assertWithMessage("Invalid child on event %s", event).that(event.childId) in assertUiHiddenEvent() 166 assertWithMessage("Invalid type on event %s", event).that(event.event) in assertUiUnavailableEvent() 168 assertWithMessage("Invalid view on event %s", event).that(event.view) in assertUiUnavailableEvent() 179 assertWithMessage("Invalid child on event %s", event).that(event.childId) in assertUiUnavailableEvent()
|
D | OnCreateServiceStatusVerifierActivity.java | 50 assertWithMessage("Wrong settings").that(mSettingsOnCreate) in assertServiceStatusOnCreate() 52 assertWithMessage("AutofillManager.isEnabled() is wrong").that(mEnabledOnCreate) in assertServiceStatusOnCreate() 56 assertWithMessage("Wrong settings").that(mSettingsOnCreate).isNull(); in assertServiceStatusOnCreate() 57 assertWithMessage("AutofillManager.isEnabled() is wrong").that(mEnabledOnCreate) in assertServiceStatusOnCreate()
|
D | OneTimeDateListener.java | 56 .that(set).isTrue(); in assertAutoFilled() 58 .that(datePicker.getYear()).isEqualTo(expectedYear); in assertAutoFilled() 60 .that(datePicker.getMonth()).isEqualTo(expectedMonth); in assertAutoFilled() 62 .that(datePicker.getDayOfMonth()).isEqualTo(expectedDay); in assertAutoFilled()
|
D | TrampolineForResultActivity.java | 53 assertWithMessage("Result not received in 1s").that(called).isTrue(); in assertResult() 54 assertWithMessage("Wrong actual code").that(mActualRequestCode) in assertResult() 56 assertWithMessage("Wrong result code").that(mActualResultCode) in assertResult()
|
D | MultipleTimesTimeListener.java | 55 .that(set).isTrue(); in assertAutoFilled() 57 .that(timePicker.getHour()).isEqualTo(expectedHour); in assertAutoFilled() 59 .that(timePicker.getMinute()).isEqualTo(expectedMinute); in assertAutoFilled()
|
D | UiBot.java | 253 assertWithMessage("wrong dataset names").that(getChildrenAsText(picker)) in assertDatasets() 275 assertWithMessage("wrong dataset names").that(getChildrenAsText(picker)) in assertDatasetsContains() 301 .that(getChildrenAsText(headerView)) 311 assertWithMessage("wrong elements on dataset picker").that(getChildrenAsText(picker)) 379 assertWithMessage("No node with text '%s'", text).that(object).isNotNull(); 389 assertWithMessage("no UIObject for text '%s'", text).that(object).isNotNull(); 401 assertWithMessage("Found node with text '%s'", text).that(object).isNull(); 410 assertWithMessage("No node with content description '%s'", contentDescription).that(object) 636 assertWithMessage("save title (%s) is not shown", RESOURCE_ID_SAVE_TITLE).that(titleView) 641 assertWithMessage("save icon (%s) is not shown", RESOURCE_ID_SAVE_ICON).that(iconView) [all …]
|
D | CustomDescriptionTest.java | 278 .that(line1.getContentDescription()).isEqualTo("First am I"), in validTransformationWithMultipleTemplateUpdates() 279 (line2) -> assertWithMessage("Wrong text for line2").that(line2.getText()) in validTransformationWithMultipleTemplateUpdates() 326 .that(line1.getText()).isEqualTo("L1-u"); in multipleBatchUpdatesTest() 331 .that(line2.getText()).isEqualTo("L2-u"); in multipleBatchUpdatesTest() 339 .that(line3.getText()).isEqualTo("L3-p"); in multipleBatchUpdatesTest() 388 .that(line1.getText()).isEqualTo("L1-u"); in testBatchUpdatesApplyUpdateFirstThenTransformations() 390 .that(line2.getText()).isEqualTo("L2-u"); in testBatchUpdatesApplyUpdateFirstThenTransformations() 392 .that(line3.getText()).isEqualTo("L3-p"); in testBatchUpdatesApplyUpdateFirstThenTransformations() 595 .that(saveUi.findObject(By.res(mPackageName, "static_text"))).isNull(); in assertSaveUiWithoutCustomDescriptionIsShown() 617 .that(line1.getText()).isEqualTo(expectedTextOnFirst), in assertSaveUiIsShownWithTwoLines() [all …]
|
D | CannedFillResponse.java | 170 assertWithMessage("Cannot create datase").that(dataset).isNotNull(); in asFillResponse() 335 assertWithMessage("already set failure").that(mFailureMessage).isNull(); in addDataset() 426 assertWithMessage("already added datasets").that(mDatasets).isEmpty(); in returnFailure() 435 assertWithMessage("already set").that(mSaveTriggerId).isNull(); in setSaveTriggerId() 441 assertWithMessage("already set").that(mDisableDuration).isEqualTo(0L); in disableAutofill() 450 assertWithMessage("already set").that(mFieldClassificationIds).isNull(); in setFieldClassificationIds() 464 assertWithMessage("already set").that(mHeader).isNull(); in setHeader() 470 assertWithMessage("already set").that(mFooter).isNull(); in setFooter() 476 assertWithMessage("already set").that(mSaveInfoDecorator).isNull(); in setSaveInfoDecorator() 487 assertWithMessage("already set").that(mUserData).isNull(); in setUserData()
|
/cts/libs/rollback/src/com/android/cts/rollback/lib/ |
D | RollbackInfoSubject.java | 40 return Truth.assert_().about(rollbacks()).that(rollback); in assertThat() 53 public RollbackInfoSubject createSubject(FailureMetadata fs, RollbackInfo that) { 54 return new RollbackInfoSubject(fs, that); 66 check().that(getSubject().getRollbackId()).isEqualTo(rollbackId); in hasRollbackId() 73 check().that(getSubject().isStaged()).isTrue(); in isStaged() 80 check().that(getSubject().isStaged()).isFalse(); in isNotStaged() 92 check().that(actualPackages).containsExactly((Object[]) expected); in packagesContainsExactly() 134 check().that(actualVps).containsExactlyElementsIn(expectedVps); in causePackagesContainsExactly()
|
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/ |
D | DirectDelegatedCertInstallerTest.java | 142 + " beginning of the test").that(keyStore.getCertificateAlias(caCert)).isNull(); in testCaCertsOperations() 144 + " beginning of the test").that(mDpm.hasCaCertInstalled(null, cert)).isFalse(); in testCaCertsOperations() 147 assertWithMessage("Expecting CA certificate installation to succeed").that( in testCaCertsOperations() 149 assertWithMessage("Expecting CA cert to be installed").that( in testCaCertsOperations() 153 assertWithMessage("Expecting CA cert to be in the list of installed CA certs").that( in testCaCertsOperations() 157 assertWithMessage("CA cert should have a KeyStore alias").that( in testCaCertsOperations() 161 assertWithMessage("Expecting CA cert to no longer be installed").that( in testCaCertsOperations() 225 .that(telephonyService).isNotNull(); in testAccessToDeviceIdentifiers()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/display/ |
D | DisplayHdrCapabilitiesTestActivity.java | 99 .that(display.isHdr()) in runTest() 103 .that(display.getHdrCapabilities().getSupportedHdrTypes()) in runTest() 136 .that(display.isHdr()) in runTest() 146 .that(supportedHdrTypes) in runTest() 157 .that(maxLuminance) in runTest() 163 .that(minLuminance) in runTest() 168 .that(hdrCapabilities.getDesiredMaxAverageLuminance()) in runTest()
|
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/ |
D | README.md | 11 5. `cat events` will print the events that the device is producing 13 This will show you the hid reports that the device produces. 15 To observe the MotionEvents that Android receives in response to the hid reports, write a small 16 app that would override `dispatchGenericMotionEvent` and `dispatchKeyEvent` of an activity. 17 There, print all of the event data that has changed. For MotionEvents, ensure to look at the
|
/cts/tests/media/jni/ |
D | NativeCodecTestBase.cpp | 254 bool OutputManager::equals(const OutputManager* that) { in equals() argument 255 if (this == that) return true; in equals() 256 if (outPtsArray != that->outPtsArray) { in equals() 257 if (outPtsArray.size() != that->outPtsArray.size()) { in equals() 259 (int)outPtsArray.size(), (int)that->outPtsArray.size()); in equals() 263 for (auto it1 = outPtsArray.cbegin(), it2 = that->outPtsArray.cbegin(); in equals() 277 if (memory != that->memory) { in equals() 278 if (memory.size() != that->memory.size()) { in equals() 280 (int)memory.size(), (int)that->memory.size()); in equals() 284 for (auto it1 = memory.cbegin(), it2 = that->memory.cbegin(); it1 < memory.cend(); in equals() [all …]
|
D | NativeMuxerTest.cpp | 67 bool combineMedias(AMediaMuxer* muxer, MuxerNativeTestHelper* that, const int* repeater); 69 bool isSubsetOf(MuxerNativeTestHelper* that); 221 bool MuxerNativeTestHelper::combineMedias(AMediaMuxer* muxer, MuxerNativeTestHelper* that, in combineMedias() argument 223 if (that == nullptr) return false; in combineMedias() 227 int totalTracksToAdd = repeater[0] * this->mTrackCount + repeater[1] * that->mTrackCount; in combineMedias() 229 MuxerNativeTestHelper* group[2]{this, that}; in combineMedias() 266 bool MuxerNativeTestHelper::isSubsetOf(MuxerNativeTestHelper* that) { in isSubsetOf() argument 267 if (this == that) return true; in isSubsetOf() 268 if (that == nullptr) return false; in isSubsetOf() 275 for (; j < that->mTrackCount; j++) { in isSubsetOf() [all …]
|
/cts/hostsidetests/appcompat/compatchanges/src/com/android/cts/appcompat/ |
D | CompatChangesValidConfigTest.java | 138 Change that = (Change) other; in equals() local 139 return this.changeId == that.changeId in equals() 140 && Objects.equals(this.changeName, that.changeName) in equals() 141 && this.targetSdk == that.targetSdk in equals() 142 && this.disabled == that.disabled in equals() 143 && this.loggingOnly == that.loggingOnly in equals() 144 && this.hasOverrides == that.hasOverrides; in equals()
|
/cts/hostsidetests/stagedinstall/src/com/android/tests/stagedinstall/host/ |
D | ApexShimValidationTest.java | 90 assertWithMessage("Shim APEX is not pre-installed").that( in testShimApexIsPreInstalled() 97 assertWithMessage("CTSShim APK is not pre-installed").that( in testShimApkIsPreInstalledInShimApex() 102 + "Shim APEX").that(isShimApkInShimApex).isTrue(); in testShimApkIsPreInstalledInShimApex() 106 assertWithMessage("CTSPrivShim APK is not pre-installed").that( in testShimApkIsPreInstalledInShimApex() 111 + "from Shim APEX").that(isPrivShimApkInShimApex).isTrue(); in testShimApkIsPreInstalledInShimApex()
|
/cts/hostsidetests/sustainedperf/dhrystone/ |
D | Rationale | 26 However, the version that was used most often for benchmarking has 35 one C version of Dhrystone such that results can be compared without 45 statements. It has turned out in the past that optimizing compilers 48 danger that benchmarking results obtained by a naive application of 49 Dhrystone - without inspection of the code that was generated - could 52 The overall policiy for version 2 has been that the distribution of 64 of representative programs that can be used as benchmarks; users should 76 In general, version 2 follows - in the parts that are significant for 81 Reinhold Weicker. (However, the differences have been so small that 93 However, it turned out that it is not enough just to inclose the main [all …]
|
/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/ |
D | PackageInstallerSessionInfoSubject.java | 49 return Truth.assertAbout(sessions()).that(session); 53 check().withMessage(failureMessage("in state READY")).that( 58 check().withMessage(failureMessage("in state APPLIED")).that( 63 check().withMessage(failureMessage("in state FAILED")).that(
|
/cts/hostsidetests/userspacereboot/src/com/android/cts/userspacereboot/host/ |
D | UserspaceRebootHostTest.java | 153 assertWithMessage("Failed to start checkpoint : %s", result.getStderr()).that( in testUserspaceRebootWithCheckpoint() 199 assertWithMessage("Failed to start checkpoint : %s", result.getStderr()).that( in testUserspaceRebootWithCheckpoint_verifyCeStorageIsUnlocked() 296 result.getStderr()).that(result.getStatus()).isEqualTo(CommandStatus.SUCCESS); in isFsCheckpointingSupported() 312 assertWithMessage("Device did not boot within %s", timeout).that( in rebootUserspaceAndWaitForBootComplete() 328 + "%s", bootReason).that(result).isTrue(); in assertUserspaceRebootSucceed() 340 assertWithMessage("Fallback to full reboot wasn't triggered").that(result).isFalse(); in assertUserspaceRebootFailed() 353 .that(result.getStatus()).isEqualTo(CommandStatus.SUCCESS); in setProperty()
|
/cts/hostsidetests/theme/ |
D | README | 18 The Android theme tests ensure that the Holo and Material themes have not been 20 specific themes and widgets that must be identical across devices. To pass the 21 theme tests, a device must be able to generate images that are identical to the 70 There is an option to build locally an Android system image and use an emulator that is stored in 87 a set for each possible DPI bucket (tvdpi, xxhdpi, etc.) that may be tested. 111 tests for that density, you can manually force scaling via: 122 1. Connect the device that you wish to test. Confirm that is is connected with:
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | kernel_input.rscript | 26 * This checks that modifications to input arguments done by a kernel 28 * this, we create kernels that modify their input arguments (the 33 * verify_input_* functions can be passed the same Allocation that was 38 // The clear_input_* kernels have rsDebug calls so that the writes they make to 40 // rsDebug, guard calls to it with a runtime test that is guaranteed to be 45 // to try to inhibit any optimizations that would result in the write to
|