Searched refs:idx (Results 1 - 25 of 196) sorted by last modified time

12345678

/frameworks/support/compat/java/android/support/v4/os/
H A DLocaleListHelper.java342 for (int idx = 0; idx < mList.length; idx++) {
343 final int score = matchScore(supportedLocale, mList[idx]);
345 return idx;
365 final int idx = findFirstMatchIndex(EN_LATN);
366 if (idx == 0) { // We have a match on the first locale, which is good enough
368 } else if (idx < bestIndex) {
369 bestIndex = idx;
376 final int idx
[all...]
/frameworks/support/core-ui/java/android/support/v4/widget/
H A DViewDragHelper.java1157 final int idx = (int) (x - mLastMotionX[mActivePointerId]);
1160 dragTo(mCapturedView.getLeft() + idx, mCapturedView.getTop() + idy, idx, idy);
/frameworks/support/core-ui/tests/java/android/support/v4/view/
H A DBaseViewPagerTest.java243 public View getButton(int page, int idx) { argument
244 return mButtons.get(page)[idx];
/frameworks/support/fragment/java/android/support/v4/app/
H A DLoaderManager.java718 int idx = mLoaders.indexOfKey(id);
719 if (idx >= 0) {
720 LoaderInfo info = mLoaders.valueAt(idx);
721 mLoaders.removeAt(idx);
724 idx = mInactiveLoaders.indexOfKey(id);
725 if (idx >= 0) {
726 LoaderInfo info = mInactiveLoaders.valueAt(idx);
727 mInactiveLoaders.removeAt(idx);
/frameworks/rs/tests/java_api/RSTest_CompatLib/src/com/android/rs/test/
H A DUT_reduce.java91 for (int idx = 0; idx < input.length; ++idx)
92 rslt += input[idx];
128 for (int idx = 0; idx < input.length; ++idx) {
129 if (input[idx] < minVal) {
130 minVal = input[idx];
131 minIdx = idx;
[all...]
H A DUT_reduce_backward.java91 for (int idx = 0; idx < input.length; ++idx)
92 rslt += input[idx];
128 for (int idx = 0; idx < input.length; ++idx) {
129 if (input[idx] < minVal) {
130 minVal = input[idx];
131 minIdx = idx;
[all...]
/frameworks/rs/tests/java_api/RsTest/src/com/android/rs/test/
H A DUT_reduce.java282 for (int idx = 0; idx < input.length; ++idx)
283 result += input[idx];
463 for (int idx = 1; idx < input.length; ++idx) {
464 final float val = input[idx];
533 for (int idx = 0; idx < inpu
[all...]
H A DUT_reduce_backward.java107 for (int idx = 0; idx < input.length; ++idx)
108 rslt += input[idx];
144 for (int idx = 0; idx < input.length; ++idx) {
145 if (input[idx] < minVal) {
146 minVal = input[idx];
147 minIdx = idx;
[all...]
/frameworks/rs/cpp/
H A DrsDispatch.h120 typedef RsMesh (*MeshCreateFnPtr) (RsContext rsc, RsAllocation * vtx, size_t vtx_length, RsAllocation * idx, size_t idx_length, uint32_t * primType, size_t primType_length);
/frameworks/rs/cpu_ref/
H A DrsCpuCore.cpp104 uint32_t idx = __sync_fetch_and_add(&dc->mWorkers.mLaunchCount, 1); local
106 //ALOGV("RS helperThread starting %p idx=%i", dc, idx);
108 dc->mWorkers.mLaunchSignals[idx].init();
109 dc->mWorkers.mNativeThreadId[idx] = gettid();
121 cpuset.bits[idx / 64] |= 1ULL << (idx % 64);
122 int ret = syscall(241, rsc->mWorkers.mNativeThreadId[idx],
128 dc->mWorkers.mLaunchSignals[idx].wait();
130 // idx
391 walk_general_foreach(void *usr, uint32_t idx) argument
418 walk_2d_foreach(void *usr, uint32_t idx) argument
443 walk_1d_foreach(void *usr, uint32_t idx) argument
533 walk_1d_reduce(void *usr, uint32_t idx) argument
572 walk_2d_reduce(void *usr, uint32_t idx) argument
611 walk_3d_reduce(void *usr, uint32_t idx) argument
[all...]
H A DrsCpuCore.h55 typedef void (*WorkerCallback_t)(void *usr, uint32_t idx);
H A DrsCpuExecutable.cpp760 for (size_t idx = 0; idx < pragmaCount; ++idx) {
761 delete [] pragmaKeys[idx];
766 for (size_t idx = 0; idx < pragmaCount; ++idx) {
767 delete [] pragmaValues[idx];
H A DrsCpuIntrinsicBLAS.cpp192 static void walk_2d_sgemm(void *usr, uint32_t idx) { argument
203 static void walk_2d_dgemm(void *usr, uint32_t idx) { argument
214 static void walk_2d_cgemm(void *usr, uint32_t idx) { argument
225 static void walk_2d_zgemm(void *usr, uint32_t idx) { argument
/frameworks/rs/driver/
H A DrsdVertexArray.cpp65 void RsdVertexArray::logAttrib(uint32_t idx, uint32_t slot) const { argument
66 if (idx == 0) {
70 idx, slot,
71 mAttribs[idx].name.c_str(),
72 mAttribs[idx].buffer,
73 mAttribs[idx].ptr,
74 mAttribs[idx].size,
75 mAttribs[idx].type,
76 mAttribs[idx].stride,
77 mAttribs[idx]
[all...]
H A DrsdVertexArray.h55 void logAttrib(uint32_t idx, uint32_t slot) const;
/frameworks/rs/
H A Drs.h27 RsObjectBase rsaFileA3DGetEntryByIndex(RsContext, uint32_t idx, RsFile);
H A DrsApiStubs.cpp847 RsAllocation * idx, size_t idx_length,
850 return RS_DISPATCH(ctxWrapper, MeshCreate, vtx, vtx_length, idx, idx_length, primType, primType_length);
846 rsMeshCreate(RsContext ctxWrapper, RsAllocation * vtx, size_t vtx_length, RsAllocation * idx, size_t idx_length, uint32_t * primType, size_t primType_length) argument
H A DrsApiStubs.h143 extern "C" RsMesh rsMeshCreate (RsContext rsc, RsAllocation * vtx, size_t vtx_length, RsAllocation * idx, size_t idx_length, uint32_t * primType, size_t primType_length);
H A DrsDevice.cpp35 for (size_t idx=0; idx < mContexts.size(); idx++) {
36 if (mContexts[idx] == rsc) {
37 mContexts.erase(mContexts.begin() + idx);
H A DrsElement.h89 const Element * getField(uint32_t idx) const {return mFields[idx].e.get();}
90 const char * getFieldName(uint32_t idx) const {return mFields[idx].name;}
91 uint32_t getFieldArraySize(uint32_t idx) const {return mFields[idx].arraySize;}
H A DrsGrallocConsumer.cpp87 media_status_t GrallocConsumer::lockNextBuffer(uint32_t idx) { argument
90 if (idx >= mNumAlloc) {
91 ALOGE("Invalid buffer index: %d", idx);
95 if (mAcquiredBuffer[idx].mImg != nullptr) {
96 ret = unlockBuffer(idx);
102 ret = AImageReader_acquireNextImage(mImgReader, &(mAcquiredBuffer[idx].mImg));
103 if (ret != AMEDIA_OK || mAcquiredBuffer[idx].mImg == nullptr) {
105 __FUNCTION__, mImgReader, ret, mAcquiredBuffer[idx].mImg);
109 AImage *img = mAcquiredBuffer[idx].mImg;
156 mAcquiredBuffer[idx]
231 unlockBuffer(uint32_t idx) argument
258 releaseIdx(uint32_t idx) argument
[all...]
H A DrsGrallocConsumer.h44 media_status_t lockNextBuffer(uint32_t idx = 0);
45 media_status_t unlockBuffer(uint32_t idx = 0);
47 bool releaseIdx(uint32_t idx);
54 media_status_t releaseAcquiredBufferLocked(uint32_t idx);
H A DrsMesh.cpp268 RsAllocation * idx, size_t idxCount,
279 sm->setPrimitive((Allocation*)idx[i], (RsPrimitive)primType[i], i);
266 rsi_MeshCreate(Context *rsc, RsAllocation * vtx, size_t vtxCount, RsAllocation * idx, size_t idxCount, uint32_t * primType, size_t primTypeCount) argument
H A DrsMesh.h72 void setPrimitive(Allocation *idx, RsPrimitive prim, uint32_t index) { argument
73 mIndexBuffers[index].set(idx);
74 mHal.state.indexBuffers[index] = idx;
H A DrsType.h79 uint32_t getArray(uint32_t idx) const {
80 if (idx < mHal.state.arrayCount) {
81 return mHal.state.arrays[idx];

Completed in 397 milliseconds

12345678