Searched refs:len (Results 1 - 25 of 195) sorted by relevance

12345678

/packages/apps/Camera2/src/com/android/camera/exif/
H A DByteBufferInputStream.java39 public int read(byte[] bytes, int off, int len) { argument
44 len = Math.min(len, mBuf.remaining());
45 mBuf.get(bytes, off, len);
46 return len;
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
H A DByteBufferInputStream.java39 public int read(byte[] bytes, int off, int len) { argument
44 len = Math.min(len, mBuf.remaining());
45 mBuf.get(bytes, off, len);
46 return len;
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/exif/
H A DByteBufferInputStream.java39 public int read(byte[] bytes, int off, int len) { argument
44 len = Math.min(len, mBuf.remaining());
45 mBuf.get(bytes, off, len);
46 return len;
/packages/apps/Messaging/src/com/android/messaging/util/exif/
H A DByteBufferInputStream.java39 public int read(byte[] bytes, int off, int len) { argument
44 len = Math.min(len, mBuf.remaining());
45 mBuf.get(bytes, off, len);
46 return len;
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/util/
H A DPartialInputStream.java50 public int read(byte b[], int off, int len) throws IOException { argument
51 len = Math.min(len, getBytesLeft());
52 return super.read(b, off, len); //To change body of overridden methods use File | Settings | File Templates.
/packages/apps/Gallery2/jni/filters/
H A Dkmeans.cc49 int len = swidth * sheight * 4; local
58 runKMeans<unsigned char, int>(k, finalCentroids, small_ds, len, dimension,
62 len = lwidth * lheight * 4;
67 runKMeansWithPicks<unsigned char, int>(k, nextCentroids, large_ds, len,
70 len = width * height * 4;
73 applyCentroids<unsigned char, int>(k, nextCentroids, dst, len, dimension, stride);
H A Dexposure.c25 int len = width * height * 4; local
29 for (i = 0; i < len; i+=4)
H A Dhighlight.c26 int len = width * height * 4; local
30 for (i = 0; i < len; i+=4)
H A Dkmeans.h26 inline void sum(T values[], int len, int dimension, int stride, N dst[]) { argument
32 for (x = 0; x < len; x+= stride) {
88 void initialPickHeuristicRandom(int k, T values[], int len, int dimension, int stride, T dst[], argument
91 num_vals = len / stride;
141 int calculateNewCentroids(int k, T values[], int len, int dimension, int stride, T oldCenters[], argument
156 for (x = 0; x < len; x+=stride) {
179 void runKMeansWithPicks(int k, T finalCentroids[], T values[], int len, int dimension, int stride, argument
194 ret = calculateNewCentroids<T, N>(k, values, len, dimension, stride, c1, c2);
209 void runKMeans(int k, T finalCentroids[], T values[], int len, int dimension, int stride, argument
213 initialPickHeuristicRandom<T>(k, values, len, dimensio
223 applyCentroids(int k, T centroids[], T values[], int len, int dimension, int stride) argument
[all...]
H A Dcontrast.c45 int len = width * height * 4; local
49 for (i = 0; i < len; i+=4) {
H A Dshadows.c34 int len = width * height * 4; local
43 for (i = 0; i < len; i+=4)
/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/
H A DCountingOutputStream.java65 * @param len the maximum number of bytes to write
69 public void write(byte[] b, int off, int len) throws IOException { argument
70 count += len;
71 super.write(b, off, len);
H A DTeeOutputStream.java58 * @param len The number of bytes to write
61 public synchronized void write(byte[] b, int off, int len) throws IOException { argument
62 super.write(b, off, len);
63 this.branch.write(b, off, len);
H A DNullOutputStream.java42 * @param len The number of bytes to write
44 public void write(byte[] b, int off, int len) { argument
H A DThresholdingOutputStream.java116 * Writes <code>len</code> bytes from the specified byte array starting at
121 * @param len The number of bytes to write.
125 public void write(byte b[], int off, int len) throws IOException argument
127 checkThreshold(len);
128 getStream().write(b, off, len);
129 written += len;
H A DByteArrayOutputStream.java137 * @param len The number of bytes to write
140 public void write(byte[] b, int off, int len) { argument
143 || (len < 0)
144 || ((off + len) > b.length)
145 || ((off + len) < 0)) {
147 } else if (len == 0) {
151 int newcount = count + len;
152 int remaining = len;
156 System.arraycopy(b, off + len - remaining, currentBuffer, inBufferPos, part);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DContactsDictionaryUtils.java31 public static int getWordEndPosition(final String string, final int len, argument
35 for (end = startIndex + 1; end < len; end += Character.charCount(cp)) {
/packages/apps/Launcher3/
H A Dupdate_gallery_files.py44 if len(sys.argv) != 2:
H A Dupdate_system_wallpaper_cropper.py47 if len(sys.argv) != 2:
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
H A Dndfdic.c74 static NJ_UINT16 convert_to_yomi(NJ_DIC_HANDLE hdl, NJ_UINT8 *index, NJ_UINT16 len, NJ_CHAR *yomi, NJ_UINT16 size);
151 static NJ_UINT16 convert_to_yomi(NJ_DIC_HANDLE hdl, NJ_UINT8 *index, NJ_UINT16 len, NJ_CHAR *yomi, NJ_UINT16 size) argument
174 for (i = 0; i < len; i++) {
360 NJ_UINT16 len; local
377 len = DATA_YOMI_SIZE(data)/sizeof(NJ_CHAR);
380 if (size < ((len + NJ_TERM_LEN) * sizeof(NJ_CHAR))) {
384 for (j = 0; j < len; j++) {
392 len = convert_to_yomi(loc->handle, area, DATA_YOMI_SIZE(data), stroke, size);
395 if (size < ((len + NJ_TERM_LEN) * sizeof(NJ_CHAR))) {
399 return len;
407 NJ_UINT16 len, j; local
[all...]
H A Dnecode.c39 NJ_INT16 nje_convert_hira_to_kata(NJ_CHAR *hira, NJ_CHAR *kata, NJ_UINT16 len) argument
46 while (pnt < len) {
/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/
H A DAutoCloseInputStream.java106 * @param len maximum number of bytes to read
110 public int read(byte[] b, int off, int len) throws IOException { argument
111 int n = in.read(b, off, len);
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/
H A DRootInputStream.java90 public int read(byte[] b, int off, int len) throws IOException { argument
95 int n = is.read(b, off, len);
/packages/services/Telephony/src/org/apache/james/mime4j/
H A DRootInputStream.java90 public int read(byte[] b, int off, int len) throws IOException { argument
95 int n = is.read(b, off, len);
/packages/apps/Exchange/src/com/android/exchange/adapter/
H A DBase64InputStream.java130 private void decodeAndEnqueue(int len) { argument
138 // for the most common case of len==4
139 if (len == 4) {
145 } else if (len == 3) {
150 } else { // len == 2

Completed in 510 milliseconds

12345678