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