/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | SparseArrayObjectAdapter.java | 45 * Returns the index for the given item in the adapter. 55 * Returns the index for the given key in the adapter. 82 int index = mItems.indexOfKey(key); 83 if (index >= 0) { 84 if (mItems.valueAt(index) != item) { 85 mItems.setValueAt(index, item); 86 notifyItemRangeChanged(index, 1); 90 index = mItems.indexOfKey(key); 91 notifyItemRangeInserted(index, 1); 101 int index [all...] |
H A D | ArrayObjectAdapter.java | 55 public Object get(int index) { argument 56 return mItems.get(index); 60 * Returns the index for the first occurrence of item in the adapter, or -1 if 92 * Inserts an item into this adapter at the specified index. 93 * If the index is >= {@link #size} an exception will be thrown. 95 * @param index The index at which the item should be inserted. 98 public void add(int index, Object item) { argument 99 mItems.add(index, item); 100 notifyItemRangeInserted(index, 110 addAll(int index, Collection items) argument [all...] |
/frameworks/av/media/libstagefright/codecs/amrwb/src/ |
H A D | q_pulse.h | 66 void dec_1p_N1(int32 index, int16 N, int16 offset, int16 pos[]); 67 void dec_2p_2N1(int32 index, int16 N, int16 offset, int16 pos[]); 68 void dec_3p_3N1(int32 index, int16 N, int16 offset, int16 pos[]); 69 void dec_4p_4N1(int32 index, int16 N, int16 offset, int16 pos[]); 70 void dec_4p_4N(int32 index, int16 N, int16 offset, int16 pos[]); 71 void dec_5p_5N(int32 index, int16 N, int16 offset, int16 pos[]); 72 void dec_6p_6N_2(int32 index, int16 N, int16 offset, int16 pos[]);
|
H A D | dec_alg_codebook.cpp | 118 void dec_1p_N1(int32 index, int16 N, int16 offset, int16 pos[]) argument 127 pos1 = ((index & mask) + offset); 129 i = ((index >> N) & 1L); /* i = ((index >> N) & 1); */ 145 void dec_2p_2N1(int32 index, int16 N, int16 offset, int16 pos[]) argument 154 /* pos1 = (((index >> N) & mask) + offset); */ 155 pos1 = (int16)(add_int32((shr_int32(index, N) & mask), (int32)(offset))); 157 i = (index >> tmp) & 1L; /* i = (index >> (2*N)) & 1; */ 158 pos2 = add_int16((int16)(index 192 dec_3p_3N1(int32 index, int16 N, int16 offset, int16 pos[]) argument 229 dec_4p_4N1(int32 index, int16 N, int16 offset, int16 pos[]) argument 265 dec_4p_4N(int32 index, int16 N, int16 offset, int16 pos[]) argument 316 dec_5p_5N(int32 index, int16 N, int16 offset, int16 pos[]) argument 350 dec_6p_6N_2(int32 index, int16 N, int16 offset, int16 pos[]) argument [all...] |
/frameworks/support/v4/java/android/support/v4/util/ |
H A D | SimpleArrayMap.java | 69 int index = ContainerHelpers.binarySearch(mHashes, N, hash); 72 if (index < 0) { 73 return index; 76 // If the key at the returned index matches, that's what we want. 77 if (key.equals(mArray[index<<1])) { 78 return index; 81 // Search for a matching key after the index. 83 for (end = index + 1; end < N && mHashes[end] == hash; end++) { 87 // Search for a matching key before the index. 88 for (int i = index 332 keyAt(int index) argument 341 valueAt(int index) argument 351 setValueAt(int index, V value) argument 464 removeAt(int index) argument [all...] |
/frameworks/base/core/java/android/util/ |
H A D | IntArray.java | 64 * @throws IndexOutOfBoundsException when index < 0 || index > size() 66 public void add(int index, int value) { argument 67 if (index < 0 || index > mSize) { 73 if (mSize - index != 0) { 74 System.arraycopy(mValues, index, mValues, index + 1, mSize - index); 77 mValues[index] 143 get(int index) argument 167 remove(int index) argument [all...] |
H A D | XmlPullAttributes.java | 37 public String getAttributeName(int index) { argument 38 return mParser.getAttributeName(index); 41 public String getAttributeValue(int index) { argument 42 return mParser.getAttributeValue(index); 53 public int getAttributeNameResource(int index) { argument 96 public int getAttributeListValue(int index, argument 99 getAttributeValue(index), options, defaultValue); 102 public boolean getAttributeBooleanValue(int index, boolean defaultValue) { argument 104 getAttributeValue(index), defaultValue); 107 public int getAttributeResourceValue(int index, in argument 112 getAttributeIntValue(int index, int defaultValue) argument 117 getAttributeUnsignedIntValue(int index, int defaultValue) argument 122 getAttributeFloatValue(int index, float defaultValue) argument [all...] |
H A D | ArrayMap.java | 97 int index = ContainerHelpers.binarySearch(mHashes, N, hash); 100 if (index < 0) { 101 return index; 104 // If the key at the returned index matches, that's what we want. 105 if (key.equals(mArray[index<<1])) { 106 return index; 109 // Search for a matching key after the index. 111 for (end = index + 1; end < N && mHashes[end] == hash; end++) { 115 // Search for a matching key before the index. 116 for (int i = index 394 keyAt(int index) argument 403 valueAt(int index) argument 413 setValueAt(int index, V value) argument 595 removeAt(int index) argument [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
H A D | GrowingArrayUtils.java | 115 * Inserts an element into the array at the specified index, growing the array if there is no 125 public static <T> T[] insert(T[] array, int currentSize, int index, T element) { argument 129 System.arraycopy(array, index, array, index + 1, currentSize - index); 130 array[index] = element; 137 System.arraycopy(array, 0, newArray, 0, index); 138 newArray[index] = element; 139 System.arraycopy(array, index, newArray, index 146 insert(int[] array, int currentSize, int index, int element) argument 165 insert(long[] array, int currentSize, int index, long element) argument 184 insert(boolean[] array, int currentSize, int index, boolean element) argument [all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/ |
H A D | dec_lag3.cpp | 63 index -- Word16 -- received pitch index 93 the received adaptive codebook index. 186 void Dec_lag3(Word16 index, /* i : received pitch index */ argument 204 if (index < 197) 207 tmp_lag = index + 2; 230 index, 242 *T0 = index - 112; 258 index, [all...] |
H A D | d1035pf.h | 106 Word16 index[], /* (i) : index of 10 pulses (sign+position) */
|
H A D | d2_11pf.h | 85 Word16 index, /* i : Positions of the 2 pulses. */
|
H A D | d3_14pf.h | 106 Word16 index, /* i : Positions of the 3 pulses. */
|
H A D | d4_17pf.h | 107 Word16 index, /* i : Positions of the 4 pulses. */
|
H A D | d8_31pf.h | 107 Word16 index[], /* i : index of 8 pulses (sign+position) */
|
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
H A D | Duration.java | 57 int index = 0; 67 index++; 70 index++; 73 if (len < index) { 77 c = str.charAt(index); 80 "Duration.parse(str='" + str + "') expected 'P' at index=" 81 + index); 83 index++; 84 c = str.charAt(index); 86 index [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/ |
H A D | BridgeTypedArray.java | 76 // Contains ids that are @empty. We still store null in mResourceData for that index, since we 94 * @param index the index of the value in the TypedArray 99 public void bridgeSetValue(int index, String name, boolean isFramework, ResourceValue value) { argument 100 mResourceData[index] = value; 101 mNames[index] = name; 102 mIsFramework[index] = isFramework; 146 int index = 1; 149 mIndices[index++] = i; 178 * Retrieve the styled string value for the attribute at <var>index</va 186 getText(int index) argument 200 getString(int index) argument 220 getBoolean(int index, boolean defValue) argument 235 getInt(int index, int defValue) argument 256 getFloat(int index, float defValue) argument 284 getColor(int index, int defValue) argument 303 getColorStateList(int index) argument 312 getComplexColor(int index) argument 330 getInteger(int index, int defValue) argument 351 getDimension(int index, float defValue) argument 391 getDimensionPixelOffset(int index, int defValue) argument 414 getDimensionPixelSize(int index, int defValue) argument 444 getLayoutDimension(int index, String name) argument 462 getLayoutDimension(int index, int defValue) argument 467 getDimension(int index, @Nullable String name) argument 512 getFraction(int index, int base, int pbase, float defValue) argument 546 getResourceId(int index, int defValue) argument 659 getThemeAttributeId(int index, int defValue) argument 675 getDrawable(int index) argument 696 getTextArray(int index) argument 738 getValue(int index, TypedValue outValue) argument 745 getType(int index) argument 805 hasValue(int index) argument 810 hasValueOrEmpty(int index) argument 827 peekValue(int index) argument 868 resolveEnumAttribute(int index) argument [all...] |
/frameworks/base/core/java/android/database/sqlite/ |
H A D | SQLiteProgram.java | 127 * @param index The 1-based index to the parameter to bind null to 129 public void bindNull(int index) { argument 130 bind(index, null); 137 * @param index The 1-based index to the parameter to bind 140 public void bindLong(int index, long value) { argument 141 bind(index, value); 148 * @param index The 1-based index t 151 bindDouble(int index, double value) argument 162 bindString(int index, String value) argument 176 bindBlob(int index, byte[] value) argument 210 bind(int index, Object value) argument [all...] |
/frameworks/base/libs/usb/tests/accessorytest/ |
H A D | audio.c | 56 int index, other; local 63 index = empty_index; 64 other = (index == 0 ? 1 : 0); 65 buffer_states[index] = BUFFER_BUSY; 72 return index; 75 static void put_empty(int index) argument 79 buffer_states[index] = BUFFER_EMPTY; 81 empty_index = index; 90 int index, other; local 97 index 109 put_full(int index) argument 149 int index = get_empty(); local 168 int index, err; local [all...] |
/frameworks/base/media/java/android/media/ |
H A D | AudioGainConfig.java | 35 AudioGainConfig(int index, AudioGain gain, int mode, int channelMask, argument 37 mIndex = index; 46 * get the index of the parent gain. 49 int index() { method in class:AudioGainConfig
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | FrameValues.java | 61 * Returns the value at the specified index. 63 * In case the value is null or not an array, the index must be 0, and the value itself is 66 * @param index The index to access. 67 * @return The value at that index. 69 public Object getValueAtIndex(int index) { argument 72 if (index != 0) { 73 throw new ArrayIndexOutOfBoundsException(index); 78 return Array.get(value, index); 83 * Returns the value as a FrameValue at the specified index 91 getFrameValueAtIndex(int index) argument 118 setValueAtIndex(Object value, int index) argument 141 setFrameValueAtIndex(FrameValue frame, int index) argument [all...] |
/frameworks/base/tools/split-select/ |
H A D | RuleGenerator.h | 31 static android::sp<Rule> generate(const android::SortedVector<SplitDescription>& group, size_t index); 33 static android::sp<Rule> generateAbi(const android::Vector<abi::Variant>& allVariants, size_t index); 34 static android::sp<Rule> generateDensity(const android::Vector<int>& allDensities, size_t index);
|
/frameworks/support/v4/java/android/support/v4/content/res/ |
H A D | TypedArrayUtils.java | 31 public static boolean getBoolean(TypedArray a, @StyleableRes int index, argument 34 return a.getBoolean(index, val); 37 public static Drawable getDrawable(TypedArray a, @StyleableRes int index, argument 39 Drawable val = a.getDrawable(index); 46 public static int getInt(TypedArray a, @StyleableRes int index, argument 49 return a.getInt(index, val); 52 public static @AnyRes int getResourceId(TypedArray a, @StyleableRes int index, argument 55 return a.getResourceId(index, val); 58 public static String getString(TypedArray a, @StyleableRes int index, argument 60 String val = a.getString(index); 67 getTextArray(TypedArray a, @StyleableRes int index, @StyleableRes int fallbackIndex) argument [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/comm/src/ |
H A D | omxVCCOMM_Copy16x16.c | 75 OMX_INT count,index, x, y; local 86 for (y = 0, count = 0, index = 0; y < 16; y++, count = count + step - 16) 88 for (x = 0; x < 16; x++, count++, index++) 90 pDst[index] = pSrc[count];
|
H A D | omxVCCOMM_Copy8x8.c | 75 OMX_INT count,index, x, y; local 86 for (y = 0, count = 0, index = 0; y < 8; y++, count = count + step - 8) 88 for (x = 0; x < 8; x++, count++, index++) 90 pDst[index] = pSrc[count];
|