Sony Addon SDK public class

SmartWirelessHeadsetProUtil

This project is no longer being supported and will not get any further updates.
extends java.lang.Object
  1. java.lang.Object
  2. com.sonyericsson.extras.liveware.extension.util.SmartWirelessHeadsetProUtil

Class Overview

This class contains Smart Wireless Headset pro specific utility functions and constants

Summary

Constants
int DISPLAY_WIDTH
int DISPLAY_HEIGHT
int CONFIRM_PADDING
int CONFIRM_TEXT_X
int CONFIRM_TEXT_Y
Fields
public static final Bitmap.Config BITMAP_CONFIG
Public Constructors
SmartWirelessHeadsetProUtil()
Public Methods
static TextPaint createTextPaint(Context context)

Create text paint for Smart Wireless Headset pro for current locale.

static Bitmap getConfirmBitmap(Context context, java.lang.String text, boolean okInFocus, boolean hideCancel)

Generate bitmap with ok and cancel icons and a text.

Constants

public static final int DISPLAY_WIDTH

Constant Value: 128 (0x00000080)

public static final int DISPLAY_HEIGHT

Constant Value: 36 (0x00000024)

public static final int CONFIRM_PADDING

Constant Value: 1 (0x00000001)

public static final int CONFIRM_TEXT_X

Constant Value: 1 (0x00000001)

public static final int CONFIRM_TEXT_Y

Constant Value: 22 (0x00000016)

Fields

public static final Bitmap.Config BITMAP_CONFIG

Public Constructors

public SmartWirelessHeadsetProUtil()

Public Methods

public static TextPaint createTextPaint(Context context)

Create text paint for Smart Wireless Headset pro for current locale.

Parameters
context The context.
Returns

The text paint.

public static Bitmap getConfirmBitmap(Context context, java.lang.String text, boolean okInFocus, boolean hideCancel)

Generate bitmap with ok and cancel icons and a text.

Parameters
context The context.
text The text.
okInFocus true if ok icon should be focused else false.
hideCancel true if cancel icon should be hidden.
Returns

The text paint.