Home
last modified time | relevance | path

Searched refs:getStatusCode (Results 1 – 25 of 95) sorted by relevance

1234

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/
DFetchCustomAudienceImplTest.java330 assertEquals(STATUS_UNAUTHORIZED, callback.mFledgeErrorResponse.getStatusCode()); in testImpl_invalidPackageName_throws()
360 assertEquals(STATUS_RATE_LIMIT_REACHED, callback.mFledgeErrorResponse.getStatusCode()); in testImpl_throttled_throws()
392 assertEquals(STATUS_BACKGROUND_CALLER, callback.mFledgeErrorResponse.getStatusCode()); in testImpl_failedForegroundCheck_throws()
425 assertEquals(STATUS_CALLER_NOT_ALLOWED, callback.mFledgeErrorResponse.getStatusCode()); in testImpl_failedEnrollmentCheck_throws()
458 assertEquals(STATUS_CALLER_NOT_ALLOWED, callback.mFledgeErrorResponse.getStatusCode()); in testImpl_appCannotUsePPAPI_throws()
527 assertEquals(STATUS_INVALID_ARGUMENT, callback.mFledgeErrorResponse.getStatusCode()); in testImpl_invalidRequest_quotaExhausted_throws()
558 assertEquals(STATUS_INVALID_ARGUMENT, callback.mFledgeErrorResponse.getStatusCode()); in testImpl_invalidRequest_invalidName_throws()
585 assertEquals(STATUS_INVALID_ARGUMENT, callback.mFledgeErrorResponse.getStatusCode()); in testImpl_invalidRequest_invalidActivationTime_throws()
617 assertEquals(STATUS_INVALID_ARGUMENT, callback.mFledgeErrorResponse.getStatusCode()); in testImpl_invalidRequest_invalidExpirationTime_throws()
654 assertEquals(STATUS_INVALID_ARGUMENT, callback.mFledgeErrorResponse.getStatusCode()); in testImpl_invalidRequest_invalidUserBiddingSignals_throws()
[all …]
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/http/
DHttpClientTest.java96 assertThat(response.getStatusCode()).isEqualTo(200); in testPerformGetRequestSuccess()
114 assertThat(response.getStatusCode()).isEqualTo(503); in testPerformGetRequestFails()
134 assertThat(response.getStatusCode()).isEqualTo(503); in testPerformGetRequestFailsWithRetry()
172 assertThat(response.getStatusCode()).isEqualTo(200); in testPerformGetRequestSuccessWithRetry()
193 assertThat(response.getStatusCode()).isEqualTo(200); in testPerformPostRequestSuccess()
DFederatedComputeHttpResponseTest.java58 assertThat(response.getStatusCode()).isEqualTo(responseCode); in testBuildWithAllValues()
69 assertThat(response.getStatusCode()).isEqualTo(responseCode); in testBuildWithMinimalRequiredValues()
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/common/
DFledgeErrorResponseTest.java40 expect.that(response.getStatusCode()) in testBuildFledgeErrorResponse()
59 expect.that(fromParcel.getStatusCode()) in testWriteToParcel()
76 expect.that(AdServicesStatusUtils.isSuccess(fromParcel.getStatusCode())).isTrue(); in testWriteToParcelEmptyMessage()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/util/
DApiCallRecord.java51 mStatusCode = callStats.getStatusCode(); in ApiCallRecord()
62 mStatusCode = stats.getStatusCode(); in ApiCallRecord()
86 public int getStatusCode() { in getStatusCode() method in ApiCallRecord
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/stats/
DAppSearchStatsTest.java53 assertThat(cStats.getStatusCode()).isEqualTo(TEST_STATUS_CODE); in testAppSearchStats_CallStats()
112 assertThat(pStats.getStatusCode()).isEqualTo(TEST_STATUS_CODE); in testAppSearchStats_PutDocumentStats()
174 assertThat(iStats.getStatusCode()).isEqualTo(TEST_STATUS_CODE); in testAppSearchStats_InitializeStats()
257 assertThat(sStats.getStatusCode()).isEqualTo(TEST_STATUS_CODE); in testAppSearchStats_SearchStats()
345 assertThat(sStats.getStatusCode()).isEqualTo(TEST_STATUS_CODE); in testAppSearchStats_SetSchemaStats()
410 assertThat(sStats.getStatusCode()).isEqualTo(TEST_STATUS_CODE); in testAppSearchStats_SchemaMigrationStats()
442 assertThat(rStats.getStatusCode()).isEqualTo(TEST_STATUS_CODE); in testAppSearchStats_RemoveStats()
477 assertThat(oStats.getStatusCode()).isEqualTo(TEST_STATUS_CODE); in testAppSearchStats_OptimizeStats()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/stats/
DGetAdSelectionDataApiCalledStatsTest.java50 expect.that(stats.getStatusCode()).isEqualTo(STATUS_CODE); in testBuildGetAdSelectionDataApiCalledStats()
67 expect.that(stats.getStatusCode()).isEqualTo(STATUS_CODE); in testBuildGetAdSelectionDataApiCalledStats_WithCoordinatorSource()
DAdFilteringProcessAdSelectionReportedStatsTest.java77 expect.that(stats.getStatusCode()).isEqualTo(STATUS_CODE); in testBuildAdFilteringProcessAdSelectionReportedStats()
110 expect.that(stats.getStatusCode()).isEqualTo(0); in testBuildAdFilteringProcessAdSelectionReportedStatsWithEmptyValues()
DAdCounterHistogramUpdaterReportedStatsTest.java42 expect.that(stats.getStatusCode()).isEqualTo(STATUS_CODE); in testBuildAdCounterHistogramUpdaterReportedStats()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/
DMeasurementHttpResponseTest.java38 Assert.assertEquals(responseCode, response.getStatusCode()); in testBuildWithMinimalRequiredValues()
59 Assert.assertEquals(responseCode, response.getStatusCode()); in testBuildWithAllValues()
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/http/
DHttpFederatedProtocol.java183 if (reportResp.getStatusCode() == HTTP_UNAUTHORIZED_STATUS) {
244 if (response.getStatusCode() == HTTP_UNAUTHORIZED_STATUS) {
511 if (!HTTP_OK_STATUS.contains(httpResponse.getStatusCode())) {
512 throw new IllegalStateException(stage + " failed: " + httpResponse.getStatusCode());
520 if (!HTTP_OK_OR_UNAUTHENTICATED_STATUS.contains(httpResponse.getStatusCode())) {
521 throw new IllegalStateException(stage + " failed: " + httpResponse.getStatusCode());
/packages/modules/AdServices/adservices/framework/java/android/adservices/common/
DAdServicesResponse.java86 public int getStatusCode() { in getStatusCode() method in AdServicesResponse
95 return getStatusCode() == STATUS_SUCCESS; in isSuccess()
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/
DAppSearchLoggerTest.java390 assertThat(iStats.getStatusCode()).isEqualTo(AppSearchResult.RESULT_OK); in testLoggingStats_initializeWithoutDocuments_success()
453 assertThat(iStats.getStatusCode()).isEqualTo(AppSearchResult.RESULT_OK); in testLoggingStats_initializeWithDocuments_success()
527 assertThat(iStats.getStatusCode()).isEqualTo(AppSearchResult.RESULT_INTERNAL_ERROR); in testLoggingStats_initialize_failure()
579 assertThat(pStats.getStatusCode()).isEqualTo(AppSearchResult.RESULT_OK); in testLoggingStats_putDocument_success()
637 assertThat(pStats.getStatusCode()).isEqualTo(AppSearchResult.RESULT_NOT_FOUND); in testLoggingStats_putDocument_failure()
724 assertThat(sStats.getStatusCode()).isEqualTo(AppSearchResult.RESULT_OK); in testLoggingStats_search_success()
775 assertThat(sStats.getStatusCode()).isEqualTo(AppSearchResult.RESULT_SECURITY_ERROR); in testLoggingStats_search_failure()
925 assertThat(sStats.getStatusCode()).isEqualTo(AppSearchResult.RESULT_OK); in testLoggingStats_search_join()
980 assertThat(rStats.getStatusCode()).isEqualTo(AppSearchResult.RESULT_OK); in testLoggingStats_remove_success()
1031 assertThat(rStats.getStatusCode()).isEqualTo(AppSearchResult.RESULT_NOT_FOUND); in testLoggingStats_remove_failure()
[all …]
/packages/modules/AppSearch/service/java/com/android/server/appsearch/stats/
DPlatformLogger.java293 stats.getStatusCode(), in logStatsImplLocked()
328 stats.getStatusCode(), in logStatsImplLocked()
414 stats.getStatusCode(), in logStatsImplLocked()
453 stats.getStatusCode(), in logStatsImplLocked()
505 stats.getStatusCode(), in logStatsImplLocked()
533 stats.getStatusCode(), in logStatsImplLocked()
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/measurement/
DMeasurementErrorResponseTest.java44 expect.that(response.getStatusCode()).isEqualTo(0); in testDefaults()
119 expect.that(response.getStatusCode()).isEqualTo(RESULT_CODE); in verifyExample()
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/filetransfer/
DFileUploadController.java106 if (initialResponse.getStatusLine().getStatusCode() in uploadFile()
210 Log.i(TAG, "statusCode:" + response.getStatusLine().getStatusCode()); in executeAuthenticatedPost()
236 int statusCode = response.getStatusLine().getStatusCode();
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DReportEventImplTest.java851 assertEquals(callback.mFledgeErrorResponse.getStatusCode(), STATUS_UNAUTHORIZED); in testImplFailsWithInvalidPackageName()
919 assertEquals(callback.mFledgeErrorResponse.getStatusCode(), STATUS_BACKGROUND_CALLER); in testImplFailsWhenForegroundCheckFails()
1027 callbackSubsequentCall.mFledgeErrorResponse.getStatusCode()); in testImplFailsWhenThrottled()
1093 assertEquals(callback.mFledgeErrorResponse.getStatusCode(), STATUS_CALLER_NOT_ALLOWED); in testImplFailsWhenAppNotInAllowList()
1204 assertEquals(STATUS_INVALID_ARGUMENT, callback.mFledgeErrorResponse.getStatusCode()); in testImplFailsWithUnknownAdSelectionId()
1278 assertEquals(callback.mFledgeErrorResponse.getStatusCode(), STATUS_INVALID_ARGUMENT); in testReportEventImplFailsWithUnknownAdSelectionId_serverAuctionEnabled()
1371 assertEquals(callback.mFledgeErrorResponse.getStatusCode(), STATUS_INVALID_ARGUMENT); in testImplFailsWhenInteractionDataExceedsMaxSize()
1502 assertEquals(callback.mFledgeErrorResponse.getStatusCode(), STATUS_INVALID_ARGUMENT); in testReportInteractionFailsWhenInteractionKeyExceedsMaxSize()
/packages/providers/MediaProvider/jni/
Dcom_android_providers_media_leveldb_LevelDBInstance.cpp14 static std::string getStatusCode(leveldb::Status status) { in getStatusCode() function
37 std::string statusCode = getStatusCode(status); in createLevelDBResult()
/packages/apps/Messaging/src/android/support/v7/mms/
DMmsHttpException.java47 public int getStatusCode() { in getStatusCode() method in MmsHttpException
/packages/services/Mms/src/com/android/mms/service/exception/
DMmsHttpException.java47 public int getStatusCode() { in getStatusCode() method in MmsHttpException
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/stats/
DAdCounterHistogramUpdaterReportedStats.java28 public abstract int getStatusCode(); in getStatusCode() method in AdCounterHistogramUpdaterReportedStats
DGetAdSelectionDataApiCalledStats.java36 public abstract int getStatusCode(); in getStatusCode() method in GetAdSelectionDataApiCalledStats
DAdFilteringProcessJoinCAReportedStats.java25 public abstract int getStatusCode(); in getStatusCode() method in AdFilteringProcessJoinCAReportedStats
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/service/chat/
DMinimalCpmChatService.java133 && msg.getStatusCode() == Response.OK) { in sendSipResponse()
189 && response.getStatusCode() == Response.OK) { in handleResponse()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/
DMeasurementHttpResponse.java39 public int getStatusCode() { in getStatusCode() method in MeasurementHttpResponse

1234