Home
last modified time | relevance | path

Searched refs:getResultCode (Results 1 – 25 of 34) sorted by relevance

12

/cts/tests/appsearch/src/com/android/cts/appsearch/external/exceptions/
DAppSearchExceptionCtsTest.java30 assertThat(e.getResultCode()).isEqualTo(AppSearchResult.RESULT_IO_ERROR); in testNoMessageException()
34 assertThat(result.getResultCode()).isEqualTo(AppSearchResult.RESULT_IO_ERROR); in testNoMessageException()
41 assertThat(e.getResultCode()).isEqualTo(AppSearchResult.RESULT_NOT_FOUND); in testExceptionWithMessage()
45 assertThat(result.getResultCode()).isEqualTo(AppSearchResult.RESULT_NOT_FOUND); in testExceptionWithMessage()
55 assertThat(e.getResultCode()).isEqualTo(AppSearchResult.RESULT_INVALID_ARGUMENT); in testExceptionWithThrowable()
60 assertThat(result.getResultCode()).isEqualTo(AppSearchResult.RESULT_INVALID_ARGUMENT); in testExceptionWithThrowable()
/cts/tests/tests/provider/src/android/provider/cts/
DFontsContractTest.java195 assertEquals(Columns.RESULT_CODE_OK, font.getResultCode()); in querySingleFont()
212 assertEquals(Columns.RESULT_CODE_OK, font.getResultCode()); in queryMultipleFont()
234 assertEquals(Columns.RESULT_CODE_OK, font.getResultCode()); in queryAttributes()
242 assertEquals(Columns.RESULT_CODE_OK, font.getResultCode()); in queryAttributes()
259 assertEquals(Columns.RESULT_CODE_FONT_NOT_FOUND, font.getResultCode()); in queryNotFound()
275 assertEquals(Columns.RESULT_CODE_FONT_UNAVAILABLE, font.getResultCode()); in queryUnavailable()
291 assertEquals(Columns.RESULT_CODE_MALFORMED_QUERY, font.getResultCode()); in queryMalformed()
307 assertEquals(Columns.RESULT_CODE_OK, font.getResultCode()); in queryMultipleOneNotFound()
309 assertEquals(Columns.RESULT_CODE_FONT_NOT_FOUND, font2.getResultCode()); in queryMultipleOneNotFound()
329 assertEquals(Columns.RESULT_CODE_OK, font.getResultCode()); in queryMandatoryFieldsOnly()
DMockFontProvider.java95 public int getResultCode() { in getResultCode() method in MockFontProvider.Font
200 builder.add(Columns.RESULT_CODE, font.getResultCode()); in buildCursor()
/cts/tests/tests/content/src/android/content/cts/
DBroadcastReceiverTest.java162 if (getResultCode() == mExpectedInitialCode) { in onReceive()
178 assertEquals(0, internalReceiver.getResultCode()); in testOnReceive()
206 assertEquals(MockReceiver.RESULT_CODE, internalReceiver.getResultCode()); in testManifestReceiverPackage()
235 assertEquals(MockReceiver.RESULT_CODE, internalReceiver.getResultCode()); in testManifestReceiverComponent()
263 assertEquals(MockReceiver.RESULT_CODE, internalReceiver.getResultCode()); in testManifestReceiverPermission()
289 assertEquals(RESULT_INITIAL_CODE, internalReceiver.getResultCode()); in testNoManifestReceiver()
304 assertEquals(0, internalOrderReceiver.getResultCode()); in testAbortBroadcast()
323 assertEquals(RESULT_INTERNAL_FINAL_CODE, internalOrderReceiver.getResultCode()); in testAbortBroadcast()
342 assertEquals(0, lastReceiver.getResultCode()); in testDisabledBroadcastReceiver()
354 assertEquals(RESULT_INTERNAL_FINAL_CODE, lastReceiver.getResultCode()); in testDisabledBroadcastReceiver()
/cts/tests/app/src/android/app/cts/
DInstrumentation_ActivityResultTest.java30 assertEquals(Activity.RESULT_OK, result.getResultCode()); in testActivityResultOp()
34 assertEquals(Activity.RESULT_CANCELED, result.getResultCode()); in testActivityResultOp()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DSmsReceiver.java41 intent.putExtra(SmsReceiverHelper.EXTRA_RESULT_CODE, getResultCode()); in onReceive()
46 intent.putExtra(SmsReceiverHelper.EXTRA_RESULT_CODE, getResultCode()); in onReceive()
/cts/tests/tests/os/src/android/os/cts/
DResultReceiverTest.java36 assertEquals(resultCode, sender.getResultCode()); in testResultReceiver()
69 public int getResultCode() { in getResultCode() method in ResultReceiverTest.MockResultReceiver
DActivityTestsBase.java195 public int getResultCode() { in getResultCode() method in ActivityTestsBase
/cts/tests/tests/telephony/current/src/android/telephony/euicc/cts/
DEuiccManagerTest.java139 EuiccManager.EMBEDDED_SUBSCRIPTION_RESULT_ERROR, mCallbackReceiver.getResultCode()); in testDownloadSubscription()
182 EuiccManager.EMBEDDED_SUBSCRIPTION_RESULT_ERROR, mCallbackReceiver.getResultCode()); in testDeleteSubscription()
212 EuiccManager.EMBEDDED_SUBSCRIPTION_RESULT_ERROR, mCallbackReceiver.getResultCode()); in testSwitchToSubscription()
243 EuiccManager.EMBEDDED_SUBSCRIPTION_RESULT_ERROR, mCallbackReceiver.getResultCode()); in testEraseSubscriptions()
278 mCallbackReceiver.getResultCode()); in testStartResolutionActivity()
499 int resultCode = getResultCode(); in onReceive()
/cts/tests/location/location_gnss/src/android/location/cts/gnss/asn1/supl2/supl_report/
DReportData.java132 public ResultCode getResultCode() { in getResultCode() method in ReportData
259 return getResultCode() != null; in getComponents()
271 return getResultCode(); in getComponents()
294 + getResultCode().toIndentedString(indent); in getComponents()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/
DSensorCtsVerifierTestActivity.java83 while (mEnableRetry && testDetails.getResultCode().equals(ResultCode.FAIL)) { in executeTests()
139 SensorTestDetails.ResultCode resultCode = testDetails.getResultCode(); in executeTest()
DBaseSensorTestActivity.java224 SensorTestDetails.ResultCode resultCode = testDetails.getResultCode(); in run()
509 SensorTestDetails.ResultCode resultCode = testDetails.getResultCode(); in setTestResult()
538 SensorTestDetails.ResultCode resultCode = testDetails.getResultCode(); in executeActivityTests()
563 SensorTestDetails.ResultCode resultCode = testDetails.getResultCode(); in promptUserToSetResult()
699 SensorTestDetails.ResultCode resultCode = testDetails.getResultCode(); in logTestDetails()
/cts/tests/appsearch/src/com/android/cts/appsearch/external/app/
DAppSearchSessionCtsTestBase.java149 assertThat(exception.getResultCode()).isEqualTo(RESULT_INVALID_SCHEMA); in testSetSchema_Failure()
161 assertThat(exception.getResultCode()).isEqualTo(RESULT_INVALID_SCHEMA); in testSetSchema_Failure()
496 assertThat(result.getFailures().get("gift1").getResultCode()) in testUpdateSchema()
569 assertThat(getResult.getFailures().get("email1").getResultCode()) in testRemoveSchema()
651 assertThat(getResult.getFailures().get("email1").getResultCode()) in testRemoveSchema_twoDatabases()
711 assertThat(failResult.getFailures().get("id1").getResultCode()) in testGetDocuments()
2254 assertThat(getResult.getFailures().get("id1").getResultCode()) in testRemove()
2266 assertThat(deleteResult.getFailures().get("id1").getResultCode()) in testRemove()
2316 assertThat(getResult.getFailures().get("id1").getResultCode()) in testRemove_multipleIds()
2318 assertThat(getResult.getFailures().get("id2").getResultCode()) in testRemove_multipleIds()
[all …]
/cts/tests/app/app/src/android/app/stubs/
DMockReceiver.java42 sResultCode = getResultCode(); in onReceive()
DActivityTestsBase.java209 public int getResultCode() { in getResultCode() method in ActivityTestsBase
/cts/tests/tests/permission2/src/android/permission2/cts/
DNoReceiveSmsPermissionTest.java169 handleResultCode(getResultCode(), "delivery"); in onReceive()
171 handleResultCode(getResultCode(), "sent"); in onReceive()
/cts/tests/app/src/android/app/cts/android/app/cts/tools/
DSyncOrderedBroadcast.java38 mReceivedCode = getResultCode();
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/reporting/
DSensorTestDetails.java102 public ResultCode getResultCode() { in getResultCode() method in SensorTestDetails
/cts/tests/autofillservice/src/android/autofillservice/cts/unittests/
DAutofillManagerTest.java121 final int statusResultCode = receiver.getResultCode(); in runQueryAutofillStatusActivityAndVerifyResult()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DAssistScreenCaptureDisabledTest.java73 q.offer(getResultCode() == Activity.RESULT_OK); in assertScreenCapturePossible()
/cts/libs/install/src/com/android/cts/install/lib/
DInstallUtils.java284 if (getResultCode() == 1) { in processUserData()
335 resultQueue.add(getResultCode()); in getUserDataVersion()
/cts/tests/tests/media/src/android/media/cts/
DSession2CommandTest.java138 assertEquals(TEST_RESULT_CODE, result.getResultCode()); in testGetResultCodeAndData()
DMediaController2Test.java355 assertEquals(SESSION_RESULT_CODE, controllerCallback.mCommandResult.getResultCode()); in testCallback_onCommandResult()
390 controllerCallback.mCommandResult.getResultCode()); in testCancelSessionCommand()
/cts/hostsidetests/appsearch/test-apps/AppSearchHostTestHelperA/src/android/appsearch/app/a/
DAppSearchDeviceTest.java126 assertThat(getResult.getFailures().get(ID).getResultCode()) in testGetDocuments_nonexist()
/cts/tests/suspendapps/tests/src/android/suspendapps/cts/
DSuspendTestUtils.java133 result.set(getResultCode()); in requestDpmAction()

12