Searched refs:index (Results 176 - 200 of 1308) sorted by relevance

1234567891011>>

/frameworks/native/services/surfaceflinger/RenderEngine/
H A DMesh.h45 TYPE& operator[](size_t index) { argument
46 return *reinterpret_cast<TYPE*>(&mData[index*mStride]);
48 TYPE const& operator[](size_t index) const {
49 return *reinterpret_cast<TYPE const*>(&mData[index*mStride]);
/frameworks/base/libs/androidfw/tests/
H A DTypeWrappers_test.cpp41 e1.key.index = 0;
54 e2.key.index = 1;
84 ASSERT_EQ(uint32_t(0), iter.index());
86 ASSERT_EQ(uint32_t(0), iter->key.index);
91 ASSERT_EQ(uint32_t(1), iter.index());
97 ASSERT_EQ(uint32_t(2), iter.index());
99 ASSERT_EQ(uint32_t(1), iter->key.index);
/frameworks/base/libs/hwui/renderstate/
H A DMeshState.cpp42 int index = i * 6; local
43 regionIndices[index ] = quad; // top-left
44 regionIndices[index + 1] = quad + 1; // top-right
45 regionIndices[index + 2] = quad + 2; // bottom-left
46 regionIndices[index + 3] = quad + 2; // bottom-left
47 regionIndices[index + 4] = quad + 1; // top-right
48 regionIndices[index + 5] = quad + 3; // bottom-right
/frameworks/native/services/sensorservice/
H A DBatteryService.cpp44 ssize_t index = mActivations.indexOf(key); local
45 if (index < 0) {
46 index = mActivations.add(key);
48 Info& info(mActivations.editItemAt(index));
55 ssize_t index = mActivations.indexOf(Info(uid, handle)); local
56 if (index < 0) return false;
57 Info& info(mActivations.editItemAt(index));
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DDriverCall.java40 public int index; field in class:DriverCall
60 // index,isMT,state,mode,isMpty(,number,TOA)?
64 ret.index = p.nextInt();
107 return "id=" + index + ","
148 /** For sorting by index */
153 if (index < dc.index) {
155 } else if (index == dc.index) {
157 } else { /*index > d
[all...]
H A DWspTypeDecoder.java220 int index = startIndex;
221 while (mWspData[index] != 0) {
222 index++;
224 mDataLength = index - startIndex + 1;
243 int index = startIndex;
244 while (mWspData[index] != 0) {
245 index++;
247 mDataLength = index - startIndex + 1;
320 int index = startIndex;
323 while ((mWspData[index]
[all...]
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DScript.java353 for (int index = 0; index < ains.length; ++index) {
354 in_ids[index] = ains[index].getID(mRS);
405 for (int index = 0; index < ains.length; ++index) {
406 in_ids[index] = ains[index]
431 setVar(int index, float v) argument
441 setVar(int index, double v) argument
451 setVar(int index, int v) argument
461 setVar(int index, long v) argument
471 setVar(int index, boolean v) argument
481 setVar(int index, BaseObj o) argument
496 setVar(int index, FieldPacker v) argument
508 setVar(int index, FieldPacker v, Element e, int[] dims) argument
[all...]
/frameworks/av/media/libstagefright/include/
H A DSoftOMXComponent.h59 OMX_INDEXTYPE index, OMX_PTR params);
62 OMX_INDEXTYPE index, const OMX_PTR params);
65 OMX_INDEXTYPE index, OMX_PTR params);
68 OMX_INDEXTYPE index, const OMX_PTR params);
71 const char *name, OMX_INDEXTYPE *index);
113 OMX_INDEXTYPE index,
118 OMX_INDEXTYPE index,
123 OMX_INDEXTYPE index,
128 OMX_INDEXTYPE index,
134 OMX_INDEXTYPE *index);
[all...]
/frameworks/av/media/mtp/
H A DMtpPacket.cpp135 uint32_t MtpPacket::getParameter(int index) const {
136 if (index < 1 || index > 5) {
137 ALOGE("index %d out of range in MtpPacket::getParameter", index);
140 return getUInt32(MTP_CONTAINER_PARAMETER_OFFSET + (index - 1) * sizeof(uint32_t));
143 void MtpPacket::setParameter(int index, uint32_t value) { argument
144 if (index < 1 || index > 5) {
145 ALOGE("index
[all...]
/frameworks/base/core/java/android/os/
H A DWorkSource.java90 public int get(int index) { argument
91 return mUids[index];
95 public String getName(int index) { argument
96 return mNames != null ? mNames[index] : null;
605 private void insert(int index, int uid) { argument
606 if (DEBUG) Log.d(TAG, "Insert in " + this + " @ " + index + " uid " + uid);
613 if (index > 0) {
614 System.arraycopy(mUids, 0, newuids, 0, index);
616 if (index < mNum) {
617 System.arraycopy(mUids, index, newuid
631 insert(int index, int uid, String name) argument
[all...]
/frameworks/base/native/android/
H A Dasset_manager.cpp129 size_t index = assetDir->mCurFileIndex; local
135 while ((index < max) && (assetDir->mAssetDir->getFileType(index) != kFileTypeRegular)) {
136 index++;
139 // still in bounds? then the one at 'index' is the next to be reported; generate
141 if (index < max) {
142 assetDir->mCachedFileName = assetDir->mAssetDir->getFileName(index);
144 index++;
147 assetDir->mCurFileIndex = index;
156 const char* AAssetDir_getFileName(AAssetDir* assetDir, int index) argument
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
H A DMediaControllerGlue.java139 for (int index = 0; index < seekSpeeds.length; index++) {
140 if (speed == seekSpeeds[index]) {
141 return PLAYBACK_SPEED_FAST_L0 + index;
146 for (int index = 0; index < seekSpeeds.length; index++) {
147 if (-speed == seekSpeeds[index]) {
148 return -PLAYBACK_SPEED_FAST_L0 - index;
[all...]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DChildHelperTest.java115 public void addView(View child, int index) { argument
116 mViews.add(index, child);
124 private boolean validateIndex(int index) { argument
125 return index < getChildCount() && index >= 0;
129 public void removeViewAt(int index) { argument
130 if (validateIndex(index)) {
131 mViews.remove(index);
154 public void attachViewToParent(View child, int index, ViewGroup.LayoutParams layoutParams) { argument
156 addView(child, index);
[all...]
/frameworks/base/sax/java/android/sax/
H A DChildren.java32 int index = hash & 15;
34 Child current = children[index];
38 children[index] = current;
67 int index = hash & 15;
69 Child current = children[index];
/frameworks/wilhelm/src/itf/
H A DIMetadataTraversal.c66 SLMetadataTraversalItf self, SLuint32 index, SLuint32 *pSize)
85 static SLresult IMetadataTraversal_GetChildInfo(SLMetadataTraversalItf self, SLuint32 index, argument
97 static SLresult IMetadataTraversal_SetActiveNode(SLMetadataTraversalItf self, SLuint32 index) argument
101 if (SL_NODE_PARENT == index) {
105 thiz->mIndex = index;
65 IMetadataTraversal_GetChildMIMETypeSize( SLMetadataTraversalItf self, SLuint32 index, SLuint32 *pSize) argument
/frameworks/base/tools/layoutlib/bridge/src/android/util/
H A DBridgeXmlPullAttributes.java54 public int getAttributeNameResource(int index) { argument
56 String name = getAttributeName(index);
59 String ns = mParser.getAttributeNamespace(index);
175 public int getAttributeListValue(int index, argument
178 getAttributeValue(index), options, defaultValue);
182 public boolean getAttributeBooleanValue(int index, boolean defaultValue) { argument
183 String value = getAttributeValue(index);
198 public int getAttributeResourceValue(int index, int defaultValue) { argument
199 String value = getAttributeValue(index);
205 public int getAttributeIntValue(int index, in argument
224 getAttributeUnsignedIntValue(int index, int defaultValue) argument
240 getAttributeFloatValue(int index, float defaultValue) argument
[all...]
/frameworks/native/opengl/tools/glgen/src/
H A DJniCodeEmitter.java227 int index = 1;
229 while (index < checks.length) {
230 if (checks[index].equals("nullAllowed") &&
231 checks[index + 1].equals(cname)) {
234 index = skipOneCheck(checks, index);
243 int index = 1;
245 while (index < checks.length) {
246 if (checks[index].startsWith("check")) {
249 index
287 skipOneCheck(String[] checks, int index) argument
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DASessionDescription.cpp172 void ASessionDescription::getFormat(size_t index, AString *value) const { argument
173 CHECK_GE(index, 0u);
174 CHECK_LT(index, mTracks.size());
176 *value = mFormats.itemAt(index);
180 size_t index, const char *key, AString *value) const {
181 CHECK_GE(index, 0u);
182 CHECK_LT(index, mTracks.size());
186 const Attribs &track = mTracks.itemAt(index);
199 size_t index, unsigned long *PT,
202 getFormat(index,
179 findAttribute( size_t index, const char *key, AString *value) const argument
198 getFormatType( size_t index, unsigned long *PT, AString *desc, AString *params) const argument
225 getDimensions( size_t index, unsigned long PT, int32_t *width, int32_t *height) const argument
[all...]
/frameworks/base/core/java/android/view/animation/
H A DGridLayoutAnimationController.java30 * While {@link LayoutAnimationController} relies only on the index of the child
345 int index;
348 index = params.columnsCount - 1 - params.column;
354 index = (int) (params.columnsCount * mRandomizer.nextFloat());
358 index = params.column;
364 index = params.columnsCount - 1 - index;
367 return index;
371 int index;
374 index
[all...]
/frameworks/base/core/java/android/webkit/
H A DURLUtil.java147 int index = url.indexOf('%');
148 while (index >= 0 && index < count) {
149 if (index < count - 2) {
151 parseHex((byte) url.charAt(++index));
152 parseHex((byte) url.charAt(++index));
159 index = url.indexOf('%', index + 1);
312 int index = filename.lastIndexOf('/') + 1;
313 if (index >
[all...]
/frameworks/base/cmds/input/src/com/android/commands/input/
H A DInput.java68 int index = 0;
69 String command = args[index];
73 index++;
74 command = args[index];
76 final int length = args.length - index;
82 sendText(inputSource, args[index+1]);
87 final boolean longpress = "--longpress".equals(args[index + 1]);
88 final int start = longpress ? index + 2 : index + 1;
104 sendTap(inputSource, Float.parseFloat(args[index
[all...]
/frameworks/base/core/java/android/database/
H A DDatabaseUtils.java193 * @param index the 1-based index to bind at
196 public static void bindObjectToProgram(SQLiteProgram prog, int index, argument
199 prog.bindNull(index);
201 prog.bindDouble(index, ((Number)value).doubleValue());
203 prog.bindLong(index, ((Number)value).longValue());
207 prog.bindLong(index, 1);
209 prog.bindLong(index, 0);
212 prog.bindBlob(index, (byte[]) value);
214 prog.bindString(index, valu
616 cursorStringToInsertHelper(Cursor cursor, String field, InsertHelper inserter, int index) argument
1166 bind(int index, double value) argument
1176 bind(int index, float value) argument
1186 bind(int index, long value) argument
1196 bind(int index, int value) argument
1206 bind(int index, boolean value) argument
1215 bindNull(int index) argument
1225 bind(int index, byte[] value) argument
1239 bind(int index, String value) argument
[all...]
/frameworks/base/core/java/android/hardware/usb/
H A DUsbPort.java129 final int index = powerRole * NUM_DATA_ROLES + dataRole;
130 return 1 << index;
184 final int index = Integer.numberOfTrailingZeros(combo);
185 combo &= ~(1 << index);
186 final int powerRole = index / NUM_DATA_ROLES;
187 final int dataRole = index % NUM_DATA_ROLES;
/frameworks/base/core/java/android/net/
H A DRssiCurve.java153 int index = (rssi - start) / bucketWidth;
155 // Snap the index to the closest bucket if it falls outside the curve.
156 if (index < 0) {
157 index = 0;
158 } else if (index > rssiBuckets.length - 1) {
159 index = rssiBuckets.length - 1;
162 return rssiBuckets[index];
/frameworks/base/core/java/android/view/
H A DVelocityTracker.java274 * Gets the X coefficient with the specified index.
275 * @param index The index of the coefficient to return.
276 * @return The X coefficient, or 0 if the index is greater than the degree.
278 public float getXCoeff(int index) { argument
279 return index <= degree ? xCoeff[index] : 0;
283 * Gets the Y coefficient with the specified index.
284 * @param index The index o
287 getYCoeff(int index) argument
[all...]

Completed in 7270 milliseconds

1234567891011>>