}
}
+ /**
+ * @return {@code true} if the IME is marked to be Encryption-Aware.
+ * @hide
+ */
+ public boolean isEncryptionAware() {
+ if (mService == null || mService.serviceInfo == null ||
+ mService.serviceInfo.applicationInfo == null) {
+ return false;
+ }
+ return mService.serviceInfo.applicationInfo.isEncryptionAware();
+ }
+
public void dump(Printer pw, String prefix) {
pw.println(prefix + "mId=" + mId
+ " mSettingsActivityName=" + mSettingsActivityName
+ " mSupportsSwitchingToNextInputMethod=" + mSupportsSwitchingToNextInputMethod);
pw.println(prefix + "mIsDefaultResId=0x"
+ Integer.toHexString(mIsDefaultResId));
+ if (mService != null && mService.serviceInfo != null &&
+ mService.serviceInfo.applicationInfo != null) {
+ pw.println(" encryptionAware=" +
+ mService.serviceInfo.applicationInfo.isEncryptionAware());
+ } else {
+ pw.println(" encryptionAware=unknown");
+ }
pw.println(prefix + "Service:");
mService.dump(pw, prefix + " ");
}