Home
last modified time | relevance | path

Searched refs:IsolatedServiceException (Results 1 – 18 of 18) sorted by relevance

/packages/modules/OnDevicePersonalization/framework/java/android/adservices/ondevicepersonalization/
DIsolatedWorker.java58 @NonNull OutcomeReceiver<ExecuteOutput, IsolatedServiceException> receiver) { in onExecute()
76 @NonNull OutcomeReceiver<DownloadCompletedOutput, IsolatedServiceException> receiver) { in onDownloadCompleted()
97 @NonNull OutcomeReceiver<RenderOutput, IsolatedServiceException> receiver) { in onRender()
115 @NonNull OutcomeReceiver<EventOutput, IsolatedServiceException> receiver) { in onEvent()
133 @NonNull OutcomeReceiver<TrainingExamplesOutput, IsolatedServiceException> receiver) { in onTrainingExamples()
154 @NonNull OutcomeReceiver<WebTriggerOutput, IsolatedServiceException> receiver) { in onWebTrigger()
DIsolatedServiceException.java31 public final class IsolatedServiceException extends Exception { class
41 public IsolatedServiceException(@IntRange(from = 1, to = 127) int errorCode) { in IsolatedServiceException() method in IsolatedServiceException
DIsolatedService.java510 implements OutcomeReceiver<T, IsolatedServiceException> {
551 public void onError(IsolatedServiceException e) { in onError()
DOnDevicePersonalizationManager.java478 new IsolatedServiceException(isolatedServiceErrorCode)); in createException()
/packages/modules/OnDevicePersonalization/tests/frameworktests/src/android/adservices/ondevicepersonalization/
DIsolatedServiceExceptionSafetyTestImpl.java38 @NonNull OutcomeReceiver<ExecuteOutput, IsolatedServiceException> receiver) { in onExecute()
47 OutcomeReceiver<DownloadCompletedOutput, IsolatedServiceException> in onDownloadCompleted()
57 @NonNull OutcomeReceiver<RenderOutput, IsolatedServiceException> receiver) { in onRender()
65 @NonNull OutcomeReceiver<EventOutput, IsolatedServiceException> receiver) { in onEvent()
74 OutcomeReceiver<TrainingExamplesOutput, IsolatedServiceException> in onTrainingExamples()
83 @NonNull OutcomeReceiver<WebTriggerOutput, IsolatedServiceException> receiver) { in onWebTrigger()
DIsolatedServiceTest.java634 OutcomeReceiver<ExecuteOutput, IsolatedServiceException> receiver) { in onExecute()
637 receiver.onError(new IsolatedServiceException(1)); in onExecute()
654 OutcomeReceiver<DownloadCompletedOutput, IsolatedServiceException> receiver) { in onDownloadCompleted()
662 OutcomeReceiver<RenderOutput, IsolatedServiceException> receiver) { in onRender()
666 receiver.onError(new IsolatedServiceException(1)); in onRender()
675 OutcomeReceiver<EventOutput, IsolatedServiceException> receiver) { in onEvent()
679 receiver.onError(new IsolatedServiceException(1)); in onEvent()
696 OutcomeReceiver<TrainingExamplesOutput, IsolatedServiceException> receiver) { in onTrainingExamples()
714 OutcomeReceiver<WebTriggerOutput, IsolatedServiceException> receiver) { in onWebTrigger()
717 receiver.onError(new IsolatedServiceException(1)); in onWebTrigger()
DOnDevicePersonalizationManagerTest.java159 assertTrue(receiver.getException().getCause() instanceof IsolatedServiceException); in testExecuteErrorWithCode()
161 ((IsolatedServiceException) receiver.getException().getCause()).getErrorCode()); in testExecuteErrorWithCode()
DOnDevicePersonalizationFrameworkClassesTest.java335 assertEquals(42, new IsolatedServiceException(42).getErrorCode()); in testIsolatedServiceException()
/packages/modules/OnDevicePersonalization/tests/cts/endtoend/src/com/android/ondevicepersonalization/cts/e2e/
DIsolatedWorkerTest.java34 import android.adservices.ondevicepersonalization.IsolatedServiceException;
146 OutcomeReceiver<ExecuteOutput, IsolatedServiceException> receiver) { in onExecute()
154 OutcomeReceiver<RenderOutput, IsolatedServiceException> receiver) { in onRender()
163 OutcomeReceiver<DownloadCompletedOutput, IsolatedServiceException> receiver) { in onDownloadCompleted()
172 OutcomeReceiver<EventOutput, IsolatedServiceException> receiver) { in onEvent()
182 OutcomeReceiver<TrainingExamplesOutput, IsolatedServiceException> receiver) { in onTrainingExamples()
197 OutcomeReceiver<WebTriggerOutput, IsolatedServiceException> receiver) { in onWebTrigger()
221 static class WorkerResultReceiver<T> implements OutcomeReceiver<T, IsolatedServiceException> {
223 IsolatedServiceException mException = null;
229 @Override public void onError(IsolatedServiceException e) { in onError()
DDataClassesTest.java29 import android.adservices.ondevicepersonalization.IsolatedServiceException;
301 assertEquals(42, new IsolatedServiceException(42).getErrorCode()); in testIsolatedServiceException()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/test/
DTestPersonalizationHandler.java26 import android.adservices.ondevicepersonalization.IsolatedServiceException;
61 OutcomeReceiver<DownloadCompletedOutput, IsolatedServiceException> receiver) { in onDownloadCompleted()
83 @NonNull OutcomeReceiver<ExecuteOutput, IsolatedServiceException> receiver) { in onExecute()
112 @NonNull OutcomeReceiver<RenderOutput, IsolatedServiceException> receiver) { in onRender()
127 @NonNull OutcomeReceiver<EventOutput, IsolatedServiceException> receiver) { in onEvent()
158 @NonNull OutcomeReceiver<TrainingExamplesOutput, IsolatedServiceException> receiver) { in onTrainingExamples()
187 @NonNull OutcomeReceiver<WebTriggerOutput, IsolatedServiceException> receiver) { in onWebTrigger()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/util/
DDebugUtilsTest.java29 import android.adservices.ondevicepersonalization.IsolatedServiceException;
107 new IsolatedServiceException(42)))); in testReturnsExceptionCodeIfDebuggableAndFlagEnabled()
121 new IsolatedServiceException(42)))); in testDoesNotReturnExceptionCodeIfFlagDisabled()
135 new IsolatedServiceException(42)))); in testDoesNotReturnExceptionCodeIfPackageNotDebuggable()
150 new IsolatedServiceException(42)))); in testDoesNotReturnExceptionCodeIfDeviceNotDebuggable()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/util/
DDebugUtils.java19 import android.adservices.ondevicepersonalization.IsolatedServiceException;
58 if (e.getCause() != null && e.getCause() instanceof IsolatedServiceException) { in getIsolatedServiceExceptionCode()
59 return ((IsolatedServiceException) e.getCause()).getErrorCode(); in getIsolatedServiceExceptionCode()
/packages/modules/OnDevicePersonalization/tests/cts/service/src/com/android/ondevicepersonalization/testing/sampleservice/
DSampleWorker.java27 import android.adservices.ondevicepersonalization.IsolatedServiceException;
99 ExecuteInput input, OutcomeReceiver<ExecuteOutput, IsolatedServiceException> receiver) { in onExecute()
118 OutcomeReceiver<ExecuteOutput, IsolatedServiceException> receiver) { in handleOnExecute()
160 receiver.onError(new IsolatedServiceException(errorCode)); in handleOnExecute()
419 RenderInput input, OutcomeReceiver<RenderOutput, IsolatedServiceException> receiver) { in onRender()
425 RenderInput input, OutcomeReceiver<RenderOutput, IsolatedServiceException> receiver) { in handleOnRender()
429 receiver.onError(new IsolatedServiceException(ERROR_SAMPLE_SERVICE_FAILED)); in handleOnRender()
433 receiver.onError(new IsolatedServiceException(ERROR_SAMPLE_SERVICE_FAILED)); in handleOnRender()
/packages/modules/OnDevicePersonalization/tests/manualtests/src/com/test/
DTestPersonalizationHandler.java21 import android.adservices.ondevicepersonalization.IsolatedServiceException;
44 OutcomeReceiver<DownloadCompletedOutput, IsolatedServiceException> receiver) { in onDownloadCompleted()
/packages/modules/OnDevicePersonalization/samples/odpsamplenetwork/src/main/java/com/example/odpsamplenetwork/
DSampleHandler.java32 import android.adservices.ondevicepersonalization.IsolatedServiceException;
167 @NonNull OutcomeReceiver<DownloadCompletedOutput, IsolatedServiceException> receiver) { in onDownloadCompleted()
179 @NonNull OutcomeReceiver<ExecuteOutput, IsolatedServiceException> receiver) { in onExecute()
187 @NonNull OutcomeReceiver<TrainingExamplesOutput, IsolatedServiceException> receiver) { in onTrainingExamples()
195 @NonNull OutcomeReceiver<RenderOutput, IsolatedServiceException> receiver) { in onRender()
203 @NonNull OutcomeReceiver<EventOutput, IsolatedServiceException> receiver) { in onEvent()
211 @NonNull OutcomeReceiver<WebTriggerOutput, IsolatedServiceException> receiver) { in onWebTrigger()
374 @NonNull OutcomeReceiver<TrainingExamplesOutput, IsolatedServiceException> receiver) { in handleOnTrainingExamples()
440 @NonNull OutcomeReceiver<ExecuteOutput, IsolatedServiceException> receiver) { in handleOnExecute()
654 @NonNull OutcomeReceiver<RenderOutput, IsolatedServiceException> receiver) { in handleOnRender()
[all …]
/packages/modules/OnDevicePersonalization/framework/api/
Dcurrent.txt168 …ags.on_device_personalization_apis_enabled") public final class IsolatedServiceException extends j…
169 ctor public IsolatedServiceException(@IntRange(from=1, to=127) int);
173 …tion.DownloadCompletedOutput,android.adservices.ondevicepersonalization.IsolatedServiceException>);
174 …epersonalization.EventOutput,android.adservices.ondevicepersonalization.IsolatedServiceException>);
175 …ersonalization.ExecuteOutput,android.adservices.ondevicepersonalization.IsolatedServiceException>);
176 …personalization.RenderOutput,android.adservices.ondevicepersonalization.IsolatedServiceException>);
177 …ation.TrainingExamplesOutput,android.adservices.ondevicepersonalization.IsolatedServiceException>);
178 …onalization.WebTriggerOutput,android.adservices.ondevicepersonalization.IsolatedServiceException>);
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/process/
DSharedIsolatedProcessRunner.java23 import android.adservices.ondevicepersonalization.IsolatedServiceException;
155 new IsolatedServiceException(