/frameworks/av/media/codecs/amrwb/enc/src/ |
D | q_pulse.c | 37 Word32 index; in quant_1p_N1() local 43 index = L_deposit_l((Word16) (pos & mask)); in quant_1p_N1() 46 index = vo_L_add(index, L_deposit_l(1 << N)); /* index += 1 << N; */ in quant_1p_N1() 48 return (index); in quant_1p_N1() 58 Word32 index; in quant_2p_2N1() local 69 index = L_deposit_l(add1((((Word16) (pos1 & mask)) << N), ((Word16) (pos2 & mask)))); in quant_2p_2N1() 73 index = L_deposit_l(add1((((Word16) (pos2 & mask)) << N), ((Word16) (pos1 & mask)))); in quant_2p_2N1() 78 index = vo_L_add(index, (1L << tmp)); /* index += 1 << (2*N); */ in quant_2p_2N1() 86 index = L_deposit_l(add1((((Word16) (pos2 & mask)) << N), ((Word16) (pos1 & mask)))); in quant_2p_2N1() 90 index = vo_L_add(index, (1L << tmp)); in quant_2p_2N1() [all …]
|
/frameworks/base/core/java/android/content/res/ |
D | TypedArray.java | 223 public CharSequence getText(@StyleableRes int index) { in getText() argument 228 index *= STYLE_NUM_ENTRIES; in getText() 230 final int type = data[index + STYLE_TYPE]; in getText() 234 return loadStringValueAt(index); in getText() 238 if (getValueAt(index, v)) { in getText() 260 public String getString(@StyleableRes int index) { in getString() argument 265 index *= STYLE_NUM_ENTRIES; in getString() 267 final int type = data[index + STYLE_TYPE]; in getString() 271 return loadStringValueAt(index).toString(); in getString() 275 if (getValueAt(index, v)) { in getString() [all …]
|
/frameworks/proto_logging/stats/stats_log_api_gen/ |
D | main.cpp | 79 int index = 1; in run() local 80 while (index < argc) { in run() 81 if (0 == strcmp("--help", argv[index])) { in run() 84 } else if (0 == strcmp("--cpp", argv[index])) { in run() 85 index++; in run() 86 if (index >= argc) { in run() 90 cppFilename = argv[index]; in run() 91 } else if (0 == strcmp("--header", argv[index])) { in run() 92 index++; in run() 93 if (index >= argc) { in run() [all …]
|
/frameworks/base/core/java/com/android/internal/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/base/core/java/com/android/internal/util/ |
D | GrowingArrayUtils.java | 130 public static <T> T[] insert(T[] array, int currentSize, int index, T element) { in insert() argument 134 System.arraycopy(array, index, array, index + 1, currentSize - index); in insert() 135 array[index] = element; in insert() 142 System.arraycopy(array, 0, newArray, 0, index); in insert() 143 newArray[index] = element; in insert() 144 System.arraycopy(array, index, newArray, index + 1, array.length - index); in insert() 151 public static int[] insert(int[] array, int currentSize, int index, int element) { in insert() argument 155 System.arraycopy(array, index, array, index + 1, currentSize - index); in insert() 156 array[index] = element; in insert() 161 System.arraycopy(array, 0, newArray, 0, index); in insert() [all …]
|
/frameworks/av/media/codecs/amrwb/dec/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/base/core/java/android/util/ |
D | ArrayMap.java | 146 int index = binarySearchHashes(mHashes, N, hash); in indexOf() local 149 if (index < 0) { in indexOf() 150 return index; in indexOf() 154 if (key.equals(mArray[index<<1])) { in indexOf() 155 return index; in indexOf() 160 for (end = index + 1; end < N && mHashes[end] == hash; end++) { in indexOf() 165 for (int i = index - 1; i >= 0 && mHashes[i] == hash; i--) { in indexOf() 185 int index = binarySearchHashes(mHashes, N, 0); in indexOfNull() local 188 if (index < 0) { in indexOfNull() 189 return index; in indexOfNull() [all …]
|
D | TypedXmlPullParser.java | 53 final int index = getAttributeIndex(namespace, name); in getAttributeIndexOrThrow() local 54 if (index == -1) { in getAttributeIndexOrThrow() 57 return index; in getAttributeIndexOrThrow() 65 @NonNull byte[] getAttributeBytesHex(int index) throws XmlPullParserException; in getAttributeBytesHex() argument 71 @NonNull byte[] getAttributeBytesBase64(int index) throws XmlPullParserException; in getAttributeBytesBase64() argument 77 int getAttributeInt(int index) throws XmlPullParserException; in getAttributeInt() argument 83 int getAttributeIntHex(int index) throws XmlPullParserException; in getAttributeIntHex() argument 89 long getAttributeLong(int index) throws XmlPullParserException; in getAttributeLong() argument 95 long getAttributeLongHex(int index) throws XmlPullParserException; in getAttributeLongHex() argument 101 float getAttributeFloat(int index) throws XmlPullParserException; in getAttributeFloat() argument [all …]
|
D | ArraySet.java | 113 int index = binarySearch(mHashes, hash); in indexOf() local 116 if (index < 0) { in indexOf() 117 return index; in indexOf() 121 if (key.equals(mArray[index])) { in indexOf() 122 return index; in indexOf() 127 for (end = index + 1; end < N && mHashes[end] == hash; end++) { in indexOf() 132 for (int i = index - 1; i >= 0 && mHashes[i] == hash; i--) { in indexOf() 152 int index = binarySearch(mHashes, 0); in indexOfNull() local 155 if (index < 0) { in indexOfNull() 156 return index; in indexOfNull() [all …]
|
D | SparseLongArray.java | 131 public void removeAtRange(int index, int size) { in removeAtRange() argument 132 size = Math.min(size, mSize - index); in removeAtRange() 133 System.arraycopy(mKeys, index + size, mKeys, index, mSize - (index + size)); in removeAtRange() 134 System.arraycopy(mValues, index + size, mValues, index, mSize - (index + size)); in removeAtRange() 141 public void removeAt(int index) { in removeAt() argument 142 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); in removeAt() 143 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1)); in removeAt() 189 public int keyAt(int index) { in keyAt() argument 190 if (index >= mSize && UtilConfig.sThrowExceptionForUpperArrayOutOfBounds) { in keyAt() 193 throw new ArrayIndexOutOfBoundsException(index); in keyAt() [all …]
|
D | XmlPullAttributes.java | 38 public String getAttributeNamespace (int index) { in getAttributeNamespace() argument 39 return mParser.getAttributeNamespace(index); in getAttributeNamespace() 42 public String getAttributeName(int index) { in getAttributeName() argument 43 return mParser.getAttributeName(index); in getAttributeName() 46 public String getAttributeValue(int index) { in getAttributeValue() argument 47 return mParser.getAttributeValue(index); in getAttributeValue() 58 public int getAttributeNameResource(int index) { in getAttributeNameResource() argument 101 public int getAttributeListValue(int index, in getAttributeListValue() argument 104 getAttributeValue(index), options, defaultValue); in getAttributeListValue() 107 public boolean getAttributeBooleanValue(int index, boolean defaultValue) { in getAttributeBooleanValue() argument [all …]
|
/frameworks/layoutlib/bridge/src/android/content/res/ |
D | BridgeTypedArray.java | 111 public void bridgeSetValue(int index, String name, ResourceNamespace namespace, int resourceId, in bridgeSetValue() argument 113 mResourceId[index] = resourceId; in bridgeSetValue() 114 mResourceData[index] = value; in bridgeSetValue() 115 mNames[index] = name; in bridgeSetValue() 116 mNamespaces[index] = namespace; in bridgeSetValue() 160 int index = 1; in sealArray() local 163 mIndices[index++] = i; in sealArray() 200 public CharSequence getText(int index) { in getText() argument 201 if (!hasValue(index)) { in getText() 207 Integer v = resolveEnumAttribute(index); in getText() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | AnswerToReset.java | 97 int index = startIndex + 1; in parseHistoricalBytes() local 98 while (index < startIndex + length && index > 0) { in parseHistoricalBytes() 99 index = parseLtvNode(index, nodes, originalData, startIndex + length - 1); in parseHistoricalBytes() 101 if (index < 0) { in parseHistoricalBytes() 116 int index, ArrayMap<Integer, byte[]> nodes, byte[] data, int lastByteIndex) { in parseLtvNode() argument 117 if (index > lastByteIndex) { in parseLtvNode() 120 int tag = (data[index] & TAG_MASK) >> 4; in parseLtvNode() 121 int length = data[index++] & LENGTH_MASK; in parseLtvNode() 122 if (index + length > lastByteIndex + 1 || length == 0) { in parseLtvNode() 126 System.arraycopy(data, index, value, 0, length); in parseLtvNode() [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/av/drm/mediadrm/plugins/mock/ |
D | MockDrmCryptoPlugin.cpp | 102 ssize_t index = findSession(sessionId); in closeSession() local 103 if (index == kNotFound) { in closeSession() 107 mSessions.removeAt(index); in closeSession() 125 ssize_t index = findSession(sessionId); in getKeyRequest() local 126 if (index == kNotFound) { in getKeyRequest() 157 index = mByteArrayProperties.indexOfKey(String8("mock-request")); in getKeyRequest() 158 if (index < 0) { in getKeyRequest() 162 request = mByteArrayProperties.valueAt(index); in getKeyRequest() 165 index = mStringProperties.indexOfKey(String8("mock-defaultUrl")); in getKeyRequest() 166 if (index < 0) { in getKeyRequest() [all …]
|
/frameworks/base/core/java/android/os/health/ |
D | HealthStats.java | 215 final int index = getIndex(mTimerKeys, key); in getTimer() local 216 if (index < 0) { in getTimer() 220 return new TimerStat(mTimerCounts[index], mTimerTimes[index]); in getTimer() 230 final int index = getIndex(mTimerKeys, key); in getTimerCount() local 231 if (index < 0) { in getTimerCount() 235 return mTimerCounts[index]; in getTimerCount() 245 final int index = getIndex(mTimerKeys, key); in getTimerTime() local 246 if (index < 0) { in getTimerTime() 250 return mTimerTimes[index]; in getTimerTime() 269 public int getTimerKeyAt(int index) { in getTimerKeyAt() argument [all …]
|
/frameworks/base/libs/hwui/ |
D | ProfileData.cpp | 46 uint32_t index = static_cast<uint32_t>(ns2ms(frameTime)); in frameCountIndexForFrameTime() local 49 uint32_t mask = -(index > kBucketMinThreshold); in frameCountIndexForFrameTime() 55 index = ((index - kBucket4msIntervals) >> (index > kBucket4msIntervals)) + kBucket4msIntervals; in frameCountIndexForFrameTime() 56 index = ((index - kBucket2msIntervals) >> (index > kBucket2msIntervals)) + kBucket2msIntervals; in frameCountIndexForFrameTime() 60 index = (index - kBucketMinThreshold) & mask; in frameCountIndexForFrameTime() 61 return index; in frameCountIndexForFrameTime() 65 uint32_t ProfileData::frameTimeForFrameCountIndex(uint32_t index) { in frameTimeForFrameCountIndex() argument 66 index = index + kBucketMinThreshold; in frameTimeForFrameCountIndex() 67 if (index > kBucket2msIntervals) { in frameTimeForFrameCountIndex() 68 index += (index - kBucket2msIntervals); in frameTimeForFrameCountIndex() [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/base/core/java/com/android/internal/power/ |
D | MeasuredEnergyStats.java | 175 final int index = in.readInt(); in readSummaryFromParcel() local 178 mAccumulatedChargeMicroCoulomb[index] = chargeUC; in readSummaryFromParcel() 180 setValueIfSupported(index, chargeUC); in readSummaryFromParcel() 196 for (int index = 0; index < mAccumulatedChargeMicroCoulomb.length; index++) { in writeSummaryToParcel() 197 final long charge = mAccumulatedChargeMicroCoulomb[index]; in writeSummaryToParcel() 201 out.writeInt(index); in writeSummaryToParcel() 229 final int index = customBucketToIndex(customBucket); in updateCustomBucket() local 230 updateEntry(index, chargeDeltaUC); in updateCustomBucket() 234 private void updateEntry(int index, long chargeDeltaUC) { in updateEntry() argument 235 if (mAccumulatedChargeMicroCoulomb[index] >= 0L) { in updateEntry() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/parsing/pkg/ |
D | PackageImpl.java | 223 public PackageImpl removePermission(int index) { in removePermission() argument 224 this.permissions.remove(index); in removePermission() 229 public PackageImpl addUsesOptionalLibrary(int index, String libraryName) { in addUsesOptionalLibrary() argument 230 this.usesOptionalLibraries = CollectionUtils.add(usesOptionalLibraries, index, in addUsesOptionalLibrary() 236 public PackageImpl addUsesLibrary(int index, String libraryName) { in addUsesLibrary() argument 237 this.usesLibraries = CollectionUtils.add(usesLibraries, index, in addUsesLibrary() 321 for (int index = 0; index < permissionsSize; index++) { in setPackageName() 322 permissions.get(index).setPackageName(this.packageName); in setPackageName() 326 for (int index = 0; index < permissionGroupsSize; index++) { in setPackageName() 327 permissionGroups.get(index).setPackageName(this.packageName); in setPackageName() [all …]
|
/frameworks/base/tools/powermodel/src/com/android/powermodel/ |
D | RawBatteryStats.java | 122 int index(); in index() method 158 @Field(index=-4) 161 @Field(index=-3) 164 @Field(index=-2) 167 @Field(index=-1) 175 @Field(index=0) 178 @Field(index=1) 181 @Field(index=2) 184 @Field(index=3) 187 @Field(index=4) [all …]
|
D | CsvParser.java | 83 int index = readPos; in parse() local 85 while (index < amt) { in parse() 86 byte c = buf[index]; in parse() 96 fields.add(new String(buf, fieldStart, index-fieldStart)); in parse() 107 fieldStart = index = index + 1; in parse() 114 buf[escapeIndex] = buf[index]; in parse() 120 index++; in parse() 123 fieldStart = index = index + 1; in parse() 128 buf[escapeIndex] = buf[index]; in parse() 130 index++; in parse() [all …]
|
/frameworks/base/packages/SettingsLib/EntityHeaderWidgets/src/com/android/settingslib/widget/ |
D | AppEntitiesHeaderController.java | 127 for (int index = 0; index < MAXIMUM_APPS; index++) { in AppEntitiesHeaderController() 128 final View appView = mAppEntityViews[index]; in AppEntitiesHeaderController() 129 mAppIconViews[index] = (ImageView) appView.findViewById(R.id.app_icon); in AppEntitiesHeaderController() 130 mAppTitleViews[index] = (TextView) appView.findViewById(R.id.app_title); in AppEntitiesHeaderController() 131 mAppSummaryViews[index] = (TextView) appView.findViewById(R.id.app_summary); in AppEntitiesHeaderController() 183 public AppEntitiesHeaderController setAppEntity(int index, in setAppEntity() argument 185 mAppEntityInfos[index] = appEntityInfo; in setAppEntity() 195 public AppEntitiesHeaderController removeAppEntity(int index) { in removeAppEntity() argument 196 mAppEntityInfos[index] = null; in removeAppEntity() 206 for (int index = 0; index < MAXIMUM_APPS; index++) { in clearAllAppEntities() [all …]
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | ByteBucketArray.h | 47 inline const T& get(size_t index) const { return (*this)[index]; } in get() argument 49 const T& operator[](size_t index) const { 50 if (index >= size()) { 54 uint8_t bucket_index = static_cast<uint8_t>(index) >> 4; 59 return bucket[0x0f & static_cast<uint8_t>(index)]; 62 T& editItemAt(size_t index) { in editItemAt() argument 63 CHECK(index < size()) << "ByteBucketArray.editItemAt(index=" << index in editItemAt() 66 uint8_t bucket_index = static_cast<uint8_t>(index) >> 4; in editItemAt() 71 return bucket[0x0f & static_cast<uint8_t>(index)]; in editItemAt() 74 bool set(size_t index, const T& value) { in set() argument [all …]
|
/frameworks/libs/service_entitlement/java/com/android/libraries/entitlement/eapaka/ |
D | EapAkaSecurityContext.java | 87 int index = 0; in parseResponseData() local 88 if (data[index] == RESPONSE_TAG_SUCCESS) { in parseResponseData() 90 index++; // move to RES length byte in parseResponseData() 91 mRes = parseTag(index, data); in parseResponseData() 97 index += mRes.length + 1; // move to CK length byte in parseResponseData() 98 mCk = parseTag(index, data); in parseResponseData() 104 index += mCk.length + 1; // move to IK length byte in parseResponseData() 105 mIk = parseTag(index, data); in parseResponseData() 111 } else if (data[index] == RESPONSE_TAG_SYNC_FAILURE) { in parseResponseData() 113 index++; // move to AUTS length byte in parseResponseData() [all …]
|