/frameworks/base/services/java/com/android/server/am/ |
D | BroadcastQueue.java | 179 public void enqueueParallelBroadcastLocked(BroadcastRecord r) { in enqueueParallelBroadcastLocked() argument 180 mParallelBroadcasts.add(r); in enqueueParallelBroadcastLocked() 183 public void enqueueOrderedBroadcastLocked(BroadcastRecord r) { in enqueueOrderedBroadcastLocked() argument 184 mOrderedBroadcasts.add(r); in enqueueOrderedBroadcastLocked() 187 public final boolean replaceParallelBroadcastLocked(BroadcastRecord r) { in replaceParallelBroadcastLocked() argument 189 if (r.intent.filterEquals(mParallelBroadcasts.get(i).intent)) { in replaceParallelBroadcastLocked() 192 + mQueueName + "]: " + r.intent); in replaceParallelBroadcastLocked() 193 mParallelBroadcasts.set(i, r); in replaceParallelBroadcastLocked() 200 public final boolean replaceOrderedBroadcastLocked(BroadcastRecord r) { in replaceOrderedBroadcastLocked() argument 202 if (r.intent.filterEquals(mOrderedBroadcasts.get(i).intent)) { in replaceOrderedBroadcastLocked() [all …]
|
D | ActiveServices.java | 187 void ensureNotStartingBackground(ServiceRecord r) { in ensureNotStartingBackground() argument 188 if (mStartingBackground.remove(r)) { in ensureNotStartingBackground() 189 if (DEBUG_DELAYED_STARTS) Slog.v(TAG, "No longer background starting: " + r); in ensureNotStartingBackground() 192 if (mDelayedStartList.remove(r)) { in ensureNotStartingBackground() 193 if (DEBUG_DELAYED_STARTS) Slog.v(TAG, "No longer delaying start: " + r); in ensureNotStartingBackground() 201 ServiceRecord r = mStartingBackground.get(i); in rescheduleDelayedStarts() local 202 if (r.startingBgTimeout <= now) { in rescheduleDelayedStarts() 203 Slog.i(TAG, "Waited long enough for: " + r); in rescheduleDelayedStarts() 210 ServiceRecord r = mDelayedStartList.remove(0); in rescheduleDelayedStarts() local 211 if (DEBUG_DELAYED_STARTS) Slog.v(TAG, "REM FR DELAY LIST (exec next): " + r); in rescheduleDelayedStarts() [all …]
|
D | ActivityStack.java | 268 ActivityRecord r = (ActivityRecord)msg.obj; in handleMessage() local 271 Slog.w(TAG, "Activity pause timeout for " + r); in handleMessage() 273 if (r.app != null) { in handleMessage() 274 mService.logAppTooSlow(r.app, r.pauseTime, "pausing " + r); in handleMessage() 276 activityPausedLocked(r.appToken, true); in handleMessage() 280 ActivityRecord r = (ActivityRecord)msg.obj; in handleMessage() local 282 if (r.continueLaunchTickingLocked()) { in handleMessage() 283 mService.logAppTooSlow(r.app, r.launchTickTime, "launching " + r); in handleMessage() 288 ActivityRecord r = (ActivityRecord)msg.obj; in handleMessage() local 291 Slog.w(TAG, "Activity destroy timeout for " + r); in handleMessage() [all …]
|
D | ActivityStackSupervisor.java | 290 ActivityRecord r = mHomeStack.topRunningActivityLocked(null); in resumeHomeActivity() local 291 if (r != null && r.isHomeActivity()) { in resumeHomeActivity() 292 mService.setFocusedActivityLocked(r); in resumeHomeActivity() 316 final ActivityRecord r = mStacks.get(stackNdx).isInStackLocked(token); in isInAnyStackLocked() local 317 if (r != null) { in isInAnyStackLocked() 318 return r; in isInAnyStackLocked() 337 final ActivityRecord r = stack.mResumedActivity; in removeTask() local 338 if (r != null && r.task == task) { in removeTask() 420 final ActivityRecord r = stack.mResumedActivity; in allResumedActivitiesComplete() local 421 if (r != null && r.state != ActivityState.RESUMED) { in allResumedActivitiesComplete() [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 | 110 private void moveToState(LocalActivityRecord r, int desiredState) { in moveToState() argument 111 if (r.curState == RESTORED || r.curState == DESTROYED) { in moveToState() 116 if (r.curState == INITIALIZING) { in moveToState() 122 instanceObj = lastNonConfigurationInstances.get(r.id); in moveToState() 131 if (localLOGV) Log.v(TAG, r.id + ": starting " + r.intent); in moveToState() 132 if (r.activityInfo == null) { in moveToState() 133 r.activityInfo = mActivityThread.resolveActivityInfo(r.intent); in moveToState() 135 r.activity = mActivityThread.startActivityNow( in moveToState() 136 mParent, r.id, r.intent, r.activityInfo, r, r.instanceState, instance); in moveToState() 137 if (r.activity == null) { in moveToState() [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/android/net/ |
D | RouteInfoTest.java | 42 RouteInfo r; in testConstructor() local 46 r = new RouteInfo(null, null, "rmnet0"); in testConstructor() 51 r = new RouteInfo(null, Address("2001:db8::1"), null); in testConstructor() 52 assertEquals(Prefix("::/0"), r.getDestination()); in testConstructor() 53 assertEquals(Address("2001:db8::1"), r.getGateway()); in testConstructor() 54 assertNull(r.getInterface()); in testConstructor() 56 r = new RouteInfo(null, Address("192.0.2.1"), "wlan0"); in testConstructor() 57 assertEquals(Prefix("0.0.0.0/0"), r.getDestination()); in testConstructor() 58 assertEquals(Address("192.0.2.1"), r.getGateway()); in testConstructor() 59 assertEquals("wlan0", r.getInterface()); in testConstructor() [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 | 41 T##2 r; \ 42 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \ 43 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \ 44 return r; \ 48 T##3 r; \ 49 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \ 50 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \ 51 r.z = amount.z < low.z ? low.z : (amount.z > high.z ? high.z : amount.z); \ 52 return r; \ 56 T##4 r; \ [all …]
|
/frameworks/base/libs/hwui/ |
D | Rect.h | 30 #define RECT_ARGS(r) \ argument 31 (r).left, (r).top, (r).right, (r).bottom 100 inline void set(const Rect& r) { in set() argument 101 set(r.left, r.top, r.right, r.bottom); in set() 112 bool intersects(float l, float t, float r, float b) const { in intersects() argument 113 return !intersectWith(l, t, r, b).isEmpty(); in intersects() 116 bool intersects(const Rect& r) const { in intersects() argument 117 return intersects(r.left, r.top, r.right, r.bottom); in intersects() 120 bool intersect(float l, float t, float r, float b) { in intersect() argument 121 Rect tmp(l, t, r, b); in intersect() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | RationalTest.java | 34 Rational r = new Rational(1, 2); in testConstructor() local 35 assertEquals(1, r.getNumerator()); in testConstructor() 36 assertEquals(2, r.getDenominator()); in testConstructor() 39 r = new Rational(-1, 2); in testConstructor() 40 assertEquals(-1, r.getNumerator()); in testConstructor() 41 assertEquals(2, r.getDenominator()); in testConstructor() 44 r = new Rational(1, -2); in testConstructor() 45 assertEquals(-1, r.getNumerator()); in testConstructor() 46 assertEquals(2, r.getDenominator()); in testConstructor() 49 r = new Rational(-1, -2); in testConstructor() [all …]
|
/frameworks/rs/driver/runtime/ |
D | rs_cl.c | 26 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/base/libs/hwui/utils/ |
D | Blur.cpp | 50 for (int32_t r = -radius; r <= radius; r ++) { in generateGaussianWeights() local 51 float floatR = (float) r; in generateGaussianWeights() 52 weights[r + radius] = coeff1 * pow(e, floatR * floatR * coeff2); in generateGaussianWeights() 53 normalizeFactor += weights[r + radius]; in generateGaussianWeights() 58 for (int32_t r = -radius; r <= radius; r ++) { in generateGaussianWeights() local 59 weights[r + radius] *= normalizeFactor; in generateGaussianWeights() 79 for (int r = -radius; r <= radius; r ++) { in horizontal() local 86 for (int32_t r = -radius; r <= radius; r ++) { in horizontal() local 88 int validW = x + r; in horizontal() 122 for (int32_t r = -radius; r <= radius; r ++) { in vertical() local [all …]
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
D | SettingsProviderTest.java | 42 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/services/java/com/android/server/ |
D | TelephonyRegistry.java | 205 Record r = null; in listen() local 210 r = mRecords.get(i); in listen() 211 if (b == r.binder) { in listen() 215 r = new Record(); in listen() 216 r.binder = b; in listen() 217 r.callback = callback; in listen() 218 r.pkgForDebug = pkgForDebug; in listen() 219 r.callerUid = callerUid; in listen() 220 mRecords.add(r); in listen() 221 if (DBG) Slog.i(TAG, "listen: add new record=" + r); in listen() [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 …]
|
D | DatabasePerformanceTests.java | 208 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/graphics/java/android/graphics/ |
D | Region.java | 69 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/av/libvideoeditor/vss/common/inc/ |
D | M4VIFI_Defines.h | 33 #define Y16(r, g, b) CLIP( ( ( (80593 * r)+(77855 * g)+(30728 * b)) >> 15)) argument 34 #define U16(r, g, b) CLIP(128+ ( ( -(45483 * r)-(43936 * g)+(134771 * b)) >> 15 )) argument 35 #define V16(r, g, b) CLIP(128+ ( ( (134771 * r)-(55532 * g)-(21917 * b)) >> 15 )) argument 81 #define GET_RGB565(r, g, b, data) {b = ((data) & 31); g =\ argument 82 ((data >> 5) & 63); r = ((data >> 11) & 31);} 83 #define GET_BGR565(b, g, r, data) \ argument 84 r = ((data) & 31); \ 92 #define GET_RGB565(r, g, b, data) { b = (M4VIFI_UInt8)(((data) & 0x1F00) >> 8); g =\ argument 93 (M4VIFI_UInt8)((((data) & 0x7) << 3) | (((data) & 0xE000) >> 13)); r =\ 95 #define GET_BGR565(b, g, r, data) \ argument [all …]
|
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/ |
D | CrossProcess.java | 32 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()
|
/frameworks/native/include/ui/ |
D | TMatHelpers.h | 122 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 …]
|
D | mat4.h | 206 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/rs/java/tests/ImageProcessing/src/com/android/rs/image/ |
D | CrossProcess.java | 35 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/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/ |
D | CrossProcess.java | 35 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()
|