Home
last modified time | relevance | path

Searched refs:curr (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/base/services/tests/servicestests/src/com/android/server/power/stats/
DBatteryStatsBackgroundStatsTest.java159 long curr = 0; // realtime in us in testWifiScan() local
162 curr = 1000 * (clocks.realtime = clocks.uptime = 100); in testWifiScan()
163 bi.updateTimeBasesLocked(true, Display.STATE_ON, curr, curr); // on battery in testWifiScan()
168 curr = 1000 * (clocks.realtime = clocks.uptime = 202); in testWifiScan()
172 curr = 1000 * (clocks.realtime = clocks.uptime = 254); in testWifiScan()
176 curr = 1000 * (clocks.realtime = clocks.uptime = 305); in testWifiScan()
177 bi.updateTimeBasesLocked(false, Display.STATE_ON, curr, curr); // off battery in testWifiScan()
180 curr = 1000 * (clocks.realtime = clocks.uptime = 409); in testWifiScan()
184 curr = 1000 * (clocks.realtime = clocks.uptime = 657); in testWifiScan()
185 long time = bi.getUidStats().get(UID).getWifiScanTime(curr, STATS_SINCE_CHARGED); in testWifiScan()
[all …]
DBatteryStatsSensorTest.java77 long curr = 0; // realtime in us in testCountingWhileOffBattery() local
80 curr = 1000 * (clocks.realtime = clocks.uptime = 100); in testCountingWhileOffBattery()
81 bi.updateTimeBasesLocked(false, Display.STATE_ON, curr, curr); in testCountingWhileOffBattery()
85 curr = 1000 * (clocks.realtime = clocks.uptime = 200); in testCountingWhileOffBattery()
89 curr = 1000 * (clocks.realtime = clocks.uptime = 215); in testCountingWhileOffBattery()
93 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOffBattery()
97 curr = 1000 * (clocks.realtime = clocks.uptime = 550); in testCountingWhileOffBattery()
101 curr = 1000 * (clocks.realtime = clocks.uptime = 678); in testCountingWhileOffBattery()
105 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOffBattery()
113 long curr = 0; // realtime in us in testCountingWhileOnBattery() local
[all …]
DBatteryStatsNoteTest.java2145 long curr = 1000L * (clock.realtime = clock.uptime = 1001); in testProcStateSyncScheduling_mobileRadioActiveState() local
2146 bi.noteMobileRadioPowerStateLocked(DataConnectionRealTimeInfo.DC_POWER_STATE_HIGH, curr, in testProcStateSyncScheduling_mobileRadioActiveState()
2157 curr = 1000L * (clock.realtime = clock.uptime = 3003); in testProcStateSyncScheduling_mobileRadioActiveState()
2158 bi.noteMobileRadioPowerStateLocked(DataConnectionRealTimeInfo.DC_POWER_STATE_LOW, curr, in testProcStateSyncScheduling_mobileRadioActiveState()
2174 long curr; in testNoteMobileRadioPowerStateLocked() local
2181 curr = 1000L * (clocks.realtime = clocks.uptime = 1001); in testNoteMobileRadioPowerStateLocked()
2182 bi.noteMobileRadioPowerStateLocked(DataConnectionRealTimeInfo.DC_POWER_STATE_HIGH, curr, in testNoteMobileRadioPowerStateLocked()
2186 curr = 1000L * (clocks.realtime = clocks.uptime = 2001); in testNoteMobileRadioPowerStateLocked()
2188 curr, UID); in testNoteMobileRadioPowerStateLocked()
2195 curr = 1000L * (clocks.realtime = clocks.uptime = 3001); in testNoteMobileRadioPowerStateLocked()
[all …]
/frameworks/native/opengl/libs/EGL/
Degl_layers.cpp118 void SetupFuncMaps(FunctionTable& functions, char const* const* entries, EGLFuncPointer* curr, in SetupFuncMaps() argument
141 name, func_idx, (unsigned long long)*curr); in SetupFuncMaps()
142 functions[func_idx] = *curr; in SetupFuncMaps()
149 curr++; in SetupFuncMaps()
215 void LayerLoader::LayerPlatformEntries(layer_setup_func layer_setup, EGLFuncPointer* curr, in LayerPlatformEntries() argument
220 EGLFuncPointer prev = *curr; in LayerPlatformEntries()
223 *curr = ApplyLayer(layer_setup, name, *curr); in LayerPlatformEntries()
225 if (prev != *curr) { in LayerPlatformEntries()
227 (unsigned long long)prev, (unsigned long long)*curr, name); in LayerPlatformEntries()
234 curr++; in LayerPlatformEntries()
[all …]
Degldefs.h47 EGLFuncPointer* curr = reinterpret_cast<EGLFuncPointer*>(&platform); in egl_connection_t() local
57 *curr++ = f; in egl_connection_t()
DLoader.cpp186 static void uninit_api(char const* const* api, __eglMustCastToProperFunctionPointerType* curr) { in uninit_api() argument
188 *curr++ = nullptr; in uninit_api()
364 __eglMustCastToProperFunctionPointerType* curr, in init_api() argument
376 *curr++ = nullptr; in init_api()
424 *curr++ = f; in init_api()
675 __eglMustCastToProperFunctionPointerType* curr = in initialize_api() local
689 *curr++ = f; in initialize_api()
DLoader.h64 __eglMustCastToProperFunctionPointerType* curr,
/frameworks/libs/binary_translation/base/include/berberis/base/
Dforever_alloc.h55 uintptr_t curr = 0; in AllocatePage() local
56 if (!curr_.compare_exchange_strong(curr, page, std::memory_order_acq_rel)) { in AllocatePage()
58 return curr; in AllocatePage()
64 uintptr_t curr = curr_.load(std::memory_order_acquire); in AllocateImpl() local
66 if (!curr) { in AllocateImpl()
67 curr = AllocatePage(); in AllocateImpl()
70 uintptr_t res = AlignUp(curr, align); in AllocateImpl()
72 uintptr_t end = AlignDownPageSize(curr) + kPageSize; in AllocateImpl()
75 curr_.compare_exchange_weak(curr, 0, std::memory_order_acquire); in AllocateImpl()
81 if (curr_.compare_exchange_weak(curr, next, std::memory_order_acquire)) { in AllocateImpl()
Dlock_free_stack.h61 T* curr = PointerAndCounter<T>::UnpackPointer(cmp); in Pop() local
62 if (!curr) { in Pop()
65 T* next = curr->next; in Pop()
70 return curr; in Pop()
/frameworks/libs/binary_translation/base/
Dforever_alloc_test.cc44 uintptr_t curr = reinterpret_cast<uintptr_t>(alloc.Allocate(size, align)); in CheckBasicAllocations() local
45 CheckOneAllocation(curr, size, align); in CheckBasicAllocations()
48 ASSERT_EQ(AlignDownPageSize(prev), AlignDownPageSize(curr)); in CheckBasicAllocations()
49 ASSERT_GE(curr, prev + size); in CheckBasicAllocations()
51 prev = curr; in CheckBasicAllocations()
55 uintptr_t curr = reinterpret_cast<uintptr_t>(alloc.Allocate(size, align)); in CheckBasicAllocations() local
56 CheckOneAllocation(curr, size, align); in CheckBasicAllocations()
57 ASSERT_NE(AlignDownPageSize(prev), AlignDownPageSize(curr)); in CheckBasicAllocations()
77 uintptr_t curr = reinterpret_cast<uintptr_t>(g_alloc.Allocate(size, align)); in CheckStressAllocations() local
78 CheckOneAllocation(curr, size, align); in CheckStressAllocations()
Dfd.h50 auto* curr = reinterpret_cast<const uint8_t*>(data); in WriteFullyOrDie() local
51 auto* end = curr + size; in WriteFullyOrDie()
52 while (curr < end) { in WriteFullyOrDie()
53 auto written = RawSyscall(__NR_write, fd, bit_cast<long>(curr), end - curr); in WriteFullyOrDie()
56 curr += written; in WriteFullyOrDie()
/frameworks/av/media/libstagefright/renderfright/gl/
DGLExtensions.cpp37 char const* curr = extensions; in ExtensionSet() local
38 char const* head = curr; in ExtensionSet()
40 head = strchr(curr, ' '); in ExtensionSet()
41 size_t len = head ? head - curr : strlen(curr); in ExtensionSet()
43 mExtensions.emplace(curr, len); in ExtensionSet()
45 curr = head + 1; in ExtensionSet()
/frameworks/native/libs/renderengine/gl/
DGLExtensions.cpp37 char const* curr = extensions; in ExtensionSet() local
38 char const* head = curr; in ExtensionSet()
40 head = strchr(curr, ' '); in ExtensionSet()
41 size_t len = head ? head - curr : strlen(curr); in ExtensionSet()
43 mExtensions.emplace(curr, len); in ExtensionSet()
45 curr = head + 1; in ExtensionSet()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
Dsobeloperator.cpp47 const int curr = (i * width + j) * 4; in computeGradient() local
48 const int above = (i > 0) ? curr - 4 * width : curr; in computeGradient()
49 const int below = (i < height - 1) ? curr + 4 * width : curr; in computeGradient()
53 (*(dataPtr + curr + c + right) - *(dataPtr + curr + c + left)) * 2 + in computeGradient()
/frameworks/base/services/core/java/com/android/server/display/
DDensityMapping.java97 Entry curr = sortedEntries[i]; in verifyDensityMapping() local
99 if (prev.squaredDiagonal == curr.squaredDiagonal) { in verifyDensityMapping()
105 + " the same diagonal: " + prev + ", " + curr); in verifyDensityMapping()
106 } else if (prev.density > curr.density) { in verifyDensityMapping()
108 + " increasing diagonal but decreasing density: " + prev + ", " + curr); in verifyDensityMapping()
/frameworks/base/core/java/android/util/
DSpline.java100 float curr = x[i]; in isStrictlyIncreasing() local
101 if (curr <= prev) { in isStrictlyIncreasing()
104 prev = curr; in isStrictlyIncreasing()
115 float curr = x[i]; in isMonotonic() local
116 if (curr < prev) { in isMonotonic()
119 prev = curr; in isMonotonic()
/frameworks/av/media/module/codecs/m4v_h263/dec/src/
Dconceal.cpp143 void CopyVopMB(Vop *curr, uint8 *prevFrame, int mbnum, int width_Y, int height) in CopyVopMB() argument
145 if (curr == NULL || prevFrame == NULL) { in CopyVopMB()
163 y1 = curr->yChan + lumstart; in CopyVopMB()
164 u1 = curr->uChan + chrstart; in CopyVopMB()
165 v1 = curr->vChan + chrstart; in CopyVopMB()
/frameworks/ex/framesequence/jni/
DFrameSequence_webp.cpp57 WebPIterator curr; in constructDependencyChain() local
60 int ok = WebPDemuxGetFrame(mDemux, 1, &curr); in constructDependencyChain()
64 prev = curr; in constructDependencyChain()
65 ok = WebPDemuxGetFrame(mDemux, i + 1, &curr); // Get ith frame. in constructDependencyChain()
68 if ((!curr.has_alpha || curr.blend_method == WEBP_MUX_NO_BLEND) && in constructDependencyChain()
69 isFullFrame(curr, canvasWidth, canvasHeight)) { in constructDependencyChain()
77 WebPDemuxReleaseIterator(&curr); in constructDependencyChain()
/frameworks/av/media/libmedia/
DMetadata.cpp141 size_t curr = mData->dataPosition(); in checkKey() local
146 size_t left = curr - mBegin; in checkKey()
162 mData->setDataPosition(curr); in checkKey()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DShadeListBuilder.java1103 final ListAttachState curr = entry.getAttachState(); in logAttachStateChanges() local
1106 if (!Objects.equals(curr, prev)) { in logAttachStateChanges()
1111 curr.getParent()); in logAttachStateChanges()
1113 if (curr.getParent() != prev.getParent()) { in logAttachStateChanges()
1114 mLogger.logParentChanged(mIterationCount, prev.getParent(), curr.getParent()); in logAttachStateChanges()
1117 GroupEntry currSuppressedParent = curr.getSuppressedChanges().getParent(); in logAttachStateChanges()
1124 curr.getParent()); in logAttachStateChanges()
1133 if (curr.getSuppressedChanges().getSection() != null) { in logAttachStateChanges()
1136 curr.getSuppressedChanges().getSection(), in logAttachStateChanges()
1137 curr.getSection()); in logAttachStateChanges()
[all …]
/frameworks/av/media/libnblog/
DPerformanceAnalysis.cpp393 PerformanceAnalysis& curr = hash.second; in dump() local
395 curr.reportPerformance(&body, thread.first, hash.first); in dump()
402 writeToFile(curr.mHists, curr.mOutlierData, curr.mPeakTimestamps, in dump()
/frameworks/base/cmds/incident/
Dmain.cpp121 IncidentSection curr = INCIDENT_SECTIONS[i]; in section_list() local
123 if (curr.id > sections[k].id) { in section_list()
126 IncidentSection tmp = curr; in section_list()
127 curr = sections[k]; in section_list()
130 sections[j] = curr; in section_list()
/frameworks/base/core/java/com/android/internal/os/
DKernelCpuProcStringReader.java156 int curr; in open() local
163 while ((curr = r.read(mBuf, total, mBuf.length - total)) >= 0) { in open()
164 total += curr; in open()
/frameworks/av/services/audiopolicy/fuzzer/
Daudiopolicy_fuzzer.cpp401 void traverseAndFuzzXML(xmlDocPtr pDoc, xmlNodePtr curr);
423 xmlNodePtr curr) { in traverseAndFuzzXML() argument
424 if (curr == nullptr) { in traverseAndFuzzXML()
428 xmlAttr *attribute = curr->properties; in traverseAndFuzzXML()
433 xmlSetProp(curr, attribute->name, reinterpret_cast<const xmlChar *>(newFormat)); in traverseAndFuzzXML()
445 xmlSetProp(curr, attribute->name, reinterpret_cast<const xmlChar *>(newFlag.c_str())); in traverseAndFuzzXML()
456 xmlSetProp(curr, attribute->name, reinterpret_cast<const xmlChar *>(newRate.c_str())); in traverseAndFuzzXML()
484 xmlSetProp(curr, attribute->name, in traverseAndFuzzXML()
492 curr = curr->xmlChildrenNode; in traverseAndFuzzXML()
493 while (curr != nullptr) { in traverseAndFuzzXML()
[all …]
/frameworks/native/cmds/atrace/
Dftrace_synthetic_events.conf1 rss_stat_throttled unsigned int mm_id; unsigned int curr; int member; long size

12