Searched refs:count (Results 1 - 25 of 360) sorted by relevance

1234567891011>>

/frameworks/base/tests/CoreTests/android/core/
H A DLowLevelNetRunner.java24 private int count = 0; field in class:LowLevelNetRunner
30 count++;
34 * Decrement the run count. If this returns to zero notify any
38 count--;
39 if (count <= 0) {
/frameworks/base/core/tests/coretests/src/android/os/
H A DTraceTest.java43 int count = 0;
45 count = eMethod();
116 int count = 0;
118 count += bMethod();
121 count += cMethod();
124 count += dMethod(ii);
126 return count;
134 int count = 0;
136 count += cMethod();
138 return count;
[all...]
/frameworks/base/media/libstagefright/codecs/aacdec/
H A Dget_sbr_bitstream.cpp143 Int32 count; local
148 count = get9_n_lessbits(LEN_F_CNT, pInputStream);
149 if (count == 15)
152 count = esc_count + 14;
161 && (count < MAXSBRBYTES) && (count) && (sbrBitStream->NrElements < MAXNRELEMENTS))
165 sbrBitStream->sbrElement[sbrBitStream->NrElements].Payload = count;
167 for (i = 1 ; i < count ; i++)
177 pInputStream->usedBits += (count - 1) * LEN_BYTE;
H A Dget_dse.cpp163 UInt count; local
182 * get count ( 8 bits)
184 count = get9_n_lessbits(LEN_D_CNT, pInputStream);
187 * if count == 255, its value it is incremented by a
191 if (count == (1 << LEN_D_CNT) - 1)
194 count += esc_count;
205 for (i = count; i != 0; i--)
/frameworks/base/core/java/android/text/
H A DTextWatcher.java26 * the <code>count</code> characters beginning at <code>start</code>
32 int count, int after);
35 * the <code>count</code> characters beginning at <code>start</code>
40 public void onTextChanged(CharSequence s, int start, int before, int count); argument
31 beforeTextChanged(CharSequence s, int start, int count, int after) argument
H A DAndroidCharacter.java33 * Fill in the first <code>count</code> bytes of <code>dest</code> with the
34 * directionalities from the first <code>count</code> chars of <code>src</code>.
39 int count);
55 * Fill the first <code>count</code> bytes of <code>dest</code> with the
56 * East Asian Width from <code>count</code> chars of <code>src</code>
66 * @param count maximum number of characters to measure
70 int count, byte[] dest);
79 * @param count maximum number of characters to mirror
82 public native static boolean mirror(char[] text, int start, int count); argument
38 getDirectionalities(char[] src, byte[] dest, int count) argument
69 getEastAsianWidths(char[] src, int start, int count, byte[] dest) argument
/frameworks/base/media/java/android/drm/mobile1/
H A DDrmConstraintInfo.java26 * The constraint of count.
28 private int count; field in class:DrmConstraintInfo
49 count = -1;
56 * Get the count constraint.
58 * @return the count or -1 if no limit.
61 return count;
/frameworks/base/awt/org/apache/harmony/x/imageio/stream/
H A DRandomAccessMemoryCache.java67 public void putData(byte[] buffer, int offset, int count, long pos) { argument
68 if (count > buffer.length - offset || count < 0 || offset < 0) {
71 if (count == 0){
75 long lastPos = pos + count - 1;
80 while (count > 0) {
83 int toCopy = Math.min(BLOCK_SIZE - blockOffset, count);
86 count -= toCopy;
100 public int getData(byte[] buffer, int offset, int count, long pos) { argument
101 if (count > buffe
167 appendData(InputStream is, int count) argument
205 getData(OutputStream os, int count, long pos) argument
[all...]
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothOutputStream.java60 * Writes {@code count} bytes from the byte array {@code buffer} starting
67 * @param count
73 * if {@code offset < 0} or {@code count < 0}, or if
74 * {@code offset + count} is bigger than the length of
78 public void write(byte[] b, int offset, int count) throws IOException { argument
82 if ((offset | count) < 0 || count > b.length - offset) {
85 mSocket.write(b, offset, count);
/frameworks/base/core/java/android/content/
H A DContentProviderResult.java25 * to have exactly one of {@link #uri} or {@link #count} set.
29 public final Integer count; field in class:ContentProviderResult
34 this.count = null;
37 public ContentProviderResult(int count) { argument
38 this.count = count;
45 count = source.readInt();
48 count = null;
56 dest.writeInt(count);
82 return "ContentProviderResult(count
[all...]
/frameworks/base/core/java/android/content/res/
H A DAssetFileDescriptor.java213 public int read(byte[] buffer, int offset, int count) throws IOException { argument
216 if (count > mRemaining) count = (int)mRemaining;
217 int res = super.read(buffer, offset, count);
222 return super.read(buffer, offset, count);
229 int count = buffer.length;
230 if (count > mRemaining) count = (int)mRemaining;
231 int res = super.read(buffer, 0, count);
240 public long skip(long count) throw argument
325 read(byte[] buffer, int offset, int count) argument
335 skip(long count) argument
358 write(byte[] buffer, int offset, int count) argument
[all...]
/frameworks/base/core/java/android/text/format/
H A DDateFormat.java435 int count;
439 for (int i = 0; i < len; i += count) {
442 count = 1;
446 count = appendQuotedText(s, i, len);
451 while ((i + count < len) && (s.charAt(i + count) == c)) {
452 count++;
468 replacement = zeroPad(inDate.get(Calendar.DATE), count);
474 count < 4 ?
485 replacement = zeroPad(temp, count);
530 getMonthString(Calendar inDate, int count) argument
543 getTimeZoneString(Calendar inDate, int count) argument
556 formatZoneOffset(int offset, int count) argument
575 getYearString(Calendar inDate, int count) argument
[all...]
/frameworks/base/libs/rs/java/ImageProcessing/res/raw/
H A Dthreshold.rs40 int count = Params->inWidth * Params->inHeight;
44 for (i = 0; i < count; i++) {
61 sendToClient(&count, 1, 4, 0);
/frameworks/base/cmds/installd/
H A Dinstalld.c122 static int readx(int s, void *_buf, int count) argument
126 if (count < 0) return -1;
127 while (n < count) {
128 r = read(s, buf + n, count - n);
143 static int writex(int s, const void *_buf, int count) argument
147 if (count < 0) return -1;
148 while (n < count) {
149 r = write(s, buf + n, count - n);
171 unsigned short count; local
214 count
226 int lsocket, s, count; local
250 unsigned short count; local
[all...]
/frameworks/base/obex/javax/obex/
H A DPrivateOutputStream.java97 public synchronized void write(byte[] buffer, int offset, int count) throws IOException { argument
99 int remainLength = count;
104 if ((offset | count) < 0 || count > buffer.length - offset) {
110 if (count < mMaxPacketSize) {
111 mArray.write(buffer, offset, count);
116 remainLength = count - offset1;
/frameworks/base/core/java/android/os/
H A DMemoryFile.java51 int srcOffset, int destOffset, int count, boolean isUnpinned) throws IOException;
53 int srcOffset, int destOffset, int count, boolean isUnpinned) throws IOException;
220 * @param count number of bytes to read.
224 public int readBytes(byte[] buffer, int srcOffset, int destOffset, int count) argument
229 if (destOffset < 0 || destOffset > buffer.length || count < 0
230 || count > buffer.length - destOffset
232 || count > mLength - srcOffset) {
235 return native_read(mFD, mAddress, buffer, srcOffset, destOffset, count, mAllowPurging);
245 * @param count number of bytes to write.
248 public void writeBytes(byte[] buffer, int srcOffset, int destOffset, int count) argument
50 native_read(FileDescriptor fd, int address, byte[] buffer, int srcOffset, int destOffset, int count, boolean isUnpinned) argument
52 native_write(FileDescriptor fd, int address, byte[] buffer, int srcOffset, int destOffset, int count, boolean isUnpinned) argument
375 read(byte buffer[], int offset, int count) argument
408 write(byte buffer[], int offset, int count) argument
[all...]
/frameworks/base/media/libdrm/mobile2/src/util/ustl-1.0/
H A Dualgobase.h74 inline OutputIterator copy_n (InputIterator first, size_t count, OutputIterator result) argument
76 for (; count; --count, ++result, ++first)
120 /// [first, first+count). That is, for every iterator i in [first, first+count),
121 /// it performs the assignment *i = value. The return value is first + count.
125 inline OutputIterator fill_n (OutputIterator first, size_t count, const T& value) argument
127 for (; count; --count, ++first)
133 extern "C" void copy_n_fast (const void* src, size_t count, voi
135 copy_n_fast(const void* src, size_t count, void* dest) argument
173 unrolled_copy(const T* first, size_t count, T* result) argument
187 unrolled_fill(T* result, size_t count, T value) argument
193 unrolled_fill(uint8_t* result, size_t count, uint8_t value) argument
195 unrolled_fill(uint16_t* result, size_t count, uint16_t value) argument
197 unrolled_fill(uint32_t* result, size_t count, uint32_t value) argument
199 unrolled_fill(float* result, size_t count, float value) argument
[all...]
/frameworks/base/test-runner/src/junit/textui/
H A DResultPrinter.java55 protected void printDefects(Enumeration booBoos, int count, String type) { argument
56 if (count == 0) return;
57 if (count == 1)
58 getWriter().println("There was " + count + " " + type + ":");
60 getWriter().println("There were " + count + " " + type + "s:");
66 public void printDefect(TestFailure booBoo, int count) { // only public for testing purposes argument
67 printDefectHeader(booBoo, count);
71 protected void printDefectHeader(TestFailure booBoo, int count) { argument
74 getWriter().print(count + ") " + booBoo.failedTest());
/frameworks/base/awt/javax/imageio/stream/
H A DMemoryCacheImageInputStream.java62 int count = (int)(streamPos - ramc.length() + 1);
63 int bytesAppended = ramc.appendData(is, count);
65 if (bytesAppended < count) {
82 int count = (int)(streamPos - ramc.length() + len);
83 ramc.appendData(is, count);
/frameworks/base/core/java/android/view/animation/
H A DAnimationSet.java93 final int count = mAnimations.size();
96 for (int i = 0; i < count; i++) {
189 final int count = mAnimations.size();
192 for (int i = 0; i < count; i++) {
202 final int count = mAnimations.size();
205 for (int i = 0; i < count; i++) {
218 int count = animations.size();
220 for (int i = 0; i < count; i++) {
234 final int count = animations.size();
241 for (int i = 0; i < count;
[all...]
/frameworks/base/core/tests/coretests/src/android/content/
H A DMemoryFileProviderTest.java41 int count = in.read(buf);
42 assertEquals(buf.length, count);
60 int count = in.read(buf);
61 assertEquals(buf.length, count);
75 int count = in.read(buf);
76 assertEquals(buf.length, count);
/frameworks/base/media/libdrm/mobile2/src/dcf/
H A DDrmRawContent.cpp22 uint32_t count = inRawData.stream_size(); local
24 if (count <= MAX_PIECE_LEN)
26 uint8_t* data = new uint8_t[count];
33 inRawData.read(data,count);
47 if(dcf >= (data + count))
70 if(dcf >= (data + count))
/frameworks/base/include/utils/
H A DFlattenable.h42 int fds[], size_t count) const = 0;
52 int fds[], size_t count) = 0;
/frameworks/base/services/java/com/android/server/
H A DDemoDataSet.java62 int count = files.length;
64 if (count == 0) {
69 for (int i = 0; i < count; i++)
116 int count = 0;
119 count = in.read(buf, 0, size);
120 if (count > 0) {
121 out.write(buf, 0, count);
123 } while (count > 0);
/frameworks/base/location/java/com/android/internal/location/
H A DGpsXtraDownloader.java59 int count = 0;
63 if (server1 != null) count++;
64 if (server2 != null) count++;
65 if (server3 != null) count++;
67 if (count == 0) {
71 mXtraServers = new String[count];
72 count = 0;
73 if (server1 != null) mXtraServers[count++] = server1;
74 if (server2 != null) mXtraServers[count++] = server2;
75 if (server3 != null) mXtraServers[count
[all...]

Completed in 481 milliseconds

1234567891011>>