Checks if the device has a location feature.
@param manager the package manager.
@return {@code true} if the device has a location feature.
325482
@TargetApi(Build.VERSION_CODES.FROYO)
    public static boolean hasLocationFeature(PackageManager manager) {
        return manager.hasSystemFeature(PackageManager.FEATURE_LOCATION);
    }
1178319
@TargetApi(Build.VERSION_CODES.GINGERBREAD)
    public static boolean hasFrontCameraFeature(PackageManager manager) {
        return manager.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT);
    }
153737
@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR1)
    public static boolean hasCameraFeatureAtLeastOne(PackageManager manager) {
        return manager.hasSystemFeature(PackageManager.FEATURE_CAMERA_ANY);
    }
1305519
@TargetApi(Build.VERSION_CODES.FROYO)
    public static boolean hasBluetoothFeature(PackageManager manager) {
        return manager.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH);
    }
1353245
public void setWorkplaceManager(CmsWorkplaceManager manager) {

        m_workplaceManager = manager;
        if (CmsLog.INIT.isInfoEnabled()) {
            CmsLog.INIT.info(Messages.get().getBundle().key(Messages.INIT_WORKPLACE_INIT_FINISHED_0));
        }
    }
900361
@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR2)
    public static boolean hasBluetoothLEFeature(Context context) {
        return hasBluetoothLEFeature(context.getPackageManager());
    }
667732
private boolean checkLocations(long length, CompoundLocation<Location> locations) {
        for(Location location : locations.getLocations()){
        	if(location instanceof RemoteLocation)
        		continue;
            if(location.getIntBeginPosition() == null || 
                    location.getIntBeginPosition() < 0){
                return false;
            }
            if(location.getIntEndPosition() == null ||
                    location.getIntEndPosition() > length){
                return false;
            }
        }
        return true;
    }
494319
@TargetApi(Build.VERSION_CODES.GINGERBREAD)
    public static boolean hasLowLatencyAudioFeature(PackageManager manager) {
        return manager.hasSystemFeature(PackageManager.FEATURE_AUDIO_LOW_LATENCY);
    }
1356421
@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)
    public static boolean hasWifiDirectFeature(PackageManager manager) {
        return manager.hasSystemFeature(PackageManager.FEATURE_WIFI_DIRECT);
    }
463559
@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR2)
    public static boolean hasHomeScreenFeature(PackageManager manager) {
        return manager.hasSystemFeature(PackageManager.FEATURE_HOME_SCREEN);
    }
905025
@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR2)
    public static boolean hasAppWidgetFeature(PackageManager manager) {
        return manager.hasSystemFeature(PackageManager.FEATURE_APP_WIDGETS);
    }
1325470
public boolean containsGreaterThan( VersionID m )
    {
        for ( Object _versionId : _versionIds )
        {
            VersionID vi = (VersionID) _versionId;
            boolean check = vi.isGreaterThan( m );
            if ( check )
            {
                return true;
            }
        }
        return false;
    }
903320
@TargetApi(Build.VERSION_CODES.GINGERBREAD)
    public static boolean hasSipFeature(PackageManager manager) {
        return manager.hasSystemFeature(PackageManager.FEATURE_SIP);
    }
18043
@TargetApi(Build.VERSION_CODES.FROYO)
    public static boolean hasMicrophoneFeature(PackageManager manager) {
        return manager.hasSystemFeature(PackageManager.FEATURE_MICROPHONE);
    }
165187
@TargetApi(Build.VERSION_CODES.FROYO)
    public static boolean hasGpsLocationFeature(Context context) {
        return hasGpsLocationFeature(context.getPackageManager());
    }
109793
@TargetApi(Build.VERSION_CODES.KITKAT)
    public static boolean hasDeviceAdminFeature(Context context) {
        return hasDeviceAdminFeature(context.getPackageManager());
    }
301104
@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)
    public static boolean hasWifiDirectFeature(Context context) {
        return hasWifiDirectFeature(context.getPackageManager());
    }