/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/federatedcompute/ |
D | OdpResultHandlingServiceTests.java | 19 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 …]
|
D | OdpExampleStoreServiceTests.java | 19 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 …]
|
D | OdpExampleStoreIteratorTest.java | 19 import static android.federatedcompute.common.ClientConstants.EXTRA_EXAMPLE_ITERATOR_RESULT; 20 import static android.federatedcompute.common.ClientConstants.EXTRA_EXAMPLE_ITERATOR_RESUMPTION_TOK…
|
D | FederatedComputeServiceImplTest.java | 33 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/ |
D | ResultHandlingServiceTest.java | 19 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 …]
|
D | ExampleStoreServiceTest.java | 19 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/ |
D | OdpResultHandlingService.java | 19 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 …]
|
D | OdpExampleStoreService.java | 29 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 …]
|
D | OdpExampleStoreIterator.java | 19 import static android.federatedcompute.common.ClientConstants.EXTRA_EXAMPLE_ITERATOR_RESULT; 20 import static android.federatedcompute.common.ClientConstants.EXTRA_EXAMPLE_ITERATOR_RESUMPTION_TOK…
|
D | FederatedComputeServiceImpl.java | 26 import android.federatedcompute.common.ClientConstants; 230 callback.onFailure(ClientConstants.STATUS_INTERNAL_ERROR); in sendError()
|
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/training/ |
D | ResultCallbackHelper.java | 19 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()
|
D | IsolatedTrainingServiceImpl.java | 24 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/ |
D | ExampleStoreServiceProvider.java | 25 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()
|
D | FederatedExampleIterator.java | 19 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/ |
D | SampleResultHandlingService.java | 19 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()
|
D | ResultCallbackHelperTest.java | 19 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()
|
D | IsolatedTrainingServiceImplTest.java | 28 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()
|
D | EligibilityDeciderTest.java | 39 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/ |
D | SampleExampleStoreService.java | 19 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/ |
D | PackageUtils.java | 22 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/ |
D | ClientConstants.java | 24 public final class ClientConstants { class 74 private ClientConstants() {} in ClientConstants() method in ClientConstants
|
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/ |
D | FederatedComputeManagingServiceDelegate.java | 19 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/ |
D | FederatedComputeManagingServiceDelegateTest.java | 19 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/ |
D | FakeExampleStoreIterator.java | 19 import static android.federatedcompute.common.ClientConstants.EXTRA_EXAMPLE_ITERATOR_RESULT;
|
/packages/modules/OnDevicePersonalization/framework/java/android/federatedcompute/ |
D | ResultHandlingService.java | 19 import static android.federatedcompute.common.ClientConstants.STATUS_SUCCESS;
|