Home
last modified time | relevance | path

Searched refs:InferenceOutput (Results 1 – 13 of 13) sorted by relevance

/packages/modules/OnDevicePersonalization/framework/java/android/adservices/ondevicepersonalization/
DInferenceOutput.java32 public final class InferenceOutput { class
55 /* package-private */ InferenceOutput(@NonNull Map<Integer, Object> dataOutputs) { in InferenceOutput() method in InferenceOutput
83 InferenceOutput that = (InferenceOutput) o; in equals()
138 public @NonNull InferenceOutput build() { in build()
145 InferenceOutput o = new InferenceOutput(mDataOutputs); in build()
DInferenceInput.java78 @NonNull private InferenceOutput mExpectedOutputStructure;
415 @NonNull InferenceOutput expectedOutputStructure) { in InferenceInput()
477 public @NonNull InferenceOutput getExpectedOutputStructure() { in getExpectedOutputStructure()
523 private @NonNull InferenceOutput mExpectedOutputStructure;
557 @NonNull InferenceOutput expectedOutputStructure) { in Builder()
621 public @NonNull Builder setExpectedOutputStructure(@NonNull InferenceOutput value) { in setExpectedOutputStructure()
DModelManager.java67 @NonNull OutcomeReceiver<InferenceOutput, Exception> receiver) { in run() argument
89 InferenceOutput output = in run()
90 new InferenceOutput(outputParcel.getData()); in run()
DInferenceOutputParcel.java43 public InferenceOutputParcel(@NonNull InferenceOutput value) { in InferenceOutputParcel()
/packages/modules/OnDevicePersonalization/tests/cts/endtoend/src/com/android/ondevicepersonalization/cts/e2e/
DInferenceOutputTest.java22 import android.adservices.ondevicepersonalization.InferenceOutput;
35 InferenceOutput output = new InferenceOutput.Builder().setDataOutputs(outputData).build(); in build_success()
45 InferenceOutput output = new InferenceOutput.Builder().addDataOutput(0, expected).build(); in build_addData_success()
DInferenceInputTest.java26 import android.adservices.ondevicepersonalization.InferenceOutput;
61 new InferenceOutput.Builder().setDataOutputs(outputData).build()) in buildInput_success()
85 new InferenceOutput.Builder().setDataOutputs(outputData).build()) in buildInputWithSetters()
90 new InferenceOutput.Builder().setDataOutputs(outputData).build()) in buildInputWithSetters()
113 new InferenceOutput.Builder().setDataOutputs(outputData).build()) in buildInput_batchNotSet_success()
/packages/modules/OnDevicePersonalization/tests/frameworktests/src/android/adservices/ondevicepersonalization/
DModelManagerTest.java76 new InferenceOutput.Builder().setDataOutputs(outputData).build()) in runInference_success()
100 new InferenceOutput.Builder().setDataOutputs(outputData).build()) in runInference_error()
130 new InferenceOutput.Builder().setDataOutputs(outputData).build()) in runInference_resultMissingInferenceOutput()
140 public class MyTestCallback implements OutcomeReceiver<InferenceOutput, Exception> {
142 public InferenceOutput mInferenceOutput = null;
146 public void onResult(InferenceOutput result) { in onResult()
180 new InferenceOutput.Builder().setDataOutputs(result).build())); in runInference()
DInferenceInputTest.java69 new InferenceOutput.Builder().setDataOutputs(outputData).build()) in buildInferenceInput_reusable()
89 new InferenceOutput.Builder().setDataOutputs(outputData).build()) in buildInput_success()
113 new InferenceOutput.Builder().setDataOutputs(outputData).build()) in buildInput_batchNotSet_success()
/packages/modules/OnDevicePersonalization/tests/cts/service/src/com/android/ondevicepersonalization/testing/sampleservice/
DSampleWorker.java26 import android.adservices.ondevicepersonalization.InferenceOutput;
303 CompletableFuture<InferenceOutput> future = new CompletableFuture<>(); in handleRunModelInference()
304 OutcomeReceiver<InferenceOutput, Exception> callback = in handleRunModelInference()
307 public void onResult(InferenceOutput result) { in handleRunModelInference()
321 InferenceOutput result = future.get(); in handleRunModelInference()
345 new InferenceOutput.Builder().setDataOutputs(outputMap).build()) in buildInferenceInput()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/inference/
DIsolatedModelServiceImplTest.java30 import android.adservices.ondevicepersonalization.InferenceOutput;
253 new InferenceOutput.Builder().build()) in runModelInference_missingModelOutput()
296 private InferenceOutput generateInferenceOutput(int numExample) { in generateInferenceOutput()
300 return new InferenceOutput.Builder().setDataOutputs(outputMap).build(); in generateInferenceOutput()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/inference/
DIsolatedModelServiceImpl.java21 import android.adservices.ondevicepersonalization.InferenceOutput;
134 InferenceOutput result = new InferenceOutput.Builder().setDataOutputs(outputs).build(); in runTfliteInterpreter()
/packages/modules/OnDevicePersonalization/framework/api/
Dcurrent.txt110 …method @NonNull public android.adservices.ondevicepersonalization.InferenceOutput getExpectedOutpu…
116 …ut.Params, @NonNull Object[], @NonNull android.adservices.ondevicepersonalization.InferenceOutput);
119 …er setExpectedOutputStructure(@NonNull android.adservices.ondevicepersonalization.InferenceOutput);
144 …personalization.flags.on_device_personalization_apis_enabled") public final class InferenceOutput {
148 public static final class InferenceOutput.Builder {
149 ctor public InferenceOutput.Builder();
150 …method @NonNull public android.adservices.ondevicepersonalization.InferenceOutput.Builder addDataO…
151 method @NonNull public android.adservices.ondevicepersonalization.InferenceOutput build();
152 …method @NonNull public android.adservices.ondevicepersonalization.InferenceOutput.Builder setDataO…
192 …ndroid.os.OutcomeReceiver<android.adservices.ondevicepersonalization.InferenceOutput,java.lang.Exc…
/packages/modules/OnDevicePersonalization/samples/odpsamplenetwork/src/main/java/com/example/odpsamplenetwork/
DSampleHandler.java31 import android.adservices.ondevicepersonalization.InferenceOutput;
293 private Ad runAuction(List<Ad> ads, InferenceOutput inferenceOutput) { in runAuction()
512 ListenableFuture<InferenceOutput> inferenceFuture = in handleOnExecute()
906 private ListenableFuture<InferenceOutput> runInference(List<Ad> ads) {
921 public void onResult(InferenceOutput result) {
942 private InferenceOutput generateInferenceOutput(int numExample) {
946 return new InferenceOutput.Builder().setDataOutputs(outputMap).build();