Home
last modified time | relevance | path

Searched refs:ClientConstants (Results 1 – 25 of 31) sorted by relevance

12

/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/federatedcompute/
DOdpResultHandlingServiceTests.java19 import static android.federatedcompute.common.ClientConstants.RESULT_HANDLING_SERVICE_ACTION;
20 import static android.federatedcompute.common.ClientConstants.STATUS_SUCCESS;
21 import static android.federatedcompute.common.ClientConstants.STATUS_TRAINING_FAILED;
33 import android.federatedcompute.common.ClientConstants;
108 ClientConstants.EXTRA_CONTEXT_DATA, ContextData.toByteArray(contextData)); in testHandleResult()
109 input.putString(ClientConstants.EXTRA_POPULATION_NAME, "population"); in testHandleResult()
110 input.putString(ClientConstants.EXTRA_TASK_ID, "task_name"); in testHandleResult()
111 input.putInt(ClientConstants.EXTRA_COMPUTATION_RESULT, STATUS_SUCCESS); in testHandleResult()
115 ClientConstants.EXTRA_EXAMPLE_CONSUMPTION_LIST, exampleConsumptions); in testHandleResult()
139 ClientConstants.EXTRA_CONTEXT_DATA, ContextData.toByteArray(contextData)); in testHandleResultWithCollectionUri()
[all …]
DOdpExampleStoreServiceTests.java19 import static android.federatedcompute.common.ClientConstants.EXAMPLE_STORE_ACTION;
20 import static android.federatedcompute.common.ClientConstants.EXTRA_EXAMPLE_ITERATOR_RESULT;
21 import static android.federatedcompute.common.ClientConstants.EXTRA_EXAMPLE_ITERATOR_RESUMPTION_TOK…
41 import android.federatedcompute.common.ClientConstants;
144 ClientConstants.EXTRA_CONTEXT_DATA, ContextData.toByteArray(contextData)); in testStartQuery_lessThanMinExample_failure()
145 input.putString(ClientConstants.EXTRA_POPULATION_NAME, "PopulationName"); in testStartQuery_lessThanMinExample_failure()
146 input.putString(ClientConstants.EXTRA_TASK_ID, "TaskName"); in testStartQuery_lessThanMinExample_failure()
147 input.putString(ClientConstants.EXTRA_COLLECTION_URI, "CollectionUri"); in testStartQuery_lessThanMinExample_failure()
148 input.putInt(ClientConstants.EXTRA_ELIGIBILITY_MIN_EXAMPLE, 4); in testStartQuery_lessThanMinExample_failure()
178 ClientConstants.EXTRA_CONTEXT_DATA, ContextData.toByteArray(contextData)); in testStartQuery_moreThanMinExample_failure()
[all …]
DOdpExampleStoreIteratorTest.java19 import static android.federatedcompute.common.ClientConstants.EXTRA_EXAMPLE_ITERATOR_RESULT;
20 import static android.federatedcompute.common.ClientConstants.EXTRA_EXAMPLE_ITERATOR_RESUMPTION_TOK…
DFederatedComputeServiceImplTest.java33 import android.federatedcompute.common.ClientConstants;
238 assertEquals(ClientConstants.STATUS_INTERNAL_ERROR, mErrorCode); in testScheduleErr()
277 assertEquals(ClientConstants.STATUS_INTERNAL_ERROR, mErrorCode); in testCancelErr()
/packages/modules/OnDevicePersonalization/tests/frameworktests/src/android/federatedcompute/
DResultHandlingServiceTest.java19 import static android.federatedcompute.common.ClientConstants.STATUS_INTERNAL_ERROR;
20 import static android.federatedcompute.common.ClientConstants.STATUS_SUCCESS;
29 import android.federatedcompute.common.ClientConstants;
80 input.putString(ClientConstants.EXTRA_TASK_ID, TASK_NAME); in testHandleResult_success()
81 input.putString(ClientConstants.EXTRA_POPULATION_NAME, TEST_POPULATION); in testHandleResult_success()
82 input.putInt(ClientConstants.EXTRA_COMPUTATION_RESULT, STATUS_SUCCESS); in testHandleResult_success()
84 ClientConstants.EXTRA_EXAMPLE_CONSUMPTION_LIST, EXAMPLE_CONSUMPTIONS); in testHandleResult_success()
96 input.putString(ClientConstants.EXTRA_TASK_ID, TASK_NAME); in testHandleResult_failure()
97 input.putString(ClientConstants.EXTRA_POPULATION_NAME, TEST_POPULATION); in testHandleResult_failure()
98 input.putInt(ClientConstants.EXTRA_COMPUTATION_RESULT, STATUS_SUCCESS); in testHandleResult_failure()
[all …]
DExampleStoreServiceTest.java19 import static android.federatedcompute.common.ClientConstants.EXTRA_TASK_ID;
20 import static android.federatedcompute.common.ClientConstants.STATUS_INTERNAL_ERROR;
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/federatedcompute/
DOdpResultHandlingService.java19 import static android.federatedcompute.common.ClientConstants.STATUS_SUCCESS;
23 import android.federatedcompute.common.ClientConstants;
52 params.getByteArray(ClientConstants.EXTRA_CONTEXT_DATA))); in handleResult()
57 Objects.requireNonNull(params.getString(ClientConstants.EXTRA_POPULATION_NAME)); in handleResult()
58 String taskId = Objects.requireNonNull(params.getString(ClientConstants.EXTRA_TASK_ID)); in handleResult()
59 int computationResult = params.getInt(ClientConstants.EXTRA_COMPUTATION_RESULT); in handleResult()
63 ClientConstants.EXTRA_EXAMPLE_CONSUMPTION_LIST, in handleResult()
68 callback.accept(ClientConstants.STATUS_SUCCESS); in handleResult()
86 callback.accept(ClientConstants.STATUS_INTERNAL_ERROR); in handleResult()
93 callback.accept(ClientConstants.STATUS_INTERNAL_ERROR); in handleResult()
[all …]
DOdpExampleStoreService.java29 import android.federatedcompute.common.ClientConstants;
112 params.getByteArray(ClientConstants.EXTRA_CONTEXT_DATA))); in startQuery()
116 Objects.requireNonNull(params.getString(ClientConstants.EXTRA_POPULATION_NAME)); in startQuery()
117 String taskId = Objects.requireNonNull(params.getString(ClientConstants.EXTRA_TASK_ID)); in startQuery()
118 String collectionUri = params.getString(ClientConstants.EXTRA_COLLECTION_URI); in startQuery()
120 params.getInt(ClientConstants.EXTRA_ELIGIBILITY_MIN_EXAMPLE); in startQuery()
143 callback.onStartQueryFailure(ClientConstants.STATUS_INTERNAL_ERROR); in startQuery()
154 callback.onStartQueryFailure(ClientConstants.STATUS_INTERNAL_ERROR); in startQuery()
161 callback.onStartQueryFailure(ClientConstants.STATUS_INTERNAL_ERROR); in startQuery()
229 ClientConstants.STATUS_NOT_ENOUGH_DATA); in startQuery()
[all …]
DOdpExampleStoreIterator.java19 import static android.federatedcompute.common.ClientConstants.EXTRA_EXAMPLE_ITERATOR_RESULT;
20 import static android.federatedcompute.common.ClientConstants.EXTRA_EXAMPLE_ITERATOR_RESUMPTION_TOK…
DFederatedComputeServiceImpl.java26 import android.federatedcompute.common.ClientConstants;
230 callback.onFailure(ClientConstants.STATUS_INTERNAL_ERROR); in sendError()
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/training/
DResultCallbackHelper.java19 import static android.federatedcompute.common.ClientConstants.RESULT_HANDLING_SERVICE_ACTION;
20 import static android.federatedcompute.common.ClientConstants.STATUS_SUCCESS;
21 import static android.federatedcompute.common.ClientConstants.STATUS_TRAINING_FAILED;
26 import android.federatedcompute.common.ClientConstants;
72 input.putString(ClientConstants.EXTRA_POPULATION_NAME, task.populationName()); in callHandleResult()
73 input.putString(ClientConstants.EXTRA_TASK_ID, taskId); in callHandleResult()
74 input.putByteArray(ClientConstants.EXTRA_CONTEXT_DATA, task.contextData()); in callHandleResult()
76 ClientConstants.EXTRA_COMPUTATION_RESULT, in callHandleResult()
79 ClientConstants.EXTRA_EXAMPLE_CONSUMPTION_LIST, result.getExampleConsumptionList()); in callHandleResult()
DIsolatedTrainingServiceImpl.java24 import android.federatedcompute.common.ClientConstants;
112 Objects.requireNonNull(params.getString(ClientConstants.EXTRA_POPULATION_NAME)); in runTraining()
113 String taskId = Objects.requireNonNull(params.getString(ClientConstants.EXTRA_TASK_ID)); in runTraining()
200 ClientConstants.EXTRA_EXAMPLE_CONSUMPTION_LIST, in runTraining()
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/examplestore/
DExampleStoreServiceProvider.java25 import android.federatedcompute.common.ClientConstants;
55 ClientConstants.EXAMPLE_STORE_ACTION, in getExampleStoreService()
76 bundle.putString(ClientConstants.EXTRA_POPULATION_NAME, task.populationName()); in getExampleIterator()
77 bundle.putString(ClientConstants.EXTRA_TASK_ID, taskName); in getExampleIterator()
78 bundle.putByteArray(ClientConstants.EXTRA_CONTEXT_DATA, task.contextData()); in getExampleIterator()
79 bundle.putInt(ClientConstants.EXTRA_ELIGIBILITY_MIN_EXAMPLE, minExample); in getExampleIterator()
84 ClientConstants.EXTRA_EXAMPLE_ITERATOR_RESUMPTION_TOKEN, resumptionToken); in getExampleIterator()
85 bundle.putByteArray(ClientConstants.EXTRA_EXAMPLE_ITERATOR_CRITERIA, criteria); in getExampleIterator()
87 ClientConstants.EXTRA_COLLECTION_URI, exampleSelector.getCollectionUri()); in getExampleIterator()
DFederatedExampleIterator.java19 import static android.federatedcompute.common.ClientConstants.EXTRA_EXAMPLE_ITERATOR_RESULT;
20 import static android.federatedcompute.common.ClientConstants.EXTRA_EXAMPLE_ITERATOR_RESUMPTION_TOK…
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/training/
DSampleResultHandlingService.java19 import static android.federatedcompute.common.ClientConstants.STATUS_INTERNAL_ERROR;
20 import static android.federatedcompute.common.ClientConstants.STATUS_SUCCESS;
23 import android.federatedcompute.common.ClientConstants;
39 + params.getString(ClientConstants.EXTRA_POPULATION_NAME)); in handleResult()
42 ClientConstants.EXTRA_EXAMPLE_CONSUMPTION_LIST, ExampleConsumption.class); in handleResult()
DResultCallbackHelperTest.java19 import static android.federatedcompute.common.ClientConstants.STATUS_INTERNAL_ERROR;
20 import static android.federatedcompute.common.ClientConstants.STATUS_SUCCESS;
31 import android.federatedcompute.common.ClientConstants;
182 assertThat(input.getInt(ClientConstants.EXTRA_COMPUTATION_RESULT)) in handleResult()
186 ClientConstants.EXTRA_EXAMPLE_CONSUMPTION_LIST, in handleResult()
DIsolatedTrainingServiceImplTest.java28 import android.federatedcompute.common.ClientConstants;
199 bundle.putString(ClientConstants.EXTRA_POPULATION_NAME, POPULATION_NAME); in runFlTrainingMissingExampleSelector_returnsFailure()
218 bundle.putString(ClientConstants.EXTRA_POPULATION_NAME, POPULATION_NAME); in runFlTrainingInvalidExampleSelector_returnsFailure()
239 bundle.putString(ClientConstants.EXTRA_POPULATION_NAME, POPULATION_NAME); in runFlTrainingNullPlan_returnsFailure()
281 bundle.putString(ClientConstants.EXTRA_POPULATION_NAME, POPULATION_NAME); in buildInputBundle()
282 bundle.putString(ClientConstants.EXTRA_TASK_ID, TASK_NAME); in buildInputBundle()
DEligibilityDeciderTest.java39 import android.federatedcompute.common.ClientConstants;
430 int minExample = params.getInt(ClientConstants.EXTRA_ELIGIBILITY_MIN_EXAMPLE); in startQuery()
432 callback.onStartQueryFailure(ClientConstants.STATUS_NOT_ENOUGH_DATA); in startQuery()
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/examplestore/
DSampleExampleStoreService.java19 import static android.federatedcompute.common.ClientConstants.EXTRA_EXAMPLE_ITERATOR_RESULT;
20 import static android.federatedcompute.common.ClientConstants.EXTRA_TASK_ID;
21 import static android.federatedcompute.common.ClientConstants.STATUS_INTERNAL_ERROR;
/packages/modules/OnDevicePersonalization/common/java/com/android/odp/module/common/
DPackageUtils.java22 import static android.federatedcompute.common.ClientConstants.ODP_AOSP_BUILT_APEX_NAME;
23 import static android.federatedcompute.common.ClientConstants.ODP_APEX_KEYWORD;
24 import static android.federatedcompute.common.ClientConstants.ODP_MAINLINE_SIGNED_APEX_NAME;
/packages/modules/OnDevicePersonalization/framework/java/android/federatedcompute/common/
DClientConstants.java24 public final class ClientConstants { class
74 private ClientConstants() {} in ClientConstants() method in ClientConstants
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/
DFederatedComputeManagingServiceDelegate.java19 import static android.federatedcompute.common.ClientConstants.STATUS_INTERNAL_ERROR;
20 import static android.federatedcompute.common.ClientConstants.STATUS_KILL_SWITCH_ENABLED;
21 import static android.federatedcompute.common.ClientConstants.STATUS_SUCCESS;
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/
DFederatedComputeManagingServiceDelegateTest.java19 import static android.federatedcompute.common.ClientConstants.STATUS_INTERNAL_ERROR;
20 import static android.federatedcompute.common.ClientConstants.STATUS_KILL_SWITCH_ENABLED;
21 import static android.federatedcompute.common.ClientConstants.STATUS_SUCCESS;
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/testutils/
DFakeExampleStoreIterator.java19 import static android.federatedcompute.common.ClientConstants.EXTRA_EXAMPLE_ITERATOR_RESULT;
/packages/modules/OnDevicePersonalization/framework/java/android/federatedcompute/
DResultHandlingService.java19 import static android.federatedcompute.common.ClientConstants.STATUS_SUCCESS;

12