Searched refs:index (Results 201 - 225 of 1822) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/util/
H A DMemoryIntArray.java99 * Gets the value at a given index.
101 * @param index The index.
102 * @return The value at this index.
105 public int get(int index) throws IOException { argument
107 enforceValidIndex(index);
108 return nativeGet(mFd, mMemoryAddr, index);
112 * Sets the value at a given index. This method can be called only if
116 * @param index The index
120 set(int index, int value) argument
213 enforceValidIndex(int index) argument
230 nativeGet(int fd, long memoryAddr, int index) argument
231 nativeSet(int fd, long memoryAddr, int index, int value) argument
[all...]
/frameworks/base/core/java/com/android/internal/textservice/
H A DLazyIntToIntMap.java59 final int index = mMap.indexOfKey(key);
60 if (index >= 0) {
61 return mMap.valueAt(index);
/frameworks/base/tools/split-select/
H A DSplitDescription.cpp85 ssize_t parseAbi(const Vector<String8>& parts, const ssize_t index, argument
89 ssize_t endIndex = index;
121 if (abi == abi::Variant_none && endIndex != index) {
132 ssize_t index = str.find(":"); local
136 if (index >= 0) {
137 configStr.setTo(str.string(), index);
138 extensionStr.setTo(str.string() + index + 1);
150 index = 0;
156 index = parseAbi(parts, index,
[all...]
/frameworks/compile/slang/tests/P_reduce_general_input/
H A DScriptField_MyStruct.java.expect120 private void copyToArray(Item i, int index) {
122 mIOBuffer.reset(index * mElement.getBytesSize());
126 public synchronized void set(Item i, int index, boolean copyNow) {
128 mItemArray[index] = i;
130 copyToArray(i, index);
133 mAllocation.setFromFieldPacker(index, fp);
138 public synchronized Item get(int index) {
140 return mItemArray[index];
143 public synchronized void set_f(int index, float v, boolean copyNow) {
146 if (mItemArray[index]
[all...]
/frameworks/compile/slang/tests/P_reduce_general_inputs/
H A DScriptField_MyStruct.java.expect120 private void copyToArray(Item i, int index) {
122 mIOBuffer.reset(index * mElement.getBytesSize());
126 public synchronized void set(Item i, int index, boolean copyNow) {
128 mItemArray[index] = i;
130 copyToArray(i, index);
133 mAllocation.setFromFieldPacker(index, fp);
138 public synchronized Item get(int index) {
140 return mItemArray[index];
143 public synchronized void set_f(int index, float v, boolean copyNow) {
146 if (mItemArray[index]
[all...]
/frameworks/compile/slang/tests/P_reduce_general_result/
H A DScriptField_MyStruct.java.expect120 private void copyToArray(Item i, int index) {
122 mIOBuffer.reset(index * mElement.getBytesSize());
126 public synchronized void set(Item i, int index, boolean copyNow) {
128 mItemArray[index] = i;
130 copyToArray(i, index);
133 mAllocation.setFromFieldPacker(index, fp);
138 public synchronized Item get(int index) {
140 return mItemArray[index];
143 public synchronized void set_f(int index, float v, boolean copyNow) {
146 if (mItemArray[index]
[all...]
/frameworks/compile/slang/tests/P_struct_field/
H A DScriptField_InnerTwo.java.expect124 private void copyToArray(Item i, int index) {
126 mIOBuffer.reset(index * mElement.getBytesSize());
130 public synchronized void set(Item i, int index, boolean copyNow) {
132 mItemArray[index] = i;
134 copyToArray(i, index);
137 mAllocation.setFromFieldPacker(index, fp);
142 public synchronized Item get(int index) {
144 return mItemArray[index];
147 public synchronized void set_z(int index, byte v, boolean copyNow) {
150 if (mItemArray[index]
[all...]
/frameworks/ml/nn/runtime/test/specs/V1_0/
H A Dembedding_lookup.mod.py29 index = Input("index", "TENSOR_INT32", "{%d}"%lookups) variable
32 model = model.Operation("EMBEDDING_LOOKUP", index, value).To(output)
34 input0 = {index: [1, 0, 2],
/frameworks/ml/nn/runtime/test/specs/V1_1/
H A Dembedding_lookup_relaxed.mod.py29 index = Input("index", "TENSOR_INT32", "{%d}"%lookups) variable
32 model = model.Operation("EMBEDDING_LOOKUP", index, value).To(output)
35 input0 = {index: [1, 0, 2],
/frameworks/base/core/java/android/view/
H A DHandlerActionQueue.java97 public Runnable getRunnable(int index) { argument
98 if (index >= mCount) {
101 return mActions[index].action;
104 public long getDelay(int index) { argument
105 if (index >= mCount) {
108 return mActions[index].delay;
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
H A DListItemFocusablesFarApartTest.java47 * @param listIndex The index of the currently visible items
48 * @param index The index of the child.
50 public View getChildOfItem(int listIndex, int index) { argument
51 return ((ViewGroup) mListView.getChildAt(listIndex)).getChildAt(index);
55 public int getTopOfChildOfItem(int listIndex, int index) { argument
57 View child = listItem.getChildAt(index);
61 public int getBottomOfChildOfItem(int listIndex, int index) { argument
63 View child = listItem.getChildAt(index);
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
H A Drstypes.rs35 static bool basic_test(uint32_t index) {
69 void test_rstypes(uint32_t index, int test_num) {
71 failed |= basic_test(index);
H A Dprimitives.rs35 static bool test_primitive_types(uint32_t index) {
54 float time = end(index);
66 void primitives_test(uint32_t index, int test_num) {
68 failed |= test_primitive_types(index);
/frameworks/support/collection/src/main/java/androidx/collection/
H A DArrayMap.java80 protected Object colGetEntry(int index, int offset) {
81 return mArray[(index<<1) + offset];
105 protected V colSetValue(int index, V value) {
106 return setValueAt(index, value);
110 protected void colRemoveAt(int index) {
111 removeAt(index);
/frameworks/base/tools/aapt/
H A DAaptConfig.cpp39 ssize_t index = 0; local
42 const char* part = parts[index].string();
49 index++;
50 if (index == N) {
53 part = parts[index].string();
57 index++;
58 if (index == N) {
61 part = parts[index].string();
65 // control the index.
66 localeIndex = locale.initFromDirName(parts, index);
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
H A Denc_lag3.cpp127 * index = (T-19)*3 + frac - 1;
130 * index = (T - 85) + 197; where T=[86..143]
141 * index = (T-(t_min-1))*3 + frac - 1;
157 Word16 index, i, tmp_ind, uplag;
167 // index = T0*3 - 58 + T0_frac
169 index = add (sub (i, 58), T0_frac);
173 index = add (T0, 112);
182 // index = 3*(T0 - T0_min) + 2 + T0_frac
185 index = add (add (i, 2), T0_frac);
204 index
262 Word16 index, i, tmp_ind, uplag; local
[all...]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DSessionRoute.cpp85 for (size_t index = 0; index < size(); index++) {
86 valueAt(index)->log(" ");
127 for (size_t index = 0; index < size(); index++) {
128 sp<SessionRoute> route = valueAt(index);
/frameworks/base/core/java/android/database/
H A DCursorJoiner.java167 populateValues(mValues, mCursorLeft, mColumnsLeft, 0 /* start filling at index 0 */);
168 populateValues(mValues, mCursorRight, mColumnsRight, 1 /* start filling at index 1 */);
247 for (int index = 0; index < values.length; index+=2) {
248 if (values[index] == null) {
249 if (values[index+1] == null) continue;
253 if (values[index+1] == null) {
257 int comp = values[index].compareTo(values[index
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DListItemFocusablesClose.java33 * @param listIndex The index of the currently visible items
34 * @param index The index of the child.
36 public View getChildOfItem(int listIndex, int index) { argument
37 return ((ViewGroup) getListView().getChildAt(listIndex)).getChildAt(index);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DStatusBarIconControllerImpl.java142 private void addSystemIcon(int index, StatusBarIconHolder holder) { argument
143 String slot = getSlotName(index);
144 int viewIndex = getViewIndex(index, holder.getTag());
147 mIconLogger.onIconVisibility(getSlotName(index), holder.isVisible());
153 int index = getSlotIndex(slot);
154 StatusBarIconHolder holder = getIcon(index, 0);
160 setIcon(index, holder);
164 handleSet(index, holder);
175 int index = getSlotIndex(slot);
178 removeIcon(index,
232 setIcon(int index, StatusBarIcon icon) argument
243 setIcon(int index, @NonNull StatusBarIconHolder holder) argument
293 removeIcon(int index, int tag) argument
303 handleSet(int index, StatusBarIconHolder holder) argument
[all...]
/frameworks/native/libs/binder/
H A DPermissionCache.cpp43 ssize_t index = mCache.indexOf(e); local
44 if (index >= 0) {
45 *granted = mCache.itemAt(index).granted;
55 ssize_t index = mPermissionNamesPool.indexOf(permission); local
56 if (index > 0) {
57 e.name = mPermissionNamesPool.itemAt(index);
66 index = mCache.indexOf(e);
67 if (index < 0) {
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
H A DCdmaInboundSmsHandler.java261 int index = 0;
263 int msgType = (0xFF & pdu[index++]);
268 int totalSegments = (0xFF & pdu[index++]); // >= 1
269 int segment = (0xFF & pdu[index++]); // >= 0
281 sourcePort = (0xFF & pdu[index++]) << 8;
282 sourcePort |= 0xFF & pdu[index++];
283 destinationPort = (0xFF & pdu[index++]) << 8;
284 destinationPort |= 0xFF & pdu[index++];
288 if (checkDuplicatePortOmadmWapPush(pdu, index)) {
289 index
322 checkDuplicatePortOmadmWapPush(byte[] origPdu, int index) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
H A DSuppServiceNotification.java31 /** TS 27.007 7.17 "index" */
32 public int index; field in class:SuppServiceNotification
202 + " index: " + index
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DMultiActionsProvider.java34 * the current index within the drawables. Both list of drawables and index can be updated
71 * Increments the index which this MultiAction currently represents. The index is wrapped
79 * Sets the index which this MultiAction currently represents.
80 * @param index The current action index.
82 public void setIndex(int index) { argument
83 mIndex = index;
87 * Returns the currently selected index i
[all...]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeXmlBlockParser.java240 public String getAttributeNamespace(int index) { argument
241 return mParser.getAttributeNamespace(index);
245 public String getAttributeName(int index) { argument
246 return mParser.getAttributeName(index);
250 public String getAttributePrefix(int index) { argument
266 public String getAttributeValue(int index) { argument
267 return mParser.getAttributeValue(index);
271 public String getAttributeType(int index) { argument
276 public boolean isAttributeDefault(int index) { argument
410 public boolean getAttributeBooleanValue(int index, boolea argument
421 getAttributeFloatValue(int index, float defaultValue) argument
431 getAttributeIntValue(int index, int defaultValue) argument
441 getAttributeListValue(int index, String[] options, int defaultValue) argument
452 getAttributeNameResource(int index) argument
457 getAttributeResourceValue(int index, int defaultValue) argument
467 getAttributeUnsignedIntValue(int index, int defaultValue) argument
[all...]

Completed in 564 milliseconds

1234567891011>>