Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 25 of 49) sorted by relevance

12

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DResizingTextView.java28 public ResizingTextView(Context ctx, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in ResizingTextView() argument
29 super(ctx, attrs, defStyleAttr, defStyleRes); in ResizingTextView()
32 public ResizingTextView(Context ctx, AttributeSet attrs, int defStyleAttr) { in ResizingTextView() argument
33 super(ctx, attrs, defStyleAttr); in ResizingTextView()
36 public ResizingTextView(Context ctx, AttributeSet attrs) { in ResizingTextView() argument
37 super(ctx, attrs); in ResizingTextView()
40 public ResizingTextView(Context ctx) { in ResizingTextView() argument
41 super(ctx); in ResizingTextView()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/
DColorValueView.java57 public ColorValueView(Context ctx, AttributeSet attrs) { in ColorValueView() argument
58 super(ctx, attrs); in ColorValueView()
59 DisplayMetrics metrics = ctx.getResources().getDisplayMetrics(); in ColorValueView()
69 mDotPaint.setColor(ctx.getResources().getColor(R.color.slider_dot_color)); in ColorValueView()
76 mSliderColor = ctx.getResources().getColor(R.color.slider_line_color); in ColorValueView()
DColorBrightnessView.java63 public ColorBrightnessView(Context ctx, AttributeSet attrs) { in ColorBrightnessView() argument
64 super(ctx, attrs); in ColorBrightnessView()
65 DisplayMetrics metrics = ctx.getResources().getDisplayMetrics(); in ColorBrightnessView()
74 mDotPaint.setColor(ctx.getResources().getColor(R.color.slider_dot_color)); in ColorBrightnessView()
75 mSliderColor = ctx.getResources().getColor(R.color.slider_line_color); in ColorBrightnessView()
DColorSaturationView.java63 public ColorSaturationView(Context ctx, AttributeSet attrs) { in ColorSaturationView() argument
64 super(ctx, attrs); in ColorSaturationView()
65 DisplayMetrics metrics = ctx.getResources().getDisplayMetrics(); in ColorSaturationView()
74 mDotPaint.setColor(ctx.getResources().getColor(R.color.slider_dot_color)); in ColorSaturationView()
75 mSliderColor = ctx.getResources().getColor(R.color.slider_line_color); in ColorSaturationView()
DColorHueView.java64 public ColorHueView(Context ctx, AttributeSet attrs) { in ColorHueView() argument
65 super(ctx, attrs); in ColorHueView()
66 DisplayMetrics metrics = ctx.getResources().getDisplayMetrics(); in ColorHueView()
74 mDotPaint.setColor(ctx.getResources().getColor(R.color.slider_dot_color)); in ColorHueView()
75 mSliderColor = ctx.getResources().getColor(R.color.slider_line_color); in ColorHueView()
DColorSVRectView.java62 public ColorSVRectView(Context ctx, AttributeSet attrs) { in ColorSVRectView() argument
63 super(ctx, attrs); in ColorSVRectView()
65 DisplayMetrics metrics = ctx.getResources().getDisplayMetrics(); in ColorSVRectView()
78 mDotPaint.setColor(ctx.getResources().getColor(R.color.slider_dot_color)); in ColorSVRectView()
79 mSliderColor = ctx.getResources().getColor(R.color.slider_line_color); in ColorSVRectView()
DColorRectView.java67 public ColorRectView(Context ctx, AttributeSet attrs) { in ColorRectView() argument
68 super(ctx, attrs); in ColorRectView()
70 DisplayMetrics metrics = ctx.getResources().getDisplayMetrics(); in ColorRectView()
81 mDotPaint.setColor(ctx.getResources().getColor(R.color.slider_dot_color)); in ColorRectView()
82 mSliderColor = ctx.getResources().getColor(R.color.slider_line_color); in ColorRectView()
DColorCompareView.java59 public ColorCompareView(Context ctx, AttributeSet attrs) { in ColorCompareView() argument
60 super(ctx, attrs); in ColorCompareView()
61 DisplayMetrics metrics = ctx.getResources().getDisplayMetrics(); in ColorCompareView()
66 Resources res = ctx.getResources(); in ColorCompareView()
DColorOpacityView.java61 public ColorOpacityView(Context ctx, AttributeSet attrs) { in ColorOpacityView() argument
62 super(ctx, attrs); in ColorOpacityView()
63 DisplayMetrics metrics = ctx.getResources().getDisplayMetrics(); in ColorOpacityView()
72 Resources res = ctx.getResources(); in ColorOpacityView()
/packages/apps/Browser/src/com/android/browser/
DTabScrollView.java65 private void init(Context ctx) { in init() argument
66 mAnimationDuration = ctx.getResources().getInteger( in init()
68 mTabOverlap = (int) ctx.getResources().getDimension(R.dimen.tab_overlap); in init()
71 mContentView = new TabLayout(ctx); in init()
76 (int) ctx.getResources().getDimension(R.dimen.tab_first_padding_left), in init()
DDownloadTouchIcon.java61 public DownloadTouchIcon(Tab tab, Context ctx, ContentResolver cr, WebView view) { in DownloadTouchIcon() argument
63 mContext = ctx.getApplicationContext(); in DownloadTouchIcon()
78 public DownloadTouchIcon(Context ctx, ContentResolver cr, String url) { in DownloadTouchIcon() argument
80 mContext = ctx.getApplicationContext(); in DownloadTouchIcon()
DUrlInputView.java93 private void init(Context ctx) { in init() argument
94 mInputManager = (InputMethodManager) ctx.getSystemService(Context.INPUT_METHOD_SERVICE); in init()
96 mAdapter = new SuggestionsAdapter(ctx, this); in init()
99 onConfigurationChanged(ctx.getResources().getConfiguration()); in init()
/packages/apps/Email/src/com/android/email/activity/setup/
DPolicyListPreference.java32 public PolicyListPreference(Context ctx, AttributeSet attrs, int defStyle) { in PolicyListPreference() argument
33 super(ctx, attrs, defStyle); in PolicyListPreference()
36 public PolicyListPreference(Context ctx, AttributeSet attrs) { in PolicyListPreference() argument
37 super(ctx, attrs); in PolicyListPreference()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapUtils.java108 public static VCardComposer createFilteredVCardComposer(final Context ctx, in createFilteredVCardComposer() argument
126 return new VCardComposer(ctx, vType, true); in createFilteredVCardComposer()
155 …public static final String createProfileVCard(Context ctx, final int vcardType,final byte[] filter… in createProfileVCard() argument
159 composer = createFilteredVCardComposer(ctx, vcardType, filter); in createProfileVCard()
DBluetoothPbapConfig.java29 public static void init(Context ctx) { in init() argument
30 Resources r = ctx.getResources(); in init()
/packages/apps/Camera/src/com/android/camera/
DPreviewGestures.java74 public PreviewGestures(CameraActivity ctx, CameraModule module, in PreviewGestures() argument
76 mActivity = ctx; in PreviewGestures()
81 mScale = new ScaleGestureDetector(ctx, this); in PreviewGestures()
82 mSlop = (int) ctx.getResources().getDimension(R.dimen.pie_touch_slop); in PreviewGestures()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DConfig.java76 static void init(Context ctx) { in init() argument
77 if (ctx == null) { in init()
80 Resources resources = ctx.getResources(); in init()
/packages/apps/Settings/src/com/android/settings/
DSetupRedactionInterstitial.java40 public static Intent createStartIntent(Context ctx) { in createStartIntent() argument
41 Intent startIntent = RedactionInterstitial.createStartIntent(ctx); in createStartIntent()
42 startIntent.setClass(ctx, SetupRedactionInterstitial.class); in createStartIntent()
DSetupEncryptionInterstitial.java40 public static Intent createStartIntent(Context ctx, int quality, in createStartIntent() argument
42 Intent startIntent = EncryptionInterstitial.createStartIntent(ctx, quality, in createStartIntent()
44 startIntent.setClass(ctx, SetupEncryptionInterstitial.class); in createStartIntent()
DEncryptionInterstitial.java59 public static Intent createStartIntent(Context ctx, int quality, in createStartIntent() argument
61 return new Intent(ctx, EncryptionInterstitial.class) in createStartIntent()
64 .putExtra(EXTRA_PREFS_SET_NEXT_TEXT, ctx.getString( in createStartIntent()
/packages/apps/Settings/src/com/android/settings/notification/
DRedactionInterstitial.java46 public static Intent createStartIntent(Context ctx) { in createStartIntent() argument
47 return new Intent(ctx, RedactionInterstitial.class) in createStartIntent()
50 .putExtra(EXTRA_PREFS_SET_NEXT_TEXT, ctx.getString( in createStartIntent()
/packages/apps/Camera/src/com/android/camera/ui/
DZoomRenderer.java58 public ZoomRenderer(Context ctx) { in ZoomRenderer() argument
59 Resources res = ctx.getResources(); in ZoomRenderer()
71 mDetector = new ScaleGestureDetector(ctx, this); in ZoomRenderer()
/packages/apps/Camera2/src/com/android/camera/util/
DAccessibilityUtils.java21 Context ctx = view.getContext(); in makeAnnouncement() local
22 AccessibilityManager am = (AccessibilityManager) ctx.getSystemService( in makeAnnouncement()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DAccessibilityUtils.java39 Context ctx = view.getContext(); in makeAnnouncement() local
40 AccessibilityManager am = (AccessibilityManager) ctx.getSystemService( in makeAnnouncement()
/packages/apps/Browser/src/com/android/browser/view/
DPieListView.java33 public PieListView(Context ctx) { in PieListView() argument
35 mBgPaint.setColor(ctx.getResources().getColor(R.color.qcMenuBackground)); in PieListView()

12