/frameworks/base/tests/RenderScriptTests/tests/src/com/android/rs/test/ |
H A D | UT_array_init.java | 37 _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 D | LimitedLengthInputStream.java | 10 * 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...] |
H A D | MacAuthenticatedInputStream.java | 44 if (tag == null || actualTag == null || tag.length != actualTag.length) { 54 for (int i = 0; i < tag.length; i++) {
|
/frameworks/base/core/java/android/hardware/usb/ |
H A D | UsbDeviceConnection.java | 118 * @param length the length of the data to send or receive 120 * @return length of data transferred (or zero) for success, 124 int index, byte[] buffer, int length, int timeout) { 125 return native_control_request(requestType, request, value, index, buffer, length, timeout); 134 * @param length the length of the data to send or receive 136 * @return length of data transferred (or zero) for success, 139 public int bulkTransfer(UsbEndpoint endpoint, byte[] buffer, int length, int timeout) { argument 140 return native_bulk_request(endpoint.getAddress(), buffer, length, timeou 123 controlTransfer(int requestType, int request, int value, int index, byte[] buffer, int length, int timeout) argument 177 native_control_request(int requestType, int request, int value, int index, byte[] buffer, int length, int timeout) argument 179 native_bulk_request(int endpoint, byte[] buffer, int length, int timeout) argument [all...] |
H A D | UsbRequest.java | 132 * @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/net/nsd/ |
H A D | DnsSdTxtRecord.java | 34 * 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/com/android/internal/util/ |
H A D | ArrayUtils.java | 78 * @param length the number of bytes to check 81 public static boolean equals(byte[] array1, byte[] array2, int length) { argument 85 if (array1 == null || array2 == null || array1.length < length || array2.length < length) { 88 for (int i = 0; i < length; i++) { 165 end = array.length; 189 final int length = array.length; [all...] |
/frameworks/native/opengl/libagl/ |
H A D | Tokenizer.cpp | 50 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 D | EncodedStringValue.java | 28 * 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/core/java/android/database/ |
H A D | CursorJoiner.java | 78 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 D | common_time_server_packets.h | 54 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/os/ |
H A D | SystemProperties.java | 51 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 D | HtmlTest.java | 42 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/opt/telephony/src/java/com/android/internal/telephony/cat/ |
H A D | BerTlv.java | 69 int endIndex = data.length; 70 int tag, length = 0; 76 /* length */ 79 length = temp; 85 "length < 0x80 length=" + Integer.toHexString(length) + 89 length = temp; 93 "Expected first byte to be length or a length ta [all...] |
/frameworks/base/media/java/android/media/ |
H A D | AmrInputStream.java | 72 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 D | GsmAlphabetTest.java | 45 userData, SmsHeader.toByteArray(header).length+2, septetCount, 1, 0, 0); 64 for (int i = 0, s = sGsmExtendedChars.length(); i < s; i++) { 85 for (int i = 0, s = sGsmExtendedChars.length(); i < s; i++) { 166 for (int i = 0, s = sGsmExtendedChars.length(); i < s; i++) { 241 GsmAlphabet.gsm8BitUnpackedToString(unpacked, 0, unpacked.length)); 249 assertEquals(2 * sGsmExtendedChars.length(), unpacked.length); 251 GsmAlphabet.gsm8BitUnpackedToString(unpacked, 0, unpacked.length)); 254 assertEquals(2 * sGsmExtendedChars.length(), unpacked.length); [all...] |
/frameworks/base/core/java/android/speech/srec/ |
H A D | UlawEncoderInputStream.java | 50 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/tests/WebViewTests/src/com/android/webviewtests/ |
H A D | JavaBridgeArrayTest.java | 112 assertEquals(3, result.length); 130 assertEquals(0, mTestObject.waitForIntArray().length); 156 executeJavaScript("testObject.setIntArray({length: 3, 1: 42});"); 158 assertEquals(3, result.length); 167 executeJavaScript("testObject.setIntArray({length: \"foo\"});"); 174 executeJavaScript("testObject.setIntArray({length: -1});"); 179 long length = (long)Integer.MAX_VALUE + 1L; 180 executeJavaScript("testObject.setIntArray({length: " + length + "});"); 185 length [all...] |
/frameworks/native/opengl/tools/glgen/stubs/gles11/ |
H A D | glGetShaderSource.cpp | 1 /* void glGetShaderSource ( GLuint shader, GLsizei bufsize, GLsizei *length, char *source ) */ 10 GLsizei *length = (GLsizei *) 0; local 18 _exceptionMessage = "length == null"; 30 length = length_base + lengthOffset; 52 (GLsizei *)length, 70 /* void glGetShaderSource ( GLuint shader, GLsizei bufsize, GLsizei *length, char *source ) */ 77 GLsizei *length = (GLsizei *) 0; local 79 length = (GLsizei *)getPointer(_env, length_buf, &_array, &_remaining, &_bufferOffset); 80 if (length == NULL) { 82 length [all...] |
/frameworks/base/media/mca/filterfw/native/core/ |
H A D | geometry.cpp | 31 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);
|
/frameworks/av/media/libstagefright/chromium_http/ |
H A D | DataUriSource.cpp | 36 mData.setTo(dataStr.data(), dataStr.length()); 52 const off64_t length = mData.size(); local 53 if (offset >= length) { 59 offset + size >= length ? (length - offset) : size;
|
/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | AidlTest.java | 124 for (int i = 0; i < a0.length && i < a2.length; i++) { 127 for (int i = 0; i < a0.length && i < a1.length; i++) { 134 for (int i = 0; i < a0.length && i < a2.length; i++) { 137 for (int i = 0; i < a0.length && i < a1.length; i++) { 144 for (int i = 0; i < a0.length && i < a2.length; [all...] |
/frameworks/base/core/java/android/content/ |
H A D | SearchRecentSuggestionsProvider.java | 228 final int length = uri.getPathSegments().size(); 229 if (length != 1) { 253 int length = uri.getPathSegments().size(); 254 if (length >= 1) { 257 if (length == 1) { 259 } else if (length == 2) { 275 int length = uri.getPathSegments().size(); 276 if (length < 1) { 284 if (length == 1) { 347 int length [all...] |
/frameworks/base/core/jni/ |
H A D | android_hardware_UsbRequest.cpp | 81 jbyteArray buffer, jint length, jboolean out) 89 if (buffer && length) { 90 request->buffer = malloc(length); 93 memset(request->buffer, 0, length); 96 env->GetByteArrayRegion(buffer, 0, length, (jbyte *)request->buffer); 101 request->buffer_length = length; 119 jbyteArray buffer, jint length, jboolean out) 127 if (buffer && length && request->buffer && !out) { 129 env->SetByteArrayRegion(buffer, 0, length, (jbyte *)request->buffer); 138 jobject buffer, jint length, jboolea 80 android_hardware_UsbRequest_queue_array(JNIEnv *env, jobject thiz, jbyteArray buffer, jint length, jboolean out) argument 118 android_hardware_UsbRequest_dequeue_array(JNIEnv *env, jobject thiz, jbyteArray buffer, jint length, jboolean out) argument 137 android_hardware_UsbRequest_queue_direct(JNIEnv *env, jobject thiz, jobject buffer, jint length, jboolean out) argument [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | SweepGradient.java | 37 if (colors.length < 2) { 40 if (positions != null && colors.length != positions.length) { 42 "color and position arrays must be of equal length");
|