/** * Determines if one of the call capable phone accounts defined supports video calling. * * @param context The context. * @return {@code true} if one of the call capable phone accounts supports video calling, * {@code false} otherwise. */ public static boolean isVideoEnabled(Context context) { return (getVideoCallingAvailability(context) & VIDEO_CALLING_ENABLED) != 0; }
public PhoneNumberListAdapter(Context context) { super(context); setDefaultFilterHeaderText(R.string.list_filter_phones); mUnknownNameText = context.getText(android.R.string.unknownName); mCountryIso = GeoUtil.getCurrentCountryIso(context); final ExtendedPhoneDirectoriesManager manager = ExtensionsFactory.getExtendedPhoneDirectoriesManager(); if (manager != null) { mExtendedDirectories = manager.getExtendedDirectories(mContext); } else { // Empty list to avoid sticky NPE's mExtendedDirectories = new ArrayList<DirectoryPartition>(); } int videoCapabilities = CallUtil.getVideoCallingAvailability(context); mIsVideoEnabled = (videoCapabilities & CallUtil.VIDEO_CALLING_ENABLED) != 0; mIsPresenceEnabled = (videoCapabilities & CallUtil.VIDEO_CALLING_PRESENCE) != 0; }