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

1234567891011>>

/frameworks/base/tests/WebViewTests/src/com/android/webviewtests/
H A DJavaBridgeArrayTest.java112 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 DglGetShaderSource.cpp1 /* 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...]
H A DglGetActiveAttrib.java1 // C function void glGetActiveAttrib ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
7 int[] length,
17 // C function void glGetActiveAttrib ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
23 java.nio.IntBuffer length,
29 // C function void glGetActiveAttrib ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
40 // C function void glGetActiveAttrib ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
3 glGetActiveAttrib( int program, int index, int bufsize, int[] length, int lengthOffset, int[] size, int sizeOffset, int[] type, int typeOffset, byte[] name, int nameOffset ) argument
19 glGetActiveAttrib( int program, int index, int bufsize, java.nio.IntBuffer length, java.nio.IntBuffer size, java.nio.IntBuffer type, byte name ) argument
H A DglGetActiveUniform.java1 // C function void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
7 int[] length,
17 // C function void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
23 java.nio.IntBuffer length,
28 // C function void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
39 // C function void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
3 glGetActiveUniform( int program, int index, int bufsize, int[] length, int lengthOffset, int[] size, int sizeOffset, int[] type, int typeOffset, byte[] name, int nameOffset ) argument
19 glGetActiveUniform( int program, int index, int bufsize, java.nio.IntBuffer length, java.nio.IntBuffer size, java.nio.IntBuffer type, byte name ) argument
H A DglGetTransformFeedbackVarying.java1 // C function void glGetTransformFeedbackVarying ( GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name )
7 int[] length,
17 // C function void glGetTransformFeedbackVarying ( GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name )
23 java.nio.IntBuffer length,
29 // C function void glGetTransformFeedbackVarying ( GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name )
40 // C function void glGetTransformFeedbackVarying ( GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name )
3 glGetTransformFeedbackVarying( int program, int index, int bufsize, int[] length, int lengthOffset, int[] size, int sizeOffset, int[] type, int typeOffset, byte[] name, int nameOffset ) argument
19 glGetTransformFeedbackVarying( int program, int index, int bufsize, java.nio.IntBuffer length, java.nio.IntBuffer size, java.nio.IntBuffer type, byte name ) argument
/frameworks/av/media/libstagefright/chromium_http/
H A DDataUriSource.cpp36 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 DAidlTest.java124 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 DSearchRecentSuggestionsProvider.java228 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/java/android/content/pm/
H A DMacAuthenticatedInputStream.java44 if (tag == null || actualTag == null || tag.length != actualTag.length) {
54 for (int i = 0; i < tag.length; i++) {
/frameworks/base/core/jni/
H A Dandroid_hardware_UsbRequest.cpp81 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/packages/WallpaperCropper/src/com/android/gallery3d/util/
H A DIntArray.java26 if (mData.length == mSize) {
45 if (result == null || result.length < mSize) {
58 if (mData.length != INIT_CAPACITY) mData = new int[INIT_CAPACITY];
/frameworks/compile/mclinker/lib/ADT/
H A DStringEntry.cpp44 size_t length = strlen(pVal); local
45 char* data = (char*)malloc(length+1);
47 m_Value = llvm::StringRef(data, length);
/frameworks/base/core/java/android/util/
H A DStateSet.java50 return stateSetOrSpec.length == 0 || stateSetOrSpec[0] == 0;
64 int stateSpecSize = stateSpec.length;
65 int stateSetSize = stateSet.length;
121 int stateSpecSize = stateSpec.length;
144 if (states.length == newSize) {
156 int count = states.length;
/frameworks/base/core/tests/coretests/src/android/content/
H A DMemoryFileProviderTest.java39 byte[] buf = new byte[MemoryFileProvider.TEST_BLOB.length];
43 assertEquals(buf.length, count);
59 byte[] buf = new byte[MemoryFileProvider.TEST_BLOB.length];
61 assertEquals(buf.length, count);
72 byte[] buf = new byte[MemoryFileProvider.TEST_BLOB.length];
76 assertEquals(buf.length, count);
/frameworks/base/tests/CoreTests/android/core/
H A DHeapTest.java50 for (int i = 0; i < objects.length; i++) {
59 for (i = 0; i < refs.length; i++) {
72 for (int i = 0; i < objects.length; i += skip) {
84 for (int i = 0; i < objects.length; i++) {
99 SoftReference<Object> refs[] = new SoftReference[objects.length];
142 SoftReference<Object> refs[] = new SoftReference[objects.length];
166 while (i < junk.length && totalSize < 8 * 1024 * 1024) {
178 for (int i = 0; i < objects.length; i++) {
187 for (int i = 0; i < objects.length; i++) {
203 WeakReference<Object> refs[] = new WeakReference[objects.length];
[all...]
/frameworks/base/core/java/android/nfc/
H A DNdefRecord.java51 * remaining fields are variable length and not always present:
311 if (packageName.length() == 0) throw new IllegalArgumentException("packageName is empty");
343 if (uriString.length() == 0) throw new IllegalArgumentException("uri is empty");
346 for (int i = 1; i < URI_PREFIX_MAP.length; i++) {
349 uriString = uriString.substring(URI_PREFIX_MAP[i].length());
354 byte[] recordBytes = new byte[uriBytes.length + 1];
356 System.arraycopy(uriBytes, 0, recordBytes, 1, uriBytes.length);
416 if (mimeType.length() == 0) throw new IllegalArgumentException("mimeType is empty");
419 if (slashIndex == mimeType.length() - 1) {
462 if (domain.length()
[all...]
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
H A Dpvmp3_crc.cpp56 uint32 length, number of element upon the crc will be calculated
142 uint32 length,
146 uint32 masking = 1 << length;
141 calculate_crc(uint32 data, uint32 length, uint32 *crc) argument
/frameworks/base/core/java/android/webkit/
H A DPluginData.java27 * the length of the body, the response headers, and the response
42 * The content length.
62 * @param length The length of the plugin content.
65 * @param length The HTTP response status code.
74 long length,
78 mContentLength = length;
98 * Returns the length of the plugin content.
100 * @return the length of the plugin content.
72 PluginData( InputStream stream, long length, Map<String, String[]> headers, int code) argument
/frameworks/base/obex/javax/obex/
H A DServerOperation.java155 int length = in.read();
156 length = (length << 8) + in.read();
159 * Determine if the packet length is larger than this device can receive
161 if (length > ObexHelper.MAX_PACKET_SIZE_INT) {
169 if (length > 3) {
170 byte[] data = new byte[length - 3];
173 while (bytesReceived != data.length) {
174 bytesReceived += in.read(data, bytesReceived, data.length - bytesReceived);
202 replyHeader.mAuthResp = new byte[requestHeader.mAuthResp.length];
[all...]
H A DServerSession.java133 int length = mInput.read();
134 length = (length << 8) + mInput.read();
135 for (int i = 3; i < length; i++) {
164 int length = mInput.read();
165 length = (length << 8) + mInput.read();
166 if (length > ObexHelper.MAX_PACKET_SIZE_INT) {
169 for (int i = 3; i < length; i++) {
265 totalLength += header.length;
[all...]
H A DClientSession.java89 totalLength += head.length;
102 // handle the length and 0x80.
108 System.arraycopy(head, 0, requestPacket, 4, head.length);
112 if ((requestPacket.length + 3) > ObexHelper.MAX_PACKET_SIZE_INT) {
205 if ((head.length + 3) > maxPacketSize) {
315 totalLength += head.length;
347 System.arraycopy(head, 0, packet, 2, head.length);
410 //check header length with local max size
412 if ((head.length + 3) > ObexHelper.MAX_PACKET_SIZE_INT) {
426 out.write((byte)((head.length
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DEntropyMixerTest.java34 assertEquals(0, FileUtils.readTextFile(file, 0, null).length());
39 assertTrue(FileUtils.readTextFile(file, 0, null).length() > 0);
/frameworks/av/drm/libdrmframework/plugins/passthru/src/
H A DDrmPassthruPlugIn.cpp66 charValue = new char[value.length() + 1];
67 strncpy(charValue, value.string(), value.length());
68 charValue[value.length()] = '\0';
150 int length = dataString.length(); local
152 data = new char[length];
153 memcpy(data, dataString.string(), length);
155 DrmBuffer(data, length), drmInfoRequest->getMimeType());
222 if (NULL != inputData && 0 < inputData->length) {
223 int length local
237 onOpenDecryptSession( int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length) argument
[all...]
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DNativeFrame.java113 if (ints.length * nativeIntSize() > getFormat().getSize()) {
115 "NativeFrame cannot hold " + ints.length + " integers. (Can only hold " +
130 if (floats.length * nativeFloatSize() > getFormat().getSize()) {
132 "NativeFrame cannot hold " + floats.length + " floats. (Can only hold " +
147 public void setData(ByteBuffer buffer, int offset, int length) { argument
150 if ((length + offset) > buffer.limit()) {
151 throw new RuntimeException("Offset and length exceed buffer size in native setData: " +
152 (length + offset) + " bytes given, but only " + buffer.limit() +
154 } else if (getFormat().getSize() != length) {
157 length
244 setNativeData(byte[] data, int offset, int length) argument
[all...]
/frameworks/base/services/java/com/android/server/
H A DNativeDaemonEvent.java127 if (parsed.length < 2) {
136 skiplength = parsed[0].length() + 1;
143 if (parsed.length < 3) {
148 skiplength += parsed[1].length() + 1;
184 if (n > mParsed.length) return null;
192 final int length = rawEvent.length();
202 while (current < length) {
217 if (wordEnd == -1) wordEnd = length;
219 current += word.length();
[all...]

Completed in 1790 milliseconds

1234567891011>>