Searched defs:count (Results 1 - 25 of 430) sorted by last modified time

1234567891011>>

/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DLinearLayoutCompat.java291 final int count = getVirtualChildCount();
292 for (int i = 0; i < count; i++) {
304 if (hasDividerBeforeChildAt(count)) {
305 final View child = getVirtualChildAt(count - 1);
318 final int count = getVirtualChildCount();
320 for (int i = 0; i < count; i++) {
337 if (hasDividerBeforeChildAt(count)) {
338 final View child = getVirtualChildAt(count - 1);
598 final int count = getVirtualChildCount();
612 for (int i = 0; i < count;
888 forceUniformWidth(int count, int heightMeasureSpec) argument
1309 forceUniformHeight(int count, int widthMeasureSpec) argument
[all...]
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/
H A DGridLayout.java710 private static int clip(Interval minorRange, boolean minorWasDefined, int count) { argument
712 if (count == 0) {
715 int min = minorWasDefined ? min(minorRange.min, count) : 0;
716 return min(size, count - min);
723 final int count = (axis.definedCount != UNDEFINED) ? axis.definedCount : 0;
727 int[] maxSizes = new int[count];
743 final int minorSpan = clip(minorRange, minorWasDefined, count);
748 if (count != 0) {
755 if (minor + minorSpan <= count) {
810 int count
1161 setCount(int count) argument
[all...]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DGridLayoutManager.java336 int count = 0;
344 while (count < mSpanCount && layoutState.hasMore(state) && remainingSpan > 0) {
361 mSet[count] = view;
362 count++;
365 if (count == 0) {
373 assignSpans(recycler, state, count, consumedSpanCount, layingOutInPrimaryDirection);
374 for (int i = 0; i < count; i++) {
407 for (int i = 0; i < count; i ++) {
441 for (int i = 0; i < count; i++) {
500 private void assignSpans(RecyclerView.Recycler recycler, RecyclerView.State state, int count, argument
[all...]
H A DPositionMap.java140 public void insertKeyRange(int keyStart, int count) { argument
144 public void removeKeyRange(ArrayList<E> removedItems, int keyStart, int count) { argument
H A DRecyclerView.java404 final int count = getChildCount();
405 for (int i = 0; i < count; i ++) {
462 public void offsetPositionsForRemovingInvisible(int start, int count) {
463 offsetPositionRecordsForRemove(start, count, true);
465 mState.mDeletedInvisibleItemCountSincePreviousLayout += count;
635 // count.
1052 int count = mChildHelper.getChildCount();
1053 for (int i = 0; i < count; i++) {
2037 int count = mChildHelper.getChildCount();
2038 for (int i = 0; i < count;
4157 offsetPositionRecordsForInsert(int insertedAt, int count) argument
4177 offsetPositionRecordsForRemove(int removedFrom, int count, boolean applyToPreLayout) argument
[all...]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DAdapterHelperTest.java191 void setupBasic(int count, int visibleStart, int visibleCount) { argument
193 log("setupBasic(" + count + "," + visibleStart + "," + visibleCount + ");");
195 mTestAdapter = new TestAdapter(count, mAdapterHelper);
777 final int count = 10;// + nextInt(random,100);
778 final int start = nextInt(random, count - 1);
779 final int layoutCount = Math.max(1, nextInt(random, count - start));
780 setupBasic(count, start, layoutCount);
887 AdapterHelper.UpdateOp op(int cmd, int start, int count) { argument
888 return new AdapterHelper.UpdateOp(cmd, start, count);
891 AdapterHelper.UpdateOp addOp(int start, int count) { argument
895 rmOp(int start, int count) argument
899 upOp(int start, int count) argument
903 add(int start, int count) argument
926 rm(int start, int count) argument
939 up(int start, int count) argument
963 add(int index, int count) argument
980 remove(int index, int count) argument
989 update(int index, int count) argument
[all...]
H A DBaseRecyclerViewInstrumentationTest.java328 public void expectLayouts(int count) { argument
329 layoutLatch = new CountDownLatch(count);
339 public void assertLayoutCount(int count, String msg, long timeout) throws Throwable { argument
341 assertEquals(msg, count, layoutLatch.getCount());
475 TestAdapter(int count) { argument
476 mItems = new ArrayList<Item>(count);
477 for (int i = 0; i < count; i++) {
519 public void deleteAndNotify(final int start, final int count) throws Throwable { argument
520 deleteAndNotify(new int[]{start, count});
561 public void addAndNotify(final int start, final int count) throw argument
578 changeAndNotify(final int start, final int count) argument
[all...]
H A DDefaultItemAnimatorTest.java199 public void cancelBefore(int count, final RecyclerView.ViewHolder... toCancel) argument
201 cancelTest(true, count, toCancel);
204 public void cancelAfter(int count, final RecyclerView.ViewHolder... toCancel) argument
206 cancelTest(false, count, toCancel);
209 public void cancelTest(boolean before, int count, final RecyclerView.ViewHolder... toCancel) throws Throwable { argument
212 runAndWait(count, 1);
214 runAndWait(count, 1, new ThrowingRunnable() {
390 private Adapter(int count) { argument
392 for (int i = 0; i < count; i++) {
H A DGridLayoutManagerTest.java666 GridTestAdapter(int count) { argument
667 super(count);
H A DLinearLayoutManagerTest.java423 assertEquals("Children count should add up", childCount.get(),
434 assertEquals("Children count should add up", childCount.get(),
914 public void expectLayouts(int count) { argument
915 layoutLatch = new CountDownLatch(count);
H A DOpReorderTest.java60 public void setup(int count) { argument
61 itemCount = count;
265 UpdateOp rm(int start, int count) { argument
266 updatedItemCount -= count;
267 return record(new UpdateOp(REMOVE, start, count));
274 UpdateOp add(int start, int count) { argument
275 updatedItemCount += count;
276 return record(new UpdateOp(ADD, start, count));
279 UpdateOp up(int start, int count) { argument
280 return record(new UpdateOp(UPDATE, start, count));
[all...]
H A DRecyclerViewAnimationsTest.java375 assertEquals("Children count should add up", childCount.get(),
591 assertEquals("scroll by should be called w/ updated adapter count",
625 assertEquals("scroll by should be called w/ updated adapter count",
711 private void setLayoutRange(int start, int count) { argument
713 mLayoutManager.mOnLayoutCallbacks.mLayoutItemCount = count;
921 public void expectLayouts(int count) { argument
922 super.expectLayouts(count);
1042 Log.d(TAG, "item count " + state.getItemCount());
1046 final int count = mLayoutItemCount
1048 lm.layoutRange(recycler, start, start + count);
1151 expectDraw(int count) argument
[all...]
H A DRecyclerViewBasicTest.java332 MockAdapter(int count) { argument
333 this.mCount = count;
351 void removeItems(int start, int count) { argument
352 mCount -= count;
353 notifyItemRangeRemoved(start, count);
356 void addItems(int start, int count) { argument
357 mCount += count;
358 notifyItemRangeInserted(start, count);
H A DRecyclerViewLayoutTest.java488 final int count = recyclerView.getChildCount();
490 assertTrue("test sanity", count > 0);
491 for (int i = 0; i < count; i ++) {
503 for (int i = 0; i < count; i++) {
1205 assertEquals("child count should be ", 6, lm.getChildCount());
2005 " should work fine. child count:" + getChildCount(), view);
2179 assertEquals("item count in state should be correct", adapter.getItemCount()
2197 assertEquals("when items are removed, item count in state should be updated",
2206 assertEquals("when items are added, item count in state should be updated",
2242 private TestAdapter2(int count) { argument
[all...]
H A DStaggeredGridLayoutManagerTest.java909 assertEquals("after setting new span count, layout manager should keep new value",
913 assertTrue("when span count is dramatically changed after restore, # of child views "
1081 assertEquals(config + " on saved state, span count should be preserved",
1345 final int count = span.size();
1346 for (int i = 0, j = 1; j < count; i++, j++) {
1508 * @param count Number of times to run
1510 private void waitForMainThread(int count) throws Throwable { argument
1511 final AtomicInteger i = new AtomicInteger(count);
1586 public void expectLayouts(int count) { argument
1587 layoutLatch = new CountDownLatch(count);
1834 GridTestAdapter(int count, int orientation) argument
[all...]
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DAllocation.java648 int count = data_length / eSize;
649 if ((eSize * count) != data_length) {
653 copy1DRangeFromUnchecked(xoff, count, data);
687 private void data1DChecks(int off, int count, int len, int dataSize) { argument
692 if(count < 1) {
695 if((off + count) > mCurrentCount) {
696 throw new RSIllegalArgumentException("Overflow, Available count " + mCurrentCount +
697 ", got " + count + " at offset " + off + ".");
723 * @param count The number of elements to be copied.
726 public void copy1DRangeFromUnchecked(int off, int count, in argument
739 copy1DRangeFromUnchecked(int off, int count, short[] d) argument
752 copy1DRangeFromUnchecked(int off, int count, byte[] d) argument
765 copy1DRangeFromUnchecked(int off, int count, float[] d) argument
780 copy1DRangeFrom(int off, int count, int[] d) argument
794 copy1DRangeFrom(int off, int count, short[] d) argument
808 copy1DRangeFrom(int off, int count, byte[] d) argument
822 copy1DRangeFrom(int off, int count, float[] d) argument
836 copy1DRangeFrom(int off, int count, Allocation data, int dataOff) argument
1264 createSized(RenderScript rs, Element e, int count, int usage) argument
1291 createSized(RenderScript rs, Element e, int count) argument
[all...]
H A DAllocationThunker.java237 public void copy1DRangeFromUnchecked(int off, int count, int[] d) { argument
239 mN.copy1DRangeFromUnchecked(off, count, d);
244 public void copy1DRangeFromUnchecked(int off, int count, short[] d) { argument
246 mN.copy1DRangeFromUnchecked(off, count, d);
251 public void copy1DRangeFromUnchecked(int off, int count, byte[] d) { argument
253 mN.copy1DRangeFromUnchecked(off, count, d);
258 public void copy1DRangeFromUnchecked(int off, int count, float[] d) { argument
260 mN.copy1DRangeFromUnchecked(off, count, d);
266 public void copy1DRangeFrom(int off, int count, int[] d) { argument
268 mN.copy1DRangeFrom(off, count,
273 copy1DRangeFrom(int off, int count, short[] d) argument
280 copy1DRangeFrom(int off, int count, byte[] d) argument
287 copy1DRangeFrom(int off, int count, float[] d) argument
295 copy1DRangeFrom(int off, int count, Allocation data, int dataOff) argument
497 createSized(RenderScript rs, Element e, int count, int usage) argument
[all...]
H A DRenderScript.java376 native void rsnAllocationData1D(int con, int id, int off, int mip, int count, int[] d, int sizeBytes); argument
377 synchronized void nAllocationData1D(int id, int off, int mip, int count, int[] d, int sizeBytes) { argument
379 rsnAllocationData1D(mContext, id, off, mip, count, d, sizeBytes);
381 native void rsnAllocationData1D(int con, int id, int off, int mip, int count, short[] d, int sizeBytes); argument
382 synchronized void nAllocationData1D(int id, int off, int mip, int count, short[] d, int sizeBytes) { argument
384 rsnAllocationData1D(mContext, id, off, mip, count, d, sizeBytes);
386 native void rsnAllocationData1D(int con, int id, int off, int mip, int count, byte[] d, int sizeBytes); argument
387 synchronized void nAllocationData1D(int id, int off, int mip, int count, byte[] d, int sizeBytes) { argument
389 rsnAllocationData1D(mContext, id, off, mip, count, d, sizeBytes);
391 native void rsnAllocationData1D(int con, int id, int off, int mip, int count, floa argument
392 nAllocationData1D(int id, int off, int mip, int count, float[] d, int sizeBytes) argument
[all...]
/frameworks/support/v8/renderscript/jni/
H A Dandroid_renderscript_RenderScript.cpp439 nAllocationData1D_i(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jintArray data, int sizeBytes) argument
442 LOG_API("nAllocation1DData_i, con(%p), adapter(%p), offset(%i), count(%i), len(%i), sizeBytes(%i)", con, (RsAllocation)alloc, offset, count, len, sizeBytes);
444 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes);
449 nAllocationData1D_s(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jshortArray data, int sizeBytes) argument
452 LOG_API("nAllocation1DData_s, con(%p), adapter(%p), offset(%i), count(%i), len(%i), sizeBytes(%i)", con, (RsAllocation)alloc, offset, count, len, sizeBytes);
454 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes);
459 nAllocationData1D_b(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jbyteArray data, int sizeBytes) argument
462 LOG_API("nAllocation1DData_b, con(%p), adapter(%p), offset(%i), count(
469 nAllocationData1D_f(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jfloatArray data, int sizeBytes) argument
[all...]
/frameworks/volley/src/com/android/volley/toolbox/
H A DDiskBasedCache.java322 int count;
324 while (pos < length && ((count = in.read(bytes, pos, length - pos)) != -1)) {
325 pos += count;
455 public int read(byte[] buffer, int offset, int count) throws IOException { argument
456 int result = super.read(buffer, offset, count);
/frameworks/volley/tests/src/com/android/volley/
H A DRequestQueueTest.java51 * @param count Number of requests to make
53 private List<MockRequest> makeRequests(int count) { argument
58 for (int i = 0; i < count; i++) {
/frameworks/wilhelm/include/OMXAL/
H A DOpenMAXAL_Android.h95 XAuint32 count; member in struct:XAAndroidBufferQueueState_
/frameworks/wilhelm/include/SLES/
H A DOpenSLES.h1381 SLuint32 count; member in struct:SLBufferQueueState_
H A DOpenSLES_Android.h206 SLuint32 count; member in struct:SLAndroidSimpleBufferQueueState_
275 SLuint32 count; member in struct:SLAndroidBufferQueueState_
/frameworks/wilhelm/src/desktop/
H A DSndFile.c46 sf_count_t count; local
47 count = sf_read_short(thiz->mSNDFILE, pBuffer, (sf_count_t) SndFile_BUFSIZE);
75 if (0 < count) {
77 SLuint32 size = (SLuint32) (count * sizeof(short));
194 SLboolean empty = 0 == audioPlayer->mBufferQueue.mState.count;

Completed in 318 milliseconds

1234567891011>>