/frameworks/base/core/java/android/util/ |
H A D | ArraySet.java | 86 int index = ContainerHelpers.binarySearch(mHashes, N, hash); 89 if (index < 0) { 90 return index; 93 // If the key at the returned index matches, that's what we want. 94 if (key.equals(mArray[index])) { 95 return index; 98 // Search for a matching key after the index. 100 for (end = index + 1; end < N && mHashes[end] == hash; end++) { 104 // Search for a matching key before the index. 105 for (int i = index 323 valueAt(int index) argument 462 removeAt(int index) argument [all...] |
/frameworks/base/core/java/android/hardware/hdmi/ |
H A D | HdmiRecordSources.java | 70 /* package */ abstract int extraParamToByteArray(byte[] data, int index); argument 76 /* package */ final int toByteArray(boolean includeType, byte[] data, int index) { argument 86 data[index++] = (byte) mSourceType; 88 extraParamToByteArray(data, index); 115 int extraParamToByteArray(byte[] data, int index) { argument 166 int toByteArray(byte[] data, int index); argument 198 public int toByteArray(byte[] data, int index) { argument 200 index); 227 public int toByteArray(byte[] data, int index) { argument 228 return threeFieldsToSixBytes(mTransportStreamId, mProgramNumber, 0, data, index); 261 toByteArray(byte[] data, int index) argument 290 toByteArray(byte[] data, int index) argument 331 toByteArray(byte[] data, int index) argument 528 extraParamToByteArray(byte[] data, int index) argument 638 extraParamToByteArray(byte[] data, int index) argument 688 extraParamToByteArray(byte[] data, int index) argument 732 extraParamToByteArray(byte[] data, int index) argument 742 threeFieldsToSixBytes(int first, int second, int third, byte[] data, int index) argument 750 shortToByteArray(short value, byte[] byteArray, int index) argument [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
H A D | UsimDataDownloadHandler.java | 129 int index = 0; 132 envelope[index++] = (byte) BER_SMS_PP_DOWNLOAD_TAG; 134 envelope[index++] = (byte) 0x81; // length 128-255 encoded as 0x81 + length 136 envelope[index++] = (byte) bodyLength; 139 envelope[index++] = (byte) (0x80 | ComprehensionTlvTag.DEVICE_IDENTITIES.value()); 140 envelope[index++] = (byte) 2; 141 envelope[index++] = (byte) DEV_ID_NETWORK; 142 envelope[index++] = (byte) DEV_ID_UICC; 146 envelope[index++] = (byte) ComprehensionTlvTag.ADDRESS.value(); 147 envelope[index [all...] |
/frameworks/rs/ |
H A D | rsMesh.h | 67 void setVertexBuffer(Allocation *vb, uint32_t index) { argument 68 mVertexBuffers[index].set(vb); 69 mHal.state.vertexBuffers[index] = vb; 72 void setPrimitive(Allocation *idx, RsPrimitive prim, uint32_t index) { argument 73 mIndexBuffers[index].set(idx); 74 mHal.state.indexBuffers[index] = idx; 75 mHal.state.primitives[index] = prim;
|
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/ |
H A D | dec_gain.cpp | 111 index = AMR mode of type enum Mode 184 Word16 index, /* i : index of quantization. */ 204 index = shl(index, 2, pOverflow); 208 p = &table_gain_highrates[index]; 219 index += (1 ^ evenSubfr) << 1; /* evenSubfr is 0 or 1 */ 221 if (index > (MR475_VQ_SIZE*4 - 2)) 223 index = (MR475_VQ_SIZE * 4 - 2); /* avoid possible buffer overflow */ 226 p = &table_gain_MR475[index]; 181 Dec_gain( gc_predState *pred_state, enum Mode mode, Word16 index, Word16 code[], Word16 evenSubfr, Word16 * gain_pit, Word16 * gain_cod, Flag * pOverflow ) argument [all...] |
H A D | d2_9pf.h | 109 Word16 index, /* i : Positions of the 2 pulses. */
|
H A D | dec_lag6.h | 107 Word16 index, /* input : received pitch index */
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
H A D | BridgeLayoutParamsMapAttributes.java | 59 public String getAttributeName(int index) { argument 64 public String getAttributeValue(int index) { argument 74 public int getAttributeNameResource(int index) { argument 115 public int getAttributeListValue(int index, argument 121 public boolean getAttributeBooleanValue(int index, boolean defaultValue) { argument 126 public int getAttributeResourceValue(int index, int defaultValue) { argument 131 public int getAttributeIntValue(int index, int defaultValue) { argument 136 public int getAttributeUnsignedIntValue(int index, int defaultValue) { argument 141 public float getAttributeFloatValue(int index, float defaultValue) { argument
|
/frameworks/data-binding/extensions/library/src/main/java/android/databinding/ |
H A D | ObservableArrayMap.java | 62 int index = indexOfKey(key); 63 if (index >= 0) { 65 removeAt(index); 85 public V removeAt(int index) { argument 86 K key = keyAt(index); 87 V value = super.removeAt(index); 95 public V setValueAt(int index, V value) { argument 96 K key = keyAt(index); 97 V oldValue = super.setValueAt(index, value);
|
/frameworks/rs/driver/runtime/ |
H A D | rs_mesh.c | 29 rsgMeshGetVertexAllocation(rs_mesh m, uint32_t index) { argument 31 if (mesh == NULL || index >= mesh->mHal.state.vertexBuffersCount) { 35 rs_allocation returnAlloc = {mesh->mHal.state.vertexBuffers[index]}; 42 rsgMeshGetIndexAllocation(rs_mesh m, uint32_t index) { argument 44 if (mesh == NULL || index >= mesh->mHal.state.primitivesCount) { 48 rs_allocation returnAlloc = {mesh->mHal.state.indexBuffers[index]}; 55 rsgMeshGetPrimitive(rs_mesh m, uint32_t index) { argument 57 if (mesh == NULL || index >= mesh->mHal.state.primitivesCount) { 60 return mesh->mHal.state.primitives[index];
|
H A D | rs_element.c | 17 rsElementGetSubElement(rs_element e, uint32_t index) { argument 19 if (element == NULL || index >= element->mHal.state.fieldsCount) { 23 rs_element returnElem = {element->mHal.state.fields[index]}; 30 rsElementGetSubElementNameLength(rs_element e, uint32_t index) { argument 32 if (element == NULL || index >= element->mHal.state.fieldsCount) { 35 return element->mHal.state.fieldNameLengths[index]; 39 rsElementGetSubElementName(rs_element e, uint32_t index, char *name, uint32_t nameLength) { argument 41 if (element == NULL || index >= element->mHal.state.fieldsCount || 46 uint32_t numToCopy = element->mHal.state.fieldNameLengths[index]; 53 const char *nameSource = element->mHal.state.fieldNames[index]; 61 rsElementGetSubElementArraySize(rs_element e, uint32_t index) argument 70 rsElementGetSubElementOffsetBytes(rs_element e, uint32_t index) argument [all...] |
/frameworks/support/v7/recyclerview/src/android/support/v7/util/ |
H A D | TileList.java | 42 final int index = mTiles.indexOfKey(startPosition); 43 if (index < 0) { 46 mLastAccessedTile = mTiles.valueAt(index); 59 public Tile<T> getAtIndex(int index) { argument 60 return mTiles.valueAt(index); 64 final int index = mTiles.indexOfKey(newTile.mStartPosition); 65 if (index < 0) { 69 Tile<T> oldTile = mTiles.valueAt(index); 70 mTiles.setValueAt(index, newTile);
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p2/src/ |
H A D | armVCM4P2_BlockMatch_Half.c | 90 OMX_INT outer, inner, count, index; local 110 for (outer = 0, count = 0,index = 0; 112 outer++, index += refWidth - BlockSize) 114 for (inner = 0; inner < BlockSize; inner++, count++, index++) 116 refSAD += armAbs (pTempSrcRefBuf[index] - pSrcCurrBuf[count]); 165 for (outer = 0, count = 0, candSAD = 0,index = 0; 167 outer++, index += refWidth - BlockSize) 169 for (inner = 0; inner < BlockSize; inner++, count++,index++) 172 pTempSrcRefBuf[index] 173 + pTempSrcRefBuf[index [all...] |
/frameworks/base/core/java/android/database/ |
H A D | Observable.java | 67 int index = mObservers.indexOf(observer); 68 if (index == -1) { 71 mObservers.remove(index);
|
/frameworks/compile/slang/tests/P_reduce_general_input/ |
H A D | ScriptField_MyStruct.java.expect | 117 private void copyToArray(Item i, int index) { 119 mIOBuffer.reset(index * mElement.getBytesSize()); 123 public synchronized void set(Item i, int index, boolean copyNow) { 125 mItemArray[index] = i; 127 copyToArray(i, index); 130 mAllocation.setFromFieldPacker(index, fp); 135 public synchronized Item get(int index) { 137 return mItemArray[index]; 140 public synchronized void set_f(int index, float v, boolean copyNow) { 143 if (mItemArray[index] [all...] |
/frameworks/compile/slang/tests/P_reduce_general_inputs/ |
H A D | ScriptField_MyStruct.java.expect | 117 private void copyToArray(Item i, int index) { 119 mIOBuffer.reset(index * mElement.getBytesSize()); 123 public synchronized void set(Item i, int index, boolean copyNow) { 125 mItemArray[index] = i; 127 copyToArray(i, index); 130 mAllocation.setFromFieldPacker(index, fp); 135 public synchronized Item get(int index) { 137 return mItemArray[index]; 140 public synchronized void set_f(int index, float v, boolean copyNow) { 143 if (mItemArray[index] [all...] |
/frameworks/compile/slang/tests/P_reduce_general_result/ |
H A D | ScriptField_MyStruct.java.expect | 117 private void copyToArray(Item i, int index) { 119 mIOBuffer.reset(index * mElement.getBytesSize()); 123 public synchronized void set(Item i, int index, boolean copyNow) { 125 mItemArray[index] = i; 127 copyToArray(i, index); 130 mAllocation.setFromFieldPacker(index, fp); 135 public synchronized Item get(int index) { 137 return mItemArray[index]; 140 public synchronized void set_f(int index, float v, boolean copyNow) { 143 if (mItemArray[index] [all...] |
/frameworks/base/media/java/android/media/ |
H A D | MediaCodecList.java | 51 * the given {@code index} in the regular list. 57 public static final MediaCodecInfo getCodecInfoAt(int index) { argument 59 if (index < 0 || index > sRegularCodecInfos.length) { 62 return sRegularCodecInfos[index]; 85 for (int index = 0; index < count; index++) { 87 MediaCodecInfo info = getNewCodecInfoAt(index); 105 private static MediaCodecInfo getNewCodecInfoAt(int index) { argument 117 getCodecName(int index) argument 119 isEncoder(int index) argument 121 getSupportedTypes(int index) argument 124 getCodecCapabilities(int index, String type) argument [all...] |
/frameworks/base/tools/split-select/ |
H A D | RuleGenerator.cpp | 35 sp<Rule> RuleGenerator::generateDensity(const Vector<int>& allDensities, size_t index) { argument 36 if (allDensities[index] != ResTable_config::DENSITY_ANY) { 51 if (index > 0) { 55 gt->longArgs.add(findMid(allDensities[index - 1], allDensities[index]) - 1); 59 if (index + 1 < allDensities.size() && allDensities[index + 1] != ResTable_config::DENSITY_ANY) { 63 lt->longArgs.add(findMid(allDensities[index], allDensities[index + 1])); 76 sp<Rule> RuleGenerator::generateAbi(const Vector<abi::Variant>& splitAbis, size_t index) { argument 98 generate(const SortedVector<SplitDescription>& group, size_t index) argument [all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/common/include/ |
H A D | d_gain_c.h | 45 Purpose : Decode the fixed codebook gain using the received index. 102 * Purpose : Decode the fixed codebook gain using the received index. 103 * Description : The received index gives the gain correction factor 113 Word16 index, /* i : received quantization index */
|
/frameworks/base/core/java/android/webkit/ |
H A D | WebBackForwardList.java | 35 * Get the index of the current history item. This index can be used to 36 * directly index into the array list. 37 * @return The current index from 0...n or -1 if the list is empty. 42 * Get the history item at the given index. The index range is from 0...n 44 * @param index The index to retrieve. 46 public abstract WebHistoryItem getItemAtIndex(int index); argument
|
/frameworks/base/libs/hwui/utils/ |
H A D | RingBuffer.h | 53 T& operator[](size_t index) { argument 54 return mBuffer[(mHead + index + 1) % mCount]; 57 const T& operator[](size_t index) const { 58 return mBuffer[(mHead + index + 1) % mCount];
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
H A D | UnmodifiableSparseArray.java | 45 public int keyAt(int index) { argument 46 return mArray.keyAt(index); 49 public E valueAt(int index) { argument 50 return mArray.valueAt(index);
|
/frameworks/native/libs/binder/ |
H A D | Debug.cpp | 218 size_t index; local 225 for (index = 0; index < alignment || (alignment == 0 && index < bytesPerLine); index++) { 228 if (index == 0 && word > 0 && alignment > 0) { 233 const unsigned char val = *(pos+startIndex-index); 242 if (index == 0 && word > 0) { 246 if (index == 0) { 250 const unsigned char val = *(pos+startIndex-index); [all...] |
/frameworks/native/opengl/tools/glgen/stubs/gles11/ |
H A D | glGetProgramResourceName.cpp | 1 /* void glGetProgramResourceName ( GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name ) */ 4 (JNIEnv *_env, jobject _this, jint program, jint programInterface, jint index) { 3 android_glGetProgramResourceName(JNIEnv *_env, jobject _this, jint program, jint programInterface, jint index) argument
|