/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/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/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 | ActivityStack.java | 326 ActivityRecord r = (ActivityRecord)msg.obj; 329 Slog.w(TAG, "Activity pause timeout for " + r); 331 if (r.app != null) { 332 mService.logAppTooSlow(r.app, r.pauseTime, 333 "pausing " + r); 337 activityPaused(r != null ? r.appToken : null, true); 349 ActivityRecord r = (ActivityRecord)msg.obj; 350 Slog.w(TAG, "Activity idle timeout for " + r); 351 activityIdleInternal(r != null ? r.appToken : null, true, null); 354 ActivityRecord r = (ActivityRecord)msg.obj; [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 …]
|
/frameworks/compile/libbcc/lib/Renderscript/runtime/arch/ |
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 …]
|
/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 | 11 float2 r; \ 12 r.x = fnc(v.x); \ 13 r.y = fnc(v.y); \ 14 return r; \ 17 float3 r; \ 18 r.x = fnc(v.x); \ 19 r.y = fnc(v.y); \ 20 r.z = fnc(v.z); \ 21 return r; \ 24 float4 r; \ [all …]
|
/frameworks/base/tests/RenderScriptTests/ImageProcessing2/src/com/android/rs/image/ |
D | threshold.rs | 45 for (int r = -radius; r <= radius; r ++) { 46 floatR = (float)r; 47 gaussian[r + radius] = coeff1 * pow(e, floatR * floatR * coeff2); 48 normalizeFactor += gaussian[r + radius]; 53 for (int r = -radius; r <= radius; r ++) { 54 floatR = (float)r; 55 gaussian[r + radius] *= normalizeFactor; 67 for (int r = -radius; r <= radius; r ++) { 68 const float4 *i = (const float4 *)rsGetElementAt(ScratchPixel2, x, y + r); 73 for (int r = -radius; r <= radius; r ++) { [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/compile/libbcc/runtime/test/Unit/ |
D | divtc3_test.c | 54 long double _Complex r = __divtc3(a, b, c, d); in test__divtc3() local 72 if (classify(r) != NaN) in test__divtc3() 76 if (classify(r) != zero) in test__divtc3() 80 if (classify(r) != zero) in test__divtc3() 84 if (classify(r) != NaN) in test__divtc3() 88 if (classify(r) != NaN) in test__divtc3() 97 if (classify(r) != inf) in test__divtc3() 101 if (classify(r) != non_zero) in test__divtc3() 106 if (cabs((r - z)/r) > 1.e-6) in test__divtc3() 111 if (classify(r) != zero) in test__divtc3() [all …]
|
D | divxc3_test.c | 54 long double _Complex r = __divxc3(a, b, c, d); in test__divxc3() local 71 if (classify(r) != NaN) in test__divxc3() 75 if (classify(r) != zero) in test__divxc3() 79 if (classify(r) != zero) in test__divxc3() 83 if (classify(r) != NaN) in test__divxc3() 87 if (classify(r) != NaN) in test__divxc3() 96 if (classify(r) != inf) in test__divxc3() 100 if (classify(r) != non_zero) in test__divxc3() 105 if (cabs((r - z)/r) > 1.e-6) in test__divxc3() 110 if (classify(r) != zero) in test__divxc3() [all …]
|
D | mulsc3_test.c | 51 float _Complex r = __mulsc3(a, b, c, d); in test__mulsc3() local 68 if (classify(r) != zero) in test__mulsc3() 72 if (classify(r) != zero) in test__mulsc3() 76 if (classify(r) != NaN) in test__mulsc3() 80 if (classify(r) != NaN) in test__mulsc3() 84 if (classify(r) != NaN) in test__mulsc3() 93 if (classify(r) != zero) in test__mulsc3() 97 if (classify(r) != non_zero) in test__mulsc3() 102 if (cabsf((r-z)/r) > 1.e-6) in test__mulsc3() 107 if (classify(r) != inf) in test__mulsc3() [all …]
|
D | divdc3_test.c | 51 double _Complex r = __divdc3(a, b, c, d); in test__divdc3() local 68 if (classify(r) != NaN) in test__divdc3() 72 if (classify(r) != zero) in test__divdc3() 76 if (classify(r) != zero) in test__divdc3() 80 if (classify(r) != NaN) in test__divdc3() 84 if (classify(r) != NaN) in test__divdc3() 93 if (classify(r) != inf) in test__divdc3() 97 if (classify(r) != non_zero) in test__divdc3() 102 if (cabs((r-z)/r) > 1.e-6) in test__divdc3() 107 if (classify(r) != zero) in test__divdc3() [all …]
|
D | muldc3_test.c | 51 double _Complex r = __muldc3(a, b, c, d); in test__muldc3() local 68 if (classify(r) != zero) in test__muldc3() 72 if (classify(r) != zero) in test__muldc3() 76 if (classify(r) != NaN) in test__muldc3() 80 if (classify(r) != NaN) in test__muldc3() 84 if (classify(r) != NaN) in test__muldc3() 93 if (classify(r) != zero) in test__muldc3() 97 if (classify(r) != non_zero) in test__muldc3() 99 if (r != a * c - b * d + _Complex_I*(a * d + b * c)) in test__muldc3() 103 if (classify(r) != inf) in test__muldc3() [all …]
|
D | multc3_test.c | 54 long double _Complex r = __multc3(a, b, c, d); in test__multc3() local 71 if (classify(r) != zero) in test__multc3() 75 if (classify(r) != zero) in test__multc3() 79 if (classify(r) != NaN) in test__multc3() 83 if (classify(r) != NaN) in test__multc3() 87 if (classify(r) != NaN) in test__multc3() 96 if (classify(r) != zero) in test__multc3() 100 if (classify(r) != non_zero) in test__multc3() 102 if (r != a * c - b * d + _Complex_I*(a * d + b * c)) in test__multc3() 106 if (classify(r) != inf) in test__multc3() [all …]
|
D | mulxc3_test.c | 54 long double _Complex r = __mulxc3(a, b, c, d); in test__mulxc3() local 71 if (classify(r) != zero) in test__mulxc3() 75 if (classify(r) != zero) in test__mulxc3() 79 if (classify(r) != NaN) in test__mulxc3() 83 if (classify(r) != NaN) in test__mulxc3() 87 if (classify(r) != NaN) in test__mulxc3() 96 if (classify(r) != zero) in test__mulxc3() 100 if (classify(r) != non_zero) in test__mulxc3() 102 if (r != a * c - b * d + _Complex_I*(a * d + b * c)) in test__mulxc3() 106 if (classify(r) != inf) in test__mulxc3() [all …]
|
D | divsc3_test.c | 51 float _Complex r = __divsc3(a, b, c, d); in test__divsc3() local 68 if (classify(r) != NaN) in test__divsc3() 72 if (classify(r) != zero) in test__divsc3() 76 if (classify(r) != zero) in test__divsc3() 80 if (classify(r) != NaN) in test__divsc3() 84 if (classify(r) != NaN) in test__divsc3() 93 if (classify(r) != inf) in test__divsc3() 97 if (classify(r) != non_zero) in test__divsc3() 102 if (r != z) in test__divsc3() 107 if (classify(r) != zero) in test__divsc3() [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 | 62 public Region(Rect r) { in Region() argument 64 nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom); in Region() 88 public boolean set(Rect r) { in set() argument 89 return nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom); in set() 128 Rect r = new Rect(); in getBounds() local 129 nativeGetBounds(mNativeRegion, r); in getBounds() 130 return r; in getBounds() 137 public boolean getBounds(Rect r) { in getBounds() argument 138 if (r == null) { in getBounds() 141 return nativeGetBounds(mNativeRegion, r); in getBounds() [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/compile/libbcc/runtime/lib/ |
D | muldi3.c | 23 dwords r; in __muldsi3() local 26 r.s.low = (a & lower_mask) * (b & lower_mask); in __muldsi3() 27 su_int t = r.s.low >> bits_in_word_2; in __muldsi3() 28 r.s.low &= lower_mask; in __muldsi3() 30 r.s.low += (t & lower_mask) << bits_in_word_2; in __muldsi3() 31 r.s.high = t >> bits_in_word_2; in __muldsi3() 32 t = r.s.low >> bits_in_word_2; in __muldsi3() 33 r.s.low &= lower_mask; in __muldsi3() 35 r.s.low += (t & lower_mask) << bits_in_word_2; in __muldsi3() 36 r.s.high += t >> bits_in_word_2; in __muldsi3() [all …]
|
D | multi3.c | 25 twords r; in __mulddi3() local 28 r.s.low = (a & lower_mask) * (b & lower_mask); in __mulddi3() 29 du_int t = r.s.low >> bits_in_dword_2; in __mulddi3() 30 r.s.low &= lower_mask; in __mulddi3() 32 r.s.low += (t & lower_mask) << bits_in_dword_2; in __mulddi3() 33 r.s.high = t >> bits_in_dword_2; in __mulddi3() 34 t = r.s.low >> bits_in_dword_2; in __mulddi3() 35 r.s.low &= lower_mask; in __mulddi3() 37 r.s.low += (t & lower_mask) << bits_in_dword_2; in __mulddi3() 38 r.s.high += t >> bits_in_dword_2; in __mulddi3() [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 …]
|