/frameworks/base/core/java/com/android/internal/util/ |
D | ArrayUtils.java | 305 public static @NonNull int[] appendInt(@Nullable int[] cur, int val) { in appendInt() argument 306 if (cur == null) { in appendInt() 309 final int N = cur.length; in appendInt() 311 if (cur[i] == val) { in appendInt() 312 return cur; in appendInt() 316 System.arraycopy(cur, 0, ret, 0, N); in appendInt() 324 public static @Nullable int[] removeInt(@Nullable int[] cur, int val) { in removeInt() argument 325 if (cur == null) { in removeInt() 328 final int N = cur.length; in removeInt() 330 if (cur[i] == val) { in removeInt() [all …]
|
/frameworks/native/libs/binder/ |
D | MemoryDealer.cpp | 325 chunk_t* cur = mList.head(); in alloc() local 328 while (cur) { in alloc() 331 extra = ( -cur->start & ((pagesize/kMemoryAlign)-1) ) ; in alloc() 334 if (cur->free && (cur->size >= (size+extra))) { in alloc() 335 if ((!free_chunk) || (cur->size < free_chunk->size)) { in alloc() 336 free_chunk = cur; in alloc() 338 if (cur->size == size) { in alloc() 342 cur = cur->next; in alloc() 378 chunk_t* cur = mList.head(); in dealloc() local 379 while (cur) { in dealloc() [all …]
|
/frameworks/av/media/libstagefright/foundation/ |
D | AHierarchicalStateMachine.cpp | 57 sp<AState> cur = mState; in handleMessage() local 58 while (cur != NULL && !cur->onMessageReceived(msg)) { in handleMessage() 63 cur = cur->parentState(); in handleMessage() 66 if (cur != NULL) { in handleMessage() 81 sp<AState> cur = mState; in changeState() local 83 A.push(cur); in changeState() 84 if (cur == NULL) { in changeState() 87 cur = cur->parentState(); in changeState() 91 cur = state; in changeState() 93 B.push(cur); in changeState() [all …]
|
/frameworks/compile/mclinker/lib/MC/ |
D | AttributeSet.cpp | 26 iterator cur = m_AttrSet.begin(); in ~AttributeSet() local 29 while (cur != aEnd) { in ~AttributeSet() 30 delete (*cur); in ~AttributeSet() 31 ++cur; in ~AttributeSet() 39 const_iterator cur = m_AttrSet.begin(); in exists() local 41 while (cur != aEnd) { in exists() 42 if (*(*cur) == pAttr) { in exists() 43 return *cur; in exists() 45 ++cur; in exists()
|
/frameworks/base/core/tests/coretests/src/android/database/ |
D | DatabaseGeneralTest.java | 779 Cursor cur = mDatabase.rawQuery("PRAGMA table_info(pragma_test)", null); in testTableInfoPragma() local 780 Assert.assertEquals(5, cur.getCount()); in testTableInfoPragma() 782 Assert.assertTrue(cur.moveToNext()); in testTableInfoPragma() 784 cur.getString(TABLE_INFO_PRAGMA_COLUMNNAME_INDEX)); in testTableInfoPragma() 786 cur.getString(TABLE_INFO_PRAGMA_DEFAULT_INDEX)); in testTableInfoPragma() 788 Assert.assertTrue(cur.moveToNext()); in testTableInfoPragma() 790 cur.getString(TABLE_INFO_PRAGMA_COLUMNNAME_INDEX)); in testTableInfoPragma() 791 Assert.assertNull(cur.getString(TABLE_INFO_PRAGMA_DEFAULT_INDEX)); in testTableInfoPragma() 793 Assert.assertTrue(cur.moveToNext()); in testTableInfoPragma() 795 cur.getString(TABLE_INFO_PRAGMA_COLUMNNAME_INDEX)); in testTableInfoPragma() [all …]
|
/frameworks/base/libs/androidfw/ |
D | AssetDir.cpp | 42 int lo, hi, cur; in findEntry() 49 cur = (hi + lo) / 2; in findEntry() 50 cmp = strcmp(pVector->itemAt(cur).getFileName(), fileName); in findEntry() 53 return cur; in findEntry() 56 lo = cur + 1; in findEntry() 59 hi = cur -1; in findEntry()
|
/frameworks/native/libs/ui/ |
D | Region.cpp | 235 const_iterator cur = begin(); in contains() local 237 while (cur != tail) { in contains() 238 if (y >= cur->top && y < cur->bottom && x >= cur->left && x < cur->right) { in contains() 241 cur++; in contains() 425 Rect* cur; member in android::Region::rasterizer 428 : bounds(INT_MAX, 0, INT_MIN, 0), storage(reg.mStorage), head(), tail(), cur() { in rasterizer() 468 if (cur->top != rect.top) { in operator ()() 470 } else if (cur->right == rect.left) { in operator ()() 471 cur->right = rect.right; in operator ()() 476 cur = span.editArray() + (span.size() - 1); in operator ()() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | RecentTasks.java | 397 TaskRecord cur = get(endIndex); in moveAffiliatedTasksToFront() local 399 + endIndex + " " + cur); in moveAffiliatedTasksToFront() 400 if (cur == top) { in moveAffiliatedTasksToFront() 402 if (cur.mNextAffiliate != null || cur.mNextAffiliateTaskId != INVALID_TASK_ID) { in moveAffiliatedTasksToFront() 410 if (cur.mNextAffiliate != prev in moveAffiliatedTasksToFront() 411 || cur.mNextAffiliateTaskId != prev.taskId) { in moveAffiliatedTasksToFront() 413 + ": middle task " + cur + " @" + endIndex in moveAffiliatedTasksToFront() 415 + cur.mNextAffiliate + " id " + cur.mNextAffiliateTaskId in moveAffiliatedTasksToFront() 421 if (cur.mPrevAffiliateTaskId == INVALID_TASK_ID) { in moveAffiliatedTasksToFront() 423 if (cur.mPrevAffiliate != null) { in moveAffiliatedTasksToFront() [all …]
|
/frameworks/base/packages/WAPPushManager/src/com/android/smspush/ |
D | WapPushManager.java | 123 Cursor cur = db.query(APPID_TABLE_NAME, in queryLastApp() local 134 if (cur.moveToNext()) { in queryLastApp() 136 ret.installOrder = cur.getInt(cur.getColumnIndex("install_order")); in queryLastApp() 137 ret.packageName = cur.getString(cur.getColumnIndex("package_name")); in queryLastApp() 138 ret.className = cur.getString(cur.getColumnIndex("class_name")); in queryLastApp() 139 ret.appType = cur.getInt(cur.getColumnIndex("app_type")); in queryLastApp() 140 ret.needSignature = cur.getInt(cur.getColumnIndex("need_signature")); in queryLastApp() 141 ret.furtherProcessing = cur.getInt(cur.getColumnIndex("further_processing")); in queryLastApp() 143 cur.close(); in queryLastApp()
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
D | dct.cpp | 38 Void BlockDCT_AANwSub(Short *out, UChar *cur, UChar *pred, Int width) in BlockDCT_AANwSub() argument 59 tmp = *((Int*) cur); /* contains 4 pixels */ in BlockDCT_AANwSub() 73 tmp = *((Int*)(cur + 4)); /* another 4 pixels */ in BlockDCT_AANwSub() 87 cur += width; in BlockDCT_AANwSub() 267 Void Block4x4DCT_AANwSub(Short *out, UChar *cur, UChar *pred, Int width) in Block4x4DCT_AANwSub() argument 288 tmp = *((Int*) cur); /* contains 4 pixels */ in Block4x4DCT_AANwSub() 302 tmp = *((Int*)(cur + 4)); /* another 4 pixels */ in Block4x4DCT_AANwSub() 316 cur += width; in Block4x4DCT_AANwSub() 473 Void Block2x2DCT_AANwSub(Short *out, UChar *cur, UChar *pred, Int width) in Block2x2DCT_AANwSub() argument 494 tmp = *((Int*) cur); /* contains 4 pixels */ in Block2x2DCT_AANwSub() [all …]
|
D | motion_est.cpp | 75 void MBMotionSearch(VideoEncData *video, UChar *cur, UChar *best_cand[], 78 Int fullsearch(VideoEncData *video, Vol *currVol, UChar *ref, UChar *cur, 80 Int fullsearchBlk(VideoEncData *video, Vol *currVol, UChar *cent, UChar *cur, 91 void PrepareCurMB(VideoEncData *video, UChar *cur); 105 void HTFMPrepareCurMB(VideoEncData *video, HTFM_Stat *htfm_stat, UChar *cur); 156 UChar *cur, *best_cand[5]; in MotionEstimation() local 187 cur = currFrame->yChan; in MotionEstimation() 196 (*ComputeMBSum)(cur + (i << 4), width, mot_mb); in MotionEstimation() 202 cur += (width << 4); in MotionEstimation() 274 cur = currFrame->yChan + offset; in MotionEstimation() [all …]
|
D | dct.h | 174 void Block1x1DCTwSub(Short *out, UChar *cur, UChar *prev, Int pitch_chroma); 175 void Block1x1DCTIntra(Short *out, UChar *cur, UChar *dummy1, Int pitch_chroma); 177 Void BlockDCT_AANwSub(Short *out, UChar *cur, UChar *prev, Int pitch_chroma); 178 Void Block4x4DCT_AANwSub(Short *out, UChar *cur, UChar *prev, Int pitch_chroma); 179 Void Block2x2DCT_AANwSub(Short *out, UChar *cur, UChar *prev, Int pitch_chroma); 183 Void BlockDCT_AANIntra(Short *out, UChar *cur, UChar *dummy1, Int pitch_chroma); 184 Void Block4x4DCT_AANIntra(Short *out, UChar *cur, UChar *dummy1, Int pitch_chroma); 185 Void Block2x2DCT_AANIntra(Short *out, UChar *cur, UChar *dummy1, Int pitch_chroma);
|
D | me_utils.cpp | 35 void ChooseMode_C(UChar *Mode, UChar *cur, Int lx, Int min_SAD) in ChooseMode_C() argument 40 UChar *p = cur; in ChooseMode_C() 41 Int *pint = (Int *) cur, temp = 0; in ChooseMode_C() 67 p = cur; in ChooseMode_C() 313 void ComputeMBSum_C(UChar *cur, Int lx, MOT *mot_mb) in ComputeMBSum_C() argument 320 cInt = (Int*)cur; /* make sure this is word-align */ in ComputeMBSum_C() 321 cInt2 = (Int*)(cur + (lx << 3)); in ComputeMBSum_C()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | HbpcdUtils.java | 142 Cursor cur = resolver.query(MccIdd.CONTENT_URI, projection, in getIddByMcc() local 144 if (cur != null) { in getIddByMcc() 145 if (cur.getCount() > 0) { in getIddByMcc() 146 if (DBG) Log.d(LOG_TAG, "Query Idd returned the cursor " + cur ); in getIddByMcc() 149 cur.moveToFirst(); in getIddByMcc() 150 idd = cur.getString(0); in getIddByMcc() 154 cur.close(); in getIddByMcc()
|
/frameworks/av/media/libstagefright/codecs/avc/enc/src/ |
D | block.cpp | 21 void trans(uint8 *cur, int pitch, uint8 *predBlock, int16 *dataBlock) in trans() argument 33 r0 = cur[0] - predBlock[0]; in trans() 34 r1 = cur[1] - predBlock[1]; in trans() 35 r2 = cur[2] - predBlock[2]; in trans() 36 r3 = cur[3] - predBlock[3]; in trans() 50 cur += curpitch; in trans() 77 int dct_luma(AVCEncObject *encvid, int blkidx, uint8 *cur, uint8 *org, int *coef_cost) in dct_luma() argument 236 *cur = r0; in dct_luma() 237 *(cur += pitch) = r1; in dct_luma() 238 *(cur += pitch) = r2; in dct_luma() [all …]
|
D | motion_est.cpp | 187 bool IntraDecisionABE(int *min_cost, uint8 *cur, int pitch, bool ave) in IntraDecisionABE() argument 197 out = cur - pitch; in IntraDecisionABE() 200 temp = out[j] - cur[j]; in IntraDecisionABE() 205 out = cur - 1; in IntraDecisionABE() 207 cur -= pitch; in IntraDecisionABE() 210 temp = *(out += pitch) - *(cur += pitch); in IntraDecisionABE() 257 uint8 *cur, *best_cand[5]; in AVCMotionEstimation() local 354 cur = currInput->YCbCr[0] + offset; in AVCMotionEstimation() 359 HTFMPrepareCurMB_AVC(encvid, &htfm_stat, cur, pitch); in AVCMotionEstimation() 361 AVCPrepareCurMB(encvid, cur, pitch); in AVCMotionEstimation() [all …]
|
D | avcenc_lib.h | 48 int dct_luma(AVCEncObject *encvid, int blkidx, uint8 *cur, uint8 *org, int *coef_cost); 302 bool IntraDecision(int *min_cost, uint8 *cur, int pitch, bool ave); 370 int blk_intra4x4_search(AVCEncObject *encvid, int blkidx, uint8 *cur, uint8 *org); 529 void HTFMPrepareCurMB_AVC(AVCEncObject *encvid, HTFM_Stat *htfm_stat, uint8 *cur, int pitch); 539 void AVCPrepareCurMB(AVCEncObject *encvid, uint8 *cur, int pitch); 553 void AVCMBMotionSearch(AVCEncObject *encvid, uint8 *cur, uint8 *best_cand[], 571 int AVCFullSearch(AVCEncObject *encvid, uint8 *prev, uint8 *cur, 621 int AVCFindHalfPelMB(AVCEncObject *encvid, uint8 *cur, AVCMV *mot, uint8 *ncand, 658 int SATD_MB(uint8 *cand, uint8 *cur, int dmin);
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | Serializer.cpp | 33 string getXmlAttribute(const xmlNode *cur, const char *attribute) in getXmlAttribute() argument 35 xmlChar *xmlValue = xmlGetProp(cur, (const xmlChar*)attribute); in getXmlAttribute() 59 const xmlNode *cur = col->children; in getReference() local 60 while (cur != NULL) { in getReference() 61 if ((!xmlStrcmp(cur->name, (const xmlChar *)gReferenceElementName))) { in getReference() 62 string name = getXmlAttribute(cur, gReferenceAttributeName); in getReference() 64 refNode = cur; in getReference() 68 cur = cur->next; in getReference() 77 static status_t deserializeCollection(_xmlDoc *doc, const _xmlNode *cur, in deserializeCollection() argument 81 const xmlNode *root = cur->xmlChildrenNode; in deserializeCollection() [all …]
|
/frameworks/av/services/camera/libcameraservice/gui/ |
D | RingBufferConsumer.cpp | 70 BufferInfo acc, cur; in pinSelectedBuffer() local 81 cur.mCrop = item.mCrop; in pinSelectedBuffer() 82 cur.mTransform = item.mTransform; in pinSelectedBuffer() 83 cur.mScalingMode = item.mScalingMode; in pinSelectedBuffer() 84 cur.mTimestamp = item.mTimestamp; in pinSelectedBuffer() 85 cur.mFrameNumber = item.mFrameNumber; in pinSelectedBuffer() 86 cur.mPinned = item.mPinCount > 0; in pinSelectedBuffer() 88 int ret = filter.compare(accPtr, &cur); in pinSelectedBuffer() 93 acc = cur; in pinSelectedBuffer()
|
/frameworks/base/core/java/android/os/ |
D | PooledStringWriter.java | 59 final Integer cur = mPool.get(str); in writeString() local 60 if (cur != null) { in writeString() 61 mOut.writeInt(cur); in writeString()
|
/frameworks/native/opengl/libagl/ |
D | mipmap.cpp | 54 GGLSurface& cur = tex->editMip(level); in buildAPyramid() local 59 uint16_t* dst = (uint16_t*)cur.data; in buildAPyramid() 82 uint16_t* dst = (uint16_t*)cur.data; in buildAPyramid() 102 uint32_t* dst = (uint32_t*)cur.data; in buildAPyramid() 138 uint8_t* dst = (uint8_t*)cur.data; in buildAPyramid() 158 uint16_t* dst = (uint16_t*)cur.data; in buildAPyramid() 185 base = &cur; in buildAPyramid()
|
/frameworks/compile/mclinker/lib/Script/ |
D | GroupCmd.cpp | 48 bool prev = false, cur = false; in dump() local 55 cur = input->asNeeded(); in dump() 56 if (!prev && cur) in dump() 58 else if (prev && !cur) in dump() 65 prev = cur; in dump()
|
D | InputCmd.cpp | 59 bool prev = false, cur = false; in dump() local 66 cur = input->asNeeded(); in dump() 67 if (!prev && cur) in dump() 69 else if (prev && !cur) in dump() 76 prev = cur; in dump()
|
/frameworks/support/v4/java/android/support/v4/content/ |
D | ContextCompat.java | 327 File cur = base; in buildPath() local 329 if (cur == null) { in buildPath() 330 cur = new File(segment); in buildPath() 332 cur = new File(cur, segment); in buildPath() 335 return cur; in buildPath()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatteryStatsImpl.java | 2224 public void writeHistoryDelta(Parcel dest, HistoryItem cur, HistoryItem last) { in writeHistoryDelta() argument 2225 if (last == null || cur.cmd != HistoryItem.CMD_UPDATE) { in writeHistoryDelta() 2227 cur.writeToParcel(dest, 0); in writeHistoryDelta() 2231 final long deltaTime = cur.time - last.time; in writeHistoryDelta() 2243 int firstToken = deltaTimeToken | (cur.states&DELTA_STATE_MASK); in writeHistoryDelta() 2244 final int includeStepDetails = mLastHistoryStepLevel > cur.batteryLevel in writeHistoryDelta() 2248 final int batteryLevelInt = buildBatteryLevelInt(cur) | includeStepDetails; in writeHistoryDelta() 2253 final int stateInt = buildStateInt(cur); in writeHistoryDelta() 2258 final boolean state2IntChanged = cur.states2 != last.states2; in writeHistoryDelta() 2262 if (cur.wakelockTag != null || cur.wakeReasonTag != null) { in writeHistoryDelta() [all …]
|