/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskPositionerTests.java | 121 final Rect r = new Rect(left, top, left + windowSize, top + windowSize); in testMoveWindow() local 122 mPositioner.mTask.setBounds(r); in testMoveWindow() 127 r.offset(-MOUSE_DELTA_X, -MOUSE_DELTA_Y); in testMoveWindow() 128 assertBoundsEquals(r, mPositioner.getWindowDragBounds()); in testMoveWindow() 132 r.offset(MOUSE_DELTA_X, MOUSE_DELTA_Y); in testMoveWindow() 133 assertBoundsEquals(r, mPositioner.getWindowDragBounds()); in testMoveWindow() 142 final Rect r = new Rect(100, 220, 700, 520); in testBasicFreeWindowResizing() local 143 final int midY = (r.top + r.bottom) / 2; in testBasicFreeWindowResizing() 144 mPositioner.mTask.setBounds(r, true); in testBasicFreeWindowResizing() 148 r.left - MOUSE_DELTA_X, r.top - MOUSE_DELTA_Y); in testBasicFreeWindowResizing() [all …]
|
/frameworks/base/tests/net/common/java/android/net/ |
D | RouteInfoTest.java | 74 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/ |
D | Broadcaster.java | 39 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/core/java/android/app/ |
D | LocalActivityManager.java | 134 private void moveToState(LocalActivityRecord r, int desiredState) { in moveToState() argument 135 if (r.curState == RESTORED || r.curState == DESTROYED) { in moveToState() 140 if (r.curState == INITIALIZING) { in moveToState() 146 instanceObj = lastNonConfigurationInstances.get(r.id); in moveToState() 155 if (localLOGV) Log.v(TAG, r.id + ": starting " + r.intent); in moveToState() 156 if (r.activityInfo == null) { in moveToState() 157 r.activityInfo = mActivityThread.resolveActivityInfo(r.intent); in moveToState() 159 r.activity = mActivityThread.startActivityNow( in moveToState() 160 mParent, r.id, r.intent, r.activityInfo, r, r.instanceState, instance, r); in moveToState() 161 if (r.activity == null) { in moveToState() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BroadcastQueue.java | 226 public void enqueueParallelBroadcastLocked(BroadcastRecord r) { in enqueueParallelBroadcastLocked() argument 227 mParallelBroadcasts.add(r); in enqueueParallelBroadcastLocked() 228 enqueueBroadcastHelper(r); in enqueueParallelBroadcastLocked() 231 public void enqueueOrderedBroadcastLocked(BroadcastRecord r) { in enqueueOrderedBroadcastLocked() argument 232 mDispatcher.enqueueOrderedBroadcastLocked(r); in enqueueOrderedBroadcastLocked() 233 enqueueBroadcastHelper(r); in enqueueOrderedBroadcastLocked() 240 private void enqueueBroadcastHelper(BroadcastRecord r) { in enqueueBroadcastHelper() argument 241 r.enqueueClockTime = System.currentTimeMillis(); in enqueueBroadcastHelper() 245 createBroadcastTraceTitle(r, BroadcastRecord.DELIVERY_PENDING), in enqueueBroadcastHelper() 246 System.identityHashCode(r)); in enqueueBroadcastHelper() [all …]
|
D | ActiveServices.java | 232 final ServiceRecord r = smap.mServicesByInstanceName.valueAt(i); in stopAllForegroundServicesLocked() local 233 if (uid == r.serviceInfo.applicationInfo.uid in stopAllForegroundServicesLocked() 234 || packageName.equals(r.serviceInfo.packageName)) { in stopAllForegroundServicesLocked() 235 if (r.isForeground) { in stopAllForegroundServicesLocked() 236 toStop.add(r); in stopAllForegroundServicesLocked() 248 final ServiceRecord r = toStop.get(i); in stopAllForegroundServicesLocked() local 250 Slog.i(TAG, " Stopping fg for service " + r); in stopAllForegroundServicesLocked() 252 setServiceForegroundInnerLocked(r, 0, null, 0, 0); in stopAllForegroundServicesLocked() 328 void ensureNotStartingBackgroundLocked(ServiceRecord r) { in ensureNotStartingBackgroundLocked() argument 329 if (mStartingBackground.remove(r)) { in ensureNotStartingBackgroundLocked() [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/services/tests/uiservicestests/src/com/android/server/notification/ |
D | BubbleExtractorTest.java | 131 NotificationRecord r = new NotificationRecord(getContext(), sbn, mChannel); in getNotificationRecord() local 132 r.setShortcutInfo(mShortcutInfo); in getNotificationRecord() 133 return r; in getNotificationRecord() 173 NotificationRecord r = getNotificationRecord(true /* bubble */); in testAppYesChannelNo() local 174 mBubbleExtractor.process(r); in testAppYesChannelNo() 176 assertFalse(r.canBubble()); in testAppYesChannelNo() 177 assertFalse(r.getNotification().isBubbleNotification()); in testAppYesChannelNo() 187 NotificationRecord r = getNotificationRecord(true /* bubble */); in testAppYesChannelDefault() local 189 mBubbleExtractor.process(r); in testAppYesChannelDefault() 191 assertTrue(r.canBubble()); in testAppYesChannelDefault() [all …]
|
D | BuzzBeepBlinkTest.java | 274 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in getCallRecord() local 275 mService.addNotification(r); in getCallRecord() 277 return r; in getCallRecord() 371 NotificationRecord r = new NotificationRecord(context, sbn, mChannel); in getNotificationRecord() local 372 mService.addNotification(r); in getNotificationRecord() 373 return r; in getNotificationRecord() 454 NotificationRecord r = getLightsNotification(); in testLights() local 455 r.setSystemImportance(NotificationManager.IMPORTANCE_DEFAULT); in testLights() 457 mService.buzzBeepBlinkLocked(r); in testLights() 460 assertTrue(r.isInterruptive()); in testLights() [all …]
|
D | ZenModeFilteringTest.java | 90 NotificationRecord r = mock(NotificationRecord.class); in getConversationRecord() local 91 when(r.getCriticality()).thenReturn(CriticalNotificationExtractor.NORMAL); in getConversationRecord() 92 when(r.getSbn()).thenReturn(sbn); in getConversationRecord() 93 when(r.getChannel()).thenReturn(c); in getConversationRecord() 94 when(r.isConversation()).thenReturn(true); in getConversationRecord() 95 return r; in getConversationRecord() 100 NotificationRecord r = getNotificationRecord(); in testIsMessage() local 103 assertTrue(mZenModeFiltering.isMessage(r)); in testIsMessage() 106 assertFalse(mZenModeFiltering.isMessage(r)); in testIsMessage() 115 NotificationRecord r = getNotificationRecord(c); in testIsAlarm() local [all …]
|
D | SnoozeHelperTest.java | 152 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM); in testReadValidSnoozedFromCorrectly_timeDeadline() local 153 mSnoozeHelper.snooze(r, 999999999); in testReadValidSnoozedFromCorrectly_timeDeadline() 168 0, "pkg", r.getKey()).doubleValue()); in testReadValidSnoozedFromCorrectly_timeDeadline() 175 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM); in testReadExpiredSnoozedNotification() local 176 mSnoozeHelper.snooze(r, 0); in testReadExpiredSnoozedNotification() 193 systemUser, "pkg", r.getKey()).longValue()); in testReadExpiredSnoozedNotification() 198 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM); in testCleanupContextShouldRemovePersistedRecord() local 199 mSnoozeHelper.snooze(r, "context"); in testCleanupContextShouldRemovePersistedRecord() 200 mSnoozeHelper.cleanupPersistedContext(r.getSbn().getKey()); in testCleanupContextShouldRemovePersistedRecord() 202 r.getUser().getIdentifier(), in testCleanupContextShouldRemovePersistedRecord() [all …]
|
D | BadgeExtractorTest.java | 82 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in getNotificationRecord() local 83 return r; in getNotificationRecord() 113 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in getNotificationRecordWithBubble() local 114 return r; in getNotificationRecordWithBubble() 138 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in getNotificationRecordWithMedia() local 139 return r; in getNotificationRecordWithMedia() 153 NotificationRecord r = getNotificationRecord(false, IMPORTANCE_UNSPECIFIED); in testAppYesChannelNo() local 155 extractor.process(r); in testAppYesChannelNo() 157 assertFalse(r.canShowBadge()); in testAppYesChannelNo() 167 NotificationRecord r = getNotificationRecord(true, IMPORTANCE_HIGH); in testAppNoChannelYes() local [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 …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | EnsureActivitiesVisibleHelper.java | 108 private void setActivityVisibilityState(ActivityRecord r, ActivityRecord starting, in setActivityVisibilityState() argument 110 final boolean isTop = r == mTop; in setActivityVisibilityState() 116 final boolean reallyVisible = r.shouldBeVisible( in setActivityVisibilityState() 120 if (r.visibleIgnoringKeyguard) { in setActivityVisibilityState() 121 if (r.occludesParent()) { in setActivityVisibilityState() 123 if (DEBUG_VISIBILITY) Slog.v(TAG_VISIBILITY, "Fullscreen: at " + r in setActivityVisibilityState() 133 if (r.finishing) { in setActivityVisibilityState() 136 if (DEBUG_VISIBILITY) Slog.v(TAG_VISIBILITY, "Make visible? " + r in setActivityVisibilityState() 137 + " finishing=" + r.finishing + " state=" + r.getState()); in setActivityVisibilityState() 140 if (r != mStarting && mNotifyClients) { in setActivityVisibilityState() [all …]
|
/frameworks/base/libs/hwui/ |
D | Rect.h | 33 #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/ |
D | TelephonyRegistry.java | 378 for (Record r : mRecords) { 379 if(r.subId == SubscriptionManager.DEFAULT_SUBSCRIPTION_ID) { 380 checkPossibleMissNotify(r, newDefaultPhoneId); 646 Record r = add(b, Binder.getCallingUid(), Binder.getCallingPid(), false); in addOnSubscriptionsChangedListener() local 648 if (r == null) { in addOnSubscriptionsChangedListener() 652 r.context = mContext; in addOnSubscriptionsChangedListener() 653 r.onSubscriptionsChangedListenerCallback = callback; in addOnSubscriptionsChangedListener() 654 r.callingPackage = callingPackage; in addOnSubscriptionsChangedListener() 655 r.callingFeatureId = callingFeatureId; in addOnSubscriptionsChangedListener() 656 r.callerUid = Binder.getCallingUid(); in addOnSubscriptionsChangedListener() [all …]
|
/frameworks/base/core/tests/mockingcoretests/src/android/app/activity/ |
D | ActivityThreadClientTest.java | 84 ActivityClientRecord r = clientSession.stubActivityRecord(); in testLifecycleAfterFinished_OnCreate() local 86 Activity activity = clientSession.launchActivity(r); in testLifecycleAfterFinished_OnCreate() 88 assertEquals(ON_CREATE, r.getLifecycleState()); in testLifecycleAfterFinished_OnCreate() 90 clientSession.startActivity(r); in testLifecycleAfterFinished_OnCreate() 91 assertEquals(ON_CREATE, r.getLifecycleState()); in testLifecycleAfterFinished_OnCreate() 93 clientSession.resumeActivity(r); in testLifecycleAfterFinished_OnCreate() 94 assertEquals(ON_CREATE, r.getLifecycleState()); in testLifecycleAfterFinished_OnCreate() 96 clientSession.pauseActivity(r); in testLifecycleAfterFinished_OnCreate() 97 assertEquals(ON_CREATE, r.getLifecycleState()); in testLifecycleAfterFinished_OnCreate() 99 clientSession.stopActivity(r); in testLifecycleAfterFinished_OnCreate() [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | PreferencesHelper.java | 244 PackagePreferences r = getOrCreatePackagePreferencesLocked( in readXml() local 255 r.importance = XmlUtils.readIntAttribute( in readXml() 257 r.priority = XmlUtils.readIntAttribute( in readXml() 259 r.visibility = XmlUtils.readIntAttribute( in readXml() 261 r.showBadge = XmlUtils.readBooleanAttribute( in readXml() 263 r.lockedAppFields = XmlUtils.readIntAttribute(parser, in readXml() 265 r.hasSentInvalidMessage = XmlUtils.readBooleanAttribute( in readXml() 267 r.hasSentValidMessage = XmlUtils.readBooleanAttribute( in readXml() 269 r.userDemotedMsgApp = XmlUtils.readBooleanAttribute( in readXml() 290 r.groups.put(id, group); in readXml() [all …]
|
D | NotificationRecordLoggerImpl.java | 33 public void maybeLogNotificationPosted(NotificationRecord r, NotificationRecord old, in maybeLogNotificationPosted() argument 36 NotificationRecordPair p = new NotificationRecordPair(r, old); in maybeLogNotificationPosted() 42 /* int32 uid = 2 */ r.getUid(), in maybeLogNotificationPosted() 43 /* string package_name = 3 */ r.getSbn().getPackageName(), in maybeLogNotificationPosted() 49 /* bool is_group_summary = 9 */ r.getSbn().getNotification().isGroupSummary(), in maybeLogNotificationPosted() 50 /* string category = 10 */ r.getSbn().getNotification().category, in maybeLogNotificationPosted() 55 NotificationRecordLogger.getLoggingImportance(r), in maybeLogNotificationPosted() 58 r.getImportanceExplanationCode(), in maybeLogNotificationPosted() 60 r.getInitialImportance(), in maybeLogNotificationPosted() 62 r.getInitialImportanceExplanationCode(), in maybeLogNotificationPosted() [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/provider/ |
D | SettingsProviderTest.java | 51 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/ |
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/minikin/include/minikin/ |
D | MinikinRect.h | 37 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 …]
|