/frameworks/base/core/jni/ |
H A D | android_view_VelocityTracker.cpp | 84 for (uint32_t index = 0; !idBits.isEmpty(); index++) { 104 Velocity& velocity = mCalculatedVelocity[index]; 117 uint32_t index = mCalculatedIdBits.getIndexOfBit(id); local 118 const Velocity& velocity = mCalculatedVelocity[index];
|
/frameworks/base/core/tests/coretests/src/android/net/ |
H A D | NetworkStatsHistoryTest.java | 480 NetworkStatsHistory stats, int index, long rxBytes, long txBytes) { 481 final NetworkStatsHistory.Entry entry = stats.getValues(index, null); 493 private static void assertValues(NetworkStatsHistory stats, int index, long activeTime, argument 495 final NetworkStatsHistory.Entry entry = stats.getValues(index, null); 479 assertValues( NetworkStatsHistory stats, int index, long rxBytes, long txBytes) argument
|
/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | AidlTest.java | 113 public TestParcelable listParcelableLonger(List<TestParcelable> list, int index) { argument 114 list.add(list.get(index)); 115 return list.get(index); 118 public int listParcelableShorter(List<TestParcelable> list, int index) { argument 119 list.remove(index);
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | AnimationDrawable.java | 167 * @return The Drawable at the specified frame index 169 public Drawable getFrame(int index) { argument 170 return mAnimationState.getChildren()[index]; 175 * specified index 341 // Do not combine the following. The array index must be evaluated before
|
/frameworks/base/graphics/java/android/renderscript/ |
H A D | Script.java | 193 * @param index 196 public void setVar(int index, float v) { argument 197 mRS.nScriptSetVarF(getID(mRS), index, v); 203 * @param index 206 public void setVar(int index, double v) { argument 207 mRS.nScriptSetVarD(getID(mRS), index, v); 213 * @param index 216 public void setVar(int index, int v) { argument 217 mRS.nScriptSetVarI(getID(mRS), index, v); 223 * @param index 226 setVar(int index, long v) argument 236 setVar(int index, boolean v) argument 246 setVar(int index, BaseObj o) argument 256 setVar(int index, FieldPacker v) argument 268 setVar(int index, FieldPacker v, Element e, int[] dims) argument [all...] |
/frameworks/base/libs/androidfw/ |
H A D | KeyLayoutMap.cpp | 107 ssize_t index = mKeysByUsageCode.indexOfKey(usageCode); local 108 if (index >= 0) { 109 return &mKeysByUsageCode.valueAt(index); 113 ssize_t index = mKeysByScanCode.indexOfKey(scanCode); local 114 if (index >= 0) { 115 return &mKeysByScanCode.valueAt(index); 132 ssize_t index = mAxes.indexOfKey(scanCode); local 133 if (index < 0) { 140 *outAxisInfo = mAxes.valueAt(index);
|
/frameworks/base/services/jni/ |
H A D | com_android_server_connectivity_Vpn.cpp | 107 ALOGE("Cannot get index of %s: %s", name, strerror(errno)); 115 int index = get_interface_index(name); local 116 if (index < 0) { 117 return index; 128 ifr6.ifr6_ifindex = index; 192 int index = get_interface_index(name); local 193 if (index < 0) { 194 return index; 206 rt6.rtmsg_ifindex = index;
|
/frameworks/base/test-runner/src/android/test/ |
H A D | MoreAsserts.java | 505 String message, int index, Object expected, Object actual) { 506 failWithMessage(message, "expected array element[" + index + "]:<" 504 failWrongElement( String message, int index, Object expected, Object actual) argument
|
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/ |
H A D | ManagerService.java | 85 ensureNextTestSetup(bundle.getString("firstTest"), bundle.getInt("index")); 178 private void ensureNextTestSetup(String nextTest, int index) { argument 185 mCurrentlyRunningTestIndex = index;
|
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/ |
H A D | TorusTest.java | 95 void addTest(int index, int testId, int user1, int user2) { argument 96 mTests[index] = new ScriptField_TestScripts_s.Item(); 97 mTests[index].testScript = mTorusScript; 98 mTests[index].testName = Allocation.createFromString(mRS, 99 mNames[index], 101 mTests[index].debugName = RsBenchRS.createZeroTerminatedAlloc(mRS, 102 mNames[index], 111 mTests[index].testData = testData.getAllocation(); 123 int index = 0; 124 addTest(index [all...] |
H A D | UiTest.java | 79 void addTest(int index, int testId, int user1, int user2, int user3) { argument 80 mTests[index] = new ScriptField_TestScripts_s.Item(); 81 mTests[index].testScript = mUiScript; 82 mTests[index].testName = Allocation.createFromString(mRS, 83 mNames[index], 85 mTests[index].debugName = RsBenchRS.createZeroTerminatedAlloc(mRS, 86 mNames[index], 96 mTests[index].testData = testData.getAllocation(); 108 int index = 0; 110 addTest(index [all...] |
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/ |
H A D | CompoundTransform.java | 165 public void setComponent(int index, Component c) { argument 169 if (index >= mTransformComponents.size()) { 170 throw new IllegalArgumentException("Invalid component index"); 173 c.mParentIndex = index; 174 mTransformComponents.set(index, c);
|
/frameworks/base/tests/touchlag/ |
H A D | touchlag.cpp | 193 int index; member in struct:Queue 195 Queue() : index(0) { } 197 index++; 198 index &= 0xF; 199 q[index].x = x; 200 q[index].y = y; 203 const int i = (index - lag) & 0xF;
|
/frameworks/base/tools/aapt/ |
H A D | XMLNode.h | 75 attribute_entry() : index(~(uint32_t)0), nameResId(0) 90 uint32_t index; member in struct:XMLNode::attribute_entry 114 status_t insertChildAt(const sp<XMLNode>& child, size_t index);
|
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/ |
H A D | BridgeTypedArray.java | 72 * @param index the index of the value in the TypedArray 77 public void bridgeSetValue(int index, String name, boolean isFramework, ResourceValue value) { argument 78 mResourceData[index] = value; 79 mNames[index] = name; 80 mIsFramework[index] = isFramework; 104 int index = 1; 107 mIndices[index++] = i; 129 * Retrieve the styled string value for the attribute at <var>index</var>. 131 * @param index Inde 137 getText(int index) argument 159 getString(int index) argument 180 getBoolean(int index, boolean defValue) argument 206 getInt(int index, int defValue) argument 277 getFloat(int index, float defValue) argument 316 getColor(int index, int defValue) argument 344 getColorStateList(int index) argument 411 getInteger(int index, int defValue) argument 432 getDimension(int index, float defValue) argument 485 getDimensionPixelOffset(int index, int defValue) argument 508 getDimensionPixelSize(int index, int defValue) argument 541 getLayoutDimension(int index, String name) argument 559 getLayoutDimension(int index, int defValue) argument 563 getDimension(int index) argument 609 getFraction(int index, int base, int pbase, float defValue) argument 652 getResourceId(int index, int defValue) argument 767 getDrawable(int index) argument 797 getTextArray(int index) argument 833 getValue(int index, TypedValue outValue) argument 856 hasValue(int index) argument 876 peekValue(int index) argument [all...] |
/frameworks/compile/linkloader/include/impl/ |
H A D | ELFObject.hxx | 70 size_t index = progbits_ndx[i]; local 73 ELFSectionTy::read(AR, object.get(), (*object->shtab)[index])); 74 object->stab[index] = sec.take();
|
/frameworks/compile/mclinker/include/mcld/LD/ |
H A D | LDSection.h | 93 size_t index() const function in class:mcld::LDSection 170 // the index of the file
|
/frameworks/ml/bordeaux/learning/multiclass_pa/native/ |
H A D | multiclass_pa.cpp | 176 int index = PickAnExample(num_examples); local 177 float loss_t = TrainOneExample(data[index].first, data[index].second); 189 int index = PickAnExample(num_examples); local 190 float loss_t = SparseTrainOneExample(data[index].first, data[index].second);
|
/frameworks/native/include/utils/ |
H A D | BasicHashtable.h | 67 ssize_t next(ssize_t index) const; 68 ssize_t find(ssize_t index, hash_t hash, const void* __restrict__ key) const; 70 void removeAt(size_t index); 82 inline const Bucket& bucketAt(const void* __restrict__ buckets, size_t index) const { 84 static_cast<const uint8_t*>(buckets) + index * mBucketSize); 87 inline Bucket& bucketAt(void* __restrict__ buckets, size_t index) const { 88 return *reinterpret_cast<Bucket*>(static_cast<uint8_t*>(buckets) + index * mBucketSize); 123 // Returns the index of the first bucket that is in the collision chain 130 // Returns the increment to add to a bucket index to seek to the next bucket 137 // Returns the index o 139 chainSeek(size_t index, size_t increment, size_t count) argument 240 editEntryAt(size_t index) argument 279 find(ssize_t index, hash_t hash, const TKey& key) const argument 306 removeAt(size_t index) argument [all...] |
H A D | GenerationCache.h | 70 const K& getKeyAt(size_t index) const; 71 const V& getValueAt(size_t index) const; 76 void removeAt(ssize_t index); 140 const K& GenerationCache<K, V>::getKeyAt(size_t index) const { 141 return mCache.keyAt(index); 145 const V& GenerationCache<K, V>::getValueAt(size_t index) const { 146 return mCache.valueAt(index)->value; 151 ssize_t index = mCache.indexOfKey(key); local 152 if (index >= 0) { 153 const sp<Entry<K, V> >& entry = mCache.valueAt(index); 168 ssize_t index = mCache.indexOfKey(key); local 181 ssize_t index = mCache.indexOfKey(key); local 191 removeAt(ssize_t index) argument 203 ssize_t index = mCache.indexOfKey(mOldest->key); local [all...] |
H A D | SortedVector.h | 84 //! finds the index of an item 95 //! read-only access to an item at a given index 96 inline const TYPE& operator [] (size_t index) const; 98 inline const TYPE& itemAt(size_t index) const; 110 TYPE& editItemAt(size_t index) { argument 111 return *( static_cast<TYPE *>(VectorImpl::editItemLocation(index)) ); 122 inline ssize_t removeItemsAt(size_t index, size_t count = 1); 124 inline ssize_t removeAt(size_t index) { return removeItemsAt(index); } argument 188 const TYPE& SortedVector<TYPE>::operator[](size_t index) cons 236 removeItemsAt(size_t index, size_t count) argument [all...] |
/frameworks/native/libs/ui/ |
H A D | FramebufferNativeWindow.cpp | 216 const int index = mCurrentBufferIndex; local 217 return index; 242 int index = self->mBufferHead++; local 250 ALOG_ASSERT(self->buffers[index] != self->front); 254 self->mCurrentBufferIndex = index; 256 *buffer = self->buffers[index].get(); 285 const int index = self->mCurrentBufferIndex; local
|
H A D | GraphicBuffer.cpp | 273 void GraphicBuffer::setIndex(int index) { argument 274 mIndex = index;
|
/frameworks/native/libs/utils/ |
H A D | BasicHashtable.cpp | 97 ssize_t BasicHashtableImpl::next(ssize_t index) const { 99 while (size_t(++index) < mBucketCount) { 100 const Bucket& bucket = bucketAt(mBuckets, index); 102 return index; 109 ssize_t BasicHashtableImpl::find(ssize_t index, hash_t hash, argument 116 if (index < 0) { 117 index = chainStart(hash, mBucketCount); 119 const Bucket& bucket = bucketAt(mBuckets, size_t(index)); 122 return index; 133 index 157 size_t index = chainStart(hash, mBucketCount); local 184 removeAt(size_t index) argument 214 size_t index = chainStart(hash, newBucketCount); local [all...] |
H A D | BlobCache.cpp | 84 ssize_t index = mCacheEntries.indexOf(dummyEntry); local 85 if (index < 0) { 110 sp<Blob> oldValueBlob(mCacheEntries[index].getValue()); 124 mCacheEntries.editItemAt(index).setValue(valueBlob); 142 ssize_t index = mCacheEntries.indexOf(dummyEntry); local 143 if (index < 0) { 150 sp<Blob> valueBlob(mCacheEntries[index].getValue());
|