Searched refs:index (Results 276 - 300 of 1344) sorted by relevance

<<11121314151617181920>>

/frameworks/native/opengl/libagl/
H A DTextureObjectManager.cpp272 const ssize_t index = mTextures.indexOfKey(name); local
273 if (index >= 0) {
274 sp<EGLTextureObject> result(mTextures.valueAt(index));
275 mTextures.removeItemsAt(index);
285 const ssize_t index = mTextures.indexOfKey(name); local
286 if (index >= 0) {
287 const sp<EGLTextureObject>& old = mTextures.valueAt(index);
296 mTextures.removeItemsAt(index);
318 const ssize_t index = mTextures.indexOfKey(name); local
319 if (index >
[all...]
/frameworks/support/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/widget/
H A DExploreByTouchHelperActivity.java173 protected boolean onItemClicked(int index) { argument
174 final CustomItem item = getItem(index);
186 mTouchHelper.invalidateVirtualView(index);
191 mTouchHelper.sendEventForVirtualView(index, AccessibilityEvent.TYPE_VIEW_CLICKED);
211 protected CustomItem getItem(int index) { argument
212 if ((index < 0) || (index >= mItems.size())) {
216 return mItems.get(index);
238 final int index = getItemIndexUnder(x, y);
239 if (index
[all...]
/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
H A DPlaybackControlHelper.java140 int index;
141 index = getPrimaryActionsAdapter().indexOf(action);
142 if (index >= 0) {
143 getPrimaryActionsAdapter().notifyArrayItemRangeChanged(index, 1);
145 index = getSecondaryActionsAdapter().indexOf(action);
146 if (index >= 0) {
147 getSecondaryActionsAdapter().notifyArrayItemRangeChanged(index, 1);
210 int index = mSpeed - PlaybackControlGlue.PLAYBACK_SPEED_FAST_L0;
211 speed = getFastForwardSpeeds()[index];
213 int index
[all...]
H A DPlaybackControlSupportHelper.java142 int index;
143 index = getPrimaryActionsAdapter().indexOf(action);
144 if (index >= 0) {
145 getPrimaryActionsAdapter().notifyArrayItemRangeChanged(index, 1);
147 index = getSecondaryActionsAdapter().indexOf(action);
148 if (index >= 0) {
149 getSecondaryActionsAdapter().notifyArrayItemRangeChanged(index, 1);
212 int index = mSpeed - PlaybackControlSupportGlue.PLAYBACK_SPEED_FAST_L0;
213 speed = getFastForwardSpeeds()[index];
215 int index
[all...]
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/widget/
H A DExploreByTouchHelperActivity.java173 protected boolean onItemClicked(int index) { argument
174 final CustomItem item = getItem(index);
186 mTouchHelper.invalidateVirtualView(index);
191 mTouchHelper.sendEventForVirtualView(index, AccessibilityEvent.TYPE_VIEW_CLICKED);
211 protected CustomItem getItem(int index) { argument
212 if ((index < 0) || (index >= mItems.size())) {
216 return mItems.get(index);
238 final int index = getItemIndexUnder(x, y);
239 if (index
[all...]
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
H A DPlaybackControlHelper.java140 int index;
141 index = getPrimaryActionsAdapter().indexOf(action);
142 if (index >= 0) {
143 getPrimaryActionsAdapter().notifyArrayItemRangeChanged(index, 1);
145 index = getSecondaryActionsAdapter().indexOf(action);
146 if (index >= 0) {
147 getSecondaryActionsAdapter().notifyArrayItemRangeChanged(index, 1);
210 int index = mSpeed - PlaybackControlGlue.PLAYBACK_SPEED_FAST_L0;
211 speed = getFastForwardSpeeds()[index];
213 int index
[all...]
H A DPlaybackControlSupportHelper.java142 int index;
143 index = getPrimaryActionsAdapter().indexOf(action);
144 if (index >= 0) {
145 getPrimaryActionsAdapter().notifyArrayItemRangeChanged(index, 1);
147 index = getSecondaryActionsAdapter().indexOf(action);
148 if (index >= 0) {
149 getSecondaryActionsAdapter().notifyArrayItemRangeChanged(index, 1);
212 int index = mSpeed - PlaybackControlSupportGlue.PLAYBACK_SPEED_FAST_L0;
213 speed = getFastForwardSpeeds()[index];
215 int index
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p2/src/
H A DomxVCM4P2_DecodePadMV_PVOP.c110 OMX_S8 scaleFactor, index; local
158 index = armUnPackVLC32(ppBitStream, pBitOffset,
160 armRetDataErrIf(index == -1, OMX_Sts_Err);
162 mvHorData = index - 32;
171 index = armUnPackVLC32(ppBitStream, pBitOffset, armVCM4P2_aVlcMVD);
172 armRetDataErrIf(index == -1, OMX_Sts_Err);
174 mvVerData = index - 32;
/frameworks/av/services/audiopolicy/service/
H A DAudioPolicyEffects.cpp91 ssize_t index = mInputSources.indexOfKey(aliasSource); local
92 if (index < 0) {
109 Vector <EffectDesc *> effects = mInputSources.valueAt(index)->mEffects;
139 ssize_t index = mInputs.indexOfKey(input); local
140 if (index < 0) {
143 EffectVector *inputDesc = mInputs.valueAt(index);
149 mInputs.removeItemsAt(index);
162 size_t index; local
163 for (index = 0; index < mInput
195 size_t index; local
234 ssize_t index = mOutputStreams.indexOfKey(stream); local
285 ssize_t index = mOutputSessions.indexOfKey(audioSession); local
[all...]
/frameworks/wilhelm/src/
H A Ddevices.c213 SLuint32 index; local
215 for (index = 0 ; NULL != cd->mDescriptor; ++cd) {
217 ++index;
220 *pIndex = index;
223 index = *pIndex;
226 if (0 == index) {
243 --index;
H A Dentry.c106 SLuint32 index; local
107 for (index = 0; index < pCEngine_class->mInterfaceCount; ++index, ++x,
215 LI_API SLresult liQuerySupportedInterfaces(SLuint32 index, SLInterfaceID *pInterfaceId, argument
240 if (index == 0) {
245 --index;
/frameworks/av/include/media/
H A DRingBuffer.h145 * Return a reference to the element at a given index. If the index is out of range for
148 T& operator[](size_t index);
151 * Return a const reference to the element at a given index. If the index is out of range
154 const T& operator[](size_t index) const;
329 T& RingBuffer<T>::operator[](size_t index) { argument
330 LOG_ALWAYS_FATAL_IF(index >= mBuffer.size(), "Index %zu out of bounds, size is %zu.",
331 index, mBuffer.size());
332 size_t pos = (index >
[all...]
/frameworks/av/media/libeffects/proxy/
H A DEffectProxy.cpp189 int index = pContext->index; local
190 // if the index refers to HW , do not do anything. Just return.
191 if (index == SUB_FX_HOST) {
192 ret = (*pContext->eHandle[index])->process(pContext->eHandle[index],
234 // Return error if the CMD_OFFLOAD sends the index as OFFLOAD
236 pContext->index = SUB_FX_HOST;
250 // Assign the effect context index based on isOffload field of the structure
251 pContext->index
277 int index = pContext->index; local
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
H A Dc4_17pf.cpp114 Word16 sign[], /* o : index of 4 pulses (position+sign+ampl)*4 */
151 index
231 Word16 index; local
282 index =
317 return index;
468 /* initialize 4 index for next loop. */
470 * These index have low complexity address computation because *
526 /* initialize 4 index for next loop (see i1 loop) */
530 /* index increment = STEP */
582 /* initialize 5 index fo
752 Word16 index; local
[all...]
/frameworks/base/packages/DocumentsUI/perf-tests/src/com/android/documentsui/
H A DStressProvider.java217 public static StubDocument createDirectory(int index) { argument
219 DocumentsContract.Document.MIME_TYPE_DIR, createRandomId(index), 0,
220 createRandomTime(index), -1);
228 int index) throws IOException {
230 mimeType, createRandomId(index), createRandomSize(index),
231 createRandomTime(index), thumbnail);
234 private static String createRandomId(int index) { argument
235 final Random random = new Random(index);
240 builder.append(index); // Appen
227 createFile(Context context, String mimeType, int thumbnail, int index) argument
244 createRandomSize(int index) argument
249 createRandomTime(int index) argument
[all...]
/frameworks/native/services/sensorservice/
H A DRingBuffer.h145 * Return a reference to the element at a given index. If the index is out of range for
148 T& operator[](size_t index);
151 * Return a const reference to the element at a given index. If the index is out of range
154 const T& operator[](size_t index) const;
329 T& RingBuffer<T>::operator[](size_t index) { argument
330 LOG_ALWAYS_FATAL_IF(index >= mBuffer.size(), "Index %zu out of bounds, size is %zu.",
331 index, mBuffer.size());
332 size_t pos = (index >
[all...]
/frameworks/base/core/java/android/content/res/
H A DXmlBlock.java177 public String getAttributeNamespace(int index) { argument
178 int id = nativeGetAttributeNamespace(mParseState, index);
179 if (DEBUG) System.out.println("getAttributeNamespace of " + index + " = " + id);
182 throw new IndexOutOfBoundsException(String.valueOf(index));
184 public String getAttributeName(int index) { argument
185 int id = nativeGetAttributeName(mParseState, index);
186 if (DEBUG) System.out.println("getAttributeName of " + index + " = " + id);
188 throw new IndexOutOfBoundsException(String.valueOf(index));
190 public String getAttributePrefix(int index) { argument
200 public String getAttributeValue(int index) { argument
214 getAttributeType(int index) argument
217 isAttributeDefault(int index) argument
310 getAttributeNameResource(int index) argument
[all...]
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
H A DDisplayModifier.java54 int index;
55 for (index = 0; index < gTriPts.length; index++) {
56 gLinePts[index] = gTriPts[index];
60 gLinePts[index + 0] = 150;
61 gLinePts[index + 1] = val;
62 gLinePts[index + 2] = 300;
63 gLinePts[index
425 getMapAtIndex(int index) argument
[all...]
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DNuPlayerCCDecoder.cpp137 sp<AMessage> NuPlayer::CCDecoder::getTrackInfo(size_t index) const {
138 if (!isTrackValid(index)) {
144 CCTrack track = mTracks[index];
174 status_t NuPlayer::CCDecoder::selectTrack(size_t index, bool select) { argument
175 if (!isTrackValid(index)) {
180 if (mSelectedTrack == (ssize_t)index) {
181 ALOGE("track %zu already selected", index);
184 ALOGV("selected track %zu", index);
185 mSelectedTrack = index;
187 if (mSelectedTrack != (ssize_t)index) {
475 ssize_t index = mTrackIndices.indexOfKey(track); local
503 ssize_t index = mCCMap.indexOfKey(timeUs); local
[all...]
/frameworks/av/media/libmedia/
H A DIMediaSource.cpp151 uint64_t index = reply.readUint64(); local
152 ALOGV("Received %s index %llu",
154 (unsigned long long) index);
161 mMemoryCache.insert(index, mem);
163 mem = mMemoryCache.lookup(index);
165 "Received invalid IMemory index for shared buffer: %llu",
166 (unsigned long long)index);
230 sp<IMemory> lookup(uint64_t index) { argument
231 auto p = mIndexToMemory.find(index);
233 ALOGE("cannot find index!");
239 insert(uint64_t index, const sp<IMemory> &mem) argument
398 uint64_t index = mIndexCache.lookup(transferBuf->mMemory); local
[all...]
/frameworks/av/media/libstagefright/mpeg2ts/
H A DMPEG2TSExtractor.cpp124 sp<IMediaSource> MPEG2TSExtractor::getTrack(size_t index) { argument
125 if (index >= mSourceImpls.size()) {
131 return new MPEG2TSSource(this, mSourceImpls.editItemAt(index),
132 (mSeekSyncPoints == &mSyncPoints.editItemAt(index)));
136 size_t index, uint32_t /* flags */) {
137 return index < mSourceImpls.size()
138 ? mSourceImpls.editItemAt(index)->getFormat() : NULL;
322 size_t index = 0; local
323 for (; index < mSeekSyncPoints->size(); ++index) {
135 getTrackMetaData( size_t index, uint32_t ) argument
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DStaggeredGridDefault.java100 * next row of last item. Search until row index wrapped.
108 int index = indexLimit;
122 index = i;
138 index = i;
145 indices[1] = index;
152 * next row of last item. Search until row index wrapped.
160 int index = indexLimit;
175 index = i;
190 index = i;
197 indices[1] = index;
[all...]
/frameworks/av/drm/drmserver/
H A DDrmManager.cpp59 for (size_t index = 0; index < kMaxNumUniqueIds; ++index) {
60 int temp = (random + index) % kMaxNumUniqueIds;
141 for (size_t index = 0; index < plugInIdList.size(); index++) {
142 IDrmEngine& rDrmEngine = mPlugInManager.getPlugIn(plugInIdList.itemAt(index));
152 for (size_t index = 0; index < plugInIdLis
[all...]
/frameworks/av/media/libstagefright/omx/
H A DSoftOMXComponent.cpp126 OMX_INDEXTYPE index,
132 return me->getParameter(index, params);
138 OMX_INDEXTYPE index,
144 return me->setParameter(index, params);
150 OMX_INDEXTYPE index,
156 return me->getConfig(index, params);
162 OMX_INDEXTYPE index,
168 return me->setConfig(index, params);
175 OMX_INDEXTYPE *index) {
180 return me->getExtensionIndex(name, index);
124 GetParameterWrapper( OMX_HANDLETYPE component, OMX_INDEXTYPE index, OMX_PTR params) argument
136 SetParameterWrapper( OMX_HANDLETYPE component, OMX_INDEXTYPE index, OMX_PTR params) argument
148 GetConfigWrapper( OMX_HANDLETYPE component, OMX_INDEXTYPE index, OMX_PTR params) argument
160 SetConfigWrapper( OMX_HANDLETYPE component, OMX_INDEXTYPE index, OMX_PTR params) argument
172 GetExtensionIndexWrapper( OMX_HANDLETYPE component, OMX_STRING name, OMX_INDEXTYPE *index) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DViewAnimator.java98 * @param whichChild the index of the child view to display
118 * Returns the index of the currently displayed child view.
146 * @param childIndex The index of the child to be shown.
174 * @param childIndex The index of the child to be shown.
182 public void addView(View child, int index, ViewGroup.LayoutParams params) { argument
183 super.addView(child, index, params);
189 if (index >= 0 && mWhichChild >= index) {
190 // Added item above current one, increment the index of the displayed child
204 final int index
211 removeViewAt(int index) argument
[all...]

Completed in 629 milliseconds

<<11121314151617181920>>