/development/samples/browseable/BasicRenderScript/src/com.example.android.common.media/ |
D | MediaCodecWrapper.java | 195 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/BasicMediaDecoder/src/com.example.android.common.media/ |
D | MediaCodecWrapper.java | 195 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/ |
D | MediaCodecWrapper.java | 195 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/ |
D | FixedGridLayout.java | 63 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/ |
D | PurgeableBitmap.java | 46 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()
|
D | UnicodeChart.java | 64 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()
|
D | ScaleToFit.java | 70 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()
|
D | BitmapMesh.java | 46 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/ |
D | FixedGridLayout.java | 76 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/ |
D | TouchDisplayView.java | 181 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/ApiDemos/src/com/example/android/apis/graphics/kube/ |
D | GLVertex.java | 26 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()
|
D | GLFace.java | 85 buffer.put(v0.index); in putIndices() 86 buffer.put(v1.index); in putIndices() 87 buffer.put(vn.index); in putIndices()
|
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/ |
D | QueueHelper.java | 81 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/browseable/PdfRendererBasic/src/com.example.android.pdfrendererbasic/ |
D | PdfRendererBasicFragment.java | 104 int index = 0; in onViewCreated() local 107 index = savedInstanceState.getInt(STATE_CURRENT_PAGE_INDEX, 0); in onViewCreated() 109 showPage(index); in onViewCreated() 184 private void showPage(int index) { in showPage() argument 185 if (mPdfRenderer.getPageCount() <= index) { in showPage() 193 mCurrentPage = mPdfRenderer.openPage(index); in showPage() 211 int index = mCurrentPage.getIndex(); in updateUi() local 213 mButtonPrevious.setEnabled(0 != index); in updateUi() 214 mButtonNext.setEnabled(index + 1 < pageCount); in updateUi() 215 getActivity().setTitle(getString(R.string.app_name_with_index, index + 1, pageCount)); in updateUi()
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
D | FragmentLayout.java | 135 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/ApiDemos/src/com/example/android/mmslib/pdu/ |
D | PduBody.java | 96 public void addPart(int index, PduPart part) { in addPart() argument 102 mParts.add(index, part); in addPart() 111 public PduPart removePart(int index) { in removePart() argument 112 return mParts.remove(index); in removePart() 128 public PduPart getPart(int index) { in getPart() argument 129 return mParts.get(index); in getPart()
|
/development/samples/browseable/BasicRenderScript/src/com.example.android.basicrenderscript/ |
D | MainActivity.java | 124 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/NotePad/tests/src/com/example/android/notepad/ |
D | NotePadProviderTest.java | 143 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/Snake/src/com/example/android/snake/ |
D | SnakeView.java | 230 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/samples/browseable/MidiScope/src/com.example.android.midiscope/ |
D | MidiPrinter.java | 52 int index = status & 0x0F; in getName() local 53 return SYSTEM_COMMAND_NAMES[index]; in getName() 55 int index = (status >> 4) & 0x07; in getName() local 56 return CHANNEL_COMMAND_NAMES[index]; in getName()
|
/development/samples/browseable/ElizaChat/src/com.example.android.wearable.elizachat/ |
D | ElizaResponder.java | 128 int index = input.indexOf(CONVERSATION_KEYWORDS[keywordIndex]); in elzTalk() local 129 if (index != -1) { in elzTalk() 138 int index = input.indexOf(CONVERSATION_KEYWORDS[keywordIndex]); in elzTalk() local 139 afterKeyword = input.substring(index + CONVERSATION_KEYWORDS[keywordIndex].length()); in elzTalk()
|
/development/samples/training/multiscreen/newsreader/src/com/example/android/newsreader/ |
D | NewsCategory.java | 49 public NewsArticle getArticle(int index) { in getArticle() argument 50 return mArticles[index]; in getArticle()
|
/development/samples/MySampleRss/src/com/example/codelab/rssexample/ |
D | MyRssReader.java | 51 int index = mRssList.getSelectedItemIndex(); in onSaveInstanceState() local 52 if(index > -1){ in onSaveInstanceState() 53 outState.putInteger("lastIndexItem", index); in onSaveInstanceState()
|
/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/cardstream/ |
D | CardStreamLinearLayout.java | 223 public void addView(View child, int index, ViewGroup.LayoutParams params) { in addView() argument 226 super.addView(child, index, params); in addView() 332 for (int index = 0; index < count; ++index) { in getFirstVisibleCardTag() 334 View child = getChildAt(index); in getFirstVisibleCardTag() 467 for (int index = 0; index < count; ++index) { in runInitialAnimations() 468 final View child = getChildAt(index); in runInitialAnimations() 532 for (int index = 0; index < count; ++index) { in scrollToCard() 533 View child = getChildAt(index); in scrollToCard()
|
/development/tools/idegen/ |
D | intellij-gen.sh | 55 index_file=$root_dir/module-index.txt 69 $script_dir/index-gen.sh
|