public boolean isDataOnly() {
        return !getAllowFreeFormInput()
                && (getChoices() == null || getChoices().length == 0)
                && getAllowedDataTypes() != null
                && !getAllowedDataTypes().isEmpty();
    }
Returns true if the input only accepts data, meaning {@link #getAllowFreeFormInput}
is false, {@link #getChoices} is null or empty, and {@link #getAllowedDataTypes is
non-null and not empty.
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/compat/RemoteInput.java