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

1234567891011>>

/frameworks/compile/mclinker/lib/ADT/
H A DStringEntry.cpp43 size_t length = strlen(pVal); local
44 char* data = (char*)malloc(length+1);
46 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;
H A DCharsetUtils.java176 // Bail quickly if the length doesn't match.
180 int length = charsetName.length();
181 if (length != 4 && length != 9) {
H A DStringBuilderPrinter.java37 int len = x.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);
H A DAssetTest.java41 while ((readCount = is.read(buffer, 0, buffer.length)) > 0) {
51 readCount = is.read(buffer, 0, buffer.length);
55 readCount = is.read(buffer, buffer.length, 0);
56 assertEquals("Reading end of buffer length 0: expected readCount=0 but got " + readCount,
71 assertEquals(1, files.length);
/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
H A Dpvmp3_crc.h91 uint32 length,
/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/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/compile/libbcc/runtime/lib/
H A Denable_execute_stack.c49 size_t length = endPage - startPage; local
50 (void) mprotect((void *)startPage, length, PROT_READ | PROT_WRITE | PROT_EXEC);
/frameworks/native/opengl/tools/glgen/stubs/gles11/
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
/frameworks/base/obex/javax/obex/
H A DServerOperation.java153 int length = in.read();
154 length = (length << 8) + in.read();
157 * Determine if the packet length is larger than this device can receive
159 if (length > ObexHelper.MAX_PACKET_SIZE_INT) {
167 if (length > 3) {
168 byte[] data = new byte[length - 3];
171 while (bytesReceived != data.length) {
172 bytesReceived += in.read(data, bytesReceived, data.length - bytesReceived);
200 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++) {
261 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/core/java/android/ddm/
H A DDdmHandleHello.java63 new Chunk(ChunkHandler.type("TEST"), data, 1, data.length-2);
124 + vmIdent.length()*2 + appName.length()*2);
128 out.putInt(vmIdent.length());
129 out.putInt(appName.length());
157 int size = 4 + 4 * features.length;
158 for (int i = features.length-1; i >= 0; i--)
159 size += features[i].length() * 2;
163 out.putInt(features.length);
164 for (int i = features.length
[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...]
/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/av/drm/libdrmframework/plugins/passthru/src/
H A DDrmPassthruPlugIn.cpp66 charValue = new char[value.length() + 1];
67 strncpy(charValue, value.string(), value.length());
149 int length = dataString.length(); local
151 data = new char[length];
152 memcpy(data, dataString.string(), length);
154 DrmBuffer(data, length), drmInfoRequest->getMimeType());
221 if (NULL != inputData && 0 < inputData->length) {
222 int length = inputData->length; local
236 onOpenDecryptSession( int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length) argument
[all...]
/frameworks/base/core/java/android/os/
H A DNullVibrator.java47 if (repeat >= pattern.length) {
/frameworks/base/core/java/android/speech/srec/
H A DMicrophoneInputStream.java66 return AudioRecordRead(mAudioRecord, b, 0, b.length);
70 public int read(byte[] b, int offset, int length) throws IOException { argument
73 return AudioRecordRead(mAudioRecord, b, offset, length);
107 private static native int AudioRecordRead(int audioRecord, byte[] b, int offset, int length) throws IOException; argument
/frameworks/base/graphics/java/android/graphics/
H A DEmbossMaskFilter.java30 if (direction.length < 3) {

Completed in 972 milliseconds

1234567891011>>