/developers/build/prebuilts/gradle/BasicRenderScript/Application/src/main/java/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 …]
|
/developers/build/prebuilts/gradle/MediaRecorder/Application/src/main/java/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 …]
|
/developers/build/prebuilts/gradle/BasicMediaDecoder/Application/src/main/java/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 …]
|
/developers/samples/android/common/src/java/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 …]
|
/developers/build/prebuilts/gradle/BasicMultitouch/Application/src/main/java/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()
|
/developers/samples/android/input/multitouch/BasicMultitouch/Application/src/main/java/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()
|
/developers/build/prebuilts/gradle/PdfRendererBasic/Application/src/main/java/com/example/android/pdfrendererbasic/ |
D | PdfRendererBasicFragment.java | 96 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()
|
/developers/samples/android/ui/graphics/PdfRendererBasic/Application/src/main/java/com/example/android/pdfrendererbasic/ |
D | PdfRendererBasicFragment.java | 96 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()
|
/developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/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()
|
/developers/samples/android/media/MediaBrowserService/Application/src/main/java/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()
|
/developers/build/prebuilts/gradle/BasicRenderScript/Application/src/main/java/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()
|
/developers/samples/android/renderScript/BasicRenderScript/Application/src/main/java/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()
|
/developers/build/prebuilts/gradle/BatchStepSensor/Application/src/main/java/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()
|
/developers/build/prebuilts/gradle/MidiScope/Application/src/main/java/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()
|
/developers/build/prebuilts/gradle/ElizaChat/Application/src/main/java/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()
|
/developers/samples/android/wearable/wear/ElizaChat/Application/src/main/java/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()
|
/developers/samples/android/media/MidiScope/Application/src/main/java/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()
|
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/data/ |
D | PaginatedCursor.java | 127 private void loadCacheStartingFromPosition(int index) { in loadCacheStartingFromPosition() argument 128 mCursor.moveToPosition(index); in loadCacheStartingFromPosition() 129 for (int row = index; row < (index + PAGE_SIZE) && row < mRowCount; row++) { in loadCacheStartingFromPosition() 153 mLastCachePosition = Math.min(index + PAGE_SIZE, mRowCount) - 1; in loadCacheStartingFromPosition()
|
/developers/samples/android/content/WidgetData/Application/src/main/java/com/example/android/widgetdata/ |
D | WeatherDataProvider.java | 122 final int index = Integer.parseInt(uri.getPathSegments().get(0)); in update() local 125 assert(0 <= index && index < sData.size()); in update() 126 final WeatherDataPoint data = sData.get(index); in update()
|
/developers/build/prebuilts/gradle/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/ |
D | OpenGLWatchFaceService.java | 301 int index = 0; in createMinorTicks() local 308 System.arraycopy(triangleCoords, 0, trianglesCoords, index, triangleCoords.length); in createMinorTicks() 309 index += 9; in createMinorTicks() 322 private float[] getMajorTickTriangleCoords(int index) { in getMajorTickTriangleCoords() argument 324 index * 360 / 4 /* angleDegrees */); in getMajorTickTriangleCoords() 327 private float[] getMinorTickTriangleCoords(int index) { in getMinorTickTriangleCoords() argument 329 index * 360 / 12 /* angleDegrees */); in getMinorTickTriangleCoords()
|
/developers/samples/android/wearable/wear/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/ |
D | OpenGLWatchFaceService.java | 301 int index = 0; in createMinorTicks() local 308 System.arraycopy(triangleCoords, 0, trianglesCoords, index, triangleCoords.length); in createMinorTicks() 309 index += 9; in createMinorTicks() 322 private float[] getMajorTickTriangleCoords(int index) { in getMajorTickTriangleCoords() argument 324 index * 360 / 4 /* angleDegrees */); in getMajorTickTriangleCoords() 327 private float[] getMinorTickTriangleCoords(int index) { in getMinorTickTriangleCoords() argument 329 index * 360 / 12 /* angleDegrees */); in getMinorTickTriangleCoords()
|
/developers/samples/android/ui/transition/AdapterTransition/Application/src/main/java/com/example/android/adaptertransition/ |
D | AdapterTransitionFragment.java | 258 int index = 0; in copyVisibleViews() local 262 View source = mAbsListView.getChildAt(index); in copyVisibleViews() 267 View destination = mAdapter.getView(first + index, null, layout); in copyVisibleViews() 269 destination.setId(ROOT_ID + first + index); in copyVisibleViews() 275 ++index; in copyVisibleViews()
|
/developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/ |
D | DiskLruCache.java | 753 public InputStream getInputStream(int index) { in getInputStream() argument 754 return ins[index]; in getInputStream() 760 public String getString(int index) throws IOException { in getString() argument 761 return inputStreamToString(getInputStream(index)); in getString() 786 public InputStream newInputStream(int index) throws IOException { in newInputStream() argument 794 return new FileInputStream(entry.getCleanFile(index)); in newInputStream() 802 public String getString(int index) throws IOException { in getString() argument 803 InputStream in = newInputStream(index); in getString() 814 public OutputStream newOutputStream(int index) throws IOException { in newOutputStream() argument 819 return new FaultHidingOutputStream(new FileOutputStream(entry.getDirtyFile(index))); in newOutputStream() [all …]
|
/developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/ |
D | DiskLruCache.java | 753 public InputStream getInputStream(int index) { in getInputStream() argument 754 return ins[index]; in getInputStream() 760 public String getString(int index) throws IOException { in getString() argument 761 return inputStreamToString(getInputStream(index)); in getString() 786 public InputStream newInputStream(int index) throws IOException { in newInputStream() argument 794 return new FileInputStream(entry.getCleanFile(index)); in newInputStream() 802 public String getString(int index) throws IOException { in getString() argument 803 InputStream in = newInputStream(index); in getString() 814 public OutputStream newOutputStream(int index) throws IOException { in newOutputStream() argument 819 return new FaultHidingOutputStream(new FileOutputStream(entry.getDirtyFile(index))); in newOutputStream() [all …]
|
/developers/build/templates/CardStream/_MODULE_/src/template/java/_PACKAGE_/cardstream/ |
D | CardStreamLinearLayout.java.ftl | 223 public void addView(View child, int index, ViewGroup.LayoutParams params) { 226 super.addView(child, index, params); 332 for (int index = 0; index < count; ++index) { 334 View child = getChildAt(index); 467 for (int index = 0; index < count; ++index) { 468 final View child = getChildAt(index); 533 for (int index = 0; index < count; ++index) { 534 View child = getChildAt(index);
|