Home
last modified time | relevance | path

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

123

/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/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/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/appsearch/src/com/android/cts/appsearch/functions/
DAppFunctionManagerCtsTest.java117 assertThat(response.getResultCode()).isEqualTo(RESULT_NOT_FOUND); in executeAppFunction_failed_noSuchMethod()
183 assertThat(response.getResultCode()).isEqualTo(AppSearchResult.RESULT_SECURITY_ERROR); in executeAppFunction_otherNonExistingOtherPackage()
199 assertThat(response.getResultCode()).isEqualTo(AppSearchResult.RESULT_SECURITY_ERROR); in executeAppFunction_otherExistingTargetPackage()
233 assertThat(response.getResultCode()).isEqualTo(RESULT_UNKNOWN_ERROR); in executeAppFunction_throwsException()
247 assertThat(response.getResultCode()).isEqualTo(RESULT_INTERNAL_ERROR); in executeAppFunction_onRemoteProcessKilled()
263 assertThat(response.getResultCode()).isEqualTo(RESULT_TIMED_OUT); in executeAppFunction_timedOut()
299 assertThat(response.getResultCode()).isEqualTo(RESULT_INVALID_ARGUMENT); in executeAppFunction_emptyPackage()
316 assertThat(response.getResultCode()).isEqualTo(RESULT_SECURITY_ERROR); in executeAppFunction_runInManagedProfile_fail()
349 assertThat(response.getResultCode()).isEqualTo(RESULT_SECURITY_ERROR); in executeAppFunction_deviceOwner_fail()
380 assertThat(response.getResultCode()).isEqualTo(RESULT_NOT_FOUND); in executeAppFunction_wrongSha256Certificate()
/cts/tests/app/BroadcastsTest/src/android/app/cts/broadcasts/
DBroadcastReceiverTest.java181 if (getResultCode() == mExpectedInitialCode) { in onReceive()
205 assertEquals(0, internalReceiver.getResultCode()); in testOnReceive()
235 assertEquals(MockReceiver.RESULT_CODE, internalReceiver.getResultCode()); in testManifestReceiverPackage()
265 assertEquals(MockReceiver.RESULT_CODE, internalReceiver.getResultCode()); in testManifestReceiverComponent()
294 assertEquals(MockReceiver.RESULT_CODE, internalReceiver.getResultCode()); in testManifestReceiverPermission()
321 assertEquals(RESULT_INITIAL_CODE, internalReceiver.getResultCode()); in testNoManifestReceiver()
337 assertEquals(0, internalOrderReceiver.getResultCode()); in testAbortBroadcast()
356 assertEquals(RESULT_INTERNAL_FINAL_CODE, internalOrderReceiver.getResultCode()); in testAbortBroadcast()
375 assertEquals(0, lastReceiver.getResultCode()); in testDisabledBroadcastReceiver()
387 assertEquals(RESULT_INTERNAL_FINAL_CODE, lastReceiver.getResultCode()); in testDisabledBroadcastReceiver()
[all …]
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DSmsReceiver.java46 intent.putExtra(SmsReceiverHelper.EXTRA_RESULT_CODE, getResultCode()); in onReceive()
51 intent.putExtra(SmsReceiverHelper.EXTRA_RESULT_CODE, getResultCode()); in onReceive()
/cts/tests/tests/os/src/android/os/cts/
DResultReceiverTest.java38 assertEquals(resultCode, sender.getResultCode()); in testResultReceiver()
71 public int getResultCode() { in getResultCode() method in ResultReceiverTest.MockResultReceiver
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewTextBoundsInfoTest.java178 assertThat(textBoundsInfoResult.getResultCode()) in testRequestTextBoundsInfo_topOfLayout()
194 assertThat(textBoundsInfoResult.getResultCode()) in testRequestTextBoundsInfo_leftOfLayout()
210 assertThat(textBoundsInfoResult.getResultCode()) in testRequestTextBoundsInfo_rightOfLayout()
226 assertThat(textBoundsInfoResult.getResultCode()) in testRequestTextBoundsInfo_bottomOfLayout()
242 assertThat(textBoundsInfoResult.getResultCode()) in testRequestTextBoundsInfo_firstLine()
267 assertThat(textBoundsInfoResult.getResultCode()) in testRequestTextBoundsInfo_lastLine()
291 assertThat(textBoundsInfoResult.getResultCode()) in testRequestTextBoundsInfo_multiLines()
315 assertThat(textBoundsInfoResult.getResultCode()) in testRequestTextBoundsInfo_withTranslation()
/cts/tests/credentials/src/android/credentials/cts/unittests/selection/
DProviderPendingIntentResponseTest.java56 assertThat(obj.getResultCode()).isEqualTo(expectedResultCode); in construction_success()
73 assertThat(toObj.getResultCode()).isEqualTo(expectedResultCode); in writeToParcel_success()
/cts/tests/tests/attributionsource/src/android/attributionsource/cts/
DAttributionSourceTest.kt62 thread.getResultCode() in testRemoteProcessActivityPidCheck()
140 mResultCode = result.getResultCode() in run()
143 fun getResultCode(): Int { in getResultCode() method
/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/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/premade/
DEventLibBroadcastReceiver.java40 BroadcastReceivedEvent.logger(this, context, intent, getResultCode()); in onReceive()
/cts/tests/tests/telephony/current/src/android/telephony/euicc/cts/
DEuiccManagerTest.java226 EuiccManager.EMBEDDED_SUBSCRIPTION_RESULT_ERROR, mCallbackReceiver.getResultCode()); in testDownloadSubscription()
270 EuiccManager.EMBEDDED_SUBSCRIPTION_RESULT_ERROR, mCallbackReceiver.getResultCode()); in testDeleteSubscription()
308 EuiccManager.EMBEDDED_SUBSCRIPTION_RESULT_ERROR, mCallbackReceiver.getResultCode()); in testSwitchToSubscritionDisableWithNoPortAndChangesCompatDisabled()
361 EuiccManager.EMBEDDED_SUBSCRIPTION_RESULT_ERROR, mCallbackReceiver.getResultCode()); in testSwitchToSubscription()
392 EuiccManager.EMBEDDED_SUBSCRIPTION_RESULT_ERROR, mCallbackReceiver.getResultCode()); in testSwitchToSubscriptionWithCallback()
424 EuiccManager.EMBEDDED_SUBSCRIPTION_RESULT_ERROR, mCallbackReceiver.getResultCode()); in testEraseSubscriptions()
460 mCallbackReceiver.getResultCode()); in testStartResolutionActivity()
906 int resultCode = getResultCode(); in onReceive()
/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.java220 SensorTestDetails.ResultCode resultCode = testDetails.getResultCode(); in run()
488 SensorTestDetails.ResultCode resultCode = testDetails.getResultCode(); in setTestResult()
517 SensorTestDetails.ResultCode resultCode = testDetails.getResultCode(); in executeActivityTests()
542 SensorTestDetails.ResultCode resultCode = testDetails.getResultCode(); in promptUserToSetResult()
683 SensorTestDetails.ResultCode resultCode = testDetails.getResultCode(); in logTestDetails()
/cts/tests/app/app/src/android/app/stubs/
DMockReceiver.java42 sResultCode = getResultCode(); in onReceive()
/cts/tests/appsearch/testutils/src/android/app/appsearch/testutil/
DEnterpriseGlobalSearchSessionShimImpl.java77 new AppSearchException(instance.getResultCode(), in createEnterpriseGlobalSearchSessionAsync()
134 throw new AppSearchException(result.getResultCode(), result.getErrorMessage());
DSearchResultsShimImpl.java66 throw new AppSearchException(result.getResultCode(), result.getErrorMessage()); in transformResult()
/cts/tests/app/src/android/app/cts/android/app/cts/tools/
DSyncOrderedBroadcast.java38 mReceivedCode = getResultCode();
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DMediaProjectionHelper.java117 int getResultCode() { in getResultCode() method in MediaProjectionHelper.MediaProjectionActivity
256 mResultCode = activity[0].getResultCode(); in authorizeMediaProjection()
/cts/tests/sensitivecontentprotection/src/android/sensitivecontentprotection/cts/
DSensitiveContentMediaProjectionHelper.java117 int getResultCode() { in getResultCode() method in SensitiveContentMediaProjectionHelper.MediaProjectionActivity
256 mResultCode = activity[0].getResultCode(); in authorizeMediaProjection()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/reporting/
DSensorTestDetails.java102 public ResultCode getResultCode() { in getResultCode() method in SensorTestDetails
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DTextBoundsInfoTest.java505 assertEquals(result.getResultCode(), TextBoundsInfoResult.CODE_UNSUPPORTED); in testTextBoundsInfoResult_constructor()
508 assertEquals(result.getResultCode(), TextBoundsInfoResult.CODE_FAILED); in testTextBoundsInfoResult_constructor()
511 assertEquals(result.getResultCode(), TextBoundsInfoResult.CODE_CANCELLED); in testTextBoundsInfoResult_constructor()
525 assertEquals(result.getResultCode(), TextBoundsInfoResult.CODE_SUCCESS); in testTextBoundsInfoResult_constructor()
/cts/tests/appsearch/src/com/android/cts/appsearch/external/app/
DAppSearchResultCtsTest.java29 assertThat(result.getResultCode()).isEqualTo(AppSearchResult.RESULT_OK); in testNewSuccessfulResult()

123