Searched refs:length (Results 51 - 75 of 967) sorted by relevance

1234567891011>>

/frameworks/base/awt/java/awt/image/
H A DKernel.java77 if (data.length < dataLength) {
119 data = new float[this.data.length];
121 System.arraycopy(this.data, 0, data, 0, this.data.length);
/frameworks/base/awt/javax/imageio/plugins/jpeg/
H A DJPEGQTable.java112 if (table.length != SIZE) {
113 throw new IllegalArgumentException("illegal table size: " + table.length);
142 for (int i = 0; i < theTable.length; i++) {
H A DJPEGHuffmanTable.java121 * increasing code length.
130 if (lengths.length > 16) { // According to the spec
133 if (values.length > 256) { // According to the spec
136 for (short length : lengths) {
137 if (length < 0) {
149 this.lengths = new short[lengths.length];
150 this.values = new short[values.length];
151 System.arraycopy(lengths, 0, this.lengths, 0, lengths.length);
152 System.arraycopy(values, 0, this.values, 0, values.length);
158 * @return the array of short values representing the length value
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DLinearGradient.java34 if (colors.length < 2) {
37 if (positions != null && colors.length != positions.length) {
38 throw new IllegalArgumentException("color and position arrays must be of equal length");
H A DPointF.java77 public final float length() { method in class:PointF
78 return length(x, y);
84 public static float length(float x, float y) { method in class:PointF
H A DRadialGradient.java36 if (colors.length < 2) {
39 if (positions != null && colors.length != positions.length) {
40 throw new IllegalArgumentException("color and position arrays must be of equal length");
H A DColorMatrixColorFilter.java39 if (array.length < 20) {
H A DEmbossMaskFilter.java30 if (direction.length < 3) {
/frameworks/base/core/java/android/util/
H A DStateSet.java48 return stateSetOrSpec.length == 0 || stateSetOrSpec[0] == 0;
62 int stateSpecSize = stateSpec.length;
63 int stateSetSize = stateSet.length;
119 int stateSpecSize = stateSpec.length;
142 if (states.length == newSize) {
154 int count = states.length;
H A DCharsetUtils.java152 // Bail quickly if the length doesn't match.
156 int length = charsetName.length();
157 if (length != 4 && length != 9) {
H A DStringBuilderPrinter.java37 int len = x.length();
/frameworks/base/core/java/com/android/internal/util/
H A DArrayUtils.java79 * @param length the number of bytes to check
82 public static boolean equals(byte[] array1, byte[] array2, int length) { argument
86 if (array1 == null || array2 == null || array1.length < length || array2.length < length) {
89 for (int i = 0; i < length; i++) {
/frameworks/base/core/tests/coretests/src/android/content/
H A DMemoryFileProviderTest.java38 byte[] buf = new byte[MemoryFileProvider.TEST_BLOB.length];
42 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/core/java/android/net/http/
H A DCertificateValidatorCache.java81 if (certificates != null && certificates.length != 0) {
138 if (domain != null && domain.length() != 0) {
139 if (secureHash != null && secureHash.length != 0) {
167 if (domain != null && domain.length() != 0) {
168 if (secureHash != null && secureHash.length != 0) {
233 if (domain != null && 0 < domain.length()) {
240 int hashLength = secureHash.length;
242 if (hashLength == mHash.length) {
/frameworks/base/core/java/android/webkit/
H A DPluginData.java27 * the length of the body, the response headers, and the response
41 * The content length.
61 * @param length The length of the plugin content.
64 * @param length The HTTP response status code.
72 long length,
76 mContentLength = length;
95 * Returns the length of the plugin content.
97 * @return the length of the plugin content.
70 PluginData( InputStream stream, long length, Map<String, String[]> headers, int code) argument
/frameworks/base/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/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/services/tests/servicestests/src/com/android/server/
H A DEntropyServiceTest.java34 assertEquals(0, FileUtils.readTextFile(file, 0, null).length());
39 assertTrue(FileUtils.readTextFile(file, 0, null).length() > 0);
/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());
156 int size = 4 + 4 * features.length;
157 for (int i = features.length-1; i >= 0; i--)
158 size += features[i].length() * 2;
162 out.putInt(features.length);
163 for (int i = features.length
[all...]
/frameworks/base/awt/javax/imageio/stream/
H A DMemoryCacheImageInputStream.java61 if (streamPos >= ramc.length()) {
62 int count = (int)(streamPos - ramc.length() + 1);
81 if (streamPos >= ramc.length()) {
82 int count = (int)(streamPos - ramc.length() + len);
/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 int native_mmap(FileDescriptor fd, int length, int mode) argument
48 private static native void native_munmap(int addr, int length) throws IOException; argument
59 private int mLength; // total length of our ashmem region
67 * @param length of the memory file in bytes.
70 public MemoryFile(String name, int length) throws IOException { argument
71 mLength = length;
72 mFD = native_open(name, length);
73 mAddress = native_mmap(mFD, length, PROT_READ | PROT_WRITE);
85 * @param length Lengt
94 MemoryFile(FileDescriptor fd, int length, String mode) argument
163 public int length() { method in class:MemoryFile
[all...]
/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

Completed in 1311 milliseconds

1234567891011>>