Home
last modified time | relevance | path

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

1234

/frameworks/base/core/java/com/android/internal/util/
DCollectionUtils.java113 public static @NonNull <I, O> List<O> map(@Nullable List<I> cur, in map() argument
115 if (isEmpty(cur)) return Collections.emptyList(); in map()
117 for (int i = 0; i < cur.size(); i++) { in map()
118 result.add(f.apply(cur.get(i))); in map()
126 public static @NonNull <I, O> Set<O> map(@Nullable Set<I> cur, in map() argument
128 if (isEmpty(cur)) return emptySet(); in map()
130 if (cur instanceof ArraySet) { in map()
131 ArraySet<I> arraySet = (ArraySet<I>) cur; in map()
137 for (I item : cur) { in map()
155 public static @NonNull <I, O> List<O> mapNotNull(@Nullable List<I> cur, in mapNotNull() argument
[all …]
DArrayUtils.java439 public static @NonNull int[] appendInt(@Nullable int[] cur, int val, in appendInt() argument
441 if (cur == null) { in appendInt()
444 final int N = cur.length; in appendInt()
447 if (cur[i] == val) { in appendInt()
448 return cur; in appendInt()
453 System.arraycopy(cur, 0, ret, 0, N); in appendInt()
463 public static @NonNull int[] appendInt(@Nullable int[] cur, int val) { in appendInt() argument
464 return appendInt(cur, val, false); in appendInt()
470 public static @Nullable int[] removeInt(@Nullable int[] cur, int val) { in removeInt() argument
471 if (cur == null) { in removeInt()
[all …]
/frameworks/av/media/libstagefright/
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.cpp333 chunk_t* cur = mList.head(); in alloc() local
336 while (cur) { in alloc()
339 extra = ( -cur->start & ((pagesize/kMemoryAlign)-1) ) ; in alloc()
342 if (cur->free && (cur->size >= (size+extra))) { in alloc()
343 if ((!free_chunk) || (cur->size < free_chunk->size)) { in alloc()
344 free_chunk = cur; in alloc()
346 if (cur->size == size) { in alloc()
350 cur = cur->next; in alloc()
386 chunk_t* cur = mList.head(); in dealloc() local
387 while (cur) { in dealloc()
[all …]
/frameworks/av/services/audiopolicy/engine/config/src/
DEngineConfig.cpp144 std::string getXmlAttribute(const xmlNode *cur, const char *attribute) in getXmlAttribute() argument
146 xmlCharUnique charPtr(xmlGetProp(cur, reinterpret_cast<const xmlChar *>(attribute)), xmlFree); in getXmlAttribute()
159 for (xmlNode *cur = root->xmlChildrenNode; cur != NULL; cur = cur->next) { in getReference() local
160 if ((!xmlStrcmp(cur->name, (const xmlChar *)gReferenceElementName))) { in getReference()
161 std::string name = getXmlAttribute(cur, gReferenceAttributeName); in getReference()
163 refNode = cur; in getReference()
174 static status_t deserializeCollection(_xmlDoc *doc, const _xmlNode *cur, in deserializeCollection() argument
178 for (cur = cur->xmlChildrenNode; cur != NULL; cur = cur->next) { in deserializeCollection()
179 if (xmlStrcmp(cur->name, (const xmlChar *)Trait::collectionTag) && in deserializeCollection()
180 xmlStrcmp(cur->name, (const xmlChar *)Trait::tag)) { in deserializeCollection()
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DSerializer.cpp92 static Return<Element> deserialize(const xmlNode *cur, PtrSerializingCtx serializingContext);
110 static Return<Element> deserialize(const xmlNode *cur, PtrSerializingCtx serializingContext);
128 static Return<Element> deserialize(const xmlNode *cur, PtrSerializingCtx serializingContext);
150 static Return<Element> deserialize(const xmlNode *cur, PtrSerializingCtx serializingContext);
170 static Return<Element> deserialize(const xmlNode *cur, PtrSerializingCtx serializingContext);
190 static Return<Element> deserialize(const xmlNode *cur, PtrSerializingCtx serializingContext);
228 static Return<Element> deserialize(const xmlNode *cur, PtrSerializingCtx serializingContext);
269 std::string getXmlAttribute(const xmlNode *cur, const char *attribute) in getXmlAttribute() argument
271 auto xmlValue = make_xmlUnique(xmlGetProp(cur, reinterpret_cast<const xmlChar*>(attribute))); in getXmlAttribute()
280 const xmlNode* getReference(const xmlNode *cur, const std::string &refName) in getReference() argument
[all …]
/frameworks/compile/mclinker/lib/MC/
DAttributeSet.cpp26 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/com/android/internal/os/
DBatteryStatsBackgroundStatsTest.java43 long cur = 0; // realtime in us in testBgTimeBase() local
49 cur = clocks.realtime * 1000; in testBgTimeBase()
50 bi.updateTimeBasesLocked(false, Display.STATE_ON, cur, cur); // off battery in testBgTimeBase()
52 assertEquals(0, bgtb.computeRealtime(cur, STATS_SINCE_CHARGED)); in testBgTimeBase()
56 cur = clocks.realtime * 1000; in testBgTimeBase()
59 assertEquals(0, bgtb.computeRealtime(cur, STATS_SINCE_CHARGED)); in testBgTimeBase()
63 cur = clocks.realtime * 1000; in testBgTimeBase()
66 assertEquals(0, bgtb.computeRealtime(cur, STATS_SINCE_CHARGED)); in testBgTimeBase()
70 cur = clocks.realtime * 1000; in testBgTimeBase()
71 bi.updateTimeBasesLocked(true, Display.STATE_ON, cur, cur); // on battery in testBgTimeBase()
[all …]
/frameworks/base/core/tests/coretests/src/android/database/
DDatabaseGeneralTest.java637 Cursor cur = mDatabase.rawQuery("PRAGMA table_info(pragma_test)", null); in testTableInfoPragma() local
638 Assert.assertEquals(5, cur.getCount()); in testTableInfoPragma()
640 Assert.assertTrue(cur.moveToNext()); in testTableInfoPragma()
642 cur.getString(TABLE_INFO_PRAGMA_COLUMNNAME_INDEX)); in testTableInfoPragma()
644 cur.getString(TABLE_INFO_PRAGMA_DEFAULT_INDEX)); in testTableInfoPragma()
646 Assert.assertTrue(cur.moveToNext()); in testTableInfoPragma()
648 cur.getString(TABLE_INFO_PRAGMA_COLUMNNAME_INDEX)); in testTableInfoPragma()
649 Assert.assertNull(cur.getString(TABLE_INFO_PRAGMA_DEFAULT_INDEX)); in testTableInfoPragma()
651 Assert.assertTrue(cur.moveToNext()); in testTableInfoPragma()
653 cur.getString(TABLE_INFO_PRAGMA_COLUMNNAME_INDEX)); in testTableInfoPragma()
[all …]
/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/native/libs/ui/
DRegion.cpp252 const_iterator cur = begin(); in contains() local
254 while (cur != tail) { in contains()
255 if (y >= cur->top && y < cur->bottom && x >= cur->left && x < cur->right) { in contains()
258 cur++; in contains()
477 Rect* cur; member in android::Region::rasterizer
480 : bounds(INT_MAX, 0, INT_MIN, 0), storage(reg.mStorage), head(), tail(), cur() { in rasterizer()
520 if (cur->top != rect.top) { in operator ()()
522 } else if (cur->right == rect.left) { in operator ()()
523 cur->right = rect.right; in operator ()()
528 cur = span.data() + (span.size() - 1); in operator ()()
[all …]
/frameworks/base/packages/WAPPushManager/src/com/android/smspush/
DWapPushManager.java127 Cursor cur = db.query(APPID_TABLE_NAME, in queryLastApp() local
138 if (cur.moveToNext()) { in queryLastApp()
140 ret.installOrder = cur.getInt(cur.getColumnIndex("install_order")); in queryLastApp()
141 ret.packageName = cur.getString(cur.getColumnIndex("package_name")); in queryLastApp()
142 ret.className = cur.getString(cur.getColumnIndex("class_name")); in queryLastApp()
143 ret.appType = cur.getInt(cur.getColumnIndex("app_type")); in queryLastApp()
144 ret.needSignature = cur.getInt(cur.getColumnIndex("need_signature")); in queryLastApp()
145 ret.furtherProcessing = cur.getInt(cur.getColumnIndex("further_processing")); in queryLastApp()
147 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);
/frameworks/base/services/core/java/com/android/server/pm/parsing/library/
DPackageSharedLibraryUpdater.java49 <T> ArrayList<T> prefix(@Nullable ArrayList<T> cur, T val) { in prefix() argument
50 if (cur == null) { in prefix()
51 cur = new ArrayList<>(); in prefix()
53 cur.add(0, val); in prefix()
54 return cur; in prefix()
/frameworks/base/telephony/common/com/android/internal/telephony/
DHbpcdUtils.java144 Cursor cur = resolver.query(MccIdd.CONTENT_URI, projection, in getIddByMcc() local
146 if (cur != null) { in getIddByMcc()
147 if (cur.getCount() > 0) { in getIddByMcc()
148 if (DBG) Log.d(LOG_TAG, "Query Idd returned the cursor " + cur); in getIddByMcc()
151 cur.moveToFirst(); in getIddByMcc()
152 idd = cur.getString(0); in getIddByMcc()
156 cur.close(); in getIddByMcc()
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
DUnitTest.java220 Class<?> cur = Class.forName(s); in getProperSubclasses() local
221 while (cur != null) { in getProperSubclasses()
222 if (cur.getSuperclass() == klass) { in getProperSubclasses()
225 cur = cur.getSuperclass(); in getProperSubclasses()
227 if (cur != null) { in getProperSubclasses()
228 ret.add((Class<? extends T>) cur); in getProperSubclasses()
/frameworks/rs/tests/java_api/RsMinimalTest/src/com/android/rs/minimaltest/
DUnitTest.java220 Class<?> cur = Class.forName(s); in getProperSubclasses() local
221 while (cur != null) { in getProperSubclasses()
222 if (cur.getSuperclass() == klass) { in getProperSubclasses()
225 cur = cur.getSuperclass(); in getProperSubclasses()
227 if (cur != null) { in getProperSubclasses()
228 ret.add((Class<? extends T>) cur); in getProperSubclasses()
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUnitTest.java223 Class<?> cur = Class.forName(s); in getProperSubclasses() local
224 while (cur != null) { in getProperSubclasses()
225 if (cur.getSuperclass() == klass) { in getProperSubclasses()
228 cur = cur.getSuperclass(); in getProperSubclasses()
230 if (cur != null) { in getProperSubclasses()
231 ret.add((Class<? extends T>) cur); in getProperSubclasses()
/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/base/libs/hwui/jni/
DGIFMovie.cpp306 static void disposeFrameIfNeeded(SkBitmap* bm, const SavedImage* cur, const SavedImage* next, in disposeFrameIfNeeded() argument
313 getTransparencyAndDisposalMethod(cur, &curTrans, &curDisposal); in disposeFrameIfNeeded()
318 && (nextTrans || !checkIfCover(next, cur))) { in disposeFrameIfNeeded()
323 fillRect(bm, cur->ImageDesc.Left, cur->ImageDesc.Top, in disposeFrameIfNeeded()
324 cur->ImageDesc.Width, cur->ImageDesc.Height, in disposeFrameIfNeeded()
401 const SavedImage* cur = &fGIF->SavedImages[i]; in onGetBitmap() local
405 getTransparencyAndDisposalMethod(cur, &trans, &disposal); in onGetBitmap()
417 disposeFrameIfNeeded(bm, prev, cur, &fBackup, fPaintingColor); in onGetBitmap()
423 if (i == lastIndex || !checkIfWillBeCleared(cur)) { in onGetBitmap()
424 drawFrame(bm, cur, gif->SColorMap); in onGetBitmap()
/frameworks/base/core/java/android/os/
DPooledStringWriter.java59 final Integer cur = mPool.get(str); in writeString() local
60 if (cur != null) { in writeString()
61 mOut.writeInt(cur); in writeString()
/frameworks/compile/mclinker/lib/Script/
DGroupCmd.cpp48 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()
/frameworks/base/core/java/android/content/pm/
DPackageParserCacheHelper.java123 final Integer cur = mIndexes.get(s); in writeString() local
124 if (cur != null) { in writeString()
126 p.writeInt(cur); // Already in the pool. in writeString()
128 Log.i(TAG, "Duplicate '" + s + "' at " + cur); in writeString()

1234