/frameworks/base/core/tests/coretests/src/android/content/ |
H A D | MemoryFileProviderTest.java | 39 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 D | AssetTest.java | 41 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 D | HeapTest.java | 50 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/av/media/libstagefright/codecs/mp3dec/src/ |
H A D | pvmp3_crc.cpp | 56 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 D | pvmp3_crc.h | 91 uint32 length,
|
/frameworks/base/core/java/android/alsa/ |
H A D | LineTokenizer.java | 33 int len = line.length(); 46 int len = line.length();
|
/frameworks/base/core/java/android/content/pm/ |
H A D | Signature.java | 65 if (certificateChain.length > 1) { 66 mCertificateChain = Arrays.copyOfRange(certificateChain, 1, certificateChain.length); 88 * @throws IllegalArgumentException when signature is odd-length 92 final int N = input.length; 129 final int N = sig.length; 131 char[] text = existingArray == null || N2 > existingArray.length 161 byte[] bytes = new byte[mSignature.length]; 162 System.arraycopy(mSignature, 0, bytes, 0, mSignature.length); 192 Signature[] chain = new Signature[1 + mCertificateChain.length]; 254 return (a.length [all...] |
/frameworks/base/core/java/android/webkit/ |
H A D | PluginData.java | 27 * 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 D | ServerOperation.java | 155 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 D | ServerSession.java | 133 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 D | ClientSession.java | 89 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 D | EntropyMixerTest.java | 34 assertEquals(0, FileUtils.readTextFile(file, 0, null).length()); 39 assertTrue(FileUtils.readTextFile(file, 0, null).length() > 0);
|
/frameworks/native/opengl/tools/glgen/stubs/gles11/ |
H A D | glGetActiveAttrib.java | 1 // 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 ) 24 java.nio.IntBuffer length, 30 // C function void glGetActiveAttrib ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name ) 41 // 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 20 glGetActiveAttrib( int program, int index, int bufsize, java.nio.IntBuffer length, java.nio.IntBuffer size, java.nio.IntBuffer type, byte name ) argument
|
H A D | glGetActiveUniform.java | 1 // 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 ) 24 java.nio.IntBuffer length, 29 // C function void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name ) 40 // 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 20 glGetActiveUniform( int program, int index, int bufsize, java.nio.IntBuffer length, java.nio.IntBuffer size, java.nio.IntBuffer type, byte name ) argument
|
H A D | glGetTransformFeedbackVarying.java | 1 // 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/drm/libdrmframework/plugins/passthru/src/ |
H A D | DrmPassthruPlugIn.cpp | 66 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 D | NativeFrame.java | 111 if (ints.length * nativeIntSize() > getFormat().getSize()) { 113 "NativeFrame cannot hold " + ints.length + " integers. (Can only hold " + 128 if (floats.length * nativeFloatSize() > getFormat().getSize()) { 130 "NativeFrame cannot hold " + floats.length + " floats. (Can only hold " + 145 public void setData(ByteBuffer buffer, int offset, int length) { argument 148 if ((length + offset) > buffer.limit()) { 149 throw new RuntimeException("Offset and length exceed buffer size in native setData: " + 150 (length + offset) + " bytes given, but only " + buffer.limit() + 152 } else if (getFormat().getSize() != length) { 155 length 242 setNativeData(byte[] data, int offset, int length) argument [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
H A D | ArrayUtils.java | 77 * @param length the number of bytes to check 80 public static boolean equals(byte[] array1, byte[] array2, int length) { argument 81 if (length < 0) { 88 if (array1 == null || array2 == null || array1.length < length || array2.length < length) { 91 for (int i = 0; i < length; i++) { 127 return array == null || array.length == 0; 134 return array == null || array.length [all...] |
/frameworks/base/core/java/android/os/ |
H A D | MemoryFile.java | 44 private static native FileDescriptor native_open(String name, int length) throws IOException; argument 46 private static native long native_mmap(FileDescriptor fd, int length, int mode) argument 48 private static native void native_munmap(long addr, int length) throws IOException; argument 59 private int mLength; // total length of our ashmem region 66 * @param length of the memory file in bytes, must be non-negative. 69 public MemoryFile(String name, int length) throws IOException { argument 70 mLength = length; 71 if (length >= 0) { 72 mFD = native_open(name, length); 74 throw new IOException("Invalid length 140 public int length() { method in class:MemoryFile [all...] |
/frameworks/base/core/java/android/speech/srec/ |
H A D | MicrophoneInputStream.java | 66 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(long audioRecord, byte[] b, int offset, int length) throws IOException; argument
|
/frameworks/base/core/java/android/util/ |
H A D | Spline.java | 95 if (x == null || x.length < 2) { 99 for (int i = 1; i < x.length; i++) { 110 if (x == null || x.length < 2) { 114 for (int i = 1; i < x.length; i++) { 130 if (x == null || y == null || x.length != y.length || x.length < 2) { 132 + "points and the arrays must be of equal length."); 135 final int n = x.length; 185 final int n = mX.length; [all...] |
H A D | StringBuilderPrinter.java | 37 int len = x.length();
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | EmbossMaskFilter.java | 30 if (direction.length < 3) {
|
/frameworks/base/media/java/android/media/ |
H A D | MediaActionSound.java | 102 mSoundIds = new int[SOUND_FILES.length]; 103 for (int i = 0; i < mSoundIds.length; i++) { 122 if (soundName < 0 || soundName >= SOUND_FILES.length) { 163 if (soundName < 0 || soundName >= SOUND_FILES.length) {
|
/frameworks/base/tools/layoutlib/create/tests/com/android/tools/layoutlib/create/dataclass/ |
H A D | ClassWithNative_Delegate.java | 28 if (o != null && o.length > 0) {
|