/developers/build/prebuilts/gradle/BasicMediaDecoder/Application/src/main/java/com/example/android/common/media/ |
D | MediaCodecWrapper.java | 192 int index = mAvailableInputBuffers.remove(); in writeSample() local 193 ByteBuffer buffer = mInputBuffers[index]; in writeSample() 210 mDecoder.queueInputBuffer(index, 0, size, presentationTimeUs, flags); in writeSample() 212 mDecoder.queueSecureInputBuffer(index, 0, crypto, presentationTimeUs, flags); in writeSample() 246 int index = mAvailableInputBuffers.remove(); in writeSample() local 247 ByteBuffer buffer = mInputBuffers[index]; in writeSample() 258 mDecoder.queueInputBuffer(index, 0, size, presentationTimeUs, flags); in writeSample() 261 mDecoder.queueSecureInputBuffer(index, 0, sCryptoInfo, presentationTimeUs, flags); in writeSample() 282 int index = mAvailableOutputBuffers.peek(); in peekSample() local 283 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 | 192 int index = mAvailableInputBuffers.remove(); in writeSample() local 193 ByteBuffer buffer = mInputBuffers[index]; in writeSample() 210 mDecoder.queueInputBuffer(index, 0, size, presentationTimeUs, flags); in writeSample() 212 mDecoder.queueSecureInputBuffer(index, 0, crypto, presentationTimeUs, flags); in writeSample() 246 int index = mAvailableInputBuffers.remove(); in writeSample() local 247 ByteBuffer buffer = mInputBuffers[index]; in writeSample() 258 mDecoder.queueInputBuffer(index, 0, size, presentationTimeUs, flags); in writeSample() 261 mDecoder.queueSecureInputBuffer(index, 0, sCryptoInfo, presentationTimeUs, flags); in writeSample() 282 int index = mAvailableOutputBuffers.peek(); in peekSample() local 283 MediaCodec.BufferInfo info = mOutputBufferInfo[index]; in peekSample() [all …]
|
/developers/samples/android/common/src/java/com/example/android/common/media/ |
D | MediaCodecWrapper.java | 192 int index = mAvailableInputBuffers.remove(); in writeSample() local 193 ByteBuffer buffer = mInputBuffers[index]; in writeSample() 210 mDecoder.queueInputBuffer(index, 0, size, presentationTimeUs, flags); in writeSample() 212 mDecoder.queueSecureInputBuffer(index, 0, crypto, presentationTimeUs, flags); in writeSample() 246 int index = mAvailableInputBuffers.remove(); in writeSample() local 247 ByteBuffer buffer = mInputBuffers[index]; in writeSample() 258 mDecoder.queueInputBuffer(index, 0, size, presentationTimeUs, flags); in writeSample() 261 mDecoder.queueSecureInputBuffer(index, 0, sCryptoInfo, presentationTimeUs, flags); in writeSample() 282 int index = mAvailableOutputBuffers.peek(); in peekSample() local 283 MediaCodec.BufferInfo info = mOutputBufferInfo[index]; in peekSample() [all …]
|
/developers/samples/android/ui/graphics/PdfRendererBasic/Application/src/main/java/com/example/android/pdfrendererbasic/ |
D | PdfRendererBasicViewModel.java | 121 final int index = mCurrentPage.getIndex(); in showPrevious() local 122 if (index > 0) { in showPrevious() 123 mExecutor.execute(() -> showPage(index - 1)); in showPrevious() 131 final int index = mCurrentPage.getIndex(); in showNext() local 132 if (index + 1 < mPdfRenderer.getPageCount()) { in showNext() 133 mExecutor.execute(() -> showPage(index + 1)); in showNext() 173 private void showPage(int index) { in showPage() argument 179 mCurrentPage = mPdfRenderer.openPage(index); in showPage() 190 mPageInfo.postValue(new PageInfo(index, count)); in showPage() 191 mPreviousEnabled.postValue(index > 0); in showPage() [all …]
|
/developers/samples/android/tv/ChannelsPrograms/Application/src/main/java/com/example/android/tv/channelsprograms/model/ |
D | MockDatabase.java | 130 int index = findSubscription(subscriptions, subscription); in saveSubscription() local 131 if (index == -1) { in saveSubscription() 134 subscriptions.set(index, subscription); in saveSubscription() 141 for (int index = 0; index < subscriptions.size(); ++index) { in findSubscription() 142 Subscription current = subscriptions.get(index); in findSubscription() 144 return index; in findSubscription() 226 int index = findMovie(movies, movie); in saveMovie() local 227 if (index == -1) { in saveMovie() 230 movies.set(index, movie); in saveMovie() 236 for (int index = 0; index < movies.size(); ++index) { in findMovie() [all …]
|
D | MockMovieService.java | 134 for (int index = 0; index < title.length; ++index) { in createMovieList() 138 title[index], in createMovieList() 140 studio[index], in createMovieList() 141 videoUrl[index], in createMovieList() 142 cardImageUrl[index], in createMovieList() 143 bgImageUrl[index])); in createMovieList()
|
/developers/samples/android/wearable/wear/DataLayer/Wearable/src/main/java/com/example/android/wearable/datalayer/ |
D | CustomRecyclerAdapter.java | 143 for (int index = 0; index < mDataSet.size(); index++) { in findItemIndex() 144 if (mDataSet.get(index).getType() == assetType) { in findItemIndex() 145 return index; in findItemIndex() 152 int index = findItemIndex(TYPE_EVENT_LOGGING); in appendToDataEventLog() local 154 if (index > -1) { in appendToDataEventLog() 155 EventLoggingData dataItemType = (EventLoggingData) mDataSet.get(index); in appendToDataEventLog() 158 notifyItemChanged(index); in appendToDataEventLog() 164 int index = findItemIndex(TYPE_IMAGE_ASSET); in setImageAsset() local 166 if ((index > -1) && (bitmap != null)) { in setImageAsset() 167 ImageAssetData imageAssetData = (ImageAssetData) mDataSet.get(index); in setImageAsset() [all …]
|
/developers/build/prebuilts/gradle/PdfRendererBasic/kotlinApp/Application/src/main/java/com/example/android/pdfrendererbasic/ |
D | PdfRendererBasicFragment.kt | 139 outState.putInt(STATE_CURRENT_PAGE_INDEX, currentPage.index) in onSaveInstanceState() 189 private fun showPage(index: Int) { in showPage() 190 if (pdfRenderer.pageCount <= index) return in showPage() 195 currentPage = pdfRenderer.openPage(index) in showPage() 212 val index = currentPage.index in updateUi() constant 214 btnPrevious.isEnabled = (0 != index) in updateUi() 215 btnNext.isEnabled = (index + 1 < pageCount) in updateUi() 216 activity?.title = getString(R.string.app_name_with_index, index + 1, pageCount) in updateUi() 228 showPage(currentPage.index - 1) in getPageCount() 232 showPage(currentPage.index + 1) in getPageCount()
|
/developers/samples/android/ui/graphics/PdfRendererBasic/kotlinApp/Application/src/main/java/com/example/android/pdfrendererbasic/ |
D | PdfRendererBasicViewModel.kt | 94 if (page.index > 0) { in <lambda>() 95 showPage(page.index - 1) in <lambda>() 105 if (page.index + 1 < renderer.pageCount) { in <lambda>() 106 showPage(page.index + 1) in <lambda>() 126 private fun showPage(index: Int) { in <lambda>() 134 val page = renderer.openPage(index).also { in <lambda>() 146 _pageInfo.postValue(index to count) in <lambda>() 147 _previousEnabled.postValue(index > 0) in <lambda>() 148 _nextEnabled.postValue(index + 1 < count) in <lambda>()
|
/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 | 191 private void showPage(int index) { in showPage() argument 192 if (mPdfRenderer.getPageCount() <= index) { in showPage() 200 mCurrentPage = mPdfRenderer.openPage(index); in showPage() 218 int index = mCurrentPage.getIndex(); in updateUi() local 220 mButtonPrevious.setEnabled(0 != index); in updateUi() 221 mButtonNext.setEnabled(index + 1 < pageCount); in updateUi() 222 getActivity().setTitle(getString(R.string.app_name_with_index, index + 1, pageCount)); in updateUi()
|
/developers/samples/android/input/autofill/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/model/ |
D | FilledAutofillField.kt | 41 val index = it.listValue in <lambda>() constant 43 if (autofillOptions.size > index) { in <lambda>() 44 textValue = autofillOptions[index].toString() in <lambda>()
|
D | FilledAutofillFieldCollection.kt | 67 val index = autofillField.getAutofillOptionIndex(it) in <lambda>() constant 68 if (index != -1) { in <lambda>() 69 datasetBuilder.setValue(autofillId, AutofillValue.forList(index)) in <lambda>()
|
/developers/build/prebuilts/gradle/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/model/ |
D | FilledAutofillField.kt | 41 val index = it.listValue in <lambda>() constant 43 if (autofillOptions.size > index) { in <lambda>() 44 textValue = autofillOptions[index].toString() in <lambda>()
|
/developers/samples/android/renderScript/BasicRenderScript/Application/src/main/java/com/example/android/basicrenderscript/ |
D | MainActivity.java | 121 int index = -1; in doInBackground() local 124 index = mCurrentBitmap; in doInBackground() 130 mScript.forEach_saturation(mInAllocation, mOutAllocations[index]); in doInBackground() 133 mOutAllocations[index].copyTo(mBitmapsOut[index]); in doInBackground() 136 return index; in doInBackground()
|
/developers/build/prebuilts/gradle/BasicRenderScript/Application/src/main/java/com/example/android/basicrenderscript/ |
D | MainActivity.java | 121 int index = -1; in doInBackground() local 124 index = mCurrentBitmap; in doInBackground() 130 mScript.forEach_saturation(mInAllocation, mOutAllocations[index]); in doInBackground() 133 mOutAllocations[index].copyTo(mBitmapsOut[index]); in doInBackground() 136 return index; in doInBackground()
|
/developers/samples/android/deprecated/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/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/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/samples/android/tv/ChannelsPrograms/Application/src/main/java/com/example/android/tv/channelsprograms/util/ |
D | AppLinkHelper.java | 144 private static long extractLong(Uri uri, int index) { in extractLong() argument 145 return Long.valueOf(extract(uri, index)); in extractLong() 148 private static String extract(Uri uri, int index) { in extract() argument 150 if (pathSegments.isEmpty() || pathSegments.size() < index) { in extract() 153 return pathSegments.get(index); in extract()
|
/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/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/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()
|