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

1234567891011>>

/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/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/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/mms/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/opt/photoviewer/src/com/android/ex/photo/util/
H A DInputStreamBuffer.java48 * <code>autoAdvance</code> is enabled, every time an index is beyond the buffer length,
138 String.format("Index %d beyond length.", index));
170 if (i >= mFilled || i >= mBuffer.length) {
275 int length = i + 1;
276 if (length > mBuffer.length) {
281 length = leastPowerOf2(length);
283 "Increasing buffer length from %d to %d. Bad buffer size chosen, "
285 mBuffer.length, lengt
[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...]
/frameworks/base/services/common_time/
H A Dcommon_time_server_packets.h54 ssize_t serializePacket(uint8_t* data, uint32_t length);
73 ssize_t serializeHeader(uint8_t* data, uint32_t length);
74 ssize_t deserializeHeader(const uint8_t* data, uint32_t length);
93 ssize_t serializePacket(uint8_t* data, uint32_t length);
94 ssize_t deserializePacket(const uint8_t* data, uint32_t length);
108 ssize_t serializePacket(uint8_t* data, uint32_t length);
109 ssize_t deserializePacket(const uint8_t* data, uint32_t length);
124 ssize_t serializePacket(uint8_t* data, uint32_t length);
125 ssize_t deserializePacket(const uint8_t* data, uint32_t length);
149 ssize_t serializePacket(uint8_t* data, uint32_t length);
[all...]
/frameworks/base/core/java/android/hardware/usb/
H A DUsbRequest.java132 * @param length number of bytes to read or write
135 public boolean queue(ByteBuffer buffer, int length) { argument
139 result = native_queue_direct(buffer, length, out);
141 result = native_queue_array(buffer.array(), length, out);
148 mLength = length;
180 private native boolean native_queue_array(byte[] buffer, int length, boolean out); argument
181 private native int native_dequeue_array(byte[] buffer, int length, boolean out); argument
182 private native boolean native_queue_direct(ByteBuffer buffer, int length, boolean out); argument
/frameworks/base/core/java/android/os/
H A DSystemProperties.java51 if (key.length() > PROP_NAME_MAX) {
52 throw new IllegalArgumentException("key.length > " + PROP_NAME_MAX);
63 if (key.length() > PROP_NAME_MAX) {
64 throw new IllegalArgumentException("key.length > " + PROP_NAME_MAX);
78 if (key.length() > PROP_NAME_MAX) {
79 throw new IllegalArgumentException("key.length > " + PROP_NAME_MAX);
93 if (key.length() > PROP_NAME_MAX) {
94 throw new IllegalArgumentException("key.length > " + PROP_NAME_MAX);
113 if (key.length() > PROP_NAME_MAX) {
114 throw new IllegalArgumentException("key.length > "
[all...]
/frameworks/base/core/tests/coretests/src/android/text/
H A DHtmlTest.java42 assertEquals(1, spans.length);
83 colors = s.getSpans(0, s.length(), ForegroundColorSpan.class);
84 assertEquals(1, colors.length);
88 colors = s.getSpans(0, s.length(), ForegroundColorSpan.class);
89 assertEquals(1, colors.length);
93 colors = s.getSpans(0, s.length(), ForegroundColorSpan.class);
94 assertEquals(0, colors.length);
105 colors = s.getSpans(0, s.length(), TextAppearanceSpan.class);
106 assertEquals(1, colors.length);
110 colors = s.getSpans(0, s.length(), TextAppearanceSpa
[all...]
/frameworks/base/media/java/android/media/
H A DAmrInputStream.java72 return read(b, 0, b.length);
76 public int read(byte[] b, int offset, int length) throws IOException { argument
97 if (length > mBufIn - mBufOut) length = mBufIn - mBufOut;
98 System.arraycopy(mBuf, mBufOut, b, offset, length);
99 mBufOut += length;
101 return length;
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DGsmAlphabetTest.java46 userData, SmsHeader.toByteArray(header).length+2, septetCount, 1, 0, 0);
65 for (int i = 0, s = sGsmExtendedChars.length(); i < s; i++) {
86 for (int i = 0, s = sGsmExtendedChars.length(); i < s; i++) {
167 for (int i = 0, s = sGsmExtendedChars.length(); i < s; i++) {
242 GsmAlphabet.gsm8BitUnpackedToString(unpacked, 0, unpacked.length));
250 assertEquals(2 * sGsmExtendedChars.length(), unpacked.length);
252 GsmAlphabet.gsm8BitUnpackedToString(unpacked, 0, unpacked.length));
255 assertEquals(2 * sGsmExtendedChars.length(), unpacked.length);
[all...]
/frameworks/base/core/java/android/speech/srec/
H A DUlawEncoderInputStream.java50 byte[] ulawBuf, int ulawOffset, int length, int max) {
80 for (int i = 0; i < length; i++) {
117 * @param length number of pcm samples (not number of input bytes)
120 public static int maxAbsPcm(byte[] pcmBuf, int offset, int length) { argument
122 for (int i = 0; i < length; i++) {
141 public int read(byte[] buf, int offset, int length) throws IOException { argument
144 // return at least one byte, but try to fill 'length'
146 int n = mIn.read(mBuf, mBufCount, Math.min(length * 2, mBuf.length - mBufCount));
152 int n = Math.min(mBufCount / 2, length);
49 encode(byte[] pcmBuf, int pcmOffset, byte[] ulawBuf, int ulawOffset, int length, int max) argument
[all...]
/frameworks/base/media/mca/filterfw/native/core/
H A Dgeometry.cpp31 float length = Length(); local
32 if (length == 0.0f) {
35 x_ *= new_length / length;
36 y_ *= new_length / length;
90 bool Rect::ExpandToMinLength(float length) { argument
91 if (width <= 0.0f || height <= 0.0f || length <= 0.0f) {
96 if (length > current_length) {
97 const float dx = width * (length / current_length - 1.0f);
100 const float dy = height * (length / current_length - 1.0f);

Completed in 1229 milliseconds

1234567891011>>