1 /*
2  * Copyright (C) 2017 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.googlecode.android_scripting;
18 
19 import android.content.ComponentName;
20 
21 public interface Constants {
22 
23     String ACTION_LAUNCH_FOREGROUND_SCRIPT =
24             "com.googlecode.android_scripting.action.LAUNCH_FOREGROUND_SCRIPT";
25     String ACTION_LAUNCH_BACKGROUND_SCRIPT =
26             "com.googlecode.android_scripting.action.LAUNCH_BACKGROUND_SCRIPT";
27     String ACTION_LAUNCH_SCRIPT_FOR_RESULT =
28             "com.googlecode.android_scripting.action.ACTION_LAUNCH_SCRIPT_FOR_RESULT";
29     String ACTION_LAUNCH_INTERPRETER =
30             "com.googlecode.android_scripting.action.LAUNCH_INTERPRETER";
31     String ACTION_EDIT_SCRIPT =
32             "com.googlecode.android_scripting.action.EDIT_SCRIPT";
33     String ACTION_SAVE_SCRIPT =
34             "com.googlecode.android_scripting.action.SAVE_SCRIPT";
35     String ACTION_SAVE_AND_RUN_SCRIPT =
36             "com.googlecode.android_scripting.action.SAVE_AND_RUN_SCRIPT";
37     String ACTION_KILL_PROCESS =
38             "com.googlecode.android_scripting.action.KILL_PROCESS";
39     String ACTION_KILL_ALL =
40             "com.googlecode.android_scripting.action.KILL_ALL";
41     String ACTION_SHOW_RUNNING_SCRIPTS =
42             "com.googlecode.android_scripting.action.SHOW_RUNNING_SCRIPTS";
43     String ACTION_CANCEL_NOTIFICATION =
44             "com.googlecode.android_scripting.action.CANCEL_NOTIFICATION";
45     String ACTION_ACTIVITY_RESULT =
46             "com.googlecode.android_scripting.action.ACTIVITY_RESULT";
47     String ACTION_LAUNCH_SERVER =
48             "com.googlecode.android_scripting.action.LAUNCH_SERVER";
49 
50     String EXTRA_RESULT =
51             "SCRIPT_RESULT";
52     String EXTRA_SCRIPT_PATH =
53             "com.googlecode.android_scripting.extra.SCRIPT_PATH";
54     String EXTRA_SCRIPT_CONTENT =
55             "com.googlecode.android_scripting.extra.SCRIPT_CONTENT";
56     String EXTRA_INTERPRETER_NAME =
57             "com.googlecode.android_scripting.extra.INTERPRETER_NAME";
58 
59     String EXTRA_USE_EXTERNAL_IP =
60             "com.googlecode.android_scripting.extra.USE_PUBLIC_IP";
61     String EXTRA_USE_SERVICE_PORT =
62             "com.googlecode.android_scripting.extra.USE_SERVICE_PORT";
63     String EXTRA_SCRIPT_TEXT =
64             "com.googlecode.android_scripting.extra.SCRIPT_TEXT";
65     String EXTRA_RPC_HELP_TEXT =
66             "com.googlecode.android_scripting.extra.RPC_HELP_TEXT";
67     String EXTRA_API_PROMPT_RPC_NAME =
68             "com.googlecode.android_scripting.extra.API_PROMPT_RPC_NAME";
69     String EXTRA_API_PROMPT_VALUES =
70             "com.googlecode.android_scripting.extra.API_PROMPT_VALUES";
71     String EXTRA_PROXY_PORT =
72             "com.googlecode.android_scripting.extra.PROXY_PORT";
73     String EXTRA_PROCESS_ID =
74             "com.googlecode.android_scripting.extra.SCRIPT_PROCESS_ID";
75     String EXTRA_IS_NEW_SCRIPT =
76             "com.googlecode.android_scripting.extra.IS_NEW_SCRIPT";
77     String EXTRA_TRIGGER_ID =
78             "com.googlecode.android_scripting.extra.EXTRA_TRIGGER_ID";
79     String EXTRA_LAUNCH_IN_BACKGROUND =
80             "com.googlecode.android_scripting.extra.EXTRA_LAUNCH_IN_BACKGROUND";
81     String EXTRA_TASK_ID =
82             "com.googlecode.android_scripting.extra.EXTRA_TASK_ID";
83 
84     // BluetoothDeviceManager
85     String EXTRA_DEVICE_ADDRESS =
86             "com.googlecode.android_scripting.extra.device_address";
87 
88     ComponentName SL4A_SERVICE_COMPONENT_NAME = new ComponentName(
89             "com.googlecode.android_scripting",
90             "com.googlecode.android_scripting.service.ScriptingLayerService");
91     ComponentName SL4A_SERVICE_LAUNCHER_COMPONENT_NAME = new ComponentName(
92             "com.googlecode.android_scripting",
93             "com.googlecode.android_scripting.activity.ScriptingLayerServiceLauncher");
94     ComponentName BLUETOOTH_DEVICE_LIST_COMPONENT_NAME = new ComponentName(
95             "com.googlecode.android_scripting",
96             "com.googlecode.android_scripting.activity.BluetoothDeviceList");
97     ComponentName TRIGGER_SERVICE_COMPONENT_NAME = new ComponentName(
98             "com.googlecode.android_scripting",
99             "com.googlecode.android_scripting.activity.TriggerService");
100 
101     // Preference Keys
102     String FORCE_BROWSER =
103             "helpForceBrowser";
104     String HIDE_NOTIFY =
105             "hideServiceNotifications";
106 }
107