Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 151) sorted by relevance

1234567

/development/samples/SupportLeanbackDemos/src/com/example/android/leanback/
DBrowseAnimationFragment.java97 int index = adapter.indexOf(item); in createRandomItem() local
98 if (index >= 0) { in createRandomItem()
99 if (index > 0) in createRandomItem()
100 index--; in createRandomItem()
101 adapter.removeItems(index, 1); in createRandomItem()
112 int index = adapter.indexOf(item); in createRandomItem() field in BrowseAnimationFragment
113 if (index >= 0) { in createRandomItem()
114 if (index < adapter.size() - 1) in createRandomItem()
115 index++; in createRandomItem()
116 adapter.removeItems(index, 1); in createRandomItem() argument
[all …]
DPlaybackControlSupportHelper.java142 int index; in notifyActionChanged() local
143 index = getPrimaryActionsAdapter().indexOf(action); in notifyActionChanged()
144 if (index >= 0) { in notifyActionChanged()
145 getPrimaryActionsAdapter().notifyArrayItemRangeChanged(index, 1); in notifyActionChanged()
147 index = getSecondaryActionsAdapter().indexOf(action); in notifyActionChanged()
148 if (index >= 0) { in notifyActionChanged()
149 getSecondaryActionsAdapter().notifyArrayItemRangeChanged(index, 1); in notifyActionChanged()
212 int index = mSpeed - PlaybackControlSupportGlue.PLAYBACK_SPEED_FAST_L0; in getCurrentPosition() local
213 speed = getFastForwardSpeeds()[index]; in getCurrentPosition()
215 int index = -mSpeed - PlaybackControlSupportGlue.PLAYBACK_SPEED_FAST_L0; in getCurrentPosition() local
[all …]
DPlaybackControlHelper.java140 int index; in notifyActionChanged() local
141 index = getPrimaryActionsAdapter().indexOf(action); in notifyActionChanged()
142 if (index >= 0) { in notifyActionChanged()
143 getPrimaryActionsAdapter().notifyArrayItemRangeChanged(index, 1); in notifyActionChanged()
145 index = getSecondaryActionsAdapter().indexOf(action); in notifyActionChanged()
146 if (index >= 0) { in notifyActionChanged()
147 getSecondaryActionsAdapter().notifyArrayItemRangeChanged(index, 1); in notifyActionChanged()
210 int index = mSpeed - PlaybackControlGlue.PLAYBACK_SPEED_FAST_L0; in getCurrentPosition() local
211 speed = getFastForwardSpeeds()[index]; in getCurrentPosition()
213 int index = -mSpeed - PlaybackControlGlue.PLAYBACK_SPEED_FAST_L0; in getCurrentPosition() local
[all …]
/development/samples/browseable/BasicMediaDecoder/src/com.example.android.common.media/
DMediaCodecWrapper.java195 int index = mAvailableInputBuffers.remove(); in writeSample() local
196 ByteBuffer buffer = mInputBuffers[index]; in writeSample()
213 mDecoder.queueInputBuffer(index, 0, size, presentationTimeUs, flags); in writeSample()
215 mDecoder.queueSecureInputBuffer(index, 0, crypto, presentationTimeUs, flags); in writeSample()
250 int index = mAvailableInputBuffers.remove(); in writeSample() local
251 ByteBuffer buffer = mInputBuffers[index]; in writeSample()
262 mDecoder.queueInputBuffer(index, 0, size, presentationTimeUs, flags); in writeSample()
265 mDecoder.queueSecureInputBuffer(index, 0, cryptoInfo, presentationTimeUs, flags); in writeSample()
286 int index = mAvailableOutputBuffers.peek(); in peekSample() local
287 MediaCodec.BufferInfo info = mOutputBufferInfo[index]; in peekSample()
[all …]
/development/samples/browseable/MediaRecorder/src/com.example.android.common.media/
DMediaCodecWrapper.java195 int index = mAvailableInputBuffers.remove(); in writeSample() local
196 ByteBuffer buffer = mInputBuffers[index]; in writeSample()
213 mDecoder.queueInputBuffer(index, 0, size, presentationTimeUs, flags); in writeSample()
215 mDecoder.queueSecureInputBuffer(index, 0, crypto, presentationTimeUs, flags); in writeSample()
250 int index = mAvailableInputBuffers.remove(); in writeSample() local
251 ByteBuffer buffer = mInputBuffers[index]; in writeSample()
262 mDecoder.queueInputBuffer(index, 0, size, presentationTimeUs, flags); in writeSample()
265 mDecoder.queueSecureInputBuffer(index, 0, cryptoInfo, presentationTimeUs, flags); in writeSample()
286 int index = mAvailableOutputBuffers.peek(); in peekSample() local
287 MediaCodec.BufferInfo info = mOutputBufferInfo[index]; in peekSample()
[all …]
/development/samples/browseable/BasicRenderScript/src/com.example.android.common.media/
DMediaCodecWrapper.java195 int index = mAvailableInputBuffers.remove(); in writeSample() local
196 ByteBuffer buffer = mInputBuffers[index]; in writeSample()
213 mDecoder.queueInputBuffer(index, 0, size, presentationTimeUs, flags); in writeSample()
215 mDecoder.queueSecureInputBuffer(index, 0, crypto, presentationTimeUs, flags); in writeSample()
250 int index = mAvailableInputBuffers.remove(); in writeSample() local
251 ByteBuffer buffer = mInputBuffers[index]; in writeSample()
262 mDecoder.queueInputBuffer(index, 0, size, presentationTimeUs, flags); in writeSample()
265 mDecoder.queueSecureInputBuffer(index, 0, cryptoInfo, presentationTimeUs, flags); in writeSample()
286 int index = mAvailableOutputBuffers.peek(); in peekSample() local
287 MediaCodec.BufferInfo info = mOutputBufferInfo[index]; in peekSample()
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/animation/
DFixedGridLayout.java63 for (int index=0; index<count; index++) { in onMeasure()
64 final View child = getChildAt(index); in onMeasure()
86 for (int index=0; index<count; index++) { in onLayout()
87 final View child = getChildAt(index); in onLayout()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DPurgeableBitmap.java46 int index = mView.update(this); in handleMessage() local
47 if (index > 0) { in handleMessage()
48 showAlertDialog(getDialogMessage(true, index)); in handleMessage()
49 } else if (index < 0){ in handleMessage()
51 showAlertDialog(getDialogMessage(false, -index)); in handleMessage()
91 private String getDialogMessage(boolean isOutOfMemory, int index) { in getDialogMessage() argument
95 sb.append(index); in getDialogMessage()
99 .append(index) in getDialogMessage()
DUnicodeChart.java64 int index = 0; in SampleView() local
68 pos[index++] = x; in SampleView()
69 pos[index++] = row * YMUL + YBASE; in SampleView()
74 private float computeX(int index) { in computeX() argument
75 return (index >> 4) * XMUL + 10; in computeX()
78 private float computeY(int index) { in computeY() argument
79 return (index & 0xF) * YMUL + YMUL; in computeY()
DScaleToFit.java70 private void setSrcR(int index) { in setSrcR() argument
71 int w = sSrcData[index*3 + 0]; in setSrcR()
72 int h = sSrcData[index*3 + 1]; in setSrcR()
76 private void drawSrcR(Canvas canvas, int index) { in drawSrcR() argument
77 mPaint.setColor(sSrcData[index*3 + 2]); in drawSrcR()
81 private void drawFit(Canvas canvas, int index, Matrix.ScaleToFit stf) { in drawFit() argument
84 setSrcR(index); in drawFit()
87 drawSrcR(canvas, index); in drawFit()
DBitmapMesh.java46 private static void setXY(float[] array, int index, float x, float y) { in setXY() argument
47 array[index*2 + 0] = x; in setXY()
48 array[index*2 + 1] = y; in setXY()
61 int index = 0; in SampleView() local
66 setXY(mVerts, index, fx, fy); in SampleView()
67 setXY(mOrig, index, fx, fy); in SampleView()
68 index += 1; in SampleView()
/development/samples/FixedGridLayout/src/com/example/android/fixedgridlayout/
DFixedGridLayout.java76 for (int index=0; index<count; index++) { in onMeasure()
77 final View child = getChildAt(index); in onMeasure()
97 for (int index=0; index<count; index++) { in onLayout()
98 final View child = getChildAt(index); in onLayout()
/development/samples/browseable/BasicMultitouch/src/com.example.android.basicmultitouch/
DTouchDisplayView.java181 int index = event.getActionIndex(); in onTouchEvent() local
182 int id = event.getPointerId(index); in onTouchEvent()
184 TouchHistory data = TouchHistory.obtain(event.getX(index), event.getY(index), in onTouchEvent()
185 event.getPressure(index)); in onTouchEvent()
231 int index = event.getActionIndex(); in onTouchEvent() local
232 int id = event.getPointerId(index); in onTouchEvent()
259 for (int index = 0; index < event.getPointerCount(); index++) { in onTouchEvent()
261 int id = event.getPointerId(index); in onTouchEvent()
268 data.setTouch(event.getX(index), event.getY(index), in onTouchEvent()
269 event.getPressure(index)); in onTouchEvent()
/development/samples/browseable/PdfRendererBasic/src/com.example.android.pdfrendererbasic/
DPdfRendererBasicFragment.java96 int index = 0; in onViewCreated() local
99 index = savedInstanceState.getInt(STATE_CURRENT_PAGE_INDEX, 0); in onViewCreated()
101 showPage(index); in onViewCreated()
162 private void showPage(int index) { in showPage() argument
163 if (mPdfRenderer.getPageCount() <= index) { in showPage()
171 mCurrentPage = mPdfRenderer.openPage(index); in showPage()
189 int index = mCurrentPage.getIndex(); in updateUi() local
191 mButtonPrevious.setEnabled(0 != index); in updateUi()
192 mButtonNext.setEnabled(index + 1 < pageCount); in updateUi()
193 getActivity().setTitle(getString(R.string.app_name_with_index, index + 1, pageCount)); in updateUi()
/development/ndk/sources/android/ndk_helper/
DgestureDetector.cpp180 int32_t index = (action & AMOTION_EVENT_ACTION_POINTER_INDEX_MASK) in Detect() local
182 int32_t released_pointer_id = AMotionEvent_getPointerId( event, index ); in Detect()
230 int32_t index = FindIndex( event_, vec_pointers_[0] ); in GetPointers() local
231 if( index == -1 ) in GetPointers()
234 float x = AMotionEvent_getX( event_, index ); in GetPointers()
235 float y = AMotionEvent_getY( event_, index ); in GetPointers()
237 index = FindIndex( event_, vec_pointers_[1] ); in GetPointers()
238 if( index == -1 ) in GetPointers()
241 float x2 = AMotionEvent_getX( event_, index ); in GetPointers()
242 float y2 = AMotionEvent_getY( event_, index ); in GetPointers()
[all …]
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/
DQueueHelper.java81 int index = 0; in getMusicIndexOnQueue() local
84 return index; in getMusicIndexOnQueue()
86 index++; in getMusicIndexOnQueue()
93 int index = 0; in getMusicIndexOnQueue() local
96 return index; in getMusicIndexOnQueue()
98 index++; in getMusicIndexOnQueue()
146 public static boolean isIndexPlayable(int index, List<MediaSession.QueueItem> queue) { in isIndexPlayable() argument
147 return (queue != null && index >= 0 && index < queue.size()); in isIndexPlayable()
/development/samples/Support4Demos/src/com/example/android/supportv4/media/utils/
DQueueHelper.java82 int index = 0; in getMusicIndexOnQueue() local
85 return index; in getMusicIndexOnQueue()
87 index++; in getMusicIndexOnQueue()
94 int index = 0; in getMusicIndexOnQueue() local
97 return index; in getMusicIndexOnQueue()
99 index++; in getMusicIndexOnQueue()
147 public static boolean isIndexPlayable(int index, List<MediaSessionCompat.QueueItem> queue) { in isIndexPlayable() argument
148 return (queue != null && index >= 0 && index < queue.size()); in isIndexPlayable()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/
DGLVertex.java26 final short index; // index in vertex table field in GLVertex
33 this.index = -1; in GLVertex()
36 GLVertex(float x, float y, float z, int index) { in GLVertex() argument
40 this.index = (short)index; in GLVertex()
75 vertexBuffer.position(index * 3); in update()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DFragmentLayout.java135 void showDetails(int index) { in showDetails() argument
136 mCurCheckPosition = index; in showDetails()
141 getListView().setItemChecked(index, true); in showDetails()
146 if (details == null || details.getShownIndex() != index) { in showDetails()
148 details = DetailsFragment.newInstance(index); in showDetails()
153 if (index == 0) { in showDetails()
167 intent.putExtra("index", index); in showDetails()
184 public static DetailsFragment newInstance(int index) { in newInstance() argument
189 args.putInt("index", index); in newInstance()
/development/samples/Support4Demos/src/com/example/android/supportv4/app/
DFragmentLayoutSupport.java138 void showDetails(int index) { in showDetails() argument
139 mCurCheckPosition = index; in showDetails()
144 getListView().setItemChecked(index, true); in showDetails()
149 if (details == null || details.getShownIndex() != index) { in showDetails()
151 details = DetailsFragment.newInstance(index); in showDetails()
166 intent.putExtra("index", index); in showDetails()
183 public static DetailsFragment newInstance(int index) { in newInstance() argument
188 args.putInt("index", index); in newInstance()
/development/samples/Support4Demos/src/com/example/android/supportv4/widget/
DExploreByTouchHelperActivity.java173 protected boolean onItemClicked(int index) { in onItemClicked() argument
174 final CustomItem item = getItem(index); in onItemClicked()
186 mTouchHelper.invalidateVirtualView(index); in onItemClicked()
191 mTouchHelper.sendEventForVirtualView(index, AccessibilityEvent.TYPE_VIEW_CLICKED); in onItemClicked()
211 protected CustomItem getItem(int index) { in getItem() argument
212 if ((index < 0) || (index >= mItems.size())) { in getItem()
216 return mItems.get(index); in getItem()
238 final int index = getItemIndexUnder(x, y); in getVirtualViewAt() local
239 if (index == NO_ITEM) { in getVirtualViewAt()
243 return index; in getVirtualViewAt()
/development/samples/NotePad/tests/src/com/example/android/notepad/
DNotePadProviderTest.java143 for (int index = 0; index < TEST_NOTES.length; index++) { in insertData()
146 TEST_NOTES[index].setCreationDate(START_DATE + (index * ONE_DAY_MILLIS)); in insertData()
147 TEST_NOTES[index].setModificationDate(START_DATE + (index * ONE_WEEK_MILLIS)); in insertData()
153 TEST_NOTES[index].getContentValues() // the values map to insert in insertData()
399 for (int index = 0; index < inputData.length; index++) { in testWriteDataToPipe()
401 inputData[index] = bIn.readLine(); in testWriteDataToPipe()
510 int index = 0; in testQueriesOnNotesUri() local
516 assertEquals(SELECTION_ARGS[index], projectionCursor.getString(0)); in testQueriesOnNotesUri()
518 index++; in testQueriesOnNotesUri()
523 assertEquals(SELECTION_ARGS.length, index); in testQueriesOnNotesUri()
/development/samples/browseable/BasicRenderScript/src/com.example.android.basicrenderscript/
DMainActivity.java124 int index = -1; in doInBackground() local
127 index = mCurrentBitmap; in doInBackground()
137 mScript.forEach_saturation(mInAllocation, mOutAllocations[index]); in doInBackground()
142 mOutAllocations[index].copyTo(mBitmapsOut[index]); in doInBackground()
145 return index; in doInBackground()
/development/samples/Snake/src/com/example/android/snake/
DSnakeView.java230 for (int index = 0; index < coordCount; index += 2) { in coordArrayToArrayList()
231 Coordinate c = new Coordinate(rawArray[index], rawArray[index + 1]); in coordArrayToArrayList()
390 for (int index = 0; index < snakelength; index++) { in addRandomApple()
391 if (mSnakeTrail.get(index).equals(newCoord)) { in addRandomApple()
523 int index = 0; in updateSnake() local
525 if (index == 0) { in updateSnake()
530 index++; in updateSnake()
/development/ndk/platforms/android-21/include/linux/dvb/
Dca.h54 unsigned int index; member
61 unsigned int index; member
69 int index; member

1234567