Checks if the device has a jazzhand fake multi touch feature.
@param manager the package manager.
@return {@code true} if the device has a jazzhand fake multi touch feature.
191690
@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)
    public static boolean hasJazzhandMultiFakeTouchFeature(PackageManager manager) {
        return manager.hasSystemFeature(PackageManager.FEATURE_FAKETOUCH_MULTITOUCH_JAZZHAND);
    }
1119218
public static Listener using(BeanManager manager) {
        return new Listener(Collections.singletonList(initAction(WeldServletLifecycle.BEAN_MANAGER_ATTRIBUTE_NAME, manager)));
    }
325482
@TargetApi(Build.VERSION_CODES.FROYO)
    public static boolean hasLocationFeature(PackageManager manager) {
        return manager.hasSystemFeature(PackageManager.FEATURE_LOCATION);
    }
463559
@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR2)
    public static boolean hasHomeScreenFeature(PackageManager manager) {
        return manager.hasSystemFeature(PackageManager.FEATURE_HOME_SCREEN);
    }
746812
function hasTouchSupport() {
        var support = {}, events = ['touchstart', 'touchmove', 'touchend'],
            el = document.createElement('div'), i;

        try {
          for(i=0; i<events.length; i++) {
            var eventName = events[i];
            eventName = 'on' + eventName;
            var isSupported = (eventName in el);
            if (!isSupported) {
              el.setAttribute(eventName, 'return;');
              isSupported = typeof el[eventName] == 'function';
            }
            support[events[i]] = isSupported;
          }
          return support.touchstart && support.touchend && support.touchmove;
        }
        catch(err) {
          return false;
        }
      }
825802
public static void supportDismissOnLoaderCallback(final android.support.v4.app.FragmentManager manager, final String tag) {
        supportDismissOnLoaderCallback(HandlerUtils.getMainHandler(), manager, tag);
    }
1374986
protected OmemoRatchet<T_IdKeyPair, T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph>
    getOmemoRatchet(OmemoManager manager) {
        OmemoRatchet<T_IdKeyPair, T_IdKey, T_PreKey, T_SigPreKey, T_Sess, T_Addr, T_ECPub, T_Bundle, T_Ciph>
                omemoRatchet = omemoRatchets.get(manager);
        if (omemoRatchet == null) {
            omemoRatchet = instantiateOmemoRatchet(manager, omemoStore);
            omemoRatchets.put(manager, omemoRatchet);
        }
        return omemoRatchet;
    }
777948
public boolean detectNintendo() {

        if ((userAgent.indexOf(deviceNintendo) != -1)
            || (userAgent.indexOf(deviceWii) != -1)
            || (userAgent.indexOf(deviceNintendoDs) != -1)) {
            return true;
        }
        return false;
    }
652231
private void checkBuddyManagerIsActive(BuddyListManager buddyListManager, User sfsOwner) {
        if (!buddyListManager.isActive()) {
            throw new IllegalStateException(
                    String.format("BuddyList operation failure. BuddyListManager is not active. Zone: %s, Sender: %s", new Object[] { sfsOwner.getZone(), sfsOwner }));
          }
    }
1015525
@TargetApi(Build.VERSION_CODES.KITKAT)
    public static boolean hasStepCounterSensorFeature(PackageManager manager) {
        return manager.hasSystemFeature(PackageManager.FEATURE_SENSOR_STEP_COUNTER);
    }
341019
def is_gesture(self):
		

		if self in {type(self).GESTURE_SWIPE_BEGIN, type(self).GESTURE_SWIPE_END,
			type(self).GESTURE_SWIPE_UPDATE, type(self).GESTURE_PINCH_BEGIN,
			type(self).GESTURE_PINCH_UPDATE, type(self).GESTURE_PINCH_END}:
			return True
		else:
			return False
291317
private boolean validateAppSignatureForPackage(Context context, String packageName) {

        PackageInfo packageInfo;
        try {
            packageInfo = context.getPackageManager().getPackageInfo(packageName, PackageManager.GET_SIGNATURES);
        } catch (NameNotFoundException e) {
            return false;
        }

        for (Signature signature : packageInfo.signatures) {
            if (signature.toCharsString().equals(FB_APP_SIGNATURE)) {
                return true;
            }
        }
        return false;
    }
351867
@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR1)
    public static boolean hasUsbAccessoryFeature(PackageManager manager) {
        return manager.hasSystemFeature(PackageManager.FEATURE_USB_ACCESSORY);
    }
903320
@TargetApi(Build.VERSION_CODES.GINGERBREAD)
    public static boolean hasSipFeature(PackageManager manager) {
        return manager.hasSystemFeature(PackageManager.FEATURE_SIP);
    }
1099953
@TargetApi(Build.VERSION_CODES.GINGERBREAD)
    public static boolean hasSipVoipFeature(PackageManager manager) {
        return manager.hasSystemFeature(PackageManager.FEATURE_SIP_VOIP);
    }
965472
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
    public static boolean hasFakeTouchFeature(PackageManager manager) {
        return manager.hasSystemFeature(PackageManager.FEATURE_FAKETOUCH);
    }
368419
private boolean hasVibratePermission(Context context) {
        PackageManager pm = context.getPackageManager();
        int hasPerm = pm.checkPermission(android.Manifest.permission.VIBRATE, context.getPackageName());
        return hasPerm == PackageManager.PERMISSION_GRANTED;
    }