/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/ |
H A D | d_plsf_3.cpp | 174 Word16 index; local 192 index = 200 index, 299 index = *indice++; 301 /* temp = 3*index; */ 302 temp = index + (index << 1); 315 index = *indice++; 319 index <<= 1; 322 /* temp = 3*index */ [all...] |
H A D | dec_lag6.cpp | 63 index -- Word16 -- received pitch index 89 the received adaptive codebook index. 96 decoder receives 61, 62, or 63 as the relative pitch index, it means 186 Word16 index, /* input : received pitch index */ 203 if (index < 463) 205 /* T0 = (index+5)/6 + 17 */ 206 i = index + 5; 226 /* *T0_frac = index 185 Dec_lag6( Word16 index, Word16 pit_min, Word16 pit_max, Word16 i_subfr, Word16 *T0, Word16 *T0_frac, Flag *pOverflow ) argument [all...] |
H A D | d1035pf.cpp | 93 index = buffer containing index of 10 pulses; each element is 112 This function builds the innovative codevector from the received index of 130 Word16 index[], // (i) : index of 10 pulses (sign+position) 145 // compute index i 147 tmp = index[j]; 166 // compute index i 168 i = index[add (j, 5)] & 7; 208 Word16 index[], /* ( 207 dec_10i40_35bits( Word16 index[], Word16 cod[] ) argument [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | Interpolator.java | 64 * Assign the keyFrame (specified by index) a time value and an array of key 68 * @param index The index of the key frame to assign 73 public void setKeyFrame(int index, int msec, float[] values) { argument 74 setKeyFrame(index, msec, values, null); 78 * Assign the keyFrame (specified by index) a time value and an array of key 81 * @param index The index of the key frame to assign 87 public void setKeyFrame(int index, int msec, float[] values, float[] blend) { argument 88 if (index < 160 nativeSetKeyFrame(long native_instance, int index, int msec, float[] values, float[] blend) argument [all...] |
/frameworks/base/rs/java/android/renderscript/ |
H A D | Script.java | 254 for (int index = 0; index < ains.length; ++index) { 255 in_ids[index] = ains[index].getID(mRS); 305 for (int index = 0; index < ains.length; ++index) { 306 in_ids[index] = ains[index] 377 setVar(int index, float v) argument 380 getVarF(int index) argument 388 setVar(int index, double v) argument 391 getVarD(int index) argument 399 setVar(int index, int v) argument 402 getVarI(int index) argument 411 setVar(int index, long v) argument 414 getVarJ(int index) argument 423 setVar(int index, boolean v) argument 426 getVarB(int index) argument 434 setVar(int index, BaseObj o) argument 444 setVar(int index, FieldPacker v) argument 452 setVar(int index, FieldPacker v, Element e, int[] dims) argument 460 getVarV(int index, FieldPacker v) argument [all...] |
/frameworks/base/apct-tests/perftests/core/src/android/database/ |
H A D | SQLiteDatabasePerfTest.java | 82 int index = rnd.nextInt(DEFAULT_DATASET_SIZE); 84 + "WHERE _ID=?", new String[]{String.valueOf(index)})) { 86 assertEquals(index, cursor.getInt(0)); 87 assertEquals(index, cursor.getInt(1)); 88 assertEquals("T1Value" + index, cursor.getString(2)); 89 assertEquals(1.1 * index, cursor.getDouble(3), 0.0000001d); 102 int index = rnd.nextInt(DEFAULT_DATASET_SIZE - querySize - 1); 105 new String[]{String.valueOf(index), String.valueOf(index + querySize - 1)})) { 108 assertEquals(index, curso [all...] |
/frameworks/support/app-toolkit/common/src/test/java/androidx/collection/ |
H A D | SafeIterableMapTest.java | 171 int index = 0; 174 assertThat(i.getKey(), is(expected[index++])); 175 if (index == 1) { 194 int index = 0; 200 assertThat(iter.next().getKey(), is(expected[index++])); 208 int index = 0; 210 assertThat(entry.getKey(), is(expected[index++])); 211 if (index == 1) { 215 assertThat(index, is(2)); 222 int index [all...] |
/frameworks/av/drm/mediadrm/plugins/mock/ |
H A D | MockDrmCryptoPlugin.cpp | 102 ssize_t index = findSession(sessionId); local 103 if (index == kNotFound) { 107 mSessions.removeAt(index); 125 ssize_t index = findSession(sessionId); local 126 if (index == kNotFound) { 157 index = mByteArrayProperties.indexOfKey(String8("mock-request")); 158 if (index < 0) { 162 request = mByteArrayProperties.valueAt(index); 165 index = mStringProperties.indexOfKey(String8("mock-defaultUrl")); 166 if (index < 192 ssize_t index = findSession(sessionId); local 222 ssize_t index = findKeySet(keySetId); local 239 ssize_t index = findSession(sessionId); local 260 ssize_t index = findSession(sessionId); local 283 ssize_t index = mByteArrayProperties.indexOfKey(String8("mock-request")); local 325 ssize_t index = mByteArrayProperties.indexOfKey(String8("mock-secure-stop")); local 345 ssize_t index = mByteArrayProperties.indexOfKey(String8("mock-secure-stop1")); local 389 ssize_t index = mStringProperties.indexOfKey(name); local 402 ssize_t index = mByteArrayProperties.indexOfKey(name); local 424 ssize_t index = mByteArrayProperties.indexOfKey(String8("mock-event-session-id")); local 444 ssize_t index = mByteArrayProperties.indexOfKey(String8("mock-event-session-id")); local 455 ssize_t index = mByteArrayProperties.indexOfKey(String8("mock-event-session-id")); local 520 ssize_t index = findSession(sessionId); local 540 ssize_t index = findSession(sessionId); local 565 ssize_t index = findSession(sessionId); local 604 ssize_t index = findSession(sessionId); local 641 ssize_t index = findSession(sessionId); local 678 ssize_t index = findSession(sessionId); local [all...] |
/frameworks/base/core/java/android/util/ |
H A D | SparseIntArray.java | 43 * <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 192 setValueAt(int index, int value) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | FrameInfo.h | 94 inline int64_t& set(FrameInfoIndex index) { return mBuffer[static_cast<int>(index)]; } argument 119 inline int64_t operator[](FrameInfoIndex index) const { return get(index); } 121 inline int64_t operator[](int index) const { 122 if (index < 0 || index >= static_cast<int>(FrameInfoIndex::NumIndexes)) return 0; 123 return mFrameInfo[index]; 146 inline int64_t& set(FrameInfoIndex index) { return mFrameInfo[static_cast<int>(index)]; } argument [all...] |
H A D | ResourceCache.cpp | 70 ssize_t index = mCache->indexOfKey(resource); local 71 ResourceReference* ref = index >= 0 ? mCache->valueAt(index) : nullptr; 89 ssize_t index = mCache->indexOfKey(resource); local 90 ResourceReference* ref = index >= 0 ? mCache->valueAt(index) : nullptr; 111 ssize_t index = mCache->indexOfKey(resource); local 112 ResourceReference* ref = index >= 0 ? mCache->valueAt(index) : nullptr;
|
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
H A D | cbsearch.cpp | 88 Purpose : Inovative codebook search (find index and gain) 200 Word16 index; local 221 &index, 224 *(*anap)++ = index; /* sign index */ 236 &index, 239 *(*anap)++ = index; /* sign index */ 251 &index, 254 *(*anap)++ = index; /* sig [all...] |
H A D | c1035pf.cpp | 137 This is a local function that determnes the index of the pulses by looking up 248 This function builds the codeword, the filtered codeword and index of the 268 Word16 indx[] // (o) : index of 10 pulses (sign+position) 271 Word16 i, j, k, track, index, _sign[NB_PULSE]; 291 index = mult (i, 6554); // index = pos/5 293 track = sub (i, extract_l (L_shr (L_mult (index, 5), 1))); 305 index = add (index, 8); 310 indx[track] = index; 409 Word16 i, k, track, index, _sign[NB_PULSE]; local [all...] |
/frameworks/base/core/java/android/app/usage/ |
H A D | TimeSparseArray.java | 37 * Finds the index of the first element whose timestamp is greater or equal to 41 * @return The index of the matched element, or -1 if no such match exists. 45 // the closest index is returned. 92 * Finds the index of the first element whose timestamp is less than or equal to 96 * @return The index of the matched element, or -1 if no such match exists. 99 final int index = closestIndexOnOrAfter(time); 100 if (index < 0) { 105 if (keyAt(index) == time) { 106 return index; 108 return index [all...] |
/frameworks/base/core/java/android/hardware/hdmi/ |
H A D | HdmiTimerRecordSources.java | 199 /* package */ int toByteArray(byte[] data, int index) { argument 200 data[index] = toBcdByte(mHour); 201 data[index + 1] = toBcdByte(mMinute); 345 int toByteArray(byte[] data, int index) { argument 347 data[index] = (byte) mDayOfMonth; 348 index += DAY_OF_MONTH_SIZE; 350 data[index] = (byte) mMonthOfYear; 351 index += MONTH_OF_YEAR_SIZE; 353 index += mStartTime.toByteArray(data, index); 393 toByteArray(byte[] data, int index) argument 425 extraParamToByteArray(byte[] data, int index) argument [all...] |
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
H A D | NotificationListenerServiceTest.java | 135 private int getVisibilityOverride(int index) { argument 136 return index * 9; 143 private boolean isIntercepted(int index) { argument 144 return index % 2 == 0; 147 private int getSuppressedVisualEffects(int index) { argument 148 return index * 2; 151 private int getImportance(int index) { argument 152 return index; 159 private NotificationChannel getChannel(String key, int index) { argument 160 return new NotificationChannel(key, key, getImportance(index)); 163 getShowBadge(int index) argument 167 getUserSentiment(int index) argument 179 getHidden(int index) argument 183 getPeople(String key, int index) argument 191 getSnoozeCriteria(String key, int index) argument [all...] |
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/writer/ |
H A D | ComponentWriter.java | 39 int index = 1; 41 addGetter(builder, simpleName, className, index++); 52 int index) { 57 if (index > 0) { 58 builder.append(index); 51 addGetter(StringBuilder builder, String simpleName, String className, int index) argument
|
/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
H A D | InputStreamBuffer.java | 32 * say you have a loop that reads bytes from index <code>0</code> to <code>10</code>, 33 * skips to index <code>N</code>, reads from index <code>N</code> to <code>N+10</code>, etc. Then 39 * helps to keep the internal buffer small. In the above example, after reading bytes from index 41 * buffer becomes filled with bytes from index <code>N</code> to <code>N+10</code>. 45 * index, then you should set the <code>autoAdvance</code> parameter to <code>true</code> in the 48 * <code>autoAdvance</code> is enabled, every time an index is beyond the buffer length, 49 * the buffer will be shifted forward such that the index requested becomes the first element in 53 * All public methods with parameter <code>index</code> are absolute indexed. The index i 129 get(final int index) argument 159 has(final int index) argument 187 advanceTo(final int index) argument 261 fill(final int index) argument [all...] |
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/ |
H A D | InputStreamBuffer.java | 32 * say you have a loop that reads bytes from index <code>0</code> to <code>10</code>, 33 * skips to index <code>N</code>, reads from index <code>N</code> to <code>N+10</code>, etc. Then 39 * helps to keep the internal buffer small. In the above example, after reading bytes from index 41 * buffer becomes filled with bytes from index <code>N</code> to <code>N+10</code>. 45 * index, then you should set the <code>autoAdvance</code> parameter to <code>true</code> in the 48 * <code>autoAdvance</code> is enabled, every time an index is beyond the buffer length, 49 * the buffer will be shifted forward such that the index requested becomes the first element in 53 * All public methods with parameter <code>index</code> are absolute indexed. The index i 129 get(final int index) argument 159 has(final int index) argument 187 advanceTo(final int index) argument 261 fill(final int index) argument [all...] |
/frameworks/support/wear/src/main/java/androidx/wear/internal/widget/drawer/ |
H A D | MultiPagePresenter.java | 68 void setNavigationPagerSelectedItem(int index, boolean smoothScrollTo); argument 102 public void onSelected(int index) { argument 103 notifyItemSelectedListeners(index); 107 public void onSetCurrentItemRequested(int index, boolean smoothScrollTo) { argument 108 mUi.setNavigationPagerSelectedItem(index, smoothScrollTo);
|
/frameworks/support/tv-provider/src/main/java/androidx/tvprovider/media/tv/ |
H A D | BasePreviewProgram.java | 453 int index; 455 if ((index = 457 && !cursor.isNull(index)) { 458 builder.setInternalProviderId(cursor.getString(index)); 460 if ((index = 462 && !cursor.isNull(index)) { 463 builder.setPreviewVideoUri(Uri.parse(cursor.getString(index))); 465 if ((index = cursor.getColumnIndex( 467 && !cursor.isNull(index)) { 468 builder.setLastPlaybackPositionMillis(cursor.getInt(index)); [all...] |
/frameworks/base/media/java/android/media/ |
H A D | MediaCodec.java | 1684 int index = msg.arg2; 1686 validateInputByteBuffer(mCachedInputBuffers, index); 1688 mCallback.onInputBufferAvailable(mCodec, index); 1694 int index = msg.arg2; 1697 validateOutputByteBuffer(mCachedOutputBuffers, index, info); 1700 mCodec, index, info); 2294 * After filling a range of the input buffer at the specified index 2331 * @param index The index of a client-owned input buffer previously returned 2351 int index, 2350 queueInputBuffer( int index, int offset, int size, long presentationTimeUs, int flags) argument 2367 native_queueInputBuffer( int index, int offset, int size, long presentationTimeUs, int flags) argument 2597 queueSecureInputBuffer( int index, int offset, @NonNull CryptoInfo info, long presentationTimeUs, int flags) argument 2616 native_queueSecureInputBuffer( int index, int offset, @NonNull CryptoInfo info, long presentationTimeUs, int flags) argument 2734 releaseOutputBuffer(int index, boolean render) argument 2795 releaseOutputBuffer(int index, long renderTimestampNs) argument 2808 releaseOutputBuffer( int index, boolean render, boolean updatePTS, long timeNs) argument 2862 getOutputFormat(int index) argument 2870 getOutputFormatNative(int index) argument 2905 remove(int index) argument 2913 put(int index, @Nullable ByteBuffer newBuffer) argument 2922 put(int index, @Nullable Image newImage) argument 2947 invalidateByteBuffer( @ullable ByteBuffer[] buffers, int index) argument 2957 validateInputByteBuffer( @ullable ByteBuffer[] buffers, int index) argument 2968 revalidateByteBuffer( @ullable ByteBuffer[] buffers, int index) argument 2980 validateOutputByteBuffer( @ullable ByteBuffer[] buffers, int index, @NonNull BufferInfo info) argument 3119 getInputBuffer(int index) argument 3148 getInputImage(int index) argument 3177 getOutputBuffer(int index) argument 3205 getOutputImage(int index) argument 3482 onInputBufferAvailable(@onNull MediaCodec codec, int index) argument 3491 onOutputBufferAvailable( @onNull MediaCodec codec, int index, @NonNull BufferInfo info) argument 3561 getBuffer(boolean input, int index) argument 3564 getImage(boolean input, int index) argument [all...] |
/frameworks/wilhelm/src/itf/ |
H A D | IDynamicInterfaceManagement.cpp | 36 int index = clazz->mMPH_to_index[MPH]; local 37 assert(0 <= index && index < (int) clazz->mInterfaceCount); 38 SLuint8 *interfaceStateP = &thisObject->mInterfaceStates[index]; 53 const struct iid_vtable *x = &clazz->mInterfaces[index]; 117 int MPH, index; local 121 (0 > (index = clazz->mMPH_to_index[MPH]))) { 124 assert(index < (int) clazz->mInterfaceCount); 125 SLuint8 *interfaceStateP = &thisObject->mInterfaceStates[index]; 161 const struct iid_vtable *x = &clazz->mInterfaces[index]; 213 int MPH, index; local 292 int index = clazz->mMPH_to_index[MPH]; local 365 int MPH, index; local [all...] |
/frameworks/base/tools/aapt2/ |
H A D | StringPool_test.cpp | 82 EXPECT_THAT(ref_a.index(), Eq(0u)); 83 EXPECT_THAT(ref_b.index(), Eq(1u)); 84 EXPECT_THAT(ref_c.index(), Eq(2u)); 122 EXPECT_THAT(ref_a.index(), Eq(0u)); 125 EXPECT_THAT(ref_b.index(), Eq(1u)); 128 EXPECT_THAT(ref_c.index(), Eq(2u)); 133 EXPECT_THAT(ref_a.index(), Eq(2u)); 136 EXPECT_THAT(ref_b.index(), Eq(0u)); 139 EXPECT_THAT(ref_c.index(), Eq(1u)); 155 EXPECT_THAT(ref_d.index(), E [all...] |
/frameworks/base/core/java/android/text/ |
H A D | AutoGrowArray.java | 128 public byte get(@IntRange(from = 0) int index) { argument 129 return mValues[index]; 135 public void set(@IntRange(from = 0) int index, byte value) { argument 136 mValues[index] = value; 237 public int get(@IntRange(from = 0) int index) { argument 238 return mValues[index]; 244 public void set(@IntRange(from = 0) int index, int value) { argument 245 mValues[index] = value; 346 public float get(@IntRange(from = 0) int index) { argument 347 return mValues[index]; 353 set(@ntRangefrom = 0) int index, float value) argument [all...] |