Home
last modified time | relevance | path

Searched refs:getStatus (Results 1 – 25 of 231) sorted by relevance

12345678910

/packages/apps/RemoteProvisioner/tests/hosttest/src/com/android/remoteprovisioner/hosttest/
DRemoteProvisionerStatsTests.java95 assertThat(attempt.getStatus()).isEqualTo( in testGenerateKeyRkpOnly()
114 assertThat(network.getStatus()).isEqualTo(attempt.getStatus()); in testGenerateKeyRkpOnly()
126 assertThat(attempt.getStatus()).isEqualTo( in testGenerateKeyRkpOnly()
144 assertThat(network.getStatus()).isEqualTo(attempt.getStatus()); in testGenerateKeyRkpOnly()
161 assertThat(attempt.getStatus()).isEqualTo(RemoteKeyProvisioningStatus.OUT_OF_ERROR_BUDGET); in testDataBudgetEmptyCallGenerateRkpKeyService()
178 assertThat(network.getStatus()).isEqualTo(attempt.getStatus()); in testDataBudgetEmptyCallGenerateRkpKeyService()
195 assertThat(attempt.getStatus()).isEqualTo( in testRetryableRkpError()
213 assertThat(network.getStatus()).isEqualTo(attempt.getStatus()); in testRetryableRkpError()
230 assertThat(attempt.getStatus()).isEqualTo( in testRetryNeverWhenDeviceNotRegistered()
248 assertThat(network.getStatus()).isEqualTo(attempt.getStatus()); in testRetryNeverWhenDeviceNotRegistered()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/grpc/
DGetTranscriptResponseAsync.java56 return "Transcription error: " + response.getStatus(); in getErrorDescription()
66 return response.getStatus(); in getTranscriptionStatus()
71 return response != null && response.getStatus() == TranscriptionStatus.PENDING; in isTranscribing()
81 return response.getStatus() == TranscriptionStatus.EXPIRED in hasRecoverableError()
82 || response.getStatus() == TranscriptionStatus.FAILED_RETRY; in hasRecoverableError()
95 return response.getStatus() == TranscriptionStatus.FAILED_NO_RETRY in hasFatalError()
96 || response.getStatus() == TranscriptionStatus.FAILED_LANGUAGE_NOT_SUPPORTED in hasFatalError()
97 || response.getStatus() == TranscriptionStatus.FAILED_NO_SPEECH_DETECTED; in hasFatalError()
DTranscriptionClient.java41 return new TranscriptionResponseSync(e.getStatus()); in sendSyncRequest()
50 return new TranscriptionResponseAsync(e.getStatus()); in sendUploadRequest()
59 return new GetTranscriptResponseAsync(e.getStatus()); in sendGetTranscriptRequest()
69 return new TranscriptionFeedbackResponseAsync(e.getStatus()); in sendTranscriptFeedbackRequest()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/
DAppSearchImpl.java314 initializeResultProto.getStatus(), in AppSearchImpl()
320 statusProtoToResultCode(initializeResultProto.getStatus())) in AppSearchImpl()
326 checkSuccess(initializeResultProto.getStatus()); in AppSearchImpl()
351 getAllNamespacesResultProto.getStatus())) in AppSearchImpl()
357 checkSuccess(getAllNamespacesResultProto.getStatus()); in AppSearchImpl()
705 TAG, "setSchema, response", setSchemaResultProto.getStatus(), setSchemaResultProto); in doSetSchemaNoChangeNotificationLocked()
709 statusProtoToResultCode(setSchemaResultProto.getStatus())); in doSetSchemaNoChangeNotificationLocked()
715 checkSuccess(setSchemaResultProto.getStatus()); in doSetSchemaNoChangeNotificationLocked()
720 setSchemaResultProto.getStatus().getCode() in doSetSchemaNoChangeNotificationLocked()
898 checkSuccess(getAllNamespacesResultProto.getStatus()); in getNamespaces()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/android/car/admin/
DCarDevicePolicyManagerUnitTest.java73 assertThat(result.getStatus()).isEqualTo(RemoveUserResult.STATUS_SUCCESS); in testRemoveUser_success()
84 assertThat(result.getStatus()).isEqualTo(RemoveUserResult.STATUS_FAILURE_GENERIC); in testRemoveUser_remoteException()
108 assertThat(result.getStatus()).isEqualTo(CreateUserResult.STATUS_SUCCESS); in testCreateUser_success()
121 assertThat(result.getStatus()).isEqualTo(CreateUserResult.STATUS_FAILURE_GENERIC); in testCreateUser_remoteException()
140 assertThat(result.getStatus()).isEqualTo(StartUserInBackgroundResult.STATUS_SUCCESS); in testStartUserInBackground_success()
152 assertThat(result.getStatus()) in testStartUserInBackground_remoteException()
168 assertThat(result.getStatus()).isEqualTo(StopUserResult.STATUS_SUCCESS); in testStopUser_success()
179 assertThat(result.getStatus()).isEqualTo(StopUserResult.STATUS_FAILURE_GENERIC); in testStopUser_remoteException()
DCreateUserResultTest.java34 assertThat(result.getStatus()).isEqualTo(RemoveUserResult.STATUS_FAILURE_GENERIC); in testNullConstructor()
46 assertThat(result.getStatus()).isEqualTo(RemoveUserResult.STATUS_SUCCESS); in testSuccess()
56 assertThat(result.getStatus()).isEqualTo(RemoveUserResult.STATUS_FAILURE_GENERIC); in testFailure_nullUserInfo()
73 assertThat(result.getStatus()).isEqualTo(RemoveUserResult.STATUS_FAILURE_GENERIC); in testFailure_nullUserHandle()
91 assertThat(result.getStatus()).isEqualTo(removeUserStatus); in failureTest()
DRemoveUserResultTest.java41 assertThat(result.getStatus()).isEqualTo(removeUserStatus); in successTest()
57 assertThat(result.getStatus()).isEqualTo(removeUserStatus); in failureTest()
/packages/services/Car/service/src/com/android/car/hal/
DHalPropValue.java62 public abstract int getStatus(); in getStatus() method in HalPropValue
206 if (other.getStatus() != getStatus()) { in equals()
207 Log.i(TAG, "Status mismatch, got " + other.getStatus() + " want " + getStatus()); in equals()
262 int status = getStatus(); in toCarPropertyValue()
296 int status = getStatus(); in toMixedCarPropertyValue()
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/
DBugInfoAdapter.java119 holder.mStatusView.setText(Status.toString(bugreport.getStatus())); in onBindViewHolder()
127 && BugStorageUtils.canBugReportBeExpired(bugreport.getStatus())) { in onBindViewHolder()
133 bugreport.getStatus() == Status.STATUS_PENDING_USER_ACTION.getValue() in onBindViewHolder()
134 || bugreport.getStatus() == Status.STATUS_MOVE_FAILED.getValue() in onBindViewHolder()
135 || bugreport.getStatus() == Status.STATUS_UPLOAD_FAILED.getValue(); in onBindViewHolder()
158 if (bugreport.getStatus() == Status.STATUS_AUDIO_PENDING.getValue()) { in onBindViewHolder()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserManagerUnitTest.java251 assertThat(result.getStatus()).isEqualTo(UserSwitchResult.STATUS_SUCCESSFUL); in testSwitchUser_success()
264 assertThat(result.getStatus()).isEqualTo(UserSwitchResult.STATUS_HAL_INTERNAL_FAILURE); in testSwitchUser_remoteException()
276 assertThat(result.getStatus()).isEqualTo(UserSwitchResult.STATUS_HAL_INTERNAL_FAILURE); in testSwitchUser_runtimeException()
288 assertThat(result.getStatus()).isEqualTo(UserSwitchResult.STATUS_SUCCESSFUL); in testLogoutUser_success()
301 assertThat(result.getStatus()).isEqualTo(UserSwitchResult.STATUS_HAL_INTERNAL_FAILURE); in testLogoutUser_remoteException()
313 assertThat(result.getStatus()).isEqualTo(UserSwitchResult.STATUS_HAL_INTERNAL_FAILURE); in testLogoutUser_runtimeException()
323 assertThat(result.getStatus()).isEqualTo(UserRemovalResult.STATUS_SUCCESSFUL); in testRemoveUser_success()
333 assertThat(result.getStatus()).isEqualTo(UserRemovalResult.STATUS_ANDROID_FAILURE); in testRemoveUser_remoteException()
342 assertThat(result.getStatus()).isEqualTo(UserRemovalResult.STATUS_ANDROID_FAILURE); in testRemoveUser_runtimeException()
368 assertThat(result.getStatus()).isEqualTo(UserCreationResult.STATUS_SUCCESSFUL); in testCreateUser_success()
[all …]
DExperimentalCarUserManagerUnitTest.java80 assertThat(result.getStatus()).isEqualTo(UserCreationResult.STATUS_SUCCESSFUL); in testCreateDriver_Success_Admin()
94 assertThat(result.getStatus()).isEqualTo(UserCreationResult.STATUS_SUCCESSFUL); in testCreateDriver_Success_NonAdmin()
106 assertThat(result.getStatus()).isEqualTo(UserSwitchResult.STATUS_HAL_INTERNAL_FAILURE); in testCreateDriver_Error()
128 assertThat(result.getStatus()).isEqualTo(UserSwitchResult.STATUS_SUCCESSFUL); in testSwitchDriver_Success()
137 assertThat(result.getStatus()).isEqualTo(UserSwitchResult.STATUS_HAL_INTERNAL_FAILURE); in testSwitchDriver_Error()
DCarUserServiceTest.java610 assertThat(getUserStopResult(userStopResult, userId).getStatus()) in testStopUser_success()
661 assertThat(getUserStopResult(userStopResult, userId).getStatus()) in testStopUser_userDoesNotExist()
674 assertThat(getUserStopResult(userStopResult, userId).getStatus()) in testStopUser_systemUser()
687 assertThat(getUserStopResult(userStopResult, userId).getStatus()) in testStopUser_currentUser()
965 assertUserSwitchResult(getUserSwitchResult(mAdminUserId).getStatus(), in testSwitchUser_targetSameAsCurrentUser()
1656 assertThat(result.getStatus()).isEqualTo(UserCreationResult.STATUS_ANDROID_FAILURE); in testCreateUser_umCreateReturnsNull()
1676 assertThat(result.getStatus()).isEqualTo(UserCreationResult.STATUS_ANDROID_FAILURE); in testCreateUser_umCreateThrowsException()
1698 assertThat(result.getStatus()).isEqualTo(UserCreationResult.STATUS_HAL_INTERNAL_FAILURE); in testCreateUser_internalHalFailure()
1718 assertThat(result.getStatus()).isEqualTo(UserCreationResult.STATUS_HAL_FAILURE); in testCreateUser_halFailure()
1739 assertThat(result.getStatus()).isEqualTo(UserCreationResult.STATUS_HAL_INTERNAL_FAILURE); in testCreateUser_halTimeout()
[all …]
DExperimentalCarUserServiceTest.java110 assertThat(getCreateDriverResult(future).getStatus()) in testCreateAdminDriver_IfCurrentUserIsNotSystemUser()
180 assertThat(getUserSwitchResult(mRegularUserId).getStatus()) in testSwitchDriver()
192 assertThat(getUserSwitchResult(mRegularUserId).getStatus()) in testSwitchDriver_failUxRestrictions()
205 assertThat(getUserSwitchResult(mRegularUserId).getStatus()) in testSwitchDriver_IfUserSwitchIsNotAllowed()
217 assertThat(getUserSwitchResult(mAdminUserId).getStatus()) in testSwitchDriver_IfSwitchedToCurrentUser()
DUserCreationResultTest.java53 assertThat(result.getStatus()).isEqualTo(STATUS_SUCCESSFUL); in testConstructor_statusOnly()
66 assertThat(result.getStatus()).isEqualTo(STATUS_SUCCESSFUL); in testConstructor_statusAndUserOnly()
/packages/modules/Virtualization/tests/hostside/helper/java/android/virt/test/
DCommandRunner.java51 if (result.getStatus() != CommandStatus.SUCCESS) { in run()
59 if (result.getStatus() == CommandStatus.SUCCESS) { in tryRun()
72 if (result.getStatus() != CommandStatus.SUCCESS) { in runWithTimeout()
89 assumeThat(runForResult(cmd).getStatus(), is(CommandStatus.SUCCESS)); in assumeSuccess()
DVirtualizationTestCaseBase.java123 assertThat(result.getStatus(), is(CommandStatus.SUCCESS)); in runOnHostWithTimeout()
130 if (result.getStatus() != CommandStatus.SUCCESS) { in runOnMicrodroid()
143 if (result.getStatus() != CommandStatus.SUCCESS) { in runOnMicrodroidRetryingOnFailure()
152 if (result.getStatus() == CommandStatus.SUCCESS) { in tryRunOnMicrodroid()
178 if (result.getStatus() != CommandStatus.SUCCESS) { in pullMicrodroidFile()
186 assertThat(result.getStatus(), is(CommandStatus.FAILED)); in assertFailedOnMicrodroid()
/packages/apps/Settings/tests/unit/src/com/android/settings/safetycenter/
DLockScreenSafetySourceTest.java152 SafetySourceStatus safetySourceStatus = safetySourceData.getStatus(); in setSafetySourceData_whenScreenLockIsEnabled_setData()
183 SafetySourceStatus safetySourceStatus = safetySourceData.getStatus(); in setSafetySourceData_whenPwdQualIsNotMan_whenLockPattIsSec_setStatusLevelInfo()
204 SafetySourceStatus safetySourceStatus = safetySourceData.getStatus(); in setSafetySourceData_whenPwdQualIsNotMan_whenLockPattIsNotSec_setStatusLevelRec()
225 SafetySourceStatus safetySourceStatus = safetySourceData.getStatus(); in setSafetySourceData_whenPwdQualIsMan_whenLockPattIsSec_setStatusLevelUnsp()
246 SafetySourceStatus safetySourceStatus = safetySourceData.getStatus(); in setSafetySourceData_whenPwdQualIsMan_whenLockPattIsNotSec_setStatusLevelUnsp()
365 SafetySourceStatus safetySourceStatus = safetySourceData.getStatus(); in setSafetySourceData_whenPasswordQualityIsManaged_setDisabled()
384 SafetySourceStatus safetySourceStatus = safetySourceData.getStatus(); in setSafetySourceData_whenPasswordQualityIsNotManaged_setEnabled()
402 final IconAction iconAction = captor.getValue().getStatus().getIconAction(); in setSafetySourceData_whenShouldShowGearMenu_setGearMenuActionIcon()
425 SafetySourceStatus safetySourceStatus = safetySourceData.getStatus(); in setSafetySourceData_whenShouldNotShowGearMenu_doesNotSetGearMenuActionIcon()
DBiometricsSafetySourceTest.java441 SafetySourceStatus safetySourceStatus = captor.getValue().getStatus(); in setSafetySourceData_faceAndFingerprint_whenFaceEnrolled_setsInfoSeverity()
459 SafetySourceStatus safetySourceStatus = captor.getValue().getStatus(); in setSafetySourceData_faceAndFingerprint_whenFingerprintEnrolled_setsInfoSeverity()
477 SafetySourceStatus safetySourceStatus = captor.getValue().getStatus(); in setSafetySourceData_faceAndFingerprint_whenNotEnrolled_setsUnspSeverity()
494 SafetySourceStatus safetySourceStatus = captor.getValue().getStatus(); in setSafetySourceData_fingerprint_whenEnrolled_setsInfoSeverity()
511 SafetySourceStatus safetySourceStatus = captor.getValue().getStatus(); in setSafetySourceData_fingerprint_whenNotEnrolled_setsUnspSeverity()
528 SafetySourceStatus safetySourceStatus = captor.getValue().getStatus(); in setSafetySourceData_face_whenEnrolled_setsInfoSeverity()
545 SafetySourceStatus safetySourceStatus = captor.getValue().getStatus(); in setSafetySourceData_face_whenNotEnrolled_setsUnspSeverity()
601 SafetySourceStatus safetySourceStatus = safetySourceData.getStatus(); in assertSafetySourceDisabledDataSet()
620 SafetySourceStatus safetySourceStatus = safetySourceData.getStatus(); in assertSafetySourceEnabledDataSet()
/packages/modules/NeuralNetworks/runtime/test/
DTestExecution.cpp376 convertToV1_3(localCallback->getStatus()), in prepareModel_1_3()
381 if (localCallback->getStatus() != ErrorStatus::NONE) { in prepareModel_1_3()
383 convertToV1_3(localCallback->getStatus()), in prepareModel_1_3()
407 convertToV1_0(localCallback->getStatus()), in prepareModel_1_2()
412 if (localCallback->getStatus() != ErrorStatus::NONE) { in prepareModel_1_2()
414 convertToV1_0(localCallback->getStatus()), in prepareModel_1_2()
434 actualCallback->notify(convertToV1_0(localCallback->getStatus()), in prepareModel_1_1()
439 if (localCallback->getStatus() != ErrorStatus::NONE) { in prepareModel_1_1()
440 actualCallback->notify(convertToV1_0(localCallback->getStatus()), in prepareModel_1_1()
506 hardware::Return<V1_0::DeviceStatus> getStatus() override { return mLatestDriver->getStatus(); } in getStatus() function in android::__anon3a757afb0111::TestDriver12
[all …]
/packages/modules/Virtualization/javalib/src/android/system/virtualmachine/
DVirtualMachine.java280 public @NonNull Status getStatus() throws VirtualMachineException { in getStatus() method in VirtualMachine
350 if (getStatus() != Status.STOPPED) { in run()
492 if (getStatus() != Status.STOPPED) { in delete()
507 if (getStatus() != Status.RUNNING) { in getCid()
534 if (getStatus() != Status.STOPPED) { in setConfig()
563 if (getStatus() != Status.RUNNING) { in connectToVsockServer()
/packages/services/Car/car-lib/src/android/car/admin/
DCarDevicePolicyManager.java163 status = result.getStatus(); in removeUser()
207 status = result.getStatus(); in createUser()
247 status = result.getStatus(); in startUserInBackground()
287 status = result.getStatus(); in stopUser()
DCreateUserResult.java89 int status = result.getStatus(); in CreateUserResult()
128 public @Status int getStatus() { in getStatus() method in CreateUserResult
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DThumbnailCacheTest.java204 assertEquals(Result.CACHE_MISS, result.getStatus()); in assertMiss()
210 assertEquals(Result.CACHE_HIT_EXACT, result.getStatus()); in assertHitExact()
216 assertEquals(Result.CACHE_HIT_SMALLER, result.getStatus()); in assertHitSmaller()
222 assertEquals(Result.CACHE_HIT_LARGER, result.getStatus()); in assertHitLarger()
/packages/modules/Virtualization/demo/java/com/android/microdroid/demo/
DMainActivity.java80 if (model.getStatus().getValue() == VirtualMachine.Status.RUNNING) { in onCreate()
91 model.getStatus() in onCreate()
300 mStatus.postValue(mVirtualMachine.getStatus()); in run()
339 public LiveData<VirtualMachine.Status> getStatus() { in getStatus() method in MainActivity.VirtualMachineModel
/packages/modules/IPsec/src/java/com/android/internal/net/eap/crypto/
DTlsSession.java324 if (result.getStatus() != Status.OK) { in doUnwrap()
348 if (result.getStatus() != Status.OK) { in doWrap()
398 if (result.getStatus() == Status.BUFFER_OVERFLOW in closeConnection()
399 || result.getStatus() == Status.BUFFER_UNDERFLOW) { in closeConnection()

12345678910