|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.os.Handler
android.view.VolumePanel
public class VolumePanel
Handle the volume up and down keys. This code really should be moved elsewhere.
| Field Summary | |
|---|---|
protected AudioService |
mAudioService
|
protected Context |
mContext
|
static int |
PLAY_SOUND_DELAY
The delay before playing a sound. |
static int |
VIBRATE_DELAY
The delay before vibrating. |
| Constructor Summary | |
|---|---|
VolumePanel(Context context,
AudioService volumeService)
|
|
| Method Summary | |
|---|---|
void |
handleMessage(Message msg)
Subclasses must implement this to receive messages. |
protected void |
onFreeResources()
|
protected void |
onPlaySound(int streamType,
int flags)
|
protected void |
onShowVolumeChanged(int streamType,
int flags)
|
protected void |
onStopSounds()
|
protected void |
onVibrate()
|
protected void |
onVolumeChanged(int streamType,
int flags)
Override this if you have other work to do when the volume changes (for example, vibrating, playing a sound, etc.). |
void |
postVolumeChanged(int streamType,
int flags)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int PLAY_SOUND_DELAY
PhoneWindow will implement this part.
public static final int VIBRATE_DELAY
protected Context mContext
protected AudioService mAudioService
| Constructor Detail |
|---|
public VolumePanel(Context context,
AudioService volumeService)
| Method Detail |
|---|
public void postVolumeChanged(int streamType,
int flags)
protected void onVolumeChanged(int streamType,
int flags)
protected void onShowVolumeChanged(int streamType,
int flags)
protected void onPlaySound(int streamType,
int flags)
protected void onStopSounds()
protected void onVibrate()
protected void onFreeResources()
public void handleMessage(Message msg)
Handler
handleMessage in class Handler
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||