Searched refs:count (Results 1 - 25 of 1592) 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/aidl/com/android/frameworks/coretests/aidl/
H A DIBpcTestAppCmdService.aidl20 void createSystemBinders(int count);
21 void releaseSystemBinders(int count);
23 void createTestBinders(int count);
24 void releaseTestBinders(int count);
/frameworks/base/libs/androidfw/tests/
H A DAsset_test.cpp24 const int32_t count = Asset::getGlobalCount(); local
26 EXPECT_EQ(count + 1, Asset::getGlobalCount());
28 EXPECT_EQ(count, Asset::getGlobalCount());
32 const int32_t count = Asset::getGlobalCount(); local
34 EXPECT_EQ(count + 1, Asset::getGlobalCount());
36 EXPECT_EQ(count, Asset::getGlobalCount());
/frameworks/base/core/java/android/text/
H A DTextDirectionHeuristic.java28 * @param count the length to check, must not be negative and not greater than
33 boolean isRtl(char[] array, int start, int count); argument
40 * @param count the length to check, must not be negative and not greater than
45 boolean isRtl(CharSequence cs, int start, int count); argument
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.java35 * Fill in the first <code>count</code> bytes of <code>dest</code> with the
36 * directionalities from the first <code>count</code> chars of <code>src</code>.
41 int count);
57 * Fill the first <code>count</code> bytes of <code>dest</code> with the
58 * East Asian Width from <code>count</code> chars of <code>src</code>
68 * @param count maximum number of characters to measure
72 int count, byte[] dest);
81 * @param count maximum number of characters to mirror
84 public native static boolean mirror(char[] text, int start, int count); argument
40 getDirectionalities(char[] src, byte[] dest, int count) argument
71 getEastAsianWidths(char[] src, int start, int count, byte[] dest) argument
/frameworks/support/compat/src/main/java/androidx/core/text/
H A DTextDirectionHeuristicCompat.java28 * @param count the length to check, must not be negative and not greater than
33 boolean isRtl(char[] array, int start, int count); argument
40 * @param count the length to check, must not be negative and not greater than
45 boolean isRtl(CharSequence cs, int start, int count); argument
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/java/
H A DUnsafeByteSequence.java32 private int count; field in class:UnsafeByteSequence
39 return count;
47 count = 0;
51 if (count + length >= bytes.length) {
52 byte[] newBytes = new byte[(count + length) * 2];
53 System.arraycopy(bytes, 0, newBytes, 0, count);
56 System.arraycopy(buffer, offset, bytes, count, length);
57 count += length;
61 if (count == bytes.length) {
62 byte[] newBytes = new byte[count *
[all...]
/frameworks/native/libs/input/tests/
H A DVelocityTracker_test.cpp139 size_t count = sizeof(values) / sizeof(Position); local
140 computeAndCheckVelocity(values, count, AMOTION_EVENT_AXIS_X, 1600);
150 size_t count = sizeof(values) / sizeof(Position); local
151 computeAndCheckVelocity(values, count, AMOTION_EVENT_AXIS_X, 0);
161 size_t count = sizeof(values) / sizeof(Position); local
162 computeAndCheckVelocity(values, count, AMOTION_EVENT_AXIS_X, 500);
189 size_t count = sizeof(values) / sizeof(Position); local
190 computeAndCheckVelocity(values, count, AMOTION_EVENT_AXIS_X, 623.577637);
191 computeAndCheckVelocity(values, count, AMOTION_EVENT_AXIS_Y, 8523.348633);
231 size_t count local
260 size_t count = sizeof(values) / sizeof(Position); local
288 size_t count = sizeof(values) / sizeof(Position); local
318 size_t count = sizeof(values) / sizeof(Position); local
344 size_t count = sizeof(values) / sizeof(Position); local
368 size_t count = sizeof(values) / sizeof(Position); local
391 size_t count = sizeof(values) / sizeof(Position); local
414 size_t count = sizeof(values) / sizeof(Position); local
433 size_t count = sizeof(values) / sizeof(Position); local
461 size_t count = sizeof(values) / sizeof(Position); local
491 size_t count = sizeof(values) / sizeof(Position); local
514 size_t count = sizeof(values) / sizeof(Position); local
544 size_t count = sizeof(values) / sizeof(Position); local
569 size_t count = sizeof(values) / sizeof(Position); local
598 size_t count = sizeof(values) / sizeof(Position); local
617 size_t count = sizeof(values) / sizeof(Position); local
636 size_t count = sizeof(values) / sizeof(Position); local
656 size_t count = sizeof(values) / sizeof(Position); local
[all...]
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DAdapterListUpdateCallback.java41 public void onInserted(int position, int count) { argument
42 mAdapter.notifyItemRangeInserted(position, count);
47 public void onRemoved(int position, int count) { argument
48 mAdapter.notifyItemRangeRemoved(position, count);
59 public void onChanged(int position, int count, Object payload) { argument
60 mAdapter.notifyItemRangeChanged(position, count, payload);
H A DSortedListAdapterCallback.java38 public void onInserted(int position, int count) { argument
39 mAdapter.notifyItemRangeInserted(position, count);
43 public void onRemoved(int position, int count) { argument
44 mAdapter.notifyItemRangeRemoved(position, count);
53 public void onChanged(int position, int count) { argument
54 mAdapter.notifyItemRangeChanged(position, count);
58 public void onChanged(int position, int count, Object payload) { argument
59 mAdapter.notifyItemRangeChanged(position, count, payload);
H A DListUpdateCallback.java27 * Called when {@code count} number of items are inserted at the given position.
30 * @param count The number of items that have been added.
32 void onInserted(int position, int count); argument
35 * Called when {@code count} number of items are removed from the given position.
38 * @param count The number of items which have been removed.
40 void onRemoved(int position, int count); argument
51 * Called when {@code count} number of items are updated at the given position.
54 * @param count The number of items which has changed.
56 void onChanged(int position, int count, @Nullable Object payload); argument
/frameworks/base/core/java/com/android/internal/midi/
H A DMidiEventScheduler.java39 public void onSend(byte[] msg, int offset, int count, long timestamp) argument
41 MidiEvent event = createScheduledEvent(msg, offset, count, timestamp);
54 public int count = 0; field in class:MidiEventScheduler.MidiEvent
57 private MidiEvent(int count) { argument
59 data = new byte[count];
62 private MidiEvent(byte[] msg, int offset, int count, long timestamp) { argument
64 data = new byte[count];
65 System.arraycopy(msg, offset, data, 0, count);
66 this.count = count;
82 createScheduledEvent(byte[] msg, int offset, int count, long timestamp) argument
[all...]
/frameworks/base/media/java/android/media/midi/
H A DMidiReceiver.java47 * May fail if count exceeds {@link #getMaxMessageSize}.
57 * @param count the number of bytes of MIDI data in the array to be processed
61 abstract public void onSend(byte[] msg, int offset, int count, long timestamp) argument
92 * Data will get split into multiple calls to {@link #onSend} if count exceeds
100 * @param count the number of bytes of MIDI data in the array to be sent
103 public void send(byte[] msg, int offset, int count) throws IOException { argument
105 send(msg, offset, count, 0L);
111 * Data will get split into multiple calls to {@link #onSend} if count exceeds
119 * @param count the number of bytes of MIDI data in the array to be sent
123 public void send(byte[] msg, int offset, int count, lon argument
[all...]
/frameworks/native/opengl/tools/glgen/stubs/gles11/
H A DglDrawElementsInstanced.java1 // C function void glDrawElementsInstanced ( GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instanceCount )
5 int count,
11 // C function void glDrawElementsInstanced ( GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instanceCount )
15 int count,
3 glDrawElementsInstanced( int mode, int count, int type, java.nio.Buffer indices, int instanceCount ) argument
13 glDrawElementsInstanced( int mode, int count, int type, int indicesOffset, int instanceCount ) argument
H A DglDrawElementsInstancedBaseVertex.java1 // C function void glDrawElementsInstancedBaseVertex ( GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instanceCount, GLint basevertex )
5 int count,
12 // C function void glDrawElementsInstancedBaseVertex ( GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instanceCount, GLint basevertex )
16 int count,
3 glDrawElementsInstancedBaseVertex( int mode, int count, int type, java.nio.Buffer indices, int instanceCount, int basevertex ) argument
14 glDrawElementsInstancedBaseVertex( int mode, int count, int type, int indicesOffset, int instanceCount, int basevertex ) argument
/frameworks/base/media/mca/filterfw/java/android/filterfw/format/
H A DPrimitiveFormat.java28 public static MutableFrameFormat createByteFormat(int count, int target) { argument
29 return createFormat(FrameFormat.TYPE_BYTE, count, target);
32 public static MutableFrameFormat createInt16Format(int count, int target) { argument
33 return createFormat(FrameFormat.TYPE_INT16, count, target);
36 public static MutableFrameFormat createInt32Format(int count, int target) { argument
37 return createFormat(FrameFormat.TYPE_INT32, count, target);
40 public static MutableFrameFormat createFloatFormat(int count, int target) { argument
41 return createFormat(FrameFormat.TYPE_FLOAT, count, target);
44 public static MutableFrameFormat createDoubleFormat(int count, int target) { argument
45 return createFormat(FrameFormat.TYPE_DOUBLE, count, targe
68 createFormat(int baseType, int count, int target) argument
[all...]
/frameworks/av/media/img_utils/src/
H A DInput.cpp28 ssize_t Input::skip(size_t count) { argument
32 size_t remaining = count;
39 if (remaining == count) {
44 return count - remaining;
52 return count;
/frameworks/base/core/java/android/content/
H A DContentProviderResult.java26 * to have exactly one of {@link #uri} or {@link #count} set.
30 public final Integer count; field in class:ContentProviderResult
35 this.count = null;
38 public ContentProviderResult(int count) { argument
39 this.count = count;
46 count = source.readInt();
49 count = null;
57 count = cpr.count;
[all...]
/frameworks/av/media/libnbaio/
H A DAudioBufferProviderSource.cpp49 ssize_t AudioBufferProviderSource::read(void *buffer, size_t count) argument
55 mBuffer.frameCount = count;
64 if (CC_UNLIKELY(count > available)) {
65 count = available;
67 // count could be zero, either because count was zero on entry or
69 memcpy(buffer, (char *) mBuffer.raw + (mConsumed * mFrameSize), count * mFrameSize);
70 if (CC_UNLIKELY((mConsumed += count) >= mBuffer.frameCount)) {
75 mFramesRead += count;
76 // For better responsiveness with large values of count,
92 size_t count = total - accumulator; local
[all...]
/frameworks/base/core/tests/coretests/src/android/os/
H A DTraceTest.java43 int count = 0;
45 count = eMethod();
117 int count = 0;
119 count += bMethod();
122 count += cMethod();
125 count += dMethod(ii);
127 return count;
135 int count = 0;
137 count += cMethod();
139 return count;
[all...]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DQuickRejectActivity.java55 int count = canvas.getSaveCount();
56 Log.d("OpenGLRenderer", "count=" + count);
57 count = canvas.save();
58 Log.d("OpenGLRenderer", "count after save=" + count);
59 count = canvas.getSaveCount();
60 Log.d("OpenGLRenderer", "getSaveCount after save=" + count);
62 count = canvas.getSaveCount();
63 Log.d("OpenGLRenderer", "count afte
[all...]
/frameworks/base/core/java/android/nfc/
H A DTechListParcel.java42 int count = mTechLists.length;
43 dest.writeInt(count);
44 for (int i = 0; i < count; i++) {
53 int count = source.readInt();
54 String[][] techLists = new String[count][];
55 for (int i = 0; i < count; i++) {
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
H A DListChangeRegistryTest.java54 public void onItemRangeChanged(ObservableList sender, int start, int count) {
59 public void onItemRangeInserted(ObservableList sender, int start, int count) {
64 public void onItemRangeMoved(ObservableList sender, int from, int to, int count) {
69 public void onItemRangeRemoved(ObservableList sender, int start, int count) {
91 public void onItemRangeChanged(ObservableList sender, int start, int count) {
93 assertEquals(expectedCount, count);
98 public void onItemRangeInserted(ObservableList sender, int start, int count) {
103 public void onItemRangeMoved(ObservableList sender, int from, int to, int count) {
108 public void onItemRangeRemoved(ObservableList sender, int start, int count) {
130 public void onItemRangeChanged(ObservableList sender, int start, int count) {
[all...]
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothOutputStream.java58 * Writes {@code count} bytes from the byte array {@code buffer} starting
63 * @param count the number of bytes from {@code buffer} to write to this stream.
65 * @throws IndexOutOfBoundsException if {@code offset < 0} or {@code count < 0}, or if {@code
66 * offset + count} is bigger than the length of {@code buffer}.
69 public void write(byte[] b, int offset, int count) throws IOException { argument
73 if ((offset | count) < 0 || count > b.length - offset) {
76 mSocket.write(b, offset, count);

Completed in 580 milliseconds

1234567891011>>