/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 …]
|
D | ActivityThread.java | 608 ActivityClientRecord r = new ActivityClientRecord(); in scheduleLaunchActivity() local 610 r.token = token; in scheduleLaunchActivity() 611 r.ident = ident; in scheduleLaunchActivity() 612 r.intent = intent; in scheduleLaunchActivity() 613 r.activityInfo = info; in scheduleLaunchActivity() 614 r.compatInfo = compatInfo; in scheduleLaunchActivity() 615 r.state = state; in scheduleLaunchActivity() 617 r.pendingResults = pendingResults; in scheduleLaunchActivity() 618 r.pendingIntents = pendingNewIntents; in scheduleLaunchActivity() 620 r.startsNotResumed = notResumed; in scheduleLaunchActivity() [all …]
|
/frameworks/base/services/java/com/android/server/am/ |
D | BroadcastQueue.java | 176 public void enqueueParallelBroadcastLocked(BroadcastRecord r) { in enqueueParallelBroadcastLocked() argument 177 mParallelBroadcasts.add(r); in enqueueParallelBroadcastLocked() 180 public void enqueueOrderedBroadcastLocked(BroadcastRecord r) { in enqueueOrderedBroadcastLocked() argument 181 mOrderedBroadcasts.add(r); in enqueueOrderedBroadcastLocked() 184 public final boolean replaceParallelBroadcastLocked(BroadcastRecord r) { in replaceParallelBroadcastLocked() argument 186 if (r.intent.filterEquals(mParallelBroadcasts.get(i).intent)) { in replaceParallelBroadcastLocked() 189 + mQueueName + "]: " + r.intent); in replaceParallelBroadcastLocked() 190 mParallelBroadcasts.set(i, r); in replaceParallelBroadcastLocked() 197 public final boolean replaceOrderedBroadcastLocked(BroadcastRecord r) { in replaceOrderedBroadcastLocked() argument 199 if (r.intent.filterEquals(mOrderedBroadcasts.get(i).intent)) { in replaceOrderedBroadcastLocked() [all …]
|
D | ActiveServices.java | 237 ServiceRecord r = res.record; in startServiceLocked() local 239 callingUid, r.packageName, service, service.getFlags(), null); in startServiceLocked() 240 if (unscheduleServiceRestartLocked(r)) { in startServiceLocked() 241 if (DEBUG_SERVICE) Slog.v(TAG, "START SERVICE WHILE RESTART PENDING: " + r); in startServiceLocked() 243 r.startRequested = true; in startServiceLocked() 244 r.callStart = false; in startServiceLocked() 245 r.pendingStarts.add(new ServiceRecord.StartItem(r, false, r.makeNextStartId(), in startServiceLocked() 247 r.lastActivity = SystemClock.uptimeMillis(); in startServiceLocked() 248 synchronized (r.stats.getBatteryStats()) { in startServiceLocked() 249 r.stats.startRunningLocked(); in startServiceLocked() [all …]
|
D | ActivityStack.java | 343 ActivityRecord r = (ActivityRecord)msg.obj; in handleMessage() local 346 Slog.w(TAG, "Activity pause timeout for " + r); in handleMessage() 348 if (r.app != null) { in handleMessage() 349 mService.logAppTooSlow(r.app, r.pauseTime, in handleMessage() 350 "pausing " + r); in handleMessage() 354 activityPaused(r != null ? r.appToken : null, true); in handleMessage() 366 ActivityRecord r = (ActivityRecord)msg.obj; in handleMessage() local 367 Slog.w(TAG, "Activity idle timeout for " + r); in handleMessage() 368 activityIdleInternal(r != null ? r.appToken : null, true, null); in handleMessage() 371 ActivityRecord r = (ActivityRecord)msg.obj; in handleMessage() local [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/compile/libbcc/lib/Renderscript/runtime/arch/ |
D | x86_generic.c | 34 float2 r; in fmax() local 35 r.x = v1.x > v2.x ? v1.x : v2.x; in fmax() 36 r.y = v1.y > v2.y ? v1.y : v2.y; in fmax() 37 return r; in fmax() 41 float3 r; in fmax() local 42 r.x = v1.x > v2.x ? v1.x : v2.x; in fmax() 43 r.y = v1.y > v2.y ? v1.y : v2.y; in fmax() 44 r.z = v1.z > v2.z ? v1.z : v2.z; in fmax() 45 return r; in fmax() 49 float4 r; in fmax() local [all …]
|
D | generic.c | 35 float2 r; in clamp() local 36 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); in clamp() 37 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); in clamp() 38 return r; in clamp() 42 float3 r; in clamp() local 43 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); in clamp() 44 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); in clamp() 45 r.z = amount.z < low.z ? low.z : (amount.z > high.z ? high.z : amount.z); in clamp() 46 return r; in clamp() 50 float4 r; in clamp() local [all …]
|
D | sqrt.c | 22 float2 r; \ 23 r.x = fnc(v.x); \ 24 r.y = fnc(v.y); \ 25 return r; \ 28 float3 r; \ 29 r.x = fnc(v.x); \ 30 r.y = fnc(v.y); \ 31 r.z = fnc(v.z); \ 32 return r; \ 35 float4 r; \ [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/base/libs/hwui/ |
D | Rect.h | 94 inline void set(const Rect& r) { in set() argument 95 set(r.left, r.top, r.right, r.bottom); in set() 106 bool intersects(float l, float t, float r, float b) const { in intersects() argument 107 return !intersectWith(l, t, r, b).isEmpty(); in intersects() 110 bool intersects(const Rect& r) const { in intersects() argument 111 return intersects(r.left, r.top, r.right, r.bottom); in intersects() 114 bool intersect(float l, float t, float r, float b) { in intersect() argument 115 Rect tmp(l, t, r, b); in intersect() 124 bool intersect(const Rect& r) { in intersect() argument 125 return intersect(r.left, r.top, r.right, r.bottom); in intersect() [all …]
|
/frameworks/compile/libbcc/lib/Renderscript/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/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()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | BaseCommands.java | 109 Registrant r = new Registrant (h, what, obj); in registerForRadioStateChanged() local 112 mRadioStateChangedRegistrants.add(r); in registerForRadioStateChanged() 113 r.notifyRegistrant(); in registerForRadioStateChanged() 126 Registrant r = new Registrant (h, what, obj); in registerForOn() local 129 mOnRegistrants.add(r); in registerForOn() 132 r.notifyRegistrant(new AsyncResult(null, null, null)); in registerForOn() 146 Registrant r = new Registrant (h, what, obj); in registerForAvailable() local 149 mAvailRegistrants.add(r); in registerForAvailable() 152 r.notifyRegistrant(new AsyncResult(null, null, null)); in registerForAvailable() 166 Registrant r = new Registrant (h, what, obj); in registerForNotAvailable() local [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/android/util/ |
D | BridgeXmlPullAttributes.java | 86 ResourceValue r = getResourceValue(value); in getAttributeListValue() local 88 if (r != null) { in getAttributeListValue() 89 value = r.getValue(); in getAttributeListValue() 103 ResourceValue r = getResourceValue(value); in getAttributeBooleanValue() local 105 if (r != null) { in getAttributeBooleanValue() 106 value = r.getValue(); in getAttributeBooleanValue() 127 ResourceValue r = getResourceValue(value); in getAttributeIntValue() local 129 if (r != null) { in getAttributeIntValue() 130 value = r.getValue(); in getAttributeIntValue() 144 ResourceValue r = getResourceValue(value); in getAttributeUnsignedIntValue() local [all …]
|