Home
last modified time | relevance | path

Searched refs:r (Results 1 – 25 of 1071) sorted by relevance

12345678910>>...43

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskPositionerTests.java119 final Rect r = new Rect(100, 220, 700, 520); in testBasicFreeWindowResizing() local
120 final int midY = (r.top + r.bottom) / 2; in testBasicFreeWindowResizing()
121 mPositioner.mTask.setBounds(r, true); in testBasicFreeWindowResizing()
125 false /* preserveOrientation */, r.left - MOUSE_DELTA_X, r.top - MOUSE_DELTA_Y); in testBasicFreeWindowResizing()
126 assertBoundsEquals(r, mPositioner.getWindowDragBounds()); in testBasicFreeWindowResizing()
130 assertBoundsEquals(new Rect(MOUSE_DELTA_X, MOUSE_DELTA_Y, r.right, r.bottom), in testBasicFreeWindowResizing()
135 assertBoundsEquals(new Rect(400 + MOUSE_DELTA_X, MOUSE_DELTA_Y, r.right, r.bottom), in testBasicFreeWindowResizing()
139 mPositioner.resizeDrag(2000.0f, r.top); in testBasicFreeWindowResizing()
141 new Rect(r.right - mMinVisibleWidth, r.top + MOUSE_DELTA_Y, r.right, r.bottom), in testBasicFreeWindowResizing()
145 mPositioner.resizeDrag(r.left, 2000.0f); in testBasicFreeWindowResizing()
[all …]
/frameworks/base/tests/net/common/java/android/net/
DRouteInfoTest.java74 RouteInfo r; in testConstructor() local
77 r = new RouteInfo((IpPrefix) null, null, "rmnet0"); in testConstructor()
82 r = new RouteInfo(Prefix("2001:db8:ace::/49"), Address("2001:db8::1"), "rmnet0", in testConstructor()
88 r = new RouteInfo(Prefix("2001:db8:ace::/49"), Address("192.0.2.1"), "rmnet0", in testConstructor()
94 r = new RouteInfo(Prefix("0.0.0.0/0"), Address("2001:db8::1"), "rmnet0", in testConstructor()
100 r = new RouteInfo((IpPrefix) null, Address("2001:db8::1"), null); in testConstructor()
101 assertEquals(Prefix("::/0"), r.getDestination()); in testConstructor()
102 assertEquals(Address("2001:db8::1"), r.getGateway()); in testConstructor()
103 assertNull(r.getInterface()); in testConstructor()
105 r = new RouteInfo((IpPrefix) null, Address("192.0.2.1"), "wlan0"); in testConstructor()
[all …]
/frameworks/base/core/java/android/os/
DBroadcaster.java39 Registration r = null; in request() local
41 r = new Registration(); in request()
42 r.senderWhat = senderWhat; in request()
43 r.targets = new Handler[1]; in request()
44 r.targetWhats = new int[1]; in request()
45 r.targets[0] = target; in request()
46 r.targetWhats[0] = targetWhat; in request()
47 mReg = r; in request()
48 r.next = r; in request()
49 r.prev = r; in request()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastQueue.java240 public void enqueueParallelBroadcastLocked(BroadcastRecord r) { in enqueueParallelBroadcastLocked() argument
241 mParallelBroadcasts.add(r); in enqueueParallelBroadcastLocked()
242 enqueueBroadcastHelper(r); in enqueueParallelBroadcastLocked()
245 public void enqueueOrderedBroadcastLocked(BroadcastRecord r) { in enqueueOrderedBroadcastLocked() argument
246 mDispatcher.enqueueOrderedBroadcastLocked(r); in enqueueOrderedBroadcastLocked()
247 enqueueBroadcastHelper(r); in enqueueOrderedBroadcastLocked()
254 private void enqueueBroadcastHelper(BroadcastRecord r) { in enqueueBroadcastHelper() argument
255 r.enqueueClockTime = System.currentTimeMillis(); in enqueueBroadcastHelper()
259 createBroadcastTraceTitle(r, BroadcastRecord.DELIVERY_PENDING), in enqueueBroadcastHelper()
260 System.identityHashCode(r)); in enqueueBroadcastHelper()
[all …]
DActiveServices.java206 final ServiceRecord r = smap.mServicesByInstanceName.valueAt(i); in stopAllForegroundServicesLocked() local
207 if (uid == r.serviceInfo.applicationInfo.uid in stopAllForegroundServicesLocked()
208 || packageName.equals(r.serviceInfo.packageName)) { in stopAllForegroundServicesLocked()
209 if (r.isForeground) { in stopAllForegroundServicesLocked()
210 toStop.add(r); in stopAllForegroundServicesLocked()
222 final ServiceRecord r = toStop.get(i); in stopAllForegroundServicesLocked() local
224 Slog.i(TAG, " Stopping fg for service " + r); in stopAllForegroundServicesLocked()
226 setServiceForegroundInnerLocked(r, 0, null, 0, 0); in stopAllForegroundServicesLocked()
302 void ensureNotStartingBackgroundLocked(ServiceRecord r) { in ensureNotStartingBackgroundLocked() argument
303 if (mStartingBackground.remove(r)) { in ensureNotStartingBackgroundLocked()
[all …]
/frameworks/base/core/java/android/app/
DLocalActivityManager.java121 private void moveToState(LocalActivityRecord r, int desiredState) { in moveToState() argument
122 if (r.curState == RESTORED || r.curState == DESTROYED) { in moveToState()
127 if (r.curState == INITIALIZING) { in moveToState()
133 instanceObj = lastNonConfigurationInstances.get(r.id); in moveToState()
142 if (localLOGV) Log.v(TAG, r.id + ": starting " + r.intent); in moveToState()
143 if (r.activityInfo == null) { in moveToState()
144 r.activityInfo = mActivityThread.resolveActivityInfo(r.intent); in moveToState()
146 r.activity = mActivityThread.startActivityNow( in moveToState()
147 mParent, r.id, r.intent, r.activityInfo, r, r.instanceState, instance, r); in moveToState()
148 if (r.activity == null) { in moveToState()
[all …]
/frameworks/base/core/tests/mockingcoretests/src/android/app/activity/
DActivityThreadClientTest.java79 ActivityClientRecord r = clientSession.stubActivityRecord(); in testWindowVisibilityChange_OnCreate() local
81 clientSession.launchActivity(r); in testWindowVisibilityChange_OnCreate()
82 assertEquals(ON_CREATE, r.getLifecycleState()); in testWindowVisibilityChange_OnCreate()
84 clientSession.changeVisibility(r, true); in testWindowVisibilityChange_OnCreate()
85 assertEquals(ON_CREATE, r.getLifecycleState()); in testWindowVisibilityChange_OnCreate()
87 clientSession.changeVisibility(r, false); in testWindowVisibilityChange_OnCreate()
88 assertEquals(ON_CREATE, r.getLifecycleState()); in testWindowVisibilityChange_OnCreate()
96 ActivityClientRecord r = clientSession.stubActivityRecord(); in testWindowVisibilityChange_OnCreate_Finished() local
98 Activity activity = clientSession.launchActivity(r); in testWindowVisibilityChange_OnCreate_Finished()
100 assertEquals(ON_CREATE, r.getLifecycleState()); in testWindowVisibilityChange_OnCreate_Finished()
[all …]
/frameworks/native/libs/ui/tests/
DRegion_test.cpp33 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/services/tests/uiservicestests/src/com/android/server/notification/
DBuzzBeepBlinkTest.java332 NotificationRecord r = new NotificationRecord(context, sbn, channel); in getNotificationRecord() local
333 mService.addNotification(r); in getNotificationRecord()
334 return r; in getNotificationRecord()
412 NotificationRecord r = getLightsNotification(); in testLights() local
413 r.setSystemImportance(NotificationManager.IMPORTANCE_DEFAULT); in testLights()
415 mService.buzzBeepBlinkLocked(r); in testLights()
418 assertTrue(r.isInterruptive()); in testLights()
419 assertEquals(-1, r.getLastAudiblyAlertedMs()); in testLights()
424 NotificationRecord r = getBeepyNotification(); in testBeep() local
426 mService.buzzBeepBlinkLocked(r); in testBeep()
[all …]
DSnoozeHelperTest.java73 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM); in testSnoozeForTime() local
74 mSnoozeHelper.snooze(r, 1000); in testSnoozeForTime()
81 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); in testSnoozeForTime()
86 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM);
87 mSnoozeHelper.snooze(r);
91 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey()));
96 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM);
98 mSnoozeHelper.snooze(r, 1000);
101 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey()));
105 mSnoozeHelper.cancel(UserHandle.USER_SYSTEM, r.sbn.getPackageName(), "one", 1);
[all …]
DZenModeFilteringTest.java81 NotificationRecord r = getNotificationRecord(); in testIsMessage() local
84 assertTrue(mZenModeFiltering.isMessage(r)); in testIsMessage()
87 assertFalse(mZenModeFiltering.isMessage(r)); in testIsMessage()
96 NotificationRecord r = getNotificationRecord(c); in testIsAlarm() local
97 assertTrue(mZenModeFiltering.isAlarm(r)); in testIsAlarm()
99 r = getNotificationRecord(); in testIsAlarm()
100 r.sbn.getNotification().category = Notification.CATEGORY_ALARM; in testIsAlarm()
101 assertTrue(mZenModeFiltering.isAlarm(r)); in testIsAlarm()
106 NotificationRecord r = getNotificationRecord(); in testIsAlarm_wrongCategory() local
107 r.sbn.getNotification().category = Notification.CATEGORY_CALL; in testIsAlarm_wrongCategory()
[all …]
DBadgeExtractorTest.java78 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in getNotificationRecord() local
79 return r; in getNotificationRecord()
93 NotificationRecord r = getNotificationRecord(false, IMPORTANCE_UNSPECIFIED); in testAppYesChannelNo() local
95 extractor.process(r); in testAppYesChannelNo()
97 assertFalse(r.canShowBadge()); in testAppYesChannelNo()
107 NotificationRecord r = getNotificationRecord(true, IMPORTANCE_HIGH); in testAppNoChannelYes() local
109 extractor.process(r); in testAppNoChannelYes()
111 assertFalse(r.canShowBadge()); in testAppNoChannelYes()
121 NotificationRecord r = getNotificationRecord(true, IMPORTANCE_UNSPECIFIED); in testAppYesChannelYes() local
123 extractor.process(r); in testAppYesChannelYes()
[all …]
/frameworks/rs/driver/runtime/arch/
Dgeneric.c35 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 …]
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DProgressReporterTest.java22 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/base/libs/hwui/
DRect.h33 #define RECT_ARGS(r) (r).left, (r).top, (r).right, (r).bottom argument
34 #define SK_RECT_ARGS(r) (r).left(), (r).top(), (r).right(), (r).bottom() argument
95 inline void set(const Rect& r) { set(r.left, r.top, r.right, r.bottom); } in set() argument
97 inline void set(const SkIRect& r) { set(r.left(), r.top(), r.right(), r.bottom()); } in set() argument
103 bool intersects(float l, float t, float r, float b) const { in intersects() argument
106 float tempRight = std::min(right, r); in intersects()
112 bool intersects(const Rect& r) const { return intersects(r.left, r.top, r.right, r.bottom); } in intersects() argument
119 void doIntersect(float l, float t, float r, float b) { in doIntersect() argument
122 right = std::min(right, r); in doIntersect()
126 void doIntersect(const Rect& r) { doIntersect(r.left, r.top, r.right, r.bottom); } in doIntersect() argument
[all …]
/frameworks/base/services/core/java/com/android/server/
DTelephonyRegistry.java374 for (Record r : mRecords) {
375 if(r.subId == SubscriptionManager.DEFAULT_SUBSCRIPTION_ID) {
376 checkPossibleMissNotify(r, newDefaultPhoneId);
642 Record r = add(b, Binder.getCallingUid(), Binder.getCallingPid(), false); in addOnSubscriptionsChangedListener() local
644 if (r == null) { in addOnSubscriptionsChangedListener()
648 r.context = mContext; in addOnSubscriptionsChangedListener()
649 r.onSubscriptionsChangedListenerCallback = callback; in addOnSubscriptionsChangedListener()
650 r.callingPackage = callingPackage; in addOnSubscriptionsChangedListener()
651 r.callingFeatureId = callingFeatureId; in addOnSubscriptionsChangedListener()
652 r.callerUid = Binder.getCallingUid(); in addOnSubscriptionsChangedListener()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DActivityStack.java446 ActivityRecord r = (ActivityRecord)msg.obj; in handleMessage() local
449 Slog.w(TAG, "Activity pause timeout for " + r); in handleMessage()
451 if (r.hasProcess()) { in handleMessage()
452 mService.logAppTooSlow(r.app, r.pauseTime, "pausing " + r); in handleMessage()
454 activityPausedLocked(r.appToken, true); in handleMessage()
458 ActivityRecord r = (ActivityRecord)msg.obj; in handleMessage() local
460 if (r.continueLaunchTickingLocked()) { in handleMessage()
461 mService.logAppTooSlow(r.app, r.launchTickTime, "launching " + r); in handleMessage()
466 ActivityRecord r = (ActivityRecord)msg.obj; in handleMessage() local
469 Slog.w(TAG, "Activity destroy timeout for " + r); in handleMessage()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DViewGroupTest.java78 final Region r = new Region(); in testSubtractObscuredTouchableRegion() local
80 getUnobscuredTouchableRegion(r, viewA); in testSubtractObscuredTouchableRegion()
81 assertRegionContainPoint(1 /* x */, r, true /* contain */); in testSubtractObscuredTouchableRegion()
82 assertRegionContainPoint(3 /* x */, r, true /* contain */); in testSubtractObscuredTouchableRegion()
83 assertRegionContainPoint(5 /* x */, r, true /* contain */); in testSubtractObscuredTouchableRegion()
84 assertRegionContainPoint(7 /* x */, r, true /* contain */); in testSubtractObscuredTouchableRegion()
85 assertRegionContainPoint(9 /* x */, r, false /* contain */); // Outside of bounds in testSubtractObscuredTouchableRegion()
87 getUnobscuredTouchableRegion(r, viewB); in testSubtractObscuredTouchableRegion()
88 assertRegionContainPoint(1 /* x */, r, false /* contain */); // Obscured by E in testSubtractObscuredTouchableRegion()
89 assertRegionContainPoint(3 /* x */, r, true /* contain */); in testSubtractObscuredTouchableRegion()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DPreferencesHelper.java187 PackagePreferences r = getOrCreatePackagePreferencesLocked(name, uid, in readXml() local
198 r.importance = XmlUtils.readIntAttribute( in readXml()
200 r.priority = XmlUtils.readIntAttribute( in readXml()
202 r.visibility = XmlUtils.readIntAttribute( in readXml()
204 r.showBadge = XmlUtils.readBooleanAttribute( in readXml()
206 r.lockedAppFields = XmlUtils.readIntAttribute(parser, in readXml()
227 r.groups.put(id, group); in readXml()
232 if (r.channels.size() >= NOTIFICATION_CHANNEL_COUNT_LIMIT) { in readXml()
234 Slog.w(TAG, "Skipping further channels for " + r.pkg in readXml()
253 r.defaultAppLockedImportance); in readXml()
[all …]
/frameworks/rs/driver/runtime/
Drs_cl.c27 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/provider/
DSettingsProviderTest.java51 ContentResolver r = getContext().getContentResolver(); in testNameValueCache() local
52 Settings.Secure.putString(r, "test_service", "Value"); in testNameValueCache()
53 assertEquals("Value", Settings.Secure.getString(r, "test_service")); in testNameValueCache()
56 Settings.Secure.putString(r, "test_service", "New"); in testNameValueCache()
57 assertEquals("New", Settings.Secure.getString(r, "test_service")); in testNameValueCache()
60 assertEquals(1, r.delete(Settings.Secure.getUriFor("test_service"), null, null)); in testNameValueCache()
61 assertEquals(null, Settings.Secure.getString(r, "test_service")); in testNameValueCache()
65 Settings.System.putString(r, "test_setting", "Value"); in testNameValueCache()
111 ContentResolver r = getContext().getContentResolver(); in testRowNameContentUri() local
117 r.insert(table, v); in testRowNameContentUri()
[all …]
/frameworks/rs/tests/lldb/tests/testcases/
Dtest_write_local_element.py92 ['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 …]
Dtest_reduction.py146 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/minikin/include/minikin/
DMinikinRect.h37 void set(const MinikinRect& r) { in set()
38 mLeft = r.mLeft; in set()
39 mTop = r.mTop; in set()
40 mRight = r.mRight; in set()
41 mBottom = r.mBottom; in set()
50 void join(const MinikinRect& r) { in join()
52 set(r); in join()
53 } else if (!r.isEmpty()) { in join()
54 mLeft = std::min(mLeft, r.mLeft); in join()
55 mTop = std::min(mTop, r.mTop); in join()
[all …]
/frameworks/base/tests/testables/tests/src/android/testing/
DTestableLooperTest.java54 Runnable r = mock(Runnable.class); in testMessageExecuted() local
55 h.post(r); in testMessageExecuted()
56 verify(r, never()).run(); in testMessageExecuted()
58 verify(r).run(); in testMessageExecuted()
65 Runnable r = mock(Runnable.class); in testMessageCallback() local
71 h.post(r); in testMessageCallback()
78 verify(r, never()).run(); in testMessageCallback()
84 Runnable r = mock(Runnable.class); in testProcessNumberOfMessages() local
85 h.post(r); in testProcessNumberOfMessages()
86 h.post(r); in testProcessNumberOfMessages()
[all …]

12345678910>>...43