/frameworks/base/rs/java/android/renderscript/ |
H A D | ScriptIntrinsicLUT.java | 64 private void validate(int index, int value) { argument 65 if (index < 0 || index > 255) { 76 * @param index Must be 0-255 79 public void setRed(int index, int value) { argument 80 validate(index, value); 81 mCache[index] = (byte)value; 88 * @param index Must be 0-255 91 public void setGreen(int index, int value) { argument 92 validate(index, valu 103 setBlue(int index, int value) argument 115 setAlpha(int index, int value) argument [all...] |
/frameworks/data-binding/extensions/library/src/main/java/android/databinding/ |
H A D | ObservableArrayList.java | 50 public void add(int index, T object) { argument 51 super.add(index, object); 52 notifyAdd(index, 1); 66 public boolean addAll(int index, Collection<? extends T> collection) { argument 67 boolean added = super.addAll(index, collection); 69 notifyAdd(index, collection.size()); 84 public T remove(int index) { argument 85 T val = super.remove(index); 86 notifyRemove(index, 1); 92 int index 102 set(int index, T object) argument [all...] |
/frameworks/rs/support/java/src/android/support/v8/renderscript/ |
H A D | ScriptIntrinsicLUT.java | 70 private void validate(int index, int value) { argument 71 if (index < 0 || index > 255) { 82 * @param index Must be 0-255 85 public void setRed(int index, int value) { argument 86 validate(index, value); 87 mCache[index] = (byte)value; 94 * @param index Must be 0-255 97 public void setGreen(int index, int value) { argument 98 validate(index, valu 109 setBlue(int index, int value) argument 121 setAlpha(int index, int value) argument [all...] |
/frameworks/support/leanback/src/main/java/androidx/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...] |
/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/base/libs/hwui/pipeline/skia/ |
H A D | SkiaProfileRenderer.cpp | 29 for (int index = 0; index + 4 <= count; index += 4) { 30 SkRect rect = SkRect::MakeLTRB(rects[index + 0], rects[index + 1], rects[index + 2], 31 rects[index + 3]);
|
/frameworks/support/core/ktx/src/main/java/androidx/core/view/ |
H A D | Menu.kt | 25 * Returns the menu at [index]. 27 * @throws IndexOutOfBoundsException if index is less than 0 or greater than or equal to the count. 29 inline operator fun Menu.get(index: Int): MenuItem = getItem(index) 34 for (index in 0 until size()) { 35 if (getItem(index) == item) { 56 for (index in 0 until size()) { 57 action(getItem(index)) 61 /** Performs the given action on each item in this menu, providing its sequential index. */ 62 inline fun Menu.forEachIndexed(action: (index [all...] |
/frameworks/support/preference/ktx/src/main/java/androidx/preference/ |
H A D | PreferenceGroup.kt | 29 * Returns the preference at `index`. 31 * @throws IndexOutOfBoundsException if index is less than 0 or greater than or equal to the count. 33 operator fun PreferenceGroup.get(index: Int): Preference = getPreference(index) 34 ?: throw IndexOutOfBoundsException("Index: $index, Size: $preferenceCount") 38 for (index in 0 until preferenceCount) { 39 if (getPreference(index) == preference) { 67 for (index in 0 until preferenceCount) { 68 action(get(index)) 72 /** Performs the given action on each preference in this preference group, providing its sequential index [all...] |
/frameworks/support/collection/src/main/java/androidx/collection/ |
H A D | SimpleArrayMap.java | 92 int index = binarySearchHashes(mHashes, N, hash); 95 if (index < 0) { 96 return index; 99 // If the key at the returned index matches, that's what we want. 100 if (key.equals(mArray[index<<1])) { 101 return index; 104 // Search for a matching key after the index. 106 for (end = index + 1; end < N && mHashes[end] == hash; end++) { 110 // Search for a matching key before the index. 111 for (int i = index 367 keyAt(int index) argument 376 valueAt(int index) argument 386 setValueAt(int index, V value) argument 510 removeAt(int index) argument [all...] |
/frameworks/layoutlib/bridge/src/android/content/res/ |
H A D | BridgeTypedArray.java | 78 // Contains ids that are @empty. We still store null in mResourceData for that index, since we 97 * @param index the index of the value in the TypedArray 103 public void bridgeSetValue(int index, String name, boolean isFramework, int resourceId, argument 105 mResourceId[index] = resourceId; 106 mResourceData[index] = value; 107 mNames[index] = name; 108 mIsFramework[index] = isFramework; 152 int index = 1; 155 mIndices[index 192 getText(int index) argument 206 getString(int index) argument 226 getBoolean(int index, boolean defValue) argument 241 getInt(int index, int defValue) argument 262 getFloat(int index, float defValue) argument 290 getColor(int index, int defValue) argument 309 getColorStateList(int index) argument 318 getComplexColor(int index) argument 336 getInteger(int index, int defValue) argument 357 getDimension(int index, float defValue) argument 397 getDimensionPixelOffset(int index, int defValue) argument 420 getDimensionPixelSize(int index, int defValue) argument 450 getLayoutDimension(int index, String name) argument 468 getLayoutDimension(int index, int defValue) argument 473 getDimension(int index, @Nullable String name) argument 518 getFraction(int index, int base, int pbase, float defValue) argument 552 getResourceId(int index, int defValue) argument 694 getThemeAttributeId(int index, int defValue) argument 710 getDrawable(int index) argument 724 getDrawableForDensity(int index, int density) argument 735 getFont(int index) argument 755 getTextArray(int index) argument 799 getValue(int index, TypedValue outValue) argument 821 getType(int index) argument 881 hasValue(int index) argument 886 hasValueOrEmpty(int index) argument 903 peekValue(int index) argument 944 resolveEnumAttribute(int index) argument [all...] |
/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 if (len <= index) { 87 c = str.charAt(index); [all...] |
/frameworks/base/core/java/android/util/ |
H A D | XmlPullAttributes.java | 37 public String getAttributeNamespace (int index) { argument 38 return mParser.getAttributeNamespace(index); 41 public String getAttributeName(int index) { argument 42 return mParser.getAttributeName(index); 45 public String getAttributeValue(int index) { argument 46 return mParser.getAttributeValue(index); 57 public int getAttributeNameResource(int index) { argument 100 public int getAttributeListValue(int index, argument 103 getAttributeValue(index), options, defaultValue); 106 public boolean getAttributeBooleanValue(int index, boolea argument 111 getAttributeResourceValue(int index, int defaultValue) argument 116 getAttributeIntValue(int index, int defaultValue) argument 121 getAttributeUnsignedIntValue(int index, int defaultValue) argument 126 getAttributeFloatValue(int index, float defaultValue) argument [all...] |
H A D | AttributeSet.java | 79 * @param index Index of the desired attribute, 0...count-1. 84 default String getAttributeNamespace (int index) { argument 95 * @param index Index of the desired attribute, 0...count-1. 100 public String getAttributeName(int index); argument 105 * @param index Index of the desired attribute, 0...count-1. 110 public String getAttributeValue(int index); argument 144 * @param index Index of the desired attribute, 0...count-1. 148 public int getAttributeNameResource(int index); argument 151 * Return the index of the value of 'attribute' in the list 'options'. 233 * Return the index o 243 getAttributeListValue(int index, String[] options, int defaultValue) argument 253 getAttributeBooleanValue(int index, boolean defaultValue) argument 269 getAttributeResourceValue(int index, int defaultValue) argument 279 getAttributeIntValue(int index, int defaultValue) argument 291 getAttributeUnsignedIntValue(int index, int defaultValue) argument 301 getAttributeFloatValue(int index, float defaultValue) argument [all...] |
/frameworks/support/core/ktx/src/main/java/androidx/core/database/ |
H A D | Cursor.kt | 112 inline fun Cursor.getBlobOrNull(index: Int) = if (isNull(index)) null else getBlob(index) 123 inline fun Cursor.getDoubleOrNull(index: Int) = if (isNull(index)) null else getDouble(index) 134 inline fun Cursor.getFloatOrNull(index: Int) = if (isNull(index)) null else getFloat(index) 145 inline fun Cursor.getIntOrNull(index [all...] |
/frameworks/base/cmds/statsd/src/condition/ |
H A D | ConditionWizard.h | 49 const int index, const vector<Matcher>& dimensionFields, 53 virtual const std::set<HashableDimensionKey>* getChangedToTrueDimensions(const int index) const; 55 const int index) const; 56 bool equalOutputDimensions(const int index, const vector<Matcher>& dimensions); 58 bool IsChangedDimensionTrackable(const int index); 59 bool IsSimpleCondition(const int index); 61 ConditionState getUnSlicedPartConditionState(const int index) { argument 62 return mAllConditions[index]->getUnSlicedPartConditionState(); 64 void getTrueSlicedDimensions(const int index, argument 66 return mAllConditions[index] [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/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
H A D | NopAttributeSet.java | 31 public String getAttributeNamespace(int index) { argument 36 public String getAttributeName(int index) { argument 41 public String getAttributeValue(int index) { argument 56 public int getAttributeNameResource(int index) { argument 95 public int getAttributeListValue(int index, String[] options, int defaultValue) { argument 100 public boolean getAttributeBooleanValue(int index, boolean defaultValue) { argument 105 public int getAttributeResourceValue(int index, int defaultValue) { argument 110 public int getAttributeIntValue(int index, int defaultValue) { argument 115 public int getAttributeUnsignedIntValue(int index, int defaultValue) { argument 120 public float getAttributeFloatValue(int index, floa 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...] |
/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 167 int index, err; local [all...] |
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
H A D | rsdebug_23.rs | 24 static bool basic_test(uint32_t index) { 37 void test_rsdebug_23(uint32_t index, int test_num) { 39 failed |= basic_test(index);
|
/frameworks/support/room/runtime/src/main/java/androidx/room/ |
H A D | RoomSQLiteQuery.java | 93 public void bindNull(int index) { 94 query.bindNull(index); 98 public void bindLong(int index, long value) { 99 query.bindLong(index, value); 103 public void bindDouble(int index, double value) { 104 query.bindDouble(index, value); 108 public void bindString(int index, String value) { 109 query.bindString(index, value); 113 public void bindBlob(int index, byte[] value) { 114 query.bindBlob(index, valu 233 bindNull(int index) argument 238 bindLong(int index, long value) argument 244 bindDouble(int index, double value) argument 250 bindString(int index, String value) argument 256 bindBlob(int index, byte[] value) argument [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...] |