Searched refs:index (Results 26 - 50 of 1601) sorted by relevance

1234567891011>>

/frameworks/rs/support/java/src/android/support/v8/renderscript/
H A DScriptIntrinsicLUT.java70 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/v17/leanback/src/android/support/v17/leanback/widget/
H A DSparseArrayObjectAdapter.java45 * 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 DArrayObjectAdapter.java55 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 Dq_pulse.h66 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 Ddec_alg_codebook.cpp118 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 DSkiaProfileRenderer.cpp29 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/compat/java/android/support/v4/util/
H A DSimpleArrayMap.java94 int index = binarySearchHashes(mHashes, N, hash);
97 if (index < 0) {
98 return index;
101 // If the key at the returned index matches, that's what we want.
102 if (key.equals(mArray[index<<1])) {
103 return index;
106 // Search for a matching key after the index.
108 for (end = index + 1; end < N && mHashes[end] == hash; end++) {
112 // Search for a matching key before the index.
113 for (int i = index
369 keyAt(int index) argument
378 valueAt(int index) argument
388 setValueAt(int index, V value) argument
512 removeAt(int index) argument
[all...]
/frameworks/opt/calendar/src/com/android/calendarcommon2/
H A DDuration.java57 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/av/media/libaaudio/src/utility/
H A DHandleTracker.cpp33 // where each letter is 4 bits, t=type, g=generation, i=index
106 handle_tracker_generation_t HandleTracker::nextGeneration_l(handle_tracker_slot_t index) { argument
107 handle_tracker_generation_t generation = (mHandleHeaders[index] + 1) & GENERATION_MASK;
127 handle_tracker_slot_t index = allocateSlot_l(); local
128 if (index == SLOT_UNAVAILABLE) {
134 handle_tracker_generation_t generation = nextGeneration_l(index); // reads header table
138 mHandleHeaders[index] = inputHeader;
139 mHandleAddresses[index] = address;
143 aaudio_handle_t handle = buildHandle(inputHeader, index);
153 handle_tracker_slot_t index local
175 handle_tracker_slot_t index = handleToIndex(type, handle); local
192 handle_tracker_slot_t index = handleToIndex(type,handle); local
211 buildHandle(handle_tracker_header_t typeGeneration, handle_tracker_slot_t index) argument
[all...]
/frameworks/base/core/java/android/util/
H A DIntArray.java64 * @throws IndexOutOfBoundsException when index &lt; 0 || index &gt; 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 DXmlPullAttributes.java37 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 DArrayMap.java122 int index = binarySearchHashes(mHashes, N, hash);
125 if (index < 0) {
126 return index;
129 // If the key at the returned index matches, that's what we want.
130 if (key.equals(mArray[index<<1])) {
131 return index;
134 // Search for a matching key after the index.
136 for (end = index + 1; end < N && mHashes[end] == hash; end++) {
140 // Search for a matching key before the index.
141 for (int i = index
429 keyAt(int index) argument
438 valueAt(int index) argument
448 setValueAt(int index, V value) argument
640 removeAt(int index) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
H A DBridgeTypedArray.java77 // Contains ids that are @empty. We still store null in mResourceData for that index, since we
95 * @param index the index of the value in the TypedArray
100 public void bridgeSetValue(int index, String name, boolean isFramework, ResourceValue value) { argument
101 mResourceData[index] = value;
102 mNames[index] = name;
103 mIsFramework[index] = isFramework;
147 int index = 1;
150 mIndices[index++] = i;
179 * Retrieve the styled string value for the attribute at <var>index</va
187 getText(int index) argument
201 getString(int index) argument
221 getBoolean(int index, boolean defValue) argument
236 getInt(int index, int defValue) argument
257 getFloat(int index, float defValue) argument
285 getColor(int index, int defValue) argument
304 getColorStateList(int index) argument
313 getComplexColor(int index) argument
331 getInteger(int index, int defValue) argument
352 getDimension(int index, float defValue) argument
392 getDimensionPixelOffset(int index, int defValue) argument
415 getDimensionPixelSize(int index, int defValue) argument
445 getLayoutDimension(int index, String name) argument
463 getLayoutDimension(int index, int defValue) argument
468 getDimension(int index, @Nullable String name) argument
513 getFraction(int index, int base, int pbase, float defValue) argument
547 getResourceId(int index, int defValue) argument
677 getThemeAttributeId(int index, int defValue) argument
693 getDrawable(int index) argument
710 getFont(int index) argument
730 getTextArray(int index) argument
774 getValue(int index, TypedValue outValue) argument
781 getType(int index) argument
841 hasValue(int index) argument
846 hasValueOrEmpty(int index) argument
863 peekValue(int index) argument
904 resolveEnumAttribute(int index) argument
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DGrowingArrayUtils.java115 * 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/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DStatusBarIconList.java53 public void setIcon(int index, StatusBarIcon icon) { argument
54 mIcons.set(index, icon);
57 public void removeIcon(int index) { argument
58 mIcons.set(index, null);
61 public String getSlot(int index) { argument
62 return mSlots.get(index);
65 public StatusBarIcon getIcon(int index) { argument
66 return mIcons.get(index);
69 public int getViewIndex(int index) { argument
71 for (int i = 0; i < index;
[all...]
/frameworks/base/services/core/java/com/android/server/display/
H A DHysteresisLevels.java87 int index = 0;
88 while (mLuxLevels.length > index && lux >= mLuxLevels[index]) {
89 ++index;
91 return referenceLevels[index];
99 for (int index = 0; levelArray.length > index; ++index) {
100 levelArray[index] = (float)configArray[index] / divideFacto
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
H A Ddec_lag3.cpp63 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 Dd1035pf.h106 Word16 index[], /* (i) : index of 10 pulses (sign+position) */
H A Dd2_11pf.h85 Word16 index, /* i : Positions of the 2 pulses. */
H A Dd3_14pf.h106 Word16 index, /* i : Positions of the 3 pulses. */
/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteProgram.java127 * @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 Daudio.c56 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/base/media/java/android/media/
H A DAudioGainConfig.java35 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 DFrameValues.java61 * 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 DRuleGenerator.h31 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);

Completed in 1141 milliseconds

1234567891011>>