Checks if the device has a low latency audio feature.
@param manager the package manager.
@return {@code true} if the device has a low latency audio feature.
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);
    }
191690
@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)
    public static boolean hasJazzhandMultiFakeTouchFeature(PackageManager manager) {
        return manager.hasSystemFeature(PackageManager.FEATURE_FAKETOUCH_MULTITOUCH_JAZZHAND);
    }
1306197
@TargetApi(Build.VERSION_CODES.FROYO)
    public static boolean hasTouchScreenFeature(PackageManager manager) {
        return manager.hasSystemFeature(PackageManager.FEATURE_TOUCHSCREEN);
    }
1128074
public boolean isEnabled(Feature feature) {
        Boolean enabled = features.get(feature);
        if (enabled == null) {
            return feature.isEnabledByDefault();
        } else {
            return enabled;
        }
    }
645793
static boolean getSilent(String message) {
    if (!StringUtil.isEmpty(message)) {
      try {
        JSONObject object = JSON.parseObject(message);
        return object.containsKey("silent")? object.getBooleanValue("silent"): false;
      } catch (JSONException e) {
        LOGGER.e("failed to parse JSON.", e);
      }
    }
    return false;
  }
603547
protected boolean checkSendMessageEnabled(RTMPMessage message) {
        IRTMPEvent body = message.getBody();
        if (!receiveAudio && body instanceof AudioData) {
            // The user doesn't want to get audio packets
            ((IStreamData<?>) body).getData().free();
            if (sendBlankAudio) {
                // Send reset audio packet
                sendBlankAudio = false;
                body = new AudioData();
                // We need a zero timestamp
                if (lastMessageTs >= 0) {
                    body.setTimestamp(lastMessageTs - timestampOffset);
                } else {
                    body.setTimestamp(-timestampOffset);
                }
                message = RTMPMessage.build(body);
            } else {
                return false;
            }
        } else if (!receiveVideo && body instanceof VideoData) {
            // The user doesn't want to get video packets
            ((IStreamData<?>) body).getData().free();
            return false;
        }
        return true;
    }
1329720
@TargetApi(Build.VERSION_CODES.JELLY_BEAN)
    public static boolean hasTelevisionFeature(PackageManager manager) {
        return manager.hasSystemFeature(PackageManager.FEATURE_TELEVISION);
    }
1356154
@TargetApi(Build.VERSION_CODES.KITKAT)
    public static boolean hasHostCardEmulationNfcFeature(PackageManager manager) {
        return manager.hasSystemFeature(PackageManager.FEATURE_NFC_HOST_CARD_EMULATION);
    }
1114277
private boolean hasLeapMonth(long m0, long m) {
        return (
            (m >= m0)
            && (this.hasNoMajorSolarTerm(m) || this.hasLeapMonth(m0, this.newMoonBefore(m)))
        );
    }
85554
boolean isMe()
	{
		DevLockManager	dlm = DevLockManager.getInstance();
		//	Check main class name
		if (!dlm.getMainClass().equals(classname))
		{
			System.out.println(dlm.getMainClass() + "!=" + classname);
			return false;
		}
		//	Check UUID long values (msl and lsl)
		if (uuid.compareTo(dlm.getUUID())!=0)
		{
			System.out.println("UUID different");
			return false;
		}

		//	Check IP address
		return hostname.equals(dlm.getHost());
	}
695325
private boolean hasReceivedHeartbeat() {
        long currentTimeMillis = System.currentTimeMillis();
        boolean result = lastTimeMessageReceived + heartbeatTimeoutMs >= currentTimeMillis;

        if (!result)
            Jvm.warn().on(getClass(), Integer.toHexString(hashCode()) + " missed heartbeat, lastTimeMessageReceived=" + lastTimeMessageReceived
                    + ", currentTimeMillis=" + currentTimeMillis);
        return result;
    }
982955
synchronized void enableAutoTuning(int latencyTarget) {
        m_autoTune = true;
        m_doesAnyTuning = true;
        m_targetTxnsPerSecond = Integer.MAX_VALUE;
        m_maxOutstandingTxns = 20;
        m_latencyTarget = latencyTarget;
    }
1085189
private boolean checkDefaultFileAlterDiscard()
	{
		return	id.equals(ID3v2Frames.AUDIO_SEEK_POINT_INDEX) || 
				id.equals(ID3v2Frames.AUDIO_ENCRYPTION) || 
				id.equals(ID3v2Frames.EVENT_TIMING_CODES) || 
				id.equals(ID3v2Frames.EQUALISATION) || 
				id.equals(ID3v2Frames.MPEG_LOCATION_LOOKUP_TABLE) || 
				id.equals(ID3v2Frames.POSITION_SYNCHRONISATION_FRAME) || 
				id.equals(ID3v2Frames.SEEK_FRAME) || 
				id.equals(ID3v2Frames.SYNCHRONISED_LYRIC) || 
				id.equals(ID3v2Frames.SYNCHRONISED_TEMPO_CODES) || 
				id.equals(ID3v2Frames.RELATIVE_VOLUME_ADJUSTMENT) || 
				id.equals(ID3v2Frames.ENCODED_BY) || 
				id.equals(ID3v2Frames.LENGTH);
	}
976961
@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)
    public static boolean hasLandscapeScreenFeature(PackageManager manager) {
        return manager.hasSystemFeature(PackageManager.FEATURE_SCREEN_LANDSCAPE);
    }
441812
private void configureEnabled(Manager manager) {
		if (enabled != manager.isEnabled()) {
			if (enabled) {
				manager.enable();
			} else {
				manager.disable();
			}
		}
	}
1178319
@TargetApi(Build.VERSION_CODES.GINGERBREAD)
    public static boolean hasFrontCameraFeature(PackageManager manager) {
        return manager.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT);
    }