OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:colordrawable
(Results
1 - 25
of
137
) sorted by null
1
2
3
4
5
6
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
ColorDrawableTest.java
24
import android.graphics.drawable.
ColorDrawable
;
38
new
ColorDrawable
();
39
new
ColorDrawable
(0);
40
new
ColorDrawable
(1);
47
ColorDrawable
colorDrawable
= new
ColorDrawable
();
48
assertEquals(0,
colorDrawable
.getAlpha());
50
colorDrawable
.setAlpha(128);
51
assertEquals(0,
colorDrawable
.getAlpha())
[
all
...]
LayerDrawableTest.java
34
import android.graphics.drawable.
ColorDrawable
;
51
Drawable
colorDrawable
= new
ColorDrawable
(Color.BLUE);
52
Drawable[] array = new Drawable[] { bitmapDrawable,
colorDrawable
};
56
assertSame(
colorDrawable
, layerDrawable.getDrawable(1));
79
assertEquals(
ColorDrawable
.class, layerDrawable.getDrawable(0).getClass());
80
assertEquals(0x88, (((
ColorDrawable
) layerDrawable.getDrawable(0)).getAlpha()));
126
Drawable
colorDrawable
= new
ColorDrawable
(Color.BLUE);
127
Drawable[] array = new Drawable[] { bitmapDrawable,
colorDrawable
};
[
all
...]
ThemedDrawableTest.java
26
import android.graphics.drawable.
ColorDrawable
;
67
ColorDrawable
d = (
ColorDrawable
) mContext.getDrawable(R.drawable.colordrawable_theme);
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowColorDrawable.java
4
import android.graphics.drawable.
ColorDrawable
;
10
@Implements(
ColorDrawable
.class)
26
ShadowColorDrawable that = shadowOf((
ColorDrawable
)o);
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/
ContactsMockPackageManager.java
20
import android.graphics.drawable.
ColorDrawable
;
32
return new
ColorDrawable
();
37
return new
ColorDrawable
();
43
return new
ColorDrawable
();
/cts/tests/tests/graphics/res/drawable/
colordrawable_test.xml
18
<
ColorDrawable
xmlns:android="http://schemas.android.com/apk/res/android" android:color="#02000000">
20
</
ColorDrawable
>
/frameworks/base/core/java/android/transition/
Recolor.java
22
import android.graphics.drawable.
ColorDrawable
;
33
* {@link
ColorDrawable
}, as well as the
79
if (startBackground instanceof
ColorDrawable
&& endBackground instanceof
ColorDrawable
) {
80
ColorDrawable
startColor = (
ColorDrawable
) startBackground;
81
ColorDrawable
endColor = (
ColorDrawable
) endBackground;
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/
ColorDrawableWithDimensions.java
19
import android.graphics.drawable.
ColorDrawable
;
21
public class ColorDrawableWithDimensions extends
ColorDrawable
{
/packages/apps/Settings/src/com/android/settings/accessibility/
ColorPreference.java
21
import android.graphics.drawable.
ColorDrawable
;
36
private
ColorDrawable
mPreviewColor;
95
mPreviewColor = new
ColorDrawable
(argb);
125
if (foreground instanceof
ColorDrawable
) {
126
((
ColorDrawable
) foreground).setColor(argb);
128
swatch.setImageDrawable(new
ColorDrawable
(argb));
/developers/build/prebuilts/gradle/CustomTransition/Application/src/main/java/com/example/android/customtransition/
ChangeColor.java
24
import android.graphics.drawable.
ColorDrawable
;
82
// background changes. If the property isn't a
ColorDrawable
, ignore the target.
83
if (startBackground instanceof
ColorDrawable
&& endBackground instanceof
ColorDrawable
) {
84
ColorDrawable
startColor = (
ColorDrawable
) startBackground;
85
ColorDrawable
endColor = (
ColorDrawable
) endBackground;
114
// For non-
ColorDrawable
backgrounds, we just return null, and no animation will take place.
/developers/samples/android/ui/transition/CustomTransition/Application/src/main/java/com/example/android/customtransition/
ChangeColor.java
24
import android.graphics.drawable.
ColorDrawable
;
82
// background changes. If the property isn't a
ColorDrawable
, ignore the target.
83
if (startBackground instanceof
ColorDrawable
&& endBackground instanceof
ColorDrawable
) {
84
ColorDrawable
startColor = (
ColorDrawable
) startBackground;
85
ColorDrawable
endColor = (
ColorDrawable
) endBackground;
114
// For non-
ColorDrawable
backgrounds, we just return null, and no animation will take place.
/development/samples/browseable/CustomTransition/src/com.example.android.customtransition/
ChangeColor.java
24
import android.graphics.drawable.
ColorDrawable
;
82
// background changes. If the property isn't a
ColorDrawable
, ignore the target.
83
if (startBackground instanceof
ColorDrawable
&& endBackground instanceof
ColorDrawable
) {
84
ColorDrawable
startColor = (
ColorDrawable
) startBackground;
85
ColorDrawable
endColor = (
ColorDrawable
) endBackground;
114
// For non-
ColorDrawable
backgrounds, we just return null, and no animation will take place.
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
RowContainerView.java
18
import android.graphics.drawable.
ColorDrawable
;
81
if (mForeground instanceof
ColorDrawable
) {
82
((
ColorDrawable
) mForeground.mutate()).setColor(color);
85
setForeground(new
ColorDrawable
(color));
/frameworks/base/graphics/java/android/graphics/drawable/
ColorDrawable.java
38
* Note that a
ColorDrawable
ignores the ColorFilter.
44
public class
ColorDrawable
extends Drawable {
54
* Creates a new black
ColorDrawable
.
56
public
ColorDrawable
() {
61
* Creates a new
ColorDrawable
with the specified color.
65
public
ColorDrawable
(int color) {
233
final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.
ColorDrawable
);
268
final TypedArray a = t.resolveAttributes(state.mThemeAttrs, R.styleable.
ColorDrawable
);
307
return new
ColorDrawable
(this);
312
return new
ColorDrawable
(this)
[
all
...]
/development/samples/ApiDemos/src/com/example/android/apis/view/
CheckableFrameLayout.java
20
import android.graphics.drawable.
ColorDrawable
;
38
setBackgroundDrawable(checked ? new
ColorDrawable
(0xff0000a0) : null);
/development/samples/Support13Demos/src/com/example/android/supportv13/view/
CheckableFrameLayout.java
20
import android.graphics.drawable.
ColorDrawable
;
38
setBackgroundDrawable(checked ? new
ColorDrawable
(0xff0000a0) : null);
/development/samples/Support4Demos/src/com/example/android/supportv4/view/
CheckableFrameLayout.java
20
import android.graphics.drawable.
ColorDrawable
;
38
setBackgroundDrawable(checked ? new
ColorDrawable
(0xff0000a0) : null);
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DatePickerActivity.java
20
import android.graphics.drawable.
ColorDrawable
;
36
getWindow().setBackgroundDrawable(new
ColorDrawable
(0xffffffff));
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/
CalendarColorSquare.java
43
Drawable[]
colorDrawable
= new Drawable[] {
45
setImageDrawable(new ColorStateDrawable(
colorDrawable
, color));
/frameworks/opt/colorpicker/src/com/android/colorpicker/
ColorPickerSwatch.java
61
Drawable[]
colorDrawable
= new Drawable[]
63
mSwatchImage.setImageDrawable(new ColorStateDrawable(
colorDrawable
, color));
/frameworks/base/docs/html/sdk/api_diff/11/changes/
android.graphics.drawable.ColorDrawable.html
10
android.graphics.drawable.
ColorDrawable
74
Class android.graphics.drawable.<A HREF="../../../../reference/android/graphics/drawable/
ColorDrawable
.html" target="_top"><font size="+2"><code>
ColorDrawable
</code></font></A>
86
<A NAME="android.graphics.drawable.
ColorDrawable
.getColor_added()"></A>
87
<nobr><code>int</code> <A HREF="../../../../reference/android/graphics/drawable/
ColorDrawable
.html#getColor()" target="_top"><code>getColor</code></A>()</nobr>
93
<A NAME="android.graphics.drawable.
ColorDrawable
.setColor_added(int)"></A>
94
<nobr><code>void</code> <A HREF="../../../../reference/android/graphics/drawable/
ColorDrawable
.html#setColor(int)" target="_top"><code>setColor</code></A>(<code>int</code>)</nobr>
/developers/build/prebuilts/gradle/GridViewPager/Wearable/src/main/java/com/example/android/wearable/gridviewpager/
SampleGridPagerAdapter.java
24
import android.graphics.drawable.
ColorDrawable
;
50
private
ColorDrawable
mDefaultBg;
52
private
ColorDrawable
mClearBg;
70
mDefaultBg = new
ColorDrawable
(R.color.dark_grey);
71
mClearBg = new
ColorDrawable
(android.R.color.transparent);
/developers/samples/android/wearable/wear/GridViewPager/Wearable/src/main/java/com/example/android/wearable/gridviewpager/
SampleGridPagerAdapter.java
24
import android.graphics.drawable.
ColorDrawable
;
50
private
ColorDrawable
mDefaultBg;
52
private
ColorDrawable
mClearBg;
70
mDefaultBg = new
ColorDrawable
(R.color.dark_grey);
71
mClearBg = new
ColorDrawable
(android.R.color.transparent);
/development/samples/browseable/GridViewPager/Wearable/src/com.example.android.wearable.gridviewpager/
SampleGridPagerAdapter.java
24
import android.graphics.drawable.
ColorDrawable
;
50
private
ColorDrawable
mDefaultBg;
52
private
ColorDrawable
mClearBg;
70
mDefaultBg = new
ColorDrawable
(R.color.dark_grey);
71
mClearBg = new
ColorDrawable
(android.R.color.transparent);
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
ResourcesTest.java
19
import android.graphics.drawable.
ColorDrawable
;
91
* given an R.color.id value, will return a
ColorDrawable
96
assertThat( resources.getDrawable( TestR.color.test_color_1 ), instanceOf(
ColorDrawable
.class ) );
Completed in 2787 milliseconds
1
2
3
4
5
6