Home
last modified time | relevance | path

Searched refs:colors (Results 1 – 25 of 30) sorted by relevance

12

/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DCreateBitmap.java39 int[] colors = new int[STRIDE * HEIGHT]; in createColors() local
46 colors[y * STRIDE + x] = (a << 24) | (r << 16) | (g << 8) | b; in createColors()
49 return colors; in createColors()
73 int[] colors = mColors; in SampleView() local
77 mBitmaps[0] = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT, in SampleView()
79 mBitmaps[1] = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT, in SampleView()
81 mBitmaps[2] = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT, in SampleView()
92 mBitmaps[i].setPixels(colors, 0, STRIDE, 0, 0, WIDTH, HEIGHT); in SampleView()
DPurgeableBitmapView.java58 int[] colors = createColors(); in PurgeableBitmapView() local
59 Bitmap src = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT, in PurgeableBitmapView()
68 int[] colors = new int[STRIDE * HEIGHT]; in createColors() local
75 colors[y * STRIDE + x] = (a << 24) | (r << 16) | (g << 8) | b; in createColors()
78 return colors; in createColors()
DColorPickerDialog.java116 private int interpColor(int colors[], float unit) { in interpColor() argument
118 return colors[0]; in interpColor()
121 return colors[colors.length - 1]; in interpColor()
124 float p = unit * (colors.length - 1); in interpColor()
129 int c0 = colors[i]; in interpColor()
130 int c1 = colors[i+1]; in interpColor()
DCube.java44 int colors[] = { in Cube() local
78 ByteBuffer cbb = ByteBuffer.allocateDirect(colors.length*4); in Cube()
81 mColorBuffer.put(colors); in Cube()
DMeasureText.java37 int[] colors = new int[STRIDE * HEIGHT]; in createColors() local
44 colors[y * STRIDE + x] = (a << 24) | (r << 16) | (g << 8) | b; in createColors()
47 return colors; in createColors()
/development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.common/view/
DSlidingTabStrip.java96 void setSelectedIndicatorColors(int... colors) { in setSelectedIndicatorColors() argument
99 mDefaultTabColorizer.setIndicatorColors(colors); in setSelectedIndicatorColors()
103 void setDividerColors(int... colors) { in setDividerColors() argument
106 mDefaultTabColorizer.setDividerColors(colors); in setDividerColors()
200 void setIndicatorColors(int... colors) { in setIndicatorColors() argument
201 mIndicatorColors = colors; in setIndicatorColors()
204 void setDividerColors(int... colors) { in setDividerColors() argument
205 mDividerColors = colors; in setDividerColors()
DSlidingTabLayout.java119 public void setSelectedIndicatorColors(int... colors) { in setSelectedIndicatorColors() argument
120 mTabStrip.setSelectedIndicatorColors(colors); in setSelectedIndicatorColors()
127 public void setDividerColors(int... colors) { in setDividerColors() argument
128 mTabStrip.setDividerColors(colors); in setDividerColors()
/development/samples/browseable/SlidingTabsBasic/src/com.example.android.common/view/
DSlidingTabStrip.java96 void setSelectedIndicatorColors(int... colors) { in setSelectedIndicatorColors() argument
99 mDefaultTabColorizer.setIndicatorColors(colors); in setSelectedIndicatorColors()
103 void setDividerColors(int... colors) { in setDividerColors() argument
106 mDefaultTabColorizer.setDividerColors(colors); in setDividerColors()
200 void setIndicatorColors(int... colors) { in setIndicatorColors() argument
201 mIndicatorColors = colors; in setIndicatorColors()
204 void setDividerColors(int... colors) { in setDividerColors() argument
205 mDividerColors = colors; in setDividerColors()
DSlidingTabLayout.java119 public void setSelectedIndicatorColors(int... colors) { in setSelectedIndicatorColors() argument
120 mTabStrip.setSelectedIndicatorColors(colors); in setSelectedIndicatorColors()
127 public void setDividerColors(int... colors) { in setDividerColors() argument
128 mTabStrip.setDividerColors(colors); in setDividerColors()
/development/samples/browseable/SlidingTabsColors/src/com.example.android.common/view/
DSlidingTabStrip.java96 void setSelectedIndicatorColors(int... colors) { in setSelectedIndicatorColors() argument
99 mDefaultTabColorizer.setIndicatorColors(colors); in setSelectedIndicatorColors()
103 void setDividerColors(int... colors) { in setDividerColors() argument
106 mDefaultTabColorizer.setDividerColors(colors); in setDividerColors()
200 void setIndicatorColors(int... colors) { in setIndicatorColors() argument
201 mIndicatorColors = colors; in setIndicatorColors()
204 void setDividerColors(int... colors) { in setDividerColors() argument
205 mDividerColors = colors; in setDividerColors()
DSlidingTabLayout.java119 public void setSelectedIndicatorColors(int... colors) { in setSelectedIndicatorColors() argument
120 mTabStrip.setSelectedIndicatorColors(colors); in setSelectedIndicatorColors()
127 public void setDividerColors(int... colors) { in setDividerColors() argument
128 mTabStrip.setDividerColors(colors); in setDividerColors()
/development/samples/browseable/SwipeRefreshLayoutBasic/src/com.example.android.common/view/
DSlidingTabStrip.java96 void setSelectedIndicatorColors(int... colors) { in setSelectedIndicatorColors() argument
99 mDefaultTabColorizer.setIndicatorColors(colors); in setSelectedIndicatorColors()
103 void setDividerColors(int... colors) { in setDividerColors() argument
106 mDefaultTabColorizer.setDividerColors(colors); in setDividerColors()
200 void setIndicatorColors(int... colors) { in setIndicatorColors() argument
201 mIndicatorColors = colors; in setIndicatorColors()
204 void setDividerColors(int... colors) { in setDividerColors() argument
205 mDividerColors = colors; in setDividerColors()
DSlidingTabLayout.java119 public void setSelectedIndicatorColors(int... colors) { in setSelectedIndicatorColors() argument
120 mTabStrip.setSelectedIndicatorColors(colors); in setSelectedIndicatorColors()
127 public void setDividerColors(int... colors) { in setDividerColors() argument
128 mTabStrip.setDividerColors(colors); in setDividerColors()
/development/samples/browseable/FragmentTransition/src/com.example.android.common/view/
DSlidingTabStrip.java96 void setSelectedIndicatorColors(int... colors) { in setSelectedIndicatorColors() argument
99 mDefaultTabColorizer.setIndicatorColors(colors); in setSelectedIndicatorColors()
103 void setDividerColors(int... colors) { in setDividerColors() argument
106 mDefaultTabColorizer.setDividerColors(colors); in setDividerColors()
200 void setIndicatorColors(int... colors) { in setIndicatorColors() argument
201 mIndicatorColors = colors; in setIndicatorColors()
204 void setDividerColors(int... colors) { in setDividerColors() argument
205 mDividerColors = colors; in setDividerColors()
DSlidingTabLayout.java119 public void setSelectedIndicatorColors(int... colors) { in setSelectedIndicatorColors() argument
120 mTabStrip.setSelectedIndicatorColors(colors); in setSelectedIndicatorColors()
127 public void setDividerColors(int... colors) { in setDividerColors() argument
128 mTabStrip.setDividerColors(colors); in setDividerColors()
/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.common/view/
DSlidingTabStrip.java96 void setSelectedIndicatorColors(int... colors) { in setSelectedIndicatorColors() argument
99 mDefaultTabColorizer.setIndicatorColors(colors); in setSelectedIndicatorColors()
103 void setDividerColors(int... colors) { in setDividerColors() argument
106 mDefaultTabColorizer.setDividerColors(colors); in setDividerColors()
200 void setIndicatorColors(int... colors) { in setIndicatorColors() argument
201 mIndicatorColors = colors; in setIndicatorColors()
204 void setDividerColors(int... colors) { in setDividerColors() argument
205 mDividerColors = colors; in setDividerColors()
DSlidingTabLayout.java119 public void setSelectedIndicatorColors(int... colors) { in setSelectedIndicatorColors() argument
120 mTabStrip.setSelectedIndicatorColors(colors); in setSelectedIndicatorColors()
127 public void setDividerColors(int... colors) { in setDividerColors() argument
128 mTabStrip.setDividerColors(colors); in setDividerColors()
/development/samples/browseable/AdapterTransition/src/com.example.android.common/view/
DSlidingTabStrip.java96 void setSelectedIndicatorColors(int... colors) { in setSelectedIndicatorColors() argument
99 mDefaultTabColorizer.setIndicatorColors(colors); in setSelectedIndicatorColors()
103 void setDividerColors(int... colors) { in setDividerColors() argument
106 mDefaultTabColorizer.setDividerColors(colors); in setDividerColors()
200 void setIndicatorColors(int... colors) { in setIndicatorColors() argument
201 mIndicatorColors = colors; in setIndicatorColors()
204 void setDividerColors(int... colors) { in setDividerColors() argument
205 mDividerColors = colors; in setDividerColors()
DSlidingTabLayout.java119 public void setSelectedIndicatorColors(int... colors) { in setSelectedIndicatorColors() argument
120 mTabStrip.setSelectedIndicatorColors(colors); in setSelectedIndicatorColors()
127 public void setDividerColors(int... colors) { in setDividerColors() argument
128 mTabStrip.setDividerColors(colors); in setDividerColors()
/development/samples/browseable/BasicTransition/src/com.example.android.common/view/
DSlidingTabStrip.java96 void setSelectedIndicatorColors(int... colors) { in setSelectedIndicatorColors() argument
99 mDefaultTabColorizer.setIndicatorColors(colors); in setSelectedIndicatorColors()
103 void setDividerColors(int... colors) { in setDividerColors() argument
106 mDefaultTabColorizer.setDividerColors(colors); in setDividerColors()
200 void setIndicatorColors(int... colors) { in setIndicatorColors() argument
201 mIndicatorColors = colors; in setIndicatorColors()
204 void setDividerColors(int... colors) { in setDividerColors() argument
205 mDividerColors = colors; in setDividerColors()
DSlidingTabLayout.java119 public void setSelectedIndicatorColors(int... colors) { in setSelectedIndicatorColors() argument
120 mTabStrip.setSelectedIndicatorColors(colors); in setSelectedIndicatorColors()
127 public void setDividerColors(int... colors) { in setDividerColors() argument
128 mTabStrip.setDividerColors(colors); in setDividerColors()
/development/samples/ApiDemos/src/com/example/android/apis/os/
DRotationVectorDemo.java170 final float colors[] = { in Cube() local
192 ByteBuffer cbb = ByteBuffer.allocateDirect(colors.length*4); in Cube()
195 mColorBuffer.put(colors); in Cube()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DPresentationActivity.java437 drawable.setColors(mContents.colors); in onCreate()
447 final int[] colors; field in PresentationActivity.PresentationContents
464 colors = new int[] { in PresentationContents()
471 colors = new int[] { in.readInt(), in.readInt() }; in PresentationContents()
482 dest.writeInt(colors[0]); in writeToParcel()
483 dest.writeInt(colors[1]); in writeToParcel()
/development/samples/Compass/src/com/example/android/compass/
DCompassActivity.java171 float colors[] = { in onSurfaceCreated() local
194 vbb = ByteBuffer.allocateDirect(colors.length*4); in onSurfaceCreated()
197 mColorBuffer.put(colors); in onSurfaceCreated()
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DDigitalWatchFaceWearableConfigActivity.java81 String[] colors = getResources().getStringArray(R.array.color_array); in onCreate() local
82 listView.setAdapter(new ColorListAdapter(colors)); in onCreate()
161 public ColorListAdapter(String[] colors) { in ColorListAdapter() argument
162 mColors = colors; in ColorListAdapter()

12