From d68478467e3f837511196c80891d7245d0e163df Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Tue, 12 Jan 2010 18:14:19 -0800 Subject: First pass at new device policy and administration APIs. This adds new DevicAdmin, DevicePolicyManager, and DeviceAdminInfo classes. See the java docs for each on documentation on them. Basically: a DeviceAdmin is what you derive from to administer a device; DevicePolicyManager is what you use to apply and check your policy requirements and perform other administration tasks. --- core/java/android/view/inputmethod/InputMethod.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'core/java/android/view/inputmethod') diff --git a/core/java/android/view/inputmethod/InputMethod.java b/core/java/android/view/inputmethod/InputMethod.java index a5e0e94..2ddf5f8 100644 --- a/core/java/android/view/inputmethod/InputMethod.java +++ b/core/java/android/view/inputmethod/InputMethod.java @@ -16,6 +16,8 @@ package android.view.inputmethod; +import android.annotation.SdkConstant; +import android.annotation.SdkConstant.SdkConstantType; import android.inputmethodservice.InputMethodService; import android.os.IBinder; import android.os.ResultReceiver; @@ -54,9 +56,12 @@ public interface InputMethod { /** * This is the interface name that a service implementing an input * method should say that it supports -- that is, this is the action it - * uses for its intent filter. (Note: this name is used because this - * interface should be moved to the view package.) + * uses for its intent filter. + * To be supported, the service must also require the + * {@link android.Manifest.permission#BIND_INPUT_METHOD} permission so + * that other applications can not abuse it. */ + @SdkConstant(SdkConstantType.SERVICE_ACTION) public static final String SERVICE_INTERFACE = "android.view.InputMethod"; /** -- cgit v1.1