Home
last modified time | relevance | path

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

12345678910>>...29

/frameworks/base/core/tests/coretests/src/android/net/
DRouteInfoTest.java41 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/
DBroadcaster.java35 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/
DLocalActivityManager.java111 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 …]
DActivityThread.java630 ActivityClientRecord r = new ActivityClientRecord(); in scheduleLaunchActivity() local
632 r.token = token; in scheduleLaunchActivity()
633 r.ident = ident; in scheduleLaunchActivity()
634 r.intent = intent; in scheduleLaunchActivity()
635 r.referrer = referrer; in scheduleLaunchActivity()
636 r.voiceInteractor = voiceInteractor; in scheduleLaunchActivity()
637 r.activityInfo = info; in scheduleLaunchActivity()
638 r.compatInfo = compatInfo; in scheduleLaunchActivity()
639 r.state = state; in scheduleLaunchActivity()
640 r.persistentState = persistentState; in scheduleLaunchActivity()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastQueue.java188 public void enqueueParallelBroadcastLocked(BroadcastRecord r) { in enqueueParallelBroadcastLocked() argument
189 mParallelBroadcasts.add(r); in enqueueParallelBroadcastLocked()
192 public void enqueueOrderedBroadcastLocked(BroadcastRecord r) { in enqueueOrderedBroadcastLocked() argument
193 mOrderedBroadcasts.add(r); in enqueueOrderedBroadcastLocked()
196 public final boolean replaceParallelBroadcastLocked(BroadcastRecord r) { in replaceParallelBroadcastLocked() argument
198 if (r.intent.filterEquals(mParallelBroadcasts.get(i).intent)) { in replaceParallelBroadcastLocked()
201 + mQueueName + "]: " + r.intent); in replaceParallelBroadcastLocked()
202 mParallelBroadcasts.set(i, r); in replaceParallelBroadcastLocked()
209 public final boolean replaceOrderedBroadcastLocked(BroadcastRecord r) { in replaceOrderedBroadcastLocked() argument
211 if (r.intent.filterEquals(mOrderedBroadcasts.get(i).intent)) { in replaceOrderedBroadcastLocked()
[all …]
DActiveServices.java207 void ensureNotStartingBackground(ServiceRecord r) { in ensureNotStartingBackground() argument
208 if (mStartingBackground.remove(r)) { in ensureNotStartingBackground()
209 if (DEBUG_DELAYED_STARTS) Slog.v(TAG, "No longer background starting: " + r); in ensureNotStartingBackground()
212 if (mDelayedStartList.remove(r)) { in ensureNotStartingBackground()
213 if (DEBUG_DELAYED_STARTS) Slog.v(TAG, "No longer delaying start: " + r); in ensureNotStartingBackground()
221 ServiceRecord r = mStartingBackground.get(i); in rescheduleDelayedStarts() local
222 if (r.startingBgTimeout <= now) { in rescheduleDelayedStarts()
223 Slog.i(TAG, "Waited long enough for: " + r); in rescheduleDelayedStarts()
231 ServiceRecord r = mDelayedStartList.remove(0); in rescheduleDelayedStarts() local
232 if (DEBUG_DELAYED_STARTS) Slog.v(TAG, "REM FR DELAY LIST (exec next): " + r); in rescheduleDelayedStarts()
[all …]
DActivityStack.java269 ActivityRecord r = (ActivityRecord)msg.obj; in handleMessage() local
272 Slog.w(TAG, "Activity pause timeout for " + r); in handleMessage()
274 if (r.app != null) { in handleMessage()
275 mService.logAppTooSlow(r.app, r.pauseTime, "pausing " + r); in handleMessage()
277 activityPausedLocked(r.appToken, true); in handleMessage()
281 ActivityRecord r = (ActivityRecord)msg.obj; in handleMessage() local
283 if (r.continueLaunchTickingLocked()) { in handleMessage()
284 mService.logAppTooSlow(r.app, r.launchTickTime, "launching " + r); in handleMessage()
289 ActivityRecord r = (ActivityRecord)msg.obj; in handleMessage() local
292 Slog.w(TAG, "Activity destroy timeout for " + r); in handleMessage()
[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/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 …]
Dclamp.c46 T##2 r; \
47 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \
48 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \
49 return r; \
53 T##3 r; \
54 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \
55 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \
56 r.z = amount.z < low.z ? low.z : (amount.z > high.z ? high.z : amount.z); \
57 return r; \
61 T##4 r; \
[all …]
/frameworks/base/libs/hwui/
DRect.h31 #define RECT_ARGS(r) \ argument
32 (r).left, (r).top, (r).right, (r).bottom
33 #define SK_RECT_ARGS(r) \ argument
34 (r).left(), (r).top(), (r).right(), (r).bottom()
110 inline void set(const Rect& r) { in set() argument
111 set(r.left, r.top, r.right, r.bottom); in set()
122 bool intersects(float l, float t, float r, float b) const { in intersects() argument
123 return !intersectWith(l, t, r, b).isEmpty(); in intersects()
126 bool intersects(const Rect& r) const { in intersects() argument
127 return intersects(r.left, r.top, r.right, r.bottom); in intersects()
[all …]
/frameworks/rs/driver/runtime/
Drs_cl.c26 float2 r; \
27 r.x = fnc(v.x); \
28 r.y = fnc(v.y); \
29 return r; \
32 float3 r; \
33 r.x = fnc(v.x); \
34 r.y = fnc(v.y); \
35 r.z = fnc(v.z); \
36 return r; \
39 float4 r; \
[all …]
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
Dthreshold.rs59 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/java/tests/ImageProcessing/src/com/android/rs/image/
Dthreshold.rs59 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 …]
DCrossProcess.java35 float r = f; in createTest() local
36 if (r < 0.5f) { in createTest()
37 r = 4.0f * r * r * r; in createTest()
39 r = 1.0f - r; in createTest()
40 r = 1.0f - (4.0f * r * r * r); in createTest()
42 mIntrinsic.setRed(ct, (int)(r * 255.f + 0.5f)); in createTest()
/frameworks/base/services/core/java/com/android/server/
DTelephonyRegistry.java228 for (Record r : mRecords) {
229 if(r.subId == SubscriptionManager.DEFAULT_SUBSCRIPTION_ID) {
230 checkPossibleMissNotify(r, newDefaultPhoneId);
353 Record r = null; in addOnSubscriptionsChangedListener() local
361 r = mRecords.get(i); in addOnSubscriptionsChangedListener()
362 if (b == r.binder) { in addOnSubscriptionsChangedListener()
366 r = new Record(); in addOnSubscriptionsChangedListener()
367 r.binder = b; in addOnSubscriptionsChangedListener()
368 mRecords.add(r); in addOnSubscriptionsChangedListener()
372 r.onSubscriptionsChangedListenerCallback = callback; in addOnSubscriptionsChangedListener()
[all …]
/frameworks/base/core/tests/coretests/src/android/provider/
DSettingsProviderTest.java42 ContentResolver r = getContext().getContentResolver(); in testNameValueCache() local
43 Settings.Secure.putString(r, "test_service", "Value"); in testNameValueCache()
44 assertEquals("Value", Settings.Secure.getString(r, "test_service")); in testNameValueCache()
47 Settings.Secure.putString(r, "test_service", "New"); in testNameValueCache()
48 assertEquals("New", Settings.Secure.getString(r, "test_service")); in testNameValueCache()
51 assertEquals(1, r.delete(Settings.Secure.getUriFor("test_service"), null, null)); in testNameValueCache()
52 assertEquals(null, Settings.Secure.getString(r, "test_service")); in testNameValueCache()
55 Settings.System.putString(r, "test_setting", "Value"); in testNameValueCache()
56 assertEquals("Value", Settings.System.getString(r, "test_setting")); in testNameValueCache()
58 Settings.System.putString(r, "test_setting", "New"); in testNameValueCache()
[all …]
/frameworks/base/core/tests/coretests/src/android/database/
DNewDatabasePerformanceTests.java117 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 …]
DDatabasePerformanceTests.java208 int r = random.nextInt(100000); in setUp() local
210 "INSERT INTO t1 VALUES(" + i + "," + r + ",'" in setUp()
211 + numberName(r) + "')"; in setUp()
241 int r = random.nextInt(100000); in setUp() local
243 "INSERT INTO t1 VALUES(" + i + "," + r + ",'" in setUp()
244 + numberName(r) + "')"; in setUp()
279 int r = random.nextInt(100000); in setUp() local
280 mDatabase.execSQL("INSERT INTO t1 VALUES(" + i + "," + r + ",'" in setUp()
281 + numberName(r) + "')"); in setUp()
319 int r = random.nextInt(100000); in setUp() local
[all …]
/frameworks/base/libs/hwui/utils/
DBlur.cpp81 for (int32_t r = -radius; r <= radius; r ++) { in generateGaussianWeights() local
82 float floatR = (float) r; in generateGaussianWeights()
83 weights[r + radius] = coeff1 * pow(e, floatR * floatR * coeff2); in generateGaussianWeights()
84 normalizeFactor += weights[r + radius]; in generateGaussianWeights()
89 for (int32_t r = -radius; r <= radius; r ++) { in generateGaussianWeights() local
90 weights[r + radius] *= 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 …]
/frameworks/base/graphics/java/android/graphics/
DRegion.java69 public Region(Rect r) { in Region() argument
71 nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom); in Region()
96 public boolean set(Rect r) { in set() argument
97 return nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom); in set()
136 Rect r = new Rect(); in getBounds() local
137 nativeGetBounds(mNativeRegion, r); in getBounds()
138 return r; in getBounds()
145 public boolean getBounds(Rect r) { in getBounds() argument
146 if (r == null) { in getBounds()
149 return nativeGetBounds(mNativeRegion, r); in getBounds()
[all …]
/frameworks/native/include/ui/
DTMatHelpers.h122 for (size_t r=0 ; r<MATRIX_R::row_size() ; r++) { in multiply() local
123 res[r] = lhs * rhs[r]; in multiply()
134 for (size_t r=0 ; r<MATRIX::row_size() ; r++) in transpose() local
136 result[c][r] = transpose(m[r][c]); in transpose()
145 for (size_t r=0 ; r<MATRIX::row_size() ; r++) in trace() local
146 result += trace(m[r][r]); in trace()
155 for (size_t r=0 ; r<MATRIX::row_size() ; r++) in diag() local
156 result[r] = m[r][r]; in diag()
165 for (size_t r=0 ; r<MATRIX::row_size() ; r++) { in asString() local
166 s.appendFormat("%7.2f ", m[r][c]); in asString()
[all …]
Dmat4.h206 for (size_t r=0 ; r<row_size() ; r++) in tmat44() local
207 mValue[r] = rhs[r]; in tmat44()
222 for (size_t r=0 ; r<row_size() ; r++) in tmat44() local
224 mValue[r][c] = *rawArray++; in tmat44()
277 tmat44<T> r; in translate() local
278 r[3] = t; in translate()
279 return r; in translate()
285 tmat44<T> r; in scale() local
286 r[0][0] = s[0]; in scale()
287 r[1][1] = s[1]; in scale()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DConditionProviders.java109 final ConditionRecord r = mRecords.get(i); in dump() local
110 if (filter != null && !filter.matches(r.component)) continue; in dump()
111 pw.print(" "); pw.println(r); in dump()
112 final String countdownDesc = CountdownConditionProvider.tryParseDescription(r.id); in dump()
186 final ConditionRecord r = mRecords.get(i); in onServiceAdded() local
187 if (!r.component.equals(info.component)) continue; in onServiceAdded()
188 r.info = info; in onServiceAdded()
190 if (r.isAutomatic || r.isManual) { in onServiceAdded()
191 subscribeLocked(r); in onServiceAdded()
201 final ConditionRecord r = mRecords.get(i); in onServiceRemovedLocked() local
[all …]
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
DCrossProcess.java32 float r = f; in createTest() local
33 if (r < 0.5f) { in createTest()
34 r = 4.0f * r * r * r; in createTest()
36 r = 1.0f - r; in createTest()
37 r = 1.0f - (4.0f * r * r * r); in createTest()
39 mIntrinsic.setRed(ct, (int)(r * 255.f + 0.5f)); in createTest()

12345678910>>...29