Searched refs:length (Results 51 - 75 of 1912) sorted by relevance

1234567891011>>

/frameworks/base/obex/javax/obex/
H A DObexHelper.java52 * Defines the basic packet length used by OBEX. Every OBEX packet has the
142 * <TD>Byte Sequence, length prefixed with 2 byte unsigned integer</TD>
168 int length = 0;
174 while (index < headerArray.length) {
180 * two bytes after the header identifier being the length
186 * two bytes after the header identifier being the length
191 length = 0xFF & headerArray[index];
192 length = length << 8;
194 length
[all...]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DPhoneNumberWatcherTest.java32 textWatcher.beforeTextChanged(number, 0, 0, multiChars.length());
34 Selection.setSelection(number, number.length());
35 textWatcher.onTextChanged(number, 0, 0, number.length());
38 assertEquals(formatted1.length(), Selection.getSelectionEnd(number));
42 int len = number.length();
43 textWatcher.beforeTextChanged(number, number.length(), 0, 1);
45 Selection.setSelection(number, number.length());
49 assertEquals(formatted2.length(), Selection.getSelectionEnd(number));
58 int len = number.length();
61 Selection.setSelection(number, number.length());
[all...]
/frameworks/base/core/tests/coretests/src/android/os/
H A DMemoryFileTest.java32 private void compareBuffers(byte[] buffer1, byte[] buffer2, int length) throws Exception { argument
33 for (int i = 0; i < length; i++) {
53 newFile.writeBytes(testString, 0, 0, testString.length);
57 file.readBytes(testString, 0, 0, testString.length);
75 byte[] buffer = new byte[testString.length];
78 file.writeBytes(testString, 0, 2000, testString.length);
79 file.readBytes(buffer, 2000, 0, testString.length);
80 compareBuffers(testString, buffer, testString.length);
83 buffer = new byte[testString.length];
89 is.mark(testString.length);
[all...]
/frameworks/base/core/java/android/speech/tts/
H A DSynthesisCallback.java66 * @param length The number of bytes of audio data in {@code buffer}. This must be
71 public int audioAvailable(byte[] buffer, int offset, int length); argument
/frameworks/base/graphics/java/android/graphics/
H A DDashPathEffect.java26 * controls the length of the dashes. The paint's strokeWidth controls the
35 if (intervals.length < 2) {
H A DTemporaryBuffer.java33 if (buf == null || buf.length < len) {
41 if (temp.length > 1000) return;
/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/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/core/java/com/android/internal/util/
H A DHexDump.java25 return dumpHexString(array, 0, array.length);
28 public static String dumpHexString(byte[] array, int offset, int length) argument
38 for (int i = offset ; i < offset + length ; i++)
101 return toHexString(array, 0, array.length);
104 public static String toHexString(byte[] array, int offset, int length) argument
106 char[] buf = new char[length * 2];
109 for (int i = offset ; i < offset + length; i++)
154 int length = hexString.length();
155 byte[] buffer = new byte[length /
[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/core/java/android/view/
H A DFrameStats.java54 ? mFramesPresentedTimeNano.length : 0;
84 return mFramesPresentedTimeNano[mFramesPresentedTimeNano.length - 1];
/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/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/support/v7/palette/src/android/support/v7/graphics/
H A DColorHistogram.java72 if (pixels.length < 2) {
74 return pixels.length;
82 for (int i = 1; i < pixels.length; i++) {
94 if (pixels.length == 0) {
104 if (pixels.length == 1) {
110 for (int i = 1; i < pixels.length; i++) {
/frameworks/base/services/core/java/com/android/server/
H A DNativeDaemonEvent.java132 if (parsed.length < 2) {
141 skiplength = parsed[0].length() + 1;
148 if (parsed.length < 3) {
153 skiplength += parsed[1].length() + 1;
160 if (parsed.length > 2 && parsed[2].equals(SENSITIVE_MARKER)) {
161 skiplength += parsed[2].length() + 1;
195 if (n > mParsed.length) return null;
203 final int length = rawEvent.length();
213 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/bluetooth/src/android/bluetooth/client/pbap/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...]

Completed in 7975 milliseconds

1234567891011>>