Searched refs:index (Results 101 - 125 of 1822) sorted by relevance

1234567891011>>

/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeLayoutParamsMapAttributes.java59 public String getAttributeNamespace(int index) { argument
64 public String getAttributeName(int index) { argument
69 public String getAttributeValue(int index) { argument
79 public int getAttributeNameResource(int index) { argument
120 public int getAttributeListValue(int index, argument
126 public boolean getAttributeBooleanValue(int index, boolean defaultValue) { argument
131 public int getAttributeResourceValue(int index, int defaultValue) { argument
136 public int getAttributeIntValue(int index, int defaultValue) { argument
141 public int getAttributeUnsignedIntValue(int index, int defaultValue) { argument
146 public float getAttributeFloatValue(int index, floa argument
[all...]
/frameworks/wilhelm/src/itf/
H A DILEDArray.cpp55 static SLresult ILEDArray_SetColor(SLLEDArrayItf self, SLuint8 index, const SLHSL *pColor) argument
61 if (!(index < MAX_LED_COUNT) || NULL == pColor)
73 thiz->mColors[index] = color;
82 static SLresult ILEDArray_GetColor(SLLEDArrayItf self, SLuint8 index, SLHSL *pColor) argument
86 if (!(index < MAX_LED_COUNT) || NULL == pColor) {
92 SLHSL color = thiz->mColors[index];
115 SLuint8 index; local
116 for (index = 0; index < MAX_LED_COUNT; ++index,
[all...]
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
H A Dstruct_field.rs63 // Arguments are named outerFieldName"_"index"_x", outerFieldName"_"index"_y",
64 // and outerFieldName"_"index"_f".
65 #define ARGS_INNERONE_ARRAY(outerFieldName, index) \
66 ARGS_INNERONE_(outerFieldName ## _ ## index)
70 // Arguments are named outerFieldName"_"index"_z", outerFieldName"_"index"_innerOne_x", etc.
71 #define ARGS_INNERTWO_ARRAY(outerFieldName, index) \
72 int8_t outerFieldName ## _ ## index ## _z, ARGS_INNERONE_(outerFieldName ## _ ## index ## _innerOn
[all...]
/frameworks/base/core/java/android/util/
H A DSparseLongArray.java41 * <code>keyAt(int)</code> with ascending values of the index will return the
125 * @param index Index to begin at
131 public void removeAtRange(int index, int size) { argument
132 size = Math.min(size, mSize - index);
133 System.arraycopy(mKeys, index + size, mKeys, index, mSize - (index + size));
134 System.arraycopy(mValues, index + size, mValues, index, mSize - (index
141 removeAt(int index) argument
184 keyAt(int index) argument
199 valueAt(int index) argument
[all...]
H A DArraySet.java86 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
349 valueAt(int index) argument
489 removeAt(int index) argument
[all...]
/frameworks/support/collection/src/main/java/androidx/collection/
H A DArraySet.java91 int index = ContainerHelpers.binarySearch(mHashes, N, hash);
94 if (index < 0) {
95 return index;
98 // If the key at the returned index matches, that's what we want.
99 if (key.equals(mArray[index])) {
100 return index;
103 // Search for a matching key after the index.
105 for (end = index + 1; end < N && mHashes[end] == hash; end++) {
109 // Search for a matching key before the index.
110 for (int i = index
334 valueAt(int index) argument
475 removeAt(int index) argument
[all...]
/frameworks/support/wear/src/main/java/androidx/wear/internal/widget/drawer/
H A DSinglePagePresenter.java63 void setIcon(int index, Drawable drawable, CharSequence contentDescription); argument
73 * Indicates that the item at {@code index} has been selected.
75 void selectItem(int index); argument
78 * Removes the indication that the item at {@code index} has been selected.
80 void deselectItem(int index); argument
134 public void onSelected(int index) { argument
136 mUi.selectItem(index);
137 mSelected = index;
147 mUi.setText(mAdapter.getItemText(index), true /* showToastIfNoTextView */);
149 notifyItemSelectedListeners(index);
153 onSetCurrentItemRequested(int index, boolean smoothScrollTo) argument
[all...]
/frameworks/base/core/java/android/hardware/hdmi/
H A DHdmiRecordSources.java70 /* 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 DUsimDataDownloadHandler.java129 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/support/room/runtime/src/main/java/androidx/room/
H A DEntityInsertionAdapter.java130 int index = 0;
133 result[index] = stmt.executeInsert();
134 index++;
152 int index = 0;
155 result[index] = stmt.executeInsert();
156 index++;
174 int index = 0;
177 result[index] = stmt.executeInsert();
178 index++;
196 int index
[all...]
/frameworks/base/telephony/java/android/telephony/ims/
H A DImsSuppServiceNotification.java40 /** TS 27.007 7.17 "index" - Not used currently*/
41 public final int index; field in class:ImsSuppServiceNotification
50 public ImsSuppServiceNotification(int notificationType, int code, int index, int type, argument
54 this.index = index;
64 index = in.readInt();
74 ", index=" + index +
90 out.writeInt(index);
/frameworks/rs/
H A DrsMesh.h67 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/support/core/ktx/src/main/java/androidx/core/preference/
H A DPreferenceGroup.kt33 * Returns the preference at `index`.
35 * @throws IndexOutOfBoundsException if index is less than 0 or greater than or equal to the count.
38 operator fun PreferenceGroup.get(index: Int): Preference = getPreference(index)
39 ?: throw IndexOutOfBoundsException("Index: $index, Size: $preferenceCount")
44 for (index in 0 until preferenceCount) {
45 if (getPreference(index) == preference) {
79 for (index in 0 until preferenceCount) {
80 action(get(index))
84 /** Performs the given action on each preference in this preference group, providing its sequential index
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
H A Ddec_gain.cpp111 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...]
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
H A DBluetoothCodecConfigTest.java78 int index = configId / right;
79 index = index % kCodecTypeArray.length;
80 return kCodecTypeArray[index];
86 int index = configId / right;
87 index = index % kCodecPriorityArray.length;
88 return kCodecPriorityArray[index];
94 int index = configId / right;
95 index
[all...]
/frameworks/data-binding/extensions/library/src/main/java/android/databinding/
H A DObservableArrayMap.java62 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 Drs_mesh.c29 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];
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DTileList.java42 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/base/core/java/android/database/
H A DObservable.java67 int index = mObservers.indexOf(observer);
68 if (index == -1) {
71 mObservers.remove(index);
/frameworks/base/media/java/android/media/
H A DExternalRingtonesCursorWrapper.java39 public String getString(int index) { argument
40 String result = super.getString(index);
41 if (index == RingtoneManager.URI_COLUMN_INDEX) {
/frameworks/compile/slang/tests/P_reflection3264_divergent/
H A DScriptField_NonDivergent.java.expect118 private void copyToArray(Item i, int index) {
120 mIOBuffer.reset(index * mElement.getBytesSize());
124 public synchronized void set(Item i, int index, boolean copyNow) {
126 mItemArray[index] = i;
128 copyToArray(i, index);
131 mAllocation.setFromFieldPacker(index, fp);
136 public synchronized Item get(int index) {
138 return mItemArray[index];
141 public synchronized void set_i(int index, int v, boolean copyNow) {
144 if (mItemArray[index]
[all...]
/frameworks/compile/slang/tests/P_reflection3264_divergent_support/
H A DScriptField_NonDivergent.java.expect115 private void copyToArray(Item i, int index) {
117 mIOBuffer.reset(index * mElement.getBytesSize());
121 public synchronized void set(Item i, int index, boolean copyNow) {
123 mItemArray[index] = i;
125 copyToArray(i, index);
128 mAllocation.setFromFieldPacker(index, fp);
133 public synchronized Item get(int index) {
135 return mItemArray[index];
138 public synchronized void set_i(int index, int v, boolean copyNow) {
141 if (mItemArray[index]
[all...]
/frameworks/ml/nn/runtime/test/generated/models/
H A Dembedding_lookup.model.cpp6 auto index = model->addOperand(&type0); local
10 model->addOperation(ANEURALNETWORKS_EMBEDDING_LOOKUP, {index, value}, {output});
13 {index, value},
H A Dembedding_lookup_relaxed.model.cpp6 auto index = model->addOperand(&type0); local
10 model->addOperation(ANEURALNETWORKS_EMBEDDING_LOOKUP, {index, value}, {output});
13 {index, value},
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DPlaybackTransportRowView.java97 int index = indexOfChild(getFocusedChild());
98 for (index = index - 1; index >= 0; index--) {
99 View view = getChildAt(index);
105 int index = indexOfChild(getFocusedChild());
106 for (index = index + 1; index < getChildCoun
[all...]

Completed in 417 milliseconds

1234567891011>>