Searched refs:cur (Results 1 - 25 of 81) sorted by relevance

1234

/frameworks/compile/mclinker/lib/MC/
H A DAttributeSet.cpp26 iterator cur = m_AttrSet.begin(); local
29 while (cur != aEnd) {
30 delete (*cur);
31 ++cur;
39 const_iterator cur = m_AttrSet.begin();
41 while (cur != aEnd) {
42 if (*(*cur) == pAttr) {
43 return *cur;
45 ++cur;
/frameworks/base/libs/androidfw/
H A DAssetDir.cpp42 int lo, hi, cur;
49 cur = (hi + lo) / 2;
50 cmp = strcmp(pVector->itemAt(cur).getFileName(), fileName);
53 return cur;
56 lo = cur + 1;
59 hi = cur -1;
/frameworks/av/media/libstagefright/foundation/
H A DAHierarchicalStateMachine.cpp57 sp<AState> cur = mState; local
58 while (cur != NULL && !cur->onMessageReceived(msg)) {
63 cur = cur->parentState();
66 if (cur != NULL) {
81 sp<AState> cur = mState; local
83 A.push(cur);
84 if (cur == NULL) {
87 cur
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DArrayUtils.java343 public static @NonNull int[] appendInt(@Nullable int[] cur, int val, argument
345 if (cur == null) {
348 final int N = cur.length;
351 if (cur[i] == val) {
352 return cur;
357 System.arraycopy(cur, 0, ret, 0, N);
366 public static @NonNull int[] appendInt(@Nullable int[] cur, int val) { argument
367 return appendInt(cur, val, false);
373 public static @Nullable int[] removeInt(@Nullable int[] cur, int val) { argument
374 if (cur
396 removeString(@ullable String[] cur, String val) argument
420 appendLong(@ullable long[] cur, long val) argument
439 removeLong(@ullable long[] cur, long val) argument
467 add(@ullable ArraySet<T> cur, T val) argument
475 remove(@ullable ArraySet<T> cur, T val) argument
487 add(@ullable ArrayList<T> cur, T val) argument
495 remove(@ullable ArrayList<T> cur, T val) argument
507 contains(@ullable Collection<T> cur, T val) argument
[all...]
H A DCollectionUtils.java68 public static @NonNull <I, O> List<O> map(@Nullable List<I> cur, argument
70 if (isEmpty(cur)) return Collections.emptyList();
72 for (int i = 0; i < cur.size(); i++) {
73 result.add(f.apply(cur.get(i)));
85 * map(cur, f),
89 public static @NonNull <I, O> List<O> mapNotNull(@Nullable List<I> cur, argument
91 if (isEmpty(cur)) return Collections.emptyList();
93 for (int i = 0; i < cur.size(); i++) {
94 O transformed = f.apply(cur.get(i));
109 public static @NonNull <T> List<T> emptyIfNull(@Nullable List<T> cur) { argument
120 emptyIfNull(@ullable Set<T> cur) argument
127 size(@ullable Collection<?> cur) argument
173 add(@ullable List<T> cur, T val) argument
185 remove(@ullable List<T> cur, T val) argument
196 copyOf(@ullable List<T> cur) argument
[all...]
/frameworks/native/libs/binder/
H A DMemoryDealer.cpp325 chunk_t* cur = mList.head(); local
328 while (cur) {
331 extra = ( -cur->start & ((pagesize/kMemoryAlign)-1) ) ;
334 if (cur->free && (cur->size >= (size+extra))) {
335 if ((!free_chunk) || (cur->size < free_chunk->size)) {
336 free_chunk = cur;
338 if (cur->size == size) {
342 cur = cur
378 chunk_t* cur = mList.head(); local
441 chunk_t const* cur = mList.head(); local
[all...]
/frameworks/base/core/java/android/os/
H A DPooledStringWriter.java59 final Integer cur = mPool.get(str);
60 if (cur != null) {
61 mOut.writeInt(cur);
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
H A DBatteryStatsBackgroundStatsTest.java40 long cur = 0; // realtime in us
46 cur = clocks.realtime * 1000;
47 bi.updateTimeBasesLocked(false, false, cur, cur); // off battery
49 assertEquals(0, bgtb.computeRealtime(cur, STATS_SINCE_CHARGED));
53 cur = clocks.realtime * 1000;
56 assertEquals(0, bgtb.computeRealtime(cur, STATS_SINCE_CHARGED));
60 cur = clocks.realtime * 1000;
63 assertEquals(0, bgtb.computeRealtime(cur, STATS_SINCE_CHARGED));
67 cur
[all...]
/frameworks/base/core/tests/coretests/src/android/database/
H A DDatabaseGeneralTest.java779 Cursor cur = mDatabase.rawQuery("PRAGMA table_info(pragma_test)", null);
780 Assert.assertEquals(5, cur.getCount());
782 Assert.assertTrue(cur.moveToNext());
784 cur.getString(TABLE_INFO_PRAGMA_COLUMNNAME_INDEX));
786 cur.getString(TABLE_INFO_PRAGMA_DEFAULT_INDEX));
788 Assert.assertTrue(cur.moveToNext());
790 cur.getString(TABLE_INFO_PRAGMA_COLUMNNAME_INDEX));
791 Assert.assertNull(cur.getString(TABLE_INFO_PRAGMA_DEFAULT_INDEX));
793 Assert.assertTrue(cur.moveToNext());
795 cur
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DHbpcdUtils.java144 Cursor cur = resolver.query(MccIdd.CONTENT_URI, projection,
146 if (cur != null) {
147 if (cur.getCount() > 0) {
148 if (DBG) Rlog.d(LOG_TAG, "Query Idd returned the cursor " + cur);
151 cur.moveToFirst();
152 idd = cur.getString(0);
156 cur.close();
/frameworks/native/libs/ui/
H A DRegion.cpp235 const_iterator cur = begin(); local
237 while (cur != tail) {
238 if (y >= cur->top && y < cur->bottom && x >= cur->left && x < cur->right) {
241 cur++;
425 Rect* cur; member in class:android::Region::rasterizer
428 : bounds(INT_MAX, 0, INT_MIN, 0), storage(reg.mStorage), head(), tail(), cur() {
468 if (cur
517 const_iterator cur = reg.begin(); local
[all...]
/frameworks/base/core/java/android/app/
H A DTabActivity.java69 String cur = state.getString("currentTab");
70 if (cur != null) {
71 mTabHost.setCurrentTabByTag(cur);
/frameworks/base/services/core/java/com/android/server/am/
H A DLaunchWarningWindow.java30 public LaunchWarningWindow(Context context, ActivityRecord cur, ActivityRecord next) { argument
51 icon.setImageDrawable(cur.info.applicationInfo.loadIcon(context.getPackageManager()));
54 cur.info.applicationInfo.loadLabel(context.getPackageManager()).toString()));
H A DRecentTasks.java419 TaskRecord cur = get(endIndex);
421 + endIndex + " " + cur);
422 if (cur == top) {
424 if (cur.mNextAffiliate != null || cur.mNextAffiliateTaskId != INVALID_TASK_ID) {
432 if (cur.mNextAffiliate != prev
433 || cur.mNextAffiliateTaskId != prev.taskId) {
435 + ": middle task " + cur + " @" + endIndex
437 + cur.mNextAffiliate + " id " + cur
[all...]
/frameworks/base/packages/WAPPushManager/src/com/android/smspush/
H A DWapPushManager.java123 Cursor cur = db.query(APPID_TABLE_NAME,
134 if (cur.moveToNext()) {
136 ret.installOrder = cur.getInt(cur.getColumnIndex("install_order"));
137 ret.packageName = cur.getString(cur.getColumnIndex("package_name"));
138 ret.className = cur.getString(cur.getColumnIndex("class_name"));
139 ret.appType = cur.getInt(cur
[all...]
/frameworks/compile/mclinker/lib/Script/
H A DGroupCmd.cpp48 bool prev = false, cur = false; local
55 cur = input->asNeeded();
56 if (!prev && cur)
58 else if (prev && !cur)
65 prev = cur;
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Ddct.cpp38 Void BlockDCT_AANwSub(Short *out, UChar *cur, UChar *pred, Int width) argument
59 tmp = *((Int*) cur); /* contains 4 pixels */
73 tmp = *((Int*)(cur + 4)); /* another 4 pixels */
87 cur += width;
267 Void Block4x4DCT_AANwSub(Short *out, UChar *cur, UChar *pred, Int width) argument
288 tmp = *((Int*) cur); /* contains 4 pixels */
302 tmp = *((Int*)(cur + 4)); /* another 4 pixels */
316 cur += width;
473 Void Block2x2DCT_AANwSub(Short *out, UChar *cur, UChar *pred, Int width) argument
494 tmp = *((Int*) cur); /* contain
652 BlockDCT_AANIntra(Short *out, UChar *cur, UChar *dummy2, Int width) argument
863 Block4x4DCT_AANIntra(Short *out, UChar *cur, UChar *dummy2, Int width) argument
1050 Block2x2DCT_AANIntra(Short *out, UChar *cur, UChar *dummy2, Int width) argument
1210 Block1x1DCTwSub(Short *out, UChar *cur, UChar *pred, Int width) argument
1247 Block1x1DCTIntra(Short *out, UChar *cur, UChar *dummy2, Int width) argument
[all...]
H A Ddct.h173 //void Block1x1DCTzmv (Short *out,UChar *prev,UChar *cur,UChar *rec,Int lx,Int chroma);
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);
180 //Void BlockDCT_AANzmv(Short *out,UChar *prev,UChar *cur,UChar *rec,Int ColTh,Int lx,Int chroma);
181 //Void Block4x4DCT_AANzmv(Short *out,UChar *prev,UChar *cur,UChar *rec,Int ColTh,Int lx,Int chroma);
182 //Void Block2x2DCT_AANzmv(Short *out,UChar *prev,UChar *cur,UChar *rec,Int ColTh,Int lx,Int chroma);
183 Void BlockDCT_AANIntra(Short *out, UChar *cur, UCha
[all...]
H A 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]; local
187 cur = currFrame->yChan;
196 (*ComputeMBSum)(cur + (i << 4), width, mot_mb);
202 cur += (width << 4);
274 cur
674 HTFMPrepareCurMB(VideoEncData *video, HTFM_Stat *htfm_stat, UChar *cur) argument
739 PrepareCurMB(VideoEncData *video, UChar *cur) argument
770 MBMotionSearch(VideoEncData *video, UChar *cur, UChar *best_cand[], Int i0, Int j0, Int type_pred, Int FS_en, Int *hp_guess) argument
1179 fullsearch(VideoEncData *video, Vol *currVol, UChar *prev, UChar *cur, Int *imin, Int *jmin, Int ilow, Int ihigh, Int jlow, Int jhigh) argument
1266 fullsearchBlk(VideoEncData *video, Vol *currVol, UChar *cent, UChar *cur, Int *imin, Int *jmin, Int ilow, Int ihigh, Int jlow, Int jhigh, Int range) argument
[all...]
H A Dme_utils.cpp35 void ChooseMode_C(UChar *Mode, UChar *cur, Int lx, Int min_SAD) argument
40 UChar *p = cur;
41 Int *pint = (Int *) cur, temp = 0;
67 p = cur;
313 void ComputeMBSum_C(UChar *cur, Int lx, MOT *mot_mb) argument
320 cInt = (Int*)cur; /* make sure this is word-align */
321 cInt2 = (Int*)(cur + (lx << 3));
/frameworks/native/opengl/libagl/
H A Dmipmap.cpp54 GGLSurface& cur = tex->editMip(level); local
59 uint16_t* dst = (uint16_t*)cur.data;
82 uint16_t* dst = (uint16_t*)cur.data;
102 uint32_t* dst = (uint32_t*)cur.data;
138 uint8_t* dst = (uint8_t*)cur.data;
158 uint16_t* dst = (uint16_t*)cur.data;
185 base = &cur;
/frameworks/av/services/camera/libcameraservice/gui/
H A DRingBufferConsumer.cpp70 BufferInfo acc, cur; local
81 cur.mCrop = item.mCrop;
82 cur.mTransform = item.mTransform;
83 cur.mScalingMode = item.mScalingMode;
84 cur.mTimestamp = item.mTimestamp;
85 cur.mFrameNumber = item.mFrameNumber;
86 cur.mPinned = item.mPinCount > 0;
88 int ret = filter.compare(accPtr, &cur);
93 acc = cur;
/frameworks/base/core/jni/android/graphics/
H A DGIFMovie.cpp306 static void disposeFrameIfNeeded(SkBitmap* bm, const SavedImage* cur, const SavedImage* next, argument
313 getTransparencyAndDisposalMethod(cur, &curTrans, &curDisposal);
318 && (nextTrans || !checkIfCover(next, cur))) {
323 fillRect(bm, cur->ImageDesc.Left, cur->ImageDesc.Top,
324 cur->ImageDesc.Width, cur->ImageDesc.Height,
401 const SavedImage* cur = &fGIF->SavedImages[i]; local
405 getTransparencyAndDisposalMethod(cur, &trans, &disposal);
417 disposeFrameIfNeeded(bm, prev, cur,
[all...]
/frameworks/base/core/java/android/service/voice/
H A DVoiceInteractionService.java143 String cur = Settings.Secure.getString(context.getContentResolver(),
145 if (cur == null || cur.isEmpty()) {
148 ComponentName curComp = ComponentName.unflattenFromString(cur);
/frameworks/support/compat/java/android/support/v4/content/
H A DContextCompat.java329 File cur = base;
331 if (cur == null) {
332 cur = new File(segment);
334 cur = new File(cur, segment);
337 return cur;

Completed in 572 milliseconds

1234