/frameworks/support/v4/java/android/support/v4/util/ |
H A D | SparseArrayCompat.java | 116 * Removes the mapping at the specified index. 118 public void removeAt(int index) { argument 119 if (mValues[index] != DELETED) { 120 mValues[index] = DELETED; 128 * @param index Index to begin at 131 public void removeAtRange(int index, int size) { argument 132 final int end = Math.min(mSize, index + size); 133 for (int i = index; i < end; i++) { 231 * Given an index in the range <code>0...size()-1</code>, returns 232 * the key from the <code>index</cod 235 keyAt(int index) argument 249 valueAt(int index) argument 262 setValueAt(int index, E value) argument [all...] |
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
H A D | PositionMap.java | 118 * Removes the mapping at the specified index. 120 public void removeAt(int index) { argument 121 if (mValues[index] != DELETED) { 122 mValues[index] = DELETED; 130 * @param index Index to begin at 133 public void removeAtRange(int index, int size) { argument 134 final int end = Math.min(mSize, index + size); 135 for (int i = index; i < end; i++) { 241 * Given an index in the range <code>0...size()-1</code>, returns 242 * the key from the <code>index</cod 245 keyAt(int index) argument 259 valueAt(int index) argument 272 setValueAt(int index, E value) argument [all...] |
/frameworks/av/media/img_utils/src/ |
H A D | TiffWriter.cpp | 156 ssize_t index = mTagMaps[i].indexOfKey(tag); local 157 if (index >= 0) { 158 definition = mTagMaps[i][index]; 170 ssize_t index = mNamedIfds.indexOfKey(ifd); local 171 if (index < 0) { 175 return mNamedIfds[index]->getEntry(tag); 179 ssize_t index = mNamedIfds.indexOfKey(ifd); local 180 if (index >= 0) { 181 mNamedIfds[index]->removeEntry(tag); 195 ssize_t index local 208 ssize_t index = mNamedIfds.indexOfKey(ifd); local 218 ssize_t index = mNamedIfds.indexOfKey(ifd); local 241 ssize_t index = mNamedIfds.indexOfKey(ifd); local 330 ssize_t index = mNamedIfds.indexOfKey(ifd); local [all...] |
/frameworks/native/opengl/tools/glgen/src/ |
H A D | JniCodeEmitter.java | 227 int index = 1; 229 while (index < checks.length) { 230 if (checks[index].equals("nullAllowed")) { 233 index = skipOneCheck(checks, index); 242 int index = 1; 244 while (index < checks.length) { 245 if (checks[index].startsWith("check")) { 248 index = skipOneCheck(checks, index); 270 skipOneCheck(String[] checks, int index) argument [all...] |
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | NuPlayerCCDecoder.cpp | 130 sp<AMessage> NuPlayer::CCDecoder::getTrackInfo(size_t index) const { 131 if (!isTrackValid(index)) { 141 bool isDefaultAuto = (mFoundChannels[index] == 0); 149 status_t NuPlayer::CCDecoder::selectTrack(size_t index, bool select) { argument 150 if (!isTrackValid(index)) { 155 if (mSelectedTrack == (ssize_t)index) { 156 ALOGE("track %zu already selected", index); 159 ALOGV("selected track %zu", index); 160 mSelectedTrack = index; 162 if (mSelectedTrack != (ssize_t)index) { 320 filterCCBuf( const sp<ABuffer> &ccBuf, size_t index) argument 358 ssize_t index = mCCMap.indexOfKey(timeUs); local [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p2/src/ |
H A D | armVCM4P2_BlockMatch_Integer.c | 98 OMX_INT outer, inner, count,index; local 156 for (outer = 0, count = 0, index = 0, candSAD = 0; 158 outer++, index += refWidth - BlockSize) 160 for (inner = 0; inner < BlockSize; inner++, count++, index++) 162 candSAD += armAbs (pTempSrcRefBuf[index] - pSrcCurrBuf[count]);
|
H A D | omxVCM4P2_EncodeMV.c | 57 * pBitOffset - index of the first free (next available) bit in the stream 76 * pBitOffset - updated index of the next available bit position in stream 106 OMX_U8 scaleFactor, index; local 196 /* The index is actually calculate as 197 index = ((float) (mvHorData/2) + 16) * 2, 201 index = mvHorData + 32; 202 armPackVLC32 (ppBitStream, pBitOffset, armVCM4P2_aVlcMVD[index]); 208 /* The index is actually calculate as 209 index = ((float) (mvVerData/2) + 16) * 2, 213 index [all...] |
H A D | omxVCM4P2_DecodePadMV_PVOP.c | 110 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/media/libstagefright/httplive/ |
H A D | M3UParser.h | 46 bool itemAt(size_t index, AString *uri, sp<AMessage> *meta = NULL); 49 status_t selectTrack(size_t index, bool select); 51 sp<AMessage> getTrackInfo(size_t index) const; 55 bool getTypeURI(size_t index, const char *key, AString *uri) const; 56 bool hasType(size_t index, const char *key) const;
|
/frameworks/av/media/libstagefright/include/ |
H A D | SimpleSoftOMXComponent.h | 69 OMX_INDEXTYPE index, OMX_PTR params); 72 OMX_INDEXTYPE index, const OMX_PTR params); 101 OMX_INDEXTYPE index, const OMX_PTR params) const; 107 OMX_INDEXTYPE index, OMX_PTR params); 110 OMX_INDEXTYPE index, const OMX_PTR params);
|
/frameworks/base/core/java/android/hardware/usb/ |
H A D | UsbDeviceConnection.java | 130 * This method transfers data starting from index 0 in the buffer. 138 * @param index index field for this transaction 147 int index, byte[] buffer, int length, int timeout) { 148 return controlTransfer(requestType, request, value, index, buffer, 0, length, timeout); 162 * @param index index field for this transaction 165 * @param offset the index of the first byte in the buffer to send or receive 171 public int controlTransfer(int requestType, int request, int value, int index, argument 174 return native_control_request(requestType, request, value, index, 146 controlTransfer(int requestType, int request, int value, int index, byte[] buffer, int length, int timeout) argument 260 native_control_request(int requestType, int request, int value, int index, byte[] buffer, int offset, int length, int timeout) argument [all...] |
/frameworks/av/media/libmedia/ |
H A D | MediaProfiles.cpp | 480 int index = -1; local 525 index = getCamcorderProfileIndex(cameraId, refQuality); 527 if (index == -1) { 568 int index = getCamcorderProfileIndex(cameraId, profile->mQuality); local 569 if (index != -1) { 572 CHECK(index == refIndex); 910 int index = -1; local 913 index = i; 917 if (index == -1) { 922 if (!strcmp("enc.vid.width.min", name)) return mVideoEncoders[index] 947 int index = -1; local 990 int index = -1; local 1008 int index = getCamcorderProfileIndex(cameraId, quality); local 1048 ssize_t index = mStartTimeOffsets.indexOfKey(cameraId); local [all...] |
/frameworks/base/services/core/java/com/android/server/hdmi/ |
H A D | HotplugDetectionAction.java | 156 int index = -1; 157 while ((index = removed.nextSetBit(index + 1)) != -1) { 158 if (index == Constants.ADDR_AUDIO_SYSTEM) { 168 Slog.v(TAG, "Remove device by hot-plug detection:" + index); 169 removeDevice(index); 179 index = -1; 180 while ((index = added.nextSetBit(index + 1)) != -1) { 181 Slog.v(TAG, "Add device by hot-plug detection:" + index); [all...] |
/frameworks/native/opengl/libagl/ |
H A D | TextureObjectManager.cpp | 272 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/av/services/audioflinger/ |
H A D | PatchPanel.cpp | 165 for (size_t index = 0; *handle != 0 && index < mPatches.size(); index++) { 166 if (*handle == mPatches[index]->mHandle) { 168 halHandle = mPatches[index]->mHalHandle; 169 Patch *removedPatch = mPatches[index]; 170 mPatches.removeAt(index); 182 ssize_t index = audioflinger->mAudioHwDevs.indexOfKey(srcModule); local 183 if (index < 0) { 188 AudioHwDevice *audioHwDevice = audioflinger->mAudioHwDevs.valueAt(index); 305 ssize_t index = audioflinger->mAudioHwDevs.indexOfKey(srcModule); local 516 size_t index; local 539 ssize_t index = audioflinger->mAudioHwDevs.indexOfKey(srcModule); local 574 ssize_t index = audioflinger->mAudioHwDevs.indexOfKey(srcModule); local 626 ssize_t index = audioflinger->mAudioHwDevs.indexOfKey(module); local [all...] |
/frameworks/av/services/audiopolicy/service/ |
H A D | AudioPolicyEffects.cpp | 91 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 D | devices.c | 216 SLuint32 index; local 218 for (index = 0 ; NULL != cd->mDescriptor; ++cd) { 220 ++index; 223 *pIndex = index; 226 index = *pIndex; 229 if (0 == index) { 246 --index;
|
H A D | entry.c | 106 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 D | RingBuffer.h | 145 * 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 D | EffectProxy.cpp | 189 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 D | c4_17pf.cpp | 114 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/core/java/android/content/res/ |
H A D | XmlBlock.java | 177 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 D | DisplayModifier.java | 54 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/libstagefright/mpeg2ts/ |
H A D | MPEG2TSExtractor.cpp | 123 sp<MediaSource> MPEG2TSExtractor::getTrack(size_t index) { argument 124 if (index >= mSourceImpls.size()) { 130 return new MPEG2TSSource(this, mSourceImpls.editItemAt(index), 131 (mSeekSyncPoints == &mSyncPoints.editItemAt(index))); 135 size_t index, uint32_t /* flags */) { 136 return index < mSourceImpls.size() 137 ? mSourceImpls.editItemAt(index)->getFormat() : NULL; 304 size_t index = 0; local 305 for (; index < mSeekSyncPoints->size(); ++index) { 134 getTrackMetaData( size_t index, uint32_t ) argument [all...] |
/frameworks/base/services/core/java/com/android/server/input/ |
H A D | PersistentDataStore.java | 355 int index = Collections.binarySearch(mKeyboardLayouts, keyboardLayout); 356 if (index >= 0) { 359 mKeyboardLayouts.add(-index - 1, keyboardLayout); 367 int index = Collections.binarySearch(mKeyboardLayouts, keyboardLayout); 368 if (index < 0) { 371 mKeyboardLayouts.remove(index); 372 updateCurrentKeyboardLayoutIfRemoved(keyboardLayout, index); 380 int index = removedIndex; 381 if (index == mKeyboardLayouts.size()) { 382 index [all...] |