Home
last modified time | relevance | path

Searched refs:g (Results 1 – 25 of 36) sorted by relevance

12

/development/samples/ApiDemos/src/com/example/android/apis/graphics/
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()
75 int g = Color.green(c); in premultiplyColor() local
80 g = mul255(g, a); in premultiplyColor()
83 return pack8888(r, g, b, a); in premultiplyColor()
90 int g = getG32(from) << 23; in makeRamp() local
[all …]
DPurgeableBitmapView.java72 int g = y * 255 / (HEIGHT - 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.java41 int g = y * 255 / (HEIGHT - 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()
DColorPickerDialog.java133 int g = ave(Color.green(c0), Color.green(c1), p); in interpColor() local
136 return Color.argb(a, r, g, b); in interpColor()
142 int g = Color.green(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()
DCreateBitmap.java43 int g = y * 255 / (HEIGHT - 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/vndk/tools/definition-tool/tests/
Dtest_generic_refs.py43 g = GenericRefs.create_from_sym_dir(input_dir)
44 self.assertEqual(4, len(g.refs))
46 self.assertIn('/system/lib/libc.so', g.refs)
47 self.assertIn('/system/lib/libm.so', g.refs)
48 self.assertIn('/system/lib64/libc.so', g.refs)
49 self.assertIn('/system/lib64/libm.so', g.refs)
52 g.refs['/system/lib/libc.so'].exported_symbols)
54 g.refs['/system/lib64/libc.so'].exported_symbols)
57 g.refs['/system/lib/libm.so'].exported_symbols)
59 g.refs['/system/lib64/libm.so'].exported_symbols)
/development/samples/RenderScript/Levels/src/com/android/rs/levels/
DLevelsDalvikActivity.java185 float g = (float)((mInPixels[i] >> 8) & 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()
192 g = tg; in filter()
197 if (g < 0.f) g = 0.f; in filter()
198 if (g > 255.f) g = 255.f; in filter()
203 g = (g - mInBlack) * mOverInWMinInB; in filter()
208 g = (float)java.lang.Math.pow(g, mGamma); in filter()
213 g = (g * mOutWMinOutB) + mOutBlack; in filter()
[all …]
/development/samples/browseable/HdrViewfinder/src/rs/
Dhdr_merge.rs33 curPixel.g = rsGetElementAtYuv_uchar_U(gCurrentFrame, x, y);
67 rgb.g = mergedPixel.r -
68 mergedPixel.g * 46549 / 131072 + 44 -
71 mergedPixel.g * 1814 / 1024 - 227;
/development/apps/DumpViewer/
DREADME.md14 To install, pass the `-g` option to `adb install` to give the needed permissions:
16 adb install -r -g DumpViewer.apk
19 adb install -r -g ${ANDROID_PRODUCT_OUT}/data/app/DumpViewer/DumpViewer.apk
/development/tools/repo_diff/service/repodiff/repositories/
Ddenormalizer.go24 func (g GlobalDenormalizer) DenormalizeToTopCommitter() error {
26 if _, err := g.db.Exec(
34 _, err := g.db.Exec(
91 func (g GlobalDenormalizer) DenormalizeToTopTechArea() error {
93 if _, err := g.db.Exec(
101 _, err := g.db.Exec(
/development/ndk/zlib/
Dzlib.h1661 # define z_gzgetc(g) \ argument
1662 ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : gzgetc(g))
1664 # define gzgetc(g) \ argument
1665 ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : gzgetc(g))
/development/tools/repo_pull/
DREADME.md12 -g https://android-review.googlesource.com
40 [-g gerrit] \
72 * `-g` or `--gerrit` specifies the URL of the Gerrit Code Review website.
105 -g https://android-review.googlesource.com
113 -g https://android-review.googlesource.com \
121 -g https://android-review.googlesource.com \
/development/samples/ToyVpn/server/linux/
DMakefile18 g++ -Wall -o ToyVpnServer ToyVpnServer.cpp
/development/samples/TtsEngine/assets/
Deng-USA.freq7 g:128
Deng-GBR.freq20 g:125
/development/samples/DeviceAdminWhitelistedAccount/
DREADME.md10 adb install -r -g $OUT/data/app/DeviceAdminWhitelistedAccount/DeviceAdminWhitelistedAccount.apk
/development/samples/devbytes/telephony/SmsSampleProject/
Dgradle.properties3 # IDE (e.g. Android Studio) users:
/development/samples/browseable/SlidingTabsBasic/src/com.example.android.common/view/
DSlidingTabStrip.java181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); in blendColors() local
183 return Color.rgb((int) r, (int) g, (int) b); in blendColors()
/development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.common/view/
DSlidingTabStrip.java181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); in blendColors() local
183 return Color.rgb((int) r, (int) g, (int) b); in blendColors()
/development/samples/browseable/BasicTransition/src/com.example.android.common/view/
DSlidingTabStrip.java181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); in blendColors() local
183 return Color.rgb((int) r, (int) g, (int) b); in blendColors()
/development/samples/browseable/SlidingTabsColors/src/com.example.android.common/view/
DSlidingTabStrip.java181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); in blendColors() local
183 return Color.rgb((int) r, (int) g, (int) b); in blendColors()
/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.common/view/
DSlidingTabStrip.java181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); in blendColors() local
183 return Color.rgb((int) r, (int) g, (int) b); in blendColors()
/development/samples/browseable/SwipeRefreshLayoutBasic/src/com.example.android.common/view/
DSlidingTabStrip.java181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); in blendColors() local
183 return Color.rgb((int) r, (int) g, (int) b); in blendColors()
/development/tools/mkstubs/
DREADME.txt8 expose, e.g.:
28 - a package name, e.g. com.android.blah
/development/samples/ApiDemos/src/com/example/android/apis/view/
DGrid2.java42 GridView g = (GridView) findViewById(R.id.myGrid); in onCreate() local
43 g.setAdapter(new ImageAdapter(this)); in onCreate()

12