Home
last modified time | relevance | path

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

1234

/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsHistoryIterator.java119 private void readHistoryDelta(Parcel src, BatteryStats.HistoryItem cur) { in readHistoryDelta() argument
122 cur.cmd = BatteryStats.HistoryItem.CMD_UPDATE; in readHistoryDelta()
123 cur.numReadInts = 1; in readHistoryDelta()
130 cur.time += deltaTimeToken; in readHistoryDelta()
132 cur.readFromParcel(src); in readHistoryDelta()
133 if (DEBUG) Slog.i(TAG, "READ DELTA: ABS time=" + cur.time); in readHistoryDelta()
137 cur.time += delta; in readHistoryDelta()
138 cur.numReadInts += 1; in readHistoryDelta()
139 if (DEBUG) Slog.i(TAG, "READ DELTA: time delta=" + delta + " new time=" + cur.time); in readHistoryDelta()
142 if (DEBUG) Slog.i(TAG, "READ DELTA: time delta=" + delta + " new time=" + cur.time); in readHistoryDelta()
[all …]
DBatteryStatsHistory.java1761 private void writeHistoryItem(long elapsedRealtimeMs, long uptimeMs, HistoryItem cur) { in writeHistoryItem() argument
1763 recordTraceEvents(cur.eventCode, cur.eventTag); in writeHistoryItem()
1764 recordTraceCounters(mTraceLastState, cur.states, STATE1_TRACE_MASK, in writeHistoryItem()
1766 recordTraceCounters(mTraceLastState2, cur.states2, STATE2_TRACE_MASK, in writeHistoryItem()
1768 mTraceLastState = cur.states; in writeHistoryItem()
1769 mTraceLastState2 = cur.states2; in writeHistoryItem()
1773 && cur.powerStats == null in writeHistoryItem()
1774 && cur.processStateChange == null) { in writeHistoryItem()
1784 final int diffStates = mHistoryLastWritten.states ^ cur.states; in writeHistoryItem()
1785 final int diffStates2 = mHistoryLastWritten.states2 ^ cur.states2; in writeHistoryItem()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DCollectionUtils.java121 public static @NonNull <I, O> List<O> map(@Nullable List<I> cur, in map() argument
123 if (isEmpty(cur)) return Collections.emptyList(); in map()
124 final int size = cur.size(); in map()
127 result.add(f.apply(cur.get(i))); in map()
135 public static @NonNull <I, O> Set<O> map(@Nullable Set<I> cur, in map() argument
137 if (isEmpty(cur)) return emptySet(); in map()
138 ArraySet<O> result = new ArraySet<>(cur.size()); in map()
139 if (cur instanceof ArraySet) { in map()
140 ArraySet<I> arraySet = (ArraySet<I>) cur; in map()
146 for (I item : cur) { in map()
[all …]
DArrayUtils.java525 public static @NonNull int[] appendInt(@Nullable int[] cur, int val, in appendInt() argument
527 if (cur == null) { in appendInt()
530 final int N = cur.length; in appendInt()
533 if (cur[i] == val) { in appendInt()
534 return cur; in appendInt()
539 System.arraycopy(cur, 0, ret, 0, N); in appendInt()
549 public static @NonNull int[] appendInt(@Nullable int[] cur, int val) { in appendInt() argument
550 return appendInt(cur, val, false); in appendInt()
556 public static @Nullable int[] removeInt(@Nullable int[] cur, int val) { in removeInt() argument
557 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.cpp330 chunk_t* cur = mList.head(); in alloc() local
333 while (cur) { in alloc()
336 extra = ( -cur->start & ((pagesize/kMemoryAlign)-1) ) ; in alloc()
339 if (cur->free && (cur->size >= (size+extra))) { in alloc()
340 if ((!free_chunk) || (cur->size < free_chunk->size)) { in alloc()
341 free_chunk = cur; in alloc()
343 if (cur->size == size) { in alloc()
347 cur = cur->next; in alloc()
383 chunk_t* cur = mList.head(); in dealloc() local
384 while (cur) { in dealloc()
[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/av/services/audiopolicy/engine/config/src/
DEngineConfig.cpp263 std::string getXmlAttribute(const xmlNode *cur, const char *attribute) in getXmlAttribute() argument
265 auto charPtr = make_xmlUnique(xmlGetProp(cur, reinterpret_cast<const xmlChar *>(attribute))); in getXmlAttribute()
278 for (xmlNode *cur = root->xmlChildrenNode; cur != NULL; cur = cur->next) { in getReference() local
279 if ((!xmlStrcmp(cur->name, (const xmlChar *)gReferenceElementName))) { in getReference()
280 std::string name = getXmlAttribute(cur, gReferenceAttributeName); in getReference()
282 refNode = cur; in getReference()
293 static status_t deserializeCollection(_xmlDoc *doc, const _xmlNode *cur, in deserializeCollection() argument
297 for (cur = cur->xmlChildrenNode; cur != NULL; cur = cur->next) { in deserializeCollection()
298 if (xmlStrcmp(cur->name, (const xmlChar *)Trait::collectionTag) && in deserializeCollection()
299 xmlStrcmp(cur->name, (const xmlChar *)Trait::tag)) { in deserializeCollection()
[all …]
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBatteryStatsBackgroundStatsTest.java55 long cur = 0; // realtime in us in testBgTimeBase() local
61 cur = clocks.realtime * 1000; in testBgTimeBase()
62 bi.updateTimeBasesLocked(false, Display.STATE_ON, cur, cur); // off battery in testBgTimeBase()
64 assertEquals(0, bgtb.computeRealtime(cur, STATS_SINCE_CHARGED)); in testBgTimeBase()
68 cur = clocks.realtime * 1000; in testBgTimeBase()
71 assertEquals(0, bgtb.computeRealtime(cur, STATS_SINCE_CHARGED)); in testBgTimeBase()
75 cur = clocks.realtime * 1000; in testBgTimeBase()
78 assertEquals(0, bgtb.computeRealtime(cur, STATS_SINCE_CHARGED)); in testBgTimeBase()
82 cur = clocks.realtime * 1000; in testBgTimeBase()
83 bi.updateTimeBasesLocked(true, Display.STATE_ON, cur, cur); // on battery in testBgTimeBase()
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DSerializer.cpp236 status_t deserializeCollection(const xmlNode *cur,
240 std::variant<status_t, typename Trait::Element> deserialize(const xmlNode *cur,
284 std::string getXmlAttribute(const xmlNode *cur, const char *attribute) in getXmlAttribute() argument
286 auto xmlValue = make_xmlUnique(xmlGetProp(cur, reinterpret_cast<const xmlChar*>(attribute))); in getXmlAttribute()
295 const xmlNode* getReference(const xmlNode *cur, const std::string &refName) in getReference() argument
297 for (; cur != NULL; cur = cur->next) { in getReference()
298 if (!xmlStrcmp(cur->name, reinterpret_cast<const xmlChar*>(Trait::collectionTag))) { in getReference()
299 for (const xmlNode *child = cur->children; child != NULL; child = child->next) { in getReference()
314 status_t PolicySerializer::deserializeCollection(const xmlNode *cur, in deserializeCollection() argument
318 for (cur = cur->xmlChildrenNode; cur != NULL; cur = cur->next) { in deserializeCollection()
[all …]
/frameworks/base/packages/WAPPushManager/src/com/android/smspush/
DWapPushManager.java136 Cursor cur = db.query(APPID_TABLE_NAME, in queryLastApp() local
147 if (cur.moveToNext()) { in queryLastApp()
149 ret.installOrder = cur.getInt(cur.getColumnIndex("install_order")); in queryLastApp()
150 ret.packageName = cur.getString(cur.getColumnIndex("package_name")); in queryLastApp()
151 ret.className = cur.getString(cur.getColumnIndex("class_name")); in queryLastApp()
152 ret.appType = cur.getInt(cur.getColumnIndex("app_type")); in queryLastApp()
153 ret.needSignature = cur.getInt(cur.getColumnIndex("need_signature")); in queryLastApp()
154 ret.furtherProcessing = cur.getInt(cur.getColumnIndex("further_processing")); in queryLastApp()
156 cur.close(); in queryLastApp()
454 Cursor cur = db.query(APPID_TABLE_NAME, null, null, null, null, null, null); in migrateWapPushManDBIfNeeded() local
[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/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/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/av/media/module/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 …]
/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/base/media/java/android/media/
DExifInterfaceUtils.java101 public static boolean startsWith(byte[] cur, byte[] val) { in startsWith() argument
102 if (cur == null || val == null) return false; in startsWith()
103 if (cur.length < val.length) return false; in startsWith()
104 if (cur.length == 0 || val.length == 0) return false; in startsWith()
106 if (cur[i] != val[i]) return false; in startsWith()
/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/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/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/base/api/coverage/tools/
DExtractFlaggedApis.kt77 var cur = classItem in getClassFlag() variable
80 while (cur.isInnerClass() && classFlag == null) { in getClassFlag()
81 cur = cur.parent() as ClassItem in getClassFlag()
82 classFlag = getFlagAnnotation(cur) in getClassFlag()
/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/base/services/core/java/com/android/server/pm/
DPreferredIntentResolver.java62 PreferredActivity cur = pal.get(i); in shouldAddPreferredActivity() local
63 if (cur.mPref.mAlways in shouldAddPreferredActivity()
64 && cur.mPref.mMatch == (pa.mPref.mMatch & IntentFilter.MATCH_CATEGORY_MASK) in shouldAddPreferredActivity()
65 && cur.mPref.sameSet(pa.mPref)) { in shouldAddPreferredActivity()
/frameworks/av/services/camera/libcameraservice/gui/
DRingBufferConsumer.cpp71 BufferInfo acc, cur; in pinSelectedBuffer() local
82 cur.mCrop = item.mCrop; in pinSelectedBuffer()
83 cur.mTransform = item.mTransform; in pinSelectedBuffer()
84 cur.mScalingMode = item.mScalingMode; in pinSelectedBuffer()
85 cur.mTimestamp = item.mTimestamp; in pinSelectedBuffer()
86 cur.mFrameNumber = item.mFrameNumber; in pinSelectedBuffer()
87 cur.mPinned = item.mPinCount > 0; in pinSelectedBuffer()
89 int ret = filter.compare(accPtr, &cur); in pinSelectedBuffer()
94 acc = cur; in pinSelectedBuffer()

1234