/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | BatteryStatsBackgroundStatsTest.java | 173 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 …]
|
D | BatteryStatsSensorTest.java | 89 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/ |
D | egl_layers.cpp | 118 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 …]
|
D | egldefs.h | 49 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/ |
D | forever_alloc.h | 56 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()
|
D | fd.h | 56 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()
|
D | lock_free_stack.h | 61 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/ |
D | forever_alloc_test.cc | 44 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()
|
D | large_mmap.cc | 76 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/ |
D | reg_alloc.cc | 156 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/ |
D | execute_guest_call.cc | 51 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/ |
D | guest_loader_arch.cc | 76 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/ |
D | GLExtensions.cpp | 37 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/ |
D | GLExtensions.cpp | 37 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/ |
D | sobeloperator.cpp | 47 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/ |
D | DensityMapping.java | 97 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/ |
D | UnlockAttemptTest.kt | 195 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/ |
D | Spline.java | 100 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/ |
D | conceal.cpp | 143 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/ |
D | Metadata.cpp | 141 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/ |
D | ShadeListBuilder.java | 1103 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/ |
D | main.cpp | 121 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/ |
D | PerformanceAnalysis.cpp | 393 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/ |
D | KernelCpuProcStringReader.java | 156 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/ |
D | translation_cache.cc | 277 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()
|