Home
last modified time | relevance | path

Searched refs:failure (Results 1 – 25 of 148) sorted by relevance

123456

/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/testing/concurrency/
DFailableResultSyncCallbackTestCase.java84 F failure = newFailure(); in testInjectFailure() local
87 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.injectFailure(failure)); in testInjectFailure()
93 .isSameInstanceAs(failure); in testInjectFailure()
99 assertGetFailureMethods(mCallback, when, failure); in testInjectFailure()
105 F failure = newFailure(); in testInjectFailure_calledTwice() local
107 mCallback.injectFailure(failure); in testInjectFailure_calledTwice()
114 assertGetFailureMethods(mCallback, when, failure, anotherFailure); in testInjectFailure_calledTwice()
121 F failure = newFailure(); in testInjectFailure_calledAfterInjectResult() local
123 mCallback.injectFailure(failure); in testInjectFailure_calledAfterInjectResult()
128 assertGetFailureMethodsWhenInjectedResultWasCalledFirst(mCallback, when, failure); in testInjectFailure_calledAfterInjectResult()
[all …]
DFutureSyncCallbackTest.java60 Throwable failure = newFailure(); in testOnFailure() local
62 mCallback.onFailure(failure); in testOnFailure()
66 expect.withMessage("assertFailureReceived()").that(result).isSameInstanceAs(failure); in testOnFailure()
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/testing/concurrency/
DFailableResultSyncCallback.java65 public final void injectFailure(F failure) { in injectFailure() argument
70 Objects.requireNonNull(failure))); in injectFailure()
97 F failure = assertFailureReceived(); in assertFailureReceived() local
99 expectedClass.isInstance(failure), in assertFailureReceived()
102 failure); in assertFailureReceived() local
103 return expectedClass.cast(failure); in assertFailureReceived()
112 return resultOrFailure == null ? null : resultOrFailure.failure; in getFailure()
125 .map(rof -> rof.failure) in getFailures()
186 public final @Nullable F failure; field in FailableResultSyncCallback.ResultOrFailure
188 ResultOrFailure(boolean isResult, @Nullable T result, @Nullable F failure) { in ResultOrFailure() argument
[all …]
DFailableOnResultSyncCallback.java42 public final void onFailure(F failure) { in onFailure() argument
43 injectFailure(failure); in onFailure()
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/testing/
DAnswerSyncCallback.java41 private AnswerSyncCallback(T answer, Throwable failure, int numberOfExpectedCalls) { in AnswerSyncCallback() argument
44 failure, in AnswerSyncCallback()
50 private AnswerSyncCallback(T answer, Throwable failure, SyncCallbackSettings settings) { in AnswerSyncCallback() argument
53 mFailure = failure; in AnswerSyncCallback()
111 public static <A> AnswerSyncCallback<A> forSingleFailure(Class<A> clazz, Throwable failure) { in forSingleFailure() argument
113 /* answer= */ null, failure, /* numberOfExpectedCalls= */ 1); in forSingleFailure()
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/managers/registration/
DBinderListenerRegistration.java144 Exception failure = null; in executeOperation() local
152 failure = e; in executeOperation()
157 operation.onComplete(failure == null); in executeOperation()
160 if (failure != null) { in executeOperation()
161 onOperationFailure(failure); in executeOperation()
/packages/apps/Camera2/src/com/android/camera/one/v2/photo/
DMetadataFuture.java46 public void onFailed(CaptureFailure failure) { in onFailed() argument
47 super.onFailed(failure); in onFailed()
48 if (failure.getReason() == CaptureFailure.REASON_FLUSHED) { in onFailed()
50 } else if (failure.getReason() == CaptureFailure.REASON_ERROR) { in onFailed()
/packages/modules/Connectivity/staticlibs/testutils/hostdevice/com/android/testutils/
DCleanup.kt81 Result.failure(e)
94 Result.failure(e) in catch()
105 Result.failure(e) in cleanupStep()
108 Result.failure(originalException) in cleanupStep()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/sync/
DMediaResetWorker.java91 return ListenableWorker.Result.failure(); in doWork()
94 return ListenableWorker.Result.failure(); in doWork()
116 return ListenableWorker.Result.failure(); in doWork()
132 return ListenableWorker.Result.failure(); in doWork()
151 return ListenableWorker.Result.failure(); in start()
157 return ListenableWorker.Result.failure(); in start()
DImmediateSyncWorker.java68 return ListenableWorker.Result.failure(); in doWork()
101 return ListenableWorker.Result.failure(); in doWork()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/process/
DPluginProcessRunner.java171 @Override public void onFailure(FailureType failure) { in loadPlugin()
174 String.format("loadPlugin failed. %s", failure.toString()))); in loadPlugin()
195 @Override public void onFailure(FailureType failure) {
198 String.format("executePlugin failed: %s", failure.toString())));
219 @Override public void onFailure(FailureType failure) {
222 String.format("executePlugin failed: %s", failure.toString())));
DOnDevicePersonalizationPlugin.java115 private void sendErrorResult(FailureType failure) { in sendErrorResult() argument
117 mPluginCallback.onFailure(failure); in sendErrorResult()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/appsindexer/
DAppSearchHelper.java180 for (AppSearchResult<Void> failure : failures.values()) { in indexApps()
182 if (failure.getResultCode() == AppSearchResult.RESULT_OUT_OF_SPACE) { in indexApps()
184 failure.getResultCode(), failure.getErrorMessage()); in indexApps()
186 Log.e(TAG, "Ran into error while indexing apps: " + failure); in indexApps()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropActivity.java422 boolean failure = false; in doInBackground()
447 failure = true; in doInBackground()
468 failure = true; in doInBackground()
476 failure = true; in doInBackground()
513 failure = true; in doInBackground()
551 failure = true; in doInBackground()
566 failure = true; in doInBackground()
575 failure = true; in doInBackground()
584 failure = true; in doInBackground()
591 failure = true; in doInBackground()
[all …]
/packages/apps/Camera2/src/com/android/camera/one/v2/errorhandling/
DRepeatFailureDetector.java109 public void onFailed(CaptureFailure failure) { in onFailed() argument
110 if (failure.getReason() == CaptureFailure.REASON_ERROR) { in onFailed()
116 mFailureFrameNumber = failure.getFrameNumber(); in onFailed()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsearch/
DAppSearchDao.java251 MigrationFailure failure = in writeData()
255 + failure); in writeData()
260 failure.getAppSearchResult()); in writeData()
317 MigrationFailure failure = in deleteData()
321 + failure); in deleteData()
326 failure.getAppSearchResult()); in deleteData()
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/provision/worker/
DDeviceCheckInWorker.java92 unused -> Futures.immediateFuture(Result.failure()), in startWork()
124 return Result.failure(); in startWork()
132 return Result.failure(); in startWork()
/packages/apps/Camera2/src/com/android/camera/one/v2/core/
DResponseListenerBroadcaster.java64 public void onFailed(CaptureFailure failure) { in onFailed() argument
66 listener.onFailed(failure); in onFailed()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiCandidates.java750 if (config == null) return failure(); in validConfigAndScanDetail()
751 if (scanDetail == null) return failure(); in validConfigAndScanDetail()
753 if (scanResult == null) return failure(); in validConfigAndScanDetail()
764 return failure(key1, key2); in validConfigAndScanDetail()
775 if (!(candidate instanceof CandidateImpl)) return failure(); in remove()
861 private boolean failure(Object... culprits) { in failure() method in WifiCandidates
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/policy/
DStartLockTaskModeWorker.java107 return Result.failure(); in startWork()
115 return Result.failure(); in startWork()
148 unused -> Result.failure(), in startWork()
/packages/modules/Wifi/service/proto/src/
Dmetrics.proto767 // Histogram corresponding to the number of times recent connection failure status are reported
1010 // No failure.
1013 // DHCP failure.
1023 // Level 2 failure reason.
1039 // The reason code if there was EAP failure while authenticating.
1146 // Reasons for level 2 failure (needs to be coordinated with wpa-supplicant).
1184 // before current connection event. Any connection failure at low RSSI in the
1287 // Catch all for failures with no specific failure reason
1486 // The reason code if there was EAP failure while authenticating.
1555 // Authentication failure reason, as reported by WifiManager (calculated from state & deauth code)
[all …]
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DHandlerUtils.kt70 var rv: Result<T> = Result.failure(RuntimeException("Not run")) in visibleOnHandlerThread()
76 rv = Result.failure(exception) in visibleOnHandlerThread()
/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/policy/
DStartLockTaskModeWorkerTest.java163 assertThat(result).isEqualTo(Result.failure()); in doWork_hitsException_failsAndEnforcesCriticalFailure()
193 assertThat(result).isEqualTo(Result.failure()); in doWork_failsWhenNoLaunchIntent()
207 assertThat(result).isEqualTo(Result.failure()); in doWork_failsLaunchIntentNotPermitted()
/packages/apps/DevCamera/src/com/android/devcamera/
DLoggingCallbacks.java128 …oid onCaptureFailed(CameraCaptureSession session, CaptureRequest request, CaptureFailure failure) { in onCaptureFailed() argument
129 super.onCaptureFailed(session, request, failure); in onCaptureFailed()
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pMetrics.java466 public void endConnectionEvent(int failure) { in endConnectionEvent() argument
484 .append(getConnectivityLevelFailureCodeToString(failure)); in endConnectionEvent()
497 mCurrentConnectionEvent.connectivityLevelFailureCode = failure; in endConnectionEvent()
504 convertFailureCode(failure), in endConnectionEvent()
515 if (P2pConnectionEvent.CLF_NONE == failure) { in endConnectionEvent()

123456