/development/ndk/platforms/android-3/include/linux/ |
D | rbtree.h | 32 #define rb_parent(r) ((struct rb_node *)((r)->rb_parent_color & ~3)) argument 33 #define rb_color(r) ((r)->rb_parent_color & 1) argument 34 #define rb_is_red(r) (!rb_color(r)) argument 35 #define rb_is_black(r) rb_color(r) argument 36 #define rb_set_red(r) do { (r)->rb_parent_color &= ~1; } while (0) argument 37 #define rb_set_black(r) do { (r)->rb_parent_color |= 1; } while (0) argument
|
D | rtnetlink.h | 224 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg)))) argument 360 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg)))) argument 386 #define NDA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ndmsg)))) argument 480 #define NDTA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ndtmsg)))) argument 599 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg)))) argument 649 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg)))) argument 718 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg)))) argument
|
/development/tools/emulator/system/gps/ |
D | gps_qemu.c | 195 nmea_reader_update_utc_diff( NmeaReader* r ) in nmea_reader_update_utc_diff() argument 217 r->utc_diff = time_utc - time_local; in nmea_reader_update_utc_diff() 222 nmea_reader_init( NmeaReader* r ) in nmea_reader_init() argument 224 memset( r, 0, sizeof(*r) ); in nmea_reader_init() 226 r->pos = 0; in nmea_reader_init() 227 r->overflow = 0; in nmea_reader_init() 228 r->utc_year = -1; in nmea_reader_init() 229 r->utc_mon = -1; in nmea_reader_init() 230 r->utc_day = -1; in nmea_reader_init() 231 r->callback = NULL; in nmea_reader_init() [all …]
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | RoundRects.java | 64 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()
|
D | BitmapPixels.java | 53 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 …]
|
D | Regions.java | 74 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()
|
D | ColorFilters.java | 49 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()
|
D | ColorPickerDialog.java | 65 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()
|
D | PurgeableBitmapView.java | 71 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()
|
D | MeasureText.java | 40 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()
|
D | CreateBitmap.java | 42 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/tools/emulator/system/camera/ |
D | Converters.h | 94 #define RGB565(r, g, b) static_cast<uint16_t>((((static_cast<uint16_t>(b) << 6) | g) << 5) | r) argument 96 #define RGB32(r, g, b) static_cast<uint32_t>((((static_cast<uint32_t>(b) << 8) | g) << 8) | r) argument 111 #define RGB565(r, g, b) static_cast<uint16_t>((((static_cast<uint16_t>(r) << 6) | g) << 5) | b) argument 113 #define RGB32(r, g, b) static_cast<uint32_t>((((static_cast<uint32_t>(r) << 8) | g) << 8) | b) argument 122 uint8_t r; uint8_t g; uint8_t b; uint8_t a; member 124 uint8_t a; uint8_t b; uint8_t g; uint8_t r; 147 #define RGB2Y(r, g, b) (uint8_t)(((66 * (r) + 129 * (g) + 25 * (b) + 128) >> 8) + 16) argument 148 #define RGB2U(r, g, b) (uint8_t)(((-38 * (r) - 74 * (g) + 112 * (b) + 128) >> 8) + 128) argument 149 #define RGB2V(r, g, b) (uint8_t)(((112 * (r) - 94 * (g) - 18 * (b) + 128) >> 8) + 128) argument 153 R8G8B8ToYUV(uint8_t r, uint8_t g, uint8_t b, uint8_t* y, uint8_t* u, uint8_t* v) in R8G8B8ToYUV() argument [all …]
|
/development/samples/RenderScript/Levels/src/com/android/rs/levels/ |
D | LevelsDalvikActivity.java | 184 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/ide/xcode/ports/ |
D | SkBitmap_Mac.cpp | 31 unsigned r = SkPacked16ToR32(c); in convert565_to_32() local 35 *dst++ = (b << 24) | (g << 16) | (r << 8) | 0xFF; in convert565_to_32() 48 unsigned r = SkGetPackedR4444(c); in convert4444_to_555() local 52 r = (r << 1) | (r >> 3); in convert4444_to_555() 56 c = (r << 10) | (g << 5) | b; in convert4444_to_555()
|
D | SkOSWindow_Mac.cpp | 76 Rect r; in updateSize() local 78 GetWindowBounds((WindowRef)fHWND, kWindowContentRgn, &r); in updateSize() 79 this->resize(r.right - r.left, r.bottom - r.top); in updateSize() 82 void SkOSWindow::onHandleInval(const SkIRect& r) in onHandleInval() argument 86 rect.left = r.fLeft; in onHandleInval() 87 rect.top = r.fTop; in onHandleInval() 88 rect.right = r.fRight; in onHandleInval() 89 rect.bottom = r.fBottom; in onHandleInval()
|
/development/ndk/platforms/android-3/include/asm-generic/ |
D | pgtable.h | 30 …_ptep); int r = 1; if (!pte_young(__pte)) r = 0; else set_pte_at((__vma)->vm_mm, (__addr… 38 …_ptep; int r = 1; if (!pte_dirty(__pte)) r = 0; else set_pte_at((__vma)->vm_mm, (__addre…
|
/development/testrunner/ |
D | am_instrument_parser.py | 43 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/yuv420sp2rgb/ |
D | yuv420sp2rgb.c | 43 unsigned char r, 120 unsigned char r, in rgb16_cb() argument 126 *(rgb16 + ctx->i * ctx->width + ctx->j) = b | (g << 5) | (r << 11); in rgb16_cb() 130 unsigned char r, in common_rgb_cb() argument 168 out[i++] = r; in common_rgb_cb() 174 unsigned char r, in rgb24_cb() argument 179 return common_rgb_cb(r,g,b,ctx,0); in rgb24_cb() 183 unsigned char r, in argb_cb() argument 188 return common_rgb_cb(r,g,b,ctx,1); in argb_cb()
|
/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/ |
D | CandidateView.java | 83 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/samples/WeatherListWidget/src/com/example/android/weatherlistwidget/ |
D | WeatherWidgetProvider.java | 93 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/TtsEngine/assets/ |
D | eng-USA.freq | 18 r:40
|
D | eng-GBR.freq | 9 r:320
|
/development/samples/BrowserPlugin/jni/navigation/ |
D | NavigationPlugin.cpp | 54 static void inval(NPP instance, const ANPRectF& r, bool doAA) { in inval() argument 59 inval.left = rnd16(r.left, inset); in inval() 60 inval.top = rnd16(r.top, inset); in inval() 61 inval.right = rnd16(r.right, -inset); in inval() 62 inval.bottom = rnd16(r.bottom, -inset); in inval()
|
/development/samples/ApiDemos/src/com/example/android/apis/animation/ |
D | FixedGridLayout.java | 75 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/devbytes/ui/RequestDuringLayout/src/com/example/android/requestduringlayout/ |
D | RequestDuringLayout.java | 98 protected void onLayout(boolean changed, int l, int t, int r, int b) { in onLayout() argument 99 super.onLayout(changed, l, t, r, b); in onLayout()
|