1 /*
2  * Copyright (C) 2023 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.android.federatedcompute.services.common;
18 
19 /** Constants used internally in the FederatedCompute APK. */
20 public class Constants {
21 
22     public static final String EXTRA_EXAMPLE_STORE_ITERATOR_BINDER =
23             "android.federatedcompute.example_store_iterator_binder";
24     public static final String EXTRA_INPUT_CHECKPOINT_FD =
25             "android.federatedcompute.input_checkpoint_fd";
26     public static final String EXTRA_OUTPUT_CHECKPOINT_FD =
27             "android.federatedcompute.output_checkpoint_fd";
28     public static final String EXTRA_FL_RUNNER_RESULT = "android.federatedcompute.fl_runner_result";
29     public static final String EXTRA_JOB_ID = "android.federatedcompute.job_id";
30     public static final String EXTRA_EXAMPLE_SELECTOR = "android.federatedcompute.example_selector";
31     public static final String EXTRA_CLIENT_ONLY_PLAN_FD =
32             "android.federatedcompute.client_only_plan_fd";
33 
34     public static final String CLIENT_ONLY_PLAN_FILE_NAME = "federated_client_only_plan";
35 
36     public static final String ISOLATED_TRAINING_SERVICE_NAME =
37             "com.android.federatedcompute.services.training.IsolatedTrainingService";
38 
39     public static final String TRACE_HTTP_ISSUE_CHECKIN = "Http#issueCheckin";
40     public static final String TRACE_HTTP_REPORT_RESULT = "Http#reportResult";
41     public static final String TRACE_GET_EXAMPLE_STORE_ITERATOR = "IsolatedProcess#getExampleIter";
42     public static final String TRACE_ISOLATED_PROCESS_RUN_FL_TRAINING =
43             "IsolatedProcess#runFlTraining";
44     public static final String TRACE_NATIVE_RUN_FEDERATED_COMPUTATION =
45             "Native#runFederatedComputation";
46     public static final String TRACE_WORKER_RUN_FL_COMPUTATION = "Worker#runFlComputation";
47     public static final String TRACE_WORKER_START_TRAINING_RUN = "Worker#startTrainingRun";
48 
49     public static final String EXTRA_TRAINING_FLAGS = "android.federatedcompute.training_flags";
50 
Constants()51     private Constants() {}
52 }
53