/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
D | q_pulse.c | 36 Word32 index; in quant_1p_N1() local 42 index = L_deposit_l((Word16) (pos & mask)); in quant_1p_N1() 45 index = vo_L_add(index, L_deposit_l(1 << N)); /* index += 1 << N; */ in quant_1p_N1() 47 return (index); in quant_1p_N1() 57 Word32 index; in quant_2p_2N1() local 68 index = L_deposit_l(add1((((Word16) (pos1 & mask)) << N), ((Word16) (pos2 & mask)))); in quant_2p_2N1() 72 index = L_deposit_l(add1((((Word16) (pos2 & mask)) << N), ((Word16) (pos1 & mask)))); in quant_2p_2N1() 77 index = vo_L_add(index, (1L << tmp)); /* index += 1 << (2*N); */ in quant_2p_2N1() 85 index = L_deposit_l(add1((((Word16) (pos2 & mask)) << N), ((Word16) (pos1 & mask)))); in quant_2p_2N1() 89 index = vo_L_add(index, (1L << tmp)); in quant_2p_2N1() [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | TintTypedArray.java | 67 public Drawable getDrawable(int index) { in getDrawable() argument 68 if (mWrapped.hasValue(index)) { in getDrawable() 69 final int resourceId = mWrapped.getResourceId(index, 0); in getDrawable() 74 return mWrapped.getDrawable(index); in getDrawable() 77 public Drawable getDrawableIfKnown(int index) { in getDrawableIfKnown() argument 78 if (mWrapped.hasValue(index)) { in getDrawableIfKnown() 79 final int resourceId = mWrapped.getResourceId(index, 0); in getDrawableIfKnown() 103 public CharSequence getText(int index) { in getText() argument 104 return mWrapped.getText(index); in getText() 107 public String getString(int index) { in getString() argument [all …]
|
/frameworks/base/core/java/android/content/res/ |
D | TypedArray.java | 154 public CharSequence getText(@StyleableRes int index) { in getText() argument 159 index *= AssetManager.STYLE_NUM_ENTRIES; in getText() 161 final int type = data[index+AssetManager.STYLE_TYPE]; in getText() 165 return loadStringValueAt(index); in getText() 169 if (getValueAt(index, v)) { in getText() 191 public String getString(@StyleableRes int index) { in getString() argument 196 index *= AssetManager.STYLE_NUM_ENTRIES; in getString() 198 final int type = data[index+AssetManager.STYLE_TYPE]; in getString() 202 return loadStringValueAt(index).toString(); in getString() 206 if (getValueAt(index, v)) { in getString() [all …]
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | ChildHelper.java | 96 void addView(View child, int index, boolean hidden) { in addView() argument 98 if (index < 0) { in addView() 101 offset = getOffset(index); in addView() 109 Log.d(TAG, "addViewAt " + index + ",h:" + hidden + ", " + this); in addView() 113 private int getOffset(int index) { in getOffset() argument 114 if (index < 0) { in getOffset() 118 int offset = index; in getOffset() 121 final int diff = index - (offset - removedBefore); in getOffset() 140 int index = mCallback.indexOfChild(view); in removeView() local 141 if (index < 0) { in removeView() [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/content/res/ |
D | GrowingArrayUtils.java | 109 public static <T> T[] insert(T[] array, int currentSize, int index, T element) { in insert() argument 113 System.arraycopy(array, index, array, index + 1, currentSize - index); in insert() 114 array[index] = element; in insert() 120 System.arraycopy(array, 0, newArray, 0, index); in insert() 121 newArray[index] = element; in insert() 122 System.arraycopy(array, index, newArray, index + 1, array.length - index); in insert() 129 public static int[] insert(int[] array, int currentSize, int index, int element) { in insert() argument 133 System.arraycopy(array, index, array, index + 1, currentSize - index); in insert() 134 array[index] = element; in insert() 139 System.arraycopy(array, 0, newArray, 0, index); in insert() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/ |
D | BridgeTypedArray.java | 99 public void bridgeSetValue(int index, String name, boolean isFramework, ResourceValue value) { in bridgeSetValue() argument 100 mResourceData[index] = value; in bridgeSetValue() 101 mNames[index] = name; in bridgeSetValue() 102 mIsFramework[index] = isFramework; in bridgeSetValue() 146 int index = 1; in sealArray() local 149 mIndices[index++] = i; in sealArray() 186 public CharSequence getText(int index) { in getText() argument 188 return getString(index); in getText() 200 public String getString(int index) { in getString() argument 201 if (!hasValue(index)) { in getString() [all …]
|
/frameworks/support/compat/java/android/support/v4/util/ |
D | SimpleArrayMap.java | 69 int index = ContainerHelpers.binarySearch(mHashes, N, hash); in indexOf() local 72 if (index < 0) { in indexOf() 73 return index; in indexOf() 77 if (key.equals(mArray[index<<1])) { in indexOf() 78 return index; in indexOf() 83 for (end = index + 1; end < N && mHashes[end] == hash; end++) { in indexOf() 88 for (int i = index - 1; i >= 0 && mHashes[i] == hash; i--) { in indexOf() 107 int index = ContainerHelpers.binarySearch(mHashes, N, 0); in indexOfNull() local 110 if (index < 0) { in indexOfNull() 111 return index; in indexOfNull() [all …]
|
/frameworks/base/core/java/android/util/ |
D | ArrayMap.java | 97 int index = ContainerHelpers.binarySearch(mHashes, N, hash); in indexOf() local 100 if (index < 0) { in indexOf() 101 return index; in indexOf() 105 if (key.equals(mArray[index<<1])) { in indexOf() 106 return index; in indexOf() 111 for (end = index + 1; end < N && mHashes[end] == hash; end++) { in indexOf() 116 for (int i = index - 1; i >= 0 && mHashes[i] == hash; i--) { in indexOf() 135 int index = ContainerHelpers.binarySearch(mHashes, N, 0); in indexOfNull() local 138 if (index < 0) { in indexOfNull() 139 return index; in indexOfNull() [all …]
|
D | ArraySet.java | 86 int index = ContainerHelpers.binarySearch(mHashes, N, hash); in indexOf() local 89 if (index < 0) { in indexOf() 90 return index; in indexOf() 94 if (key.equals(mArray[index])) { in indexOf() 95 return index; in indexOf() 100 for (end = index + 1; end < N && mHashes[end] == hash; end++) { in indexOf() 105 for (int i = index - 1; i >= 0 && mHashes[i] == hash; i--) { in indexOf() 124 int index = ContainerHelpers.binarySearch(mHashes, N, 0); in indexOfNull() local 127 if (index < 0) { in indexOfNull() 128 return index; in indexOfNull() [all …]
|
D | LongArray.java | 64 public void add(int index, long value) { in add() argument 65 if (index < 0 || index > mSize) { in add() 71 if (mSize - index != 0) { in add() 72 System.arraycopy(mValues, index, mValues, index + 1, mSize - index); in add() 75 mValues[index] = value; in add() 128 public long get(int index) { in get() argument 129 if (index >= mSize) { in get() 130 throw new ArrayIndexOutOfBoundsException(mSize, index); in get() 132 return mValues[index]; in get() 152 public void remove(int index) { in remove() argument [all …]
|
D | IntArray.java | 66 public void add(int index, int value) { in add() argument 67 if (index < 0 || index > mSize) { in add() 73 if (mSize - index != 0) { in add() 74 System.arraycopy(mValues, index, mValues, index + 1, mSize - index); in add() 77 mValues[index] = value; in add() 143 public int get(int index) { in get() argument 144 if (index >= mSize) { in get() 145 throw new ArrayIndexOutOfBoundsException(mSize, index); in get() 147 return mValues[index]; in get() 167 public void remove(int index) { in remove() argument [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | GrowingArrayUtils.java | 125 public static <T> T[] insert(T[] array, int currentSize, int index, T element) { in insert() argument 129 System.arraycopy(array, index, array, index + 1, currentSize - index); in insert() 130 array[index] = element; in insert() 137 System.arraycopy(array, 0, newArray, 0, index); in insert() 138 newArray[index] = element; in insert() 139 System.arraycopy(array, index, newArray, index + 1, array.length - index); in insert() 146 public static int[] insert(int[] array, int currentSize, int index, int element) { in insert() argument 150 System.arraycopy(array, index, array, index + 1, currentSize - index); in insert() 151 array[index] = element; in insert() 156 System.arraycopy(array, 0, newArray, 0, index); in insert() [all …]
|
/frameworks/data-binding/extensions/library/src/main/java/android/databinding/ |
D | ViewDataBinding.java | 600 protected static <T> T getFromArray(T[] arr, int index) { in getFromArray() argument 601 if (arr == null || index < 0 || index >= arr.length) { in getFromArray() 604 return arr[index]; in getFromArray() 608 protected static <T> void setTo(T[] arr, int index, T value) { in setTo() argument 609 if (arr == null || index < 0 || index >= arr.length) { in setTo() 612 arr[index] = value; in setTo() 616 protected static boolean getFromArray(boolean[] arr, int index) { in getFromArray() argument 617 if (arr == null || index < 0 || index >= arr.length) { in getFromArray() 620 return arr[index]; in getFromArray() 624 protected static void setTo(boolean[] arr, int index, boolean value) { in setTo() argument [all …]
|
/frameworks/av/media/libstagefright/codecs/amrwb/src/ |
D | dec_alg_codebook.cpp | 118 void dec_1p_N1(int32 index, int16 N, int16 offset, int16 pos[]) in dec_1p_N1() argument 127 pos1 = ((index & mask) + offset); in dec_1p_N1() 129 i = ((index >> N) & 1L); /* i = ((index >> N) & 1); */ in dec_1p_N1() 145 void dec_2p_2N1(int32 index, int16 N, int16 offset, int16 pos[]) in dec_2p_2N1() argument 155 pos1 = (int16)(add_int32((shr_int32(index, N) & mask), (int32)(offset))); in dec_2p_2N1() 157 i = (index >> tmp) & 1L; /* i = (index >> (2*N)) & 1; */ in dec_2p_2N1() 158 pos2 = add_int16((int16)(index & mask), offset); /* pos2 = ((index & mask) + offset); */ in dec_2p_2N1() 192 void dec_3p_3N1(int32 index, int16 N, int16 offset, int16 pos[]) in dec_3p_3N1() argument 204 idx = index & mask; in dec_3p_3N1() 209 if (((index >> tmp) & 1L) != 0L) in dec_3p_3N1() [all …]
|
/frameworks/support/v7/recyclerview/src/android/support/v7/util/ |
D | SortedList.java | 392 int index = findIndexOf(item, mData, 0, mSize, INSERTION); in add() local 393 if (index == INVALID_POSITION) { in add() 394 index = 0; in add() 395 } else if (index < mSize) { in add() 396 T existing = mData[index]; in add() 400 mData[index] = item; in add() 401 return index; in add() 403 mData[index] = item; in add() 404 mCallback.onChanged(index, 1); in add() 405 return index; in add() [all …]
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
D | chvr_filter.cpp | 35 int index, counter; in CombinedHorzVertRingFilter() local 103 index = brwidth + bc; in CombinedHorzVertRingFilter() 109 QP = QP_store[index]; in CombinedHorzVertRingFilter() 114 if (((pp_mod[index]&0x02) != 0) && ((pp_mod[index-pp_w]&0x02) != 0)) in CombinedHorzVertRingFilter() 118 pp_mod[index-pp_w] |= 0x10; /* 4/26/00 reuse pp_mod for HorzHflag*/ in CombinedHorzVertRingFilter() 121 for (index = BLKSIZE; index > 0; index--) in CombinedHorzVertRingFilter() 174 pp_mod[index-pp_w] &= 0xef; /* reset 1110,1111 */ in CombinedHorzVertRingFilter() 176 for (index = BLKSIZE; index > 0; index--) in CombinedHorzVertRingFilter() 262 index = brwidth + bc; in CombinedHorzVertRingFilter() 268 QP = QP_store[index]; in CombinedHorzVertRingFilter() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | UiccController.java | 123 Integer index = new Integer(i); in UiccController() local 124 mCis[i].registerForIccStatusChanged(this, EVENT_ICC_STATUS_CHANGED, index); in UiccController() 132 mCis[i].registerForAvailable(this, EVENT_ICC_STATUS_CHANGED, index); in UiccController() 134 mCis[i].registerForOn(this, EVENT_ICC_STATUS_CHANGED, index); in UiccController() 136 mCis[i].registerForNotAvailable(this, EVENT_RADIO_UNAVAILABLE, index); in UiccController() 137 mCis[i].registerForIccRefresh(this, EVENT_SIM_REFRESH, index); in UiccController() 211 Integer index = getCiIndex(msg); in handleMessage() local 213 if (index < 0 || index >= mCis.length) { in handleMessage() 214 Rlog.e(LOG_TAG, "Invalid index : " + index + " received with event " + msg.what); in handleMessage() 222 mCis[index].getIccCardStatus(obtainMessage(EVENT_GET_ICC_STATUS_DONE, index)); in handleMessage() [all …]
|
/frameworks/av/drm/mediadrm/plugins/mock/ |
D | MockDrmCryptoPlugin.cpp | 101 ssize_t index = findSession(sessionId); in closeSession() local 102 if (index == kNotFound) { in closeSession() 106 mSessions.removeAt(index); in closeSession() 124 ssize_t index = findSession(sessionId); in getKeyRequest() local 125 if (index == kNotFound) { in getKeyRequest() 156 index = mByteArrayProperties.indexOfKey(String8("mock-request")); in getKeyRequest() 157 if (index < 0) { in getKeyRequest() 161 request = mByteArrayProperties.valueAt(index); in getKeyRequest() 164 index = mStringProperties.indexOfKey(String8("mock-defaultUrl")); in getKeyRequest() 165 if (index < 0) { in getKeyRequest() [all …]
|
/frameworks/base/libs/usb/tests/accessorytest/ |
D | audio.c | 56 int index, other; in get_empty() local 63 index = empty_index; in get_empty() 64 other = (index == 0 ? 1 : 0); in get_empty() 65 buffer_states[index] = BUFFER_BUSY; in get_empty() 72 return index; in get_empty() 75 static void put_empty(int index) in put_empty() argument 79 buffer_states[index] = BUFFER_EMPTY; in put_empty() 81 empty_index = index; in put_empty() 90 int index, other; in get_full() local 97 index = full_index; in get_full() [all …]
|
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
D | BrowseAnimationFragment.java | 97 int index = adapter.indexOf(item); in createRandomItem() local 98 if (index >= 0) { in createRandomItem() 99 if (index > 0) in createRandomItem() 100 index--; in createRandomItem() 101 adapter.removeItems(index, 1); in createRandomItem() 112 int index = adapter.indexOf(item); in createRandomItem() field in BrowseAnimationFragment 113 if (index >= 0) { in createRandomItem() 114 if (index < adapter.size() - 1) in createRandomItem() 115 index++; in createRandomItem() 116 adapter.removeItems(index, 1); in createRandomItem() argument [all …]
|
/frameworks/base/core/java/android/os/health/ |
D | HealthStats.java | 213 final int index = getIndex(mTimerKeys, key); in getTimer() local 214 if (index < 0) { in getTimer() 218 return new TimerStat(mTimerCounts[index], mTimerTimes[index]); in getTimer() 228 final int index = getIndex(mTimerKeys, key); in getTimerCount() local 229 if (index < 0) { in getTimerCount() 233 return mTimerCounts[index]; in getTimerCount() 243 final int index = getIndex(mTimerKeys, key); in getTimerTime() local 244 if (index < 0) { in getTimerTime() 248 return mTimerTimes[index]; in getTimerTime() 267 public int getTimerKeyAt(int index) { in getTimerKeyAt() argument [all …]
|
/frameworks/base/core/java/android/hardware/hdmi/ |
D | HdmiRecordSources.java | 70 /* package */ abstract int extraParamToByteArray(byte[] data, int index); in extraParamToByteArray() argument 76 /* package */ final int toByteArray(boolean includeType, byte[] data, int index) { in toByteArray() argument 86 data[index++] = (byte) mSourceType; in toByteArray() 88 extraParamToByteArray(data, index); in toByteArray() 115 int extraParamToByteArray(byte[] data, int index) { in extraParamToByteArray() argument 166 int toByteArray(byte[] data, int index); in toByteArray() argument 198 public int toByteArray(byte[] data, int index) { in toByteArray() argument 200 index); in toByteArray() 227 public int toByteArray(byte[] data, int index) { in toByteArray() argument 228 return threeFieldsToSixBytes(mTransportStreamId, mProgramNumber, 0, data, index); in toByteArray() [all …]
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | SingleRow.java | 33 public final Location getLocation(int index) { in getLocation() argument 77 for (int index = getStartIndexForPrepend(); index >= 0; index--) { in prependVisibleItems() 78 int size = mProvider.createItem(index, false, mTmpItem); in prependVisibleItems() 82 mLastVisibleIndex = mFirstVisibleIndex = index; in prependVisibleItems() 85 edge = mProvider.getEdge(index + 1) + mMargin + size; in prependVisibleItems() 87 edge = mProvider.getEdge(index + 1) - mMargin - size; in prependVisibleItems() 89 mFirstVisibleIndex = index; in prependVisibleItems() 91 mProvider.addItem(mTmpItem[0], index, size, 0, edge); in prependVisibleItems() 110 for (int index = getStartIndexForAppend(); index < mProvider.getCount(); index++) { in appendVisibleItems() 111 int size = mProvider.createItem(index, true, mTmpItem); in appendVisibleItems() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
D | UsimDataDownloadHandler.java | 129 int index = 0; in handleDataDownload() local 132 envelope[index++] = (byte) BER_SMS_PP_DOWNLOAD_TAG; in handleDataDownload() 134 envelope[index++] = (byte) 0x81; // length 128-255 encoded as 0x81 + length in handleDataDownload() 136 envelope[index++] = (byte) bodyLength; in handleDataDownload() 139 envelope[index++] = (byte) (0x80 | ComprehensionTlvTag.DEVICE_IDENTITIES.value()); in handleDataDownload() 140 envelope[index++] = (byte) 2; in handleDataDownload() 141 envelope[index++] = (byte) DEV_ID_NETWORK; in handleDataDownload() 142 envelope[index++] = (byte) DEV_ID_UICC; in handleDataDownload() 146 envelope[index++] = (byte) ComprehensionTlvTag.ADDRESS.value(); in handleDataDownload() 147 envelope[index++] = (byte) scAddressLength; in handleDataDownload() [all …]
|
/frameworks/base/tools/split-select/ |
D | RuleGenerator.cpp | 35 sp<Rule> RuleGenerator::generateDensity(const Vector<int>& allDensities, size_t index) { in generateDensity() argument 36 if (allDensities[index] != ResTable_config::DENSITY_ANY) { in generateDensity() 51 if (index > 0) { in generateDensity() 55 gt->longArgs.add(findMid(allDensities[index - 1], allDensities[index]) - 1); in generateDensity() 59 … if (index + 1 < allDensities.size() && allDensities[index + 1] != ResTable_config::DENSITY_ANY) { in generateDensity() 63 lt->longArgs.add(findMid(allDensities[index], allDensities[index + 1])); in generateDensity() 76 sp<Rule> RuleGenerator::generateAbi(const Vector<abi::Variant>& splitAbis, size_t index) { in generateAbi() argument 77 const abi::Variant thisAbi = splitAbis[index]; in generateAbi() 84 if (index + 1 < splitAbis.size()) { in generateAbi() 85 end = std::find(start, familyVariants.end(), splitAbis[index + 1]); in generateAbi() [all …]
|