blob: 8e58665f53520d4d869a6c6ebd4b29669d1e66b6 [file] [log] [blame]
Arthur Eubanks263d6742017-12-18 13:46:59 -08001/*
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
17package com.android.frameworks.perftests.am.util;
18
19public class Constants {
Arthur Eubanks7156c612018-02-05 14:53:04 -080020 public static final String TYPE_TARGET_PACKAGE_START = "target_package_start";
Arthur Eubanks263d6742017-12-18 13:46:59 -080021 public static final String TYPE_BROADCAST_RECEIVE = "broadcast_receive";
Arthur Eubanks20a29572018-01-09 11:40:58 -080022 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 Eubanks263d6742017-12-18 13:46:59 -080025
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 Eubanksebd2ea02018-02-13 10:20:39 -080032 public static final String EXTRA_LOOPER_IDLE_CALLBACK = "looper_idle_callback_binder";
Jing Ji84121312019-10-17 15:36:57 -070033 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 Eubanks263d6742017-12-18 13:46:59 -080062}