Example usage for android.os Build DEVICE

List of usage examples for android.os Build DEVICE

Introduction

In this page you can find the example usage for android.os Build DEVICE.

Prototype

String DEVICE

To view the source code for android.os Build DEVICE.

Click Source Link

Document

The name of the industrial design.

Usage

From source file:com.skytree.epubtest.BookViewActivity.java

int getRealFontSize(int fontSizeIndex) {
    int rs = 0;//from www . j a v  a2  s  .co m
    switch (fontSizeIndex) {
    case 0:
        rs = 24;
        break;
    case 1:
        rs = 27;
        break;
    case 2:
        rs = 30;
        break;
    case 3:
        rs = 34;
        break;
    case 4:
        rs = 37;
        break;
    default:
        rs = 27;
    }
    if (this.getOSVersion() >= 19) {
        rs = (int) ((double) rs * 0.75f);
    }

    if (Build.DEVICE.contains("maguro")) {
        rs = (int) ((double) rs * 0.75f);
    }

    return rs;
}