Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsBackgroundStatsTest.java157 long curr = 0; // realtime in us in testWifiScan() local
160 curr = 1000 * (clocks.realtime = clocks.uptime = 100); in testWifiScan()
161 bi.updateTimeBasesLocked(true, Display.STATE_ON, curr, curr); // on battery in testWifiScan()
166 curr = 1000 * (clocks.realtime = clocks.uptime = 202); in testWifiScan()
170 curr = 1000 * (clocks.realtime = clocks.uptime = 254); in testWifiScan()
174 curr = 1000 * (clocks.realtime = clocks.uptime = 305); in testWifiScan()
175 bi.updateTimeBasesLocked(false, Display.STATE_ON, curr, curr); // off battery in testWifiScan()
178 curr = 1000 * (clocks.realtime = clocks.uptime = 409); in testWifiScan()
182 curr = 1000 * (clocks.realtime = clocks.uptime = 657); in testWifiScan()
183 long time = bi.getUidStats().get(UID).getWifiScanTime(curr, STATS_SINCE_CHARGED); in testWifiScan()
[all …]
DBatteryStatsSensorTest.java74 long curr = 0; // realtime in us in testCountingWhileOffBattery() local
77 curr = 1000 * (clocks.realtime = clocks.uptime = 100); in testCountingWhileOffBattery()
78 bi.updateTimeBasesLocked(false, Display.STATE_ON, curr, curr); in testCountingWhileOffBattery()
82 curr = 1000 * (clocks.realtime = clocks.uptime = 200); in testCountingWhileOffBattery()
86 curr = 1000 * (clocks.realtime = clocks.uptime = 215); in testCountingWhileOffBattery()
90 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOffBattery()
94 curr = 1000 * (clocks.realtime = clocks.uptime = 550); in testCountingWhileOffBattery()
98 curr = 1000 * (clocks.realtime = clocks.uptime = 678); in testCountingWhileOffBattery()
102 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOffBattery()
110 long curr = 0; // realtime in us in testCountingWhileOnBattery() local
[all …]
/frameworks/native/services/surfaceflinger/RenderEngine/
DGLExtensions.cpp44 char const* curr = (char const*)extensions; in initWithGLStrings() local
45 char const* head = curr; in initWithGLStrings()
47 head = strchr(curr, ' '); in initWithGLStrings()
48 String8 s(curr, head ? head-curr : strlen(curr)); in initWithGLStrings()
52 curr = head+1; in initWithGLStrings()
/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/native/services/surfaceflinger/tests/hwc2/
DHwc2TestProperties.cpp44 const Area& curr = get(); in dump() local
45 dmp << "\tbuffer area: width " << curr.width << ", height " << curr.height in dump()
93 const Area& curr = get(); in updateDependents() local
96 mBuffer->updateBufferArea(curr); in updateDependents()
98 mSourceCrop->updateBufferArea(curr); in updateDependents()
100 mSurfaceDamage->updateBufferArea(curr); in updateDependents()
333 const UnsignedArea& curr = get(); in dump() local
334 dmp << "\tdisplay dimension: " << curr.width<< " x " << curr.height<< "\n"; in dump()
346 const UnsignedArea& curr = get(); in updateDependents() local
349 mBuffer->updateBufferArea({static_cast<int32_t>(curr.width), in updateDependents()
[all …]
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/
DTestUtilsMatchers.java275 float curr = item.get(i);
277 if ((curr < from) || (curr > to)) {
278 mFailedDescription = "Value #" + i + ":" + curr + " should be between " +
307 float curr = item.get(i);
310 if (curr > next) {
312 ":" + curr + " and #" + (i + 1) + ":" + next;
341 float curr = item.get(i);
344 if (curr < next) {
346 ":" + curr + " and #" + (i + 1) + ":" + next;
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/reflection/
DModelAnalyzer.java100 ModelClass curr = modelClass1; in findCommonParentOf() local
101 while (curr != null && !curr.isAssignableFrom(modelClass2)) { in findCommonParentOf()
102 curr = curr.getSuperclass(); in findCommonParentOf()
104 if (curr == null) { in findCommonParentOf()
118 Preconditions.checkNotNull(curr, in findCommonParentOf()
122 return curr; in findCommonParentOf()
/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/libstagefright/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()
Dmp4dec_lib.h310 void CopyVopMB(Vop *curr, uint8 *prev, int mbnum, int width, int height);
/frameworks/native/opengl/libagl/
DTokenizer.cpp112 const run_t* const curr = a + mid; in _indexOrderOf() local
114 if (token < curr->first) c = 1; in _indexOrderOf()
115 else if (token >= curr->first+curr->length) c = -1; in _indexOrderOf()
DTextureObjectManager.cpp222 const GGLSurface* curr = mMipmaps + i; in reallocate() local
223 if (curr->format != surface.format) { in reallocate()
230 if (w != curr->width || h != curr->height) { in reallocate()
234 prev = curr; in reallocate()
/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/support/core-ui/tests/java/android/support/v4/testutils/
DTestUtilsMatchers.java255 int curr = item.get(i);
257 if (curr != expectedValues[i]) {
258 mFailedDescription = "At #" + i + " got " + curr + " but should be " +
/frameworks/native/opengl/libs/EGL/
DLoader.cpp264 __eglMustCastToProperFunctionPointerType* curr, in init_api() argument
315 *curr++ = f; in init_api()
501 __eglMustCastToProperFunctionPointerType* curr = in load_driver() local
515 *curr++ = f; in load_driver()
DLoader.h62 __eglMustCastToProperFunctionPointerType* curr,
/frameworks/base/core/java/android/view/
DViewRootImpl.java4291 QueuedInputEvent curr = mQueueHead; in forward() local
4292 if (curr == null) { in forward()
4303 while (curr != null && curr != q) { in forward()
4304 if (!blocked && deviceId == curr.mEvent.getDeviceId()) { in forward()
4307 prev = curr; in forward()
4308 curr = curr.mNext; in forward()
4315 if (curr == null) { in forward()
4322 if (curr != null) { in forward()
4323 curr = curr.mNext; in forward()
4329 while (curr != null) { in forward()
[all …]
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger_hwc1.cpp1627 const KeyedVector< wp<IBinder>, DisplayDeviceState>& curr(mCurrentState.displays); in handleTransactionLocked() local
1629 if (!curr.isIdenticalTo(draw)) { in handleTransactionLocked()
1631 const size_t cc = curr.size(); in handleTransactionLocked()
1639 const ssize_t j = curr.indexOfKey(draw.keyAt(i)); in handleTransactionLocked()
1659 const DisplayDeviceState& state(curr[j]); in handleTransactionLocked()
1660 const wp<IBinder>& display(curr.keyAt(j)); in handleTransactionLocked()
1700 if (draw.indexOfKey(curr.keyAt(i)) < 0) { in handleTransactionLocked()
1701 const DisplayDeviceState& state(curr[i]); in handleTransactionLocked()
1753 const wp<IBinder>& display(curr.keyAt(i)); in handleTransactionLocked()
DSurfaceFlinger.cpp2065 const KeyedVector< wp<IBinder>, DisplayDeviceState>& curr(mCurrentState.displays); in handleTransactionLocked() local
2067 if (!curr.isIdenticalTo(draw)) { in handleTransactionLocked()
2069 const size_t cc = curr.size(); in handleTransactionLocked()
2077 const ssize_t j = curr.indexOfKey(draw.keyAt(i)); in handleTransactionLocked()
2097 const DisplayDeviceState& state(curr[j]); in handleTransactionLocked()
2098 const wp<IBinder>& display(curr.keyAt(j)); in handleTransactionLocked()
2138 if (draw.indexOfKey(curr.keyAt(i)) < 0) { in handleTransactionLocked()
2139 const DisplayDeviceState& state(curr[i]); in handleTransactionLocked()
2199 const wp<IBinder>& display(curr.keyAt(i)); in handleTransactionLocked()
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerService.java19690 BroadcastFilter curr = null;
19695 if (curr == null) {
19696 curr = registeredReceivers.get(ir);
19698 if (curr.getPriority() >= curt.priority) {
19700 receivers.add(it, curr);
19702 curr = null;