Searched refs:length (Results 76 - 100 of 2569) sorted by relevance

1234567891011>>

/frameworks/opt/net/voip/src/jni/rtp/
H A DGsmCodec.cpp47 int decode(int16_t *samples, int count, void *payload, int length);
60 int GsmCodec::decode(int16_t *samples, int count, void *payload, int length) argument
64 while (n + 160 <= count && length >= 33 &&
67 length -= 33;
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
H A DByteArrayRingBuffer.java53 pruneToSize(mMaxBytes - newData.length);
54 if (mBytesUsed + newData.length > mMaxBytes) {
59 mBytesUsed += newData.length;
93 newBytesUsed -= mArrayList.get(i).length;
/frameworks/opt/vcard/java/com/android/vcard/
H A DVCardParserImpl_V40.java63 final int length = text.length();
64 for (int i = 0; i < length; i++) {
66 if (ch == '\\' && i < length - 1) {
/frameworks/base/core/java/android/nfc/
H A DNdefMessage.java68 * be correct, and the total length of the message must match
69 * the length of the input data.<p>
121 mRecords = new NdefRecord[1 + records.length];
123 System.arraycopy(records, 0, mRecords, 1, records.length);
133 if (records.length < 1) {
149 * (no need to check for null or array length >= 1):
161 * Return the length of this NDEF Message if it is written to a byte array
164 * depending on chunking, SR, and ID flags, so the length returned
165 * by this method may not be equal to the length of the original
167 * always be equal to the length o
[all...]
/frameworks/base/nfc-extras/tests/src/com/android/nfc_extras/tests/
H A DBasicNfcEeTest.java38 (byte)0x08, // data length
61 assertTrue(out.length >= SELECT_CARD_MANAGER_RESPONSE.length);
63 out.length - SELECT_CARD_MANAGER_RESPONSE.length,
64 out.length);
81 out.length - SELECT_CARD_MANAGER_RESPONSE.length,
82 out.length);
112 assertEquals(b1.length, b
[all...]
/frameworks/base/core/java/android/animation/
H A DFloatArrayEvaluator.java67 array = new float[startValue.length];
70 for (int i = 0; i < array.length; i++) {
H A DIntArrayEvaluator.java66 array = new int[startValue.length];
68 for (int i = 0; i < array.length; i++) {
/frameworks/base/graphics/java/android/graphics/
H A DTemporaryBuffer.java33 if (buf == null || buf.length < len) {
41 if (temp.length > 1000) return;
/frameworks/base/packages/Osu/src/com/android/hotspot2/
H A DIMSIParameter.java15 if (imsi == null || imsi.length() == 0) {
21 for (nonDigit = 0; nonDigit < imsi.length(); nonDigit++) {
28 if (nonDigit == imsi.length()) {
31 } else if (nonDigit == imsi.length() - 1 && stopChar == '*') {
41 return mImsi.regionMatches(false, 0, fullIMSI, 0, mImsi.length());
50 return mImsi.regionMatches(false, 0, mccMnc, 0, mImsi.length());
52 // For regular match, the entire length of mcc+mnc must match this IMSI
53 return mImsi.regionMatches(false, 0, mccMnc, 0, mccMnc.length());
66 return mImsi.length();
/frameworks/native/include/binder/
H A DIProcessInfoService.h30 virtual status_t getProcessStatesFromPids( size_t length,
34 virtual status_t getProcessStatesAndOomScoresFromPids( size_t length,
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DIMSIParameter.java15 if (imsi == null || imsi.length() == 0) {
21 for (nonDigit = 0; nonDigit < imsi.length(); nonDigit++) {
28 if (nonDigit == imsi.length()) {
32 else if (nonDigit == imsi.length()-1 && stopChar == '*') {
43 return mImsi.regionMatches(false, 0, fullIMSI, 0, mImsi.length());
53 return mImsi.regionMatches(false, 0, mccMnc, 0, mImsi.length());
56 // For regular match, the entire length of mcc+mnc must match this IMSI
57 return mImsi.regionMatches(false, 0, mccMnc, 0, mccMnc.length());
70 return mImsi.length();
/frameworks/opt/setupwizard/library/eclair-mr1/test/src/com/android/setupwizardlib/test/
H A DRichTextViewTest.java45 Object[] spans = ((Spanned) text).getSpans(0, text.length(), Annotation.class);
46 assertEquals("Annotation should be removed " + Arrays.toString(spans), 0, spans.length);
48 spans = ((Spanned) text).getSpans(0, text.length(), LinkSpan.class);
49 assertEquals("There should be one span " + Arrays.toString(spans), 1, spans.length);
67 Object[] spans = ((Spanned) text).getSpans(0, text.length(), Annotation.class);
68 assertEquals("Annotation should be removed " + Arrays.toString(spans), 0, spans.length);
70 spans = ((Spanned) text).getSpans(0, text.length(), TextAppearanceSpan.class);
71 assertEquals("There should be one span " + Arrays.toString(spans), 1, spans.length);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DBerTlv.java63 * Gets if the length of the BER-TLV object is valid
65 * @return if length valid
80 int endIndex = data.length;
81 int tag, length = 0;
88 /* length */
91 length = temp;
97 "length < 0x80 length=" + Integer.toHexString(length) +
101 length
[all...]
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/
H A DUT_array_init.java37 _RS_ASSERT("fa.length == 4", fa.length == 4);
42 _RS_ASSERT("da.length == 2", da.length == 2);
49 _RS_ASSERT("ca.length == 4", ca.length == 4);
56 _RS_ASSERT("sa.length == 4", sa.length == 4);
63 _RS_ASSERT("ia.length == 4", ia.length
[all...]
/frameworks/rs/java/tests/RSTest_CompatLibLegacy/src/com/android/rs/test/
H A DUT_array_init.java37 _RS_ASSERT("fa.length == 4", fa.length == 4);
42 _RS_ASSERT("da.length == 2", da.length == 2);
49 _RS_ASSERT("ca.length == 4", ca.length == 4);
56 _RS_ASSERT("sa.length == 4", sa.length == 4);
63 _RS_ASSERT("ia.length == 4", ia.length
[all...]
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
H A DUT_array_init.java37 _RS_ASSERT("fa.length == 4", fa.length == 4);
42 _RS_ASSERT("da.length == 2", da.length == 2);
49 _RS_ASSERT("ca.length == 4", ca.length == 4);
56 _RS_ASSERT("sa.length == 4", sa.length == 4);
63 _RS_ASSERT("ia.length == 4", ia.length
[all...]
/frameworks/base/core/java/android/content/pm/
H A DLimitedLengthInputStream.java10 * the specified length is reached, the stream returns an EOF even if the
29 * @param length length of data at offset
32 public LimitedLengthInputStream(InputStream in, long offset, long length) throws IOException { argument
43 if (length < 0) {
44 throw new IOException("length < 0");
47 if (length > Long.MAX_VALUE - offset) {
48 throw new IOException("offset + length > Long.MAX_VALUE");
51 mEnd = offset + length;
73 final int arrayLength = buffer.length;
[all...]
/frameworks/base/core/java/android/net/nsd/
H A DDnsSdTxtRecord.java34 * a packed array of bytes, each preceded by a length byte. Each string
76 valLen = valBytes.length;
89 for (int i = 0; i < keyBytes.length; i++) {
95 if (keyBytes.length + valLen >= 255) {
96 throw new IllegalArgumentException("Key and Value length cannot exceed 255 bytes");
121 for (int i=0; avStart < mData.length; i++) {
123 if (key.length() <= avLen &&
124 (key.length() == avLen || mData[avStart + key.length() + 1] == mSeperator)) {
125 String s = new String(mData, avStart + 1, key.length());
[all...]
/frameworks/base/core/java/android/util/
H A DStateSet.java80 if ((VIEW_STATE_IDS.length / 2) != R.styleable.ViewDrawableStates.length) {
82 "VIEW_STATE_IDs array length does not match ViewDrawableStates style array");
85 final int[] orderedIds = new int[VIEW_STATE_IDS.length];
86 for (int i = 0; i < R.styleable.ViewDrawableStates.length; i++) {
88 for (int j = 0; j < VIEW_STATE_IDS.length; j += 2) {
96 final int NUM_BITS = VIEW_STATE_IDS.length / 2;
98 for (int i = 0; i < VIEW_STATE_SETS.length; i++) {
102 for (int j = 0; j < orderedIds.length; j += 2) {
113 if (mask >= VIEW_STATE_SETS.length) {
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DNativeDaemonEvent.java139 if (parsed.length < 2) {
148 skiplength = parsed[0].length() + 1;
155 if (parsed.length < 3) {
160 skiplength += parsed[1].length() + 1;
167 if (parsed.length > 2 && parsed[2].equals(SENSITIVE_MARKER)) {
168 skiplength += parsed[2].length() + 1;
202 if (n > mParsed.length) return null;
210 final int length = rawEvent.length();
220 while (current < length) {
[all...]
/frameworks/native/opengl/libagl/
H A DTokenizer.cpp50 uint32_t token = run.first + run.length;
76 if ((token >= run.first) && (token < run.first+run.length)) {
79 if ((token == run.first) || (token == run.first+run.length-1)) {
83 run.length -= 1;
84 if (run.length == 0) {
92 new_run.length = run.first+run.length - new_run.first;
93 run.length = token - run.first;
115 else if (token >= curr->first+curr->length) c = -1;
136 if (p.first+p.length
[all...]
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/utils/
H A DObexAppParameters.java38 for (int i = 0; i < raw.length;) {
39 if (raw.length - i < 2) {
46 if (raw.length - i - len < 0) {
72 int length = 0;
75 length += (entry.getValue().length + 2);
78 byte[] ret = new byte[length];
82 length = entry.getValue().length;
85 ret[idx++] = (byte) length;
[all...]
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/
H A DEncodedStringValue.java28 * Encoded-string-value = Text-string | Value-length Char-set Text-string
59 mData = new byte[data.length];
60 System.arraycopy(data, 0, mData, 0, data.length);
107 byte[] byteArray = new byte[mData.length];
109 System.arraycopy(mData, 0, byteArray, 0, mData.length);
124 mData = new byte[textString.length];
125 System.arraycopy(textString, 0, mData, 0, textString.length);
168 mData = new byte[textString.length];
169 System.arraycopy(textString, 0, mData, 0, textString.length);
192 int len = mData.length;
[all...]
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DExifTag.java211 * setValue() if the length of value does not match the component count.
232 * <li>The value.length does NOT match the component count in the definition
237 if (checkBadComponentCount(value.length)) {
250 long[] data = new long[value.length];
251 for (int i = 0; i < value.length; i++) {
255 mComponentCountActual = value.length;
282 * <li>The value.length does NOT match the component count in the definition
287 if (checkBadComponentCount(value.length) || mDataType != TYPE_UNSIGNED_LONG) {
294 mComponentCountActual = value.length;
316 * Characters that cannot be converted are replaced with '?'. The length o
411 setValue(byte[] value, int offset, int length) argument
850 getBytes(byte[] buf, int offset, int length) argument
[all...]
/frameworks/base/core/java/android/database/
H A DCursorJoiner.java78 if (columnNamesLeft.length != columnNamesRight.length) {
81 + columnNamesLeft.length + " != " + columnNamesRight.length);
95 mValues = new String[mColumnsLeft.length * 2];
109 int[] columns = new int[columnNames.length];
110 for (int i = 0; i < columnNames.length; i++) {
197 * for each value. If columnIndicies has length 3 and startingIndex is 1, the
207 for (int i = 0; i < columnIndicies.length; i++) {
243 if ((values.length
[all...]

Completed in 478 milliseconds

1234567891011>>