Arthur Eubanks | 263d674 | 2017-12-18 13:46:59 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2018 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 5 | * use this file except in compliance with the License. You may obtain a copy of |
| 6 | * 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, WITHOUT |
| 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 13 | * License for the specific language governing permissions and limitations under |
| 14 | * the License. |
| 15 | */ |
| 16 | |
| 17 | package com.android.frameworks.perftests.am.util; |
| 18 | |
| 19 | public class Constants { |
Arthur Eubanks | 7156c61 | 2018-02-05 14:53:04 -0800 | [diff] [blame] | 20 | public static final String TYPE_TARGET_PACKAGE_START = "target_package_start"; |
Arthur Eubanks | 263d674 | 2017-12-18 13:46:59 -0800 | [diff] [blame] | 21 | public static final String TYPE_BROADCAST_RECEIVE = "broadcast_receive"; |
Arthur Eubanks | 20a2957 | 2018-01-09 11:40:58 -0800 | [diff] [blame] | 22 | public static final String TYPE_SERVICE_BIND = "service_bind"; |
| 23 | public static final String TYPE_SERVICE_START = "service_start"; |
| 24 | public static final String TYPE_SERVICE_CONNECTED = "service_connection_connect"; |
Arthur Eubanks | 263d674 | 2017-12-18 13:46:59 -0800 | [diff] [blame] | 25 | |
| 26 | public static final String ACTION_BROADCAST_MANIFEST_RECEIVE = |
| 27 | "com.android.frameworks.perftests.ACTION_BROADCAST_MANIFEST_RECEIVE"; |
| 28 | public static final String ACTION_BROADCAST_REGISTERED_RECEIVE = |
| 29 | "com.android.frameworks.perftests.ACTION_BROADCAST_REGISTERED_RECEIVE"; |
| 30 | |
| 31 | public static final String EXTRA_RECEIVER_CALLBACK = "receiver_callback_binder"; |
Arthur Eubanks | ebd2ea0 | 2018-02-13 10:20:39 -0800 | [diff] [blame] | 32 | public static final String EXTRA_LOOPER_IDLE_CALLBACK = "looper_idle_callback_binder"; |
Jing Ji | 8412131 | 2019-10-17 15:36:57 -0700 | [diff] [blame^] | 33 | public static final String EXTRA_SOURCE_PACKAGE = "source_package"; |
| 34 | public static final String EXTRA_URI = "uri"; |
| 35 | public static final String EXTRA_REQ_FINISH_ACTIVITY = "req_finish_activity"; |
| 36 | public static final String EXTRA_SEQ = "seq"; |
| 37 | public static final String EXTRA_ARG1 = "arg1"; |
| 38 | public static final String EXTRA_ARG2 = "arg2"; |
| 39 | |
| 40 | public static final int RESULT_NO_ERROR = 0; |
| 41 | public static final int RESULT_ERROR = 1; |
| 42 | public static final String STUB_INIT_SERVICE_NAME = "com.android.stubs.am.InitService"; |
| 43 | |
| 44 | public static final int COMMAND_BIND_SERVICE = 1; |
| 45 | public static final int COMMAND_UNBIND_SERVICE = 2; |
| 46 | public static final int COMMAND_ACQUIRE_CONTENT_PROVIDER = 3; |
| 47 | public static final int COMMAND_RELEASE_CONTENT_PROVIDER = 4; |
| 48 | public static final int COMMAND_SEND_BROADCAST = 5; |
| 49 | public static final int COMMAND_START_ACTIVITY = 6; |
| 50 | public static final int COMMAND_STOP_ACTIVITY = 7; |
| 51 | |
| 52 | public static final int MSG_DEFAULT = 0; |
| 53 | public static final int MSG_UNBIND_DONE = 1; |
| 54 | |
| 55 | public static final int REPLY_PACKAGE_START_RESULT = 0; |
| 56 | public static final int REPLY_COMMAND_RESULT = 1; |
| 57 | |
| 58 | public static final String STUB_ACTION_ACTIVITY = |
| 59 | "com.android.stubs.am.ACTION_START_TEST_ACTIVITY"; |
| 60 | public static final String STUB_ACTION_BROADCAST = |
| 61 | "com.android.stubs.am.ACTION_BROADCAST_TEST"; |
Arthur Eubanks | 263d674 | 2017-12-18 13:46:59 -0800 | [diff] [blame] | 62 | } |