/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/testing/concurrency/ |
D | FailableResultSyncCallbackTestCase.java | 84 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 …]
|
D | FutureSyncCallbackTest.java | 60 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/ |
D | FailableResultSyncCallback.java | 65 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 …]
|
D | FailableOnResultSyncCallback.java | 42 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/ |
D | AnswerSyncCallback.java | 41 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/ |
D | BinderListenerRegistration.java | 144 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/ |
D | MetadataFuture.java | 46 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/ |
D | Cleanup.kt | 81 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/ |
D | MediaResetWorker.java | 91 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()
|
D | ImmediateSyncWorker.java | 68 return ListenableWorker.Result.failure(); in doWork() 101 return ListenableWorker.Result.failure(); in doWork()
|
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/process/ |
D | PluginProcessRunner.java | 171 @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())));
|
D | OnDevicePersonalizationPlugin.java | 115 private void sendErrorResult(FailureType failure) { in sendErrorResult() argument 117 mPluginCallback.onFailure(failure); in sendErrorResult()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/appsindexer/ |
D | AppSearchHelper.java | 180 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/ |
D | CropActivity.java | 422 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/ |
D | RepeatFailureDetector.java | 109 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/ |
D | AppSearchDao.java | 251 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/ |
D | DeviceCheckInWorker.java | 92 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/ |
D | ResponseListenerBroadcaster.java | 64 public void onFailed(CaptureFailure failure) { in onFailed() argument 66 listener.onFailed(failure); in onFailed()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiCandidates.java | 750 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/ |
D | StartLockTaskModeWorker.java | 107 return Result.failure(); in startWork() 115 return Result.failure(); in startWork() 148 unused -> Result.failure(), in startWork()
|
/packages/modules/Wifi/service/proto/src/ |
D | metrics.proto | 767 // 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/ |
D | HandlerUtils.kt | 70 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/ |
D | StartLockTaskModeWorkerTest.java | 163 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/ |
D | LoggingCallbacks.java | 128 …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/ |
D | WifiP2pMetrics.java | 466 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()
|