Home
last modified time | relevance | path

Searched refs:cur (Results 1 – 25 of 77) sorted by relevance

1234

/frameworks/base/core/java/com/android/internal/util/
DArrayUtils.java271 public static int[] appendInt(int[] cur, int val) { in appendInt() argument
272 if (cur == null) { in appendInt()
275 final int N = cur.length; in appendInt()
277 if (cur[i] == val) { in appendInt()
278 return cur; in appendInt()
282 System.arraycopy(cur, 0, ret, 0, N); in appendInt()
287 public static int[] removeInt(int[] cur, int val) { in removeInt() argument
288 if (cur == null) { in removeInt()
291 final int N = cur.length; in removeInt()
293 if (cur[i] == val) { in removeInt()
[all …]
/frameworks/av/media/libstagefright/foundation/
DAHierarchicalStateMachine.cpp57 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/native/libs/binder/
DMemoryDealer.cpp317 chunk_t* cur = mList.head(); in alloc() local
320 while (cur) { in alloc()
323 extra = ( -cur->start & ((pagesize/kMemoryAlign)-1) ) ; in alloc()
326 if (cur->free && (cur->size >= (size+extra))) { in alloc()
327 if ((!free_chunk) || (cur->size < free_chunk->size)) { in alloc()
328 free_chunk = cur; in alloc()
330 if (cur->size == size) { in alloc()
334 cur = cur->next; in alloc()
370 chunk_t* cur = mList.head(); in dealloc() local
371 while (cur) { in dealloc()
[all …]
/frameworks/compile/mclinker/lib/MC/
DAttributeSet.cpp25 iterator cur = m_AttrSet.begin(); in ~AttributeSet() local
28 while(cur != aEnd) { in ~AttributeSet()
29 delete (*cur); in ~AttributeSet()
30 ++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/libs/androidfw/
DAssetDir.cpp42 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/base/core/tests/coretests/src/android/database/
DDatabaseGeneralTest.java779 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/native/libs/ui/
DRegion.cpp230 const_iterator cur = begin(); in contains() local
232 while (cur != tail) { in contains()
233 if (y >= cur->top && y < cur->bottom && x >= cur->left && x < cur->right) { in contains()
236 cur++; in contains()
414 Rect* cur; member in android::Region::rasterizer
417 : bounds(INT_MAX, 0, INT_MIN, 0), storage(reg.mStorage), head(), tail(), cur() { in rasterizer()
442 if (cur->top != rect.top) { in operator ()()
444 } else if (cur->right == rect.left) { in operator ()()
445 cur->right = rect.right; in operator ()()
450 cur = span.editArray() + (span.size() - 1); in operator ()()
[all …]
/frameworks/base/packages/WAPPushManager/src/com/android/smspush/
DWapPushManager.java123 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/
Ddct.cpp38 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 …]
Dmotion_est.cpp75 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 …]
Ddct.h174 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);
Dme_utils.cpp35 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/
DHbpcdUtils.java142 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/
Dblock.cpp21 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 …]
Dmotion_est.cpp187 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 …]
Davcenc_lib.h48 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/support/v4/java/android/support/v4/content/
DContextCompat.java294 File cur = base; in buildPath() local
296 if (cur == null) { in buildPath()
297 cur = new File(segment); in buildPath()
299 cur = new File(cur, segment); in buildPath()
302 return cur; in buildPath()
/frameworks/av/services/camera/libcameraservice/gui/
DRingBufferConsumer.cpp70 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/compile/mclinker/lib/Script/
DGroupCmd.cpp49 bool prev = false, cur = false; in dump() local
54 cur = input->asNeeded(); in dump()
55 if (!prev && cur) in dump()
57 else if (prev && !cur) in dump()
64 prev = cur; in dump()
/frameworks/native/opengl/libagl/
Dmipmap.cpp54 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/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java1941 public void writeHistoryDelta(Parcel dest, HistoryItem cur, HistoryItem last) { in writeHistoryDelta() argument
1942 if (last == null || cur.cmd != HistoryItem.CMD_UPDATE) { in writeHistoryDelta()
1944 cur.writeToParcel(dest, 0); in writeHistoryDelta()
1948 final long deltaTime = cur.time - last.time; in writeHistoryDelta()
1960 int firstToken = deltaTimeToken | (cur.states&DELTA_STATE_MASK); in writeHistoryDelta()
1961 final int batteryLevelInt = buildBatteryLevelInt(cur); in writeHistoryDelta()
1966 final int stateInt = buildStateInt(cur); in writeHistoryDelta()
1971 final boolean state2IntChanged = cur.states2 != last.states2; in writeHistoryDelta()
1975 if (cur.wakelockTag != null || cur.wakeReasonTag != null) { in writeHistoryDelta()
1978 if (cur.eventCode != HistoryItem.EVENT_NONE) { in writeHistoryDelta()
[all …]
/frameworks/av/media/libstagefright/webm/
DWebmElement.cpp88 uint8_t *cur = buf; in serializeInto() local
89 int head = serializeCodedUnsigned(mId, cur); in serializeInto()
90 cur += head; in serializeInto()
91 int neck = serializePayloadSize(cur); in serializeInto()
92 cur += neck; in serializeInto()
93 serializePayload(cur); in serializeInto()
94 cur += mSize; in serializeInto()
95 return cur - buf; in serializeInto()
/frameworks/base/core/java/android/service/voice/
DVoiceInteractionService.java122 String cur = Settings.Secure.getString(context.getContentResolver(), in isActiveService() local
124 if (cur == null || cur.isEmpty()) { in isActiveService()
127 ComponentName curComp = ComponentName.unflattenFromString(cur); in isActiveService()
/frameworks/base/core/java/android/app/
DTabActivity.java86 String cur = state.getString("currentTab"); in onRestoreInstanceState() local
87 if (cur != null) { in onRestoreInstanceState()
88 mTabHost.setCurrentTabByTag(cur); in onRestoreInstanceState()
/frameworks/base/services/core/java/com/android/server/am/
DLaunchWarningWindow.java30 public LaunchWarningWindow(Context context, ActivityRecord cur, ActivityRecord next) { in LaunchWarningWindow() argument
51 icon.setImageDrawable(cur.info.applicationInfo.loadIcon(context.getPackageManager())); in LaunchWarningWindow()
54 cur.info.applicationInfo.loadLabel(context.getPackageManager()).toString())); in LaunchWarningWindow()

1234