Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBatteryStatsBackgroundStatsTest.java173 long curr = 0; // realtime in us in testWifiScan() local
176 curr = 1000 * (clocks.realtime = clocks.uptime = 100); in testWifiScan()
177 bi.updateTimeBasesLocked(true, Display.STATE_ON, curr, curr); // on battery in testWifiScan()
182 curr = 1000 * (clocks.realtime = clocks.uptime = 202); in testWifiScan()
186 curr = 1000 * (clocks.realtime = clocks.uptime = 254); in testWifiScan()
190 curr = 1000 * (clocks.realtime = clocks.uptime = 305); in testWifiScan()
191 bi.updateTimeBasesLocked(false, Display.STATE_ON, curr, curr); // off battery in testWifiScan()
194 curr = 1000 * (clocks.realtime = clocks.uptime = 409); in testWifiScan()
198 curr = 1000 * (clocks.realtime = clocks.uptime = 657); in testWifiScan()
199 long time = bi.getUidStats().get(UID).getWifiScanTime(curr, STATS_SINCE_CHARGED); in testWifiScan()
[all …]
DBatteryStatsSensorTest.java89 long curr = 0; // realtime in us in testCountingWhileOffBattery() local
92 curr = 1000 * (clocks.realtime = clocks.uptime = 100); in testCountingWhileOffBattery()
93 bi.updateTimeBasesLocked(false, Display.STATE_ON, curr, curr); in testCountingWhileOffBattery()
97 curr = 1000 * (clocks.realtime = clocks.uptime = 200); in testCountingWhileOffBattery()
101 curr = 1000 * (clocks.realtime = clocks.uptime = 215); in testCountingWhileOffBattery()
105 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOffBattery()
109 curr = 1000 * (clocks.realtime = clocks.uptime = 550); in testCountingWhileOffBattery()
113 curr = 1000 * (clocks.realtime = clocks.uptime = 678); in testCountingWhileOffBattery()
117 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOffBattery()
125 long curr = 0; // realtime in us in testCountingWhileOnBattery() local
[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.h49 EGLFuncPointer* curr = reinterpret_cast<EGLFuncPointer*>(&platform); in egl_connection_t() local
59 *curr++ = f; in egl_connection_t()
/frameworks/libs/binary_translation/base/include/berberis/base/
Dforever_alloc.h56 uintptr_t curr = 0; in AllocatePage() local
57 if (!curr_.compare_exchange_strong(curr, page, std::memory_order_acq_rel)) { in AllocatePage()
59 return curr; in AllocatePage()
65 uintptr_t curr = curr_.load(std::memory_order_acquire); in AllocateImpl() local
67 if (!curr) { in AllocateImpl()
68 curr = AllocatePage(); in AllocateImpl()
71 uintptr_t res = AlignUp(curr, align); in AllocateImpl()
73 uintptr_t end = AlignDownPageSize(curr) + kPageSize; in AllocateImpl()
76 curr_.compare_exchange_weak(curr, 0, std::memory_order_acquire); in AllocateImpl()
82 if (curr_.compare_exchange_weak(curr, next, std::memory_order_acquire)) { in AllocateImpl()
Dfd.h56 auto* curr = reinterpret_cast<const uint8_t*>(data); in WriteFullyOrDie() local
57 auto* end = curr + size; in WriteFullyOrDie()
58 while (curr < end) { in WriteFullyOrDie()
59 auto written = RawSyscall(__NR_write, fd, bit_cast<long>(curr), end - curr); in WriteFullyOrDie()
62 curr += written; in WriteFullyOrDie()
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()
Dlarge_mmap.cc76 uint8_t* curr = g_buffer.load(std::memory_order_relaxed); in LargeMmapImplOrDie() local
78 uint8_t* next = curr + size; in LargeMmapImplOrDie()
84 if (g_buffer.compare_exchange_weak(curr, next, std::memory_order_release)) { in LargeMmapImplOrDie()
85 args.addr = curr; in LargeMmapImplOrDie()
/frameworks/libs/binary_translation/backend/common/
Dreg_alloc.cc156 for (auto curr = lifetimes_.begin(); curr != lifetimes_.end();) { in TryAssign() local
157 VRegLifetime* curr_lifetime = *curr; in TryAssign()
161 curr = lifetimes_.erase(curr); in TryAssign()
166 ++curr; in TryAssign()
181 for (auto curr = lifetimes_.begin(); curr != lifetimes_.end(); ++curr) { in ConsiderSpill() local
182 VRegLifetime* curr_lifetime = *curr; in ConsiderSpill()
205 spills_.push_back(VRegLifetimeSpill(curr, split_pos)); in ConsiderSpill()
221 auto curr = src->begin(); in MergeVRegLifetimeList() local
223 if (curr->begin() < dst_pos->begin()) { in MergeVRegLifetimeList()
227 dst->splice(dst_pos, *src, curr); in MergeVRegLifetimeList()
[all …]
/frameworks/libs/binary_translation/runtime/
Dexecute_guest_call.cc51 for (auto* curr = thread->guest_call_execution(); curr; curr = curr->parent) { in ExecuteGuestCall() local
55 if (curr->sp == GetStackRegister(GetCPUState(*state))) { in ExecuteGuestCall()
57 siglongjmp(curr->buf, 1); in ExecuteGuestCall()
/frameworks/libs/binary_translation/guest_loader/riscv64/
Dguest_loader_arch.cc76 uint64_t* curr = ToHostAddr<uint64_t>(guest_sp); in InitKernelArgs() local
79 *curr++ = argc; in InitKernelArgs()
83 *curr++ = reinterpret_cast<uint64_t>(argv[i]); in InitKernelArgs()
85 *curr++ = kNullGuestAddr; in InitKernelArgs()
88 curr = reinterpret_cast<uint64_t*>(DemangleGuestEnvp(reinterpret_cast<char**>(curr), envp)); in InitKernelArgs()
91 memcpy(curr, auxv, sizeof(auxv)); in InitKernelArgs()
/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/skia/
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/tests/TrustTests/src/android/trust/test/
DUnlockAttemptTest.kt195 enabledTrustAgentsChangedCount.compute(userId) { _: Int, curr: Int? -> in onEnabledTrustAgentsChanged() method
196 if (curr == null) 0 else curr + 1 in onEnabledTrustAgentsChanged()
223 onTrustManagedChangedCount.compute(userId) { _: Int, curr: Int? -> in onTrustManagedChanged() method
224 if (curr == null) 0 else curr + 1 in onTrustManagedChanged()
/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/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/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/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/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/libs/binary_translation/runtime_primitives/
Dtranslation_cache.cc277 auto curr = first++; in InvalidateGuestRange() local
278 auto guest_pc = curr->first; in InvalidateGuestRange()
279 GuestCodeEntry* entry = &curr->second; in InvalidateGuestRange()
299 guest_entries_.erase(curr); in InvalidateGuestRange()

12