/frameworks/base/core/java/android/util/ |
H A D | LongSparseLongArray.java | 41 * <code>keyAt(int)</code> with ascending values of the index will return the 124 * Removes the mapping at the given index. 126 public void removeAt(int index) { argument 127 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); 128 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1)); 160 * Given an index i 169 keyAt(int index) argument 184 valueAt(int index) argument [all...] |
H A D | SparseBooleanArray.java | 42 * <code>keyAt(int)</code> with ascending values of the index will return the 121 * Removes the mapping at the specified index. 125 public void removeAt(int index) { argument 126 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); 127 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1)); 159 * Given an index i 168 keyAt(int index) argument 183 valueAt(int index) argument 188 setValueAt(int index, boolean value) argument 193 setKeyAt(int index, int key) argument [all...] |
/frameworks/av/media/libeffects/testlibs/ |
H A D | AudioCoefInterpolator.cpp | 44 size_t index = 0; local 51 index += mInDimOffsets[dim] * (mInDims[dim] - 1); 53 index += mInDimOffsets[dim] * intCoord[dim]; 56 getCoefRecurse(index, fracCoord, out, 0); 59 void AudioCoefInterpolator::getCoefRecurse(size_t index, argument 63 memcpy(out, mTable + index, mNumOutDims * sizeof(audio_coef_t)); 65 getCoefRecurse(index, fracCoord, out, dim + 1); 68 getCoefRecurse(index + mInDimOffsets[dim], fracCoord, tempCoef,
|
/frameworks/base/apct-tests/perftests/core/jni/ |
H A D | SystemPerfTest.cpp | 29 static jint jintarrayCriticalAccess(JNIEnv* env, jclass, jintArray jarray, jint index) { argument 31 if (index < 0 || index >= len) { 35 jint ret = data[index]; 40 static jint jintarrayBasicAccess(JNIEnv* env, jclass, jintArray jarray, jint index) { argument 42 if (index < 0 || index >= len) { 46 jint ret = data[index];
|
/frameworks/base/services/net/java/android/net/util/ |
H A D | InterfaceParams.java | 43 public final int index; field in class:InterfaceParams 61 public InterfaceParams(String name, int index, MacAddress macAddr) { argument 62 this(name, index, macAddr, ETHER_MTU); 65 public InterfaceParams(String name, int index, MacAddress macAddr, int defaultMtu) { argument 67 checkArgument((index > 0), "invalid interface index"); 69 this.index = index; 76 return String.format("%s/%d/%s/%d", name, index, macAddr, defaultMtu);
|
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/ |
H A D | Usb10ASFormatI.java | 85 for (int index = 0; index < mSampleFreqType; index++) { 86 mSampleRates[index] = stream.unpackUsbTriple(); 109 for (int index = 0; index < sampleFreqType; index++) { 110 canvas.writeListItem("" + sampleRates[index]);
|
H A D | UsbBinaryParser.java | 39 for (int index = 2; index < length; index++) { 49 for (int index = 2; index < length; index++) {
|
/frameworks/compile/slang/tests/P_struct_field/ |
H A D | ScriptField_Outer.java.expect | 178 private void copyToArray(Item i, int index) { 180 mIOBuffer.reset(index * mElement.getBytesSize()); 184 public synchronized void set(Item i, int index, boolean copyNow) { 186 mItemArray[index] = i; 188 copyToArray(i, index); 191 mAllocation.setFromFieldPacker(index, fp); 196 public synchronized Item get(int index) { 198 return mItemArray[index]; 201 public synchronized void set_innerOneA(int index, ScriptField_InnerOne.Item v, boolean copyNow) { 204 if (mItemArray[index] [all...] |
/frameworks/support/emoji/core/src/androidTest/java/androidx/emoji/text/ |
H A D | TestEmojiMetadata.java | 41 public int getCodepointAt(int index) { argument 42 return mCodePoints[index];
|
/frameworks/support/room/compiler/src/test/kotlin/androidx/room/vo/ |
H A D | IndexTest.kt | 31 val index = Index("foo", false, listOf(mockField("bar"), mockField("baz"))) 32 MatcherAssert.assertThat(index.createQuery("my_table"), CoreMatchers.`is`( 39 val index = Index("foo", true, listOf(mockField("bar"), mockField("baz"))) 40 MatcherAssert.assertThat(index.createQuery("my_table"), CoreMatchers.`is`(
|
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/ |
H A D | SortedList.java | 61 * The current index into mOldData that has not yet been processed during a mutation operation 68 * The current index into the new data that has not yet been processed during a mutation 132 * use {@link #updateItemAt(int, Object)}. You can find the index of the item using 137 * @return The index of the newly added item. 542 int index = findIndexOf(item, mData, 0, mSize, INSERTION); 543 if (index == INVALID_POSITION) { 544 index = 0; 545 } else if (index < mSize) { 546 T existing = mData[index]; 550 mData[index] 585 removeItemAt(int index) argument 601 removeItemAtIndex(int index, boolean notify) argument 630 updateItemAt(int index, T item) argument 684 recalculatePositionOfItemAt(int index) argument 704 get(int index) argument 792 addToData(int index, T item) argument [all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
H A D | q_gain_c.cpp | 141 quantization index -- Word16 -- Q0 191 Word16 q_gain_code( /* o : quantization index, Q0 */ 205 Word16 index; local 253 index = 0; 270 index = i; 274 temp = index + (index << 1); 292 return index;
|
/frameworks/native/cmds/dumpstate/tests/ |
H A D | dumpstate_test_fixture.cpp | 74 int index = 1; local 76 // First check arguments that can shift the index. 78 index++; 82 index++; 88 if (argc > index + 1) { 89 if (strcmp(argv[index], "--sleep") == 0) { 90 int napTime = atoi(argv[index + 1]);
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
H A D | rsdebug_24.rs | 19 static bool basic_test(uint32_t index) { 39 void test_rsdebug_24(uint32_t index, int test_num) { 41 failed |= basic_test(index);
|
/frameworks/support/core/ktx/src/main/java/androidx/core/util/ |
H A D | SparseBooleanArray.kt | 29 /** Allows the use of the index operator for storing values in the collection. */ 61 val index = indexOfKey(key) 62 if (index != -1 && value == valueAt(index)) { 75 for (index in 0 until size()) { 76 action(keyAt(index), valueAt(index)) 82 var index = 0 83 override fun hasNext() = index < size() 84 override fun nextInt() = keyAt(index [all...] |
/frameworks/support/core/ktx/src/main/java/androidx/core/view/ |
H A D | ViewGroup.kt | 27 * Returns the view at [index]. 29 * @throws IndexOutOfBoundsException if index is less than 0 or greater than or equal to the count. 31 operator fun ViewGroup.get(index: Int) = 32 getChildAt(index) ?: throw IndexOutOfBoundsException("Index: $index, Size: $childCount") 54 for (index in 0 until childCount) { 55 action(getChildAt(index)) 59 /** Performs the given action on each view in this view group, providing its sequential index. */ 60 inline fun ViewGroup.forEachIndexed(action: (index: Int, view: View) -> Unit) { 61 for (index i [all...] |
/frameworks/support/tv-provider/src/main/java/androidx/tvprovider/media/tv/ |
H A D | Channel.java | 415 int index; 416 if ((index = cursor.getColumnIndex(Channels._ID)) >= 0 && !cursor.isNull(index)) { 417 builder.setId(cursor.getLong(index)); 419 if ((index = cursor.getColumnIndex(Channels.COLUMN_DESCRIPTION)) >= 0 420 && !cursor.isNull(index)) { 421 builder.setDescription(cursor.getString(index)); 423 if ((index = cursor.getColumnIndex(Channels.COLUMN_DISPLAY_NAME)) >= 0 424 && !cursor.isNull(index)) { 425 builder.setDisplayName(cursor.getString(index)); [all...] |
/frameworks/av/media/libstagefright/omx/ |
H A D | OMXMaster.cpp | 96 OMX_U32 index = 0; local 101 name, sizeof(name), index++)) == OMX_ErrorNone) { 152 ssize_t index = mPluginByComponentName.indexOfKey(String8(name)); local 154 if (index < 0) { 158 OMXPluginBase *plugin = mPluginByComponentName.valueAt(index); 175 ssize_t index = mPluginByInstance.indexOfKey(component); local 177 if (index < 0) { 181 OMXPluginBase *plugin = mPluginByInstance.valueAt(index); 182 mPluginByInstance.removeItemsAt(index); 190 OMX_U32 index) { 187 enumerateComponents( OMX_STRING name, size_t size, OMX_U32 index) argument 214 ssize_t index = mPluginByComponentName.indexOfKey(String8(name)); local [all...] |
/frameworks/base/core/java/android/webkit/ |
H A D | DateSorter.java | 87 * @return an index from 0 to (DAY_COUNT - 1) that identifies which 99 * @param index date bin index as returned by getIndex() 102 public String getLabel(int index) { argument 103 if (index < 0 || index >= DAY_COUNT) return ""; 104 return mLabels[index]; 109 * @param index date bin index as returned by getIndex() 110 * @return date boundary at given index 112 getBoundary(int index) argument [all...] |
/frameworks/base/drm/java/android/drm/ |
H A D | DrmUtils.java | 143 int index = 0; 145 while (index < constraintData.length) { 147 int keyLength = readByte(constraintData, index); 148 index++; 151 int valueLength = readByte(constraintData, index); 152 index++; 155 String strKey = readMultipleBytes(constraintData, keyLength, index); 156 index += keyLength; 159 String strValue = readMultipleBytes(constraintData, valueLength, index); 163 index [all...] |
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/verifier/ |
H A D | jdbc_ext.kt | 48 return map { index, data -> data.getColumnName(index) } 61 return map { index, data -> ColumnInfo(data.getColumnName(index), tryGetAffinity(index)) }
|
/frameworks/base/media/jni/ |
H A D | android_media_MediaProfiles.cpp | 55 android_media_MediaProfiles_native_get_file_format(JNIEnv *env, jobject /* thiz */, jint index) argument 57 ALOGV("native_get_file_format: %d", index); 60 if (index < 0 || index >= nSize) { 64 return static_cast<jint>(formats[index]); 76 jint index) 78 ALOGV("native_get_video_encoder_cap: %d", index); 81 if (index < 0 || index >= nSize) { 86 video_encoder encoder = encoders[index]; 75 android_media_MediaProfiles_native_get_video_encoder_cap(JNIEnv *env, jobject , jint index) argument 127 android_media_MediaProfiles_native_get_audio_encoder_cap(JNIEnv *env, jobject , jint index) argument 247 android_media_MediaProfiles_native_get_video_decoder_type(JNIEnv *env, jobject , jint index) argument 269 android_media_MediaProfiles_native_get_audio_decoder_type(JNIEnv *env, jobject , jint index) argument 293 android_media_MediaProfiles_native_get_image_encoding_quality_level(JNIEnv *env, jobject , jint cameraId, jint index) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | AccessibilityIterators.java | 230 private boolean isStartBoundary(int index) { argument 231 return isLetterOrDigit(index) 232 && (index == 0 || !isLetterOrDigit(index - 1)); 235 private boolean isEndBoundary(int index) { argument 236 return (index > 0 && isLetterOrDigit(index - 1)) 237 && (index == mText.length() || !isLetterOrDigit(index)); 240 private boolean isLetterOrDigit(int index) { argument 312 isStartBoundary(int index) argument 317 isEndBoundary(int index) argument [all...] |
/frameworks/wilhelm/tests/sandbox/ |
H A D | engine.c | 41 SLuint32 index; local 42 for (index = 0; index < numSupportedInterfaces + 1; ++index) { 45 result = slQuerySupportedEngineInterfaces(index, &interfaceID); 46 if (index < numSupportedInterfaces) { 48 printf("interface[%u] ", index); 50 engine_ids[index] = interfaceID; 51 engine_req[index] = SL_BOOLEAN_TRUE; 55 result = slQuerySupportedEngineInterfaces(index, NUL [all...] |
/frameworks/av/media/libmedia/ |
H A D | IMediaCodecList.cpp | 54 virtual sp<MediaCodecInfo> getCodecInfo(size_t index) const 58 data.writeInt32(index); 130 size_t index = static_cast<size_t>(data.readInt32()); local 131 const sp<MediaCodecInfo> info = getCodecInfo(index); 166 ssize_t index = findCodecByType(type, isEncoder, startIndex); local 167 if (index > INT32_MAX || index < 0) { 168 index = NAME_NOT_FOUND; 170 reply->writeInt32(index); 183 ssize_t index local [all...] |