/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ |
D | TaskPositionerTests.java | 79 final Rect r = new Rect(100, 220, 700, 520); in testBasicFreeWindowResizing() local 80 final int midY = (r.top + r.bottom) / 2; in testBasicFreeWindowResizing() 84 false /*preserveOrientation*/, r.left - MOUSE_DELTA_X, r.top - MOUSE_DELTA_Y, r); in testBasicFreeWindowResizing() 85 assertBoundsEquals(r, mPositioner.getWindowDragBounds()); in testBasicFreeWindowResizing() 89 assertBoundsEquals(new Rect(MOUSE_DELTA_X, MOUSE_DELTA_Y, r.right, r.bottom), in testBasicFreeWindowResizing() 94 assertBoundsEquals(new Rect(400 + MOUSE_DELTA_X, MOUSE_DELTA_Y, r.right, r.bottom), in testBasicFreeWindowResizing() 98 mPositioner.resizeDrag(2000.0f, r.top); in testBasicFreeWindowResizing() 100 new Rect(r.right - mMinVisibleWidth, r.top + MOUSE_DELTA_Y, r.right, r.bottom), in testBasicFreeWindowResizing() 104 mPositioner.resizeDrag(r.left, 2000.0f); in testBasicFreeWindowResizing() 106 new Rect(r.left + MOUSE_DELTA_X, r.bottom - mMinVisibleHeight, r.right, r.bottom), in testBasicFreeWindowResizing() [all …]
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | RouteInfoTest.java | 41 RouteInfo r; in testConstructor() local 45 r = new RouteInfo((IpPrefix) null, null, "rmnet0"); in testConstructor() 50 r = new RouteInfo((IpPrefix) null, Address("2001:db8::1"), null); in testConstructor() 51 assertEquals(Prefix("::/0"), r.getDestination()); in testConstructor() 52 assertEquals(Address("2001:db8::1"), r.getGateway()); in testConstructor() 53 assertNull(r.getInterface()); in testConstructor() 55 r = new RouteInfo((IpPrefix) null, Address("192.0.2.1"), "wlan0"); in testConstructor() 56 assertEquals(Prefix("0.0.0.0/0"), r.getDestination()); in testConstructor() 57 assertEquals(Address("192.0.2.1"), r.getGateway()); in testConstructor() 58 assertEquals("wlan0", r.getInterface()); in testConstructor() [all …]
|
/frameworks/base/core/java/android/os/ |
D | Broadcaster.java | 35 Registration r = null; in request() local 37 r = new Registration(); in request() 38 r.senderWhat = senderWhat; in request() 39 r.targets = new Handler[1]; in request() 40 r.targetWhats = new int[1]; in request() 41 r.targets[0] = target; in request() 42 r.targetWhats[0] = targetWhat; in request() 43 mReg = r; in request() 44 r.next = r; in request() 45 r.prev = r; in request() [all …]
|
/frameworks/base/core/java/android/app/ |
D | LocalActivityManager.java | 111 private void moveToState(LocalActivityRecord r, int desiredState) { in moveToState() argument 112 if (r.curState == RESTORED || r.curState == DESTROYED) { in moveToState() 117 if (r.curState == INITIALIZING) { in moveToState() 123 instanceObj = lastNonConfigurationInstances.get(r.id); in moveToState() 132 if (localLOGV) Log.v(TAG, r.id + ": starting " + r.intent); in moveToState() 133 if (r.activityInfo == null) { in moveToState() 134 r.activityInfo = mActivityThread.resolveActivityInfo(r.intent); in moveToState() 136 r.activity = mActivityThread.startActivityNow( in moveToState() 137 mParent, r.id, r.intent, r.activityInfo, r, r.instanceState, instance); in moveToState() 138 if (r.activity == null) { in moveToState() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BroadcastQueue.java | 215 public void enqueueParallelBroadcastLocked(BroadcastRecord r) { in enqueueParallelBroadcastLocked() argument 216 mParallelBroadcasts.add(r); in enqueueParallelBroadcastLocked() 217 enqueueBroadcastHelper(r); in enqueueParallelBroadcastLocked() 220 public void enqueueOrderedBroadcastLocked(BroadcastRecord r) { in enqueueOrderedBroadcastLocked() argument 221 mOrderedBroadcasts.add(r); in enqueueOrderedBroadcastLocked() 222 enqueueBroadcastHelper(r); in enqueueOrderedBroadcastLocked() 229 private void enqueueBroadcastHelper(BroadcastRecord r) { in enqueueBroadcastHelper() argument 230 r.enqueueClockTime = System.currentTimeMillis(); in enqueueBroadcastHelper() 234 createBroadcastTraceTitle(r, BroadcastRecord.DELIVERY_PENDING), in enqueueBroadcastHelper() 235 System.identityHashCode(r)); in enqueueBroadcastHelper() [all …]
|
D | ActiveServices.java | 230 void ensureNotStartingBackgroundLocked(ServiceRecord r) { in ensureNotStartingBackgroundLocked() argument 231 if (mStartingBackground.remove(r)) { in ensureNotStartingBackgroundLocked() 233 "No longer background starting: " + r); in ensureNotStartingBackgroundLocked() 236 if (mDelayedStartList.remove(r)) { in ensureNotStartingBackgroundLocked() 237 if (DEBUG_DELAYED_STARTS) Slog.v(TAG_SERVICE, "No longer delaying start: " + r); in ensureNotStartingBackgroundLocked() 245 ServiceRecord r = mStartingBackground.get(i); in rescheduleDelayedStartsLocked() local 246 if (r.startingBgTimeout <= now) { in rescheduleDelayedStartsLocked() 247 Slog.i(TAG, "Waited long enough for: " + r); in rescheduleDelayedStartsLocked() 255 ServiceRecord r = mDelayedStartList.remove(0); in rescheduleDelayedStartsLocked() local 257 "REM FR DELAY LIST (exec next): " + r); in rescheduleDelayedStartsLocked() [all …]
|
D | ActivityStack.java | 392 ActivityRecord r = (ActivityRecord)msg.obj; in handleMessage() local 395 Slog.w(TAG, "Activity pause timeout for " + r); in handleMessage() 397 if (r.app != null) { in handleMessage() 398 mService.logAppTooSlow(r.app, r.pauseTime, "pausing " + r); in handleMessage() 400 activityPausedLocked(r.appToken, true); in handleMessage() 404 ActivityRecord r = (ActivityRecord)msg.obj; in handleMessage() local 406 if (r.continueLaunchTickingLocked()) { in handleMessage() 407 mService.logAppTooSlow(r.app, r.launchTickTime, "launching " + r); in handleMessage() 412 ActivityRecord r = (ActivityRecord)msg.obj; in handleMessage() local 415 Slog.w(TAG, "Activity destroy timeout for " + r); in handleMessage() [all …]
|
/frameworks/native/libs/ui/tests/ |
D | Region_test.cpp | 33 void verifyNoTJunctions(const Region& r) { in verifyNoTJunctions() argument 34 for (const Rect* current = r.begin(); current < r.end(); current++) { in verifyNoTJunctions() 35 for (const Rect* other = current - 1; other >= r.begin(); other--) { in verifyNoTJunctions() 40 for (const Rect* other = current + 1; other < r.end(); other++) { in verifyNoTJunctions() 59 Region r; in TEST_F() local 62 r.clear(); in TEST_F() 63 r.orSelf(Rect(1, 0, 2, 1)); in TEST_F() 64 r.orSelf(Rect(0, 1, 3, 2)); in TEST_F() 65 checkTJunctionFreeFromRegion(r, 4); in TEST_F() 70 r.clear(); in TEST_F() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
D | ProgressReporterTest.java | 22 private ProgressReporter r; field in ProgressReporterTest 27 r = new ProgressReporter(0); in setUp() 31 assertEquals(expected, r.getProgress()); in assertProgress() 35 final int[] range = r.getSegmentRange(); in assertRange() 43 r.setProgress(20); in testBasic() 46 r.setProgress(-20); in testBasic() 49 r.setProgress(1024); in testBasic() 54 r.setProgress(20); in testSegment() 57 final int[] lastRange = r.startSegment(40); in testSegment() 61 r.setProgress(50); in testSegment() [all …]
|
/frameworks/rs/driver/runtime/arch/ |
D | generic.c | 35 T##2 r; \ 36 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \ 37 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \ 38 return r; \ 42 T##3 r; \ 43 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \ 44 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \ 45 r.z = amount.z < low.z ? low.z : (amount.z > high.z ? high.z : amount.z); \ 46 return r; \ 50 T##4 r; \ [all …]
|
D | clamp.c | 47 T##2 r; \ 48 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \ 49 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \ 50 return r; \ 54 T##3 r; \ 55 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \ 56 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \ 57 r.z = amount.z < low.z ? low.z : (amount.z > high.z ? high.z : amount.z); \ 58 return r; \ 62 T##4 r; \ [all …]
|
/frameworks/base/libs/hwui/ |
D | Rect.h | 33 #define RECT_ARGS(r) \ argument 34 (r).left, (r).top, (r).right, (r).bottom 35 #define SK_RECT_ARGS(r) \ argument 36 (r).left(), (r).top(), (r).right(), (r).bottom() 119 inline void set(const Rect& r) { in set() argument 120 set(r.left, r.top, r.right, r.bottom); in set() 123 inline void set(const SkIRect& r) { in set() argument 124 set(r.left(), r.top(), r.right(), r.bottom()); in set() 135 bool intersects(float l, float t, float r, float b) const { in intersects() argument 138 float tempRight = std::min(right, r); in intersects() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | TelephonyRegistry.java | 242 for (Record r : mRecords) { 243 if(r.subId == SubscriptionManager.DEFAULT_SUBSCRIPTION_ID) { 244 checkPossibleMissNotify(r, newDefaultPhoneId); 385 Record r; in addOnSubscriptionsChangedListener() local 393 r = mRecords.get(i); in addOnSubscriptionsChangedListener() 394 if (b == r.binder) { in addOnSubscriptionsChangedListener() 398 r = new Record(); in addOnSubscriptionsChangedListener() 399 r.binder = b; in addOnSubscriptionsChangedListener() 400 mRecords.add(r); in addOnSubscriptionsChangedListener() 404 r.onSubscriptionsChangedListenerCallback = callback; in addOnSubscriptionsChangedListener() [all …]
|
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
D | threshold.rs | 59 for (int r = -radius; r <= radius; r ++) { 60 floatR = (float)r; 61 gaussian[r + radius] = coeff1 * pow(e, floatR * floatR * coeff2); 62 normalizeFactor += gaussian[r + radius]; 67 for (int r = -radius; r <= radius; r ++) { 68 floatR = (float)r; 69 gaussian[r + radius] *= normalizeFactor; 82 for (int r = -radius; r <= radius; r ++) { 83 float4 i = rsGetElementAt_float4(ScratchPixel2, x, y + r); 87 for (int r = -radius; r <= radius; r ++) { [all …]
|
D | threshold_half.rs | 59 for (int r = -radius; r <= radius; r ++) { 60 halfR = (half)r; 61 gaussian[r + radius] = coeff1 * pow(e, halfR * halfR * coeff2); 62 normalizeFactor += gaussian[r + radius]; 67 for (int r = -radius; r <= radius; r ++) { 68 halfR = (half)r; 69 gaussian[r + radius] *= normalizeFactor; 82 for (int r = -radius; r <= radius; r ++) { 83 half4 i = rsGetElementAt_half4(ScratchPixel2, x, y + r); 87 for (int r = -radius; r <= radius; r ++) { [all …]
|
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
D | threshold.rs | 59 for (int r = -radius; r <= radius; r ++) { 60 floatR = (float)r; 61 gaussian[r + radius] = coeff1 * pow(e, floatR * floatR * coeff2); 62 normalizeFactor += gaussian[r + radius]; 67 for (int r = -radius; r <= radius; r ++) { 68 floatR = (float)r; 69 gaussian[r + radius] *= normalizeFactor; 82 for (int r = -radius; r <= radius; r ++) { 83 float4 i = rsGetElementAt_float4(ScratchPixel2, x, y + r); 87 for (int r = -radius; r <= radius; r ++) { [all …]
|
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
D | threshold.rs | 59 for (int r = -radius; r <= radius; r ++) { 60 floatR = (float)r; 61 gaussian[r + radius] = coeff1 * pow(e, floatR * floatR * coeff2); 62 normalizeFactor += gaussian[r + radius]; 67 for (int r = -radius; r <= radius; r ++) { 68 floatR = (float)r; 69 gaussian[r + radius] *= normalizeFactor; 82 for (int r = -radius; r <= radius; r ++) { 83 float4 i = rsGetElementAt_float4(ScratchPixel2, x, y + r); 87 for (int r = -radius; r <= radius; r ++) { [all …]
|
/frameworks/base/services/tests/notification/src/com/android/server/notification/ |
D | SnoozeHelperTest.java | 71 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM); in testSnoozeForTime() local 72 mSnoozeHelper.snooze(r, 1000); in testSnoozeForTime() 79 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); in testSnoozeForTime() 84 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM); 85 mSnoozeHelper.snooze(r); 89 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); 94 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM); 96 mSnoozeHelper.snooze(r, 1000); 99 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); 103 mSnoozeHelper.cancel(UserHandle.USER_SYSTEM, r.sbn.getPackageName(), "one", 1); [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | RankingHelper.java | 141 public void extractSignals(NotificationRecord r) { in extractSignals() argument 146 RankingReconsideration recon = extractor.process(r); in extractSignals() 184 Record r = getOrCreateRecord(name, uid, in readXml() local 189 r.importance = safeInt(parser, ATT_IMPORTANCE, DEFAULT_IMPORTANCE); in readXml() 190 r.priority = safeInt(parser, ATT_PRIORITY, DEFAULT_PRIORITY); in readXml() 191 r.visibility = safeInt(parser, ATT_VISIBILITY, DEFAULT_VISIBILITY); in readXml() 192 r.showBadge = safeBool(parser, ATT_SHOW_BADGE, DEFAULT_SHOW_BADGE); in readXml() 210 r.groups.put(id, group); in readXml() 223 r.channels.put(id, channel); in readXml() 229 deleteDefaultChannelIfNeeded(r); in readXml() [all …]
|
/frameworks/rs/driver/runtime/ |
D | rs_cl.c | 27 float2 r; \ 28 r.x = fnc(v.x); \ 29 r.y = fnc(v.y); \ 30 return r; \ 33 float3 r; \ 34 r.x = fnc(v.x); \ 35 r.y = fnc(v.y); \ 36 r.z = fnc(v.z); \ 37 return r; \ 40 float4 r; \ [all …]
|
/frameworks/base/core/tests/coretests/src/android/database/ |
D | NewDatabasePerformanceTests.java | 117 int r = random.nextInt(100000); in setUp() local 119 "INSERT INTO t1 VALUES(" + i + "," + r + ",'" in setUp() 120 + numberName(r) + "')"; in setUp() 149 int r = random.nextInt(100000); in setUp() local 151 "INSERT INTO t1 VALUES(" + i + "," + r + ",'" in setUp() 152 + numberName(r) + "')"; in setUp() 186 int r = random.nextInt(100000); in setUp() local 187 mDatabase.execSQL("INSERT INTO t1 VALUES(" + i + "," + r + ",'" in setUp() 188 + numberName(r) + "')"); in setUp() 225 int r = random.nextInt(100000); in setUp() local [all …]
|
/frameworks/rs/tests/lldb/tests/testcases/ |
D | test_write_local_element.py | 92 ['2'], [r'\((signed )?char\)']) 98 ['3'], [r'\(u(nsigned )?char\)']) 108 ['55'], [r'\(u(nsigned )?short\)']) 118 ['777'], [r'\(u(nsigned )?int\)']) 129 [r'\((long )?long\)']) 135 [r'\(u(nsigned )?(long )?long\)']) 150 [r'\((signed )?char\)']) 153 [r'\((signed )?char\)']) 163 [r'\(u(nsigned )?char\)']) 166 [r'\(u(nsigned )?char\)']) [all …]
|
D | test_reduction.py | 146 r'Process \d+ stopped', 147 r'librs.reduce.so`find_min_user_type', 148 r'stop reason = breakpoint' 177 r'Process \d+ stopped', 178 r'librs.reduce.so`find_min_user_type_init', 179 r'stop reason = breakpoint', 193 r'Process \d+ resuming', 194 r'Process \d+ stopped', 195 r'librs.reduce.so`find_min_user_type_accum', 196 r'stop reason = breakpoint' [all …]
|
/frameworks/base/tests/testables/tests/src/android/testing/ |
D | TestableLooperTest.java | 51 Runnable r = mock(Runnable.class); in testMessageExecuted() local 52 h.post(r); in testMessageExecuted() 53 verify(r, never()).run(); in testMessageExecuted() 55 verify(r).run(); in testMessageExecuted() 62 Runnable r = mock(Runnable.class); in testMessageCallback() local 68 h.post(r); in testMessageCallback() 75 verify(r, never()).run(); in testMessageCallback() 81 Runnable r = mock(Runnable.class); in testProcessNumberOfMessages() local 82 h.post(r); in testProcessNumberOfMessages() 83 h.post(r); in testProcessNumberOfMessages() [all …]
|
/frameworks/base/libs/hwui/utils/ |
D | Blur.cpp | 81 for (int32_t r = -intRadius; r <= intRadius; r ++) { in generateGaussianWeights() local 82 float floatR = (float) r; in generateGaussianWeights() 83 weights[r + intRadius] = coeff1 * pow(e, floatR * floatR * coeff2); in generateGaussianWeights() 84 normalizeFactor += weights[r + intRadius]; in generateGaussianWeights() 89 for (int32_t r = -intRadius; r <= intRadius; r ++) { in generateGaussianWeights() local 90 weights[r + intRadius] *= normalizeFactor; in generateGaussianWeights() 110 for (int r = -radius; r <= radius; r ++) { in horizontal() local 117 for (int32_t r = -radius; r <= radius; r ++) { in horizontal() local 119 int validW = x + r; in horizontal() 153 for (int32_t r = -radius; r <= radius; r ++) { in vertical() local [all …]
|