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 android.app.sdksandbox; 18 19 // TODO(b/304459399): remove the class and use autogenerated values once they can be used in 20 // framework 21 /** 22 * Utility class for StatsD logging events. 23 * 24 * @hide 25 */ 26 public class StatsdUtil { 27 // Values for SandboxActivityEventOccurred.method 28 public static final int 29 SANDBOX_ACTIVITY_EVENT_OCCURRED__METHOD__REGISTER_SDK_SANDBOX_ACTIVITY_HANDLER = 1; 30 public static final int 31 SANDBOX_ACTIVITY_EVENT_OCCURRED__METHOD__UNREGISTER_SDK_SANDBOX_ACTIVITY_HANDLER = 2; 32 public static final int 33 SANDBOX_ACTIVITY_EVENT_OCCURRED__METHOD__PUT_SDK_SANDBOX_ACTIVITY_HANDLER = 3; 34 public static final int 35 SANDBOX_ACTIVITY_EVENT_OCCURRED__METHOD__REMOVE_SDK_SANDBOX_ACTIVITY_HANDLER = 4; 36 public static final int SANDBOX_ACTIVITY_EVENT_OCCURRED__METHOD__START_SDK_SANDBOX_ACTIVITY = 5; 37 public static final int 38 SANDBOX_ACTIVITY_EVENT_OCCURRED__METHOD__NOTIFY_SDK_ON_ACTIVITY_CREATION = 9; 39 public static final int SANDBOX_ACTIVITY_EVENT_OCCURRED__METHOD__TOTAL = 10; 40 41 // Values for SandboxActivityEventOccurred.call_result 42 public static final int SANDBOX_ACTIVITY_EVENT_OCCURRED__CALL_RESULT__SUCCESS = 1; 43 public static final int SANDBOX_ACTIVITY_EVENT_OCCURRED__CALL_RESULT__FAILURE = 2; 44 } 45