Home
last modified time | relevance | path

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

1234

/development/vndk/tools/definition-tool/tests/
Dtest_elf_resolver.py26 r = self.resolver
30 list(r.get_candidates('/system/lib/libreq.so', 'libx.so')))
34 list(r.get_candidates('/system/lib/libreq.so', 'libx.so', ['/C'])))
39 list(r.get_candidates('/system/lib/libreq.so', 'libx.so',
44 list(r.get_candidates('/system/lib/libreq.so', 'libx.so', None,
50 list(r.get_candidates('/system/lib/libreq.so', 'libx.so', None,
56 list(r.get_candidates('/system/lib/libreq.so', 'libx.so',
64 list(r.get_candidates(
71 r = self.resolver
72 self.assertEqual('a', r.resolve('/system/lib/libreq.so', 'liba.so'))
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DRoundRects.java64 float r = 16; in onDraw() local
69 setCornerRadii(mDrawable, r, r, 0, 0); in onDraw()
76 setCornerRadii(mDrawable, 0, 0, r, r); in onDraw()
85 setCornerRadii(mDrawable, 0, r, r, 0); in onDraw()
92 setCornerRadii(mDrawable, r, 0, 0, r); in onDraw()
101 setCornerRadii(mDrawable, r, 0, r, 0); in onDraw()
108 setCornerRadii(mDrawable, 0, r, 0, r); in onDraw()
DBitmapPixels.java53 private static int pack8888(int r, int g, int b, int a) { in pack8888() argument
54 return (r << 0) | ( g << 8) | (b << 16) | (a << 24); in pack8888()
57 private static short pack565(int r, int g, int b) { in pack565() argument
58 return (short)((r << 11) | ( g << 5) | (b << 0)); in pack565()
61 private static short pack4444(int r, int g, int b, int a) { in pack4444() argument
62 return (short)((a << 0) | ( b << 4) | (g << 8) | (r << 12)); in pack4444()
74 int r = Color.red(c); in premultiplyColor() local
79 r = mul255(r, a); in premultiplyColor()
83 return pack8888(r, g, b, a); in premultiplyColor()
89 int r = getR32(from) << 23; in makeRamp() local
[all …]
DRegions.java74 Rect r = new Rect(); in drawRgn() local
78 while (iter.next(r)) { in drawRgn()
79 canvas.drawRect(r, mPaint); in drawRgn()
84 private static void drawCentered(Canvas c, Rect r, Paint p) { in drawCentered() argument
89 c.drawRect(r.left + inset, r.top + inset, in drawCentered()
90 r.right - inset, r.bottom - inset, p); in drawCentered()
DColorFilters.java49 Rect r = prev.getBounds(); in addToTheRight() local
50 int x = r.right + 12; in addToTheRight()
51 int center = (r.top + r.bottom) >> 1; in addToTheRight()
128 Rect r = mDrawable.getBounds(); in drawSample() local
129 float x = (r.left + r.right) * 0.5f; in drawSample()
130 float y = (r.top + r.bottom) * 0.5f - mPaintTextOffset; in drawSample()
DColorPickerDialog.java65 float r = CENTER_X - mPaint.getStrokeWidth()*0.5f; in onDraw() local
69 canvas.drawOval(new RectF(-r, -r, r, r), mPaint); in onDraw()
132 int r = ave(Color.red(c0), Color.red(c1), p); in interpColor() local
136 return Color.argb(a, r, g, b); in interpColor()
141 int r = Color.red(color); in rotateColor() local
156 int ir = floatToByte(a[0] * r + a[1] * g + a[2] * b); in rotateColor()
157 int ig = floatToByte(a[5] * r + a[6] * g + a[7] * b); in rotateColor()
158 int ib = floatToByte(a[10] * r + a[11] * g + a[12] * b); in rotateColor()
DShadowCardDrag.java157 float r = 10 * mDensity; in onCreate() local
158 float radii[] = new float[] {r, r, r, r, r, r, r, r}; in onCreate()
DPurgeableBitmapView.java71 int r = x * 255 / (WIDTH - 1); in createColors() local
73 int b = 255 - Math.min(r, g); in createColors()
74 int a = Math.max(r, g); in createColors()
75 colors[y * STRIDE + x] = (a << 24) | (r << 16) | (g << 8) | b; in createColors()
DMeasureText.java40 int r = x * 255 / (WIDTH - 1); in createColors() local
42 int b = 255 - Math.min(r, g); in createColors()
43 int a = Math.max(r, g); in createColors()
44 colors[y * STRIDE + x] = (a << 24) | (r << 16) | (g << 8) | b; in createColors()
DCreateBitmap.java42 int r = x * 255 / (WIDTH - 1); in createColors() local
44 int b = 255 - Math.min(r, g); in createColors()
45 int a = Math.max(r, g); in createColors()
46 colors[y * STRIDE + x] = (a << 24) | (r << 16) | (g << 8) | b; in createColors()
/development/samples/RenderScript/Levels/src/com/android/rs/levels/
DLevelsDalvikActivity.java184 float r = (float)(mInPixels[i] & 0xff); in filter() local
188 float tr = r * m[0] + g * m[3] + b * m[6]; in filter()
189 float tg = r * m[1] + g * m[4] + b * m[7]; in filter()
190 float tb = r * m[2] + g * m[5] + b * m[8]; in filter()
191 r = tr; in filter()
195 if (r < 0.f) r = 0.f; in filter()
196 if (r > 255.f) r = 255.f; in filter()
202 r = (r - mInBlack) * mOverInWMinInB; in filter()
207 r = (float)java.lang.Math.pow(r, mGamma); in filter()
212 r = (r * mOutWMinOutB) + mOutBlack; in filter()
[all …]
/development/samples/browseable/HdrViewfinder/src/rs/
Dhdr_merge.rscript32 curPixel.r = rsGetElementAtYuv_uchar_Y(gCurrentFrame, x, y);
43 mergedPixel.r = curPixel.r / 2 + prevPixel.r / 2;
65 rgb.r = mergedPixel.r +
67 rgb.g = mergedPixel.r -
70 rgb.b = mergedPixel.r +
/development/tools/logblame/
Dtest_logs.py159 ", ".join([str(r) for r in expected]),
160 ", ".join([str(r) for r in result])))
/development/testrunner/
Dam_instrument_parser.py43 re_status_code = re.compile(r'INSTRUMENTATION_STATUS_CODE: (?P<status_code>-?\d)$')
83 re_result = re.compile(r'INSTRUMENTATION_RESULT: ([^=]+)=(.*)$')
84 re_code = re.compile(r'INSTRUMENTATION_CODE: (\-?\d)$')
140 re_status_code = re.search(r'INSTRUMENTATION_STATUS_CODE: '
142 re_fields = re.compile(r'INSTRUMENTATION_STATUS: '
/development/tools/winscope/src/
Dtransform_transaction.js55 var r = transform({
63 return r;
Dtransform_sf.js138 var transformed_roots = roots.map((r) =>
139 transform_layer(r, {parentBounds: {left: 0, right: 0, top: 0, bottom: 0},
157 rects_transform (r) { argument
185 var r = transform({
194 return r;
Dtransform_wm.js24 var r = rect || {};
26 left: r.left || 0,
27 right: r.right || 0,
28 top: r.top || 0,
29 bottom: r.bottom || 0,
Dtransform_wl.js96 var r = transform({
105 return r;
/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/
DCandidateView.java83 Resources r = context.getResources(); in CandidateView() local
85 setBackgroundColor(r.getColor(R.color.candidate_background)); in CandidateView()
87 mColorNormal = r.getColor(R.color.candidate_normal); in CandidateView()
88 mColorRecommended = r.getColor(R.color.candidate_recommended); in CandidateView()
89 mColorOther = r.getColor(R.color.candidate_other); in CandidateView()
90 mVerticalPadding = r.getDimensionPixelSize(R.dimen.candidate_vertical_padding); in CandidateView()
95 mPaint.setTextSize(r.getDimensionPixelSize(R.dimen.candidate_font_height)); in CandidateView()
/development/vndk/tools/sourcedr/ninja/
Dninja.py314 _COMMENT_MATCHER = re.compile(r'[ \t]*(?:#[^\n]*)?(?=\n)')
328 _SPACE_MATCHER = re.compile(r'[ \t]+')
337 (TK.COMMENT, r'#[^\n]*'),
338 (TK.NEWLINE, r'[\r\n]'),
339 (TK.SPACE, r'[ \t]+'),
340 (TK.ESC_NEWLINE, r'\$[\r\n]'),
341 (TK.IDENT, r'[\w_.-]+'),
342 (TK.PIPE2, r'\|\|'),
343 (TK.PIPE, r'\|'),
344 (TK.COLON, r':'),
[all …]
/development/samples/WeatherListWidget/src/com/example/android/weatherlistwidget/
DWeatherWidgetProvider.java93 final ContentResolver r = context.getContentResolver(); in onEnabled() local
98 r.registerContentObserver(WeatherDataProvider.CONTENT_URI, true, sDataObserver); in onEnabled()
115 final ContentResolver r = context.getContentResolver(); in onReceive()
116 final Cursor c = r.query(WeatherDataProvider.CONTENT_URI, null, null, null, in onReceive()
122 r.unregisterContentObserver(sDataObserver); in onReceive()
128 r.update(uri, values, null, null); in onReceive()
130 r.registerContentObserver(WeatherDataProvider.CONTENT_URI, true, sDataObserver); in onReceive()
/development/samples/ApiDemos/src/com/example/android/apis/media/projection/
DMediaProjectionDemo.java175 Resolution r = (Resolution) parent.getItemAtPosition(pos); in onItemSelected() local
179 mDisplayHeight = r.y; in onItemSelected()
180 mDisplayWidth = r.x; in onItemSelected()
182 mDisplayHeight = r.x; in onItemSelected()
183 mDisplayWidth = r.y; in onItemSelected()
/development/apps/DumpViewer/
DREADME.md16 adb install -r -g DumpViewer.apk
19 adb install -r -g ${ANDROID_PRODUCT_OUT}/data/app/DumpViewer/DumpViewer.apk
/development/samples/ApiDemos/src/com/example/android/apis/animation/
DFixedGridLayout.java75 protected void onLayout(boolean changed, int l, int t, int r, int b) { in onLayout() argument
78 int columns = (r - l) / cellWidth; in onLayout()
/development/samples/TtsEngine/assets/
Deng-GBR.freq9 r:320

1234