package test.pkg;

import android.app.Notification;
import android.app.Notification.Builder;
import android.content.Context;
import android.graphics.Bitmap;

@SuppressWarnings({ "deprecation", "unused", "javadoc" })
class NotificationTest {
    public void test1() {
        Notification notification = new Notification(R.drawable.icon1, "Test1", 0);
    }

    public void test2() {
        int resource = R.drawable.icon2;
        Notification notification = new Notification(resource, "Test1", 0);
    }

    public void test3() {
        int icon = R.drawable.icon3;
        CharSequence tickerText = "Hello";
        long when = System.currentTimeMillis();
        Notification notification = new Notification(icon, tickerText, when);
    }

    public void test4(Context context, String sender, String subject, Bitmap bitmap) {
        Notification notification = new Notification.Builder(context)
                .setContentTitle("New mail from " + sender.toString())
                .setContentText(subject).setSmallIcon(R.drawable.icon4)
                .setLargeIcon(bitmap).build();
    }

    public void test5(Context context, String sender, String subject, Bitmap bitmap) {
        Notification notification = new Builder(context)
                .setContentTitle("New mail from " + sender.toString())
                .setContentText(subject).setSmallIcon(R.drawable.icon5)
                .setLargeIcon(bitmap).build();
    }
}
