Searched refs:length (Results 126 - 150 of 2569) sorted by relevance

1234567891011>>

/frameworks/base/tests/SharedLibrary/client/src/com/google/android/test/lib_client/
H A DActivityMain.java37 if (animals == null || animals.length != expectedAnimals.length) {
38 throw new AssertionError("Animal list from shared library is null or wrong length.");
41 for (int i = 0; i < expectedAnimals.length; i++) {
/frameworks/minikin/libs/minikin/
H A DMinikinInternal.h68 unsigned int length = 0; local
69 hb_blob_get_data(mBlob, &length);
70 return (size_t)length;
/frameworks/native/opengl/tools/glgen/stubs/gles11/
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 )
26 java.nio.IntBuffer length,
32 // C function void glGetTransformFeedbackVarying ( GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name )
38 java.nio.IntBuffer length,
44 // C function void glGetTransformFeedbackVarying ( GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name )
55 // 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
22 glGetTransformFeedbackVarying( int program, int index, int bufsize, java.nio.IntBuffer length, java.nio.IntBuffer size, java.nio.IntBuffer type, byte name ) argument
34 glGetTransformFeedbackVarying( int program, int index, int bufsize, java.nio.IntBuffer length, java.nio.IntBuffer size, java.nio.IntBuffer type, java.nio.ByteBuffer name ) argument
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 )
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 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 )
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
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/anqp/eap/
H A DInnerAuthEAP.java15 public InnerAuthEAP(int length, ByteBuffer payload) throws ProtocolException { argument
16 if (length != 1) {
17 throw new ProtocolException("Bad length: " + 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/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/content/pm/
H A DSignature.java65 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/security/keymaster/
H A DExportResult.java36 public ExportResult[] newArray(int length) {
37 return new ExportResult[length];
H A DKeymasterBlob.java37 public KeymasterBlob[] newArray(int length) {
38 return new KeymasterBlob[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/core/java/com/android/internal/alsa/
H A DLineTokenizer.java33 int len = line.length();
46 int len = line.length();
/frameworks/base/packages/Shell/tests/src/com/android/shell/
H A DUtilitiesTest.java27 for (int i = 0; i < validChars.length(); i++) {
35 for (int i = 0; i < validChars.length(); i++) {
/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/obex/javax/obex/
H A DServerSession.java138 int length = mInput.read();
139 length = (length << 8) + mInput.read();
140 for (int i = 3; i < length; i++) {
169 int length = mInput.read();
170 length = (length << 8) + mInput.read();
171 if (length > ObexHelper.getMaxRxPacketSize(mTransport)) {
174 for (int i = 3; i < length; i++) {
272 totalLength += header.length;
[all...]
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DNativeFrame.java111 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/tests/coretests/src/android/text/method/
H A DWordIteratorTest.java44 wordIterator.setCharSequence(text, 0, text.length());
46 wordIterator.setCharSequence(text, text.length(), text.length());
52 wordIterator.setCharSequence(text, 0, text.length());
60 wordIterator.preceding(text.length() + 1);
78 wordIterator.setCharSequence(text, 0, text.length());
86 wordIterator.following(text.length() + 1);
97 assertEquals(text.length(), wordIterator.following(text.indexOf('j')));
98 assertEquals(BreakIterator.DONE, wordIterator.following(text.length()));
104 wordIterator.setCharSequence(text, 0, text.length());
[all...]
/frameworks/compile/slang/tests/P_reduce_general_inputs/
H A DScriptC_reduce_general_inputs.java.expect128 Allocation ain1 = Allocation.createSized(mRSLocal, __F16, in1.length);
136 if (in1.length != in2.length) {
137 throw new RSRuntimeException("Array length mismatch between parameters \"in1\" and \"in2\"!");
139 Allocation ain2 = Allocation.createSized(mRSLocal, __F16, in2.length);
192 Allocation ain1 = Allocation.createSized(mRSLocal, __F16, in1.length);
200 if (in1.length != in2.length) {
201 throw new RSRuntimeException("Array length mismatch between parameters \"in1\" and \"in2\"!");
203 Allocation ain2 = Allocation.createSized(mRSLocal, __F16, in2.length);
[all...]
/frameworks/base/core/java/android/hardware/location/
H A DContextHubMessage.java62 return Arrays.copyOf(mData, mData.length);
89 mData = Arrays.copyOf(data, data.length);
102 mData = Arrays.copyOf(data, data.length);
120 out.writeInt(mData.length);
/frameworks/base/core/java/android/os/
H A DMemoryFile.java44 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/util/
H A DSpline.java95 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...]

Completed in 8913 milliseconds

1234567891011>>