Home
last modified time | relevance | path

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

123456

/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/fingerprint/
DFingerprintEnrollFindSensorTest.java218 assertWithMessage("result code").that(shadowActivity.getResultCode()) in clickSkip_shouldReturnResultSkip()
243 assertThat(Shadows.shadowOf(mActivity).getResultCode()).isEqualTo(Activity.RESULT_CANCELED); in onActivityResult_withNullIntentShouldNotCrash()
256 assertThat(Shadows.shadowOf(mActivity).getResultCode()).isEqualTo(DEFAULT_ACTIVITY_RESULT); in resultFinishShallForward_onRearDevice()
272 assertThat(Shadows.shadowOf(mActivity).getResultCode()).isEqualTo(DEFAULT_ACTIVITY_RESULT); in resultFinishShallForward_onRearDevice_recreate()
289 assertThat(Shadows.shadowOf(mActivity).getResultCode()).isEqualTo(DEFAULT_ACTIVITY_RESULT); in resultSkipShallForward_onRearDevice()
307 assertThat(Shadows.shadowOf(mActivity).getResultCode()).isEqualTo(DEFAULT_ACTIVITY_RESULT); in resultSkipShallForward_onRearDevice_recreate()
324 assertThat(Shadows.shadowOf(mActivity).getResultCode()).isEqualTo(DEFAULT_ACTIVITY_RESULT); in resultTimeoutShallForward_onRearDevice()
342 assertThat(Shadows.shadowOf(mActivity).getResultCode()).isEqualTo(DEFAULT_ACTIVITY_RESULT); in resultTimeoutShallForward_onRearDevice_recreate()
354 assertThat(Shadows.shadowOf(mActivity).getResultCode()).isEqualTo(DEFAULT_ACTIVITY_RESULT); in clickLottieResultFinishShallForward_onUdfpsDevice()
360 assertThat(Shadows.shadowOf(mActivity).getResultCode()).isEqualTo(DEFAULT_ACTIVITY_RESULT); in clickLottieResultFinishShallForward_onUdfpsDevice()
[all …]
/packages/modules/AppSearch/service/java/com/android/server/appsearch/contactsindexer/
DAppSearchHelper.java196 + result.getResultCode() in createAppSearchSessionAsync()
201 result.getResultCode(), result.getErrorMessage())); in createAppSearchSessionAsync()
253 + result.getResultCode() in setPersonSchemaAsync()
258 result.getResultCode(), result.getErrorMessage())); in setPersonSchemaAsync()
346 int errorCode = failure.getResultCode(); in indexContactsAsync()
373 firstFailure.getResultCode(), in indexContactsAsync()
388 .getResultCode()); in indexContactsAsync()
453 int errorCode = failedResult.getResultCode(); in removeContactsByIdAsync()
473 firstFailure.getResultCode(), in removeContactsByIdAsync()
488 .getResultCode()); in removeContactsByIdAsync()
[all …]
/packages/apps/LegacyCamera/tests/src/com/android/camera/functional/
DImageCaptureIntentTest.java61 assertEquals(Activity.RESULT_OK, getActivity().getResultCode()); in testNoExtraOutput()
85 assertEquals(Activity.RESULT_OK, getActivity().getResultCode()); in testExtraOutput()
114 assertEquals(Activity.RESULT_OK, getActivity().getResultCode()); in testRetake()
130 assertEquals(Activity.RESULT_CANCELED, getActivity().getResultCode()); in testCancel()
142 assertEquals(Activity.RESULT_CANCELED, getActivity().getResultCode()); in testSnapshotCancel()
DVideoCaptureIntentTest.java132 assertEquals(Activity.RESULT_CANCELED, getActivity().getResultCode()); in testCancel()
144 assertEquals(Activity.RESULT_CANCELED, getActivity().getResultCode()); in testRecordCancel()
224 assertEquals(Activity.RESULT_OK, activity.getResultCode());
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/stats/
DAdsRelevanceExecutionLoggerImplTest.java111 assertThat(getAdSelectionDataStats.getResultCode()).isEqualTo(resultCode); in testFledgeAuctionServerExecutionLogger_successGetAdSelectionData()
144 assertThat(persistAdSelectionResultStats.getResultCode()).isEqualTo(resultCode); in testFledgeAuctionServerExecutionLogger_successPersistAdSelectionResult()
173 assertThat(getAdSelectionDataStats.getResultCode()).isEqualTo(STATUS_UNSET); in testFledgeAuctionServerExecutionLogger_missingStartOfGetAdSelectionData()
206 assertThat(getAdSelectionDataStats.getResultCode()).isEqualTo(STATUS_UNSET); in testFledgeAuctionServerExecutionLogger_redundantEndOfGetAdSelectionData()
235 assertThat(persistAdSelectionResultStats.getResultCode()).isEqualTo(STATUS_UNSET); in testFledgeAuctionServerExecutionLogger_missingStartOfPersistAdSelectionResult()
268 assertThat(persistAdSelectionResultStats.getResultCode()).isEqualTo(STATUS_UNSET); in testFledgeAuctionServerExecutionLogger_redundantEndOfPersistAdSelectionResult()
/packages/apps/Camera2/tests/src/com/android/camera/functional/
DImageCaptureIntentTest.java60 assertEquals(Activity.RESULT_OK, getActivity().getResultCode()); in testNoExtraOutput()
84 assertEquals(Activity.RESULT_OK, getActivity().getResultCode()); in testExtraOutput()
110 assertEquals(Activity.RESULT_CANCELED, getActivity().getResultCode()); in testCancel()
122 assertEquals(Activity.RESULT_CANCELED, getActivity().getResultCode()); in testSnapshotCancel()
DVideoCaptureIntentTest.java116 assertEquals(Activity.RESULT_CANCELED, getActivity().getResultCode()); in testCancel()
128 assertEquals(Activity.RESULT_CANCELED, getActivity().getResultCode()); in testRecordCancel()
208 assertEquals(Activity.RESULT_OK, activity.getResultCode());
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/
DAppSearchResult.java137 return getResultCode() == RESULT_OK; in isSuccess()
142 public int getResultCode() { in getResultCode() method in AppSearchResult
239 otherFailedResult.getResultCode(), otherFailedResult.getErrorMessage()); in newFailedResult()
250 && ((AppSearchException) t).getResultCode() == RESULT_NOT_FOUND) { in throwableToFailedResult()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/
DTopicsWorkerTest.java185 assertThat(getTopicsResult.getResultCode()) in testGetTopics()
186 .isEqualTo(expectedGetTopicsResult.getResultCode()); in testGetTopics()
273 assertThat(getTopicsResult.getResultCode()) in testGetTopics_enableEncryption_disablePlaintextTopics()
274 .isEqualTo(expectedGetTopicsResult.getResultCode()); in testGetTopics_enableEncryption_disablePlaintextTopics()
370 assertThat(getTopicsResult.getResultCode()) in testGetTopics_enableEncryption_featureOn()
371 .isEqualTo(expectedGetTopicsResult.getResultCode()); in testGetTopics_enableEncryption_featureOn()
458 assertThat(getTopicsResult.getResultCode()) in testGetTopics_enableEncryption_featureOff()
459 .isEqualTo(expectedGetTopicsResult.getResultCode()); in testGetTopics_enableEncryption_featureOff()
502 assertThat(getTopicsResult.getResultCode()) in testGetTopics_emptyCache()
503 .isEqualTo(expectedGetTopicsResult.getResultCode()); in testGetTopics_emptyCache()
[all …]
DTopicsServiceImplTest.java628 assertThat(getTopicsResult.getResultCode()) in getTopicsFromApp_SdkTagMissing()
629 .isEqualTo(expectedGetTopicsResult.getResultCode()); in getTopicsFromApp_SdkTagMissing()
704 assertThat(getTopicsResult.getResultCode()) in getTopics_oneTopicBlocked()
705 .isEqualTo(expectedGetTopicsResult.getResultCode()); in getTopics_oneTopicBlocked()
799 assertThat(getTopicsResult.getResultCode()) in testGetTopics_emptyTopicsReturned()
800 .isEqualTo(expectedGetTopicsResult.getResultCode()); in testGetTopics_emptyTopicsReturned()
856 assertThat(getTopicsResult.getResultCode()) in testGetTopics_LatencyCalculateVerify()
857 .isEqualTo(expectedGetTopicsResult.getResultCode()); in testGetTopics_LatencyCalculateVerify()
1008 .that(apiCallStats.getResultCode()) in assertApiCallStats()
1060 .that(apiCallStats.getResultCode()) in invokeGetTopicsAndVerifyError()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/shell/
DShellCommandServiceImplTest.java172 expect.withMessage("result").that(response.getResultCode()).isEqualTo(0); in testRunShellCommand()
185 expect.withMessage("result").that(response.getResultCode()).isEqualTo(-1); in testRunShellCommand_invalidCommand()
204 expect.withMessage("result").that(response.getResultCode()).isEqualTo(0); in testRunShellCommand_customAudienceList()
220 expect.withMessage("result").that(response.getResultCode()).isEqualTo(0); in testRunShellCommand_consentDebug_view()
287 expect.that(response.getResultCode()).isEqualTo(AbstractShellCommand.RESULT_OK); in testRunShellCommand_offloadsWorkToExecutor()
348 expect.that(response.getResultCode()) in testRunShellCommand_commandTimesOut()
392 expect.that(response.getResultCode()).isEqualTo(AbstractShellCommand.RESULT_GENERIC_ERROR); in testRunShellCommand_commandThrowsException()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/sap/
DSapRilReceiverTest.java242 && sapMsg.getResultCode() == resultCode in callback_apduResponse()
268 && sapMsg.getResultCode() == resultCode in callback_transferAtrResponse()
296 && sapMsg.getResultCode() == resultCode; in callback_powerResponse_powerOff()
323 && sapMsg.getResultCode() == resultCode; in callback_powerResponse_powerOn()
347 && sapMsg.getResultCode() == resultCode; in callback_resetSimResponse()
398 && sapMsg.getResultCode() == resultCode; in callback_transferCardReaderStatusResponse()
444 && sapMsg.getResultCode() == resultCode; in callback_transferProtocolResponse()
DSapRilReceiverHidlTest.java241 && sapMsg.getResultCode() == resultCode in callback_apduResponse()
271 && sapMsg.getResultCode() == resultCode in callback_transferAtrResponse()
299 && sapMsg.getResultCode() == resultCode; in callback_powerResponse_powerOff()
326 && sapMsg.getResultCode() == resultCode; in callback_powerResponse_powerOn()
350 && sapMsg.getResultCode() == resultCode; in callback_resetSimResponse()
401 && sapMsg.getResultCode() == resultCode; in callback_transferCardReaderStatusResponse()
447 && sapMsg.getResultCode() == resultCode; in callback_transferProtocolResponse()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/visibilitystore/
DVisibilityStore.java182 if (e.getResultCode() != RESULT_NOT_FOUND) { in setVisibility()
214 if (e.getResultCode() == RESULT_NOT_FOUND) { in removeVisibility()
235 if (e.getResultCode() == RESULT_NOT_FOUND) { in removeVisibility()
286 if (e.getResultCode() == RESULT_NOT_FOUND) { in loadVisibilityConfigMap()
304 if (e.getResultCode() != RESULT_NOT_FOUND) { in loadVisibilityConfigMap()
/packages/modules/AppSearch/testing/mockingservicestests/src/com/android/server/appsearch/
DAppSearchManagerServiceTest.java325 assertThat(callback.get().getResultCode()).isEqualTo(AppSearchResult.RESULT_OK); in testSetSchemaStatsLogging()
334 assertThat(setSchemaStats.getStatusCode()).isEqualTo(callback.get().getResultCode()); in testSetSchemaStatsLogging()
349 assertThat(callback.get().getResultCode()).isEqualTo(AppSearchResult.RESULT_OK); in testLocalGetSchemaStatsLogging()
364 assertThat(callback.get().getResultCode()).isEqualTo(AppSearchResult.RESULT_OK); in testGlobalGetSchemaStatsLogging()
378 assertThat(callback.get().getResultCode()).isEqualTo(AppSearchResult.RESULT_OK); in testGetNamespacesStatsLogging()
595 assertThat(callback.get().getResultCode()).isEqualTo(AppSearchResult.RESULT_OK); in testSearchStatsLogging()
607 assertThat(callback.get().getResultCode()).isEqualTo(AppSearchResult.RESULT_OK); in testGlobalSearchStatsLogging()
620 assertThat(callback.get().getResultCode()).isEqualTo(AppSearchResult.RESULT_OK); in testLocalGetNextPageStatsLogging()
642 assertThat(callback.get().getResultCode()).isEqualTo(AppSearchResult.RESULT_OK); in testGlobalGetNextPageStatsLogging()
675 assertThat(callback.get().getResultCode()).isEqualTo(AppSearchResult.RESULT_OK); in testWriteSearchResultsToFileStatsLogging()
[all …]
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
DDeletionHelperSettingsTest.java119 assertThat(settings.getResultCode()).isEqualTo(Activity.RESULT_OK); in requestingSpecificBytesToClearSetsOkResultCodeOnSufficientClear()
138 assertThat(settings.getResultCode()).isEqualTo(Activity.RESULT_CANCELED); in requestingSpecificBytesToClearSetsNegativeResultCodeOnSufficientClear()
155 assertThat(settings.getResultCode()).isEqualTo(Activity.RESULT_CANCELED); in requestingSpecificBytesToClearSetsNegativeResultCodeOnNoClear()
/packages/modules/AdServices/adservices/framework/java/android/adservices/shell/
DShellCommandResult.java80 public int getResultCode() { in getResultCode() method in ShellCommandResult
86 return getResultCode() >= 0; in isSuccess()
/packages/apps/TV/tests/robotests/src/com/android/tv/
DSetupPassthroughActivityTest.java233 assertThat(shadowOf(activity).getResultCode()).isEqualTo(Activity.RESULT_CANCELED); in onActivityResult_canceled()
250 assertThat(shadowOf(activity).getResultCode()).isEqualTo(Activity.RESULT_OK); in onActivityResult_ok()
275 assertThat(shadowOf(activity).getResultCode()).isEqualTo(Activity.RESULT_OK); in onActivityResult_3rdPartyEpg_ok()
296 assertThat(shadowOf(activity).getResultCode()).isEqualTo(Activity.RESULT_OK); in onActivityResult_3rdPartyEpg_notAllowed()
322 assertThat(shadowOf(activity).getResultCode()).isEqualTo(Activity.RESULT_OK); in onActivityResult_3rdPartyEpg_disabled()
338 assertThat(shadowOf(activity).getResultCode()).isEqualTo(Activity.RESULT_OK); in onActivityResult_ok_tvInputInfo_null()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/
DAppSearchManagerService.java511 statusCode = failedResult.getResultCode(); in setSchema()
610 statusCode = failedResult.getResultCode(); in getSchema()
681 statusCode = failedResult.getResultCode(); in getNamespaces()
771 statusCode = result.getResultCode(); in putDocuments()
801 statusCode = result.getResultCode(); in putDocuments()
825 statusCode = failedResult.getResultCode(); in putDocuments()
970 statusCode = result.getResultCode(); in getDocuments()
979 statusCode = failedResult.getResultCode(); in getDocuments()
1056 statusCode = failedResult.getResultCode(); in search()
1149 statusCode = failedResult.getResultCode(); in globalSearch()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/stats/
DMeasurementReportsStats.java46 && mResultCode == measurementReportsStats.getResultCode() in equals()
75 public int getResultCode() { in getResultCode() method in MeasurementReportsStats
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/route/
DRouteRequestActivityTest.kt177 assertThat(scenario.getResult().getResultCode()).isEqualTo(Activity.RESULT_CANCELED) in <lambda>()
196 assertThat(scenario.getResult().getResultCode()).isEqualTo(Activity.RESULT_CANCELED) in <lambda>()
221 assertThat(scenario.getResult().getResultCode()).isEqualTo(Activity.RESULT_CANCELED) in <lambda>()
246 assertThat(scenario.getResult().getResultCode()).isEqualTo(Activity.RESULT_CANCELED) in <lambda>()
400 assertThat(scenario.getResult().getResultCode()).isEqualTo(Activity.RESULT_CANCELED) in <lambda>()
422 assertThat(scenario.getResult().getResultCode()).isEqualTo(Activity.RESULT_OK) in <lambda>()
444 assertThat(scenario.getResult().getResultCode()).isEqualTo(Activity.RESULT_OK) in <lambda>()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DEuiccOperationSidecar.java66 mResultCode = getResultCode();
165 public int getResultCode() { in getResultCode() method in EuiccOperationSidecar
/packages/modules/AppSearch/framework/java/android/app/appsearch/
DSearchSessionUtil.java63 failedResult.getResultCode(), failedResult.getErrorMessage()); in sendSystemErrorToCallback()
172 entry.getValue().getResultCode(), in createGetDocumentCallback()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/shell/
DAdServicesShellCommandHandler.java205 shellCommandResult.getResultCode(), in onCommand()
208 return convertToExternalResultCode(shellCommandResult.getResultCode()); in onCommand()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/appsindexer/
DAppSearchHelper.java182 if (failure.getResultCode() == AppSearchResult.RESULT_OUT_OF_SPACE) { in indexApps()
184 failure.getResultCode(), failure.getErrorMessage()); in indexApps()

123456